From b0d733958a618b9fc5ce0ee2fee5d2b146a7a748 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期二, 30 一月 2024 17:52:49 +0800 Subject: [PATCH] su --- src/views/hosp/history/index.vue | 4 src/views/system/tijian/index.vue | 5 + src/views/system/user/index.vue | 24 +++++ src/api/system/user.js | 9 ++ src/components/jianqianwenzhen/index.vue | 1 src/components/Packagese/index.vue | 6 + src/components/yonghu/index.vue | 146 ++++++++++++++++++++++++++++++++++++ src/views/hosp/project/index.vue | 2 8 files changed, 192 insertions(+), 5 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index d7cdbcd..b149e6f 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -155,4 +155,13 @@ method: 'get', params: query }) +} + +// 鏌ヨ鐢ㄦ埛鍒楄〃 +export function list(query) { + return request({ + url: '/hosp/usermid/list', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/components/Packagese/index.vue b/src/components/Packagese/index.vue index 627fc05..ec449b8 100644 --- a/src/components/Packagese/index.vue +++ b/src/components/Packagese/index.vue @@ -88,16 +88,22 @@ }, methods: { getAllList(){ + this.loading = true; this.openone = true getTjHyBgList(this.queryParams).then(res => { this.dataList = res.data + this.loading = false; }) + }, getList() { + this.loading = true; this.openone = false Packagestlist(this.queryParams).then(res => { this.dataList = res.rows + this.loading = false; }) + }, handleQuery() { // if(this.openone == false){ diff --git a/src/components/jianqianwenzhen/index.vue b/src/components/jianqianwenzhen/index.vue index 831aee8..5b28fb0 100644 --- a/src/components/jianqianwenzhen/index.vue +++ b/src/components/jianqianwenzhen/index.vue @@ -1031,6 +1031,7 @@ // }) updateHistory(this.form).then((response) => { this.$modal.msgSuccess("淇敼鎴愬姛"); + this.form = response.data; }); }, }, diff --git a/src/components/yonghu/index.vue b/src/components/yonghu/index.vue new file mode 100644 index 0000000..305b48b --- /dev/null +++ b/src/components/yonghu/index.vue @@ -0,0 +1,146 @@ +<template> + <div> + <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body> + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"> + <el-form-item label="缂栫爜" prop="pacCode"> + <el-input v-model="queryParams.pacCode" placeholder="璇疯緭鍏ョ紪鐮�" clearable + @keyup.enter.native="handleQuery" style="width: 120px;" /> + </el-form-item> + <el-form-item label="鍚嶇О" prop="pacName"> + <el-input v-model="queryParams.pacName" placeholder="璇疯緭鍏ュ悕绉�" clearable + @keyup.enter.native="handleQuery" style="width: 130px;" /> + </el-form-item> + <el-form-item label="鍐呭" prop="pacRemark"> + <el-input v-model="queryParams.pacRemark" placeholder="璇疯緭鍏ュ唴瀹�" clearable + @keyup.enter.native="handleQuery" style="width: 130px;" /> + </el-form-item> + <el-form-item> + <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> + </el-form-item> + </el-form> + <el-table :data="dataList" ref="elTable" v-loading="loading" @selection-change="handleSelectionChange" border + height="320px"> + <el-table-column type="selection" width="40" align="center" /> + <el-table-column label="鐢ㄦ埛ID" prop="xh" align="id" /> + <el-table-column label="鐢ㄦ埛宸ュ彿" align="center" prop="userName" /> + <el-table-column label="濮撳悕" align="center" prop="staffName" width="100px" /> + <el-table-column label="鎬у埆" align="center" prop="sex" width="100px" > + <template slot-scope="scope" > + <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" /> + </template> + </el-table-column> + <el-table-column label="韬唤璇佸彿" align="center" prop="cardNo" /> + <el-table-column label="鎵嬫満鍙风爜" align="center" prop="phonenumber" /> + <el-table-column label="鍖讳繚缂栫爜" align="center" prop="medicalId" /> + <el-table-column label="涓撳璧勬牸璇佸彿" align="center" prop="phaCertifiedNo" /> + <el-table-column label="澶勬柟鑱岀О" align="center" prop="cftitle" /> + <el-table-column label="閮ㄩ棬ID" align="center" prop="deptId" /> + <el-table-column label="瀵瑰簲绉戝鍚嶇О" align="center" prop="deptName" /> + <el-table-column label="绛惧悕鍥剧墖" align="center" prop="qmtpbm" > + <template slot-scope="scope"> + <image-preview :src="scope.row.qmtpbm" :width="50" :height="50" /> + </template> + </el-table-column> + <el-table-column label="浜哄憳绫诲埆" align="center" prop="kindCode" /> + <el-table-column label="鏁版嵁鐘舵��" align="center" prop="effective" /> + </el-table> + <span slot="footer" class="dialog-footer"> + <el-button @click="open = false">鍙� 娑�</el-button> + <el-button type="primary" @click="handleOk">纭� 瀹�</el-button> + </span> + </el-dialog> + + </div> +</template> + +<script> +import {list} from "@/api/system/user"; +export default { + name: 'Packages', + // props: { + // row: { + // type: Object, + // } + + // }, + dicts: [ + "sys_user_sex", + ], + data() { + return { + open: false, + openone:false, + // 寮瑰嚭灞傛爣棰� + title: "", + dataList: [], + // 閬僵灞� + loading: false, + form: { + desc: "" + }, + queryParams: { + pacCode: "", + pacName: "", + pacRemark: "", + }, + list: [], + fList: {} + }; + }, + watch: { + // 'row'(val, newVla) { + // console.log(val,newVla) + // this.fList = val + // console.log(this.fList); + + // } + + }, + mounted() { + // this.getList() + }, + + created() { + // this.getList() + }, + methods: { + getAllList(){ + this.openone = true + newGetTjPat(this.queryParams).then(res => { + this.dataList = res.data + }) + }, + getList() { + this.openone = false + list(this.queryParams).then(res => { + this.dataList = res.rows + }) + }, + handleQuery() { + if(this.openone == false){ + this.getList() + }else if(this.openone == true){ + this.getAllList() + } + }, + handleSelectionChange(selection) { + if (selection.length > 1) { + this.$refs.elTable.clearSelection(); // 娓呯┖鎵�鏈夐�夋嫨 + this.$refs.elTable.toggleRowSelection(selection.pop()); // 璁剧疆閫夋嫨椤� + } + this.list = selection; + console.log(this.list) + + }, + handleOk() { + this.open = false + if (this.list.length == 1) { + this.$emit('add',this.list); + } + } + } +} +</script> + +<style scoped></style> + \ No newline at end of file diff --git a/src/views/hosp/history/index.vue b/src/views/hosp/history/index.vue index db9abc2..8c215fb 100644 --- a/src/views/hosp/history/index.vue +++ b/src/views/hosp/history/index.vue @@ -138,9 +138,7 @@ </div> </div> <div class="hist3"> - <jianqianwenzhen - :jianqianwenzhendata="jianqianwenzhendata" - ></jianqianwenzhen> + <jianqianwenzhen :jianqianwenzhendata="jianqianwenzhendata"></jianqianwenzhen> </div> </div> diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index 64c2ffe..cba2153 100644 --- a/src/views/hosp/project/index.vue +++ b/src/views/hosp/project/index.vue @@ -1005,7 +1005,7 @@ handleQuerys() { this.$refs.aaa.open = true; this.$refs.aaa.getAllList(); - this.$refs.aaa.title = "璇佷欢瀛楀吀"; + this.$refs.aaa.title = "鏁版嵁瀛楀吀"; }, handleChanges(param1) { console.log(param1); diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index 6eaef81..18e79dd 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -202,6 +202,11 @@ </el-form-item> </el-col> <el-col :span="7"> + <el-form-item label="鏂囧寲绋嬪害" prop="wenHua" style="display: flex"> + <el-input style="width: 100%" :disabled="isDisabled" v-model="form.wenHua" placeholder="璇疯緭鍏ユ枃鍖栫▼搴�" /> + </el-form-item> + </el-col> + <el-col :span="7"> <el-button v-show="lishi" type="primary" @click="cope" size="mini">涓�閿鍒�</el-button> <el-button type="primary" @click="inputChanges" v-show="lishi" size="mini" :disabled="confirm">鍘嗗彶浣撴璁板綍</el-button> diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 90ddfc1..638ddcf 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -192,6 +192,13 @@ <el-input v-model="form.userId" placeholder="璇疯緭鍏ョ敤鎴穒d" /> </el-form-item> --> <el-form-item label="鐢ㄦ埛鍚嶇О" prop="nickName"> + <span + slot="label" + style="display: inline-block; border-bottom: 2px solid blue" + @click="handlePackage" + > + 鐢ㄦ埛鍚嶇О + </span> <el-input v-model="form.nickName" placeholder="璇疯緭鍏ョ敤鎴锋樀绉�" maxlength="30" style="width: 130px" /> </el-form-item> <el-form-item label="鐢ㄦ埛宸ュ彿" prop="userName"> @@ -672,10 +679,12 @@ <el-button type="primary" @click="tijiao">纭� 瀹�</el-button> </span> </el-dialog> + <yonghu ref="aaa" @add="handleChanges" /> </div> </template> <script> +import yonghu from "@/components/yonghu"; import { listUser, getUser, @@ -714,7 +723,7 @@ "dict_user_work", "dict_qhdm", ], - components: { Treeselect }, + components: { Treeselect, yonghu }, data() { let checkPhoneNum = (rule, value, callback) => { console.log( value) @@ -985,6 +994,19 @@ this.queryParams.deptId = data.id; this.handleQuery(); }, + handlePackage() { + this.$refs.aaa.open = true; + this.$refs.aaa.getList(); + this.$refs.aaa.title = "鏁版嵁瀛楀吀"; + }, + handleChanges(param1) { + this.form.nickName = param1[0].staffName; + // this.form.hisPacId = param1[0].pacId; + // if (param1[0].price) { + // this.form.counterPrice = param1[0].price; + // this.form.retailPrice = param1[0].price; + // } + }, // 鐢ㄦ埛鐘舵�佷慨鏀� handleStatusChange(row) { let text = row.status === "0" ? "鍚敤" : "鍋滅敤"; -- Gitblit v1.8.0