From ef98a62211a865156b78b2aebc646d0ba865c6bd Mon Sep 17 00:00:00 2001 From: jameszow Date: Sun, 22 Oct 2023 03:07:31 +0800 Subject: [PATCH 1/6] cancel mask-style mask-closable --- src/views/product/info/components/BatchSetPriceModal.vue | 3 +-- src/views/product/info/components/BatchSetStockModal.vue | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/views/product/info/components/BatchSetPriceModal.vue b/src/views/product/info/components/BatchSetPriceModal.vue index 1ee0fdc..44de101 100644 --- a/src/views/product/info/components/BatchSetPriceModal.vue +++ b/src/views/product/info/components/BatchSetPriceModal.vue @@ -4,8 +4,6 @@ :width="500" v-model:open="openPriceModal" :confirm-loading="confirmLoading" - :mask-style="{'top':'93px','left':'154px'}" - :mask-closable="false" @ok="handleOk" @cancel="handleCancel" style="top:30%;height: 30%;"> @@ -93,6 +91,7 @@ export default { const handleCancel = () => { close(); + }; return { diff --git a/src/views/product/info/components/BatchSetStockModal.vue b/src/views/product/info/components/BatchSetStockModal.vue index d21b083..b09df29 100644 --- a/src/views/product/info/components/BatchSetStockModal.vue +++ b/src/views/product/info/components/BatchSetStockModal.vue @@ -4,8 +4,6 @@ :width="500" v-model:open="openStockModal" :confirm-loading="confirmLoading" - :mask-style="{'top':'93px','left':'154px'}" - :mask-closable="false" @ok="handleOk" @cancel="handleCancel" style="top:30%;height: 30%;"> From a189af93905468e1d86a914445ff580df989e896 Mon Sep 17 00:00:00 2001 From: jameszow Date: Sun, 22 Oct 2023 03:08:14 +0800 Subject: [PATCH 2/6] Fix bug Data table modification column data remains unchanged --- .../info/components/ProductInfoModal.vue | 418 ++++++++++++------ 1 file changed, 276 insertions(+), 142 deletions(-) diff --git a/src/views/product/info/components/ProductInfoModal.vue b/src/views/product/info/components/ProductInfoModal.vue index 2f5a8de..73f10d1 100644 --- a/src/views/product/info/components/ProductInfoModal.vue +++ b/src/views/product/info/components/ProductInfoModal.vue @@ -9,28 +9,29 @@ switchFullscreen v-model:open="open" @cancel="handleCancel" + @ok="handleOk" style="top:20%;height: 95%;"> - + - + data-intro="名称必填,可以重复" :rules="[{ required: true}]"> + - + - + @@ -40,19 +41,19 @@ :data-step="4" data-title="单位" :data-intro="`此处支持单个单位和多单位,勾选多单位就可以切换到多单位的下拉框,多单位需要先在【计量单位】页面进行录入。 - 比如牛奶有瓶和箱两种单位,12瓶=1箱,这就构成了多单位,多单位中有个换算比例`"> + 比如牛奶有瓶和箱两种单位,12瓶=1箱,这就构成了多单位,多单位中有个换算比例`" + :rules="[{ required: true}]"> - + - + - + @@ -109,7 +109,7 @@ data-step="8" data-title="类别" data-intro="类别需要在【商品类别】页面进行录入,录入之后在此处进行调用"> + :treeData="categoryTree.value" v-model:value="formState.productCategoryId" placeholder="请选择类别"> @@ -120,7 +120,7 @@ data-title="序列号" data-intro="此处是商品的序列号开关,如果选择了有,则在采购入库单据需要录入该商品的序列号,在销售出库单据需要选择该商品的序列号进行出库"> - + @@ -131,7 +131,7 @@ - + @@ -142,17 +142,17 @@ - + - + 需要先录入单位才能激活 - @@ -215,14 +215,13 @@ @@ -232,7 +231,7 @@ - + @@ -241,28 +240,28 @@ - + - + - + - + @@ -286,12 +285,12 @@ - + @@ -313,6 +312,9 @@
上传图片
+ + example + @@ -335,24 +337,30 @@