Explorar o código

fix:默认1改为0

zh %!s(int64=2) %!d(string=hai) anos
pai
achega
bd9b99294f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/views/supply/engin/components/engin_form.vue

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

@@ -859,8 +859,8 @@ 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 = ''