maxianghua 4 éve
szülő
commit
14552993ac
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      src/views/basicdata/warehouse/index.vue

+ 5 - 1
src/views/basicdata/warehouse/index.vue

@@ -474,7 +474,11 @@ export default {
         }
         if (valid) {
           if (this.form.fId != null) {
-            this.form.fCharg = this.form.fCharg == '是' ? '1' : '0'
+            if(this.form.fCharg == '是'  || this.form.fCharg == '1'  ){
+              this.form.fCharg = '1'
+            } else{
+              this.form.fCharg = '0'
+            }
             let formDate= new FormData()
             formDate.append('tWarehouse',JSON.stringify(this.form));
             formDate.append('tWarehouseArea',JSON.stringify(this.contactList));