From f214412610dc3629885691223f39af5f3955b8a9 Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Fri, 5 Jul 2024 14:39:47 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=80=97=E6=9D=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../invoicing/consumable/information.vue | 7 ++++-
.../invoicing/consumable/specifications.vue | 31 ++++++-------------
2 files changed, 15 insertions(+), 23 deletions(-)
diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue
index afb3a2f..a54f163 100644
--- a/src/views/invoicing/consumable/information.vue
+++ b/src/views/invoicing/consumable/information.vue
@@ -51,7 +51,12 @@
-
+
+
+ {{scope.row.stockNumber-scope.row.stockConsume }}
+
+
+
diff --git a/src/views/invoicing/consumable/specifications.vue b/src/views/invoicing/consumable/specifications.vue
index df628b7..615448a 100644
--- a/src/views/invoicing/consumable/specifications.vue
+++ b/src/views/invoicing/consumable/specifications.vue
@@ -472,11 +472,10 @@ export default {
});
this.informationdialogshowedit = false
} else {
-
-
- let { id, consInfoId, surplusStock } = this.addSelect[0]
- // 1为共享库存
- if (this.addSelect[0].isDistribute != 1) {
+ let { id, consInfoId, surplusStock,isDistribute } = this.addSelect[0]
+ // isDistribute1为共享库存-商品,0不共享是多规格
+ // 如果isDistribute为0 是多规格的时候
+ if (isDistribute != 1) {
surplusStock = this.addSelect[0].skuList[0].surplusStock
}
let obj = {
@@ -490,6 +489,9 @@ export default {
ele.skuId = ele.id
ele.conInfoId = consInfoId
// ele.surplusStock = surplusStock
+ if (isDistribute == 1) {
+ ele.surplusStock = surplusStock
+ }
if (!ele.skuId || !ele.surplusStock) {
isgongx = true
} else {
@@ -500,18 +502,9 @@ export default {
this.$message.error('请选择耗材信息与输入耗材值')
return
}
+
obj.skuInfos = this.addSelect[0].skuList
- // } else {
-
- // if (!consInfoId) {
- // this.$message.error('请选择耗材信息')
- // return
- // }
- // if (!surplusStock) {
- // this.$message.error('请输入耗材值')
- // return
- // }
- // }
+
await posttbProskuCons(obj)
this.$message({
message: '新增成功',
@@ -519,12 +512,6 @@ export default {
});
this.ALLisDistribute = null
this.dialogshow = false
-
-
-
-
-
-
}
this.$refs[formName].resetFields()
this.getTableData()
From 79a341b2a26441a06d89c32f555902fcf93d6fb7 Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Fri, 5 Jul 2024 14:47:31 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E8=80=97=E6=9D=90=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=A3=E7=A0=81=E8=BE=93=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/invoicing/consumable/information.vue | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue
index 0b0f056..f14095b 100644
--- a/src/views/invoicing/consumable/information.vue
+++ b/src/views/invoicing/consumable/information.vue
@@ -51,10 +51,10 @@
-
+
- {{scope.row.stockNumber-scope.row.stockConsume }}
-
+ {{ scope.row.stockNumber - scope.row.stockConsume }}
+
@@ -111,6 +111,9 @@
+
+
+
@@ -391,7 +394,7 @@ export default {
},
// 选择的类型
tableDatatypetable(item) {
- this.ruleForm.conCode = item.conTypeCode
+ // this.ruleForm.conCode = item.conTypeCode
this.ruleForm.conNames = item.conTypeName
this.ruleForm.conTypeId = item.id
this.typedialogshow = false