|
|
@@ -963,61 +963,63 @@
|
|
|
<Material v-model="businessArr" type="image" :num="1" :width="150" :height="150"/>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item v-if="form.isShow === '1' && businessArr.length > 0" label="营业执照有效期" prop="businessExpire">
|
|
|
- <el-date-picker
|
|
|
- v-model="form.businessExpire"
|
|
|
- type="daterange"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- @change="validateBusinessExpire">
|
|
|
- </el-date-picker>
|
|
|
- <div v-if="businessExpireError" style="color: #F56C6C; font-size: 12px; line-height: 1; padding-top: 4px;">
|
|
|
- <i class="el-icon-warning"></i> {{ businessExpireError }}
|
|
|
- </div>
|
|
|
+ <el-form-item v-if="form.isShow === '1' && businessArr.length > 0" label="生产企业营业执照是否长期有效" prop="isBusinessPermanent">
|
|
|
+ <el-switch @change="switchChange()" v-model="businessValue" active-color="#13ce66" inactive-color="#ff4949" />
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item v-if="form.isShow === '1' && businessArr.length > 0 && !businessValue" prop="businessExpire">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="form.businessExpire"
|
|
|
+ type="daterange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<!--生产企业的生产许可证/备案凭证-->
|
|
|
<el-form-item v-if="form.isShow === '1'" label="生产企业的生产许可证/备案凭证" prop="license">
|
|
|
<Material v-model="licenseArr" type="image" :num="1" :width="150" :height="150"/>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item v-if="form.isShow === '1' && licenseArr.length > 0" label="生产许可证有效期" prop="licenseExpire">
|
|
|
- <el-date-picker
|
|
|
- v-model="form.licenseExpire"
|
|
|
- type="daterange"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- @change="validateLicenseExpire">
|
|
|
- </el-date-picker>
|
|
|
- <div v-if="licenseExpireError" style="color: #F56C6C; font-size: 12px; line-height: 1; padding-top: 4px;">
|
|
|
- <i class="el-icon-warning"></i> {{ licenseExpireError }}
|
|
|
- </div>
|
|
|
+ <el-form-item v-if="form.isShow === '1' && licenseArr.length > 0" label="生产企业的生产许可证/备案凭证是否长期有效" prop="isLicensePermanent">
|
|
|
+ <el-switch @change="switchChange()" v-model="licenseValue" active-color="#13ce66" inactive-color="#ff4949" />
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item v-if="form.isShow === '1' && licenseArr.length > 0 && !licenseValue" prop="licenseExpire">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="form.licenseExpire"
|
|
|
+ type="daterange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<!--商品注册证/备案凭证-->
|
|
|
<el-form-item v-if="form.isShow === '1'" label="商品注册证/备案凭证" prop="certificate">
|
|
|
<Material v-model="certificateArr" type="image" :num="1" :width="150" :height="150"/>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item v-if="form.isShow === '1' && certificateArr.length > 0" label="注册证有效期" prop="certificateExpire">
|
|
|
+ <el-form-item v-if="form.isShow === '1' && licenseArr.length > 0" label="商品注册证/备案凭证是否长期有效" prop="isCertificatePermanent">
|
|
|
+ <el-switch @change="switchChange()" v-model="certificateValue" active-color="#13ce66" inactive-color="#ff4949" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item v-if="form.isShow === '1' && certificateArr.length > 0 && !certificateValue" prop="certificateExpire">
|
|
|
<el-date-picker
|
|
|
- v-model="form.certificateExpire"
|
|
|
- type="daterange"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- @change="validateCertificateExpire">
|
|
|
+ v-model="form.certificateExpire"
|
|
|
+ type="daterange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期">
|
|
|
</el-date-picker>
|
|
|
- <div v-if="certificateExpireError" style="color: #F56C6C; font-size: 12px; line-height: 1; padding-top: 4px;">
|
|
|
- <i class="el-icon-warning"></i> {{ certificateExpireError }}
|
|
|
- </div>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
<el-form-item label="国药准字" v-if="form.productType==2" prop="prescribeCode">
|
|
|
<el-input v-model="form.prescribeCode" placeholder="请输入国药准字"/>
|
|
|
</el-form-item>
|
|
|
@@ -1228,9 +1230,9 @@ export default {
|
|
|
// 计算属性:是否显示显示器免按钮
|
|
|
shouldShowExemptDeviceButton() {
|
|
|
// 只有在显示器械编码输入框且不是III类器械时才显示按钮
|
|
|
- return this.showMedicalDeviceCode &&
|
|
|
- this.form.cateId &&
|
|
|
- this.cateIdToNameMap[this.form.cateId] &&
|
|
|
+ return this.showMedicalDeviceCode &&
|
|
|
+ this.form.cateId &&
|
|
|
+ this.cateIdToNameMap[this.form.cateId] &&
|
|
|
!this.cateIdToNameMap[this.form.cateId].includes('III类器械');
|
|
|
}
|
|
|
},
|
|
|
@@ -1399,6 +1401,9 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ certificateValue:false,
|
|
|
+ licenseValue:false,
|
|
|
+ businessValue:false,
|
|
|
storeLicenseErrorMessage: '', // 店铺许可证错误信息
|
|
|
isFormInitialized: false, // 表单是否已初始化完成
|
|
|
licenseCheckTimer: null, // 防抖定时器
|
|
|
@@ -2383,6 +2388,24 @@ export default {
|
|
|
this.qualificationArr = this.form.qualificationCertificate.split(",");
|
|
|
}
|
|
|
|
|
|
+ if(this.form.isBusinessPermanent == 1){
|
|
|
+ this.businessValue = true
|
|
|
+ }else {
|
|
|
+ this.businessValue = false
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.form.isLicensePermanent == 1){
|
|
|
+ this.licenseValue = true
|
|
|
+ }else {
|
|
|
+ this.licenseValue = false
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.form.isCertificatePermanent == 1){
|
|
|
+ this.certificateValue = true
|
|
|
+ }else {
|
|
|
+ this.certificateValue = false
|
|
|
+ }
|
|
|
+
|
|
|
const expireFieldMap = [
|
|
|
{ expireKey: 'businessExpire', startKey: 'businessStart', endKey: 'businessEnd' },
|
|
|
{ expireKey: 'licenseExpire', startKey: 'licenseStart', endKey: 'licenseEnd' },
|
|
|
@@ -2519,10 +2542,24 @@ export default {
|
|
|
this.form.qualificationCertificateEnd = this.form.qualificationExpire[1];
|
|
|
}
|
|
|
|
|
|
- // 删除长期有效标识,所有证书都需要填写有效期
|
|
|
- this.form.isBusinessPermanent = 0;
|
|
|
- this.form.isLicensePermanent = 0;
|
|
|
- this.form.isCertificatePermanent = 0;
|
|
|
+ //无语,有的时候要删除,删除了又要加回来。
|
|
|
+ if(!!this.businessValue){
|
|
|
+ this.form.isBusinessPermanent=1;
|
|
|
+ }else {
|
|
|
+ this.form.isBusinessPermanent=0;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!!this.licenseValue){
|
|
|
+ this.form.isLicensePermanent=1;
|
|
|
+ }else {
|
|
|
+ this.form.isLicensePermanent=0;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!!this.certificateValue){
|
|
|
+ this.form.isCertificatePermanent=1;
|
|
|
+ }else {
|
|
|
+ this.form.isCertificatePermanent=0;
|
|
|
+ }
|
|
|
|
|
|
// // 组装companyIds
|
|
|
// if (this.form.companyIds != null && this.form.companyIds != undefined) {
|