|
|
@@ -301,7 +301,15 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="营业执照失效日期" prop="businessLicenseExpire">
|
|
|
+ <el-form-item label="营业执照是否长期有效" prop="isBusinessLicensePermanent">
|
|
|
+ <el-switch
|
|
|
+ @change="switchChange()"
|
|
|
+ v-model="switchValue"
|
|
|
+ active-color="#13ce66"
|
|
|
+ inactive-color="#ff4949">
|
|
|
+ </el-switch>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="营业执照失效日期" prop="businessLicenseExpire" v-if="!switchValue">
|
|
|
<el-date-picker
|
|
|
v-model="form.businessLicenseExpire"
|
|
|
type="daterange"
|
|
|
@@ -663,6 +671,7 @@ export default {
|
|
|
components: { storeDetails },
|
|
|
data() {
|
|
|
return {
|
|
|
+ switchValue:false,
|
|
|
show: {
|
|
|
title: "店铺详情",
|
|
|
open: false,
|
|
|
@@ -927,6 +936,7 @@ export default {
|
|
|
},
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
+ this.switchValue = false;
|
|
|
this.form = {
|
|
|
storeId: null,
|
|
|
cityIds: null,
|
|
|
@@ -1015,6 +1025,9 @@ export default {
|
|
|
const storeId = row.storeId || this.ids
|
|
|
getStore(storeId).then(response => {
|
|
|
this.form = response.data;
|
|
|
+ if(this.form.isBusinessLicensePermanent == 1){
|
|
|
+ this.switchValue = true;
|
|
|
+ }
|
|
|
this.open = true;
|
|
|
this.title = "修改店铺";
|
|
|
|
|
|
@@ -1142,7 +1155,11 @@ export default {
|
|
|
return this.$message.warning("其它特殊资质,有效期开始日期或结束日期不能为空!");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ if(!!this.switchValue){
|
|
|
+ formData.isBusinessLicensePermanent = 1;
|
|
|
+ }else{
|
|
|
+ formData.isBusinessLicensePermanent = 0;
|
|
|
+ }
|
|
|
if (formData.storeId != null) {
|
|
|
updateStore(formData).then(response => {
|
|
|
this.msgSuccess("修改成功");
|
|
|
@@ -1203,7 +1220,11 @@ export default {
|
|
|
this.exportLoading = false;
|
|
|
}).catch(() => {
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ //长期有效营业执照选择
|
|
|
+ switchChange(){
|
|
|
+ console.log(this.form.isBusinessLicensePermanent);
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
@@ -1226,7 +1247,7 @@ export default {
|
|
|
color: #8c939d;
|
|
|
width: 150px;
|
|
|
height: 150px;
|
|
|
- line-height: 150px;
|
|
|
+ line-height: 150px !important;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|