From 1ae8f5485ae1976a3fa9102f9b01b233aaa6a3ba Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Mon, 9 Sep 2024 08:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Common/dictcommons.js | 2 +- src/api/baseinfo/goodsShelves/goodsShelves.js | 27 + .../baseinfo/warehouseArea/warehouseArea.js | 3 - src/api/reports/inOutStorage.js | 38 -- .../historyInventory/historyInventory.js | 18 + src/api/storage/totalStatus/totalInventory.js | 43 ++ .../warehouseAreaInventory.js | 18 + src/router/index.js | 32 ++ src/views/inStorage/deliveryNotice/index.vue | 3 +- .../inStorage/deliveryNotice/receiptAdd.vue | 86 +-- .../inStorage/receivingGoods/inStorageAdd.vue | 6 +- .../outStorage/alreadyOutStorage/index.vue | 3 +- src/views/outStorage/toAllocated/index.vue | 3 +- src/views/outStorage/toOutStorage/index.vue | 3 +- src/views/outStorage/zeroPicking/index.vue | 3 +- src/views/reports/inOutStorage/index.vue | 10 +- .../historyInventory/historyInventory.vue | 297 ++++++++++ .../totalInventory/totalInventory.vue | 529 ++++++++++++++++++ .../warehouseAreaInventory.vue | 408 ++++++++++++++ 19 files changed, 1415 insertions(+), 117 deletions(-) create mode 100644 src/api/storage/historyInventory/historyInventory.js create mode 100644 src/api/storage/totalStatus/totalInventory.js create mode 100644 src/api/storage/warehouseAreaInventory/warehouseAreaInventory.js create mode 100644 src/views/storage/totalStatus/historyInventory/historyInventory.vue create mode 100644 src/views/storage/totalStatus/totalInventory/totalInventory.vue create mode 100644 src/views/storage/totalStatus/warehouseAreaInventory/warehouseAreaInventory.vue diff --git a/src/api/Common/dictcommons.js b/src/api/Common/dictcommons.js index 2886897..f1b463c 100644 --- a/src/api/Common/dictcommons.js +++ b/src/api/Common/dictcommons.js @@ -173,7 +173,7 @@ export function getWarehouses(params) { } -// 根据仓库查询库区 +// 根据仓库查询库位 export function getWarehouseareas(data) { return request({ url: '/wms/apiadmin/warehousearea/selectAll', diff --git a/src/api/baseinfo/goodsShelves/goodsShelves.js b/src/api/baseinfo/goodsShelves/goodsShelves.js index 4ea672f..dccb7e2 100644 --- a/src/api/baseinfo/goodsShelves/goodsShelves.js +++ b/src/api/baseinfo/goodsShelves/goodsShelves.js @@ -57,4 +57,31 @@ export default { data: params, }) }, + + // 根据仓库查询库位 + getWarehouseareas: function(data) { + return request({ + url: '/wms/apiadmin/warehouserack/selectAll', + method: 'get', + params: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + + + // 根据库区查询库位 + getAllTypeByAreaSid: function(data) { + return request({ + url: '/wms/apiadmin/warehouserack/getAllTypeByAreaSid', + method: 'get', + params: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + + } diff --git a/src/api/baseinfo/warehouseArea/warehouseArea.js b/src/api/baseinfo/warehouseArea/warehouseArea.js index 7a64e8b..5d6f647 100644 --- a/src/api/baseinfo/warehouseArea/warehouseArea.js +++ b/src/api/baseinfo/warehouseArea/warehouseArea.js @@ -35,8 +35,6 @@ export default { }) }, - - // 修改是否可用状态 updateIsEnable: function(sid, isEnable) { return request({ @@ -44,7 +42,6 @@ export default { }); }, - // 新增、保存 saveWarehousearea: function(data) { return request({ diff --git a/src/api/reports/inOutStorage.js b/src/api/reports/inOutStorage.js index 6e45237..cba9c49 100644 --- a/src/api/reports/inOutStorage.js +++ b/src/api/reports/inOutStorage.js @@ -27,42 +27,4 @@ export default { }); }, - - // 查询所有仓库 - getWarehouses: function(params) { - return request({ - url: '/wms/apiadmin/warehouseinfo/listAll', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 根据仓库查询库区 - getWarehouseareas: function(data) { - return request({ - url: '/wms/apiadmin/warehousearea/selectAll', - method: 'get', - params: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 根据仓库查询库位 - getWarehouserack: function(data) { - return request({ - url: '/apiadmin/warehouserack/selectAll', - method: 'get', - params: data, - headers: { - 'Content-Type': 'application/json' - } - }) - - }, - } diff --git a/src/api/storage/historyInventory/historyInventory.js b/src/api/storage/historyInventory/historyInventory.js new file mode 100644 index 0000000..1a88c95 --- /dev/null +++ b/src/api/storage/historyInventory/historyInventory.js @@ -0,0 +1,18 @@ +import request from '@/utils/request' +// 历史库存 接口文档 +export default { + // 查询分页列表 -- 历史库存 + listPage: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinventoryhistory/listPage', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + +} diff --git a/src/api/storage/totalStatus/totalInventory.js b/src/api/storage/totalStatus/totalInventory.js new file mode 100644 index 0000000..fef3bc4 --- /dev/null +++ b/src/api/storage/totalStatus/totalInventory.js @@ -0,0 +1,43 @@ +import request from '@/utils/request' +// 库存总量 接口文档 +export default { + // 查询分页列表 -- 库存总量 + listPage: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinventory/listPage', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 查询库存变化 + getWarehouseInventoryRecord: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinventoryrecord/getWarehouseInventoryRecord', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 查询库区库存 + getRackCountBySid: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinventory/getRackCountBySid', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + +} diff --git a/src/api/storage/warehouseAreaInventory/warehouseAreaInventory.js b/src/api/storage/warehouseAreaInventory/warehouseAreaInventory.js new file mode 100644 index 0000000..daee5da --- /dev/null +++ b/src/api/storage/warehouseAreaInventory/warehouseAreaInventory.js @@ -0,0 +1,18 @@ +import request from '@/utils/request' +// 库位库存 接口文档 +export default { + // 查询分页列表 -- 库位库存 + listPage: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/apiadmin/warehouseinventory/locationListPage', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + +} diff --git a/src/router/index.js b/src/router/index.js index c1b7d09..036622c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -307,6 +307,38 @@ export const constantRoutes = [ noCache: true } }, + { + path: '/totalStatus/totalInventory', + component: () => import('@/views/storage/totalStatus/totalInventory/totalInventory'), + name: 'TotalStatus', + meta: { + title: '库存总量', + icon: 'product-add', + }, + hidden: true + }, + { + path: '/totalStatus/warehouseAreaInventory', + component: () => import('@/views/storage/totalStatus/warehouseAreaInventory/warehouseAreaInventory'), + name: 'WarehouseAreaInventory', + meta: { + title: '库区库存', + icon: 'product-add', + }, + hidden: true + }, + + { + path: '/totalStatus/historyInventory', + component: () => import('@/views/storage/totalStatus/historyInventory/historyInventory'), + name: 'HistoryInventory', + meta: { + title: '历史库存', + icon: 'product-add', + }, + hidden: true + }, + ] }, diff --git a/src/views/inStorage/deliveryNotice/index.vue b/src/views/inStorage/deliveryNotice/index.vue index 979da49..228c71c 100644 --- a/src/views/inStorage/deliveryNotice/index.vue +++ b/src/views/inStorage/deliveryNotice/index.vue @@ -305,7 +305,6 @@ // import divInfo from './receiptInfo.vue' import { typeValues, - getWarehouserack } from '@/api/Common/dictcommons' export default { components: { @@ -626,7 +625,7 @@ var query = { ckSid: sid } - getWarehouserack(query).then((res) => { + req2.getWarehouseareas(query).then((res) => { if (res.success) { this.warehouseRackList2 = res.data } diff --git a/src/views/inStorage/deliveryNotice/receiptAdd.vue b/src/views/inStorage/deliveryNotice/receiptAdd.vue index 9db5cd0..0178a61 100644 --- a/src/views/inStorage/deliveryNotice/receiptAdd.vue +++ b/src/views/inStorage/deliveryNotice/receiptAdd.vue @@ -212,8 +212,8 @@ import { choiceSupplierInfo, getOrgSidByPath, - getWarehouses, - getWarehouseareas + // getWarehouses, + // getWarehouseareas } from '@/api/Common/dictcommons' export default { @@ -265,16 +265,6 @@ }, methods: { - // getOrgPathSid() { - // getOrgSidByPath({ - // orgPath: window.sessionStorage.getItem('defaultOrgPath') - // }).then((res) => { - // if (res.success) { - // this.formobj.createOrgSid = res.data - // this.formobj.useOrgSid = res.data - // } - // }) - // }, init() { getOrgSidByPath({ @@ -301,23 +291,6 @@ }, getsupplierLust() { - // getOrgSidByPath({ - // orgPath: window.sessionStorage.getItem('defaultOrgPath') - // }).then((res) => { - // if (res.success) { - // this.formobj.createOrgSid = res.data - // this.formobj.useOrgSid = res.data - // req.choiceSupplierInfo(res.data).then((resp) => { - // if (resp.success) { - // this.supplierNameList = resp.data - // console.log("aaaaaa", this.supplierNameList); - // } - // }) - - // } - // }) - - choiceSupplierInfo({ createOrgSid: this.formobj.createOrgSid }).then((resp) => { @@ -342,37 +315,37 @@ } }) }, - getWarehouseAreaList(sid) { - var query = { - ckSid: sid - } - getWarehouseareas(query).then((res) => { - if (res.success) { - this.warehouseRackList = res.data + // getWarehouseAreaList(sid) { + // var query = { + // ckSid: sid + // } + // getWarehouseareas(query).then((res) => { + // if (res.success) { + // this.warehouseRackList = res.data - console.log("aaaaaa", this.warehouseRackList); + // console.log("aaaaaa", this.warehouseRackList); - } - }) - }, - selectWarehouseName(row, val) { - console.log("selectWarehouseName", row); - console.log("selectWarehouseName", val); - const choose = this.warehouseList.filter((item) => item.sid == val) - console.log('>>>>>>>>>selectWarehouseName', choose) - row.warehouseName = choose[0].warehouseName - row.warehouseSid = choose[0].sid + // } + // }) + // }, + // selectWarehouseName(row, val) { + // console.log("selectWarehouseName", row); + // console.log("selectWarehouseName", val); + // const choose = this.warehouseList.filter((item) => item.sid == val) + // console.log('>>>>>>>>>selectWarehouseName', choose) + // row.warehouseName = choose[0].warehouseName + // row.warehouseSid = choose[0].sid - }, - selectWarehouseAreaCode(val) { - console.log("selectWarehouseAreaCode", val); + // }, + // selectWarehouseAreaCode(val) { + // console.log("selectWarehouseAreaCode", val); - const choose = this.warehouseRackList.filter((item) => item.sid == val) - console.log('>>>>>>>>>selectWarehouseAreaCode', choose) - row.warehouseRackName = choose[0].areaCode - row.warehouseRackSid = choose[0].sid + // const choose = this.warehouseRackList.filter((item) => item.sid == val) + // console.log('>>>>>>>>>selectWarehouseAreaCode', choose) + // row.warehouseRackName = choose[0].areaCode + // row.warehouseRackSid = choose[0].sid - }, + // }, batchAddAll() { @@ -682,9 +655,6 @@ this.$refs['form_obj'].clearValidate() }) this.init() - // this.getWarehouseList() - - // this.getOrgPathSid() var params = { sourceSid: row.sid } diff --git a/src/views/inStorage/receivingGoods/inStorageAdd.vue b/src/views/inStorage/receivingGoods/inStorageAdd.vue index 45d6789..097b5ec 100644 --- a/src/views/inStorage/receivingGoods/inStorageAdd.vue +++ b/src/views/inStorage/receivingGoods/inStorageAdd.vue @@ -93,9 +93,7 @@ + diff --git a/src/views/storage/totalStatus/totalInventory/totalInventory.vue b/src/views/storage/totalStatus/totalInventory/totalInventory.vue new file mode 100644 index 0000000..f549037 --- /dev/null +++ b/src/views/storage/totalStatus/totalInventory/totalInventory.vue @@ -0,0 +1,529 @@ + + + + diff --git a/src/views/storage/totalStatus/warehouseAreaInventory/warehouseAreaInventory.vue b/src/views/storage/totalStatus/warehouseAreaInventory/warehouseAreaInventory.vue new file mode 100644 index 0000000..06192d6 --- /dev/null +++ b/src/views/storage/totalStatus/warehouseAreaInventory/warehouseAreaInventory.vue @@ -0,0 +1,408 @@ + + + +