Procházet zdrojové kódy

上传商品优化2

yjwang před 23 hodinami
rodič
revize
21636f4063
1 změnil soubory, kde provedl 1 přidání a 21 odebrání
  1. 1 21
      src/views/hisStore/storeProduct/index.vue

+ 1 - 21
src/views/hisStore/storeProduct/index.vue

@@ -1033,7 +1033,7 @@
           <Material v-model="certificateArr" type="image" :num="1" :width="150" :height="150"/>
         </el-form-item>
 
-        <el-form-item v-if="form.isShow === '1' && licenseArr.length > 0" label="商品注册证/备案凭证是否长期有效" prop="isCertificatePermanent">
+        <el-form-item v-if="form.isShow === '1' && certificateArr.length > 0" label="商品注册证/备案凭证是否长期有效" prop="isCertificatePermanent">
           <el-switch
             @change="switchChange()"
             v-model="certificateValue"
@@ -1270,19 +1270,9 @@ export default {
   watch: {
     licenseArr(val) {
       this.form.license = val.join(',');
-      this.$nextTick(() => {
-        if (this.$refs.form) {
-          this.$refs.form.validateField('licenseExpire');
-        }
-      });
     },
     certificateArr(val) {
       this.form.certificate = val.join(',');
-      this.$nextTick(() => {
-        if (this.$refs.form) {
-          this.$refs.form.validateField('certificateExpire');
-        }
-      });
     },
     voucherArr(val) {
       this.form.voucher = val.join(',');
@@ -1294,11 +1284,6 @@ export default {
     },
     gmpAuthArr(val) {
       this.form.gmpAuth = val.join(',');
-      this.$nextTick(() => {
-        if (this.$refs.form) {
-          this.$refs.form.validateField('gmpAuthExpire');
-        }
-      });
     },
     imageArr: function (val) {
       this.form.image = val.join(',')
@@ -1334,11 +1319,6 @@ export default {
     },
     businessArr:function(val) {
       this.form.business = val.join(',');
-      this.$nextTick(() => {
-        if (this.$refs.form) {
-          this.$refs.form.validateField('business');
-        }
-      });
     },
     'form.cateId': {
       handler(newVal) {