Răsfoiți Sursa

fix: 创建合同默认使用所选项目的产品数量、修复选择用户清空问题

liuyaqi 2 ani în urmă
părinte
comite
cfc5b462f2

+ 2 - 1
src/components/select/SelectUser.vue

@@ -108,6 +108,7 @@
       },
       async open() {
         this.clear()
+        this.options = []
         await this.search()
         if (this.ids.length) {
           for (const item of this.ids) {
@@ -177,7 +178,7 @@
       },
       clear() {
         this.selected = []
-        this.options = []
+        // this.options = []
         this.list = []
       },
     },

+ 1 - 1
src/views/contract/components/Edit.vue

@@ -426,8 +426,8 @@
           prodCode: item.prodCode,
           prodClass: item.prodClass,
           guidPrice: item.guidPrice,
+          count: item.prodNum,
           price: item.prodPrice ? item.prodPrice : item.guidPrice,
-          count: 1,
         }))
         this.productData.push(...projData)
         this.productData = this.removeDuplicateObj(this.productData)