From 5acebe350e81121dc2886fd45946faa2946fb570 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Mon, 4 Nov 2024 18:32:56 +0800 Subject: [PATCH] =?UTF-8?q?11/4=20=E4=BC=98=E5=8C=961.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/business/stockOrderPrint.vue | 1 + src/views/basic/product/drug/drugAdd.vue | 10 +++++++++- .../basic/workplace/cargowWorkplaceManage.vue | 2 ++ src/views/collect/IoCreateOrder.vue | 15 +++++++++++---- 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/views/basic/business/stockOrderPrint.vue b/src/views/basic/business/stockOrderPrint.vue index 46866d9f..92d4c0e4 100644 --- a/src/views/basic/business/stockOrderPrint.vue +++ b/src/views/basic/business/stockOrderPrint.vue @@ -480,6 +480,7 @@ export default { let query = { enabled: true, vueType: "supDelivery", + productType:1 }; getLocalJoinByUser(query) .then((response) => { diff --git a/src/views/basic/product/drug/drugAdd.vue b/src/views/basic/product/drug/drugAdd.vue index 1fdd7739..b7c2050f 100644 --- a/src/views/basic/product/drug/drugAdd.vue +++ b/src/views/basic/product/drug/drugAdd.vue @@ -820,6 +820,8 @@ export default { defaultSys: null, levelUnitList: [], maxLevel: 1, + + editRowSwitch: false //产品标识编辑开关 没保存前其他编辑不能按 } }, @@ -980,6 +982,7 @@ export default { //层级保存 levelSave(row) { + this.editRowSwitch = false if (isBlank(row.nameCode)) { this.$message.error('层级标识不能为空') return @@ -1039,9 +1042,14 @@ export default { }, rowChange(index, val) { - this.selectedIndex = index + if(this.editRowSwitch == true ){ + this.$message.error('请先保存当前产品标识编辑') + return + } + this.selectedIndex = index this.isSave = false + this.editRowSwitch = true }, deleteLevel(index, row) { diff --git a/src/views/basic/workplace/cargowWorkplaceManage.vue b/src/views/basic/workplace/cargowWorkplaceManage.vue index 73985184..eddd8583 100644 --- a/src/views/basic/workplace/cargowWorkplaceManage.vue +++ b/src/views/basic/workplace/cargowWorkplaceManage.vue @@ -304,6 +304,8 @@ + +