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