|
@@ -133,12 +133,12 @@
|
133
|
133
|
<el-col :span="8">
|
134
|
134
|
<ul>
|
135
|
135
|
<li class="li_box">
|
136
|
|
- <el-form-item label="营业执照编码" style="width: 95%">
|
|
136
|
+ <el-form-item label="营业执照编码" label-width="120px" style="width: 95%">
|
137
|
137
|
<el-input v-model="ruleForm.businessLicenseCode"></el-input>
|
138
|
138
|
</el-form-item>
|
139
|
139
|
</li>
|
140
|
140
|
<li class="li_box">
|
141
|
|
- <el-form-item label="营业时间" style="width: 95%">
|
|
141
|
+ <el-form-item label="营业时间" label-width="120px" style="width: 95%">
|
142
|
142
|
<el-time-select
|
143
|
143
|
placeholder="开始时间"
|
144
|
144
|
v-model="ruleForm.businessStartTime"
|
|
@@ -189,7 +189,7 @@
|
189
|
189
|
</ul>
|
190
|
190
|
</el-col>
|
191
|
191
|
<el-col :span="8">
|
192
|
|
- <el-form-item label="诊所编号标识" style="width: 95%">
|
|
192
|
+ <el-form-item label="诊所编号标识" style="width: 95%" label-width="120px" prop="clinicCode">
|
193
|
193
|
<el-input v-model="ruleForm.clinicCode"></el-input>
|
194
|
194
|
</el-form-item>
|
195
|
195
|
</el-col>
|
|
@@ -338,7 +338,6 @@ import { regionData } from 'element-china-area-data'
|
338
|
338
|
import { upload } from '@/api/system/user.js'
|
339
|
339
|
import { clinicInfo } from '@/api/allApi.js'
|
340
|
340
|
import banner from "./banner.vue";
|
341
|
|
-import store from "@/store";
|
342
|
341
|
|
343
|
342
|
export default {
|
344
|
343
|
name: 'EitcErmPcEdit',
|
|
@@ -370,6 +369,9 @@ export default {
|
370
|
369
|
detailedAddress: [
|
371
|
370
|
{ required: true, message: '请输入详细地址', trigger: 'blur' }
|
372
|
371
|
],
|
|
372
|
+ clinicCode: [
|
|
373
|
+ { required: true, message: '请输入诊所编号标识', trigger: 'blur' }
|
|
374
|
+ ],
|
373
|
375
|
region: [
|
374
|
376
|
{ required: true, message: '请选择诊所所在地区', trigger: 'change' }
|
375
|
377
|
]
|
|
@@ -498,18 +500,22 @@ export default {
|
498
|
500
|
this.banner3 = ''
|
499
|
501
|
this.bannerList3 = []
|
500
|
502
|
},
|
501
|
|
- async preserve() {
|
502
|
|
- if(this.ruleForm.city.length && Array.isArray(this.ruleForm.city)) {
|
503
|
|
- this.ruleForm.city = this.ruleForm.city.join()
|
504
|
|
- }
|
505
|
|
-
|
506
|
|
- this.ruleForm.bannerPic1 = this.banner1
|
507
|
|
- this.ruleForm.bannerPic2 = this.banner2
|
508
|
|
- this.ruleForm.bannerPic3 = this.banner3
|
509
|
|
- const res = await clinicInfo(this.ruleForm)
|
510
|
|
- if (res.code !== 200) return this.$message.$error(res.msg)
|
511
|
|
- this.$message.success('保存成功')
|
512
|
|
- this.$emit('cancel')
|
|
503
|
+ preserve() {
|
|
504
|
+ this.$refs.ruleForm.validate(async(valid) => {
|
|
505
|
+ if (valid) {
|
|
506
|
+ if(this.ruleForm.city.length && Array.isArray(this.ruleForm.city)) {
|
|
507
|
+ this.ruleForm.city = this.ruleForm.city.join()
|
|
508
|
+ }
|
|
509
|
+
|
|
510
|
+ this.ruleForm.bannerPic1 = this.banner1
|
|
511
|
+ this.ruleForm.bannerPic2 = this.banner2
|
|
512
|
+ this.ruleForm.bannerPic3 = this.banner3
|
|
513
|
+ const res = await clinicInfo(this.ruleForm)
|
|
514
|
+ if (res.code !== 200) return this.$message.$error(res.msg)
|
|
515
|
+ this.$message.success('保存成功')
|
|
516
|
+ this.$emit('cancel')
|
|
517
|
+ }
|
|
518
|
+ })
|
513
|
519
|
},
|
514
|
520
|
handleStartTimeChange(value) {
|
515
|
521
|
// 当开始时间变化时,更新结束时间的最小选择时间
|