diff --git a/public/config.js b/public/config.js index f8f7194..68d2615 100644 --- a/public/config.js +++ b/public/config.js @@ -1,12 +1,7 @@ -// config = { -// API_URL: 'http://www.fatoaniic.com/api', -// UPLOAD_URL: "http://www.fatoaniic.com/api/api-ftp/ftp/upload", -// DOWNLOAD_URL: "http://www.fatoaniic.com/api/api-ftp/ftp/download?filename=", -// SHOW_URL: "http://www.fatoaniic.com/ftpfile/", -// } + config = { - // API_URL: 'http://172.119.50.248:8081', - // API_URL: 'http://61.135.192.50:8081', - API_URL: 'http://172.119.51.195:8081', + // API_URL: 'http://fw.niulanshan.com.cn:8081', + API_URL: 'http://121.36.65.171:9999', + // API_URL: 'http://172.119.50.206:8081', } \ No newline at end of file diff --git a/src/api/get.js b/src/api/get.js index 5501308..db6eb57 100644 --- a/src/api/get.js +++ b/src/api/get.js @@ -16,7 +16,14 @@ export function addFetchList(params) { }); } - +//删除取码单 +export function deleteFetchList(params) { + return request({ + url: '/fetch/delete', + method: 'post', + data:params + }); +} // 编辑取码单 export function updateFetch(params) { return request({ diff --git a/src/api/returnReceipt.js b/src/api/returnReceipt.js index 1f9b437..8a7c3d8 100644 --- a/src/api/returnReceipt.js +++ b/src/api/returnReceipt.js @@ -8,6 +8,32 @@ export function sentReceipt(params) { data:params }); } +//提交回执单 +export function commitReceipt(params) { + return request({ + url: '/receipt/commit', + method: 'post', + data:params + }); +} +//删除回执单 +export function deleteReceipt(params) { + return request({ + url: '/receipt/delete', + method: 'post', + data:params + }); +} + +//添加送货 --保存并提交 +export function savecommit(params) { + return request({ + url: '/receipt/savecommit', + method: 'post', + data:params + }); +} + //上传回执单 export function uploadReceipt(params) { return request({ diff --git a/src/api/status.js b/src/api/status.js index 7bc1c2d..53cce78 100644 --- a/src/api/status.js +++ b/src/api/status.js @@ -34,3 +34,22 @@ export function printList(params) { data:params }); } + +//总和的饼图 +export function sumfetchpie(params) { + return request({ + url: '/portal/sumfetchpie', + method: 'post', + data:params + }); +} + +//全部回执单列表 +export function receiptAllList(params) { + return request({ + url: '/receipt/list', + method: 'post', + data:params + }); +} + diff --git a/src/permission.js b/src/permission.js index 651c6c5..4f7d9c1 100644 --- a/src/permission.js +++ b/src/permission.js @@ -9,25 +9,13 @@ const whiteList = ['/login'] // 不重定向白名单 router.beforeEach((to, from, next) => { NProgress.start() if (getToken()) { - if (to.path === '/login') { - next({path: '/'}) - NProgress.done() // if current page is dashboard will not trigger afterEach hook, so manually handle it - } else { - // if (store.getters.roles.length === 0) { - // store.dispatch('GetInfo').then(res => { // 拉取用户信息 - // next() - // }).catch((err) => { - // store.dispatch('FedLogOut').then(() => { - // Message.error(err || 'Verification failed, please login again') - // next({ path: '/' }) - // }) - // }) - // } else { - // store.dispatch('changeActiveIndex', '/' + to.path.split("/")[1]).then(); + // if (to.path === '/login') { + // next({path: '/'}) + // NProgress.done() // if current page is dashboard will not trigger afterEach hook, so manually handle it + // } else { next() NProgress.done() - // } - } + // } } else { if (whiteList.indexOf(to.path) !== -1) { next() diff --git a/src/router/index.ts b/src/router/index.ts index 75204d2..229d5a8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -40,20 +40,20 @@ const routes = [ component: AppMain, name: 'antiFake', redirect: 'noredirect', - meta: {title: '防伪码管理'}, + meta: {title: '防伪服务'}, children: [ { path: 'send', component: () => import('@/views/send/send.vue'), name: 'send', - meta: {title: '防伪码发码', icon: 'eye', noCache: true}, + meta: {title: '发码管理', icon: 'eye', noCache: true}, }, { path: 'cancel', name: 'cancel', component: () => import('@/views/send/cancel.vue'), - meta: {title: '防伪码作废', icon: 'form', noCache: true}, + meta: {title: '防伪码废码', icon: 'form', noCache: true}, }, { path: 'getDetail', @@ -153,7 +153,7 @@ const routes = [ path: '', component: () => import('@/views/status/sendStatus.vue'), name: 'sendStatus', - meta: {title: '防伪码发放情况', icon: 'form', noCache: true}, + // meta: {title: '防伪码发放情况', icon: 'form', noCache: true}, }, { path: 'cancelDetail', @@ -164,10 +164,10 @@ const routes = [ }, { path: 'getDetail', - component: () => import('@/views/get/getDetail.vue'), - name: 'statusGetDetail', + component: () => import('@/views/status/getAllDetail.vue'), + name: 'getAllDetail', hidden: true, - meta: {title: '取码单详情', icon: 'form', noCache: true}, + meta: {title: '取码详情', icon: 'form', noCache: true}, } ], }, @@ -183,7 +183,7 @@ const routes = [ path: '', component: () => import('@/views/status/goodsCount.vue'), name: 'goodsCount', - meta: {title: '印制成品码数据统计', icon: 'form', noCache: true}, + // meta: {title: '印制成品码数据统计', icon: 'form', noCache: true}, }, { path: 'getGoodsDetail', diff --git a/src/utils/request.js b/src/utils/request.js index 606059c..a26c499 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -61,7 +61,7 @@ service.interceptors.response.use( if (res.code !== 200) { // 511:失效的token;弹出弹框,返回登录页 - if (res.code === 207) { + if (res.code === 209) { if (isToken) { isToken = false //防止下个一个token失效的请求在弹出第二个框 MessageBox.alert('你已被登出,请重新登录', '确定登出', { diff --git a/src/views/404.vue b/src/views/404.vue index 634a106..6b0da27 100644 --- a/src/views/404.vue +++ b/src/views/404.vue @@ -2,20 +2,20 @@
- - - - + + + +
OOPS!
版权所有 - 顺鑫农业 + 顺鑫农业
{{ message }}

- 返回首页 + 返回首页
diff --git a/src/views/get/addGet.vue b/src/views/get/addGet.vue index db4bbae..ae76986 100644 --- a/src/views/get/addGet.vue +++ b/src/views/get/addGet.vue @@ -11,7 +11,7 @@ 发码总数:{{AllData.totalSend}} 取码总数:{{AllData.totalFetch}} - 发码剩余:{{AllData.sendRemainder}} + 余码量:{{AllData.sendRemainder}}

@@ -19,7 +19,7 @@ :data="paramsForm.params" style="width: 100%"> @@ -72,4 +73,12 @@ import ResizeMixin from "../mixin/ResizeHandler"; padding: 20px; } + .copyright { + position: absolute; + bottom: 5px; + text-align: center; + width: 100%; + color: gray; + font-size: 15px; + } diff --git a/src/views/layout/components/Sidebar/index.vue b/src/views/layout/components/Sidebar/index.vue index 7bcc532..ebdc484 100644 --- a/src/views/layout/components/Sidebar/index.vue +++ b/src/views/layout/components/Sidebar/index.vue @@ -34,7 +34,7 @@ // return this.$router.options.routes[2].children // }, isCollapse() { - return !this.sidebar.opened; + return false || !this.sidebar.opened; }, }, data(){ diff --git a/src/views/send/cancel.vue b/src/views/send/cancel.vue index 29a449d..a59a7ce 100644 --- a/src/views/send/cancel.vue +++ b/src/views/send/cancel.vue @@ -26,7 +26,7 @@ - + @@ -258,8 +439,27 @@ export default { } .myEcharts { position: relative; + display: inline-block; + height: 300px; + width: 50%; + // margin: 20px; +} +.fetch-block { + position: relative; + display: inline-block; + width: 200px; height: 300px; - width: calc(100% - 100px); - margin: 50px; + overflow: hidden; + padding: 20px 0; + p { + line-height: 25px; + color: darkgray; + font-size: 15px; + font-weight: 400; + cursor: pointer; + &:hover { + color: #4395ff; + } + } } diff --git a/src/views/systemManage/whiteList.vue b/src/views/systemManage/whiteList.vue index 6a1a88f..ecd2e57 100644 --- a/src/views/systemManage/whiteList.vue +++ b/src/views/systemManage/whiteList.vue @@ -15,7 +15,7 @@ - + @@ -46,9 +46,14 @@ - - + + + + + + + +