From 30cb048a8c55dcd2ddd5606b8c5291467a50a4f8 Mon Sep 17 00:00:00 2001 From: x_z Date: Tue, 14 Feb 2023 15:03:00 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B7=BB=E5=8A=A0=E5=BA=93=E5=AD=98=E6=91=86?= =?UTF-8?q?=E6=94=BE=E5=8A=9F=E8=83=BD=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E5=BA=93=E5=AD=98=E7=BB=9F=E8=AE=A1=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E8=AF=A6=E6=83=85=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inventory/invPlace.js | 25 ++ src/views/inventory/InvPlace.vue | 319 ++++++++++++++++++-------- src/views/inventory/InvStatistics.vue | 64 +----- 3 files changed, 249 insertions(+), 159 deletions(-) create mode 100644 src/api/inventory/invPlace.js diff --git a/src/api/inventory/invPlace.js b/src/api/inventory/invPlace.js new file mode 100644 index 00000000..9c9cf58e --- /dev/null +++ b/src/api/inventory/invPlace.js @@ -0,0 +1,25 @@ +import axios from "../../utils/request"; + +export function getPlaceDetailList(params) { + return axios({ + url: "/spms/inv/product/getPlaceDetailList", + method: "get", + params: params + }); +} + +export function bindInvSpace(data) { + return axios({ + url: "/spms/inv/product/bindInvSpace", + method: "post", + data: data + }); +} + +export function checkCodeSpace(data) { + return axios({ + url: "/spms/inv/product/checkCodeSpace", + method: "post", + data: data + }); +} diff --git a/src/views/inventory/InvPlace.vue b/src/views/inventory/InvPlace.vue index 6e5319ca..62cec8e7 100644 --- a/src/views/inventory/InvPlace.vue +++ b/src/views/inventory/InvPlace.vue @@ -31,7 +31,7 @@ 重置 查询 - 摆放 + 摆放 @@ -61,8 +61,112 @@ > + + + + + 提交 + + + + + + + + {{ item.name }} + + + + + + + + + + {{ item.name }} + + + + + + + + + + + + + 添加 + + + + + + + + + + + + + + @@ -70,8 +174,7 @@ diff --git a/src/views/inventory/InvStatistics.vue b/src/views/inventory/InvStatistics.vue index 54512f3c..5d6e48d9 100644 --- a/src/views/inventory/InvStatistics.vue +++ b/src/views/inventory/InvStatistics.vue @@ -127,17 +127,6 @@ show-overflow-tooltip width="120"> - - - - - - - - @@ -173,7 +147,7 @@ import {isBlank} from "@/utils/strUtil"; import invProductsDetail from "@/views/inventory/InvProductsDetail.vue"; export default { - name: "InvProducts", + name: "InvStatistics", data() { return { showSearch: true, @@ -193,26 +167,9 @@ export default { total: 0, invList: [], loading: false, - deleteData: { - id: "", - status: 10, - }, corpLoading: false, - dialogVisible: false, fromOptions: [], showSup: false, - detailDialogVisible: false, - inputQuery: { - cpmctymc: null, - nameCode: null, - batchNo: null, - ggxh: null, - productionDate: null, - expireDate: null, - supId: null, - deptCode: null, - invCode: null - } }; }, methods: { @@ -308,27 +265,8 @@ export default { this.findMethod(value); } }, - detailDialog(row) { - this.detailDialogVisible = true; - this.inputQuery = { - relId: row.relIdFk, - cpmctymc: row.cpmctymc, - nameCode: row.nameCode, - batchNo: row.batchNo, - ggxh: row.ggxh, - productionDate: row.productionDate, - expireDate: row.expireDate, - supId: row.supId, - deptCode: row.deptCode, - invCode: row.invCode - } - }, - closeDetailDialog() { - this.detailDialogVisible = false; - }, }, components: { - invProductsDetail }, mounted() { document.body.ondrop = function (event) {