From c1db2f08301d97e2bf04c7236fa981e5ec083dbb Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期二, 15 七月 2025 18:02:09 +0800 Subject: [PATCH] 1 --- src/views/doctor/checkAll/index.vue | 209 ++++++++++++++++++++++++++++----------------------- 1 files changed, 114 insertions(+), 95 deletions(-) diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index 1365eaa..5082f0a 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -6,7 +6,6 @@ :inline="true" label-width="76px" style="margin-top: 10px" - v-if="tjStatus == 1" > <el-form-item label="濮撳悕" prop="name"> <el-input @@ -28,7 +27,29 @@ @blur="hb" ></el-input> </el-form-item> - + <el-form-item label="浣撴绫诲埆"> + <el-select + style="width: 200px" + v-model="queryParams.tjCategory" + placeholder="璇烽�夋嫨浣撴绫诲埆" + > + <el-option + v-for="dict in dict.type.dict_tjtype" + :key="dict.value" + :label="dict.label" + :value="dict.value" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="濂楅鍚嶇О" prop="tcm"> + <el-input + v-model="queryParams.tcm" + style="width: 120px" + placeholder="璇疯緭鍏ュ椁愬悕绉�" + clearable + @keyup.enter.native="submitForm" + ></el-input> + </el-form-item> <el-form-item label="鍗曚綅鍚嶇О" prop="tjCompName" @@ -53,16 +74,7 @@ /> </el-select> </el-form-item> - <el-form-item label="瀹℃牳鍖诲笀" prop="shys"> - <el-input - ref="inputName" - v-model="queryParams.shys" - style="width: 180px" - placeholder="璇疯緭鍏ュ鏍稿尰甯�" - clearable - @keyup.enter.native="submitForm" - ></el-input> - </el-form-item> + <el-form-item> <el-button type="primary" @@ -90,6 +102,18 @@ > </el-form-item> <el-row v-show="isCollapsed == 1" :gutter="20"> + <el-col :span="4"> + <el-form-item label="瀹℃牳鍖诲笀" prop="shys"> + <el-input + ref="inputName" + v-model="queryParams.shys" + style="width: 120px" + placeholder="璇疯緭鍏ュ鏍稿尰甯�" + clearable + @keyup.enter.native="submitForm" + ></el-input> + </el-form-item> + </el-col> <el-col :span="8"> <el-form-item label="浣撴鏃堕棿" prop="tjTime"> <el-date-picker @@ -111,85 +135,33 @@ </el-row> </el-form> - <el-form - :model="queryParams" - ref="tableList" - :inline="true" - label-width="76px" - style="margin-top: 10px" - v-else - > + <!-- <el-form :model="queryParams" ref="tableList" :inline="true" label-width="76px" style="margin-top: 10px" > <el-form-item label="濮撳悕" prop="name"> - <el-input - v-model="queryParams.name" - style="width: 120px" - placeholder="璇疯緭鍏ュ鍚�" - clearable - @keyup.enter.native="submitForm" - ></el-input> + <el-input v-model="queryParams.name" style="width: 120px" placeholder="璇疯緭鍏ュ鍚�" clearable + @keyup.enter.native="submitForm"></el-input> </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNumber"> - <el-input - ref="inputName" - v-model="queryParams.tjNumber" - style="width: 180px" - placeholder="璇疯緭鍏ヤ綋妫�鍙�" - clearable - @keyup.enter.native="submitForm" - @blur="hb" - ></el-input> + <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 180px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable + @keyup.enter.native="submitForm" @blur="hb"></el-input> </el-form-item> + <el-form-item label="浣撴鏃堕棿" prop="tjTime"> - <el-date-picker - v-model="startTime" - type="datetimerange" - align="right" - :picker-options="pickerOptions" - style="width: 310px" - start-placeholder="寮�濮嬫棩鏈�" - end-placeholder="缁撴潫鏃ユ湡" - :default-time="['00:00:00', '23:00:00']" - format="yyyy-MM-dd HH:mm" - value-format="yyyy-MM-dd HH:mm" - @change="dateChangebirthday1" - > + <el-date-picker v-model="startTime" type="datetimerange" align="right" :picker-options="pickerOptions" + style="width: 310px" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" :default-time="['00:00:00', '23:00:00']" + format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" @change="dateChangebirthday1"> </el-date-picker> </el-form-item> - <el-form-item - label="鍗曚綅鍚嶇О" - prop="tjCompName" - style="margin-left: 20px" - > - <el-select - :remote-method="getRemoteData" - v-model="queryParams.tjCompName" - value-key="drugManufacturerId" - style="width: 180px" - remote - filterable - placeholder="璇烽�夋嫨鍗曚綅鍚嶇О" - clearable - @change="searchSelect" - > - <el-option - v-for="dict in CompanyList" - :key="dict.drugManufacturerId" - :label="dict.cnName" - :value="dict" - /> + <el-form-item label="鍗曚綅鍚嶇О" prop="tjCompName" style="margin-left: 20px"> + <el-select :remote-method="getRemoteData" v-model="queryParams.tjCompName" value-key="drugManufacturerId" + style="width: 180px" remote filterable placeholder="璇烽�夋嫨鍗曚綅鍚嶇О" clearable @change="searchSelect"> + <el-option v-for="dict in CompanyList" :key="dict.drugManufacturerId" :label="dict.cnName" :value="dict" /> </el-select> </el-form-item> <el-form-item> - <el-button - type="primary" - size="mini" - @click="submitForm" - style="margin-right: 15px" - >鎼滅储</el-button - > + <el-button type="primary" size="mini" @click="submitForm" style="margin-right: 15px">鎼滅储</el-button> <el-button size="mini" @click="resetQuery">閲嶇疆</el-button> </el-form-item> - </el-form> + </el-form> --> <el-radio-group v-model="tjStatus" @@ -763,8 +735,7 @@ type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" v-model="textarea1" - :rows="3" - style="width: 96%" + :autosize="{ minRows: minRows, maxRows: maxRows }" ></el-input> </el-form-item> </el-form> @@ -809,10 +780,9 @@ border style="width: 100%" :header-cell-style="{ background: '#67C23A' }" - :row-key="getRowKeys" > - <!-- :expand-row-keys="expends" --> + <!-- :expand-row-keys="expends" --> <el-table-column type="expand"> <template slot-scope="props"> <div style="padding: 10px"> @@ -941,7 +911,7 @@ :header-cell-style="{ background: '#67C23A' }" :row-key="getRowKeys" > - <!-- :expand-row-keys="expends" --> + <!-- :expand-row-keys="expends" --> <el-table-column type="expand"> <template slot-scope="props"> <div style="padding: 10px"> @@ -1090,8 +1060,8 @@ width="120" > <template slot-scope="scope"> - <span v-if="scope.row.type == '0'">鏈鏍�</span> - <span v-if="scope.row.type == '1'">宸插鏍�</span> + <span v-if="scope.row.type == '0'">鏈</span> + <span v-if="scope.row.type == '1'">宸叉</span> <span v-if="scope.row.type == '2'">寮冩</span> <span v-if="scope.row.type == '3'">寤舵湡</span> </template> @@ -1100,16 +1070,24 @@ label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" + :formatter="formatDate" width="160" /> - <el-table-column label="鎿嶄綔" align="center" width="130px"> + <el-table-column label="鎿嶄綔" align="center" width="80px"> <template slot-scope="scope"> <el-button type="primary" size="mini" - @click="huifu" + @click="huifu(scope.row)" v-if="scope.row.type == '2'" >鎭㈠</el-button + > + <el-button + type="primary" + size="mini" + @click="chexiao(scope.row)" + v-if="scope.row.type == '1'" + >鎾ら攢</el-button > </template> </el-table-column> @@ -1899,7 +1877,12 @@ </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" + :mrjy="mrjy" + @event1="eventchange($event)" + /> <createproposal ref="createproposal" :creatobj="creatobj" /> <el-dialog title="甯哥敤寤鸿缁存姢" @@ -1911,6 +1894,7 @@ </template> <script> import _ from "lodash"; +import { getConfigKey } from "@/api/system/config"; import jianqianwenzhen from "@/components/jianqianwenzhen"; import Packages from "@/components/Packages"; import Prescription from "@/components/Prescription"; @@ -1934,6 +1918,7 @@ UpdFcPro, huiFuyichangxiangmu, hfbt, + chexiao, } from "@/api/doctor/checkAll"; import { getInfoById } from "@/api/hosp/history"; import { getInfo } from "@/api/login"; @@ -1978,6 +1963,8 @@ zhiyeJg: "鏈彂鐜扮洰鏍囨�х柧鐥�", // 鍒濆鍖栦綋妫�缁撴灉涓洪粯璁ゅ�� selectedAdvice: null, activeAdviceIndex: 0, + minRows: 3, + maxRows: null, advicerulesList: [], xmChange: [], ychfList: [], @@ -2124,11 +2111,14 @@ name: null, checkStatus: null, shys: null, + tcm: null, + tjCategory: null, }, formobj: {}, yichangList: [], fcList: [], statusList: [], + mrjy: "", queryParam: { pageNum: 1, pageSize: 10, @@ -2170,6 +2160,12 @@ this.$refs.inputName.focus(); this.viewportHeight = window.innerHeight || document.documentElement.clientHeight; + }); + getConfigKey("zjysjymrhs").then((res) => { + const val = parseInt(res.msg); // 纭繚鏄暟瀛� + if (!isNaN(val)) { + this.maxRows = val; + } }); }, @@ -2289,6 +2285,12 @@ this.cancelAdviceDialog(); done(); } + }, + + formatDate(row) { + if (!row.qdcreateTime) return ""; + const date = moment(row.qdcreateTime, "YYYY-MM-DD"); + return date.isValid() ? date.format("YYYY-MM-DD") : "鏃犳晥鏃ユ湡"; }, handleAdviceBlur(row, index) { @@ -2928,8 +2930,14 @@ propoChange() { this.cusobj = { sex: this.tableAll.cusSex, isZj: 0 }; - this.$refs.proposal.open = true; - this.$refs.proposal.title = "寤鸿鏂规"; + getConfigKey("mrzscyjy").then((res) => { + this.mrjy = res.msg; // 浼氳Е鍙� watch 鈫� 璁剧疆 tjproposal = "1" + // console.log(res, 4444); + + // 绛夋暟鎹姸鎬佸噯澶囧ソ鍚庡啀鎵撳紑寮圭獥 + this.$refs.proposal.title = "寤鸿鏂规"; + this.$refs.proposal.open = true; + }); }, eventchange(data) { @@ -3054,6 +3062,7 @@ this.startTime = []; this.resetForm("tableList"); this.submitForm(); + this.queryParams.tjCategory = null; }, huifu(row) { @@ -3061,6 +3070,17 @@ const proId = row.proId; huifu(tjNUm, proId).then((res) => { if (res.code == 200) { + this.$message.success("鎭㈠鎴愬姛"); + this.xiangmuqingkuang(); + } + }); + }, + chexiao(row) { + const tjNUm = this.tjNumber; + const proId = row.proId; + chexiao(tjNUm, proId).then((res) => { + if (res.code == 200) { + this.$message.success("鎾ら攢鎴愬姛"); this.xiangmuqingkuang(); } }); @@ -3270,6 +3290,7 @@ let tjNumber = this.tableAll.tjNumber; let tjh = this.tableAll.tjNumber; let advice = this.textarea1; + this.isLoading = true; let data = { tjNumber, advice, @@ -3297,9 +3318,8 @@ .then((response) => { if (response.code === 200) { // this.$modal.msgSuccess("鎻愪氦鎴愬姛"); - this.$modal.msgSuccess( - response.msg - ); + this.$modal.msgSuccess(response.msg); + this.isLoading = false; // 娓呯┖瀛楁 this.zhiyeJl = ""; this.zhiyeJg = ""; @@ -3314,7 +3334,6 @@ addOrder(dataList) .then((res) => { if (res.code == 200) { - // gettoPdf(tjNumber) // .then((res) => { // this.$modal.msgSuccess( -- Gitblit v1.8.0