Преглед на файлове

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

liuyaqi преди 2 години
родител
ревизия
cfc5b462f2
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 2 1
      src/components/select/SelectUser.vue
  2. 1 1
      src/views/contract/components/Edit.vue

+ 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)