修改
This commit is contained in:
parent
e84f10322b
commit
7f9c0260c3
@ -508,8 +508,8 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
console.log(this.form);
|
this.form.classifySort = Number(this.form.classifySort);
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateInfo(this.form).then((response) => {
|
updateInfo(this.form).then((response) => {
|
||||||
@ -523,7 +523,6 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
addInfo(this.form).then((response) => {
|
addInfo(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
@ -539,7 +538,7 @@ export default {
|
|||||||
console.log(row);
|
console.log(row);
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm("是否确认删除?")
|
.confirm("是否确认删除?")
|
||||||
.then(function () {
|
.then(function() {
|
||||||
return delInfo(ids);
|
return delInfo(ids);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -553,11 +552,11 @@ export default {
|
|||||||
this.download(
|
this.download(
|
||||||
"classify/info/export",
|
"classify/info/export",
|
||||||
{
|
{
|
||||||
...this.queryParams,
|
...this.queryParams
|
||||||
},
|
},
|
||||||
`info_${new Date().getTime()}.xlsx`
|
`info_${new Date().getTime()}.xlsx`
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -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.number="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"
|
||||||
@ -516,9 +516,9 @@ export default {
|
|||||||
nurseItemlist: [],
|
nurseItemlist: [],
|
||||||
// 泉医到家系统海报模块信息(包含咨询简介信息)表格数据
|
// 泉医到家系统海报模块信息(包含咨询简介信息)表格数据
|
||||||
poserList: [],
|
poserList: [],
|
||||||
// 存储新上传的图片数组
|
// 存储新上传的图片数组
|
||||||
deletNewImgs:[],
|
deletNewImgs: [],
|
||||||
objitem:[],
|
objitem: [],
|
||||||
nurseItemList: [],
|
nurseItemList: [],
|
||||||
// 弹出层判断新增还是修改
|
// 弹出层判断新增还是修改
|
||||||
isEditFlag: false,
|
isEditFlag: false,
|
||||||
@ -549,17 +549,15 @@ export default {
|
|||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {
|
form: {
|
||||||
nurseStationId: null,
|
|
||||||
nurseTypeId: null,
|
nurseTypeId: null,
|
||||||
nurseItemName: "",
|
|
||||||
nurseItemContent: "",
|
nurseItemContent: "",
|
||||||
advanceAppointDuration: "",
|
advanceAppointDuration: "",
|
||||||
itemPictureUrl: "",
|
itemPictureUrl: "",
|
||||||
sort: "",
|
poserSort: null,
|
||||||
nurseStationId: "",
|
nurseStationId: null,
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
nurseItemName: "请选择所属护理项目",
|
nurseItemName: "请选择所属护理项目",
|
||||||
nurseItemId: ""
|
nurseItemId: null
|
||||||
},
|
},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
@ -625,7 +623,7 @@ export default {
|
|||||||
],
|
],
|
||||||
//页面链接
|
//页面链接
|
||||||
stationid: "",
|
stationid: "",
|
||||||
imgone:"",
|
imgone: "",
|
||||||
nurseitemid: "",
|
nurseitemid: "",
|
||||||
homenumber: false,
|
homenumber: false,
|
||||||
videourl: "",
|
videourl: "",
|
||||||
@ -634,7 +632,6 @@ export default {
|
|||||||
videoUploadPercent: "",
|
videoUploadPercent: "",
|
||||||
//进度条的进度,
|
//进度条的进度,
|
||||||
isShowUploadVideo: false,
|
isShowUploadVideo: false,
|
||||||
|
|
||||||
//显示上传按钮
|
//显示上传按钮
|
||||||
videoForm: {
|
videoForm: {
|
||||||
showVideoPath: "" //回显的变量
|
showVideoPath: "" //回显的变量
|
||||||
@ -812,13 +809,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//图片传值过来接收
|
//图片传值过来接收
|
||||||
imgUrl(imgUrl) {
|
imgUrl(imgUrl) {
|
||||||
console.log(JSON.parse(imgUrl),'url');
|
let imgUrlData = JSON.parse(imgUrl);
|
||||||
let imgUrlData=JSON.parse(imgUrl)
|
|
||||||
// 存贮新上传的图片数组
|
// 存贮新上传的图片数组
|
||||||
this.deletNewImgs.push(imgUrlData.posterPictureUrl)
|
this.deletNewImgs.push(imgUrlData.posterPictureUrl);
|
||||||
console.log(this.deletNewImgs,'触发了上传时间')
|
this.objitem.push(imgUrlData.posterPictureUrl);
|
||||||
this.objitem.push(imgUrlData.posterPictureUrl)
|
|
||||||
console.log(this.objitem)
|
|
||||||
},
|
},
|
||||||
imgUrl2(imgUrl) {
|
imgUrl2(imgUrl) {
|
||||||
this.videoForm.showVideoPath = baseurl + imgUrl;
|
this.videoForm.showVideoPath = baseurl + imgUrl;
|
||||||
@ -833,22 +827,21 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
console.log(this.objitem)
|
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
if (this.form.posterPictureUrlLists) {
|
if (this.form.posterPictureUrlLists) {
|
||||||
this.form.posterPictureUrlLists.forEach((e) => {
|
this.form.posterPictureUrlLists.forEach(e => {
|
||||||
obj.pictureUrlList.push(e.posterPictureUrl);
|
obj.pictureUrlList.push(e.posterPictureUrl);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log(this.deletNewImgs)
|
console.log(this.deletNewImgs);
|
||||||
if(obj.pictureUrlList.length>0){
|
if (obj.pictureUrlList.length > 0) {
|
||||||
updatePicture({pictureUrlList:this.deletNewImgs}).then((res) => {
|
updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.deletNewImgs=[],
|
this.deletNewImgs = [];
|
||||||
|
|
||||||
this.nurseItemquery.nurseStationId = null;
|
this.nurseItemquery.nurseStationId = null;
|
||||||
this.imgs = { pictureUrlList: [] };
|
this.imgs = { pictureUrlList: [] };
|
||||||
this.open = false;
|
this.open = false;
|
||||||
@ -875,6 +868,7 @@ export default {
|
|||||||
nurseItemName: "请选择所属护理项目",
|
nurseItemName: "请选择所属护理项目",
|
||||||
nurseItemId: null
|
nurseItemId: null
|
||||||
};
|
};
|
||||||
|
this.deletNewImgs = [];
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
@ -885,7 +879,6 @@ export default {
|
|||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.nurseItemquery.pageNum = 1;
|
this.nurseItemquery.pageNum = 1;
|
||||||
this.nurseItemquery.pageSize = 10;
|
this.nurseItemquery.pageSize = 10;
|
||||||
// this.stationid = "";
|
|
||||||
this.nurseitemid = "";
|
this.nurseitemid = "";
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.queryParams.pageSize = 10;
|
this.queryParams.pageSize = 10;
|
||||||
@ -928,28 +921,17 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updatePoser(this.form).then((response) => {
|
updatePoser(this.form).then(response => {
|
||||||
// var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
// var obj = { pictureUrlList: [] };
|
|
||||||
// if (this.form.posterPictureUrlLists) {
|
|
||||||
// this.form.posterPictureUrlLists.forEach((e) => {
|
|
||||||
// obj.pictureUrlList.push(e.posterPictureUrl);
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
// updatePicture(obj).then((res) => {
|
|
||||||
// this.open = false;
|
|
||||||
// });
|
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
addPoser(this.form).then(response => {
|
||||||
addPoser(this.form).then((response) => {
|
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|||||||
@ -704,7 +704,7 @@ export default {
|
|||||||
classifyName: "请选择护理项目分类",
|
classifyName: "请选择护理项目分类",
|
||||||
nurseClassifyId: "",
|
nurseClassifyId: "",
|
||||||
appointmentLimitCount: null,
|
appointmentLimitCount: null,
|
||||||
appointmentTimeInterval: "",
|
appointmentTimeInterval: ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
idd: 1,
|
idd: 1,
|
||||||
@ -999,7 +999,7 @@ export default {
|
|||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
classifyName: "请选择护理项目分类",
|
classifyName: "请选择护理项目分类",
|
||||||
nurseClassifyId: "",
|
nurseClassifyId: "",
|
||||||
appointmentLimitCount: null,
|
appointmentLimitCount: null
|
||||||
},
|
},
|
||||||
nurseStationItemConsumables: [
|
nurseStationItemConsumables: [
|
||||||
// {
|
// {
|
||||||
@ -1064,7 +1064,7 @@ export default {
|
|||||||
this.StationConsumablequeryParams.nurseStationId =
|
this.StationConsumablequeryParams.nurseStationId =
|
||||||
response.data.nurseStationItem.nurseStationId;
|
response.data.nurseStationItem.nurseStationId;
|
||||||
this.imgone = this.form.nurseStationItem.itemPictureUrl;
|
this.imgone = this.form.nurseStationItem.itemPictureUrl;
|
||||||
if (this.form.nurseStationItemPrices.length==0) {
|
if (this.form.nurseStationItemPrices.length == 0) {
|
||||||
var obj = {
|
var obj = {
|
||||||
serveDurationUnit: "",
|
serveDurationUnit: "",
|
||||||
price: "",
|
price: "",
|
||||||
@ -1086,11 +1086,6 @@ 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;
|
||||||
@ -1106,18 +1101,15 @@ export default {
|
|||||||
this.form.nurseStationItemPrices.forEach(e => {
|
this.form.nurseStationItemPrices.forEach(e => {
|
||||||
e.price = Number(e.price);
|
e.price = Number(e.price);
|
||||||
});
|
});
|
||||||
|
|
||||||
updateNurseItem(this.form).then(response => {
|
updateNurseItem(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.form.nurseStationItemPrices.forEach(e => {
|
this.form.nurseStationItemPrices.forEach(e => {
|
||||||
e.price = Number(e.price);
|
e.price = Number(e.price);
|
||||||
});
|
});
|
||||||
|
|
||||||
addNurseItem(this.form).then(response => {
|
addNurseItem(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user