瀏覽代碼

删除了药品经营许可证/3类医疗器械经营许可证/食品经营许可证长期按钮,同时不做必填校验。2类医疗器械证上传长期有效

Guos 1 周之前
父節點
當前提交
68dbc5f514
共有 1 個文件被更改,包括 27 次插入68 次删除
  1. 27 68
      src/views/hisStore/store/index.vue

+ 27 - 68
src/views/hisStore/store/index.vue

@@ -148,28 +148,6 @@
       </el-table-column>
       <el-table-column label="地址" align="center" prop="address" width="200px"/>
       <el-table-column label="店铺电话" align="center" prop="phone" width="120px"/>
-      <!--      <el-table-column label="资质证书" align="center" prop="licenseImages" width="100px">
-              <template slot-scope="scope">
-                <el-popover
-                  placement="right"
-                  title=""
-                  trigger="hover">
-                  <img slot="reference" :src="scope.row.licenseImages" width="80px">
-                  <img :src="scope.row.licenseImages" style="max-width: 150px;">
-                </el-popover>
-              </template>
-            </el-table-column>
-            <el-table-column label="营业执照" align="center" prop="bizLicense" width="100px">
-              <template slot-scope="scope">
-                <el-popover
-                  placement="right"
-                  title=""
-                  trigger="hover">
-                  <img slot="reference" :src="scope.row.bizLicense" width="80px">
-                  <img :src="scope.row.bizLicense" style="max-width: 150px;">
-                </el-popover>
-              </template>
-            </el-table-column>-->
       <el-table-column label="审核状态" align="center" prop="isAudit">
         <template slot-scope="scope">
           <dict-tag :options="isAuditOptions" :value="scope.row.isAudit"/>
@@ -408,15 +386,7 @@
               </el-col>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="药品经营许可证是否长期有效" prop="isDrugLicensePermanent">
-                <el-switch
-                  @change="switchChange()"
-                  v-model="drugLicenseValue"
-                  active-color="#13ce66"
-                  inactive-color="#ff4949">
-                </el-switch>
-              </el-form-item>
-              <el-form-item label="药品经营许可证有效期" prop="drugLicenseExpiry" v-if="!drugLicenseValue">
+              <el-form-item label="药品经营许可证有效期" prop="drugLicenseExpiry">
                 <el-date-picker
                   v-model="form.drugLicenseExpiry"
                   type="daterange"
@@ -508,15 +478,7 @@
             </el-col>
             <el-col :span="12"></el-col>
             <el-col :span="12">
-              <el-form-item label="3类器械经营许可证是否长期有效" prop="isMedicalDevice3ExpiryPermanent">
-                <el-switch
-                  @change="switchChange()"
-                  v-model="medicalDevice3ExpiryValue"
-                  active-color="#13ce66"
-                  inactive-color="#ff4949">
-                </el-switch>
-              </el-form-item>
-              <el-form-item label="3类器械经营许可证有效期" prop="medicalDevice3Expiry" v-if="!medicalDevice3ExpiryValue">
+              <el-form-item label="3类器械经营许可证有效期" prop="medicalDevice3Expiry">
                 <el-date-picker
                   v-model="form.medicalDevice3Expiry"
                   type="daterange"
@@ -556,15 +518,7 @@
             </el-col>
             <el-col :span="12"></el-col>
             <el-col :span="12">
-              <el-form-item label="食品经营许可证是否长期有效" prop="isFoodLicenseExpiryPermanent">
-                <el-switch
-                  @change="switchChange()"
-                  v-model="foodLicenseExpiryValue"
-                  active-color="#13ce66"
-                  inactive-color="#ff4949">
-                </el-switch>
-              </el-form-item>
-              <el-form-item label="食品经营许可证有效期" prop="foodLicenseExpiry" v-if="!foodLicenseExpiryValue">
+              <el-form-item label="食品经营许可证有效期" prop="foodLicenseExpiry">
                 <el-date-picker
                   v-model="form.foodLicenseExpiry"
                   type="daterange"
@@ -920,10 +874,7 @@ export default {
       auditLogs: [],
       switchValue:false,
       switchMedicalValue:false,
-      drugLicenseValue:false,
       medicalDevice2ExpiryValue:false,
-      medicalDevice3ExpiryValue:false,
-      foodLicenseExpiryValue:false,
       medicalLicenseExpiryValue:false,
       medicalLicenseExpiryValue1:false,//协议有效期控制
       medicalLicenseExpiryValue2:false,//协议有效期控制
@@ -1010,15 +961,35 @@ export default {
         businessCode:[
           { required: true, message: "营业执照编号不能为空", trigger: "blur" }
         ],
-        drugLicense:[
+
+
+        drugLicense: [
           { required: true, message: "药品经营许可证不能为空", trigger: "blur" }
         ],
-        drugLicenseExpiry:[
-          { required: true, message: "药品经营许可证有效期不能为空", trigger: "blur" }
-        ],
         drugCode:[
           { required: true, message: "药品经营许可证编号不能为空", trigger: "blur" }
         ],
+        drugLicenseExpiry: [
+          { required: true, message: "药品经营许可证有效期不能为空", trigger: "blur" }
+        ],
+        medicalDevice3: [
+          { required: true, message: "3类器械经营许可证不能为空", trigger: "blur" }
+        ],
+        medicalDevice3Code: [
+          { required: true, message: "3类器械生产备案编号不能为空", trigger: "blur" }
+        ],
+        medicalDevice3Expiry: [
+          { required: true, message: "3类器械经营许可证有效期不能为空", trigger: "blur" }
+        ],
+        foodLicense: [
+          { required: true, message: "食品经营许可证不能为空", trigger: "blur" }
+        ],
+        foodCode: [
+          { required: true, message: "食品经营许可证编号不能为空", trigger: "blur" }
+        ],
+        foodLicenseExpiry: [
+          { required: true, message: "食品经营许可证有效期不能为空", trigger: "blur" }
+        ],
         logoUrl: [
           { required: true, message: "店铺LOGO不能为空", trigger: "blur" }
         ],
@@ -1395,18 +1366,9 @@ export default {
         if(this.form.isMedicalDevice1ExpiryPermanent == 1){
           this.switchMedicalValue = true;
         }
-        if(this.form.isDrugLicensePermanent == 1){
-          this.drugLicenseValue = true;
-        }
         if(this.form.isMedicalDevice2ExpiryPermanent == 1){
           this.medicalDevice2ExpiryValue = true;
         }
-        if(this.form.isMedicalDevice3ExpiryPermanent == 1){
-          this.medicalDevice3ExpiryValue = true;
-        }
-        if(this.form.isFoodLicenseExpiryPermanent == 1){
-          this.foodLicenseExpiryValue = true;
-        }
         if(this.form.isMedicalLicenseExpiryPermanent == 1){
           this.medicalLicenseExpiryValue = true;
         }
@@ -1536,10 +1498,7 @@ export default {
           // 处理各类许可证是否永久有效的开关状态
           formData.isBusinessLicensePermanent = this.switchValue ? 1 : 0;
           formData.isMedicalDevice1ExpiryPermanent = this.switchMedicalValue ? 1 : 0;
-          formData.isDrugLicensePermanent = this.drugLicenseValue ? 1 : 0;
           formData.isMedicalDevice2ExpiryPermanent = this.medicalDevice2ExpiryValue ? 1 : 0;
-          formData.isMedicalDevice3ExpiryPermanent = this.medicalDevice3ExpiryValue ? 1 : 0;
-          formData.isFoodLicenseExpiryPermanent = this.foodLicenseExpiryValue ? 1 : 0;
           formData.isMedicalLicenseExpiryPermanent = this.medicalLicenseExpiryValue ? 1 : 0;
           formData.isEffectivePermanent1 = this.medicalLicenseExpiryValue1 ? 1 : 0;
           formData.isEffectivePermanent2 = this.medicalLicenseExpiryValue2 ? 1 : 0;