Browse Source

bug 修复

lilei 2 năm trước cách đây
mục cha
commit
6dbfd0b0c3

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1660621503716
+  "version": 1660729250537
 }

+ 6 - 13
src/views/purchasingManagement/purchaseReturnApplyForm/creatPurchaseReutn.vue

@@ -94,20 +94,13 @@ export default {
   },
   methods: {
     onChange (e) {
-      const len = e.target.value
-      if (!e.target.checked && len == 1) {
-        this.syncStep = []
-      } else {
-        // 选中
-        if (len > 0 || e.target.checked) {
-          this.syncStep = []
-          for (let i = 1; i <= len; i++) {
-            this.syncStep.push(i)
-          }
-        } else {
-          this.syncStep = []
-        }
+      this.syncStep = []
+      const checked = e.target.checked
+      const len = checked ? e.target.value : e.target.value - 1
+      for (let i = 1; i <= len; i++) {
+        this.syncStep.push(i)
       }
+      console.log(this.syncStep)
     },
     setData (data) {
       this.detail = data