maxianghua 4 년 전
부모
커밋
14552993ac
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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));