From 54cfdd4d9bc15acc70ff96afb95ad05db7aece79 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期五, 16 五月 2025 17:57:43 +0800 Subject: [PATCH] qx --- src/views/doctor/examination/index.vue | 359 +++++++---------------- src/views/hosp/advicerules/index.vue | 495 ++++++++------------------------ 2 files changed, 226 insertions(+), 628 deletions(-) diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue index 667f6e1..dc40ce2 100644 --- a/src/views/doctor/examination/index.vue +++ b/src/views/doctor/examination/index.vue @@ -1,129 +1,46 @@ <template> <div class="app-container"> - <el-form - :model="queryParams" - ref="queryForm" - size="small" - :inline="true" - label-width="68px" - > + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"> <el-form-item label="濮撳悕" prop="name"> - <el-input - v-model="queryParams.name" - placeholder="璇疯緭鍏ュ鍚�" - clearable - @keyup.enter.native="handleQuery" - style="width: 110px" - /> + <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" clearable @keyup.enter.native="handleQuery" + style="width: 110px" /> </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNumber"> - <el-input - ref="inputName" - v-model="queryParams.tjNumber" - placeholder="璇疯緭鍏ヤ綋妫�鍙�" - clearable - @keyup.enter.native="handleQuery" - @blur="hb" - style="width: 170px" - /> + <el-input ref="inputName" v-model="queryParams.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable + @keyup.enter.native="handleQuery" @blur="hb" style="width: 170px" /> </el-form-item> - <el-form-item - label="鍗曚綅鍚嶇О" - prop="tjCompName" - style="margin-left: 20px" - > - <el-select - :remote-method="getRemoteData" - v-model="queryParams.tjCompName" - value-key="drugManufacturerId" - style="width: 180px" - remote - filterable - placeholder="璇烽�夋嫨鍗曚綅鍚嶇О" - clearable - @change="searchSelect" - > - <el-option - v-for="dict in CompanyList" - :key="dict.drugManufacturerId" - :label="dict.cnName" - :value="dict" - /> + <el-form-item label="鍗曚綅鍚嶇О" prop="tjCompName" style="margin-left: 20px"> + <el-select :remote-method="getRemoteData" v-model="queryParams.tjCompName" value-key="drugManufacturerId" + style="width: 180px" remote filterable placeholder="璇烽�夋嫨鍗曚綅鍚嶇О" clearable @change="searchSelect"> + <el-option v-for="dict in CompanyList" :key="dict.drugManufacturerId" :label="dict.cnName" :value="dict" /> </el-select> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> - <el-date-picker - v-model="createTimeList" - type="datetimerange" - align="right" - :picker-options="pickerOptions" - style="width: 310px" - start-placeholder="寮�濮嬫棩鏈�" - end-placeholder="缁撴潫鏃ユ湡" - :default-time="['00:00:00', '23:00:00']" - format="yyyy-MM-dd HH:mm" - value-format="yyyy-MM-dd HH:mm" - @change="dateChangebirthday1" - > + <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions" + style="width: 310px" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" :default-time="['00:00:00', '23:00:00']" + format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" @change="dateChangebirthday1"> </el-date-picker> </el-form-item> <el-form-item> - <el-button - type="primary" - icon="el-icon-search" - size="mini" - @click="handleQuery" - style="margin-right: 15px" - >鏌ヨ</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" + style="margin-right: 15px">鏌ヨ</el-button> + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> </el-form-item> </el-form> - <el-radio-group - v-model="checkStatus" - @input="radioChange" - style="margin: 10px 15px" - > + <el-radio-group v-model="checkStatus" @input="radioChange" style="margin: 10px 15px"> <el-radio-button label="0">鏈鏍�</el-radio-button> <el-radio-button label="1">宸插鏍�</el-radio-button> </el-radio-group> <div style="width: 100%; margin-left: 10px; display: flex"> <div style="width: 45%"> - <el-table - id="ta" - v-loading="loading" - ref="tb" - :data="exaList" - border - height="520" - :row-class-name="tableRowClassName" - highlight-current-row - @current-change="handleCurrentChange" - - > + <el-table id="ta" v-loading="loading" ref="tb" :data="exaList" border height="520" + :row-class-name="tableRowClassName" highlight-current-row @current-change="handleCurrentChange"> <!-- <el-table-column type="selection" width="40" align="center" /> --> - <el-table-column - label="浣撴鍙�" - align="center" - prop="tjNumber" - min-width="160" - /> - <el-table-column - label="濮撳悕" - align="center" - prop="cusName" - min-width="80" - /> - <el-table-column - label="鎬у埆" - align="center" - prop="cusSex" - min-width="50" - > + <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" min-width="160" /> + <el-table-column label="濮撳悕" align="center" prop="cusName" min-width="80" /> + <el-table-column label="鎬у埆" align="center" prop="cusSex" min-width="50"> <template slot-scope="scope"> <span v-if="scope.row.cusSex == '0'">鐢�</span> <span v-if="scope.row.cusSex == '1'">濂�</span> @@ -136,70 +53,28 @@ <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> --> <!-- </template> --> </el-table-column> - <el-table-column - label="鎵嬫満鍙�" - align="center" - prop="cusPhone" - min-width="100" - /> - <el-table-column - label="鐧昏鏃堕棿" - align="center" - prop="tjTime" - min-width="120" - /> - <el-table-column - v-if="checkStatus == '1'" - label="瀹℃牳鐘舵��" - align="center" - prop="confirmStatus" - min-width="80" - > + <el-table-column label="鎵嬫満鍙�" align="center" prop="cusPhone" min-width="100" /> + <el-table-column label="鐧昏鏃堕棿" align="center" prop="tjTime" min-width="120" /> + <el-table-column v-if="checkStatus == '1'" label="瀹℃牳鐘舵��" align="center" prop="confirmStatus" min-width="80"> <template slot-scope="scope"> - <span - :style="{ - color: - scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29', - }" - v-if="scope.row.confirmStatus == '301'" - >宸查�氳繃</span - > - <span - :style="{ - color: - scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29', - }" - v-if="scope.row.confirmStatus == '299'" - >宸查┏鍥�</span - > + <span :style="{ + color: + scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29', + }" v-if="scope.row.confirmStatus == '301'">宸查�氳繃</span> + <span :style="{ + color: + scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29', + }" v-if="scope.row.confirmStatus == '299'">宸查┏鍥�</span> </template> </el-table-column> <!-- v-hasPermi="['reservation:reservation:edit']" --> <el-table-column label="鎿嶄綔" align="center" min-width="120px"> <template slot-scope="scope"> - <el-button - size="mini" - type="text" - @click="tongbu(scope.row)" - disabled - >鍚屾</el-button - > + <el-button size="mini" type="text" @click="tongbu(scope.row)" disabled>鍚屾</el-button> <!-- :disabled="dis" --> - <el-button - disabled - size="mini" - type="text" - @click="tongguo(scope.row)" - >閫氳繃</el-button - > + <el-button disabled size="mini" type="text" @click="tongguo(scope.row)">閫氳繃</el-button> - <el-button - size="mini" - type="text" - disabled - @click="bohui(scope.row)" - >椹冲洖</el-button - > + <el-button size="mini" type="text" disabled @click="bohui(scope.row)">椹冲洖</el-button> </template> <!-- v-show=" (xianshi == 'Y' || xianshi == 'y') && @@ -210,45 +85,15 @@ </el-table> </div> <div style="width: 45%; margin-left: 5%"> - <el-table - v-loading="loading" - border - :row-class-name="tableRowClassName" - height="520" - ref="tab1" - :data="xiangmuList" - highlight-current-row - @row-click="handleRowClick" - - > + <el-table v-loading="loading" border :row-class-name="tableRowClassName" height="520" ref="tab1" + :data="xiangmuList" highlight-current-row @row-click="handleRowClick"> <!-- <el-table-column type="selection" width="40" align="center" /> --> - <el-table-column - label="绉戝" - align="center" - prop="deptName" - min-width="100" - :show-overflow-tooltip="true" - /> - <el-table-column - label="椤圭洰" - align="center" - prop="proName" - min-width="150" - :show-overflow-tooltip="true" - /> - <el-table-column - label="鐘舵��" - align="center" - prop="type" - :show-overflow-tooltip="true" - min-width="100" - > + <el-table-column label="绉戝" align="center" prop="deptName" min-width="100" :show-overflow-tooltip="true" /> + <el-table-column label="椤圭洰" align="center" prop="proName" min-width="150" :show-overflow-tooltip="true" /> + <el-table-column label="鐘舵��" align="center" prop="type" :show-overflow-tooltip="true" min-width="100"> <template slot-scope="scope"> - <span - v-if="scope.row.type == '0'" - :style="type == 0 ? { color: 'red' } : { color: '#409EFF' }" - > - {{ type == 0 ? "鏈� 妫�" : "鍦� 妫�" }} + <span v-if="scope.row.type == '0'" :style="type == 0 ? { color: 'red' } : { color: '#409EFF' }"> + {{ type == 0 ? "鏈� 妫�" : "鍦� 妫�" }} </span> <span v-if="scope.row.type == '1'">宸插畬鎴�</span> <span v-if="scope.row.type == '2'">寮冩</span> @@ -281,12 +126,7 @@ prop="doctorName" width="100" /> --> - <el-table-column - label="妫�鏌ユ椂闂�" - align="center" - prop="bcupdateTime" - min-width="160" - /> + <el-table-column label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" min-width="160" /> <!-- <el-table-column label="淇濆瓨鍖荤敓" align="center" @@ -301,28 +141,11 @@ /> --> <el-table-column label="鎿嶄綔" align="center" min-width="120px"> <template slot-scope="scope"> - <el-button - size="mini" - type="text" - :disabled="scope.row.type === 1" - :loading="scope.row.isLoading" - @click="qijian(scope.row)" - >{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button - > - <el-button - size="mini" - type="text" - @click="yijian(scope.row)" - v-if="yijiantype == 'N'" - >宸叉</el-button - > - <el-button - size="mini" - type="text" - :disabled="scope.row.type === 0 || scope.row.type === 2" - @click="queryResultone(scope.row)" - >缁撴灉</el-button - > + <el-button size="mini" type="text" :disabled="scope.row.type === 1" :loading="scope.row.isLoading" + @click="qijian(scope.row)">{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button> + <el-button size="mini" type="text" @click="yijian(scope.row)" v-if="yijiantype == 'N'">宸叉</el-button> + <el-button size="mini" type="text" :disabled="scope.row.type === 0 || scope.row.type === 2" + @click="queryResultone(scope.row)">缁撴灉</el-button> <!-- @click="chaxun(scope.row) " --> </template> </el-table-column> @@ -336,13 +159,8 @@ </div> <div class="a"> <div v-if="jyjc == 0"> - <el-table - :data="jieguoList" - border - :row-style="changRed" - style="width: 100%" - :header-cell-style="{ background: '#AAD8DF' }" - > + <el-table :data="jieguoList" border :row-style="changRed" style="width: 100%" + :header-cell-style="{ background: '#AAD8DF' }"> <el-table-column label="妫�娴嬮」鐩�" prop="pro_name"> </el-table-column> <el-table-column label="妫�娴嬬粨鏋�" prop="pro_result"> @@ -356,20 +174,14 @@ <div class="check-result-container"> <div class="check-item"> <div class="check-title">妫�鏌ユ墍瑙侊細</div> - <div - class="check-description" - :style="{ color: isRed ? 'red' : '' }" - > + <div class="check-description" :style="{ color: isRed ? 'red' : '' }"> {{ jieguoList[0].pro_result }} </div> </div> <div class="check-item"> <div class="check-title">妫�鏌ョ粨璁猴細</div> - <div - class="check-description" - :style="{ color: isRed ? 'red' : '' }" - > + <div class="check-description" :style="{ color: isRed ? 'red' : '' }"> {{ jieguoList[0].yxzd || "鏆傛棤缁撹" }} </div> </div> @@ -383,16 +195,29 @@ <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page" :page-sizes="pageSize" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination> --> - <pagination - v-show="total > 0" - :total="total" - :pager-count="5" - :page.sync="queryParams.page" - :limit.sync="queryParams.pageSize" - @pagination="submitForm" - /> + <pagination v-show="total > 0" :total="total" :pager-count="5" :page.sync="queryParams.page" + :limit.sync="queryParams.pageSize" @pagination="submitForm" /> </div> </div> + <el-dialog :visible.sync="open" width="980px" append-to-body> + <el-form ref="form" :model="form" label-width="98px" @submit.native.prevent> + <el-form-item label="寮冩鍘熷洜" prop="isZybUnit"> + <el-radio-group v-model="form.isZybUnit"> + <el-radio :label="0">鑷姩鏀惧純</el-radio> + <el-radio :label="1">濡婂</el-radio> + <el-radio :label="1">鎬�瀛�</el-radio> + <el-radio :label="1">鍏朵粬</el-radio> + </el-radio-group> + </el-form-item> + <br /> + + </el-form> + <div slot="footer" class="dialog-footer"> + <el-button type="primary" @click="submitFormqijian">纭� 瀹�</el-button> + <el-button @click="cancel">鍙� 娑�</el-button> + </div> + </el-dialog> + </div> </template> @@ -420,7 +245,8 @@ jieguoList: [], jyjc: null, dis: false, - isLoading:false, + isLoading: false, + open: false, createTimeList: "", currentRow: null, total: 0, @@ -789,6 +615,23 @@ }); }); }, + cancel() { + this.open = false + }, + submitFormqijian() { + this.open = false + qijian(tjNUm, proId).then((res) => { + if (res.code == 200) { + cSWebGetPro(tjNUm).then((res) => { + if (res.code === 200) { + // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹� + this.xiangmuList = res.data; + this.isLoading = false + } + }); + } + }); + }, // 寮冩鎸夐挳 qijian(row) { @@ -808,6 +651,7 @@ } }); } else { + // this.open = true qijian(tjNUm, proId).then((res) => { if (res.code == 200) { cSWebGetPro(tjNUm).then((res) => { @@ -934,7 +778,8 @@ .el-table .warning-row { background: #e5f3ff !important; } -::v-deep .el-table__body tr.current-row > td { + +::v-deep .el-table__body tr.current-row>td { background: #edf2fa !important; } @@ -943,6 +788,7 @@ display: flex; justify-content: center; } + .red-text { color: red !important; } @@ -954,6 +800,7 @@ .a ::v-deep .el-table__cell { padding: 1px 0 !important; } + .check-result-container { // background-color: #fafafa; padding: 20px; @@ -976,13 +823,17 @@ .check-description { font-size: 14px; - color: #555; /* 涓伆鑹叉枃瀛� */ - line-height: 1.6; /* 琛岄珮锛屽鍔犲彲璇绘�� */ - padding: 8px 0; /* 涓婁笅鍐呰竟璺� */ + color: #555; + /* 涓伆鑹叉枃瀛� */ + line-height: 1.6; + /* 琛岄珮锛屽鍔犲彲璇绘�� */ + padding: 8px 0; + /* 涓婁笅鍐呰竟璺� */ } .check-description.no-result { - color: #bbb; /* 濡傛灉娌℃湁缁撹锛屾枃瀛椾负娣$伆鑹� */ + color: #bbb; + /* 濡傛灉娌℃湁缁撹锛屾枃瀛椾负娣$伆鑹� */ } ::v-deep .el-table { diff --git a/src/views/hosp/advicerules/index.vue b/src/views/hosp/advicerules/index.vue index e3620df..06722b4 100644 --- a/src/views/hosp/advicerules/index.vue +++ b/src/views/hosp/advicerules/index.vue @@ -1,86 +1,56 @@ <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="ks"> - <el-input - v-model="queryParams.ks" - placeholder="璇疯緭鍏ョ瀹�" - clearable - @keyup.enter.native="handleQuery" - /> - </el-form-item> - <el-form-item label="妫�鏌ラ」鐩�" prop="jcxm"> - <el-input - v-model="queryParams.jcxm" - placeholder="璇疯緭鍏ユ鏌ラ」鐩�" - clearable - @keyup.enter.native="handleQuery" - /> - </el-form-item> - <el-form-item label="涓昏璇婃柇" prop="zyzd"> - <el-input - v-model="queryParams.zyzd" - 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 - icon="el-icon-plus" - size="mini" - @click="handleAdd" - v-hasPermi="['hosp:advicerules:add']" - >鏂板 - </el-button> + + <el-row :gutter="20" style="display: flex"> + <el-col :span="4" :xs="24"> + <div class="head-container"> + <el-input v-model="xmmc" placeholder="璇疯緭鍏ラ」鐩悕" clearable size="small" prefix-icon="el-icon-search" + style="margin-bottom: 18px" /> + </div> + <div class="scrollable-container"> + <div class="content"> + <el-tree :data="deptOptions" :props="defaultProps" :expand-on-click-node="false" + :filter-node-method="filterNode" ref="tree" node-key="id" :default-expanded-keys="treeId" + highlight-current @node-click="handleNodeClick" /> + </div> + </div> </el-col> - <el-col :span="1.5"> - <el-button - type="primary" - icon="el-icon-edit" - size="mini" - :disabled="single" - @click="handleUpdate" - v-hasPermi="['hosp:advicerules: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:advicerules:remove']" - >鍒犻櫎 - </el-button> - </el-col> - <!-- <el-col :span="1.5"> + <el-col :span="19" :xs="24"> + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" + label-width="68px"> + <el-form-item label="绉戝" prop="ks"> + <el-input v-model="queryParams.ks" placeholder="璇疯緭鍏ョ瀹�" clearable @keyup.enter.native="handleQuery" /> + </el-form-item> + <el-form-item label="妫�鏌ラ」鐩�" prop="jcxm"> + <el-input v-model="queryParams.jcxm" placeholder="璇疯緭鍏ユ鏌ラ」鐩�" clearable @keyup.enter.native="handleQuery" /> + </el-form-item> + <el-form-item label="涓昏璇婃柇" prop="zyzd"> + <el-input v-model="queryParams.zyzd" 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 icon="el-icon-plus" size="mini" @click="handleAdd" + v-hasPermi="['hosp:advicerules: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:advicerules: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:advicerules:remove']">鍒犻櫎 + </el-button> + </el-col> + <!-- <el-col :span="1.5"> <el-button type="warning" plain @@ -101,47 +71,9 @@ >瀵煎嚭 </el-button> </el-col> --> - <right-toolbar - :showSearch.sync="showSearch" - @queryTable="getList" - ></right-toolbar> - </el-row> - - <el-row :gutter="20" style="display: flex"> - <el-col :span="3" :xs="24"> - <div class="head-container"> - <el-input - v-model="xmmc" - placeholder="璇疯緭鍏ラ」鐩悕" - clearable - size="small" - prefix-icon="el-icon-search" - style="margin-bottom: 20px" - /> - </div> - <div class="scrollable-container"> - <div class="content"> - <el-tree - :data="deptOptions" - :props="defaultProps" - :expand-on-click-node="false" - :filter-node-method="filterNode" - ref="tree" - node-key="id" - :default-expanded-keys="treeId" - highlight-current - @node-click="handleNodeClick" - /> - </div> - </div> - </el-col> - <el-col :span="20" :xs="24"> - <el-table - v-loading="loading" - :data="advicerulesList" - @selection-change="handleSelectionChange" - height="520" - > + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> + </el-row> + <el-table v-loading="loading" :data="advicerulesList" @selection-change="handleSelectionChange" height="520"> <el-table-column type="selection" width="55" align="center" /> <el-table-column label="搴忓彿" width="50" align="center"> <template slot-scope="scope"> @@ -152,33 +84,10 @@ <el-table-column label="缂栫爜" align="center" prop="bm" /> <el-table-column label="绉戝" align="center" prop="ks" /> <el-table-column label="妫�鏌ラ」鐩�" align="center" prop="jcxm" /> - <el-table-column - label="涓昏璇婃柇" - align="center" - :show-overflow-tooltip="true" - width="120" - prop="zyzd" - /> - <el-table-column - label="寤鸿鍚嶇О" - align="center" - :show-overflow-tooltip="true" - width="150" - prop="jymc" - /> - <el-table-column - label="寤鸿鍐呭" - align="center" - :show-overflow-tooltip="true" - width="200" - prop="jynr" - /> - <el-table-column - label="鎬у埆" - align="center" - prop="xb" - :formatter="formatSex" - /> + <el-table-column label="涓昏璇婃柇" align="center" :show-overflow-tooltip="true" width="120" prop="zyzd" /> + <el-table-column label="寤鸿鍚嶇О" align="center" :show-overflow-tooltip="true" width="150" prop="jymc" /> + <el-table-column label="寤鸿鍐呭" align="center" :show-overflow-tooltip="true" width="200" prop="jynr" /> + <el-table-column label="鎬у埆" align="center" prop="xb" :formatter="formatSex" /> <el-table-column label="鑼冨洿" align="center" prop="fwz" /> <el-table-column label="鑼冨洿鏈�灏忓��" align="center" prop="fwzxz" /> <el-table-column label="鑼冨洿鏈�澶у��" align="center" prop="fwzdz" /> @@ -189,51 +98,27 @@ </el-table-column> <el-table-column label="鏄惁鎱㈡�х梾" align="center" prop="sfmxb"> </el-table-column> - <el-table-column - label="鏄惁閲嶅ぇ鐤剧梾" - align="center" - width="120" - prop="sfzdjb" - ></el-table-column> - <el-table-column - label="鎿嶄綔" - align="center" - class-name="small-padding fixed-width" - > + <el-table-column label="鏄惁閲嶅ぇ鐤剧梾" align="center" width="120" prop="sfzdjb"></el-table-column> + <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:advicerules:edit']" - > + <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" + v-hasPermi="['hosp:advicerules:edit']"> </el-button> - <el-button - size="mini" - type="text" - icon="el-icon-delete" - @click="handleDelete(scope.row)" - v-hasPermi="['hosp:advicerules:remove']" - > + <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" + v-hasPermi="['hosp:advicerules:remove']"> </el-button> </template> </el-table-column> </el-table> <div class="pag"> <div class="pag1"> - <pagination - v-show="total > 0" - :total="total" - :page.sync="queryParams.pageNum" - :limit.sync="queryParams.pageSize" - @pagination="getListByXmId" - /> + <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" @pagination="getListByXmId" /> </div> </div> </el-col> </el-row> -<!-- + <!-- <pagination v-show="total > 0" :total="total" @@ -243,70 +128,28 @@ /> --> <!-- 娣诲姞鎴栦慨鏀逛綋妫�椤圭洰寤鸿瑙勫垯鏂拌〃瀵硅瘽妗� --> - <el-dialog - :title="title" - :visible.sync="open" - width="1000px" - append-to-body - :close-on-click-modal="false" - > - <el-form - ref="form" - :model="form" - :rules="rules" - label-width="80px" - :inline="true" - > + <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body :close-on-click-modal="false"> + <el-form ref="form" :model="form" :rules="rules" label-width="80px" :inline="true"> <el-form-item label="绉戝" prop="ks"> - <el-select - v-model="form.ks" - placeholder="璇烽�夋嫨绉戝" - style="width: 200px" - @change="idFn" - > - <el-option - v-for="item in departmentOptions" - :key="item.id" - :label="item.label" - :value="item.label" - /> + <el-select v-model="form.ks" allow-create filterable placeholder="璇烽�夋嫨绉戝" style="width: 200px" @change="idFn"> + <el-option v-for="item in departmentOptions" :key="item.id" :label="item.label" :value="item.label" /> </el-select> </el-form-item> <el-form-item label="妫�鏌ラ」鐩�" prop="jcxm"> - <el-input - v-model="form.jcxm" - placeholder="璇疯緭鍏ユ鏌ラ」鐩�" - style="width: 200px" - /> + <el-input v-model="form.jcxm" placeholder="璇疯緭鍏ユ鏌ラ」鐩�" style="width: 200px" /> </el-form-item> <el-form-item label="涓昏璇婃柇" prop="zyzd"> - <el-input - v-model="form.zyzd" - placeholder="璇疯緭鍏ヤ富瑕佽瘖鏂�" - style="width: 200px" - /> + <el-input v-model="form.zyzd" placeholder="璇疯緭鍏ヤ富瑕佽瘖鏂�" style="width: 200px" /> </el-form-item> <el-form-item label="鑼冨洿" prop="fwz"> - <el-input - v-model="form.fwz" - placeholder="璇疯緭鍏ヨ寖鍥�" - style="width: 200px" - /> + <el-input v-model="form.fwz" placeholder="璇疯緭鍏ヨ寖鍥�" style="width: 200px" /> </el-form-item> <el-form-item label="鏈�灏忓��" prop="fwzxz"> - <el-input - v-model="form.fwzxz" - style="width: 200px" - placeholder="璇疯緭鍏ヨ寖鍥存渶灏忓��" - /> + <el-input v-model="form.fwzxz" style="width: 200px" placeholder="璇疯緭鍏ヨ寖鍥存渶灏忓��" /> </el-form-item> <el-form-item label="鏈�澶у��" prop="fwzdz"> - <el-input - v-model="form.fwzdz" - style="width: 200px" - placeholder="璇疯緭鍏ヨ寖鍥存渶澶у��" - /> + <el-input v-model="form.fwzdz" style="width: 200px" placeholder="璇疯緭鍏ヨ寖鍥存渶澶у��" /> </el-form-item> <el-form-item label="寮傚父鏍囧織" prop="ycbz"> <!-- <el-input @@ -314,18 +157,8 @@ style="width: 200px" placeholder="璇疯緭鍏ュ紓甯告爣蹇�" /> --> - <el-select - v-model="form.ycbz" - placeholder="璇烽�夋嫨寮傚父鏍囧織" - style="width: 200px" - clearable - > - <el-option - v-for="item in ycdata" - :key="item.value" - :label="item.label" - :value="item.label" - ></el-option> + <el-select v-model="form.ycbz" placeholder="璇烽�夋嫨寮傚父鏍囧織" style="width: 200px" clearable> + <el-option v-for="item in ycdata" :key="item.value" :label="item.label" :value="item.label"></el-option> </el-select> </el-form-item> <el-form-item label="鐤剧梾" prop="sfjb"> @@ -333,66 +166,31 @@ </el-checkbox> </el-form-item> <el-form-item label="甯歌鐥�" prop="sfcjb"> - <el-checkbox - v-model="form.sfcjb" - true-label="鏄�" - false-label="" - ></el-checkbox> + <el-checkbox v-model="form.sfcjb" true-label="鏄�" false-label=""></el-checkbox> </el-form-item> <el-form-item label="鎱㈡�х梾" prop="sfmxb"> - <el-checkbox - v-model="form.sfmxb" - true-label="鏄�" - false-label="" - ></el-checkbox> + <el-checkbox v-model="form.sfmxb" true-label="鏄�" false-label=""></el-checkbox> </el-form-item> <el-form-item label="閲嶅ぇ鐤剧梾" prop="sfzdjb"> - <el-checkbox - v-model="form.sfzdjb" - true-label="鏄�" - false-label="" - ></el-checkbox> + <el-checkbox v-model="form.sfzdjb" true-label="鏄�" false-label=""></el-checkbox> </el-form-item> <el-form-item label="鎬у埆" prop="xb"> - <el-select - v-model="form.xb" - placeholder="璇烽�夋嫨浣撴浜烘�у埆" - style="width: 200px" - clearable - > - <el-option - v-for="dict in dict.type.sys_user_sex" - :key="dict.value" - :label="dict.label" - :value="dict.value" - ></el-option> + <el-select v-model="form.xb" placeholder="璇烽�夋嫨浣撴浜烘�у埆" style="width: 200px" clearable> + <el-option v-for="dict in dict.type.sys_user_sex" :key="dict.value" :label="dict.label" + :value="dict.value"></el-option> </el-select> </el-form-item> <el-form-item label="寤鸿鍚嶇О" prop="jymc" style="display: block"> - <el-input - v-model="form.jymc" - placeholder="璇疯緭鍏ュ缓璁悕绉�" - style="width: 200px" - /> + <el-input v-model="form.jymc" placeholder="璇疯緭鍏ュ缓璁悕绉�" style="width: 200px" /> </el-form-item> <el-form-item label="寤鸿鍐呭" prop="jynr"> - <span - slot="label" - style="display: inline-block; border-bottom: 2px solid blue" - @click="getDetailed" - > + <span slot="label" style="display: inline-block; border-bottom: 2px solid blue" @click="getDetailed"> 寤鸿鍐呭 </span> - <el-input - v-if="key !== 'N'" - style="width: 782px" - type="textarea" - :rows="3" - v-model="form.jynr" - placeholder="璇疯緭鍏ュ缓璁唴瀹�" - > + <el-input v-if="key !== 'N'" style="width: 782px" type="textarea" :rows="3" v-model="form.jynr" + placeholder="璇疯緭鍏ュ缓璁唴瀹�"> </el-input> </el-form-item> </el-form> @@ -402,25 +200,10 @@ </div> </el-dialog> - <el-dialog - :title="upload.title" - :visible.sync="upload.open" - width="400px" - append-to-body - > - <el-upload - ref="upload" - :limit="1" - accept=".xlsx, .xls" - :headers="upload.headers" - :data="data" - :action="upload.url" - :disabled="upload.isUploading" - :on-progress="handleFileUploadProgress" - :on-success="handleFileSuccess" - :auto-upload="false" - drag - > + <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body> + <el-upload ref="upload" :limit="1" accept=".xlsx, .xls" :headers="upload.headers" :data="data" + :action="upload.url" :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" + :on-success="handleFileSuccess" :auto-upload="false" drag> <i class="el-icon-upload"></i> <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div> <div class="el-upload__tip text-center" slot="tip"> @@ -445,87 +228,32 @@ </el-dialog> <!-- 寤鸿鍐呭鍙婂缓璁悕绉板脊妗� --> - <el-dialog - title="寤鸿鍐呭" - :visible.sync="dialogTableVisible" - width="80%" - :close-on-click-modal="false" - @close="clearForm" - > + <el-dialog title="寤鸿鍐呭" :visible.sync="dialogTableVisible" width="80%" :close-on-click-modal="false" + @close="clearForm"> <div class="app-container"> - <el-form - :model="form" - ref="queryForm" - size="small" - :inline="true" - v-show="showSearch" - label-width="68px" - > + <el-form :model="form" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form-item label="鏍囬" prop="title"> - <el-input - v-model="queryParam1.bt" - placeholder="璇疯緭鍏ユ爣棰�" - clearable - @keyup.enter.native="handlecharge" - /> + <el-input v-model="queryParam1.bt" placeholder="璇疯緭鍏ユ爣棰�" clearable @keyup.enter.native="handlecharge" /> </el-form-item> <el-form-item label="寤鸿鍐呭" prop="jynr"> - <el-input - v-model="queryParam1.nr" - placeholder="璇疯緭鍏ュ缓璁�" - clearable - @keyup.enter.native="handlecharge" - /> + <el-input v-model="queryParam1.nr" placeholder="璇疯緭鍏ュ缓璁�" clearable @keyup.enter.native="handlecharge" /> </el-form-item> <el-form-item> - <el-button - type="primary" - icon="el-icon-search" - size="mini" - @click="handlecharge" - >鎼滅储</el-button - > + <el-button type="primary" icon="el-icon-search" size="mini" @click="handlecharge">鎼滅储</el-button> </el-form-item> </el-form> - <el-table - v-loading="loading" - :data="adviceList" - ref="tb" - @selection-change="handleSelectionChange1" - border - > + <el-table v-loading="loading" :data="adviceList" ref="tb" @selection-change="handleSelectionChange1" border> <el-table-column type="selection" align="center" fixed /> - <el-table-column - label="搴忓彿" - align="center" - width="60" - prop="newID" - /> - <el-table-column - label="鏍囬" - align="center" - prop="title" - width="120" - :show-overflow-tooltip="true" - /> - <el-table-column - label="寤鸿" - align="center" - prop="advice" - :show-overflow-tooltip="true" - /> + <el-table-column label="搴忓彿" align="center" width="60" prop="newID" /> + <el-table-column label="鏍囬" align="center" prop="title" width="120" :show-overflow-tooltip="true" /> + <el-table-column label="寤鸿" align="center" prop="advice" :show-overflow-tooltip="true" /> </el-table> <div class="pag"> <div class="pag1"> - <pagination - v-show="total > 0" - :total="total" - :page.sync="queryParam1.page" - :limit.sync="queryParam1.pageSize" - @pagination="getlistJynr" - /> + <pagination v-show="total > 0" :total="total" :page.sync="queryParam1.page" + :limit.sync="queryParam1.pageSize" @pagination="getlistJynr" /> </div> </div> </div> @@ -739,6 +467,15 @@ this.form.ks = item.label; } }); + + + // 濡傛灉杈撳叆鐨勫�间笉鍦ㄩ�夐」涓紝鑷姩娣诲姞鍒板垪琛� + if (!this.departmentOptions.some(item => item.value === value)) { + this.departmentOptions.push({ + value: value, + label: value + }); + } }, // 鍙栨秷鎸夐挳 cancel() { @@ -966,6 +703,16 @@ </script> <style scoped> + +.pag { + width: 100%; + display: flex; + justify-content: center; +} + +.pag1 { + width: 60%; +} .scrollable-container { width: 200px; height: 520px; -- Gitblit v1.8.0