Explorar o código

fix:增加默认值

zh %!s(int64=2) %!d(string=hai) anos
pai
achega
b21966f21e
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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 = ''
         }