From 50dd8296b363798246749bc402302535451921a5 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期二, 23 七月 2024 15:37:37 +0800 Subject: [PATCH] qxtj --- src/views/doctor/checkAll/index.vue | 75 ++++++++++++++++++++----------------- 1 files changed, 40 insertions(+), 35 deletions(-) diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index e6fafd8..b01db8c 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -229,7 +229,7 @@ :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.pageSize" - @pagination="getList" + @pagination="submitForm" /> </div> </div> @@ -481,7 +481,7 @@ <textarea placeholder="璇疯緭鍏ュ唴瀹�" :autosize="{ minRows: 2, maxRows: 2 }" - style="width: 100%; height: 100%;resize: none;" + style="width: 100%; height: 100%; resize: none" v-model="changedate[index].remark" v-on:input="change" ></textarea> @@ -494,33 +494,29 @@ <div v-else> <table style="width: 100%" v-if="tjproject != '1'"> <tr - style="border: 1px solid #dfe6ec; border-collapse: collapse" + style="border: 1px solid #dfe6ec; " > <td style=" border: 1px solid #dfe6ec; border-collapse: collapse; width: 15%; + height: 52px; " > 妫�鏌ユ墍瑙侊細 </td> - <td style="border: 1px solid #dfe6ec;" colspan="2"> - - <textarea + <td style="border: 1px solid #dfe6ec; height: 52px;" colspan="2"> + <textarea placeholder="璇疯緭鍏ュ唴瀹�" :autosize="{ minRows: 3, maxRows: 4 }" - style="width: 100%; height: 100%;resize: none;" + style="width: 100%; height: 100%; resize: none" v-model="item.jgbx" ></textarea> </td> - </tr> <tr - style=" - border: 1px solid #dfe6ec; - border-collapse: collapse; - " + style="border: 1px solid #dfe6ec; border-collapse: collapse" > <td style=" @@ -535,33 +531,31 @@ style=" border: 1px solid #dfe6ec; border-collapse: collapse; - " colspan="2" > - <el-input v-model="item.remark" ></el-input> - <!-- <textarea + <!-- <el-input v-model="item.remark"></el-input> --> + <textarea placeholder="璇疯緭鍏ュ唴瀹�" - :autosize="{ minRows: 2, maxRows: 2 }" - style="width: 100%; height: 100%" - v-model="changedate[index].remark" - v-on:input="change" - ></textarea> --> - + :autosize="{ minRows: 2, maxRows: 3 }" + style="width: 100%; height: 100%; resize: none" + v-model="item.remark" + ></textarea> </td> </tr> - <tr style=" + <tr + style=" border: 1px solid #dfe6ec; border-collapse: collapse; width: 200px; height: 36px; - "> + " + > <td style=" border: 1px solid #dfe6ec; border-collapse: collapse; width: 15%; - " > 涓绘鍖诲笀锛� @@ -1528,6 +1522,8 @@ radioChange(value) { this.loading = true; this.queryParams.checkStatus = value; + this.queryParams.page = 1; + this.queryParams.pageSize = 10; getcheckList(this.queryParams).then((response) => { if (response.data) { this.checkList = response.data.customers; @@ -1546,7 +1542,6 @@ }, eventchange(data) { this.dataText = data; - console.log(this.textarea1); if (this.textarea1 == null) { this.textarea1 = ""; } @@ -1659,6 +1654,7 @@ // 鎼滅储 submitForm() { + console.log(this.tjStatus); this.loading = true; this.queryParams.compId = this.CheckBox.drugManufacturerId; this.queryParams.checkStatus = this.tjStatus; @@ -1703,7 +1699,9 @@ }, handleCurrentChange(val) { - this.handleClick(val); + if (val != null) { + this.handleClick(val); + } }, // 鐐瑰嚮璇︽儏 @@ -1744,7 +1742,6 @@ for (let i = 0; i < this.changedate.length; i++) { this.remark = this.changedate[i].remark; } - console.log(this.changedate); this.changedate.forEach((item) => { // this.remark = item.remark; // item.sons.forEach((item3) => { @@ -1879,6 +1876,7 @@ id: this.MsgId, }; getfiedState(data).then((res) => {}); + this.submitForm(); }); }, handleClose1() { @@ -1905,9 +1903,7 @@ // }); // } // }, - change(vale) { - // console.log(this.changedate[index].remark); - }, + change(vale) {}, determine() { let tjNumber = this.tableAll.tjNumber; let advice = this.textarea1; @@ -1926,12 +1922,22 @@ state: 1, id: this.MsgId, }; - gettoPdf(tjNumber).then((res) => { - this.$modal.msgSuccess("宸茬敓鎴愭姤鍛婏紒璇峰墠寰�鎶ュ憡鏍告敹椤甸潰纭锛�"); - }); + gettoPdf(tjNumber) + .then((res) => { + this.$modal.msgSuccess("宸茬敓鎴愭姤鍛婏紒璇峰墠寰�鎶ュ憡鏍告敹椤甸潰纭锛�"); + }) + .catch((error) => { + this.$modal.msgError( + "鎵撳嵃鎶ュ憡澶辫触锛岃鍓嶅線鎶ュ憡鎵撳嵃椤甸潰琛ユ墦鎶ュ憡锛�" + ); + }); getfiedState(data).then((res) => { this.drawer = false; }); + this.queryParams.page = 1; + this.queryParams.pageSize = 10; + this.submitForm(); + this.$forceUpdate(); } }); @@ -1947,8 +1953,7 @@ ]; getModified(updateOrderRemarkVos).then((response) => {}); } - this.submitForm(); - this.$forceUpdate(); + // this.changedate.forEach((item) => { // this.proIds = item.parentId; // // this.remark = item.remark; -- Gitblit v1.8.0