From f7bcb8cc856629d7db66bb6009612070a6ebf027 Mon Sep 17 00:00:00 2001 From: x_z Date: Tue, 11 Apr 2023 10:50:39 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=90=8C=E6=AD=A5=E5=BA=93=E5=AD=98=E9=A2=84?= =?UTF-8?q?=E8=AD=A6=E8=AE=BE=E7=BD=AE=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/invRemindSet.js | 16 + src/views/inventory/InvProducts.vue | 40 ++- src/views/inventory/addInvRemindSetDialog.vue | 212 +++++++++++ src/views/remind/addInvRemindSetDialog.vue | 335 ++++++++++++++++++ src/views/remind/invRemindSet.vue | 174 +++++---- src/views/remind/invRemindSetModify.vue | 108 ++---- 6 files changed, 745 insertions(+), 140 deletions(-) create mode 100644 src/views/inventory/addInvRemindSetDialog.vue create mode 100644 src/views/remind/addInvRemindSetDialog.vue diff --git a/src/api/system/invRemindSet.js b/src/api/system/invRemindSet.js index 47659f93..6ff6bc2c 100644 --- a/src/api/system/invRemindSet.js +++ b/src/api/system/invRemindSet.js @@ -23,3 +23,19 @@ export function deleteInvRemindSet(data){ data: data }); } + +export function getInfoByInvId(params) { + return axios({ + url: "/udiwms/inv/remind/set/getInfoByInvId", + method: "get", + params: params + }); +} + +export function batchAddInvRemindSet(data) { + return axios({ + url: "/udiwms/inv/remind/set/batchAddInvRemindSet", + method: "post", + data: data + }); +} diff --git a/src/views/inventory/InvProducts.vue b/src/views/inventory/InvProducts.vue index 92ab5360..f61cddbc 100644 --- a/src/views/inventory/InvProducts.vue +++ b/src/views/inventory/InvProducts.vue @@ -143,6 +143,13 @@ @@ -192,6 +213,8 @@ import {getInvProduct, deleteInvProduct, getProduct} from "@/api/inventory/invPo import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {isBlank} from "@/utils/strUtil"; import invProductsDetail from "@/views/inventory/InvProductsDetail.vue"; +import addInvRemindSetDialog from "@/views/inventory/addInvRemindSetDialog.vue"; + export default { name: "InvProducts", @@ -234,7 +257,9 @@ export default { supId: null, deptCode: null, invCode: null - } + }, + addInvRemindSetDialogVisible: false, + invId: null }; }, methods: { @@ -372,10 +397,19 @@ export default { }).catch((error) => { this.$message.error(error.message); }); - } + }, + invRemindSet(row) { + this.invId = row.id; + this.addInvRemindSetDialogVisible = true; + }, + closeRemindSetDialog() { + this.invId = null; + this.addInvRemindSetDialogVisible = false; + }, }, components: { - invProductsDetail + invProductsDetail, + addInvRemindSetDialog }, mounted() { document.body.ondrop = function (event) { diff --git a/src/views/inventory/addInvRemindSetDialog.vue b/src/views/inventory/addInvRemindSetDialog.vue new file mode 100644 index 00000000..cd7da558 --- /dev/null +++ b/src/views/inventory/addInvRemindSetDialog.vue @@ -0,0 +1,212 @@ + + + + + + diff --git a/src/views/remind/addInvRemindSetDialog.vue b/src/views/remind/addInvRemindSetDialog.vue new file mode 100644 index 00000000..0669992b --- /dev/null +++ b/src/views/remind/addInvRemindSetDialog.vue @@ -0,0 +1,335 @@ + + + + diff --git a/src/views/remind/invRemindSet.vue b/src/views/remind/invRemindSet.vue index e445901e..01b53978 100644 --- a/src/views/remind/invRemindSet.vue +++ b/src/views/remind/invRemindSet.vue @@ -1,53 +1,81 @@ - +