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