| | |
| | | :before-close="handleClose" |
| | | :with-header="false" |
| | | size="100%" |
| | | |
| | | > |
| | | <div class="top"> |
| | | <table |
| | |
| | | </el-dialog> |
| | | <Packages ref="bbb" :baogao="baogao" /> |
| | | <Prescription ref="Pre" :preObj="preObj" /> |
| | | <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" /> |
| | | <proposal |
| | | ref="proposal" |
| | | :cusobj="cusobj" |
| | | :tjNumber="tjNumber" |
| | | @event1="eventchange($event)" |
| | | /> |
| | | <createproposal ref="createproposal" :creatobj="creatobj" /> |
| | | |
| | | <el-dialog |
| | |
| | | this.$modal.closeLoading(); |
| | | }); |
| | | }, |
| | | shanchu(row) { |
| | | /* shanchu(row) { |
| | | console.log(row); |
| | | shanchu({ |
| | | id: row.orderDetailId, |
| | |
| | | } |
| | | } |
| | | }); |
| | | }, */ |
| | | shanchu(row) { |
| | | this.isdisabled = true; |
| | | |
| | | shanchu({ |
| | | id: row.orderDetailId, |
| | | }) |
| | | .then((res) => { |
| | | console.log(res, 1111); |
| | | |
| | | if (res.code === 200) { |
| | | const parentItem = this.yichangList.find((item) => |
| | | item.sone.some( |
| | | (soneItem) => soneItem.orderDetailId === row.orderDetailId |
| | | ) |
| | | ); |
| | | |
| | | if (parentItem) { |
| | | const index = parentItem.sone.findIndex( |
| | | (item) => item.orderDetailId === row.orderDetailId |
| | | ); |
| | | if (index > -1) { |
| | | parentItem.sone.splice(index, 1); |
| | | |
| | | if (parentItem.sone.length === 0) { |
| | | const parentIndex = this.yichangList.indexOf(parentItem); |
| | | if (parentIndex > -1) { |
| | | this.yichangList.splice(parentIndex, 1); |
| | | } |
| | | } |
| | | |
| | | this.getExpends(); |
| | | this.$forceUpdate(); |
| | | this.$message.success("删除成功"); |
| | | } else { |
| | | this.$message.error("未找到要删除的子项"); |
| | | } |
| | | } else { |
| | | this.$message.error("未找到要删除的父项"); |
| | | } |
| | | } else { |
| | | this.$message.error("后端删除失败:" + (res.msg || "未知错误")); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.error("删除失败:", error); |
| | | this.$message.error("删除操作失败:" + error.message); |
| | | }) |
| | | .finally(() => { |
| | | this.isdisabled = false; |
| | | }); |
| | | }, |
| | | getConfigKey() { |
| | | getconfigKey("sfkqtwbg").then((res) => { |
| | |
| | | }).then((res) => { |
| | | this.yichangList = res.data; |
| | | |
| | | console.log(this.yichangList, 3232); |
| | | // console.log(this.yichangList, 3232); |
| | | this.getExpends(); |
| | | |
| | | this.yichangList.forEach((item) => { |
| | |
| | | }, |
| | | eventchange(data) { |
| | | this.dataText = data; |
| | | console.log(data, 6655); |
| | | |
| | | if (this.textarea1 == null) { |
| | | this.textarea1 = ""; |
| | | } |
| | | data.forEach((item) => { |
| | | /* data.forEach((item) => { |
| | | this.textarea1 += item.advice; |
| | | }); */ |
| | | data.forEach((item) => { |
| | | this.textarea1 += (item.advice || item.jynr || "") + "\n"; |
| | | }); |
| | | }, |
| | | proposalChange() { |
| | |
| | | if (res.data) { |
| | | // this.Testitems = res.data |
| | | this.changedate = res.data; |
| | | |
| | | this.changedate.forEach((item) => { |
| | | this.textarea1 = item.checkAdvice; |
| | | }); |