护理站信息
This commit is contained in:
parent
e4f4caaa2a
commit
40101ba9b0
@ -24,7 +24,7 @@ export function FirstLevels(query) {
|
|||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询市信息
|
// 查询所属下级区域信息集合
|
||||||
export function SecondaryLevelInfo(id) {
|
export function SecondaryLevelInfo(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/system/communityInfo/getSecondaryLevelInfo?`+`parentId=${id}`,
|
url: `/system/communityInfo/getSecondaryLevelInfo?`+`parentId=${id}`,
|
||||||
|
|||||||
@ -436,7 +436,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理类型" prop="nurseStationType">
|
<el-form-item label="护理类型" prop="nurseStationType">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.nurseStationType2"
|
v-model="nurseStationType2"
|
||||||
multiple
|
multiple
|
||||||
placeholder="请选择护理类型"
|
placeholder="请选择护理类型"
|
||||||
style="width: 208px"
|
style="width: 208px"
|
||||||
@ -491,8 +491,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理站简介" prop="agencyIntroduce">
|
<el-form-item label="护理站简介" prop="agencyIntroduce">
|
||||||
<editor
|
<editor
|
||||||
:min-height="62"
|
:min-height="62"
|
||||||
style="width: 90%; margin: 0 auto;"
|
style="width: 90%; margin: 0 auto"
|
||||||
v-model="form.agencyIntroduce"
|
v-model="form.agencyIntroduce"
|
||||||
></editor>
|
></editor>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -623,7 +623,7 @@ export default {
|
|||||||
components: { stationAcatar, editor },
|
components: { stationAcatar, editor },
|
||||||
name: "Station",
|
name: "Station",
|
||||||
data() {
|
data() {
|
||||||
var checkMobile = (rule, value, cb) => {
|
var checkMobile = (rule, value, cb) => {
|
||||||
// 验证手机号的正则表达式
|
// 验证手机号的正则表达式
|
||||||
const regMobile =
|
const regMobile =
|
||||||
/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/;
|
/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/;
|
||||||
@ -637,15 +637,16 @@ export default {
|
|||||||
// 验证手机号的正则表达式
|
// 验证手机号的正则表达式
|
||||||
const regMobile =
|
const regMobile =
|
||||||
/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/;
|
/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/;
|
||||||
if (!value) { //所以当没有值的时候,我们直接callback,让他不校验直接执行下一步
|
if (!value) {
|
||||||
return cb()
|
//所以当没有值的时候,我们直接callback,让他不校验直接执行下一步
|
||||||
}else{
|
|
||||||
if (regMobile.test(value)) {
|
|
||||||
return cb();
|
return cb();
|
||||||
}else{
|
} else {
|
||||||
cb(new Error("请输入正确的联系电话"));
|
if (regMobile.test(value)) {
|
||||||
|
return cb();
|
||||||
|
} else {
|
||||||
|
cb(new Error("请输入正确的联系电话"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
imageUrl: "",
|
imageUrl: "",
|
||||||
@ -668,6 +669,7 @@ export default {
|
|||||||
//护理类型
|
//护理类型
|
||||||
nurseTypeCode: "nurse_type_code",
|
nurseTypeCode: "nurse_type_code",
|
||||||
nurseStationTypelist: [],
|
nurseStationTypelist: [],
|
||||||
|
nurseStationType2:null,
|
||||||
//shengshiqu
|
//shengshiqu
|
||||||
value3: "",
|
value3: "",
|
||||||
value2: "",
|
value2: "",
|
||||||
@ -925,13 +927,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
|
this.nurseStationType2 = [];
|
||||||
this.form = {
|
this.form = {
|
||||||
id: null,
|
id: null,
|
||||||
areaCode: null,
|
areaCode: null,
|
||||||
nurseStationCode: null,
|
nurseStationCode: null,
|
||||||
nurseStationName: null,
|
nurseStationName: null,
|
||||||
nurseStationType: null,
|
nurseStationType: null,
|
||||||
nurseStationType2: [],
|
|
||||||
agencyIntroduce: null,
|
agencyIntroduce: null,
|
||||||
nurseStationDescription: null,
|
nurseStationDescription: null,
|
||||||
longitude: null,
|
longitude: null,
|
||||||
@ -1047,17 +1050,19 @@ export default {
|
|||||||
this.form.nurseStationType.length == 0
|
this.form.nurseStationType.length == 0
|
||||||
) {
|
) {
|
||||||
} else {
|
} else {
|
||||||
this.form.nurseStationType2 = this.form.nurseStationType.split(",");
|
this.nurseStationType2 = this.form.nurseStationType.split(",");
|
||||||
this.form.nurseStationType = this.form.nurseStationType2;
|
this.form.nurseStationType = this.nurseStationType2;
|
||||||
}
|
}
|
||||||
// this.form.nurseStationLabelList = [];
|
// this.form.nurseStationLabelList = [];
|
||||||
this.title = "修改护理站信息";
|
this.title = "修改护理站信息";
|
||||||
getSubordinateRegions(response.data.areaCode).then((res) => {
|
getSubordinateRegions(response.data.areaCode).then((res) => {
|
||||||
this.value = String(res.data.provinceCode);
|
if (res.data) {
|
||||||
this.value1 = res.data.cityName;
|
this.value = String(res.data.provinceCode);
|
||||||
this.value2 = res.data.regionName;
|
this.value1 = res.data.cityName;
|
||||||
this.value3 = res.data.streetName;
|
this.value2 = res.data.regionName;
|
||||||
console.log(typeof this.value);
|
this.value3 = res.data.streetName;
|
||||||
|
console.log(typeof this.value);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -1096,17 +1101,18 @@ export default {
|
|||||||
});
|
});
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
console.log(this.form);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.form.nurseStationLabelList = this.looknurseStationLabel;
|
this.form.nurseStationLabelList = this.looknurseStationLabel;
|
||||||
this.form.nurseStationType = this.form.nurseStationType2;
|
this.form.nurseStationType = this.nurseStationType2;
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.form.areaCode = Number(this.form.areaCode);
|
this.form.areaCode = Number(this.form.areaCode);
|
||||||
this.form.nurseStationType = this.form.nurseStationType2.join(",");
|
this.form.nurseStationType = this.nurseStationType2.join(",");
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateStation(this.form).then((response) => {
|
updateStation(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user