ソースを参照

项目合同新增自产品档案新增功能

qymljy 9 ヶ月 前
コミット
e0b273b483

+ 6 - 4
src/HDrpManagement/contractManage/components/productList/productBillno.vue

@@ -21,7 +21,7 @@
         <addProduct v-if="tool.checkAuth($route.name,'productBillManage') && data.status === '新建' && isLeader"
                     class="inline-16" @productAdd="queryProuctAdd" :params="paramProductAdd" :tablecolsAdd="tablecolsProductAdd" title="自产品档案添加"
                     @addSuccess="queryProuctAdds" @addProduct="queryProuctAdd" @uploadData="queryUploadData" @closeDrawer="closeDrawer"
-                    :tradefield="data.tradefield" ref="addProduct"
+                    :tradefield="data.tradefield" ref="addArchivesProduct"
         >
           <!--阀门选型-->
           <selectOption position="报价单" slot="optionSystem" style="margin-left: 10px" @handleParam="handleOptionParam"  v-if="tool.checkAuth($route.name,'optionSystem')"></selectOption>
@@ -316,10 +316,10 @@ export default {
         "items": data.map(e=>{
           return {
             "itemid": e.itemid,
-            "price": e.price,
-            "qty": e.qty,
+            "price": e.price || (e.marketprice * 1).toFixed(4),
+            "qty": e.qty || e.orderminqty,
             "marketprice":e.marketprice,
-            "discountrate":e.discountrate,
+            "discountrate":e.discountrate || 1,
             "type":'指定单价'
           }
         })
@@ -387,6 +387,7 @@ export default {
         this.$emit('onSuccess')
         this.listData()
         this.$refs.addProduct.listData()
+        this.$refs.addArchivesProduct.listData()
       })
     },
     /*单个商品添加校验*/
@@ -443,6 +444,7 @@ export default {
       })
       this.tool.showMessage(res,() => {
         this.$refs.addProduct.listData()
+        this.$refs.addArchivesProduct.listData()
         this.listData()
         this.$emit('onSuccess')
       })