From 6b6db46e77f2247f552c353b524a2ad3876eb7cf Mon Sep 17 00:00:00 2001 From: liupopo Date: Tue, 31 Jan 2023 18:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=9F=E8=8D=89=E4=B8=8A=E6=8A=A5=E6=AF=94?= =?UTF-8?q?=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supervise/purchaserequisitiontobacco.js | 34 ++ .../purchaserequisitiontobaccodetails.js | 27 ++ base-ui/src/router/index.js | 371 ++++++++++------- .../tobaccopurchaseapplicationAdd.vue | 382 ++++++++++++++++++ 4 files changed, 675 insertions(+), 139 deletions(-) create mode 100644 base-ui/src/api/supervise/purchaserequisitiontobacco.js create mode 100644 base-ui/src/api/supervise/purchaserequisitiontobaccodetails.js create mode 100644 base-ui/src/views/supervise/tobaccopurchaseapplication/tobaccopurchaseapplicationAdd.vue diff --git a/base-ui/src/api/supervise/purchaserequisitiontobacco.js b/base-ui/src/api/supervise/purchaserequisitiontobacco.js new file mode 100644 index 00000000..4f9058da --- /dev/null +++ b/base-ui/src/api/supervise/purchaserequisitiontobacco.js @@ -0,0 +1,34 @@ +import request from '@/utils/request' +// 库房提供的采购订单表 +export default { + + // 查询分页列表 + listPage: function(params) { + return request({ + url: '/purchaserequisitiontobacco/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 保存新增记录 + saveOrUpdate: function(params) { + return request({ + url: '/purchaserequisitiontobacco/save', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 通过sid查询一条记录 + fetchVoBySid: function(params) { + return request({ + url: '/purchaserequisitiontobacco/fetchVoBySid', + params: params + }) + } +} diff --git a/base-ui/src/api/supervise/purchaserequisitiontobaccodetails.js b/base-ui/src/api/supervise/purchaserequisitiontobaccodetails.js new file mode 100644 index 00000000..9486ac5e --- /dev/null +++ b/base-ui/src/api/supervise/purchaserequisitiontobaccodetails.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' +// 库房提供的采购订单表 +export default { + + // 查询分页列表 + listPage: function(params) { + return request({ + url: '/purchaserequisitiontobaccodetails/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 保存新增记录 + saveOrUpdate: function(params) { + return request({ + url: '/purchaserequisitiontobaccodetails/save', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + } +} diff --git a/base-ui/src/router/index.js b/base-ui/src/router/index.js index 797a7ac7..9dacaa50 100644 --- a/base-ui/src/router/index.js +++ b/base-ui/src/router/index.js @@ -9,17 +9,14 @@ Vue.use(Router) /* 所有角色可以访问/没有权限要求的基页 */ -export const constantRoutes = [ - { +export const constantRoutes = [{ path: '/redirect', component: Layout, hidden: true, - children: [ - { - path: '/redirect/:path(.*)', - component: () => import('@/views/redirect/index.vue') - }, - ] + children: [{ + path: '/redirect/:path(.*)', + component: () => import('@/views/redirect/index.vue') + }, ] }, { path: '/', @@ -40,121 +37,170 @@ export const constantRoutes = [ redirect: '/index', meta: { title: '首页', - }, - children: [ - { - path: '/index', - component: () => import('@/views/index.vue'), - name: 'index', - meta: { - title: '主页', - noCache: true, - affix: true, - } - }, - ] + }, + children: [{ + path: '/index', + component: () => import('@/views/index.vue'), + name: 'index', + meta: { + title: '主页', + noCache: true, + affix: true, + } + }, ] }, // 客户中心 { path: 'customer', component: Layout, - meta: { title: '客户中心' }, - children: [ - { + meta: { + title: '客户中心' + }, + children: [{ path: '/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd', component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagementAdd.vue'), name: 'PurchaseApplicationManagementAdd', - meta: { title: '采购申请管理',noCache: true } - }, - { + meta: { + title: '采购申请管理', + noCache: true + } + }, { + path: '/tobaccopurchaseapplication', + component: () => import('@/views/supervise/tobaccopurchaseapplication/tobaccopurchaseapplicationAdd.vue'), + name: 'ToBaccopurchaseApplicationAdd', + meta: { + title: '烟草采购申请', + noCache: true + } + }, { path: '/supervise/supplierbankinfo/supplierbankinfo', component: () => import('@/views/supervise/supplierbankinfo/supplierbankinfo.vue'), name: 'supplierManagement', - meta: {title: '供应商管理',noCache: true} - }, - { + meta: { + title: '供应商管理', + noCache: true + } + }, { path: 'dataReporting', component: Layout, - meta: {title: '数据上报'}, - children: [ - { + meta: { + title: '数据上报' + }, + children: [{ path: '/kucun/rkmx/index', component: () => import('@/views/kucun/rkmx/index.vue'), name: 'receiptDetailsReporting', - meta: {title: '入库明细上报',noCache: true} + meta: { + title: '入库明细上报', + noCache: true + } }, { path: '/kucun/kcxxcx/index', component: () => import('@/views/kucun/kcxxcx/index.vue'), name: 'inventoryDetailsReporting', - meta: {title: '库存明细上报',noCache: true} + meta: { + title: '库存明细上报', + noCache: true + } }, { path: '/kucun/pfsjgl/index', component: () => import('@/views/kucun/pfsjgl/index.vue'), name: 'wholesaleDataReporting', - meta: {title: '批发数据上报',noCache: true} + meta: { + title: '批发数据上报', + noCache: true + } }, { path: '/kucun/xssjgl/index.vue', component: () => import('@/views/kucun/xssjgl/index.vue'), name: 'salesDetailsReporting', - meta: {title: '销售明细上报',noCache: true} + meta: { + title: '销售明细上报', + noCache: true + } }, { path: '/404', component: () => import('@/views/404'), name: 'manufacturerPreference', - meta: {title: '仓库调拨上报',noCache: true} + meta: { + title: '仓库调拨上报', + noCache: true + } } ], }, { path: 'cgsq', component: Layout, - meta: {title: '信息查询'}, - children: [ - { + meta: { + title: '信息查询' + }, + children: [{ path: '/404', component: () => import('@/views/404'), name: 'manufacturerPreference', - meta: {title: '库存信息查询',noCache: true} + meta: { + title: '库存信息查询', + noCache: true + } }, { path: '/404', component: () => import('@/views/404'), name: 'manufacturerPreference', - meta: {title: '订单查询',noCache: true} + meta: { + title: '订单查询', + noCache: true + } }, { path: '/404', component: () => import('@/views/404'), name: 'manufacturerPreference', - meta: {title: '订单商品查询',noCache: true} + meta: { + title: '订单商品查询', + noCache: true + } }, { path: '/404', component: () => import('@/views/404'), name: 'manufacturerPreference', - meta: {title: '出入库查询',noCache: true} + meta: { + title: '出入库查询', + noCache: true + } }, { path: '/404', component: () => import('@/views/404'), name: 'manufacturerPreference', - meta: {title: '供应商查询',noCache: true} + meta: { + title: '供应商查询', + noCache: true + } }, { path: '/404', component: () => import('@/views/404'), name: 'manufacturerPreference', - meta: {title: '仓库调拨查询',noCache: true} + meta: { + title: '仓库调拨查询', + noCache: true + } }, { path: '/404', component: () => import('@/views/404'), name: 'manufacturerPreference', - meta: {title: '配送批发查询',noCache: true} + meta: { + title: '配送批发查询', + noCache: true + } } ] } @@ -164,73 +210,99 @@ export const constantRoutes = [ { path: 'approvalCenter', component: Layout, - meta: { title: '审批中心' }, - children: [ - { + meta: { + title: '审批中心' + }, + children: [{ path: '/approvalCenter/readWork', component: () => import('@/views/approvalCenter/readWork.vue'), name: 'readWork', - meta: {title: '已阅工作',noCache: true,} + meta: { + title: '已阅工作', + noCache: true, + } }, { path: '/approvalCenter/waitingWork', component: () => import('@/views/approvalCenter/waitingWork.vue'), name: 'waitingWork', - meta: {title: '待阅工作',noCache: true} + meta: { + title: '待阅工作', + noCache: true + } }, { path: '/approvalCenter/alreadyHandledWork', component: () => import('@/views/approvalCenter/alreadyHandledWork.vue'), name: 'alreadyHandledWork', - meta: {title: '已办工作',noCache: true,} + meta: { + title: '已办工作', + noCache: true, + } }, { path: '/approvalCenter/handledWork', component: () => import('@/views/approvalCenter/handledWork.vue'), name: 'handledWork', - meta: {title: '待办工作',noCache: true} + meta: { + title: '待办工作', + noCache: true + } } ] }, - // 报表中心 - { + // 报表中心 + { path: 'reportCenter', component: Layout, - meta: { title: '报表中心' }, - children: [ - { + meta: { + title: '报表中心' + }, + children: [{ path: '/reportCenter/salesReport', component: () => import('@/views/reportCenter/salesReport.vue'), name: 'salesReport', - meta: {title: '销售报表',noCache: true,} + meta: { + title: '销售报表', + noCache: true, + } }, { path: '/reportCenter/goodsOnWay', component: () => import('@/views/reportCenter/goodsOnWay.vue'), name: 'goodsOnWay', - meta: {title: '在途商品管理表',noCache: true} + meta: { + title: '在途商品管理表', + noCache: true + } }, { path: '/reportCenter/test', component: () => import('@/views/reportCenter/test.vue'), name: 'test', - meta: {titcle: '测试数据',noCache: true} + meta: { + titcle: '测试数据', + noCache: true + } } ] }, - // 风控管理 - { + // 风控管理 + { path: 'riskControlManagement', component: Layout, - meta: { title: '风控管理' }, - children: [ - { - path: '/risk/thresholdAnalysis', - component: () => import('@/views/risk/thresholdAnalysis.vue'), - name: 'thresholdAnalysis', - meta: {title: '阀值分析',noCache: true,} + meta: { + title: '风控管理' + }, + children: [{ + path: '/risk/thresholdAnalysis', + component: () => import('@/views/risk/thresholdAnalysis.vue'), + name: 'thresholdAnalysis', + meta: { + title: '阀值分析', + noCache: true, } - ] + }] }, //监控中心 { @@ -244,43 +316,55 @@ export const constantRoutes = [ path: '/monitoringCenter/index', component: () => import('@/views/supervise/monitoringCenter/index.vue'), name: 'monitoringCenterIndex', - meta: { title: '视频监控' } + meta: { + title: '视频监控' + } }] }, - //消息中心 - { - path: 'messageCenter', - component: Layout, - meta: { title: '消息中心' }, - children: [ - { - path: '/messageCenter/unreadMessage', - component: () => import('@/views/messageCenter/unreadMessage.vue'), - name: 'unreadMessage', - meta: {title: '未读消息',noCache: true,} - }, - { - path: '/messageCenter/readMessage', - component: () => import('@/views/messageCenter/readMessage.vue'), - name: 'readMessage', - meta: {title: '已读消息',noCache: true} - } - ] - }, - // 系统管理 + //消息中心 { - path: 'systemManagement', + path: 'messageCenter', component: Layout, - meta: { title: '系统管理' }, - children: [ + meta: { + title: '消息中心' + }, + children: [{ + path: '/messageCenter/unreadMessage', + component: () => import('@/views/messageCenter/unreadMessage.vue'), + name: 'unreadMessage', + meta: { + title: '未读消息', + noCache: true, + } + }, { - path: '/404', - component: () => import('@/views/404'), - name: 'thresholdAnalysis', - meta: {title: '用户管理',noCache: true,} + path: '/messageCenter/readMessage', + component: () => import('@/views/messageCenter/readMessage.vue'), + name: 'readMessage', + meta: { + title: '已读消息', + noCache: true + } } ] }, + // 系统管理 + { + path: 'systemManagement', + component: Layout, + meta: { + title: '系统管理' + }, + children: [{ + path: '/404', + component: () => import('@/views/404'), + name: 'thresholdAnalysis', + meta: { + title: '用户管理', + noCache: true, + } + }] + }, { path: '/customer', component: Layout, @@ -297,7 +381,10 @@ export const constantRoutes = [ path: 'PurchaseApplicationManagement', component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagement.vue'), name: 'PurchaseApplicationManagement', - meta: { title: '采购申请管理', noCache: true } + meta: { + title: '采购申请管理', + noCache: true + } }, { path: 'kfpurchaserequisitionAdd', component: () => import('@/views/supervise/kfpurchaserequisition/kfpurchaserequisitionAdd.vue'), @@ -318,7 +405,9 @@ export const constantRoutes = [ }, { path: 'crksq', component: () => import('@/views/customer/index.vue'), - meta: { title: '出入库申请' }, + meta: { + title: '出入库申请' + }, children: [{ path: 'rksq', component: () => import('@/views/xiaoshou/xstj/tj.vue'), @@ -339,49 +428,53 @@ export const constantRoutes = [ }, { path: 'sjsb', component: () => import('@/views/customer/index.vue'), - meta: { title: '数据上报' }, + meta: { + title: '数据上报' + }, children: [{ - path: 'rkmxsq', - component: () => import('@/views/xiaoshou/xstj/tj.vue'), - name: 'KfPurchaseRequisitionAdd', - meta: { - title: '入库明细上传', - noCache: true - } - }, { - path: 'xsbbsq', - component: () => import('@/views/xiaoshou/xstj/tj.vue'), - name: 'KfPurchaseRequisitionInfo', - meta: { - title: '销售报表上传', - noCache: true + path: 'rkmxsq', + component: () => import('@/views/xiaoshou/xstj/tj.vue'), + name: 'KfPurchaseRequisitionAdd', + meta: { + title: '入库明细上传', + noCache: true + } + }, { + path: 'xsbbsq', + component: () => import('@/views/xiaoshou/xstj/tj.vue'), + name: 'KfPurchaseRequisitionInfo', + meta: { + title: '销售报表上传', + noCache: true + } } - } - // { - // path: 'xssb', - // component: () => import('@/views/xiaoshou/salesreport/salesreport.vue'), - // name: 'SalesReport', - // meta: { title: '销售上报', noCache: true } - // }, { - // path: 'ckdbsb', - // component: () => import('@/views/xiaoshou/warehousetransferreport/warehousetransferreport.vue'), - // name: 'WarehouseTransferReport', - // meta: { title: '仓库调拨上报', noCache: true } - // }, { - // path: 'pssb', - // component: () => import('@/views/xiaoshou/distributionreport/distributionreport.vue'), - // name: 'DistributionReport', - // meta: { title: '配送上报', noCache: true } - // } + // { + // path: 'xssb', + // component: () => import('@/views/xiaoshou/salesreport/salesreport.vue'), + // name: 'SalesReport', + // meta: { title: '销售上报', noCache: true } + // }, { + // path: 'ckdbsb', + // component: () => import('@/views/xiaoshou/warehousetransferreport/warehousetransferreport.vue'), + // name: 'WarehouseTransferReport', + // meta: { title: '仓库调拨上报', noCache: true } + // }, { + // path: 'pssb', + // component: () => import('@/views/xiaoshou/distributionreport/distributionreport.vue'), + // name: 'DistributionReport', + // meta: { title: '配送上报', noCache: true } + // } ] }, { path: 'gysgl', component: () => import('@/views/customer/index.vue'), - meta: { title: '供应商管理' }, + meta: { + title: '供应商管理' + }, children: [{ path: 'xzgys', - component: () => import('@/views/supervise/supplierbankinfo/supplierbankinfo.vue'), - name: 'SupplierBankInfoIndex', + component: () => import('@/views/supervise/supplierbankinfo/supplierbankinfo.vue'), + name: 'SupplierBankInfoIndex', meta: { title: '供应商管理', noCache: true diff --git a/base-ui/src/views/supervise/tobaccopurchaseapplication/tobaccopurchaseapplicationAdd.vue b/base-ui/src/views/supervise/tobaccopurchaseapplication/tobaccopurchaseapplicationAdd.vue new file mode 100644 index 00000000..09a209c9 --- /dev/null +++ b/base-ui/src/views/supervise/tobaccopurchaseapplication/tobaccopurchaseapplicationAdd.vue @@ -0,0 +1,382 @@ + + + + +