Forráskód Böngészése

fix:增加默认值

zh 2 éve
szülő
commit
b21966f21e
1 módosított fájl, 3 hozzáadás és 3 törlés
  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 = 1
+        }
         if (!k.cid) {
           k.cid = ''
         }