修改
This commit is contained in:
parent
cb1662d184
commit
73a719a945
@ -26,7 +26,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="分类排序" prop="classifySort">
|
<el-form-item label="分类排序" prop="classifySort">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.classifySort"
|
v-model.number="queryParams.classifySort"
|
||||||
placeholder="请输入分类排序"
|
placeholder="请输入分类排序"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
@ -188,7 +188,7 @@
|
|||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
v-model="item.classifySort"
|
v-model.number="item.classifySort"
|
||||||
placeholder="请输入分类排序"
|
placeholder="请输入分类排序"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="10"
|
maxLength="10"
|
||||||
@ -259,7 +259,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="分类排序" prop="classifySort">
|
<el-form-item label="分类排序" prop="classifySort">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.classifySort"
|
v-model.number="form.classifySort"
|
||||||
placeholder="请输入分类排序"
|
placeholder="请输入分类排序"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="10"
|
maxLength="10"
|
||||||
@ -389,7 +389,7 @@ export default {
|
|||||||
var obj = {
|
var obj = {
|
||||||
classifyName: "",
|
classifyName: "",
|
||||||
classifyPictureUrl: "",
|
classifyPictureUrl: "",
|
||||||
classifySort: "",
|
classifySort: null,
|
||||||
idd: this.idd,
|
idd: this.idd,
|
||||||
};
|
};
|
||||||
if (this.form.nurseClassifyInfoList.length == 5) {
|
if (this.form.nurseClassifyInfoList.length == 5) {
|
||||||
@ -487,7 +487,7 @@ export default {
|
|||||||
{
|
{
|
||||||
classifyName: "",
|
classifyName: "",
|
||||||
classifyPictureUrl: "",
|
classifyPictureUrl: "",
|
||||||
classifySort: "",
|
classifySort: null,
|
||||||
idd: this.idd,
|
idd: this.idd,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -523,9 +523,7 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if(this.form.nurseClassifyInfoList[0].classifySort){
|
|
||||||
this.form.nurseClassifyInfoList[0].classifySort = parseInt(this.form.nurseClassifyInfoList[0].classifySort);
|
|
||||||
}
|
|
||||||
addInfo(this.form).then((response) => {
|
addInfo(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
|||||||
@ -199,7 +199,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="海报显示顺序" prop="poserSort">
|
<el-form-item label="海报显示顺序" prop="poserSort">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.poserSort"
|
v-model.number="form.poserSort"
|
||||||
placeholder="请输入海报显示顺序"
|
placeholder="请输入海报显示顺序"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxlength="5"
|
maxlength="5"
|
||||||
@ -948,9 +948,7 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (this.form.poserSort) {
|
|
||||||
this.form.poserSort = parseInt(this.form.poserSort);
|
|
||||||
}
|
|
||||||
addPoser(this.form).then((response) => {
|
addPoser(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
|||||||
@ -265,7 +265,7 @@
|
|||||||
maxlength="11"
|
maxlength="11"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理机构分类" required>
|
<el-form-item label="护理机构分类" >
|
||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
@click="clickinnerVisible()"
|
@click="clickinnerVisible()"
|
||||||
@ -317,7 +317,7 @@
|
|||||||
<el-form-item label="排序" prop="sort">
|
<el-form-item label="排序" prop="sort">
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="请输入排序"
|
placeholder="请输入排序"
|
||||||
v-model="form.sort"
|
v-model.number="form.sort"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="5"
|
maxLength="5"
|
||||||
/>
|
/>
|
||||||
@ -440,7 +440,7 @@
|
|||||||
<el-table-column label="排序" width="200" align="center">
|
<el-table-column label="排序" width="200" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.labelSort"
|
v-model.number="scope.row.labelSort"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="5"
|
maxLength="5"
|
||||||
></el-input>
|
></el-input>
|
||||||
@ -693,7 +693,7 @@ export default {
|
|||||||
//所属标签
|
//所属标签
|
||||||
looknurseStationLabel: [{
|
looknurseStationLabel: [{
|
||||||
labelDescription: "",
|
labelDescription: "",
|
||||||
sort: "",
|
sort: null,
|
||||||
idd: 1,
|
idd: 1,
|
||||||
},],
|
},],
|
||||||
// 护理站信息表格数据
|
// 护理站信息表格数据
|
||||||
@ -811,7 +811,7 @@ export default {
|
|||||||
if (this.looknurseStationLabel.length === 1) {
|
if (this.looknurseStationLabel.length === 1) {
|
||||||
this.looknurseStationLabel = [{
|
this.looknurseStationLabel = [{
|
||||||
labelDescription: "",
|
labelDescription: "",
|
||||||
sort: "",
|
sort: null,
|
||||||
idd: 1,
|
idd: 1,
|
||||||
},];
|
},];
|
||||||
} else {
|
} else {
|
||||||
@ -827,7 +827,7 @@ export default {
|
|||||||
this.idd++;
|
this.idd++;
|
||||||
var obj = {
|
var obj = {
|
||||||
labelDescription: "",
|
labelDescription: "",
|
||||||
sort: "",
|
sort: null,
|
||||||
idd: this.idd,
|
idd: this.idd,
|
||||||
};
|
};
|
||||||
this.looknurseStationLabel.push(obj);
|
this.looknurseStationLabel.push(obj);
|
||||||
@ -969,6 +969,8 @@ export default {
|
|||||||
this.form.classifyNameList = "";
|
this.form.classifyNameList = "";
|
||||||
this.form.nurseStationClassifyIds.forEach(f => {
|
this.form.nurseStationClassifyIds.forEach(f => {
|
||||||
let classify = this.classifylist.find(d => d.id == f)
|
let classify = this.classifylist.find(d => d.id == f)
|
||||||
|
if (!classify)
|
||||||
|
return;
|
||||||
this.form.classifyNameList += classify.classifyName + ","
|
this.form.classifyNameList += classify.classifyName + ","
|
||||||
})
|
})
|
||||||
this.form.classifyNameList = this.form.classifyNameList.substring(0, this.form.classifyNameList.length - 1)
|
this.form.classifyNameList = this.form.classifyNameList.substring(0, this.form.classifyNameList.length - 1)
|
||||||
@ -1038,7 +1040,7 @@ export default {
|
|||||||
this.open = true;
|
this.open = true;
|
||||||
this.looknurseStationLabel = [{
|
this.looknurseStationLabel = [{
|
||||||
labelDescription: "",
|
labelDescription: "",
|
||||||
sort: "",
|
sort: null,
|
||||||
idd: 1,
|
idd: 1,
|
||||||
},];
|
},];
|
||||||
this.title = "添加护理站信息";
|
this.title = "添加护理站信息";
|
||||||
@ -1188,4 +1190,4 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="分类排序" prop="classifySort">
|
<el-form-item label="分类排序" prop="classifySort">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.classifySort"
|
v-model.number="queryParams.classifySort"
|
||||||
placeholder="请输入分类排序"
|
placeholder="请输入分类排序"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
@ -181,7 +181,7 @@
|
|||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
v-model="item.classifySort"
|
v-model.number="item.classifySort"
|
||||||
placeholder="请输入分类排序"
|
placeholder="请输入分类排序"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="10"
|
maxLength="10"
|
||||||
@ -252,7 +252,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="分类排序" prop="classifySort">
|
<el-form-item label="分类排序" prop="classifySort">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.classifySort"
|
v-model.number="form.classifySort"
|
||||||
placeholder="请输入分类排序"
|
placeholder="请输入分类排序"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxLength="10"
|
maxLength="10"
|
||||||
@ -511,9 +511,7 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if(this.form.nurseClassifyInfoList[0].classifySort){
|
|
||||||
this.form.nurseClassifyInfoList[0].classifySort=parseInt(this.form.nurseClassifyInfoList[0].classifySort)
|
|
||||||
}
|
|
||||||
addStationClassify(this.form).then((response) => {
|
addStationClassify(this.form).then((response) => {
|
||||||
|
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
|||||||
@ -229,11 +229,10 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="预约人数上限" prop="nurseStationItem.appointmentLimitCount">
|
<el-form-item label="预约人数上限" prop="nurseStationItem.appointmentLimitCount">
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="请输入预约人数上限"
|
placeholder="请输入预约人数上限"
|
||||||
v-model="form.nurseStationItem.appointmentLimitCount"
|
v-model.number="form.nurseStationItem.appointmentLimitCount"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxlength="8"
|
maxlength="8"
|
||||||
/>
|
/>
|
||||||
@ -255,7 +254,7 @@
|
|||||||
<el-form-item label="排序" prop="nurseStationItem.sort">
|
<el-form-item label="排序" prop="nurseStationItem.sort">
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="请输入排序"
|
placeholder="请输入排序"
|
||||||
v-model="form.nurseStationItem.sort"
|
v-model.number="form.nurseStationItem.sort"
|
||||||
maxlength="10"
|
maxlength="10"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
/>
|
/>
|
||||||
@ -700,7 +699,8 @@ export default {
|
|||||||
nurseItemContent: "",
|
nurseItemContent: "",
|
||||||
advanceAppointDuration: "",
|
advanceAppointDuration: "",
|
||||||
itemPictureUrl: "",
|
itemPictureUrl: "",
|
||||||
sort: "",
|
sort: null,
|
||||||
|
appointmentLimitCount:null,
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
classifyName: "请选择护理项目分类",
|
classifyName: "请选择护理项目分类",
|
||||||
nurseClassifyId: ""
|
nurseClassifyId: ""
|
||||||
@ -1100,11 +1100,7 @@ export default {
|
|||||||
this.form.nurseStationItem.nurseTypeId = this.form.nurseTypeId;
|
this.form.nurseStationItem.nurseTypeId = this.form.nurseTypeId;
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if( this.form.nurseStationItem.appointmentLimitCount ==""){
|
|
||||||
this.form.nurseStationItem.appointmentLimitCount=null
|
|
||||||
}else{
|
|
||||||
this.form.nurseStationItem.appointmentLimitCount=parseInt(this.form.nurseStationItem.appointmentLimitCount)
|
|
||||||
}
|
|
||||||
if (this.form.nurseStationItem.id != null) {
|
if (this.form.nurseStationItem.id != null) {
|
||||||
this.form.nurseStationItemPrices.forEach(e => {
|
this.form.nurseStationItemPrices.forEach(e => {
|
||||||
e.nurseStationItemId = this.form.nurseStationItem.id;
|
e.nurseStationItemId = this.form.nurseStationItem.id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user