From 51123d5ad145745f855280783c01cc2906b693d0 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期三, 24 一月 2024 18:00:20 +0800 Subject: [PATCH] su --- src/views/system/bill/index.vue | 8 src/views/doctor/test/index.vue | 8 src/views/hosp/print/index.vue | 422 ++-- vue.config.js | 2 src/views/doctor/examination/index.vue | 8 src/views/system/charge/index.vue | 8 src/views/hosp/extension/index.vue | 1121 +++++++----- src/views/picture/picture/index.vue | 8 src/views/hosp/history/index.vue | 7 src/views/system/tijian/index.vue | 5 src/views/hosp/replylog/index.vue | 956 ++++++----- src/views/doctor/checkAll/index.vue | 10 src/views/system/refund/index.vue | 9 src/components/jianqianwenzhen/index.vue | 4 src/views/system/biol/index.vue | 8 src/views/hosp/surveyRecord/index.vue | 8 src/views/system/transmit/index.vue | 8 src/views/doctor/bgsh/index.vue | 8 src/views/system/visit/index.vue | 22 src/views/doctor/check/index.vue | 8 src/views/picture/other/index.vue | 8 src/views/record/record/index.vue | 654 ++++-- src/views/system/tijianall/index.vue | 1 src/views/hosp/fuzhen/index.vue | 8 src/views/system/Checkout/index.vue | 384 +++- src/views/hosp/inspection/index.vue | 423 +++- src/views/hosp/hzlog/index.vue | 804 +++++---- src/views/picture/music/index.vue | 8 src/views/hosp/order/index.vue | 8 src/views/doctor/imaging/index.vue | 9 src/views/system/invoice/index.vue | 8 src/views/system/circle/index.vue | 8 src/views/sampling/sampling/index.vue | 8 33 files changed, 2,993 insertions(+), 1,976 deletions(-) diff --git a/src/components/jianqianwenzhen/index.vue b/src/components/jianqianwenzhen/index.vue index d90ccec..831aee8 100644 --- a/src/components/jianqianwenzhen/index.vue +++ b/src/components/jianqianwenzhen/index.vue @@ -72,12 +72,12 @@ style="width: 700px" /> </el-form-item> - <el-form-item label="鍏朵粬" prop="medicalHistory"> + <el-form-item label="鏃㈠線鐥呭彶" prop="medicalHistory"> <el-input type="textarea" rows="4" v-model="form.medicalHistory" - placeholder="璇疯緭鍏�" + placeholder="璇疯緭鍏ユ棦寰�鐥呭彶" style="width: 700px" /> </el-form-item> diff --git a/src/views/doctor/bgsh/index.vue b/src/views/doctor/bgsh/index.vue index cd2b515..b763643 100644 --- a/src/views/doctor/bgsh/index.vue +++ b/src/views/doctor/bgsh/index.vue @@ -7,7 +7,7 @@ </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="submitForm"></el-input> + @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" @@ -259,6 +259,12 @@ dateChangebirthday1(val) { this.startTime = val; }, + hb(){ + console.log(this.queryParams.tjNumber); + if (this.queryParams.tjNumber != "") { + this.submitForm(); + } + }, // 鎼滅储 submitForm() { diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 8f6ff14..3d9e750 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -22,7 +22,7 @@ v-model="queryParams.tjNumber" style="width: 240px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" - @blur="submitForm" + @blur="hb" @keyup.enter.native="submitForm" ></el-input> </el-form-item> @@ -1315,6 +1315,12 @@ } }); }, + hb(){ + console.log(this.queryParams.tjNumber); + if (this.queryParams.tjNumber != "") { + this.submitForm(); + } + }, // 鎼滅储 submitForm() { diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index 6e7730e..28ba2d5 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -24,7 +24,7 @@ placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="submitForm" - @blur="submitForm" + @blur="hb" ></el-input> </el-form-item> <el-form-item label="浣撴鏃堕棿" prop="tjTime"> @@ -1021,6 +1021,8 @@ "lj_positive", "tj_work", "tj_work_status", + "tj_smoking_pinlv", + "tj_work" ], name: "checkAll", data() { @@ -1345,6 +1347,12 @@ this.startTime = val; }, + hb(){ + if (this.queryParams.tjNumber != "") { + this.submitForm(); + } + }, + // 鎼滅储 submitForm() { this.loading = true; diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue index 56bccc8..329ac4b 100644 --- a/src/views/doctor/examination/index.vue +++ b/src/views/doctor/examination/index.vue @@ -14,6 +14,7 @@ placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" + @blur="hb" style="width: 170px" /> </el-form-item> @@ -435,6 +436,13 @@ } }); }, + + hb(){ + console.log(this.queryParams.tjNumber); + if (this.queryParams.tjNumber != null) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.page = 1; diff --git a/src/views/doctor/imaging/index.vue b/src/views/doctor/imaging/index.vue index a3ce4f6..af6728b 100644 --- a/src/views/doctor/imaging/index.vue +++ b/src/views/doctor/imaging/index.vue @@ -22,7 +22,7 @@ v-model="queryParams.tjNumber" style="width: 240px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" - @blur="submitForm" + @blur="hb" @keyup.enter.native="submitForm" ></el-input> </el-form-item> @@ -839,6 +839,7 @@ queryParams: { page: 1, pageSize: 10, + pageNum:1, tjNumber: "", type: "", name: null, @@ -1005,6 +1006,12 @@ } }); }, + hb(){ + console.log(this.queryParams.tjNumber); + if (this.queryParams.tjNumber != "") { + this.submitForm(); + } + }, // 鎼滅储 submitForm() { diff --git a/src/views/doctor/test/index.vue b/src/views/doctor/test/index.vue index df5c74e..cc094a3 100644 --- a/src/views/doctor/test/index.vue +++ b/src/views/doctor/test/index.vue @@ -6,7 +6,7 @@ @keyup.enter.native="handleQuery"></el-input> </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNumber"> - <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 240px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="submitForm"></el-input> + <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 240px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="submitForm" @blur="hb"></el-input> </el-form-item> <el-form-item> <el-button size="mini" type="primary" @click="submitForm">鎼滅储</el-button> @@ -717,6 +717,12 @@ }); }, + hb(){ + console.log(this.queryParams.tjNumber); + if (this.queryParams.tjNumber != "") { + this.submitForm(); + } + }, // 鎼滅储 submitForm() { diff --git a/src/views/hosp/extension/index.vue b/src/views/hosp/extension/index.vue index f13ce17..53475eb 100644 --- a/src/views/hosp/extension/index.vue +++ b/src/views/hosp/extension/index.vue @@ -1,546 +1,723 @@ <template> - <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> - <el-form-item label="瀹㈡埛濮撳悕" prop="name"> - <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鎴峰鍚�" clearable @keyup.enter.native="handleQuery" /> - </el-form-item> - <el-form-item label="浣撴鍙�" prop="tjNum"> - <el-input v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" ref="inputName" @blur="handleQuery" /> - </el-form-item> - <el-form-item label="鐧昏鏃堕棿"> - <el-date-picker clearable v-model="createTimeList" style="width: 240px" value-format="yyyy-MM-dd" - type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" - :picker-options="pickerOptions"></el-date-picker> - </el-form-item> - <el-form-item label="寤舵湡鏃堕棿"> - <el-date-picker clearable v-model="finishTimeList" type="daterange" range-separator="-" - start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" :picker-options="pickerOptions" - value-format="yyyy-MM-dd" placeholder="璇烽�夋嫨浣撴瀹屾垚鏃堕棿" style="width: 240px"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> - </el-form-item> - </el-form> + <div class="app-container"> + <el-form + :model="queryParams" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="68px" + > + <el-form-item label="瀹㈡埛濮撳悕" prop="name"> + <el-input + v-model="queryParams.name" + placeholder="璇疯緭鍏ュ鎴峰鍚�" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="浣撴鍙�" prop="tjNum"> + <el-input + v-model="queryParams.tjNum" + placeholder="璇疯緭鍏ヤ綋妫�鍙�" + clearable + @keyup.enter.native="handleQuery" + ref="inputName" + @blur="hb" + /> + </el-form-item> + <el-form-item label="鐧昏鏃堕棿"> + <el-date-picker + clearable + v-model="createTimeList" + style="width: 240px" + value-format="yyyy-MM-dd" + type="daterange" + range-separator="-" + start-placeholder="寮�濮嬫棩鏈�" + end-placeholder="缁撴潫鏃ユ湡" + :picker-options="pickerOptions" + ></el-date-picker> + </el-form-item> + <el-form-item label="寤舵湡鏃堕棿"> + <el-date-picker + clearable + v-model="finishTimeList" + type="daterange" + range-separator="-" + start-placeholder="寮�濮嬫棩鏈�" + end-placeholder="缁撴潫鏃ユ湡" + :picker-options="pickerOptions" + value-format="yyyy-MM-dd" + placeholder="璇烽�夋嫨浣撴瀹屾垚鏃堕棿" + style="width: 240px" + > + </el-date-picker> + </el-form-item> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handleQuery" + >鎼滅储</el-button + > + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" + >閲嶇疆</el-button + > + </el-form-item> + </el-form> - <el-row :gutter="10" class="mb8"> - <el-col :span="1.5"> - <el-button type="primary" size="mini" @click="transmittext" :disabled="multiple">鎵归噺鍙戦�佺煭淇�</el-button> - <el-button type="primary" size="mini" @click="transmit" :disabled="multiple">鎵归噺鍙戦�侀偖浠�</el-button> - </el-col> - <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> - </el-row> + <el-row :gutter="10" class="mb8"> + <el-col :span="1.5"> + <el-button + type="primary" + size="mini" + @click="transmittext" + :disabled="multiple" + >鎵归噺鍙戦�佺煭淇�</el-button + > + <el-button + type="primary" + size="mini" + @click="transmit" + :disabled="multiple" + >鎵归噺鍙戦�侀偖浠�</el-button + > + </el-col> + <right-toolbar + :showSearch.sync="showSearch" + @queryTable="getList" + ></right-toolbar> + </el-row> - <template> - <el-table border style="margin: 14px; width: 97%" v-loading="loading" :data="extensionList" - @selection-change="handleSelectionChange"> - <el-table-column type="selection" width="55" align="center" height="10px" fixed="left" /> - <el-table-column label="搴忓彿" align="center" prop="newID" width="50px" fixed="left" height="10px" /> - <el-table-column label="濮撳悕" align="center" prop="cusName" height="10px" /> - <el-table-column label="鎬у埆" align="center" prop="sex" width="55px" height="10px"> - <template slot-scope="scope"> - <span v-if="scope.row.sex == '0'">鐢�</span> - <span v-if="scope.row.sex == '1'">濂�</span> - <span v-if="scope.row.sex == '2'">鏈煡</span> - </template> - </el-table-column> - <el-table-column label="骞撮緞" align="center" prop="age" height="10px" /> - <el-table-column label="鐢佃瘽" align="center" prop="phone" :show-overflow-tooltip="true" height="10px" /> - <!-- <el-table-column label="鍥㈤槦/涓汉" align="center" prop="tjType" height="10px"> + <template> + <el-table + border + style="margin: 14px; width: 97%" + v-loading="loading" + :data="extensionList" + @selection-change="handleSelectionChange" + > + <el-table-column + type="selection" + width="55" + align="center" + height="10px" + fixed="left" + /> + <el-table-column + label="搴忓彿" + align="center" + prop="newID" + width="50px" + fixed="left" + height="10px" + /> + <el-table-column + label="濮撳悕" + align="center" + prop="cusName" + height="10px" + /> + <el-table-column + label="鎬у埆" + align="center" + prop="sex" + width="55px" + height="10px" + > + <template slot-scope="scope"> + <span v-if="scope.row.sex == '0'">鐢�</span> + <span v-if="scope.row.sex == '1'">濂�</span> + <span v-if="scope.row.sex == '2'">鏈煡</span> + </template> + </el-table-column> + <el-table-column label="骞撮緞" align="center" prop="age" height="10px" /> + <el-table-column + label="鐢佃瘽" + align="center" + prop="phone" + :show-overflow-tooltip="true" + height="10px" + /> + <!-- <el-table-column label="鍥㈤槦/涓汉" align="center" prop="tjType" height="10px"> <template slot-scope="scope"> <span v-if="scope.row.tjType == '1'">涓汉</span> <span v-if="scope.row.tjType == '2'">鍥㈤槦</span> </template> </el-table-column> --> - <el-table-column label="寤舵湡椤圭洰" align="center" prop="names" height="10px" :show-overflow-tooltip="true" /> - <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="updateTime" width="155px" height="10px"> - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.updateTime) }}</span> - </template> - </el-table-column> - <el-table-column label="寤舵湡鏃堕棿" align="center" prop="yqTime" width="155px" height="10px"> - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.yqTime) }}</span> - </template> - </el-table-column> - <el-table-column label="鐭俊鍙戦�佺姸鎬�" align="center" prop="msgSend" height="10px" - :show-overflow-tooltip="true"> - <template slot-scope="scope"> - <span v-if="scope.row.msgSend == '1'">宸插彂閫�</span> - <span v-if="scope.row.msgSend == '0'">鏈彂閫�</span> - </template> - </el-table-column> - <el-table-column label="閭欢鍙戦�佺姸鎬�" align="center" prop="emilSend" height="10px" :show-overflow-tooltip="true"> - <template slot-scope="scope"> - <span v-if="scope.row.emilSend == '1'">宸插彂閫�</span> - <span v-if="scope.row.emilSend == '0'">鏈彂閫�</span> - </template> - </el-table-column> - </el-table> - </template> + <el-table-column + label="寤舵湡椤圭洰" + align="center" + prop="names" + height="10px" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鍒涘缓鏃堕棿" + align="center" + prop="updateTime" + width="155px" + height="10px" + > + <template slot-scope="scope"> + <span>{{ parseTime(scope.row.updateTime) }}</span> + </template> + </el-table-column> + <el-table-column + label="寤舵湡鏃堕棿" + align="center" + prop="yqTime" + width="155px" + height="10px" + > + <template slot-scope="scope"> + <span>{{ parseTime(scope.row.yqTime) }}</span> + </template> + </el-table-column> + <el-table-column + label="鐭俊鍙戦�佺姸鎬�" + align="center" + prop="msgSend" + height="10px" + :show-overflow-tooltip="true" + > + <template slot-scope="scope"> + <span v-if="scope.row.msgSend == '1'">宸插彂閫�</span> + <span v-if="scope.row.msgSend == '0'">鏈彂閫�</span> + </template> + </el-table-column> + <el-table-column + label="閭欢鍙戦�佺姸鎬�" + align="center" + prop="emilSend" + height="10px" + :show-overflow-tooltip="true" + > + <template slot-scope="scope"> + <span v-if="scope.row.emilSend == '1'">宸插彂閫�</span> + <span v-if="scope.row.emilSend == '0'">鏈彂閫�</span> + </template> + </el-table-column> + </el-table> + </template> - <div class="pag"> - <div class="pag1"> - <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" - :limit.sync="queryParams.pageSize" @pagination="getList" /> - </div> - </div> - - <el-drawer :title="title" :visible.sync="drawer" size="60%"> - <el-form :model="querytempType" ref="queryForm" size="small" :inline="true" label-width="68px" - style="margin:0 20px"> - <el-form-item label="妯℃澘绫诲瀷" prop="tempType"> - <el-select v-model="querytempType.tempType" filterable placeholder="璇烽�夋嫨妯℃澘绫诲瀷" clearable> - <el-option v-for="dict in dict.type.tj_send_type" :key="dict.value" :label="dict.label" - :value="dict.value" /> - </el-select> - </el-form-item> - <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleTempType">鎼滅储</el-button> - </el-form-item> - </el-form> - - <el-table v-loading="loading" ref="tb" :data="sendTemplateList" @selection-change="handleChange" border - style="margin:0 20px;width:94%"> - <el-table-column type="selection" width="45" align="center" /> - <el-table-column label="缂栧彿" align="center" prop="id" width="60" /> - <el-table-column label="妯℃澘鏍囬" align="center" prop="tempTitle" width="100" /> - <el-table-column label="妯℃澘鍐呭" align="center" prop="tempContent" /> - <el-table-column label="妯℃澘绫诲瀷" align="center" prop="tempType" width="100"> - <template slot-scope="scope"> - <dict-tag :options="dict.type.tj_send_type" :value="scope.row.tempType" /> - </template> - </el-table-column> - </el-table> - <div class="pag"> - <div class="pag1"> - <pagination v-show="total > 0" :total="total" :page.sync="querytempType.pageNum" - :limit.sync="querytempType.pageSize" @pagination="handleTempType" /> - </div> - </div> - - <div style="margin-left: 89%;"> - <el-button type="primary" v-if="mail == true" @click="sendingmail">鍙� 閫�</el-button> - <el-button type="primary" v-if="mail == false" @click="sendingtext">鍙� 閫�</el-button> - </div> - </el-drawer> - + <div class="pag"> + <div class="pag1"> + <pagination + v-show="total > 0" + :total="total" + :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" + @pagination="getList" + /> + </div> </div> + + <el-drawer :title="title" :visible.sync="drawer" size="60%"> + <el-form + :model="querytempType" + ref="queryForm" + size="small" + :inline="true" + label-width="68px" + style="margin: 0 20px" + > + <el-form-item label="妯℃澘绫诲瀷" prop="tempType"> + <el-select + v-model="querytempType.tempType" + filterable + placeholder="璇烽�夋嫨妯℃澘绫诲瀷" + clearable + > + <el-option + v-for="dict in dict.type.tj_send_type" + :key="dict.value" + :label="dict.label" + :value="dict.value" + /> + </el-select> + </el-form-item> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handleTempType" + >鎼滅储</el-button + > + </el-form-item> + </el-form> + + <el-table + v-loading="loading" + ref="tb" + :data="sendTemplateList" + @selection-change="handleChange" + border + style="margin: 0 20px; width: 94%" + > + <el-table-column type="selection" width="45" align="center" /> + <el-table-column label="缂栧彿" align="center" prop="id" width="60" /> + <el-table-column + label="妯℃澘鏍囬" + align="center" + prop="tempTitle" + width="100" + /> + <el-table-column label="妯℃澘鍐呭" align="center" prop="tempContent" /> + <el-table-column + label="妯℃澘绫诲瀷" + align="center" + prop="tempType" + width="100" + > + <template slot-scope="scope"> + <dict-tag + :options="dict.type.tj_send_type" + :value="scope.row.tempType" + /> + </template> + </el-table-column> + </el-table> + <div class="pag"> + <div class="pag1"> + <pagination + v-show="total > 0" + :total="total" + :page.sync="querytempType.pageNum" + :limit.sync="querytempType.pageSize" + @pagination="handleTempType" + /> + </div> + </div> + + <div style="margin-left: 89%"> + <el-button type="primary" v-if="mail == true" @click="sendingmail" + >鍙� 閫�</el-button + > + <el-button type="primary" v-if="mail == false" @click="sendingtext" + >鍙� 閫�</el-button + > + </div> + </el-drawer> + </div> </template> <script> -import { getextensionlist,sendMessageOrEmail } from "@/api/hosp/extension"; -import { listSendTemplate, } from "@/api/hosp/sendTemplate"; +import { getextensionlist, sendMessageOrEmail } from "@/api/hosp/extension"; +import { listSendTemplate } from "@/api/hosp/sendTemplate"; import ViewPdf from "@/components/ViewPdf"; import { queryCompany } from "@/api/team/tuanti"; export default { - components: { - ViewPdf, - }, - name: "Order", - dicts: ['tj_send_type', 'sys_normal_disable'], - data() { - return { - mail: true, - gation: {}, - drawer: false, - value: "", - // 寮瑰嚭灞傛爣棰� - title: "", - tempId: null, - proIds: [], - // 閬僵灞� - loading: true, - // 閫変腑鏁扮粍 - ids: [], - // 闈炲崟涓鐢� - single: true, - // 闈炲涓鐢� - multiple: true, - // 鏄剧ず鎼滅储鏉′欢 - showSearch: true, - userId: "", - // 鎬绘潯鏁� - total: 0, - // 浣撴璁板綍琛ㄦ牸鏁版嵁 - extensionList: [], - sendTemplateList: [], - // 寮瑰嚭灞傛爣棰� - title: "", - // 鏄惁鏄剧ず寮瑰嚭灞� - open: false, - CompanyList: [], - createTimeList: null, - finishTimeList: null, - // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 10, - name: null, - tjNum: null, - djbeginTime: null, - djendTime: null, - yqbeginTime: null, - yqendTime: null, + components: { + ViewPdf, + }, + name: "Order", + dicts: ["tj_send_type", "sys_normal_disable"], + data() { + return { + mail: true, + gation: {}, + drawer: false, + value: "", + // 寮瑰嚭灞傛爣棰� + title: "", + tempId: null, + proIds: [], + // 閬僵灞� + loading: true, + // 閫変腑鏁扮粍 + ids: [], + // 闈炲崟涓鐢� + single: true, + // 闈炲涓鐢� + multiple: true, + // 鏄剧ず鎼滅储鏉′欢 + showSearch: true, + userId: "", + // 鎬绘潯鏁� + total: 0, + // 浣撴璁板綍琛ㄦ牸鏁版嵁 + extensionList: [], + sendTemplateList: [], + // 寮瑰嚭灞傛爣棰� + title: "", + // 鏄惁鏄剧ず寮瑰嚭灞� + open: false, + CompanyList: [], + createTimeList: null, + finishTimeList: null, + // 鏌ヨ鍙傛暟 + queryParams: { + pageNum: 1, + pageSize: 10, + name: null, + tjNum: null, + djbeginTime: null, + djendTime: null, + yqbeginTime: null, + yqendTime: null, + }, + querytempType: { + tempType: null, + pageNum: 1, + pageSize: 10, + }, + // 琛ㄥ崟鍙傛暟 + form: { + tjType: 2, + }, + // 琛ㄥ崟鏍¢獙 + rules: {}, + pickerOptions: { + shortcuts: [ + { + text: "鏈�杩戜竴鍛�", + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); + picker.$emit("pick", [start, end]); }, - querytempType: { - tempType: null, - pageNum: 1, - pageSize: 10, + }, + { + text: "鏈�杩戜竴涓湀", + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); + picker.$emit("pick", [start, end]); }, - // 琛ㄥ崟鍙傛暟 - form: { - tjType: 2, + }, + { + text: "鏈�杩戜笁涓湀", + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); + picker.$emit("pick", [start, end]); }, - // 琛ㄥ崟鏍¢獙 - rules: {}, - pickerOptions: { - shortcuts: [ - { - text: "鏈�杩戜竴鍛�", - onClick(picker) { - const end = new Date(); - const start = new Date(); - start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); - picker.$emit("pick", [start, end]); - }, - }, - { - text: "鏈�杩戜竴涓湀", - onClick(picker) { - const end = new Date(); - const start = new Date(); - start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); - picker.$emit("pick", [start, end]); - }, - }, - { - text: "鏈�杩戜笁涓湀", - onClick(picker) { - const end = new Date(); - const start = new Date(); - start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); - picker.$emit("pick", [start, end]); - }, - }, - ], - }, - }; - }, - created() { - this.getNowTime(); - this.getList(); - }, - mounted() { + }, + ], + }, + }; + }, + created() { + this.getNowTime(); + this.getList(); + }, + mounted() { this.$nextTick(() => { this.$refs.inputName.focus(); }); }, - methods: { - dialogVisibles() { - this.$message.error("璇疯繛鎺ユ嫧鍙峰櫒锛�"); - }, - handleClick(tab, event) { - }, - //澶勭悊榛樿閫変腑褰撳墠鏃ユ湡 - getNowTime() { - var curDate = new Date().getTime(); - var dayNum = 3 * 24 * 3600 * 1000; - var threeDays = curDate - dayNum; - var sDay = this.getLocalTime(threeDays); - var end = this.getLocalTime(curDate); - this.finishTimeList = [sDay, end]; - }, - add0(m) { - return m < 10 ? "0" + m : m; - }, - getLocalTime(nS) { - var time = new Date(nS); - var y = time.getFullYear(); - var m = time.getMonth() + 1; - var d = time.getDate(); - return y + "-" + this.add0(m) + "-" + this.add0(d); - }, - onSubmit() { - }, - - - /** 鏌ヨ浣撴璁板綍鍒楄〃 */ - getList() { - this.loading = true; - if (this.createTimeList) { - this.queryParams.djbeginTime = this.createTimeList[0] - this.queryParams.djendTime = this.createTimeList[1] - } else { - this.queryParams.djbeginTime = null - this.queryParams.djendTime = null - } - if (this.finishTimeList) { - this.queryParams.yqbeginTime = this.finishTimeList[0] - this.queryParams.yqendTime = this.finishTimeList[1] - } else { - this.queryParams.yqbeginTime = null - this.queryParams.yqendTime = null - } - - getextensionlist(this.queryParams).then((response) => { - response.data.list.forEach((item, index) => { - item.newID = - (this.queryParams.pageNum - 1) * this.queryParams.pageSize + - index + - 1; - }); - this.extensionList = response.data.list; - this.total = response.data.total; - this.loading = false; - }); - }, - - // 鎼滅储 - getRemoteData(query) { - if (query) { - let compName = query; - queryCompany(compName).then((response) => { - this.CompanyList = response.data; - this.CompanyList.forEach((item) => { - this.queryParams = item; - }); - }); - } - }, - // 鎼滅储 - handleTempType() { - this.loading = true; - this.transmit() - }, - // 鍙栨秷鎸夐挳 - cancel() { - this.open = false; - this.reset(); - }, - // 琛ㄥ崟閲嶇疆 - reset() { - this.form = { - orderId: null, - userId: null, - tjType: null, - tjNumber: null, - tjSerialNumber: null, - pacId: null, - createTime: null, - finishTime: null, - updateTime: null, - reportTime: null, - createBy: null, - updateBy: null, - deleted: null, - firmId: null, - firmDeptName: null, - firmWorkId: null, - photo: null, - }; - this.resetForm("form"); - }, - /** 鎼滅储鎸夐挳鎿嶄綔 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, - /** 閲嶇疆鎸夐挳鎿嶄綔 */ - resetQuery() { - this.resetForm("queryForm"); - this.handleQuery(); - }, - - // 澶氶�夋閫変腑鏁版嵁 - handleSelectionChange(selection) { - this.ids = selection.map((item) => item.id); - this.single = selection.length !== 1; - this.multiple = !selection.length; - }, - handleChange(selection) { - selection.forEach(item => { - this.tempId = item.id - }) - - if (selection.length > 1) { - let del_row = selection.shift(); - this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑 - } - }, - - // 鍑虹幇閭欢寮规 - transmit() { - this.drawer = true - this.mail = true - this.title = "閫夋嫨閭欢鍙戦�佹ā鏉�" - this.loading = true; - listSendTemplate(this.querytempType).then(response => { - this.sendTemplateList = response.rows; - this.total = response.total; - this.loading = false; - }); - // let orderIds = this.ids; - // sendEmail(orderIds).then((response) => { - // if (msg === "鎿嶄綔鎴愬姛") { - // this.$modal.msgSuccess("鍙戦�佹垚鍔燂紒"); - // } - // if (code === 500) { - // this.$error.msgSuccess("鍙戦�佸け璐ワ紒"); - // } - // }); - // this.$tab.refreshPage(); - }, - // 鍑虹幇鐭俊寮规 - transmittext() { - this.drawer = true - this.mail = false - this.title = "閫夋嫨鐭俊鍙戦�佹ā鏉�" - this.loading = true; - listSendTemplate(this.querytempType).then(response => { - this.sendTemplateList = response.rows; - this.total = response.total; - this.loading = false; - }); - }, - - // 鍙戦�侀偖浠� - sendingmail() { - if (this.tempId) { - let data = { - yqorderIds: this.ids, - tempId: this.tempId, - type:1 - } - sendMessageOrEmail(data).then((res) => { - if (res.code === 200) { - this.$modal.msgSuccess("鍙戦�佹垚鍔�"); - this.getList() - } - }) - this.drawer = false - } else { - this.$modal.msgError("璇烽�夋嫨閭欢妯℃澘"); - } - - }, - // 鍙戦�佺煭淇� - sendingtext() { - if (this.tempId) { - let data = { - yqorderIds: this.ids, - tempId: this.tempId, - type:2 - } - sendMessageOrEmail(data).then((res) => { - if (res.code === 200) { - this.$modal.msgSuccess("鍙戦�佹垚鍔�"); - this.getList() - } - }) - this.drawer = false - } else { - this.$modal.msgError("璇烽�夋嫨鐭俊妯℃澘"); - } - }, + methods: { + dialogVisibles() { + this.$message.error("璇疯繛鎺ユ嫧鍙峰櫒锛�"); }, + handleClick(tab, event) {}, + //澶勭悊榛樿閫変腑褰撳墠鏃ユ湡 + getNowTime() { + var curDate = new Date().getTime(); + var dayNum = 3 * 24 * 3600 * 1000; + var threeDays = curDate - dayNum; + var sDay = this.getLocalTime(threeDays); + var end = this.getLocalTime(curDate); + this.finishTimeList = [sDay, end]; + }, + add0(m) { + return m < 10 ? "0" + m : m; + }, + getLocalTime(nS) { + var time = new Date(nS); + var y = time.getFullYear(); + var m = time.getMonth() + 1; + var d = time.getDate(); + return y + "-" + this.add0(m) + "-" + this.add0(d); + }, + onSubmit() {}, + + /** 鏌ヨ浣撴璁板綍鍒楄〃 */ + getList() { + this.loading = true; + if (this.createTimeList) { + this.queryParams.djbeginTime = this.createTimeList[0]; + this.queryParams.djendTime = this.createTimeList[1]; + } else { + this.queryParams.djbeginTime = null; + this.queryParams.djendTime = null; + } + if (this.finishTimeList) { + this.queryParams.yqbeginTime = this.finishTimeList[0]; + this.queryParams.yqendTime = this.finishTimeList[1]; + } else { + this.queryParams.yqbeginTime = null; + this.queryParams.yqendTime = null; + } + + getextensionlist(this.queryParams).then((response) => { + response.data.list.forEach((item, index) => { + item.newID = + (this.queryParams.pageNum - 1) * this.queryParams.pageSize + + index + + 1; + }); + this.extensionList = response.data.list; + this.total = response.data.total; + this.loading = false; + }); + }, + + // 鎼滅储 + getRemoteData(query) { + if (query) { + let compName = query; + queryCompany(compName).then((response) => { + this.CompanyList = response.data; + this.CompanyList.forEach((item) => { + this.queryParams = item; + }); + }); + } + }, + // 鎼滅储 + handleTempType() { + this.loading = true; + this.transmit(); + }, + // 鍙栨秷鎸夐挳 + cancel() { + this.open = false; + this.reset(); + }, + // 琛ㄥ崟閲嶇疆 + reset() { + this.form = { + orderId: null, + userId: null, + tjType: null, + tjNumber: null, + tjSerialNumber: null, + pacId: null, + createTime: null, + finishTime: null, + updateTime: null, + reportTime: null, + createBy: null, + updateBy: null, + deleted: null, + firmId: null, + firmDeptName: null, + firmWorkId: null, + photo: null, + }; + this.resetForm("form"); + }, + hb() { + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, + /** 鎼滅储鎸夐挳鎿嶄綔 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + /** 閲嶇疆鎸夐挳鎿嶄綔 */ + resetQuery() { + this.resetForm("queryForm"); + this.handleQuery(); + }, + + // 澶氶�夋閫変腑鏁版嵁 + handleSelectionChange(selection) { + this.ids = selection.map((item) => item.id); + this.single = selection.length !== 1; + this.multiple = !selection.length; + }, + handleChange(selection) { + selection.forEach((item) => { + this.tempId = item.id; + }); + + if (selection.length > 1) { + let del_row = selection.shift(); + this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑 + } + }, + + // 鍑虹幇閭欢寮规 + transmit() { + this.drawer = true; + this.mail = true; + this.title = "閫夋嫨閭欢鍙戦�佹ā鏉�"; + this.loading = true; + listSendTemplate(this.querytempType).then((response) => { + this.sendTemplateList = response.rows; + this.total = response.total; + this.loading = false; + }); + // let orderIds = this.ids; + // sendEmail(orderIds).then((response) => { + // if (msg === "鎿嶄綔鎴愬姛") { + // this.$modal.msgSuccess("鍙戦�佹垚鍔燂紒"); + // } + // if (code === 500) { + // this.$error.msgSuccess("鍙戦�佸け璐ワ紒"); + // } + // }); + // this.$tab.refreshPage(); + }, + // 鍑虹幇鐭俊寮规 + transmittext() { + this.drawer = true; + this.mail = false; + this.title = "閫夋嫨鐭俊鍙戦�佹ā鏉�"; + this.loading = true; + listSendTemplate(this.querytempType).then((response) => { + this.sendTemplateList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + + // 鍙戦�侀偖浠� + sendingmail() { + if (this.tempId) { + let data = { + yqorderIds: this.ids, + tempId: this.tempId, + type: 1, + }; + sendMessageOrEmail(data).then((res) => { + if (res.code === 200) { + this.$modal.msgSuccess("鍙戦�佹垚鍔�"); + this.getList(); + } + }); + this.drawer = false; + } else { + this.$modal.msgError("璇烽�夋嫨閭欢妯℃澘"); + } + }, + // 鍙戦�佺煭淇� + sendingtext() { + if (this.tempId) { + let data = { + yqorderIds: this.ids, + tempId: this.tempId, + type: 2, + }; + sendMessageOrEmail(data).then((res) => { + if (res.code === 200) { + this.$modal.msgSuccess("鍙戦�佹垚鍔�"); + this.getList(); + } + }); + this.drawer = false; + } else { + this.$modal.msgError("璇烽�夋嫨鐭俊妯℃澘"); + } + }, + }, }; </script> <style lang="scss"> .pag { - width: 100%; - display: flex; - justify-content: center; + width: 100%; + display: flex; + justify-content: center; } .pag1 { - width: 30%; + width: 30%; } .el-table__header-wrapper .el-checkbox { - display: none; + display: none; } .main { - height: 700px; - overflow: hidden; + height: 700px; + overflow: hidden; } #printIframe::-webkit-scrollbar { - width: 6px; + width: 6px; } /* 淇敼 婊氬姩鏉$殑 涓嬮潰 鐨� 鏍峰紡 */ #printIframe::-webkit-scrollbar-track { - background-color: white; - -webkit-border-radius: 2em; - -moz-border-radius: 2em; - border-radius: 2em; + background-color: white; + -webkit-border-radius: 2em; + -moz-border-radius: 2em; + border-radius: 2em; } /* 淇敼 婊戝潡 */ #printIframe::-webkit-scrollbar-thumb { - background-color: #dcdfe6; - -webkit-border-radius: 2em; - -moz-border-radius: 2em; - border-radius: 2em; + background-color: #dcdfe6; + -webkit-border-radius: 2em; + -moz-border-radius: 2em; + border-radius: 2em; } .tab1 { - width: 700px; - display: flex; - margin-top: 8px; + width: 700px; + display: flex; + margin-top: 8px; } .drawer1 { - display: flex; - flex-direction: row; - justify-content: space-evenly; - align-items: flex-start; + display: flex; + flex-direction: row; + justify-content: space-evenly; + align-items: flex-start; } .drawer2 { - height: 100px; - display: flex; - justify-content: space-evenly; - align-items: flex-start; - flex-direction: column; - margin-top: 20px; - font-size: 16px; - margin-bottom: 20px; + height: 100px; + display: flex; + justify-content: space-evenly; + align-items: flex-start; + flex-direction: column; + margin-top: 20px; + font-size: 16px; + margin-bottom: 20px; } .a { - font-size: 14px; - color: #409eff; + font-size: 14px; + color: #409eff; } .drawer3 { - min-height: 400px; - display: flex; - flex-direction: column; - justify-content: space-evenly; - align-items: flex-start; - font-size: 14px; + min-height: 400px; + display: flex; + flex-direction: column; + justify-content: space-evenly; + align-items: flex-start; + font-size: 14px; } .drawer4 { - width: 100%; - height: 20px; - display: flex; - justify-content: center; - margin-top: 10px; + width: 100%; + height: 20px; + display: flex; + justify-content: center; + margin-top: 10px; } .drawer4 { - display: flex; - justify-content: center; + display: flex; + justify-content: center; } .ap { - font-size: 14px; - color: #606266; - font-weight: 600; + font-size: 14px; + color: #606266; + font-weight: 600; } </style> \ No newline at end of file diff --git a/src/views/hosp/fuzhen/index.vue b/src/views/hosp/fuzhen/index.vue index 90924b8..42ca925 100644 --- a/src/views/hosp/fuzhen/index.vue +++ b/src/views/hosp/fuzhen/index.vue @@ -7,7 +7,7 @@ </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNum"> <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" style="width: 170px" clearable - @keyup.enter.native="handleQuery" @blur="handleQuery" /> + @keyup.enter.native="handleQuery" @blur="hb" /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions" @@ -580,6 +580,12 @@ }; this.resetForm("form"); }, + + hb() { + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/hosp/history/index.vue b/src/views/hosp/history/index.vue index 36b0bd2..db9abc2 100644 --- a/src/views/hosp/history/index.vue +++ b/src/views/hosp/history/index.vue @@ -27,6 +27,7 @@ style="width: 170px" clearable @keyup.enter.native="handleQuery" + @blur="hb" /> </el-form-item> <el-form-item> @@ -172,7 +173,6 @@ ], data() { let checkPhoneNum = (rule, value, callback) => { - console.log(value); let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); if (value == "" && value == undefined && !value) { return callback(""); @@ -365,6 +365,11 @@ this.tjAskHistorysList = []; this.resetForm("form"); }, + hb(){ + if (this.queryParams.tjNum != undefined) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/hosp/hzlog/index.vue b/src/views/hosp/hzlog/index.vue index 2c4573b..afb809f 100644 --- a/src/views/hosp/hzlog/index.vue +++ b/src/views/hosp/hzlog/index.vue @@ -1,19 +1,46 @@ <template> - <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> - <el-form-item label="浣撴鍙�" prop="tjNumber"> - <el-input ref="inputName" v-model="queryParams.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" @blur="handleQuery" /> - </el-form-item> - <el-form-item label="鐢ㄦ埛鍚�" prop="userName"> - <el-input v-model="queryParams.userName" placeholder="璇疯緭鍏ョ敤鎴峰悕" clearable @keyup.enter.native="handleQuery" /> - </el-form-item> - <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> - </el-form-item> - </el-form> + <div class="app-container"> + <el-form + :model="queryParams" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="68px" + > + <el-form-item label="浣撴鍙�" prop="tjNumber"> + <el-input + ref="inputName" + v-model="queryParams.tjNumber" + placeholder="璇疯緭鍏ヤ綋妫�鍙�" + clearable + @keyup.enter.native="handleQuery" + @blur="hb" + /> + </el-form-item> + <el-form-item label="鐢ㄦ埛鍚�" prop="userName"> + <el-input + v-model="queryParams.userName" + placeholder="璇疯緭鍏ョ敤鎴峰悕" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handleQuery" + >鎼滅储</el-button + > + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" + >閲嶇疆</el-button + > + </el-form-item> + </el-form> - <!-- <el-row :gutter="10" class="mb8"> + <!-- <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['hosp:hzlog:add']">鏂板 @@ -37,56 +64,84 @@ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> --> - <el-table v-loading="loading" :data="hzlogList" @selection-change="handleSelectionChange" border> - <el-table-column type="selection" width="55" align="center" /> - <!-- <el-table-column label="浼氳瘖id" align="center" prop="id" /> --> - <!-- <el-table-column label="浼氳瘖璁㈠崟" align="center" prop="orderId" /> --> - <!-- <el-table-column label="鐢ㄦ埛" align="center" prop="userId" /> --> - <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" /> - <el-table-column label="鐢ㄦ埛鍚�" align="center" prop="userName" /> - <el-table-column label="浼氳瘖绫诲瀷" align="center" prop="hzType"> - <template slot-scope="scope"> - <span v-if="scope.row.hzType == '0'">鍏ㄩ櫌浼氳瘖</span> - <span v-if="scope.row.hzType == '1'">绉戝浼氳瘖</span> - - </template> - </el-table-column> - <!-- 0鍏ㄩ櫌浼氳瘖1绉戝浼氳瘖 --> - <el-table-column label="浼氳瘖绉戝" align="center" prop="hzDeptName" /> - <!-- <el-table-column label="浼氳瘖鐢宠浜�" align="center" prop="hzDoctorId" /> --> - <el-table-column label="浼氳瘖鐢宠浜�" align="center" prop="hzDoctorName" /> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> - <template slot-scope="scope"> - <el-button size="mini" type="text" @click="handleUpdate(scope.row)" - v-hasPermi="['hosp:hzlog:edit']">鏌ョ湅鍥炲 - </el-button> - <!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" + <el-table + v-loading="loading" + :data="hzlogList" + @selection-change="handleSelectionChange" + border + > + <el-table-column type="selection" width="55" align="center" /> + <!-- <el-table-column label="浼氳瘖id" align="center" prop="id" /> --> + <!-- <el-table-column label="浼氳瘖璁㈠崟" align="center" prop="orderId" /> --> + <!-- <el-table-column label="鐢ㄦ埛" align="center" prop="userId" /> --> + <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" /> + <el-table-column label="鐢ㄦ埛鍚�" align="center" prop="userName" /> + <el-table-column label="浼氳瘖绫诲瀷" align="center" prop="hzType"> + <template slot-scope="scope"> + <dict-tag + :options="dict.type.hz_type" + :value="scope.row.hzType" + /> + </template> + </el-table-column> + <!-- 0鍏ㄩ櫌浼氳瘖1绉戝浼氳瘖 --> + <el-table-column label="浼氳瘖绉戝" align="center" prop="hzDeptName" /> + <!-- <el-table-column label="浼氳瘖鐢宠浜�" align="center" prop="hzDoctorId" /> --> + <el-table-column label="浼氳瘖鐢宠浜�" align="center" prop="hzDoctorName" /> + <el-table-column + label="鎿嶄綔" + align="center" + class-name="small-padding fixed-width" + > + <template slot-scope="scope"> + <el-button + size="mini" + type="text" + @click="handleUpdate(scope.row)" + v-hasPermi="['hosp:hzlog:edit']" + >鏌ョ湅鍥炲 + </el-button> + <!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['hosp:hzlog:remove']">鍒犻櫎 </el-button> --> - </template> - </el-table-column> - </el-table> + </template> + </el-table-column> + </el-table> - <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" - @pagination="getList" /> + <pagination + v-show="total > 0" + :total="total" + :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" + @pagination="getList" + /> - <el-drawer title="浼氳瘖鍥炲璁板綍" :visible.sync="drawer" :before-close="handleClose" > - <div class="block"> - <el-timeline > - <el-timeline-item v-for="(item,index) in hzReplyLogsList" :key="index" :timestamp=item.createTime placement="top"> - <el-card> - <h2>绉戝锛歿{ item.replyDeptName}}</h2> - <h3>鍥炲鍐呭锛歿{ item.replyContent}}</h3> - <p>{{ item.replyDoctorName}} 鎻愪氦浜� {{item.createTime}}</p> - </el-card> - </el-timeline-item> - </el-timeline> - </div> - </el-drawer> + <el-drawer + title="浼氳瘖鍥炲璁板綍" + :visible.sync="drawer" + :before-close="handleClose" + > + <div class="block"> + <el-timeline> + <el-timeline-item + v-for="(item, index) in hzReplyLogsList" + :key="index" + :timestamp="item.createTime" + placement="top" + > + <el-card> + <h2>绉戝锛歿{ item.replyDeptName }}</h2> + <h3>鍥炲鍐呭锛歿{ item.replyContent }}</h3> + <p>{{ item.replyDoctorName }} 鎻愪氦浜� {{ item.createTime }}</p> + </el-card> + </el-timeline-item> + </el-timeline> + </div> + </el-drawer> - <!-- 娣诲姞鎴栦慨鏀逛細璇婄敵璇疯褰� + <!-- 娣诲姞鎴栦慨鏀逛細璇婄敵璇疯褰� 瀵硅瘽妗� --> - <!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> + <!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form-item label="浼氳瘖璁㈠崟id" prop="orderId"> <el-input v-model="form.orderId" placeholder="璇疯緭鍏ヤ細璇婅鍗昳d" /> @@ -115,331 +170,334 @@ <el-button @click="cancel">鍙� 娑�</el-button> </div> </el-dialog> --> - </div> + </div> </template> <script> import { - listHzlog, - getHzlog, - delHzlog, - addHzlog, - updateHzlog + listHzlog, + getHzlog, + delHzlog, + addHzlog, + updateHzlog, } from "@/api/hosp/hzlog"; export default { - name: "Hzlog", - data() { - return { - // 閬僵灞� - loading: true, - // 閫変腑鏁扮粍 - ids: [], - // 闈炲崟涓鐢� - single: true, - // 闈炲涓鐢� - multiple: true, - // 鏄剧ず鎼滅储鏉′欢 - showSearch: true, - // 鎬绘潯鏁� - total: 0, - // 浼氳瘖鐢宠璁板綍 - // 琛ㄦ牸鏁版嵁 - hzlogList: [], - hzReplyLogsList:[], - drawer: false, - // 寮瑰嚭灞傛爣棰� - title: "", - // 鏄惁鏄剧ず寮瑰嚭灞� - open: false, - // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 10, - tjNumber: null, - userName: null, - hzType: null, - }, - // 琛ㄥ崟鍙傛暟 - form: {}, - // 琛ㄥ崟鏍¢獙 - rules: { - } - }; - }, - created() { - this.getList(); - }, - mounted() { + name: "Hzlog", + dicts: ["hz_type"], + data() { + return { + // 閬僵灞� + loading: true, + // 閫変腑鏁扮粍 + ids: [], + // 闈炲崟涓鐢� + single: true, + // 闈炲涓鐢� + multiple: true, + // 鏄剧ず鎼滅储鏉′欢 + showSearch: true, + // 鎬绘潯鏁� + total: 0, + // 浼氳瘖鐢宠璁板綍 + // 琛ㄦ牸鏁版嵁 + hzlogList: [], + hzReplyLogsList: [], + drawer: false, + // 寮瑰嚭灞傛爣棰� + title: "", + // 鏄惁鏄剧ず寮瑰嚭灞� + open: false, + // 鏌ヨ鍙傛暟 + queryParams: { + pageNum: 1, + pageSize: 10, + tjNumber: null, + userName: null, + hzType: null, + }, + // 琛ㄥ崟鍙傛暟 + form: {}, + // 琛ㄥ崟鏍¢獙 + rules: {}, + }; + }, + created() { + this.getList(); + }, + mounted() { this.$nextTick(() => { this.$refs.inputName.focus(); }); }, - methods: { - /** 鏌ヨ浼氳瘖鐢宠璁板綍 + methods: { + /** 鏌ヨ浼氳瘖鐢宠璁板綍 鍒楄〃 */ - getList() { - this.loading = true; - listHzlog(this.queryParams).then(response => { - this.hzlogList = response.rows; - this.total = response.total; - this.loading = false; - }); - }, - // 鍙栨秷鎸夐挳 - cancel() { - this.open = false; - this.reset(); - }, - handleClose() { - this.drawer = false; - this.reset(); - }, - // 琛ㄥ崟閲嶇疆 - reset() { - this.form = { - id: null, - orderId: null, - userId: null, - tjNumber: null, - userName: null, - hzType: null, - hzDeptId: null, - createTime: null, - updateTime: null, - createBy: null, - updateBy: null, - deleted: null, - hzDoctorId: null, - hzDoctorName: null - }; - this.resetForm("form"); - }, - /** 鎼滅储鎸夐挳鎿嶄綔 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, - /** 閲嶇疆鎸夐挳鎿嶄綔 */ - resetQuery() { - this.resetForm("queryForm"); - this.handleQuery(); - }, - // 澶氶�夋閫変腑鏁版嵁 - handleSelectionChange(selection) { - this.ids = selection.map(item => item.id) - this.single = selection.length !== 1 - this.multiple = !selection.length - }, - handleUpdate(row) { - this.reset(); - this.drawer = true; - this.hzReplyLogsList = row.hzReplyLogsList - - }, - /** 鏂板鎸夐挳鎿嶄綔 */ - // handleAdd() { - // this.reset(); - // this.open = true; - // this.title = "娣诲姞浼氳瘖鐢宠璁板綍 - // "; - // }, - // /** 淇敼鎸夐挳鎿嶄綔 */ - // handleUpdate(row) { - // this.reset(); - // const id = row.id || this.ids - // getHzlog(id).then(response => { - // this.form = response.data; - // this.open = true; - // this.title = "淇敼浼氳瘖鐢宠璁板綍 - // "; - // }); - // }, - /** 鎻愪氦鎸夐挳 */ - // submitForm() { - // this.$]] - // #refs["form"].validate(valid => { - // if (valid) { - // #foreach($column in $columns) - // #if($column.htmlType == "checkbox") - // this.form.$column.javaField = this.form.$ - // { - // column.javaField - // } - // . - // join(","); - // #end - // #end - // #if($table.sub) - // this.form.$ - // { - // subclassName - // } - // List = this.$ - // { - // subclassName - // } - // List; - // #end - // if (this.form.${ - // pkColumn.javaField - // } - // != - // null - // ) - // { - // update$ - // { - // BusinessName - // } - // (this.form).then(response => { - // this.#[[$modal]] - // #.msgSuccess("淇敼鎴愬姛"); - // this.open = false; - // this.getList(); - // }); - // } - // else - // { - // add$ - // { - // BusinessName - // } - // (this.form).then(response => { - // this.#[[$modal]] - // #.msgSuccess("鏂板鎴愬姛"); - // this.open = false; - // this.getList(); - // }); - // } - // } - // }); - // }, - // /** 鍒犻櫎鎸夐挳鎿嶄綔 */ - // handleDelete(row) { - // const ${ pkColumn.javaField }s = row.$ - // { - // pkColumn.javaField - // } - // || - // this.ids; - // this.#[[$modal]] - // #.confirm('鏄惁纭鍒犻櫎${functionName}缂栧彿涓�"' + ${ pkColumn.javaField }s + '"鐨勬暟鎹」锛�').then(function () { - // return del$ - // { - // BusinessName - // } - // (${ pkColumn.javaField }s); - // }).then(() => { - // this.getList(); - // this.#[[$modal]] - // #.msgSuccess("鍒犻櫎鎴愬姛"); - // }).catch(() => { - // }); - // }, - // #if($table.sub) - // /** ${subTable.functionName}搴忓彿 */ - // row$ - // { - // subClassName - // } - // Index({ row, rowIndex }) - // { - // row.index = rowIndex + 1; - // } - // , - // /** ${subTable.functionName}娣诲姞鎸夐挳鎿嶄綔 */ - // handleAdd$ - // { - // subClassName - // } - // () - // { - // let obj = {}; - // #foreach($column in $subTable.columns) - // #if($column.pk || $column.javaField == ${ subTableFkclassName }) - // #elseif($column.list && "" != $javaField) - // obj.$column.javaField = ""; - // #end - // #end - // this.$ - // { - // subclassName - // } - // List.push(obj); - // } - // , - // /** ${subTable.functionName}鍒犻櫎鎸夐挳鎿嶄綔 */ - // handleDelete$ - // { - // subClassName - // } - // () - // { - // if (this.checked${ - // subClassName - // } - // . - // length == 0 - // ) - // { - // this.#[[$modal]] - // #.msgError("璇峰厛閫夋嫨瑕佸垹闄ょ殑${subTable.functionName}鏁版嵁"); - // } - // else - // { - // const ${ subclassName }List = this.$ - // { - // subclassName - // } - // List; - // const checked$ - // { - // subClassName - // } - // = this.checked$ - // { - // subClassName - // } - // ; - // this.$ - // { - // subclassName - // } - // List = ${ subclassName } List.filter(function (item) { - // return checked$ - // { - // subClassName - // } - // . - // indexOf(item.index) == -1 - // }); - // } - // } - // , - // /** 澶嶉�夋閫変腑鏁版嵁 */ - // handle$ - // { - // subClassName - // } - // SelectionChange(selection) - // { - // this.checked$ - // { - // subClassName - // } - // = selection.map(item => item.index) - // } - // , - // #end - // /** 瀵煎嚭鎸夐挳鎿嶄綔 */ - // handleExport() - // { - // this.download('${moduleName}/${businessName}/export', { - // ...this.queryParams - // }, `${businessName}_#[[${new Date().getTime()}.xlsx`) - // } - } -} - ; + getList() { + this.loading = true; + listHzlog(this.queryParams).then((response) => { + this.hzlogList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + // 鍙栨秷鎸夐挳 + cancel() { + this.open = false; + this.reset(); + }, + handleClose() { + this.drawer = false; + this.reset(); + }, + // 琛ㄥ崟閲嶇疆 + reset() { + this.form = { + id: null, + orderId: null, + userId: null, + tjNumber: null, + userName: null, + hzType: null, + hzDeptId: null, + createTime: null, + updateTime: null, + createBy: null, + updateBy: null, + deleted: null, + hzDoctorId: null, + hzDoctorName: null, + }; + this.resetForm("form"); + }, + hb() { + if (this.queryParams.tjNumber != null) { + this.handleQuery(); + } + }, + /** 鎼滅储鎸夐挳鎿嶄綔 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + /** 閲嶇疆鎸夐挳鎿嶄綔 */ + resetQuery() { + this.resetForm("queryForm"); + this.handleQuery(); + }, + // 澶氶�夋閫変腑鏁版嵁 + handleSelectionChange(selection) { + this.ids = selection.map((item) => item.id); + this.single = selection.length !== 1; + this.multiple = !selection.length; + }, + handleUpdate(row) { + this.reset(); + this.drawer = true; + this.hzReplyLogsList = row.hzReplyLogsList; + }, + /** 鏂板鎸夐挳鎿嶄綔 */ + // handleAdd() { + // this.reset(); + // this.open = true; + // this.title = "娣诲姞浼氳瘖鐢宠璁板綍 + // "; + // }, + // /** 淇敼鎸夐挳鎿嶄綔 */ + // handleUpdate(row) { + // this.reset(); + // const id = row.id || this.ids + // getHzlog(id).then(response => { + // this.form = response.data; + // this.open = true; + // this.title = "淇敼浼氳瘖鐢宠璁板綍 + // "; + // }); + // }, + /** 鎻愪氦鎸夐挳 */ + // submitForm() { + // this.$]] + // #refs["form"].validate(valid => { + // if (valid) { + // #foreach($column in $columns) + // #if($column.htmlType == "checkbox") + // this.form.$column.javaField = this.form.$ + // { + // column.javaField + // } + // . + // join(","); + // #end + // #end + // #if($table.sub) + // this.form.$ + // { + // subclassName + // } + // List = this.$ + // { + // subclassName + // } + // List; + // #end + // if (this.form.${ + // pkColumn.javaField + // } + // != + // null + // ) + // { + // update$ + // { + // BusinessName + // } + // (this.form).then(response => { + // this.#[[$modal]] + // #.msgSuccess("淇敼鎴愬姛"); + // this.open = false; + // this.getList(); + // }); + // } + // else + // { + // add$ + // { + // BusinessName + // } + // (this.form).then(response => { + // this.#[[$modal]] + // #.msgSuccess("鏂板鎴愬姛"); + // this.open = false; + // this.getList(); + // }); + // } + // } + // }); + // }, + // /** 鍒犻櫎鎸夐挳鎿嶄綔 */ + // handleDelete(row) { + // const ${ pkColumn.javaField }s = row.$ + // { + // pkColumn.javaField + // } + // || + // this.ids; + // this.#[[$modal]] + // #.confirm('鏄惁纭鍒犻櫎${functionName}缂栧彿涓�"' + ${ pkColumn.javaField }s + '"鐨勬暟鎹」锛�').then(function () { + // return del$ + // { + // BusinessName + // } + // (${ pkColumn.javaField }s); + // }).then(() => { + // this.getList(); + // this.#[[$modal]] + // #.msgSuccess("鍒犻櫎鎴愬姛"); + // }).catch(() => { + // }); + // }, + // #if($table.sub) + // /** ${subTable.functionName}搴忓彿 */ + // row$ + // { + // subClassName + // } + // Index({ row, rowIndex }) + // { + // row.index = rowIndex + 1; + // } + // , + // /** ${subTable.functionName}娣诲姞鎸夐挳鎿嶄綔 */ + // handleAdd$ + // { + // subClassName + // } + // () + // { + // let obj = {}; + // #foreach($column in $subTable.columns) + // #if($column.pk || $column.javaField == ${ subTableFkclassName }) + // #elseif($column.list && "" != $javaField) + // obj.$column.javaField = ""; + // #end + // #end + // this.$ + // { + // subclassName + // } + // List.push(obj); + // } + // , + // /** ${subTable.functionName}鍒犻櫎鎸夐挳鎿嶄綔 */ + // handleDelete$ + // { + // subClassName + // } + // () + // { + // if (this.checked${ + // subClassName + // } + // . + // length == 0 + // ) + // { + // this.#[[$modal]] + // #.msgError("璇峰厛閫夋嫨瑕佸垹闄ょ殑${subTable.functionName}鏁版嵁"); + // } + // else + // { + // const ${ subclassName }List = this.$ + // { + // subclassName + // } + // List; + // const checked$ + // { + // subClassName + // } + // = this.checked$ + // { + // subClassName + // } + // ; + // this.$ + // { + // subclassName + // } + // List = ${ subclassName } List.filter(function (item) { + // return checked$ + // { + // subClassName + // } + // . + // indexOf(item.index) == -1 + // }); + // } + // } + // , + // /** 澶嶉�夋閫変腑鏁版嵁 */ + // handle$ + // { + // subClassName + // } + // SelectionChange(selection) + // { + // this.checked$ + // { + // subClassName + // } + // = selection.map(item => item.index) + // } + // , + // #end + // /** 瀵煎嚭鎸夐挳鎿嶄綔 */ + // handleExport() + // { + // this.download('${moduleName}/${businessName}/export', { + // ...this.queryParams + // }, `${businessName}_#[[${new Date().getTime()}.xlsx`) + // } + }, +}; </script> diff --git a/src/views/hosp/inspection/index.vue b/src/views/hosp/inspection/index.vue index c24d5dc..ffb8914 100644 --- a/src/views/hosp/inspection/index.vue +++ b/src/views/hosp/inspection/index.vue @@ -1,187 +1,286 @@ <template> - <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> - <el-form-item label="浣撴鍙�" prop="tjNum"> - <el-input v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" ref="inputName" @blur="handleQuery" /> - </el-form-item> - <el-form-item label="瀹㈡埛濮撳悕" prop="cusName"> - <el-input v-model="queryParams.cusName" placeholder="璇疯緭鍏ュ鎴峰鍚�" clearable @keyup.enter.native="handleQuery" /> - </el-form-item> - <el-form-item label="鐧昏鏃堕棿" prop="registrationTime"> - <el-date-picker clearable v-model="queryParams.registrationTime" type="date" value-format="yyyy-MM-dd" - placeholder="璇烽�夋嫨鐧昏鏃堕棿"> - </el-date-picker> - </el-form-item> - <el-form-item label="椤圭洰鍚�" prop="proName"> - <el-input v-model="queryParams.proName" placeholder="璇疯緭鍏ラ」鐩悕" clearable @keyup.enter.native="handleQuery" /> - </el-form-item> - <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> - </el-form-item> - </el-form> + <div class="app-container"> + <el-form + :model="queryParams" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="68px" + > + <el-form-item label="浣撴鍙�" prop="tjNum"> + <el-input + v-model="queryParams.tjNum" + placeholder="璇疯緭鍏ヤ綋妫�鍙�" + clearable + @keyup.enter.native="handleQuery" + ref="inputName" + @blur="hb" + /> + </el-form-item> + <el-form-item label="瀹㈡埛濮撳悕" prop="cusName"> + <el-input + v-model="queryParams.cusName" + placeholder="璇疯緭鍏ュ鎴峰鍚�" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="鐧昏鏃堕棿" prop="registrationTime"> + <el-date-picker + clearable + v-model="queryParams.registrationTime" + type="date" + value-format="yyyy-MM-dd" + placeholder="璇烽�夋嫨鐧昏鏃堕棿" + > + </el-date-picker> + </el-form-item> + <el-form-item label="椤圭洰鍚�" prop="proName"> + <el-input + v-model="queryParams.proName" + placeholder="璇疯緭鍏ラ」鐩悕" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handleQuery" + >鎼滅储</el-button + > + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" + >閲嶇疆</el-button + > + </el-form-item> + </el-form> - <el-row :gutter="10" class="mb8"> - <el-col :span="1.5"> - <el-button type="primary" plain size="mini" v-hasPermi="['hosp:detail:add']" - @click="handlerestore">鎭㈠</el-button> - </el-col> + <el-row :gutter="10" class="mb8"> + <el-col :span="1.5"> + <el-button + type="primary" + plain + size="mini" + v-hasPermi="['hosp:detail:add']" + @click="handlerestore" + >鎭㈠</el-button + > + </el-col> + </el-row> - </el-row> + <el-table + v-loading="loading" + :data="inspectionList" + border + @selection-change="handleSelectionChange" + > + <el-table-column type="selection" width="55" align="center" /> + <el-table-column label="搴忓彿" align="center" prop="newID" width="55px" /> + <el-table-column + label="浣撴鍙�" + align="center" + prop="tjNum" + :show-overflow-tooltip="true" + /> + <!-- <el-table-column label="瀹㈡埛缂栧彿" align="center" prop="cusId" /> --> + <el-table-column + label="瀹㈡埛濮撳悕" + align="center" + prop="cusName" + :show-overflow-tooltip="true" + /> + <el-table-column + label="韬唤璇佸彿" + align="center" + prop="cusId" + :show-overflow-tooltip="true" + /> + <el-table-column + label="椤圭洰鍚�" + align="center" + prop="proName" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鍒涘缓浜�" + align="center" + prop="createBy" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鐧昏鏃堕棿" + align="center" + prop="registrationTime" + :show-overflow-tooltip="true" + > + <template slot-scope="scope"> + <span>{{ + parseTime(scope.row.registrationTime, "{y}-{m}-{d}") + }}</span> + </template> + </el-table-column> + <el-table-column + label="寮冩鏃堕棿" + align="center" + prop="createTime" + width="160px" + :show-overflow-tooltip="true" + > + <template slot-scope="scope"> + <span>{{ + parseTime(scope.row.createTime, "{y}-{m}-{d} {hh}:{mm}:{ss}") + }}</span> + </template> + </el-table-column> + <el-table-column + label="澶囨敞" + align="center" + prop="remark" + :show-overflow-tooltip="true" + /> + <!-- <el-table-column label="椤圭洰缂栧彿" align="center" prop="proId" /> --> + </el-table> - <el-table v-loading="loading" :data="inspectionList" border @selection-change="handleSelectionChange"> - <el-table-column type="selection" width="55" align="center" /> - <el-table-column label="搴忓彿" align="center" prop="newID" width="55px" /> - <el-table-column label="浣撴鍙�" align="center" prop="tjNum" :show-overflow-tooltip="true" /> - <!-- <el-table-column label="瀹㈡埛缂栧彿" align="center" prop="cusId" /> --> - <el-table-column label="瀹㈡埛濮撳悕" align="center" prop="cusName" :show-overflow-tooltip="true" /> - <el-table-column label="韬唤璇佸彿" align="center" prop="cusId" :show-overflow-tooltip="true" /> - <el-table-column label="椤圭洰鍚�" align="center" prop="proName" :show-overflow-tooltip="true" /> - <el-table-column label="鍒涘缓浜�" align="center" prop="createBy" :show-overflow-tooltip="true" /> - <el-table-column label="鐧昏鏃堕棿" align="center" prop="registrationTime" :show-overflow-tooltip="true"> - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.registrationTime, '{y}-{m}-{d}') }}</span> - </template> - </el-table-column> - <el-table-column label="寮冩鏃堕棿" align="center" prop="createTime" width="160px" :show-overflow-tooltip="true"> - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {hh}:{mm}:{ss}') }}</span> - </template> - </el-table-column> - <el-table-column label="澶囨敞" align="center" prop="remark" :show-overflow-tooltip="true" /> - <!-- <el-table-column label="椤圭洰缂栧彿" align="center" prop="proId" /> --> - - </el-table> - - <div class="pag"> - <div class="pag1"> - <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" - :limit.sync="queryParams.pageSize" @pagination="getList" /> - </div> - </div> - - + <div class="pag"> + <div class="pag1"> + <pagination + v-show="total > 0" + :total="total" + :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" + @pagination="getList" + /> + </div> </div> + </div> </template> <script> -import { - listInspection, recall -} from "@/api/hosp/inspection"; +import { listInspection, recall } from "@/api/hosp/inspection"; export default { - name: "Inspection", - data() { - return { - // 閬僵灞� - loading: true, - // 閫変腑鏁扮粍 - ids: [], - // 闈炲崟涓鐢� - single: true, - // 闈炲涓鐢� - multiple: true, - // 鏄剧ず鎼滅储鏉′欢 - showSearch: true, - // 鎬绘潯鏁� - total: 0, - allList: [], - // 寮冩琛ㄦ牸鏁版嵁 - inspectionList: [], + name: "Inspection", + data() { + return { + // 閬僵灞� + loading: true, + // 閫変腑鏁扮粍 + ids: [], + // 闈炲崟涓鐢� + single: true, + // 闈炲涓鐢� + multiple: true, + // 鏄剧ず鎼滅储鏉′欢 + showSearch: true, + // 鎬绘潯鏁� + total: 0, + allList: [], + // 寮冩琛ㄦ牸鏁版嵁 + inspectionList: [], - // 鏄惁鏄剧ず寮瑰嚭灞� - open: false, - // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 10, - tjNum: null, - cusName: null, - registrationTime: null, - proName: null - }, - // 琛ㄥ崟鍙傛暟 - form: {}, - }; - }, - created() { - this.getList(); - }, - mounted() { + // 鏄惁鏄剧ず寮瑰嚭灞� + open: false, + // 鏌ヨ鍙傛暟 + queryParams: { + pageNum: 1, + pageSize: 10, + tjNum: null, + cusName: null, + registrationTime: null, + proName: null, + }, + // 琛ㄥ崟鍙傛暟 + form: {}, + }; + }, + created() { + this.getList(); + }, + mounted() { this.$nextTick(() => { this.$refs.inputName.focus(); }); }, - methods: { - /** 鏌ヨ寮冩鍒楄〃 */ - getList() { - this.loading = true; - listInspection(this.queryParams).then(response => { - this.inspectionList = response.rows; - response.rows.forEach((item, index) => { - item.newID = (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1 - }); - this.total = response.total; - this.loading = false; - }); - }, - // 鍙栨秷鎸夐挳 - cancel() { - this.open = false; - this.reset(); - }, - // 琛ㄥ崟閲嶇疆 - reset() { - this.form = { - id: null, - deleted: null, - createBy: null, - createTime: null, - updateBy: null, - updateTime: null, - tjNum: null, - cusId: null, - cusName: null, - registrationTime: null, - proId: null, - proName: null - }; - this.resetForm("form"); - }, - /** 鎼滅储鎸夐挳鎿嶄綔 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, - /** 閲嶇疆鎸夐挳鎿嶄綔 */ - resetQuery() { - this.resetForm("queryForm"); - this.handleQuery(); - }, - // 澶氶�夋閫変腑鏁版嵁 - handleSelectionChange(selection) { - this.allList = selection - console.log(this.allList ) - }, - handlerestore() { - recall(this.allList).then(res => { - if(res.code == 200){ - this.$modal.msgSuccess("宸叉挙鍥炴垚鍔�"); - this.getList(); - } - }) + methods: { + /** 鏌ヨ寮冩鍒楄〃 */ + getList() { + this.loading = true; + listInspection(this.queryParams).then((response) => { + this.inspectionList = response.rows; + response.rows.forEach((item, index) => { + item.newID = + (this.queryParams.pageNum - 1) * this.queryParams.pageSize + + index + + 1; + }); + this.total = response.total; + this.loading = false; + }); + }, + // 鍙栨秷鎸夐挳 + cancel() { + this.open = false; + this.reset(); + }, + // 琛ㄥ崟閲嶇疆 + reset() { + this.form = { + id: null, + deleted: null, + createBy: null, + createTime: null, + updateBy: null, + updateTime: null, + tjNum: null, + cusId: null, + cusName: null, + registrationTime: null, + proId: null, + proName: null, + }; + this.resetForm("form"); + }, + hb() { + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, + /** 鎼滅储鎸夐挳鎿嶄綔 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + /** 閲嶇疆鎸夐挳鎿嶄綔 */ + resetQuery() { + this.resetForm("queryForm"); + this.handleQuery(); + }, + // 澶氶�夋閫変腑鏁版嵁 + handleSelectionChange(selection) { + this.allList = selection; + }, + handlerestore() { + recall(this.allList).then((res) => { + if (res.code == 200) { + this.$modal.msgSuccess("宸叉挙鍥炴垚鍔�"); + this.getList(); } - } + }); + }, + }, }; </script> <style scoped> .pag { - width: 100%; - display: flex; - justify-content: center; + width: 100%; + display: flex; + justify-content: center; } .pag1 { - width: 30%; + width: 30%; } </style> diff --git a/src/views/hosp/order/index.vue b/src/views/hosp/order/index.vue index cddafef..9c20890 100644 --- a/src/views/hosp/order/index.vue +++ b/src/views/hosp/order/index.vue @@ -7,7 +7,7 @@ </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNum"> <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" style="width: 170px" clearable - @keyup.enter.native="handleQuery" @blur="handleQuery" /> + @keyup.enter.native="handleQuery" @blur="hb" /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions" @@ -737,6 +737,11 @@ }; this.resetForm("form"); }, + hb(){ + if (this.queryParams.tjNum != undefined) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; @@ -867,7 +872,6 @@ // } this.TotalPrice1 = 0; this.proIds = []; - console.log(this.DataList) if (this.DataList.length != 0) { this.list1 = false; this.DataList.forEach((item) => { diff --git a/src/views/hosp/print/index.vue b/src/views/hosp/print/index.vue index ac6f8db..f9429bc 100644 --- a/src/views/hosp/print/index.vue +++ b/src/views/hosp/print/index.vue @@ -1,206 +1,270 @@ <template> - <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> - <el-form-item label="浣撴鍙�" prop="tjNumber"> - <el-input v-model="queryParams.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" style="width: 170px;" clearable @keyup.enter.native="handleQuery" ref="inputName" @blur="handleQuery" /> - </el-form-item> - <el-form-item label="瀹㈡埛鍚嶇О" prop="printBy"> - <el-input v-model="queryParams.printBy" placeholder="瀹㈡埛鍚嶇О" clearable style="width: 100px;" - @keyup.enter.native="handleQuery" /> - </el-form-item> - <el-form-item label="鎵撳嵃鏃堕棿" prop="printTime"> - <el-date-picker clearable v-model="queryParams.printTime" type="date" value-format="yyyy-MM-dd" - placeholder="璇烽�夋嫨鎵撳嵃鏃堕棿" style="width: 140px;"> - </el-date-picker> - </el-form-item> - <el-form-item label="鎵撳嵃鐘舵��" prop="printStatus"> - <el-select v-model="queryParams.printStatus" placeholder="鎵撳嵃鐘舵��" clearable style="width:110px"> - <el-option v-for="dict in dict.type.print_success_fail" :key="dict.value" :label="dict.label" :value="dict.value" /> + <div class="app-container"> + <el-form + :model="queryParams" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="68px" + > + <el-form-item label="浣撴鍙�" prop="tjNumber"> + <el-input + v-model="queryParams.tjNumber" + placeholder="璇疯緭鍏ヤ綋妫�鍙�" + style="width: 170px" + clearable + @keyup.enter.native="handleQuery" + ref="inputName" + @blur="hb" + /> + </el-form-item> + <el-form-item label="瀹㈡埛鍚嶇О" prop="printBy"> + <el-input + v-model="queryParams.printBy" + placeholder="瀹㈡埛鍚嶇О" + clearable + style="width: 100px" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="鎵撳嵃鏃堕棿" prop="printTime"> + <el-date-picker + clearable + v-model="queryParams.printTime" + type="date" + value-format="yyyy-MM-dd" + placeholder="璇烽�夋嫨鎵撳嵃鏃堕棿" + style="width: 140px" + > + </el-date-picker> + </el-form-item> + <el-form-item label="鎵撳嵃鐘舵��" prop="printStatus"> + <el-select + v-model="queryParams.printStatus" + placeholder="鎵撳嵃鐘舵��" + clearable + style="width: 110px" + > + <el-option + v-for="dict in dict.type.print_success_fail" + :key="dict.value" + :label="dict.label" + :value="dict.value" + /> </el-select> </el-form-item> - <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> - </el-form-item> - </el-form> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handleQuery" + >鎼滅储</el-button + > + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" + >閲嶇疆</el-button + > + </el-form-item> + </el-form> - <el-table v-loading="loading" :data="printList" @selection-change="handleSelectionChange" border style="width: 80%;"> - <el-table-column label="瀹㈡埛鍚嶇О" align="center" prop="printBy" /> - <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" /> - <el-table-column label="鎵撳嵃鎿嶄綔鍛�" align="center" prop="createBy" /> - <el-table-column label="鎵撳嵃鏃堕棿" align="center" prop="printTime" width="180"> - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.printTime) }}</span> - </template> - </el-table-column> - <el-table-column label="鎵撳嵃鐘舵��" align="center" prop="printStatus"> - <template slot-scope="scope"> - <dict-tag :options="dict.type.print_success_fail" :value="scope.row.printStatus" /> - </template> - </el-table-column> - </el-table> + <el-table + v-loading="loading" + :data="printList" + @selection-change="handleSelectionChange" + border + style="width: 80%" + > + <el-table-column label="瀹㈡埛鍚嶇О" align="center" prop="printBy" /> + <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" /> + <el-table-column label="鎵撳嵃鎿嶄綔鍛�" align="center" prop="createBy" /> + <el-table-column + label="鎵撳嵃鏃堕棿" + align="center" + prop="printTime" + width="180" + > + <template slot-scope="scope"> + <span>{{ parseTime(scope.row.printTime) }}</span> + </template> + </el-table-column> + <el-table-column label="鎵撳嵃鐘舵��" align="center" prop="printStatus"> + <template slot-scope="scope"> + <dict-tag + :options="dict.type.print_success_fail" + :value="scope.row.printStatus" + /> + </template> + </el-table-column> + </el-table> - <div class="pag"> + <div class="pag"> <div class="pag1"> - <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" - @pagination="getList" /> + <pagination + v-show="total > 0" + :total="total" + :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" + @pagination="getList" + /> </div> </div> - - - - </div> + </div> </template> <script> import { - listPrint, - getPrint, - delPrint, - addPrint, - updatePrint + listPrint, + getPrint, + delPrint, + addPrint, + updatePrint, } from "@/api/hosp/print"; import { getInfo } from "@/api/login"; export default { - name: "Print", - dicts: ["print_success_fail",], - data() { - let checkPhoneNum = (rule, value, callback) => { - console.log( value) + name: "Print", + dicts: ["print_success_fail"], + data() { + let checkPhoneNum = (rule, value, callback) => { + console.log(value); let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); if (value == "" && value == undefined && !value) { - return callback(''); - } else if(value != undefined && value != ""){ + return callback(""); + } else if (value != undefined && value != "") { return callback(); - }else if (!patter.test(value)) { - return callback(''); + } else if (!patter.test(value)) { + return callback(""); } }; - return { - // 閬僵灞� - loading: true, - // 閫変腑鏁扮粍 - ids: [], - // 闈炲崟涓鐢� - single: true, - // 闈炲涓鐢� - multiple: true, - // 鏄剧ず鎼滅储鏉′欢 - showSearch: true, - // 鎬绘潯鏁� - total: 0, - // 鎵撳嵃璁板綍琛ㄦ牸鏁版嵁 - printList: [], - // 寮瑰嚭灞傛爣棰� - title: "", - // 鏄惁鏄剧ず寮瑰嚭灞� - open: false, - user: {}, - // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 10, - tjNumber: null, - printBy: null, - printTime: null, - printStatus: null, - createBy:null - }, - // 琛ㄥ崟鍙傛暟 - form: {}, - // 琛ㄥ崟鏍¢獙 - rules: { - deleted: [ - { - required: true, validator: checkPhoneNum, trigger: "blur" - } - ] - } - }; - }, - created() { - this.getList(); - }, - mounted() { + return { + // 閬僵灞� + loading: true, + // 閫変腑鏁扮粍 + ids: [], + // 闈炲崟涓鐢� + single: true, + // 闈炲涓鐢� + multiple: true, + // 鏄剧ず鎼滅储鏉′欢 + showSearch: true, + // 鎬绘潯鏁� + total: 0, + // 鎵撳嵃璁板綍琛ㄦ牸鏁版嵁 + printList: [], + // 寮瑰嚭灞傛爣棰� + title: "", + // 鏄惁鏄剧ず寮瑰嚭灞� + open: false, + user: {}, + // 鏌ヨ鍙傛暟 + queryParams: { + pageNum: 1, + pageSize: 10, + tjNumber: null, + printBy: null, + printTime: null, + printStatus: null, + createBy: null, + }, + // 琛ㄥ崟鍙傛暟 + form: {}, + // 琛ㄥ崟鏍¢獙 + rules: { + deleted: [ + { + required: true, + validator: checkPhoneNum, + trigger: "blur", + }, + ], + }, + }; + }, + created() { + this.getList(); + }, + mounted() { this.$nextTick(() => { this.$refs.inputName.focus(); }); }, - methods: { - /** 鏌ヨ鎵撳嵃璁板綍鍒楄〃 */ - getList() { - this.loading = true; - getInfo().then((response) => { - this.user = response.user - }); - listPrint(this.queryParams).then(response => { - this.printList = response.rows; - this.printList.forEach(item => { - if (item.createBy === this.user.userId) { - item.createBy = this.user.nickName - } - }) - this.total = response.total; - this.loading = false; - }); - }, - // 鍙栨秷鎸夐挳 - cancel() { - this.open = false; - this.reset(); - }, - // 琛ㄥ崟閲嶇疆 - reset() { - this.form = { - id: null, - tjNumber: null, - printBy: null, - printTime: null, - printStatus: null, - createTime: null, - createBy: null, - updateTime: null, - updateBy: null, - deleted: null - }; - this.resetForm("form"); - }, - /** 鎼滅储鎸夐挳鎿嶄綔 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, - /** 閲嶇疆鎸夐挳鎿嶄綔 */ - resetQuery() { - this.resetForm("queryForm"); - this.handleQuery(); - }, - // 澶氶�夋閫変腑鏁版嵁 - handleSelectionChange(selection) { - this.ids = selection.map(item => item.id) - this.single = selection.length !== 1 - this.multiple = !selection.length - }, - /** 鏂板鎸夐挳鎿嶄綔 */ - handleAdd() { - this.reset(); - this.open = true; - this.title = "娣诲姞鎵撳嵃璁板綍"; - }, - /** 淇敼鎸夐挳鎿嶄綔 */ - handleUpdate(row) { - this.reset(); - const id = row.id || this.ids - getPrint(id).then(response => { - this.form = response.data; - this.open = true; - this.title = "淇敼鎵撳嵃璁板綍"; - }); - }, - - - } - + methods: { + /** 鏌ヨ鎵撳嵃璁板綍鍒楄〃 */ + getList() { + this.loading = true; + getInfo().then((response) => { + this.user = response.user; + }); + listPrint(this.queryParams).then((response) => { + this.printList = response.rows; + this.printList.forEach((item) => { + if (item.createBy === this.user.userId) { + item.createBy = this.user.nickName; + } + }); + this.total = response.total; + this.loading = false; + }); + }, + // 鍙栨秷鎸夐挳 + cancel() { + this.open = false; + this.reset(); + }, + // 琛ㄥ崟閲嶇疆 + reset() { + this.form = { + id: null, + tjNumber: null, + printBy: null, + printTime: null, + printStatus: null, + createTime: null, + createBy: null, + updateTime: null, + updateBy: null, + deleted: null, + }; + this.resetForm("form"); + }, + hb() { + if (this.queryParams.tjNumber != null) { + this.handleQuery(); + } + }, + /** 鎼滅储鎸夐挳鎿嶄綔 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + /** 閲嶇疆鎸夐挳鎿嶄綔 */ + resetQuery() { + this.resetForm("queryForm"); + this.handleQuery(); + }, + // 澶氶�夋閫変腑鏁版嵁 + handleSelectionChange(selection) { + this.ids = selection.map((item) => item.id); + this.single = selection.length !== 1; + this.multiple = !selection.length; + }, + /** 鏂板鎸夐挳鎿嶄綔 */ + handleAdd() { + this.reset(); + this.open = true; + this.title = "娣诲姞鎵撳嵃璁板綍"; + }, + /** 淇敼鎸夐挳鎿嶄綔 */ + handleUpdate(row) { + this.reset(); + const id = row.id || this.ids; + getPrint(id).then((response) => { + this.form = response.data; + this.open = true; + this.title = "淇敼鎵撳嵃璁板綍"; + }); + }, + }, }; </script> diff --git a/src/views/hosp/replylog/index.vue b/src/views/hosp/replylog/index.vue index 58a50ee..114312a 100644 --- a/src/views/hosp/replylog/index.vue +++ b/src/views/hosp/replylog/index.vue @@ -1,444 +1,546 @@ <template> - <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> - <el-form-item label="浣撴鍙�" prop="tjNumber"> - <el-input v-model="queryParams.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" ref="inputName" @blur="handleQuery" /> - </el-form-item> - <el-form-item label="鐢ㄦ埛鍚�" prop="userName"> - <el-input v-model="queryParams.userName" placeholder="璇疯緭鍏ョ敤鎴峰悕" clearable @keyup.enter.native="handleQuery" /> - </el-form-item> - <el-form-item label="${comment}" prop="hzDoctorName"> - <el-input v-model="queryParams.hzDoctorName" placeholder="璇疯緭鍏�${comment}" clearable - @keyup.enter.native="handleQuery" /> - </el-form-item> - <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> - </el-form-item> - </el-form> + <div class="app-container"> + <el-form + :model="queryParams" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="68px" + > + <el-form-item label="浣撴鍙�" prop="tjNumber"> + <el-input + v-model="queryParams.tjNumber" + placeholder="璇疯緭鍏ヤ綋妫�鍙�" + clearable + @keyup.enter.native="handleQuery" + ref="inputName" + @blur="hb" + /> + </el-form-item> + <el-form-item label="鐢ㄦ埛鍚�" prop="userName"> + <el-input + v-model="queryParams.userName" + placeholder="璇疯緭鍏ョ敤鎴峰悕" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <!-- <el-form-item label="${comment}" prop="hzDoctorName"> + <el-input + v-model="queryParams.hzDoctorName" + placeholder="璇疯緭鍏�${comment}" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> --> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handleQuery" + >鎼滅储</el-button + > + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" + >閲嶇疆</el-button + > + </el-form-item> + </el-form> - <el-row :gutter="10" class="mb8"> - <el-col :span="1.5"> - <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['hosp:replylog:add']">鏂板 - </el-button> - </el-col> - <el-col :span="1.5"> - <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" - v-hasPermi="['hosp:replylog:edit']">淇敼 - </el-button> - </el-col> - <el-col :span="1.5"> - <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" - v-hasPermi="['hosp:replylog:remove']">鍒犻櫎 - </el-button> - </el-col> - <el-col :span="1.5"> - <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" - v-hasPermi="['hosp:replylog:export']">瀵煎嚭 - </el-button> - </el-col> - <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> - </el-row> + <!-- <el-row :gutter="10" class="mb8"> + <el-col :span="1.5"> + <el-button + type="primary" + icon="el-icon-plus" + size="mini" + @click="handleAdd" + v-hasPermi="['hosp:replylog:add']" + >鏂板 + </el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="primary" + icon="el-icon-edit" + size="mini" + :disabled="single" + @click="handleUpdate" + v-hasPermi="['hosp:replylog:edit']" + >淇敼 + </el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="primary" + icon="el-icon-delete" + size="mini" + :disabled="multiple" + @click="handleDelete" + v-hasPermi="['hosp:replylog:remove']" + >鍒犻櫎 + </el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="primary" + icon="el-icon-download" + size="mini" + @click="handleExport" + v-hasPermi="['hosp:replylog:export']" + >瀵煎嚭 + </el-button> + </el-col> + <right-toolbar + :showSearch.sync="showSearch" + @queryTable="getList" + ></right-toolbar> + </el-row> --> - <el-table v-loading="loading" :data="replylogList" @selection-change="handleSelectionChange"> - <el-table-column type="selection" width="55" align="center" /> - <el-table-column label="浼氳瘖id" align="center" prop="id" /> - <el-table-column label="浼氳瘖璁㈠崟id" align="center" prop="orderId" /> - <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" /> - <el-table-column label="鐢ㄦ埛id" align="center" prop="userId" /> - <el-table-column label="鐢ㄦ埛鍚�" align="center" prop="userName" /> - <el-table-column label="浼氳瘖绫诲瀷0鍏ㄩ櫌浼氳瘖1绉戝浼氳瘖" align="center" prop="hzType" /> - <el-table-column label="鍥炲鍖荤敓" align="center" prop="replyDoctorId" /> - <el-table-column label="鍥炲鍖荤敓鍚�" align="center" prop="replyDoctorName" /> - <el-table-column label="鍥炲閮ㄩ棬" align="center" prop="replyDeptId" /> - <el-table-column label="鍥炲閮ㄩ棬鍚�" align="center" prop="replyDeptName" /> - <el-table-column label="鍥炲鍐呭" align="center" prop="replyContent" /> - <el-table-column label="" align="center" prop="status" /> - <el-table-column label="" align="center" prop="remark" /> - <el-table-column label="浼氳瘖鐢宠id" align="center" prop="hzId" /> - <el-table-column label="${comment}" align="center" prop="hzDoctorId" /> - <el-table-column label="${comment}" align="center" prop="hzDoctorName" /> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> - <template slot-scope="scope"> - <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['hosp:replylog:edit']">淇敼 - </el-button> - <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" - v-hasPermi="['hosp:replylog:remove']">鍒犻櫎 - </el-button> - </template> - </el-table-column> - </el-table> + <el-table + v-loading="loading" + :data="replylogList" + @selection-change="handleSelectionChange" + > + <el-table-column type="selection" width="55" align="center" /> + <!-- <el-table-column label="浼氳瘖id" align="center" prop="id" /> + <el-table-column label="浼氳瘖璁㈠崟id" align="center" prop="orderId" /> --> + <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" /> + <!-- <el-table-column label="鐢ㄦ埛id" align="center" prop="userId" /> --> + <el-table-column label="鐢ㄦ埛鍚�" align="center" prop="userName" /> + <el-table-column label="浼氳瘖绫诲瀷" align="center" prop="hzType"> + <template slot-scope="scope"> + <dict-tag + :options="dict.type.hz_type" + :value="scope.row.hzType" + /> + </template> + </el-table-column> + <!-- <el-table-column label="鍥炲鍖荤敓" align="center" prop="replyDoctorId" /> --> + <el-table-column label="鍥炲鍖荤敓鍚�" align="center" prop="replyDoctorName"/> + <el-table-column label="鍥炲閮ㄩ棬" align="center" prop="replyDeptId" /> + <el-table-column label="鍥炲閮ㄩ棬鍚�" align="center" prop="replyDeptName" /> + <el-table-column label="鍥炲鍐呭" align="center" prop="replyContent" /> + <!-- <el-table-column label="" align="center" prop="status" /> + <el-table-column label="" align="center" prop="remark" /> --> + <!-- <el-table-column label="浼氳瘖鐢宠id" align="center" prop="hzId" /> + <el-table-column label="${comment}" align="center" prop="hzDoctorId" /> + <el-table-column label="${comment}" align="center" prop="hzDoctorName" /> --> + <!-- <el-table-column + label="鎿嶄綔" + align="center" + class-name="small-padding fixed-width" + > + <template slot-scope="scope"> + <el-button + size="mini" + type="text" + icon="el-icon-edit" + @click="handleUpdate(scope.row)" + v-hasPermi="['hosp:replylog:edit']" + >淇敼 + </el-button> + <el-button + size="mini" + type="text" + icon="el-icon-delete" + @click="handleDelete(scope.row)" + v-hasPermi="['hosp:replylog:remove']" + >鍒犻櫎 + </el-button> + </template> + </el-table-column> --> + </el-table> - <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" - @pagination="getList" /> + <pagination + v-show="total > 0" + :total="total" + :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" + @pagination="getList" + /> - <!-- 娣诲姞鎴栦慨鏀逛細璇婂洖澶嶈褰曞璇濇 --> - <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> - <el-form ref="form" :model="form" :rules="rules" label-width="80px"> - <el-form-item label="浼氳瘖璁㈠崟id" prop="orderId"> - <el-input v-model="form.orderId" placeholder="璇疯緭鍏ヤ細璇婅鍗昳d" /> - </el-form-item> - <el-form-item label="浣撴鍙�" prop="tjNumber"> - <el-input v-model="form.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" /> - </el-form-item> - <el-form-item label="鐢ㄦ埛id" prop="userId"> - <el-input v-model="form.userId" placeholder="璇疯緭鍏ョ敤鎴穒d" /> - </el-form-item> - <el-form-item label="鐢ㄦ埛鍚�" prop="userName"> - <el-input v-model="form.userName" placeholder="璇疯緭鍏ョ敤鎴峰悕" /> - </el-form-item> - <el-form-item label="鍥炲鍖荤敓" prop="replyDoctorId"> - <el-input v-model="form.replyDoctorId" placeholder="璇疯緭鍏ュ洖澶嶅尰鐢�" /> - </el-form-item> - <el-form-item label="鍥炲鍖荤敓鍚�" prop="replyDoctorName"> - <el-input v-model="form.replyDoctorName" placeholder="璇疯緭鍏ュ洖澶嶅尰鐢熷悕" /> - </el-form-item> - <el-form-item label="鍥炲閮ㄩ棬" prop="replyDeptId"> - <el-input v-model="form.replyDeptId" placeholder="璇疯緭鍏ュ洖澶嶉儴闂�" /> - </el-form-item> - <el-form-item label="鍥炲閮ㄩ棬鍚�" prop="replyDeptName"> - <el-input v-model="form.replyDeptName" placeholder="璇疯緭鍏ュ洖澶嶉儴闂ㄥ悕" /> - </el-form-item> - <el-form-item label="鍥炲鍐呭"> - <editor v-model="form.replyContent" :min-height="192" /> - </el-form-item> - <el-form-item label="" prop="remark"> - <el-input v-model="form.remark" placeholder="璇疯緭鍏�" /> - </el-form-item> - <el-form-item label="浼氳瘖鐢宠id" prop="hzId"> - <el-input v-model="form.hzId" placeholder="璇疯緭鍏ヤ細璇婄敵璇穒d" /> - </el-form-item> - <el-form-item label="${comment}" prop="hzDoctorId"> - <el-input v-model="form.hzDoctorId" placeholder="璇疯緭鍏�${comment}" /> - </el-form-item> - <el-form-item label="${comment}" prop="hzDoctorName"> - <el-input v-model="form.hzDoctorName" placeholder="璇疯緭鍏�${comment}" /> - </el-form-item> - </el-form> - <div slot="footer" class="dialog-footer"> - <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> - <el-button @click="cancel">鍙� 娑�</el-button> - </div> - </el-dialog> - </div> + <!-- 娣诲姞鎴栦慨鏀逛細璇婂洖澶嶈褰曞璇濇 --> + <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> + <el-form ref="form" :model="form" :rules="rules" label-width="80px"> + <el-form-item label="浼氳瘖璁㈠崟id" prop="orderId"> + <el-input v-model="form.orderId" placeholder="璇疯緭鍏ヤ細璇婅鍗昳d" /> + </el-form-item> + <el-form-item label="浣撴鍙�" prop="tjNumber"> + <el-input v-model="form.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" /> + </el-form-item> + <el-form-item label="鐢ㄦ埛id" prop="userId"> + <el-input v-model="form.userId" placeholder="璇疯緭鍏ョ敤鎴穒d" /> + </el-form-item> + <el-form-item label="鐢ㄦ埛鍚�" prop="userName"> + <el-input v-model="form.userName" placeholder="璇疯緭鍏ョ敤鎴峰悕" /> + </el-form-item> + <el-form-item label="鍥炲鍖荤敓" prop="replyDoctorId"> + <el-input v-model="form.replyDoctorId" placeholder="璇疯緭鍏ュ洖澶嶅尰鐢�" /> + </el-form-item> + <el-form-item label="鍥炲鍖荤敓鍚�" prop="replyDoctorName"> + <el-input + v-model="form.replyDoctorName" + placeholder="璇疯緭鍏ュ洖澶嶅尰鐢熷悕" + /> + </el-form-item> + <el-form-item label="鍥炲閮ㄩ棬" prop="replyDeptId"> + <el-input v-model="form.replyDeptId" placeholder="璇疯緭鍏ュ洖澶嶉儴闂�" /> + </el-form-item> + <el-form-item label="鍥炲閮ㄩ棬鍚�" prop="replyDeptName"> + <el-input + v-model="form.replyDeptName" + placeholder="璇疯緭鍏ュ洖澶嶉儴闂ㄥ悕" + /> + </el-form-item> + <el-form-item label="鍥炲鍐呭"> + <editor v-model="form.replyContent" :min-height="192" /> + </el-form-item> + <el-form-item label="" prop="remark"> + <el-input v-model="form.remark" placeholder="璇疯緭鍏�" /> + </el-form-item> + <el-form-item label="浼氳瘖鐢宠id" prop="hzId"> + <el-input v-model="form.hzId" placeholder="璇疯緭鍏ヤ細璇婄敵璇穒d" /> + </el-form-item> + <!-- <el-form-item label="${comment}" prop="hzDoctorId"> + <el-input v-model="form.hzDoctorId" placeholder="璇疯緭鍏�${comment}" /> + </el-form-item> --> + <!-- <el-form-item label="${comment}" prop="hzDoctorName"> + <el-input + v-model="form.hzDoctorName" + placeholder="璇疯緭鍏�${comment}" + /> + </el-form-item> --> + </el-form> + <div slot="footer" class="dialog-footer"> + <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> + <el-button @click="cancel">鍙� 娑�</el-button> + </div> + </el-dialog> + </div> </template> <script> import { - listReplylog, - getReplylog, - delReplylog, - addReplylog, - updateReplylog + listReplylog, + getReplylog, + delReplylog, + addReplylog, + updateReplylog, } from "@/api/hosp/replylog"; export default { - name: "Replylog", - data() { - return { - // 閬僵灞� - loading: true, - // 閫変腑鏁扮粍 - ids: [], - // 闈炲崟涓鐢� - single: true, - // 闈炲涓鐢� - multiple: true, - // 鏄剧ず鎼滅储鏉′欢 - showSearch: true, - // 鎬绘潯鏁� - total: 0, - // 浼氳瘖鍥炲璁板綍琛ㄦ牸鏁版嵁 - replylogList: [], - // 寮瑰嚭灞傛爣棰� - title: "", - // 鏄惁鏄剧ず寮瑰嚭灞� - open: false, - // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 10, - tjNumber: null, - userName: null, - hzType: null, - hzDoctorName: null - }, - // 琛ㄥ崟鍙傛暟 - form: {}, - // 琛ㄥ崟鏍¢獙 - rules: { - } - }; - }, - created() { - this.getList(); - }, - mounted() { + name: "Replylog", + dicts: ["hz_type"], + data() { + return { + // 閬僵灞� + loading: true, + // 閫変腑鏁扮粍 + ids: [], + // 闈炲崟涓鐢� + single: true, + // 闈炲涓鐢� + multiple: true, + // 鏄剧ず鎼滅储鏉′欢 + showSearch: true, + // 鎬绘潯鏁� + total: 0, + // 浼氳瘖鍥炲璁板綍琛ㄦ牸鏁版嵁 + replylogList: [], + // 寮瑰嚭灞傛爣棰� + title: "", + // 鏄惁鏄剧ず寮瑰嚭灞� + open: false, + // 鏌ヨ鍙傛暟 + queryParams: { + pageNum: 1, + pageSize: 10, + tjNumber: null, + userName: null, + hzType: null, + hzDoctorName: null, + }, + // 琛ㄥ崟鍙傛暟 + form: {}, + // 琛ㄥ崟鏍¢獙 + rules: {}, + }; + }, + created() { + this.getList(); + }, + mounted() { this.$nextTick(() => { this.$refs.inputName.focus(); }); }, - methods: { - /** 鏌ヨ浼氳瘖鍥炲璁板綍鍒楄〃 */ - getList() { - this.loading = true; - listReplylog(this.queryParams).then(response => { - this.replylogList = response.rows; - this.total = response.total; - this.loading = false; - }); - }, - // 鍙栨秷鎸夐挳 - cancel() { - this.open = false; - this.reset(); - }, - // 琛ㄥ崟閲嶇疆 - reset() { - this.form = { - id: null, - orderId: null, - tjNumber: null, - userId: null, - userName: null, - hzType: null, - replyDoctorId: null, - replyDoctorName: null, - replyDeptId: null, - replyDeptName: null, - replyContent: null, - status: "0", - remark: null, - createTime: null, - updateTime: null, - createBy: null, - updateBy: null, - deleted: null, - hzId: null, - hzDoctorId: null, - hzDoctorName: null - }; - this.resetForm("form"); - }, - /** 鎼滅储鎸夐挳鎿嶄綔 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, - /** 閲嶇疆鎸夐挳鎿嶄綔 */ - resetQuery() { - this.resetForm("queryForm"); - this.handleQuery(); - }, - // 澶氶�夋閫変腑鏁版嵁 - handleSelectionChange(selection) { - this.ids = selection.map(item => item.id) - this.single = selection.length !== 1 - this.multiple = !selection.length - }, - /** 鏂板鎸夐挳鎿嶄綔 */ - handleAdd() { - this.reset(); - this.open = true; - this.title = "娣诲姞浼氳瘖鍥炲璁板綍"; - }, - /** 淇敼鎸夐挳鎿嶄綔 */ - handleUpdate(row) { - this.reset(); - const id = row.id || this.ids - getReplylog(id).then(response => { - this.form = response.data; - this.open = true; - this.title = "淇敼浼氳瘖鍥炲璁板綍"; - }); - }, - /** 鎻愪氦鎸夐挳 */ - // submitForm() { - // this.$]] - // #refs["form"].validate(valid => { - // if (valid) { - // #foreach($column in $columns) - // #if($column.htmlType == "checkbox") - // this.form.$column.javaField = this.form.$ - // { - // column.javaField - // } - // . - // join(","); - // #end - // #end - // #if($table.sub) - // this.form.$ - // { - // subclassName - // } - // List = this.$ - // { - // subclassName - // } - // List; - // #end - // if (this.form.${ - // pkColumn.javaField - // } - // != - // null - // ) - // { - // update$ - // { - // BusinessName - // } - // (this.form).then(response => { - // this.#[[$modal]] - // #.msgSuccess("淇敼鎴愬姛"); - // this.open = false; - // this.getList(); - // }); - // } - // else - // { - // add$ - // { - // BusinessName - // } - // (this.form).then(response => { - // this.#[[$modal]] - // #.msgSuccess("鏂板鎴愬姛"); - // this.open = false; - // this.getList(); - // }); - // } - // } - // }); - // }, - // /** 鍒犻櫎鎸夐挳鎿嶄綔 */ - // handleDelete(row) { - // const ${pkColumn.javaField}s = row.$ - // { - // pkColumn.javaField - // } - // || - // this.ids; - // this.#[[$modal]] - // #.confirm('鏄惁纭鍒犻櫎${functionName}缂栧彿涓�"' + ${pkColumn.javaField}s + '"鐨勬暟鎹」锛�').then(function () { - // return del$ - // { - // BusinessName - // } - // (${pkColumn.javaField}s); - // }).then(() => { - // this.getList(); - // this.#[[$modal]] - // #.msgSuccess("鍒犻櫎鎴愬姛"); - // }).catch(() => { - // }); - // }, - // #if($table.sub) - // /** ${subTable.functionName}搴忓彿 */ - // row$ - // { - // subClassName - // } - // Index({row, rowIndex}) - // { - // row.index = rowIndex + 1; - // } - // , - // /** ${subTable.functionName}娣诲姞鎸夐挳鎿嶄綔 */ - // handleAdd$ - // { - // subClassName - // } - // () - // { - // let obj = {}; - // #foreach($column in $subTable.columns) - // #if($column.pk || $column.javaField == ${subTableFkclassName}) - // #elseif($column.list && "" != $javaField) - // obj.$column.javaField = ""; - // #end - // #end - // this.$ - // { - // subclassName - // } - // List.push(obj); - // } - // , - // /** ${subTable.functionName}鍒犻櫎鎸夐挳鎿嶄綔 */ - // handleDelete$ - // { - // subClassName - // } - // () - // { - // if (this.checked${ - // subClassName - // } - // . - // length == 0 - // ) - // { - // this.#[[$modal]] - // #.msgError("璇峰厛閫夋嫨瑕佸垹闄ょ殑${subTable.functionName}鏁版嵁"); - // } - // else - // { - // const ${subclassName}List = this.$ - // { - // subclassName - // } - // List; - // const checked$ - // { - // subClassName - // } - // = this.checked$ - // { - // subClassName - // } - // ; - // this.$ - // { - // subclassName - // } - // List = ${subclassName}List.filter(function (item) { - // return checked$ - // { - // subClassName - // } - // . - // indexOf(item.index) == -1 - // }); - // } - // } - // , - // /** 澶嶉�夋閫変腑鏁版嵁 */ - // handle$ - // { - // subClassName - // } - // SelectionChange(selection) - // { - // this.checked$ - // { - // subClassName - // } - // = selection.map(item => item.index) - // } - // , - // #end - // /** 瀵煎嚭鎸夐挳鎿嶄綔 */ - // handleExport() - // { - // this.download('${moduleName}/${businessName}/export', { - // ...this.queryParams - // }, `${businessName}_#[[${new Date().getTime()}.xlsx`) - // } - } -} - ; + methods: { + /** 鏌ヨ浼氳瘖鍥炲璁板綍鍒楄〃 */ + getList() { + this.loading = true; + listReplylog(this.queryParams).then((response) => { + this.replylogList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + // 鍙栨秷鎸夐挳 + cancel() { + this.open = false; + this.reset(); + }, + // 琛ㄥ崟閲嶇疆 + reset() { + this.form = { + id: null, + orderId: null, + tjNumber: null, + userId: null, + userName: null, + hzType: null, + replyDoctorId: null, + replyDoctorName: null, + replyDeptId: null, + replyDeptName: null, + replyContent: null, + status: "0", + remark: null, + createTime: null, + updateTime: null, + createBy: null, + updateBy: null, + deleted: null, + hzId: null, + hzDoctorId: null, + hzDoctorName: null, + }; + this.resetForm("form"); + }, + hb() { + if (this.queryParams.tjNumber != null) { + this.handleQuery(); + } + }, + /** 鎼滅储鎸夐挳鎿嶄綔 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + /** 閲嶇疆鎸夐挳鎿嶄綔 */ + resetQuery() { + this.resetForm("queryForm"); + this.handleQuery(); + }, + // 澶氶�夋閫変腑鏁版嵁 + handleSelectionChange(selection) { + this.ids = selection.map((item) => item.id); + this.single = selection.length !== 1; + this.multiple = !selection.length; + }, + /** 鏂板鎸夐挳鎿嶄綔 */ + handleAdd() { + this.reset(); + this.open = true; + this.title = "娣诲姞浼氳瘖鍥炲璁板綍"; + }, + /** 淇敼鎸夐挳鎿嶄綔 */ + handleUpdate(row) { + this.reset(); + const id = row.id || this.ids; + getReplylog(id).then((response) => { + this.form = response.data; + this.open = true; + this.title = "淇敼浼氳瘖鍥炲璁板綍"; + }); + }, + submitForm(){}, + handleDelete(){}, + handleExport(){}, + /** 鎻愪氦鎸夐挳 */ + // submitForm() { + // this.$]] + // #refs["form"].validate(valid => { + // if (valid) { + // #foreach($column in $columns) + // #if($column.htmlType == "checkbox") + // this.form.$column.javaField = this.form.$ + // { + // column.javaField + // } + // . + // join(","); + // #end + // #end + // #if($table.sub) + // this.form.$ + // { + // subclassName + // } + // List = this.$ + // { + // subclassName + // } + // List; + // #end + // if (this.form.${ + // pkColumn.javaField + // } + // != + // null + // ) + // { + // update$ + // { + // BusinessName + // } + // (this.form).then(response => { + // this.#[[$modal]] + // #.msgSuccess("淇敼鎴愬姛"); + // this.open = false; + // this.getList(); + // }); + // } + // else + // { + // add$ + // { + // BusinessName + // } + // (this.form).then(response => { + // this.#[[$modal]] + // #.msgSuccess("鏂板鎴愬姛"); + // this.open = false; + // this.getList(); + // }); + // } + // } + // }); + // }, + // /** 鍒犻櫎鎸夐挳鎿嶄綔 */ + // handleDelete(row) { + // const ${pkColumn.javaField}s = row.$ + // { + // pkColumn.javaField + // } + // || + // this.ids; + // this.#[[$modal]] + // #.confirm('鏄惁纭鍒犻櫎${functionName}缂栧彿涓�"' + ${pkColumn.javaField}s + '"鐨勬暟鎹」锛�').then(function () { + // return del$ + // { + // BusinessName + // } + // (${pkColumn.javaField}s); + // }).then(() => { + // this.getList(); + // this.#[[$modal]] + // #.msgSuccess("鍒犻櫎鎴愬姛"); + // }).catch(() => { + // }); + // }, + // #if($table.sub) + // /** ${subTable.functionName}搴忓彿 */ + // row$ + // { + // subClassName + // } + // Index({row, rowIndex}) + // { + // row.index = rowIndex + 1; + // } + // , + // /** ${subTable.functionName}娣诲姞鎸夐挳鎿嶄綔 */ + // handleAdd$ + // { + // subClassName + // } + // () + // { + // let obj = {}; + // #foreach($column in $subTable.columns) + // #if($column.pk || $column.javaField == ${subTableFkclassName}) + // #elseif($column.list && "" != $javaField) + // obj.$column.javaField = ""; + // #end + // #end + // this.$ + // { + // subclassName + // } + // List.push(obj); + // } + // , + // /** ${subTable.functionName}鍒犻櫎鎸夐挳鎿嶄綔 */ + // handleDelete$ + // { + // subClassName + // } + // () + // { + // if (this.checked${ + // subClassName + // } + // . + // length == 0 + // ) + // { + // this.#[[$modal]] + // #.msgError("璇峰厛閫夋嫨瑕佸垹闄ょ殑${subTable.functionName}鏁版嵁"); + // } + // else + // { + // const ${subclassName}List = this.$ + // { + // subclassName + // } + // List; + // const checked$ + // { + // subClassName + // } + // = this.checked$ + // { + // subClassName + // } + // ; + // this.$ + // { + // subclassName + // } + // List = ${subclassName}List.filter(function (item) { + // return checked$ + // { + // subClassName + // } + // . + // indexOf(item.index) == -1 + // }); + // } + // } + // , + // /** 澶嶉�夋閫変腑鏁版嵁 */ + // handle$ + // { + // subClassName + // } + // SelectionChange(selection) + // { + // this.checked$ + // { + // subClassName + // } + // = selection.map(item => item.index) + // } + // , + // #end + // /** 瀵煎嚭鎸夐挳鎿嶄綔 */ + // handleExport() + // { + // this.download('${moduleName}/${businessName}/export', { + // ...this.queryParams + // }, `${businessName}_#[[${new Date().getTime()}.xlsx`) + // } + }, +}; </script> diff --git a/src/views/hosp/surveyRecord/index.vue b/src/views/hosp/surveyRecord/index.vue index 6fae6dd..54cfd72 100644 --- a/src/views/hosp/surveyRecord/index.vue +++ b/src/views/hosp/surveyRecord/index.vue @@ -15,7 +15,7 @@ placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" - @blur="handleQuery" + @blur="hb" /> </el-form-item> <el-form-item label="鐢ㄦ埛濮撳悕" prop="userName"> @@ -285,7 +285,6 @@ name: "SurveyRecord", data() { let checkPhoneNum = (rule, value, callback) => { - console.log( value) let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); if (value == "" && value == undefined && !value) { return callback(''); @@ -389,6 +388,11 @@ this.tjSurveyRecordDetailList = []; this.resetForm("form"); }, + hb() { + if (this.queryParams.tjnumber != null) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/picture/music/index.vue b/src/views/picture/music/index.vue index 4063da9..72a3a06 100644 --- a/src/views/picture/music/index.vue +++ b/src/views/picture/music/index.vue @@ -15,7 +15,7 @@ placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" - @blur="handleQuery" + @blur="hb" style="width: 160px" /> </el-form-item> @@ -1371,6 +1371,12 @@ }; this.resetForm("form"); }, + hb(){ + console.log(this.queryParams.tjNum); + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/picture/other/index.vue b/src/views/picture/other/index.vue index 806fb27..22376cd 100644 --- a/src/views/picture/other/index.vue +++ b/src/views/picture/other/index.vue @@ -15,7 +15,7 @@ placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" - @blur="handleQuery" + @blur="hb" style="width: 160px" /> </el-form-item> @@ -475,6 +475,12 @@ }; this.resetForm("form"); }, + hb(){ + console.log(this.queryParams.tjNum); + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/picture/picture/index.vue b/src/views/picture/picture/index.vue index 7804095..8d272e4 100644 --- a/src/views/picture/picture/index.vue +++ b/src/views/picture/picture/index.vue @@ -15,7 +15,7 @@ placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" - @blur="handleQuery" + @blur="hb" style="width: 170px" /> </el-form-item> @@ -339,6 +339,12 @@ }; this.resetForm("form"); }, + hb(){ + console.log(this.queryParams.tjNum); + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/record/record/index.vue b/src/views/record/record/index.vue index 00374fc..9e859a9 100644 --- a/src/views/record/record/index.vue +++ b/src/views/record/record/index.vue @@ -1,38 +1,88 @@ <template> - <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="75px"> - <el-form-item label="浣撴鍙�" prop="tjNum"> - <el-input v-model="queryParams.tjNum" placeholder="璇疯緭鍏ラ椁愪汉浣撴鍙�" clearable @keyup.enter.native="handleQuery" style="width: 200px;" ref="inputName" @blur="handleQuery" /> - </el-form-item> - <el-form-item label="濮撳悕" prop="tjPeopleName"> - <el-input v-model="queryParams.tjPeopleName" placeholder="璇疯緭鍏ラ椁愪汉濮撳悕" clearable style="width: 200px;" - @keyup.enter.native="handleQuery" /> - </el-form-item> - <el-form-item label="鐧昏鏃堕棿" prop="cateringId"> - <el-input v-model="queryParams.cateringId" placeholder="璇疯緭鍏ョ櫥璁版椂闂�" clearable style="width: 200px;" - @keyup.enter.native="handleQuery" /> - </el-form-item> - <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> - </el-form-item> - </el-form><br> + <div class="app-container"> + <el-form + :model="queryParams" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="75px" + > + <el-form-item label="浣撴鍙�" prop="tjNum"> + <el-input + v-model="queryParams.tjNum" + placeholder="璇疯緭鍏ラ椁愪汉浣撴鍙�" + clearable + @keyup.enter.native="handleQuery" + style="width: 200px" + ref="inputName" + @blur="hb" + /> + </el-form-item> + <el-form-item label="濮撳悕" prop="tjPeopleName"> + <el-input + v-model="queryParams.tjPeopleName" + placeholder="璇疯緭鍏ラ椁愪汉濮撳悕" + clearable + style="width: 200px" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="鐧昏鏃堕棿" prop="cateringId"> + <el-input + v-model="queryParams.cateringId" + placeholder="璇疯緭鍏ョ櫥璁版椂闂�" + clearable + style="width: 200px" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handleQuery" + >鎼滅储</el-button + > + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" + >閲嶇疆</el-button + > + </el-form-item> </el-form + ><br /> - <el-form :label-position="labelPosition" :inline="true" label-width="75px" :model="formLabelAlign" - class="demo-form-inline"> - <el-form-item label="閰嶉鍚嶇О" > - <el-input v-model="formLabelAlign.name" style="width: 200px;" placeholder="璇疯緭鍏ラ厤椁愬悕绉�"></el-input> - </el-form-item> - <el-form-item label="濂楅鏄庣粏"> - <el-input v-model="formLabelAlign.region" style="width: 200px;" placeholder="璇疯緭鍏ュ椁愭槑缁�"></el-input> - </el-form-item> - <el-form-item label="钀ュ吇璇存槑" > - <el-input v-model="formLabelAlign.type" style="width: 200px;" placeholder="璇疯緭鍏ヨ惀鍏昏鏄�"></el-input> - </el-form-item> - </el-form> + <el-form + :label-position="labelPosition" + :inline="true" + label-width="75px" + :model="formLabelAlign" + class="demo-form-inline" + > + <el-form-item label="閰嶉鍚嶇О"> + <el-input + v-model="formLabelAlign.name" + style="width: 200px" + placeholder="璇疯緭鍏ラ厤椁愬悕绉�" + ></el-input> + </el-form-item> + <el-form-item label="濂楅鏄庣粏"> + <el-input + v-model="formLabelAlign.region" + style="width: 200px" + placeholder="璇疯緭鍏ュ椁愭槑缁�" + ></el-input> + </el-form-item> + <el-form-item label="钀ュ吇璇存槑"> + <el-input + v-model="formLabelAlign.type" + style="width: 200px" + placeholder="璇疯緭鍏ヨ惀鍏昏鏄�" + ></el-input> + </el-form-item> + </el-form> - <el-row :gutter="10" class="mb8"> - <!-- <el-col :span="1.5"> + <el-row :gutter="10" class="mb8"> + <!-- <el-col :span="1.5"> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['record:record:add']">鏂板 </el-button> @@ -42,238 +92,346 @@ v-hasPermi="['record:record:edit']">淇敼 </el-button> </el-col> --> - <el-col :span="1.5"> - <el-button type="primary" icon="el-icon-plus" size="mini" :disabled="multiple" @click="handleDelete" - v-hasPermi="['record:record:remove']">棰嗛 - </el-button> - </el-col> - <el-col :span="1.5"> - <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport" - v-hasPermi="['record:record:export']">瀵煎嚭 - </el-button> - </el-col> - <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> - </el-row> + <el-col :span="1.5"> + <el-button + type="primary" + icon="el-icon-plus" + size="mini" + :disabled="multiple" + @click="handleDelete" + v-hasPermi="['record:record:remove']" + >棰嗛 + </el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="primary" + icon="el-icon-download" + size="mini" + @click="handleExport" + v-hasPermi="['record:record:export']" + >瀵煎嚭 + </el-button> + </el-col> + <right-toolbar + :showSearch.sync="showSearch" + @queryTable="getList" + ></right-toolbar> + </el-row> - + <el-table + v-loading="loading" + :data="recordList" + @selection-change="handleSelectionChange" + border + > + <el-table-column type="selection" width="55" align="center" /> + <!-- <el-table-column label="${comment}" align="center" prop="id"/> --> + <el-table-column label="搴忓彿" align="center" prop="newID" width="55px" /> + <el-table-column + label="棰嗛浜轰綋妫�鍙�" + align="center" + prop="tjNum" + :show-overflow-tooltip="true" + /> + <el-table-column + label="棰嗛浜哄鍚�" + align="center" + prop="tjPeopleName" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鎬у埆" + align="center" + prop="cateringId" + :show-overflow-tooltip="true" + /> + <el-table-column + label="骞撮緞" + align="center" + prop="cateringId" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鐢佃瘽" + align="center" + prop="cateringId" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鍥綋/涓汉" + align="center" + prop="cateringId" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鎵�閫夊椁�" + align="center" + prop="cateringId" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鐧昏鏃堕棿" + align="center" + prop="cateringId" + :show-overflow-tooltip="true" + /> + <el-table-column + label="閰嶉鍚嶇О" + align="center" + prop="cateringId" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鎶ュ憡鏃堕棿" + align="center" + prop="cateringId" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鎿嶄綔" + align="center" + class-name="small-padding fixed-width" + width="80px" + > + <template slot-scope="scope"> + <el-button + size="mini" + type="text" + icon="el-icon-edit" + @click="handleUpdate(scope.row)" + v-hasPermi="['record:record:edit']" + title="淇敼" + > + </el-button> + <el-button + size="mini" + type="text" + icon="el-icon-delete" + @click="handleDelete(scope.row)" + v-hasPermi="['record:record:remove']" + title="鍒犻櫎" + > + </el-button> + </template> + </el-table-column> + </el-table> - <el-table v-loading="loading" :data="recordList" @selection-change="handleSelectionChange" border> - <el-table-column type="selection" width="55" align="center" /> - <!-- <el-table-column label="${comment}" align="center" prop="id"/> --> - <el-table-column label="搴忓彿" align="center" prop="newID" width="55px" /> - <el-table-column label="棰嗛浜轰綋妫�鍙�" align="center" prop="tjNum" :show-overflow-tooltip="true" /> - <el-table-column label="棰嗛浜哄鍚�" align="center" prop="tjPeopleName" :show-overflow-tooltip="true" /> - <el-table-column label="鎬у埆" align="center" prop="cateringId" :show-overflow-tooltip="true" /> - <el-table-column label="骞撮緞" align="center" prop="cateringId" :show-overflow-tooltip="true" /> - <el-table-column label="鐢佃瘽" align="center" prop="cateringId" :show-overflow-tooltip="true" /> - <el-table-column label="鍥綋/涓汉" align="center" prop="cateringId" :show-overflow-tooltip="true" /> - <el-table-column label="鎵�閫夊椁�" align="center" prop="cateringId" :show-overflow-tooltip="true" /> - <el-table-column label="鐧昏鏃堕棿" align="center" prop="cateringId" :show-overflow-tooltip="true" /> - <el-table-column label="閰嶉鍚嶇О" align="center" prop="cateringId" :show-overflow-tooltip="true" /> - <el-table-column label="鎶ュ憡鏃堕棿" align="center" prop="cateringId" :show-overflow-tooltip="true" /> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" width="80px"> - <template slot-scope="scope"> - <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['record:record:edit']" title="淇敼"> - </el-button> - <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" - v-hasPermi="['record:record:remove']" title="鍒犻櫎"> - </el-button> - </template> - </el-table-column> - </el-table> + <pagination + v-show="total > 0" + :total="total" + :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" + @pagination="getList" + /> - <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" - @pagination="getList" /> - - <!-- 娣诲姞鎴栦慨鏀归椁愯褰曞璇濇 --> - <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> - <el-form ref="form" :model="form" :rules="rules" label-width="80px"> - <el-form-item label="棰嗛浜轰綋妫�鍙�" prop="tjNum"> - <el-input v-model="form.tjNum" placeholder="璇疯緭鍏ラ椁愪汉浣撴鍙�" /> - </el-form-item> - <el-form-item label="棰嗛浜哄鍚�" prop="tjPeopleName"> - <el-input v-model="form.tjPeopleName" placeholder="璇疯緭鍏ラ椁愪汉濮撳悕" /> - </el-form-item> - <el-form-item label="${comment}" prop="cateringId"> - <el-input v-model="form.cateringId" placeholder="璇疯緭鍏�${comment}" /> - </el-form-item> - </el-form> - <div slot="footer" class="dialog-footer"> - <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> - <el-button @click="cancel">鍙� 娑�</el-button> - </div> - </el-dialog> - </div> + <!-- 娣诲姞鎴栦慨鏀归椁愯褰曞璇濇 --> + <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> + <el-form ref="form" :model="form" :rules="rules" label-width="80px"> + <el-form-item label="棰嗛浜轰綋妫�鍙�" prop="tjNum"> + <el-input v-model="form.tjNum" placeholder="璇疯緭鍏ラ椁愪汉浣撴鍙�" /> + </el-form-item> + <el-form-item label="棰嗛浜哄鍚�" prop="tjPeopleName"> + <el-input + v-model="form.tjPeopleName" + placeholder="璇疯緭鍏ラ椁愪汉濮撳悕" + /> + </el-form-item> + <el-form-item label="${comment}" prop="cateringId"> + <el-input v-model="form.cateringId" placeholder="璇疯緭鍏�${comment}" /> + </el-form-item> + </el-form> + <div slot="footer" class="dialog-footer"> + <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> + <el-button @click="cancel">鍙� 娑�</el-button> + </div> + </el-dialog> + </div> </template> <script> import { - listRecord, - getRecord, - delRecord, - addRecord, - updateRecord + listRecord, + getRecord, + delRecord, + addRecord, + updateRecord, } from "@/api/record/record"; export default { - name: "Record", - data() { - return { - formLabelAlign: { - name: '', - region: '', - type: '' - }, - labelPosition: "right", - // 閬僵灞� - loading: true, - // 閫変腑鏁扮粍 - ids: [], - // 闈炲崟涓鐢� - single: true, - // 闈炲涓鐢� - multiple: true, - // 鏄剧ず鎼滅储鏉′欢 - showSearch: true, - // 鎬绘潯鏁� - total: 0, - // 棰嗛璁板綍琛ㄦ牸鏁版嵁 - recordList: [], - // 寮瑰嚭灞傛爣棰� - title: "", - // 鏄惁鏄剧ず寮瑰嚭灞� - open: false, - // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 10, - tjNum: null, - tjPeopleName: null, - cateringId: new Date(new Date().getTime() + 8 * 3600 * 1000).toJSON().substr(0, 19).replace('T', ' '), - }, - // 琛ㄥ崟鍙傛暟 - form: {}, - // 琛ㄥ崟鏍¢獙 - rules: { - } - }; - }, - created() { - this.getList(); - }, - mounted() { + name: "Record", + data() { + return { + formLabelAlign: { + name: "", + region: "", + type: "", + }, + labelPosition: "right", + // 閬僵灞� + loading: true, + // 閫変腑鏁扮粍 + ids: [], + // 闈炲崟涓鐢� + single: true, + // 闈炲涓鐢� + multiple: true, + // 鏄剧ず鎼滅储鏉′欢 + showSearch: true, + // 鎬绘潯鏁� + total: 0, + // 棰嗛璁板綍琛ㄦ牸鏁版嵁 + recordList: [], + // 寮瑰嚭灞傛爣棰� + title: "", + // 鏄惁鏄剧ず寮瑰嚭灞� + open: false, + // 鏌ヨ鍙傛暟 + queryParams: { + pageNum: 1, + pageSize: 10, + tjNum: null, + tjPeopleName: null, + cateringId: new Date(new Date().getTime() + 8 * 3600 * 1000) + .toJSON() + .substr(0, 19) + .replace("T", " "), + }, + // 琛ㄥ崟鍙傛暟 + form: {}, + // 琛ㄥ崟鏍¢獙 + rules: {}, + }; + }, + created() { + this.getList(); + }, + mounted() { this.$nextTick(() => { this.$refs.inputName.focus(); }); }, - methods: { - /** 鏌ヨ棰嗛璁板綍鍒楄〃 */ - getList() { - this.loading = true; - listRecord(this.queryParams).then(response => { - this.recordList = response.rows; - response.rows.forEach((item,index) => { - item.newID=(this.queryParams.pageNum-1)*this.queryParams.pageSize+index+1 + methods: { + /** 鏌ヨ棰嗛璁板綍鍒楄〃 */ + getList() { + this.loading = true; + listRecord(this.queryParams).then((response) => { + this.recordList = response.rows; + response.rows.forEach((item, index) => { + item.newID = + (this.queryParams.pageNum - 1) * this.queryParams.pageSize + + index + + 1; }); - this.total = response.total; - this.loading = false; + this.total = response.total; + this.loading = false; + }); + }, + // 鍙栨秷鎸夐挳 + cancel() { + this.open = false; + this.reset(); + }, + // 琛ㄥ崟閲嶇疆 + reset() { + this.form = { + id: null, + tjNum: null, + tjPeopleName: null, + cateringId: null, + createBy: null, + createTime: null, + updateBy: null, + updateTime: null, + deleted: null, + }; + this.resetForm("form"); + }, + hb() { + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, + /** 鎼滅储鎸夐挳鎿嶄綔 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + /** 閲嶇疆鎸夐挳鎿嶄綔 */ + resetQuery() { + this.resetForm("queryForm"); + this.handleQuery(); + }, + // 澶氶�夋閫変腑鏁版嵁 + handleSelectionChange(selection) { + this.ids = selection.map((item) => item.id); + this.single = selection.length !== 1; + this.multiple = !selection.length; + }, + /** 鏂板鎸夐挳鎿嶄綔 */ + handleAdd() { + this.reset(); + this.open = true; + this.title = "娣诲姞棰嗛璁板綍"; + }, + /** 淇敼鎸夐挳鎿嶄綔 */ + handleUpdate(row) { + this.reset(); + const id = row.id || this.ids; + getRecord(id).then((response) => { + this.form = response.data; + this.open = true; + this.title = "淇敼棰嗛璁板綍"; + }); + }, + /** 鎻愪氦鎸夐挳 */ + submitForm() { + this.$refs["form"].validate((valid) => { + if (valid) { + if (this.form.reId != null) { + updateRecord(this.form).then((response) => { + this.$modal.msgSuccess("淇敼鎴愬姛"); + this.open = false; + this.getList(); }); - }, - // 鍙栨秷鎸夐挳 - cancel() { - this.open = false; - this.reset(); - }, - // 琛ㄥ崟閲嶇疆 - reset() { - this.form = { - id: null, - tjNum: null, - tjPeopleName: null, - cateringId: null, - createBy: null, - createTime: null, - updateBy: null, - updateTime: null, - deleted: null - }; - this.resetForm("form"); - }, - /** 鎼滅储鎸夐挳鎿嶄綔 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, - /** 閲嶇疆鎸夐挳鎿嶄綔 */ - resetQuery() { - this.resetForm("queryForm"); - this.handleQuery(); - }, - // 澶氶�夋閫変腑鏁版嵁 - handleSelectionChange(selection) { - this.ids = selection.map(item => item.id) - this.single = selection.length !== 1 - this.multiple = !selection.length - }, - /** 鏂板鎸夐挳鎿嶄綔 */ - handleAdd() { - this.reset(); - this.open = true; - this.title = "娣诲姞棰嗛璁板綍"; - }, - /** 淇敼鎸夐挳鎿嶄綔 */ - handleUpdate(row) { - this.reset(); - const id = row.id || this.ids - getRecord(id).then(response => { - this.form = response.data; - this.open = true; - this.title = "淇敼棰嗛璁板綍"; + } else { + addRecord(this.form).then((response) => { + this.$modal.msgSuccess("鏂板鎴愬姛"); + this.open = false; + this.getList(); }); - }, - /** 鎻愪氦鎸夐挳 */ - submitForm() { - this.$refs["form"].validate(valid => { - if (valid) { - if (this.form.reId != null) { - updateRecord(this.form).then(response => { - this.$modal.msgSuccess("淇敼鎴愬姛"); - this.open = false; - this.getList(); - }); - } else { - addRecord(this.form).then(response => { - this.$modal.msgSuccess("鏂板鎴愬姛"); - this.open = false; - this.getList(); - }); - } - } - }); - }, - /** 鍒犻櫎鎸夐挳鎿嶄綔 */ - handleDelete(row) { - const reIds = row.reId || this.ids; - this.$modal.confirm('鏄惁纭鍒犻櫎缂栧彿涓�"' + reIds + '"鐨勬暟鎹」锛�').then(function () { - return delRecord(reIds); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - }).catch(() => { }); - }, - /** 澶嶉�夋閫変腑鏁版嵁 */ - handleDmKsSelectionChange(selection) { - this.checkedDmKs = selection.map(item => item.index) + } } - , - /** 瀵煎嚭鎸夐挳鎿嶄綔 */ - handleExport() { - this.download('${moduleName}/${businessName}/export', { - ...this.queryParams - }, `${businessName}_#[[${new Date().getTime()}.xlsx`) - } - } -} - ; + }); + }, + /** 鍒犻櫎鎸夐挳鎿嶄綔 */ + handleDelete(row) { + const reIds = row.reId || this.ids; + this.$modal + .confirm('鏄惁纭鍒犻櫎缂栧彿涓�"' + reIds + '"鐨勬暟鎹」锛�') + .then(function () { + return delRecord(reIds); + }) + .then(() => { + this.getList(); + this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); + }) + .catch(() => {}); + }, + /** 澶嶉�夋閫変腑鏁版嵁 */ + handleDmKsSelectionChange(selection) { + this.checkedDmKs = selection.map((item) => item.index); + }, + /** 瀵煎嚭鎸夐挳鎿嶄綔 */ + handleExport() { + this.download( + "${moduleName}/${businessName}/export", + { + ...this.queryParams, + }, + `${businessName}_#[[${new Date().getTime()}.xlsx` + ); + }, + }, +}; </script> diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue index ed36df4..f344874 100644 --- a/src/views/sampling/sampling/index.vue +++ b/src/views/sampling/sampling/index.vue @@ -15,7 +15,7 @@ placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" - @blur="handleQuery" + @blur="hb" style="width: 170px" /> </el-form-item> @@ -455,6 +455,12 @@ }; this.resetForm("form"); }, + hb(){ + console.log(this.queryParams.tjNum); + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/system/Checkout/index.vue b/src/views/system/Checkout/index.vue index 62ba6da..a2adf35 100644 --- a/src/views/system/Checkout/index.vue +++ b/src/views/system/Checkout/index.vue @@ -1,65 +1,170 @@ <template> <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> + <el-form + :model="queryParams" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="68px" + > <el-form-item label="濮撳悕" prop="name"> - <el-input style="width: 116px" ref="inputName" v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" - @keyup.enter.native="handleQuery" /> + <el-input + style="width: 116px" + ref="inputName" + v-model="queryParams.name" + placeholder="璇疯緭鍏ュ鍚�" + @keyup.enter.native="handleQuery" + /> </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNum"> - <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="handleQuery" @blur="handleQuery" - style="width:170px" clearable /> + <el-input + ref="inputName" + v-model="queryParams.tjNum" + placeholder="璇疯緭鍏ヤ綋妫�鍙�" + @keyup.enter.native="handleQuery" + @blur="hb" + style="width: 170px" + clearable + /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> - <el-date-picker clearable v-model="createTimeList" @change="dateChangebirthday1" style="width: 240px" - value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" - :picker-options="pickerOptions"></el-date-picker> + <el-date-picker + clearable + v-model="createTimeList" + @change="dateChangebirthday1" + style="width: 240px" + value-format="yyyy-MM-dd" + type="daterange" + range-separator="-" + start-placeholder="寮�濮嬫棩鏈�" + end-placeholder="缁撴潫鏃ユ湡" + :picker-options="pickerOptions" + ></el-date-picker> </el-form-item> <!-- <el-form-item label="鎶ュ憡鏃堕棿" prop="reportTimeList"> <el-date-picker clearable v-model="queryParams.reportTimeList" type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" :picker-options="pickerOptions" value-format="yyyy-MM-dd" placeholder="璇烽�夋嫨鍑烘姤鍛婃椂闂�" style="width: 240px"> </el-date-picker> </el-form-item> --> <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handleQuery" + >鎼滅储</el-button + > + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" + >閲嶇疆</el-button + > </el-form-item> </el-form> - <el-row :gutter="10" style="margin: 0 16px;"> + <el-row :gutter="10" style="margin: 0 16px"> <!-- <el-col :span="1.5"> <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['hosp:order:export']" style="margin-left:14px">瀵煎嚭</el-button> </el-col> --> <el-col :span="1.5"> - <el-button type="primary" size="mini" @click="handleDelete" :disabled="multiple">绛剧鐧昏</el-button> + <el-button + type="primary" + size="mini" + @click="handleDelete" + :disabled="multiple" + >绛剧鐧昏</el-button + > </el-col> - <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" style="margin-right:40px"></right-toolbar> + <right-toolbar + :showSearch.sync="showSearch" + @queryTable="getList" + style="margin-right: 40px" + ></right-toolbar> </el-row> <template> - <el-table ref="tb" border style="margin: 14px; width: 98%" v-loading="loading" :data="orderList" - @selection-change="handleSelectionChange"> - <el-table-column type="selection" width="40" align="center" fixed="left" /> - <el-table-column label="搴忓彿" align="center" prop="newID" width="50px" fixed="left" /> - <el-table-column label="濮撳悕" align="center" prop="tjCustomerName" width="100px" :show-overflow-tooltip="true" - fixed="left" /> - <el-table-column label="鎬у埆" align="center" prop="tjCustomerSex" width="55px" :show-overflow-tooltip="true"> + <el-table + ref="tb" + border + style="margin: 14px; width: 98%" + v-loading="loading" + :data="orderList" + @selection-change="handleSelectionChange" + > + <el-table-column + type="selection" + width="40" + align="center" + fixed="left" + /> + <el-table-column + label="搴忓彿" + align="center" + prop="newID" + width="50px" + fixed="left" + /> + <el-table-column + label="濮撳悕" + align="center" + prop="tjCustomerName" + width="100px" + :show-overflow-tooltip="true" + fixed="left" + /> + <el-table-column + label="鎬у埆" + align="center" + prop="tjCustomerSex" + width="55px" + :show-overflow-tooltip="true" + > <template slot-scope="scope"> <span v-if="scope.row.tjCustomerSex == '0'">鐢�</span> <span v-if="scope.row.tjCustomerSex == '1'">濂�</span> <span v-if="scope.row.tjCustomerSex == '2'">鏈煡</span> </template> </el-table-column> - <el-table-column label="骞撮緞" align="center" prop="tjCustomerAge" width="55px" :show-overflow-tooltip="true" /> - <el-table-column label="鐢佃瘽" align="center" prop="tjCustomerPhone" width="120px" :show-overflow-tooltip="true" /> - <el-table-column label="浣撴绫诲瀷" align="center" prop="tjType" width="80px" :show-overflow-tooltip="true"> + <el-table-column + label="骞撮緞" + align="center" + prop="tjCustomerAge" + width="55px" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鐢佃瘽" + align="center" + prop="tjCustomerPhone" + width="120px" + :show-overflow-tooltip="true" + /> + <el-table-column + label="浣撴绫诲瀷" + align="center" + prop="tjType" + width="80px" + :show-overflow-tooltip="true" + > <template slot-scope="scope"> <span v-if="scope.row.tjType == '2'">涓汉</span> <span v-if="scope.row.tjType == '1'">鍥㈤槦</span> </template> </el-table-column> - <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" width="160px" :show-overflow-tooltip="true" /> + <el-table-column + label="浣撴鍙�" + align="center" + prop="tjNumber" + width="160px" + :show-overflow-tooltip="true" + /> - <el-table-column label="鐧昏鏃堕棿" align="center" prop="createTime" width="155px" :show-overflow-tooltip="true"> + <el-table-column + label="鐧昏鏃堕棿" + align="center" + prop="createTime" + width="155px" + :show-overflow-tooltip="true" + > <template slot-scope="scope"> <span>{{ parseTime(scope.row.createTime) }}</span> </template> @@ -74,58 +179,139 @@ <span>{{ parseTime(scope.row.reportTime) }}</span> </template> </el-table-column> --> - <el-table-column label="鎵�閫夊椁�" align="center" prop="pacName" width="150px" :show-overflow-tooltip="true" /> - <el-table-column label="鍗曚綅宸ュ彿" align="center" prop="firmWorkId" width="100px" :show-overflow-tooltip="true" /> - <el-table-column label="鍗曚綅鍚嶇О" align="center" prop="dictCompName" :show-overflow-tooltip="true" height="10px" /> - - + <el-table-column + label="鎵�閫夊椁�" + align="center" + prop="pacName" + width="150px" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鍗曚綅宸ュ彿" + align="center" + prop="firmWorkId" + width="100px" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鍗曚綅鍚嶇О" + align="center" + prop="dictCompName" + :show-overflow-tooltip="true" + height="10px" + /> </el-table> </template> <div class="pag"> <div class="pag1"> - <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" - :current-page="queryParams.pageNum" :page-sizes="[10, 20, 30, 40]" :page-size="queryParams.pageSize" - layout="total, sizes, prev, pager, next, jumper" :total="total"> + <el-pagination + background + @size-change="handleSizeChange" + @current-change="handleCurrentChange" + :current-page="queryParams.pageNum" + :page-sizes="[10, 20, 30, 40]" + :page-size="queryParams.pageSize" + layout="total, sizes, prev, pager, next, jumper" + :total="total" + > </el-pagination> </div> </div> - <el-dialog title="PDF 棰勮" :visible.sync="dialogVisible" :close-on-click-modal="false"> + <el-dialog + title="PDF 棰勮" + :visible.sync="dialogVisible" + :close-on-click-modal="false" + > <div class="main"> - <iframe id="printIframe" :src="url" frameborder="0" style="width: 100%; height: 100%"></iframe> + <iframe + id="printIframe" + :src="url" + frameborder="0" + style="width: 100%; height: 100%" + ></iframe> </div> </el-dialog> - <el-dialog title="瀵艰瘖鍗�" :visible.sync="daoZhenDan" :close-on-click-modal="false"> + <el-dialog + title="瀵艰瘖鍗�" + :visible.sync="daoZhenDan" + :close-on-click-modal="false" + > <div class="main"> - <iframe id="printIframe" :src="url" frameborder="0" style="width: 100%; height: 100%"></iframe> + <iframe + id="printIframe" + :src="url" + frameborder="0" + style="width: 100%; height: 100%" + ></iframe> </div> </el-dialog> <!-- 娣诲姞鎴栦慨鏀逛綋妫�璁板綍瀵硅瘽妗� --> <el-dialog :title="title" :visible.sync="open" width="660px"> - <el-form :model="formIn" ref="queryForm" size="small" :inline="true" label-width="68px"> + <el-form + :model="formIn" + ref="queryForm" + size="small" + :inline="true" + label-width="68px" + > <el-form-item label="浣撴鍙�" prop="tjNumber"> - <el-input ref="inputName" v-model="formIn.tjNumber" style="width:212px" clearable /> + <el-input + ref="inputName" + v-model="formIn.tjNumber" + style="width: 212px" + clearable + /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTime"> - <el-input ref="inputName" v-model="formIn.createTime" style="width:212px" clearable /> + <el-input + ref="inputName" + v-model="formIn.createTime" + style="width: 212px" + clearable + /> </el-form-item> - <br> + <br /> <el-form-item label="濮撳悕" prop="tjCustomerName"> - <el-input style="width: 116px" ref="inputName" v-model="formIn.tjCustomerName" /> + <el-input + style="width: 116px" + ref="inputName" + v-model="formIn.tjCustomerName" + /> </el-form-item> <el-form-item label="鎬у埆" prop="tjCustomerSex"> - <el-input style="width: 116px" ref="inputName" v-model="formIn.tjCustomerSex" /> + <el-input + style="width: 116px" + ref="inputName" + v-model="formIn.tjCustomerSex" + /> </el-form-item> <el-form-item label="骞撮緞" prop="tjCustomerAge"> - <el-input style="width: 116px" ref="inputName" v-model="formIn.tjCustomerAge" placeholder="璇疯緭鍏ュ鍚�" /> + <el-input + style="width: 116px" + ref="inputName" + v-model="formIn.tjCustomerAge" + placeholder="璇疯緭鍏ュ鍚�" + /> </el-form-item> </el-form> - <el-table :data="numberList" style="width: 100%;margin-bottom: 10px;" height="400px" border :row-class-name="tableRowClassName"> - <el-table-column prop="proCheckType" label="妫�鏌ョ被鍨�" width="180" align="center"> + <el-table + :data="numberList" + style="width: 100%; margin-bottom: 10px" + height="400px" + border + :row-class-name="tableRowClassName" + > + <el-table-column + prop="proCheckType" + label="妫�鏌ョ被鍨�" + width="180" + align="center" + > </el-table-column> <el-table-column prop="proName" label="椤圭洰" width="180" align="center"> </el-table-column> @@ -136,27 +322,52 @@ </el-table-column> <el-table-column label="寮冩" prop="type2" width="86" align="center"> <template slot-scope="scope"> - <el-checkbox @change="handelcheckbox" v-model="scope.row.type2" :disabled="leave"> + <el-checkbox + @change="handelcheckbox" + v-model="scope.row.type2" + :disabled="leave" + > <!-- <el-checkbox v-model="scope.row.type2"></el-checkbox> --> </el-checkbox> </template> </el-table-column> <el-table-column label="寤舵湡" prop="type3" width="86" align="center"> <template slot-scope="scope"> - <el-checkbox @change="handelcheck" v-model="scope.row.type3" :disabled="leave"> + <el-checkbox + @change="handelcheck" + v-model="scope.row.type3" + :disabled="leave" + > </el-checkbox> </template> </el-table-column> </el-table> <div v-show="tcShow"> - <el-form :model="postpone" ref="queryForm" v-show="postpone" size="small" label-width="68px"> + <el-form + :model="postpone" + ref="queryForm" + v-show="postpone" + size="small" + label-width="68px" + > <el-form-item label="寤舵湡澶╂暟" prop="day"> - <el-input ref="inputName" v-model="postpone.day" style="width:170px" clearable /> + <el-input + ref="inputName" + v-model="postpone.day" + style="width: 170px" + clearable + /> </el-form-item> - <br> + <br /> <el-form-item label="寤舵湡鍘熷洜" prop="cause"> - <el-input style="width:100%" ref="inputName" v-model="postpone.cause" maxlength="10" show-word-limit /> + <el-input + style="width: 100%" + ref="inputName" + v-model="postpone.cause" + maxlength="10" + show-word-limit + /> </el-form-item> </el-form> </div> @@ -191,8 +402,8 @@ name: "Order", data() { return { - selectList:[], - leave:false, + selectList: [], + leave: false, checked: false, radioId1: false, createTimeList: "", @@ -206,7 +417,7 @@ flag: true, bill: null, Treedata: [], - DataList:[], + DataList: [], defaultProps: { children: "tjProjectList", label: "proName", @@ -217,7 +428,7 @@ List: [], postpone: { day: null, - caches: null + caches: null, }, tcShow: false, // remarkId: "", @@ -426,10 +637,15 @@ }; this.resetForm("form"); }, + hb(){ + if (this.queryParams.tjNum != undefined) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); + this.queryParams.pageNum = 1; + this.getList(); }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { @@ -534,9 +750,9 @@ // }) for (let i = 0; i <= this.numberList.length; i++) { if (this.numberList[i].type2 === true) { - this.numberList[i].type3 = false - this.tcShow = false - return + this.numberList[i].type3 = false; + this.tcShow = false; + return; } } // this.type2 = val @@ -565,9 +781,9 @@ // }) for (let i = 0; i <= this.numberList.length; i++) { if (this.numberList[i].type3 === true) { - this.numberList[i].type2 = false - this.tcShow = true - return + this.numberList[i].type2 = false; + this.tcShow = true; + return; } } // this.numberList.forEach(item => { @@ -585,21 +801,19 @@ // } // } // }) - }, - /** 绛剧鎸夐挳鎿嶄綔 */ handleDelete() { this.title = "绛剧鐧昏"; this.List.forEach((item) => { - this.formIn = item + this.formIn = item; if (this.formIn.tjCustomerSex === 0) { - this.formIn.tjCustomerSex = "鐢�" - } else if(this.formIn.tjCustomerSex === 1) { - this.formIn.tjCustomerSex = "濂�" - }else if(this.formIn.tjCustomerSex === 2){ - this.formIn.tjCustomerSex = "鏈煡" + this.formIn.tjCustomerSex = "鐢�"; + } else if (this.formIn.tjCustomerSex === 1) { + this.formIn.tjCustomerSex = "濂�"; + } else if (this.formIn.tjCustomerSex === 2) { + this.formIn.tjCustomerSex = "鏈煡"; } this.tjNumber = item.tjNumber; }); @@ -609,20 +823,20 @@ goabandon(data).then((res) => { if (res.data.length != 0) { this.numberList = res.data; - this.numberList.forEach(item => { + this.numberList.forEach((item) => { if (item.type === 1) { item.type = true; item.type2 = false; item.type3 = false; this.leave = true; - }else{ + } else { this.leave = false; } item = { type2: false, type3: false, - } - }) + }; + }); this.open = true; } else { let data = { @@ -643,29 +857,29 @@ this.List.forEach((item) => { this.tjNumber = item.tjNumber; }); - this.numberList.forEach(element => { + this.numberList.forEach((element) => { if (element.type2 === true) { - this.type = 2 + this.type = 2; this.DataList.push({ tjNumber: this.tjNumber, type: this.type, - remarkId: element.remarkId - }) + remarkId: element.remarkId, + }); } else if (element.type3 === true) { - this.type1 = 3 + this.type1 = 3; this.DataList.push({ tjNumber: this.tjNumber, day: this.postpone.day, remark: this.postpone.cause, type: this.type1, remarkId: element.remarkId, - }) + }); } }); let data = { - domainVos:this.DataList, - tjNumber:this.tjNumber - } + domainVos: this.DataList, + tjNumber: this.tjNumber, + }; gettjGoOut(data).then((res) => { if (res.code === 200) { this.$modal.msgSuccess("鎿嶄綔鎴愬姛"); diff --git a/src/views/system/bill/index.vue b/src/views/system/bill/index.vue index ad44a7e..86131ec 100644 --- a/src/views/system/bill/index.vue +++ b/src/views/system/bill/index.vue @@ -24,7 +24,7 @@ placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" - @blur="handleQuery" + @blur="hb" /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> @@ -878,6 +878,12 @@ }; this.resetForm("form"); }, + hb(){ + console.log(this.queryParams.tjNum); + if (this.queryParams.tjNum != undefined) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/system/biol/index.vue b/src/views/system/biol/index.vue index e340101..1e14668 100644 --- a/src/views/system/biol/index.vue +++ b/src/views/system/biol/index.vue @@ -24,7 +24,7 @@ clearable @keyup.enter.native="handleQuery" ref="inputName" - @blur="handleQuery" + @blur="hb" /> </el-form-item> <el-form-item label="鎶ュ憡鏃堕棿" prop="reportTimeList"> @@ -988,6 +988,11 @@ }; this.resetForm("form"); }, + hb() { + if (this.queryParams.tjNum != undefined) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; @@ -1012,7 +1017,6 @@ // } this.multiple = !selection.length; this.report = selection.map((item) => item.tjNumber); - console.log(this.report); }, investigation(row) { diff --git a/src/views/system/charge/index.vue b/src/views/system/charge/index.vue index f2ac093..e699930 100644 --- a/src/views/system/charge/index.vue +++ b/src/views/system/charge/index.vue @@ -10,7 +10,7 @@ </el-col> <el-col :span="6"> <el-form-item label="浣撴鍙�" prop="tjNum" style="display: flex;"> - <el-input ref="inputName" v-model="form.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="submitFormchanck" /> + <el-input ref="inputName" v-model="form.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="submitFormchanck" @blur="hb" /> </el-form-item> </el-col> @@ -176,6 +176,12 @@ } }); }, + hb(){ + console.log(this.form.tjNum); + if (this.form.tjNum != "") { + this.submitFormchanck(); + } + }, submitFormchanck() { this.loading = true; getfindTj(this.form).then((response) => { diff --git a/src/views/system/circle/index.vue b/src/views/system/circle/index.vue index 00d022d..84bd282 100644 --- a/src/views/system/circle/index.vue +++ b/src/views/system/circle/index.vue @@ -7,7 +7,7 @@ </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNum"> <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable - @keyup.enter.native="handleQuery" @blur="handleQuery" ref="inputName" /> + @keyup.enter.native="handleQuery" @blur="hb" ref="inputName" /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions" @@ -567,6 +567,12 @@ this.queryParams.pageNum = 1; this.getList(); }, + hb() { + console.log(this.queryParams.tjNum); + if (this.queryParams.tjNum != undefined) { + this.handleQuery(); + } + }, handleQuerys() { this.emerc = true; this.queryParam.pageNum = 1; diff --git a/src/views/system/invoice/index.vue b/src/views/system/invoice/index.vue index 82ac14b..ab0ae6c 100644 --- a/src/views/system/invoice/index.vue +++ b/src/views/system/invoice/index.vue @@ -10,7 +10,7 @@ </el-col> <el-col :span="6"> <el-form-item label="浣撴鍙�" prop="tjNum" style="display: flex;"> - <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="handleQuery" @blur="handleQuery" + <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="handleQuery" @blur="hb" clearable /> </el-form-item> </el-col> @@ -424,6 +424,12 @@ }; this.resetForm("form"); }, + hb(){ + console.log(this.queryParams.tjNum); + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/system/refund/index.vue b/src/views/system/refund/index.vue index f188827..7569b60 100644 --- a/src/views/system/refund/index.vue +++ b/src/views/system/refund/index.vue @@ -6,7 +6,7 @@ <el-row> <el-col :span="6"> <el-form-item label="浣撴鍙�" prop="tjNum" style="display: flex;"> - <el-input ref="inputName" v-model="form.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="handle" @blur="handle" /> + <el-input ref="inputName" v-model="form.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="handle" @blur="hb" /> </el-form-item> </el-col> <el-col :span="5"> @@ -200,7 +200,12 @@ this.$refs.inputName.focus(); }); }, - + hb(){ + console.log(this.form.tjNum); + if (this.form.tjNum != null) { + this.handle(); + } + }, /** 鎼滅储鎿嶄綔 */ handle() { this.loading = true; diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index 48b54d6..6eaef81 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -1213,7 +1213,6 @@ /** 鏌ヨ淇℃伅鍒楄〃 */ getList() { - this.loading = true; // listCustomer(this.queryParams).then((response) => { // this.customerList = response.rows; // this.total = response.total; @@ -1688,6 +1687,7 @@ let cusSex = this.form.cusSex; this.datekey = Date.now(); //鍏ㄩ儴濂楅 + this.loading = true; deptTreeSelect(cusSex).then((response) => { this.newpacName = response.rows; console.log(this.newpacName) @@ -2153,6 +2153,9 @@ <style > +.el-form-item__error { + display: none; + } .el-table__header-wrapper .el-checkbox { display: none; } diff --git a/src/views/system/tijianall/index.vue b/src/views/system/tijianall/index.vue index b9a0052..d41219a 100644 --- a/src/views/system/tijianall/index.vue +++ b/src/views/system/tijianall/index.vue @@ -1378,6 +1378,7 @@ let cusSex = this.form.cusSex; this.datekey = Date.now(); //鍏ㄩ儴濂楅 + this.loading = true; deptTreeSelect(cusSex).then((response) => { this.newpacName = response.rows; try { diff --git a/src/views/system/transmit/index.vue b/src/views/system/transmit/index.vue index 81f8bb2..4231702 100644 --- a/src/views/system/transmit/index.vue +++ b/src/views/system/transmit/index.vue @@ -15,7 +15,7 @@ placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" - @blur="handleQuery" + @blur="hb" /> </el-form-item> <el-form-item label="鎺ユ敹鍙风爜" prop="number"> @@ -249,7 +249,6 @@ name: "Record", data() { let checkPhoneNum = (rule, value, callback) => { - console.log( value) let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); if (value == "" && value == undefined && !value) { return callback(''); @@ -360,6 +359,11 @@ }; this.resetForm("form"); }, + hb() { + if (this.queryParams.tjNum != null) { + this.handleQuery(); + } + }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/system/visit/index.vue b/src/views/system/visit/index.vue index 8f4464d..811c8dd 100644 --- a/src/views/system/visit/index.vue +++ b/src/views/system/visit/index.vue @@ -6,7 +6,7 @@ @keyup.enter.native="handleQuery" /> </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNum"> - <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable ref="inputName" @blur="handleQuery" + <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable ref="inputName" @blur="hb" @keyup.enter.native="handleQuery" /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> @@ -229,6 +229,21 @@ </div> </div> </el-drawer> + <el-dialog + title="PDF 棰勮" + :visible.sync="dialogVisible" + :close-on-click-modal="false" + > + <div class="main"> + <iframe + id="printIframe" + :src="url" + frameborder="0" + style="width: 100%; height: 100%" + ></iframe> + </div> + </el-dialog> + </div> </template> @@ -578,6 +593,11 @@ this.queryParams.pageNum = 1; this.getList(); }, + hb() { + if (this.queryParams.tjNum != undefined) { + this.handleQuery(); + } + }, handleQuerys() { this.emerc = true; this.queryParam.pageNum = 1; diff --git a/vue.config.js b/vue.config.js index 2c15e68..697baa5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -53,7 +53,7 @@ // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { //target: `https://ltpeis.xaltjdkj.cn:5501/prod-api/getInfo`, - target: `http://192.168.0.112:5011`, + target: `http://192.168.0.108:5011`, // // target: `http://192.168.0.99:8080/ltkj-admin`, // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`, // target: `http://10.168.0.9:5011`, -- Gitblit v1.8.0