From 85f98bafda086c56581155962887cf9635bee408 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Thu, 15 Aug 2024 09:16:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=87=BA=E5=BA=93=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/outStorage/outStorage.js | 185 +++-- src/api/system/dictType/index.js | 26 +- src/router/index.js | 38 +- .../outStorage/alreadyOutStorage/index.vue | 649 +++++++++++++++ .../{ => outStorage}/distributionAdd.vue | 0 .../outStorage/{ => outStorage}/index.vue | 0 .../{ => outStorage}/outStorageAdd.vue | 0 .../{ => outStorage}/outStorageInfo.vue | 0 .../relation/chooseproducts.vue | 0 src/views/outStorage/toAllocated/index.vue | 765 ++++++++++++++++++ src/views/outStorage/toOutStorage/index.vue | 649 +++++++++++++++ src/views/outStorage/zeroPicking/index.vue | 649 +++++++++++++++ src/views/system/menuManage/menuManage.vue | 181 +++-- .../system/userManage/userManageList.vue | 9 +- 14 files changed, 3008 insertions(+), 143 deletions(-) create mode 100644 src/views/outStorage/alreadyOutStorage/index.vue rename src/views/outStorage/{ => outStorage}/distributionAdd.vue (100%) rename src/views/outStorage/{ => outStorage}/index.vue (100%) rename src/views/outStorage/{ => outStorage}/outStorageAdd.vue (100%) rename src/views/outStorage/{ => outStorage}/outStorageInfo.vue (100%) rename src/views/outStorage/{ => outStorage}/relation/chooseproducts.vue (100%) create mode 100644 src/views/outStorage/toAllocated/index.vue create mode 100644 src/views/outStorage/toOutStorage/index.vue create mode 100644 src/views/outStorage/zeroPicking/index.vue diff --git a/src/api/outStorage/outStorage.js b/src/api/outStorage/outStorage.js index 1ef43dd..ca57f77 100644 --- a/src/api/outStorage/outStorage.js +++ b/src/api/outStorage/outStorage.js @@ -5,7 +5,8 @@ export default { // 查询分页列表 listPage: function(params) { return request({ - url: '/wms/apiadmin/WmsOutBill/listPage', + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseoutbill/listPage', method: 'post', data: params, headers: { @@ -14,86 +15,172 @@ export default { }) }, - // 详情初始化 - init: function(data) { + // 订单商品明细 + orderGoodsDetail: function(data) { return request({ - url: '/wms/apiadmin/WmsOutBill/details', + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseoutbilldetail/selectDetailsByBillSid', method: 'get', data: data }); }, - // 初始配货单 - initDistribution: function(data) { + // 库位分配 + orderRackDistributionDetail: function(data) { return request({ - url: '/wms/apiadmin/WmsDistributeBill/getInit', + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinvoice/details', method: 'get', data: data }); }, - - // 新增、保存 - save: function(data) { + // 收货地址 + orderReceivingAddressDetail: function(data) { return request({ - url: '/wms/apiadmin/WmsOutBill/saveOrUpdateOutBill', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinvoice/details', + method: 'get', + data: data }); }, - // 确认 - submit: function(data) { + // 发票明细 + orderInvoiveDetail: function(data) { return request({ - url: '/wms/apiadmin/WmsOutBill/confirm', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinvoice/details', + method: 'get', + data: data }); }, - - - - // 新增、保存 配货单 - saveDistribution: function(data) { + // 保存发票明细 + saveOrderInvoive: function(data) { return request({ - url: '/wms/apiadmin/WmsDistributeBill/saveOrUpdateBill', + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/apiadmin/warehouseinvoice/saveOrUpdate', method: 'post', - data: data, + data: params, headers: { 'Content-Type': 'application/json' } }); }, - - deleteBySids: function(data) { + // 备注/留言 + orderRemarksDetail: function(data) { return request({ - url: '/wms/apiadmin/WmsShelfBill/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinvoice/details', + method: 'get', + data: data + }); }, - // 查询分页列表 - getGoodsListPage: function(params) { + // 操作记录 + orderOperationDetail: function(data) { return request({ - url: '/wms/apiadmin/WmsOutBill/getInventoryList', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinvoice/details', + method: 'get', + data: data + }); }, + + // // 查询分页列表 + // listPage: function(params) { + // return request({ + // url: '/wms/apiadmin/WmsOutBill/listPage', + // method: 'post', + // data: params, + // headers: { + // 'Content-Type': 'application/json' + // } + // }) + // }, + + // // 详情初始化 + // init: function(data) { + // return request({ + // url: '/wms/apiadmin/WmsOutBill/details', + // method: 'get', + // data: data + // }); + // }, + + // // 初始配货单 + // initDistribution: function(data) { + // return request({ + // url: '/wms/apiadmin/WmsDistributeBill/getInit', + // method: 'get', + // data: data + // }); + // }, + + + // // 新增、保存 + // save: function(data) { + // return request({ + // url: '/wms/apiadmin/WmsOutBill/saveOrUpdateOutBill', + // method: 'post', + // data: data, + // headers: { + // 'Content-Type': 'application/json' + // } + // }); + // }, + + // // 确认 + // submit: function(data) { + // return request({ + // url: '/wms/apiadmin/WmsOutBill/confirm', + // method: 'post', + // data: data, + // headers: { + // 'Content-Type': 'application/json' + // } + // }); + // }, + + + + + // // 新增、保存 配货单 + // saveDistribution: function(data) { + // return request({ + // url: '/wms/apiadmin/WmsDistributeBill/saveOrUpdateBill', + // method: 'post', + // data: data, + // headers: { + // 'Content-Type': 'application/json' + // } + // }); + // }, + + + // deleteBySids: function(data) { + // return request({ + // url: '/wms/apiadmin/WmsShelfBill/delBySids', + // method: 'DELETE', + // data: data, + // headers: { + // 'Content-Type': 'application/json' + // } + // }) + // }, + + // // 查询分页列表 + // getGoodsListPage: function(params) { + // return request({ + // url: '/wms/apiadmin/WmsOutBill/getInventoryList', + // method: 'post', + // data: params, + // headers: { + // 'Content-Type': 'application/json' + // } + // }) + // }, + } diff --git a/src/api/system/dictType/index.js b/src/api/system/dictType/index.js index 253e8e1..5339e07 100644 --- a/src/api/system/dictType/index.js +++ b/src/api/system/dictType/index.js @@ -20,7 +20,11 @@ export function putDictType(data) { return request({ url: '/wms/apiadmin/dicttypes/update/' + data.sid, method: 'POST', - data: qs.stringify(data) + data: data, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } }) } @@ -30,7 +34,10 @@ export function saveDictType(data) { url: '/wms/apiadmin/dicttypes/save', method: 'POST', data: data, - headers: { 'Content-Type': 'application/json', 'token': tokens } + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } }) } @@ -49,7 +56,10 @@ export function saveMappingList(data) { url: '/wms/apiadmin/sysmapping/saveMappingList', method: 'POST', data: data, - headers: { 'Content-Type': 'application/json', 'token': tokens } + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } }) } @@ -59,7 +69,10 @@ export function selectMappingListInfo(data) { url: '/wms/apiadmin/sysmapping/selectMappingListInfo', method: 'post', data: data, - headers: { 'Content-Type': 'application/json', 'token': tokens } + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } }) } @@ -69,6 +82,9 @@ export function delDictType(data) { url: '/wms/apiadmin/dicttypes/delete/' + data.sid, method: 'DELETE', data: data, - headers: { 'Content-Type': 'application/json', 'token': tokens } + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } }) } diff --git a/src/router/index.js b/src/router/index.js index ec1ced8..73d43d5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -226,13 +226,49 @@ export const constantRoutes = [ }, children: [{ path: '/outStorage/index', - component: () => import('@/views/outStorage/index'), + component: () => import('@/views/outStorage/outStorage/index'), name: 'OutStorage', meta: { title: '出库单管理', noCache: true } }, + { + path: '/toAllocated/index', + component: () => import('@/views/outStorage/toAllocated/index'), + name: 'ToAllocated', + meta: { + title: '待分配', + noCache: true + } + }, + { + path: '/zeroPicking/index', + component: () => import('@/views/outStorage/zeroPicking/index'), + name: 'ZeroPicking', + meta: { + title: '零拣打单', + noCache: true + } + }, + { + path: '/toOutStorage/index', + component: () => import('@/views/outStorage/toOutStorage/index'), + name: 'ToOutStorage', + meta: { + title: '待出库', + noCache: true + } + }, + { + path: '/alreadyOutStorage/index', + component: () => import('@/views/outStorage/alreadyOutStorage/index'), + name: 'AlreadyOutStorage', + meta: { + title: '已出库', + noCache: true + } + }, ] }, diff --git a/src/views/outStorage/alreadyOutStorage/index.vue b/src/views/outStorage/alreadyOutStorage/index.vue new file mode 100644 index 0000000..e9bd4cc --- /dev/null +++ b/src/views/outStorage/alreadyOutStorage/index.vue @@ -0,0 +1,649 @@ + + + + diff --git a/src/views/outStorage/distributionAdd.vue b/src/views/outStorage/outStorage/distributionAdd.vue similarity index 100% rename from src/views/outStorage/distributionAdd.vue rename to src/views/outStorage/outStorage/distributionAdd.vue diff --git a/src/views/outStorage/index.vue b/src/views/outStorage/outStorage/index.vue similarity index 100% rename from src/views/outStorage/index.vue rename to src/views/outStorage/outStorage/index.vue diff --git a/src/views/outStorage/outStorageAdd.vue b/src/views/outStorage/outStorage/outStorageAdd.vue similarity index 100% rename from src/views/outStorage/outStorageAdd.vue rename to src/views/outStorage/outStorage/outStorageAdd.vue diff --git a/src/views/outStorage/outStorageInfo.vue b/src/views/outStorage/outStorage/outStorageInfo.vue similarity index 100% rename from src/views/outStorage/outStorageInfo.vue rename to src/views/outStorage/outStorage/outStorageInfo.vue diff --git a/src/views/outStorage/relation/chooseproducts.vue b/src/views/outStorage/outStorage/relation/chooseproducts.vue similarity index 100% rename from src/views/outStorage/relation/chooseproducts.vue rename to src/views/outStorage/outStorage/relation/chooseproducts.vue diff --git a/src/views/outStorage/toAllocated/index.vue b/src/views/outStorage/toAllocated/index.vue new file mode 100644 index 0000000..9a69dff --- /dev/null +++ b/src/views/outStorage/toAllocated/index.vue @@ -0,0 +1,765 @@ + + + + diff --git a/src/views/outStorage/toOutStorage/index.vue b/src/views/outStorage/toOutStorage/index.vue new file mode 100644 index 0000000..e9bd4cc --- /dev/null +++ b/src/views/outStorage/toOutStorage/index.vue @@ -0,0 +1,649 @@ + + + + diff --git a/src/views/outStorage/zeroPicking/index.vue b/src/views/outStorage/zeroPicking/index.vue new file mode 100644 index 0000000..e9bd4cc --- /dev/null +++ b/src/views/outStorage/zeroPicking/index.vue @@ -0,0 +1,649 @@ + + + + diff --git a/src/views/system/menuManage/menuManage.vue b/src/views/system/menuManage/menuManage.vue index 0d7c7d7..a7e2517 100644 --- a/src/views/system/menuManage/menuManage.vue +++ b/src/views/system/menuManage/menuManage.vue @@ -92,12 +92,10 @@ - + - + @@ -106,7 +104,7 @@ 类型分类 - + 目录 菜单 按钮 @@ -116,43 +114,43 @@ 菜单名称 - + 路由名称 - + 路由路径 - + 菜单图片 - + 组件路径 - + 权限标识 - + 是否手机端权限 - + @@ -161,7 +159,7 @@ 是否可见 - + @@ -170,7 +168,7 @@ 排序号 - + @@ -210,14 +208,13 @@ :props="defaultProps" @check-change="checkchange"> --> - + - + + @@ -320,6 +317,7 @@ data() { return { loading: false, + disabled: false, activeName: 'roleList', editDialog: false, dialogTitle: '', @@ -330,6 +328,7 @@ isShow: '1', menuName: '', menuUrl: '', + menuType: "0", pageAliasName: '', pageName: '', pageUrl: '', @@ -338,9 +337,9 @@ remarks: '', sortNo: 0, cid: '', - sourceName: 'wms', + sourceName: '', phoneFunction: "0", - sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33' + sourceSid: '' }, tableData: [], page: { @@ -350,8 +349,8 @@ params: { name: '', psid: '', - sourceName: 'wms', - sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33' + // sourceName: 'wms', + // sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33' } }, rank: '1', @@ -382,35 +381,21 @@ // }) }, methods: { - departmentClick(data) { - console.log("departmentClick", data); - this.form.psid = data.sid - this.form.pname = data.name - this.$refs.Tree.visible = false - }, - checkchange(data, checked) { - console.log("checkchange", data); - console.log("checkchange", checked); - - - if (checked) { - - if (data.sid == 'd936f1ba-03c3-11ec-bf08-48452053aa33') { - this.form.psid = '0' - this.form.pname = '顶级菜单' - } else { - this.form.psid = data.psid - this.form.pname = data.pname - } - let arr = [] - arr = [data.sid]; - this.$refs.Tree.setCheckedKeys(arr); - - console.log("checkchange", this.form.pname); - console.log("checkchange", this.form.psid); - return; + nodeClick(val) { + console.log("nodeClick", val); + if (val.isSource == '1') { + // 选择的是资源 最顶级的 + this.form.psid = '0' + this.form.pname = '顶级菜单' + } else { + this.form.psid = val.sid + this.form.pname = val.name } + this.form.sourceName = val.sourceName + this.form.sourceSid = val.sourceSid + + this.$refs.treeSelect.visible = false }, @@ -469,46 +454,76 @@ }) }, handleClick(tab, event) { + console.log("handleClick", event); if (tab.name == 'addrole') { - this.form = {} - this.dialogTitle = '新增' - this.form.isShow = '1' - this.form.menuType = '0' - // this.form.psid = row.sid || 0 - this.form.sourceName = 'wms' - this.form.sourceSid = 'd936f1ba-03c3-11ec-bf08-48452053aa33' - this.form.pname = '顶级菜单' - this.form.psid = '0' - // this.sourceMenus() + // this.$refs.Tree.setCheckedKeys([]); + this.form = { + pname: '', + iconUrl: '', + isShow: '1', + menuName: '', + menuUrl: '', + menuType: "0", + pageAliasName: '', + pageName: '', + pageUrl: '', + pageUrlRedirect: '', + psid: '', + remarks: '', + sortNo: 0, + cid: '', + sourceName: '', + phoneFunction: "0", + sourceSid: '' + } + this.disabled = false + this.addMenuType = '0' + this.editMenuType = '0' + this.addPhoneFunction = "0" + this.editPhoneFunction = "0" } else { this.getPageList() } }, add(row) { - + console.log("editRow22222222222", row); + this.form = { + pname: row.name, + iconUrl: '', + isShow: '1', + menuName: '', + menuUrl: '', + menuType: "0", + pageAliasName: '', + pageName: '', + pageUrl: '', + pageUrlRedirect: '', + psid: row.sid, + remarks: '', + sortNo: 0, + cid: '', + sourceName: row.sourceName, + phoneFunction: "0", + sourceSid: row.sourceSid + } + this.disabled = true + this.dialogTitle = '新增' this.activeName = 'addrole' - // if(row == 0){ - // this.isadd = false - // }else{ - // this.isadd = true - // } - // this.dialogTitle = '新增' - // this.editDialog = true - this.form.isShow = '1' - this.form.menuType = '0' - // this.form.psid = row.sid || 0 - this.form.pname = row.name - this.form.psid = row.sid - this.form.sourceName = row.sourceName - this.form.sourceSid = row.sourceSid + if (row.isSource == '1') { this.form.psid = 0 + this.form.pname = "顶级菜单" } else { this.form.psid = row.sid + this.form.pname = row.name } - let arr = [] - arr = [row.sid]; - this.$refs.Tree.setCheckedKeys(arr); + this.addMenuType = '0' + this.editMenuType = '0' + this.addPhoneFunction = "0" + this.editPhoneFunction = "0" + // let arr = [] + // arr = [row.sid]; + // this.$refs.Tree.setCheckedKeys(arr); }, editRow(row) { @@ -519,15 +534,14 @@ this.editShow = this.form.isShow this.editMenuType = this.form.menuType - let arr = [] - arr = [row.sid]; - this.$refs.Tree.setCheckedKeys(arr); + // let arr = [] + // arr = [row.sid]; + // this.$refs.Tree.setCheckedKeys(arr); // this.form.isShow = 1 this.form.pname = row.psid == '0' ? '顶级菜单' : row.pname }, save() { - if (this.form.name == '') { this.$message({ message: '菜单名称不能为空', @@ -549,7 +563,6 @@ } if (this.form.sid) { - putMenusInfo(this.form).then(res => { this.editDialog = false this.getPageList() diff --git a/src/views/system/userManage/userManageList.vue b/src/views/system/userManage/userManageList.vue index 608644e..3d09b73 100644 --- a/src/views/system/userManage/userManageList.vue +++ b/src/views/system/userManage/userManageList.vue @@ -33,16 +33,16 @@ @@ -55,6 +55,7 @@ +