手术信息

This commit is contained in:
shidongli 2024-03-08 09:50:44 +08:00
parent c9bd446b07
commit c6b239ab1c

View File

@ -440,23 +440,6 @@ export default {
this.diseaseTypeName = '请选择病种';
this.innerVisibleshow = false;
},
//
// itemdata(item) {
// if (item) {
// this.itemname = item.id
// this.form.departmentId = this.itemname
// this.form.departmentName = item.departmentName
// this.loading = true;
// this.queryParams.departmentId = this.itemname
// this.getList()
// } else {
// this.queryParams.departmentId = ''
// this.itemname = null
// this.getList()
// }
// },
//
itemdata(item) {
if (item) {
@ -479,7 +462,6 @@ export default {
let sum = 0;
this.DepartmentoList.forEach((item) => {
if (item.countNum != null) {
console.log(item.countNum)
sum += item.countNum;
}
this.count = sum;
@ -494,7 +476,6 @@ export default {
listOperationInfo(this.queryParams).then(response => {
this.operationInfoList = response.rows;
this.operationInfoList.forEach(e => {
console.log(e)
})
this.total = response.total;
this.loading = false;
@ -511,8 +492,8 @@ export default {
reset() {
this.form = {
id: null,
// departmentId: null,
// departmentName: null,
departmentId: null,
departmentName: null,
operationName: null,
operationCode: null,
operationInfo: null,
@ -554,19 +535,6 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
// console.log(this.itemname)
// if (!this.itemname) {
// this.$modal.msgError("");
// } else {
// // this.reset();
// this.form.operationName = null;
// this.form.operationInfo = null;
// this.open = true;
// this.title = "";
// if (this.title == "") {
// this.disabled = false;
// }
// }
this.reset();
if (this.itemname) {
this.form.departmentName = this.departmentName
@ -589,11 +557,8 @@ export default {
this.open = true;
const id = row.id || this.ids
getOperationInfo(id).then(response => {
this.form.operationInfo = response.data.operationInfo;
this.form.operationName = response.data.operationName;
this.form.departmentId = response.data.departmentId;
this.form.departmentName = response.data.departmentName;
this.form.id = response.data.id;
this.form = response.data;
this.departmentName = response.data.departmentName;
this.open = true;
this.title = "修改手术信息";
if (this.title == "修改手术信息") {
@ -604,11 +569,11 @@ export default {
},
/** 提交按钮 */
submitForm() {
this.form.departmentName = this.departmentName
console.log(this.form,'0000')
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id!=null) {
this.form.departmentName = this.departmentName
updateOperationInfo(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
@ -622,7 +587,6 @@ export default {
} else {
this.form.departmentName = this.departmentName
console.log(this.form,'1111')
}
addOperationInfo(this.form).then(response => {
this.$modal.msgSuccess("新增成功");