Browse Source

fix:增加默认值

zh 2 years ago
parent
commit
e29989cc5f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/supply/engin/components/engin_form.vue

+ 3 - 3
src/views/supply/engin/components/engin_form.vue

@@ -859,9 +859,9 @@ export default {
 
       this.goodsList = this.goodsList.concat(this.rightGoodsList)
       this.goodsList.forEach(k => {
-        // if (k.qty) {
-        //   k.qty = 1
-        // }
+        if (k.qty) {
+          k.qty = 0
+        }
         if (!k.cid) {
           k.cid = ''
         }