linwenxin 1 год назад
Родитель
Сommit
cd81e49410

+ 3 - 3
src/views/auxiliaryFittings/purchasingManagement/mixins/form_tpl.js

@@ -843,7 +843,7 @@ export default {
     qkrow(row, data = {}) {
       ["goodsStockUnit", "recQty", "retQty", "retValue", "goodsCode", "goodsSpecification", "brand", "productCategory", "cost", "costValue", "stockQty"].map(key => {
         if (row[key] !== undefined) {
-          row[key] = data[key]
+          row[key] = data[key] !== undefined ? data[key] : ""
         }
       })
     },
@@ -905,8 +905,8 @@ export default {
       this.$data.formData = this.$options.data().formData
       this.formDialog = false
     },
-    jiaoyan(){
-      this.$refs.formRef.validate((valid, invalidFields, errLabels) => {},false)
+    jiaoyan() {
+      this.$refs.formRef.validate((valid, invalidFields, errLabels) => { }, false)
     },
   },
 }