소스 검색

fix:默认1改为0

zh 2 년 전
부모
커밋
bd9b99294f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 = ''