xg
This commit is contained in:
parent
133f82a22c
commit
927f65fd4c
@ -430,7 +430,6 @@ export default {
|
||||
hardwareType: null,
|
||||
whetherRelease: null,
|
||||
},
|
||||
|
||||
// 表单参数
|
||||
form: {},
|
||||
formdetail: {},
|
||||
@ -448,8 +447,6 @@ export default {
|
||||
packageVersion: [
|
||||
{ required: true, message: "服务包版本不能为空", trigger: "blur" }
|
||||
],
|
||||
// packageVersion:[
|
||||
// ],
|
||||
packageName: [
|
||||
{ required: true, message: "服务包名称不能为空", trigger: "blur" }
|
||||
],
|
||||
@ -480,7 +477,6 @@ export default {
|
||||
]
|
||||
},
|
||||
},
|
||||
serviceWayId: '',
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@ -610,6 +606,7 @@ export default {
|
||||
} else {
|
||||
this.form.voList.push(obj);
|
||||
}
|
||||
this.$forceUpdate()
|
||||
},
|
||||
/** 查询服务包基础信息列表 */
|
||||
getList() {
|
||||
@ -628,8 +625,8 @@ export default {
|
||||
},
|
||||
// 服务方式点击事件
|
||||
changeway(e, index) {
|
||||
this.serviceWayId = this.optionsway.find(f => f.serviceWayName == e).id
|
||||
serviccontent(this.serviceWayId).then(response => {
|
||||
let serviceWayId = this.optionsway.find(f => f.serviceWayName == e).id
|
||||
serviccontent(serviceWayId).then(response => {
|
||||
this.optionscontent[index] = response.rows;
|
||||
});
|
||||
this.form.voList[index].serviceContent = null
|
||||
@ -759,7 +756,12 @@ export default {
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
updateTime: null,
|
||||
voList: [{
|
||||
serviceContent: null,
|
||||
serviceFrequencyText: null,
|
||||
serviceWayName: null,
|
||||
}]
|
||||
};
|
||||
this.optionsway = [],
|
||||
// 服务内容
|
||||
@ -894,9 +896,14 @@ export default {
|
||||
},
|
||||
// 提交
|
||||
submitForm() {
|
||||
this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId
|
||||
this.form.hospitalAgencyName = this.queryParams.hospitalAgencyName
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
if (!this.form.diseaseTypeId) {
|
||||
this.form.diseaseTypeName = ''
|
||||
}
|
||||
if (this.form.voList) {
|
||||
var obj = JSON.parse(JSON.stringify(this.form))
|
||||
obj.voList.forEach(e => {
|
||||
@ -914,6 +921,7 @@ export default {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.$refs.DepartmentList.Departmentlist()
|
||||
});
|
||||
}
|
||||
} else {
|
||||
@ -934,6 +942,7 @@ export default {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.$refs.DepartmentList.Departmentlist()
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -948,6 +957,7 @@ export default {
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.$refs.DepartmentList.Departmentlist()
|
||||
}).catch(() => { });
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
|
||||
@ -311,6 +311,7 @@ export default {
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.$refs.DepartmentList.Departmentlist()
|
||||
}).catch(() => { });
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user