From 8722103fbbd0d940ecc5372dbac5a27127db4c3c Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期六, 09 十二月 2023 16:51:00 +0800 Subject: [PATCH] qxtj --- src/views/hosp/project/index.vue | 49 +++++++++++++++++++++++++++---------------------- 1 files changed, 27 insertions(+), 22 deletions(-) diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index dbf405e..209be77 100644 --- a/src/views/hosp/project/index.vue +++ b/src/views/hosp/project/index.vue @@ -91,7 +91,7 @@ <treeselect v-model="form.proParentId" :options="projectOptions" :normalizer="normalizer" :show-count="true" placeholder="閫夋嫨涓婚」鍚嶇О" style="width: 200px" @select="obtain" /> </el-form-item> - <el-form-item label="鏄庣粏椤圭洰" prop="proName" v-if="key == 'Y'" > + <el-form-item label="鏄庣粏椤圭洰" prop="proName" v-if="key == 'Y'"> <span slot="label" style="display:inline-block;border-bottom: 2px solid blue;" @click="getDetailed"> 鏄庣粏椤圭洰 <!-- <el-tooltip effect="dark" content="鏄庣粏椤圭洰" placement="bottom"> @@ -244,10 +244,10 @@ </div> </el-dialog> - <el-dialog title="鏀惰垂椤圭洰" :visible.sync="dialogTableVisible" width="60%"> + <el-dialog title="鏀惰垂椤圭洰" :visible.sync="dialogTableVisible" width="80%"> <div class="app-container"> - <el-row :gutter="20"> + <el-row :gutter="24"> <!--閮ㄩ棬鏁版嵁--> <el-col :span="6" :xs="24"> <div style="height:560px;overflow-y: scroll;"> @@ -263,7 +263,7 @@ </div> </el-col> - <el-col :span="17" :xs="24"> + <el-col :span="18" :xs="24"> <el-form :model="querycharge" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form-item label="椤圭洰鍚嶇О" prop="xmmc"> @@ -279,18 +279,18 @@ <el-table v-loading="loading" ref="tb" :data="sfxmList" @selection-change="handleSelectionChange" border height="520px"> - <el-table-column type="selection" width="55" align="center" fixed="left" /> - <el-table-column label="搴忓彿" align="center" prop="newID" :show-overflow-tooltip="true" width="60px" + <el-table-column type="selection" align="center" fixed="left" /> + <el-table-column label="搴忓彿" align="center" prop="newID" fixed="left" /> - <el-table-column label="椤圭洰缂栫爜" align="center" prop="xmbm" :show-overflow-tooltip="true" /> - <el-table-column label="椤圭洰鍚嶇О" align="center" prop="xmmc" :show-overflow-tooltip="true" /> - <el-table-column label="鎷奸煶鐮�" align="center" prop="pym" :show-overflow-tooltip="true" /> - <el-table-column label="浜旂瑪鐮�" align="center" prop="wbm" :show-overflow-tooltip="true" /> - <el-table-column label="鍙傝�冨崟浠�" align="center" prop="ckdj" :show-overflow-tooltip="true" /> - <el-table-column label="涓�绾ф渶楂橀檺浠�" align="center" prop="yjzgxj" :show-overflow-tooltip="true" width="60px" /> - <el-table-column label="浜岀骇鏈�楂橀檺浠�" align="center" prop="ejzgxj" :show-overflow-tooltip="true" width="60px" /> - <el-table-column label="涓夌骇鏈�楂橀檺浠�" align="center" prop="sjzgxj" :show-overflow-tooltip="true" width="60px" /> - <el-table-column label="鐗瑰畾鏈�楂橀檺浠�" align="center" prop="tdzgxj" :show-overflow-tooltip="true" /> + <el-table-column label="椤圭洰缂栫爜" align="center" prop="xmbm" /> + <el-table-column label="椤圭洰鍚嶇О" align="center" prop="xmmc"/> + <el-table-column label="鎷奸煶鐮�" align="center" prop="pym" /> + <!-- <el-table-column label="浜旂瑪鐮�" align="center" prop="wbm" /> --> + <el-table-column label="鍙傝�冨崟浠�" align="center" prop="ckdj" /> + <el-table-column label="涓�绾ф渶楂橀檺浠�" align="center" prop="yjzgxj" /> + <el-table-column label="浜岀骇鏈�楂橀檺浠�" align="center" prop="ejzgxj" /> + <el-table-column label="涓夌骇鏈�楂橀檺浠�" align="center" prop="sjzgxj" /> + <el-table-column label="鐗瑰畾鏈�楂橀檺浠�" align="center" prop="tdzgxj" /> </el-table> <div class="pag" v-if="List == true"> @@ -544,12 +544,17 @@ // 鎵撳紑input寮规 getDetailed() { - if (this.selectList.proName === "涓荤被鐩�") { - this.dialogTableVisible = false; - } else { - this.dialogTableVisible = true; - this.getlistSfxm() + if (this.form.proParentId) { + if (this.selectList.proName === "涓荤被鐩�") { + this.dialogTableVisible = false; + } else { + this.dialogTableVisible = true; + this.getlistSfxm() + } + }else{ + this.$message.error("璇烽�夋嫨涓婚」鍚嶇О"); } + }, @@ -972,7 +977,7 @@ } else { this.form.consumablesList = null; } - + if (this.form.deptId === null || this.form.proParentId === null) { this.$message.error("璇峰~鍐欑埗椤瑰悕绉版垨绉戝鍚嶇О"); this.open = true; @@ -1042,7 +1047,7 @@ } else { this.form.consumablesList = null; } - + if (this.form.deptId === null || this.form.proParentId === null) { this.$message.error("璇峰~鍐欑埗椤瑰悕绉版垨绉戝鍚嶇О"); this.open = true; -- Gitblit v1.8.0