Преглед изворни кода

食品是否长期有效显示和总后台不一致

Guos пре 2 недеља
родитељ
комит
cfb0708c93
1 измењених фајлова са 5 додато и 13 уклоњено
  1. 5 13
      src/views/store/storeConfig/userInfo.vue

+ 5 - 13
src/views/store/storeConfig/userInfo.vue

@@ -1164,24 +1164,16 @@ export default {
         } else {
         } else {
           this.form.foodLicense = [];
           this.form.foodLicense = [];
         }
         }
-        if (this.form.isBusinessLicensePermanent == 1) {
-          this.switchValue = true;
-        }
-        if (this.form.isMedicalDevice1ExpiryPermanent == 1) {
-          this.switchMedicalValue = true;
-        }
-        if (this.form.isMedicalDevice2ExpiryPermanent == 1) {
-          this.medicalDevice2ExpiryValue = true;
-        }
-        if (this.form.isMedicalLicenseExpiryPermanent == 1) {
-          this.medicalLicenseExpiryValue = true;
-        }
+        this.switchValue = this.form.isBusinessLicensePermanent == 1;
+        this.switchMedicalValue = this.form.isMedicalDevice1ExpiryPermanent == 1;
+        this.medicalDevice2ExpiryValue = this.form.isMedicalDevice2ExpiryPermanent == 1;
+        this.medicalLicenseExpiryValue = this.form.isMedicalLicenseExpiryPermanent == 1;
+        this.foodLicenseExpiryValue = this.form.isFoodLicenseExpiryPermanent == 1;
         if (this.form.drugScopeHasFrozen === undefined) {
         if (this.form.drugScopeHasFrozen === undefined) {
           this.form.drugScopeHasFrozen = null;
           this.form.drugScopeHasFrozen = null;
         }
         }
         this.open = true;
         this.open = true;
         this.title = "修改店铺";
         this.title = "修改店铺";
-
         let str = this.form.shippingType
         let str = this.form.shippingType
         this.form.shippingType = str.split(",")
         this.form.shippingType = str.split(",")
         this.form.cityIds = ((this.form.cityIds).split(",")).map(Number)
         this.form.cityIds = ((this.form.cityIds).split(",")).map(Number)