chenrui 4 anos atrás
pai
commit
c85fe69c07

+ 3 - 2
src/views/purchasingManagement/bulkWarehousingOrder/productModal.vue

@@ -140,7 +140,7 @@ export default {
     }
   },
   methods: {
-    // 搜索经销商
+    // 搜索产品
     fetchUser (value) {
       console.log('fetching user', value)
       this.fetching = true
@@ -149,6 +149,7 @@ export default {
           code: value
         },
         supplierSn: this.nowData.supplierSn,
+        onlineFalg: '1', //  已上线
         pageNo: 1,
         pageSize: 20
       }
@@ -168,7 +169,7 @@ export default {
       this.form.productName = this.productData[ind].product.name
       this.form.productCode = this.productData[ind].product.code
       this.form.productOrigCode = this.productData[ind].product.origCode
-      this.form.productCost = (this.productData[ind].cost && this.productData[ind].cost!=0)?this.productData[ind].cost:this.productData[ind].cost==0?0.1:''
+      this.form.productCost = (this.productData[ind].cost && this.productData[ind].cost != 0) ? this.productData[ind].cost : this.productData[ind].cost == 0 ? 0.1 : ''
     },
     // 详情
     getDetail () {