From c1e10385c164520dceec34576ed506b28bad1e71 Mon Sep 17 00:00:00 2001 From: jazz <jazzxhunter@163.com> Date: 星期二, 09 一月 2024 12:03:12 +0800 Subject: [PATCH] update_202401091203_单个治疗室多个客人的逻辑编写v4 --- src/components/xio_customer_select/index.vue | 46 ++++++++++++++++++++++++++++++++++------------ 1 files changed, 34 insertions(+), 12 deletions(-) diff --git a/src/components/xio_customer_select/index.vue b/src/components/xio_customer_select/index.vue index 9ed82b5..ff560fd 100644 --- a/src/components/xio_customer_select/index.vue +++ b/src/components/xio_customer_select/index.vue @@ -1,19 +1,19 @@ <template> - <div class="mask hide"> - <div class="xio_customer_select_dialog"> - <div class="title">鏄惁閫夋嫨瀹汉[寮犳��姘慮锛屼娇鐢ㄥ綋鍓嶆埧闂达紵</div> + <div v-if="isShow" class="mask" @click="hideDialog"> + <div class="xio_customer_select_dialog" @click.stop="noop"> + <div class="title">鏄惁閫夋嫨瀹汉[{{ dialogData.userName }}]锛屼娇鐢ㄥ綋鍓嶆埧闂达紵</div> <div class="content flex flex-sb"> - <div class="tx flex-1" style="text-align: left;">鍖荤敓锛氬紶鎬�姘�</div> - <div class="tx flex-1">鎶ゅ+锛氬紶鎬�姘�</div> - <div class="tx flex-1" style="text-align: right;">椤鹃棶锛氬紶鎬�姘�</div> + <div v-if="dialogData.aDoctorName" class="tx flex-1" style="text-align: left;">鍖荤敓锛歿{ dialogData.aDoctorName }}</div> + <div v-if="dialogData.aNurseName" class="tx flex-1">鎶ゅ+锛歿{ dialogData.aNurseName }}</div> + <div v-if="dialogData.adviserName" class="tx flex-1" style="text-align: right;">椤鹃棶锛歿{ dialogData.adviserName }}</div> </div> <div class="content flex flex-ver"> - <div class="tx">娌荤枟椤圭洰锛歱his-Fotona4D</div> + <div v-if="dialogData.projectName" class="tx">娌荤枟椤圭洰锛歿{ dialogData.projectName }}</div> </div> <div class="btn_box flex flex-center"> <div class="flex flex-ver"> - <div class="btn_box__item flex flex-center">鍙栨秷</div> - <div class="btn_box__item flex flex-center">纭畾</div> + <div class="btn_box__item flex flex-center" @click="cancel">鍙栨秷</div> + <div class="btn_box__item flex flex-center" @click="submit">纭畾</div> </div> </div> </div> @@ -31,12 +31,34 @@ }, data() { return { - isShow: false + isShow: false, + dialogData: {} } }, methods: { - toggleClick() { - this.$emit('toggleClick') + // 鍙栨秷 + cancel() { + this.$emit('cancel', {}) + }, + // 鎻愪氦 + submit() { + this.$emit('submit', this.dialogData) + }, + noop() { + return + }, + // 鏄剧ず寮圭獥 + showDialog() { + this.isShow = true + }, + // 鍏抽棴寮圭獥 + hideDialog() { + this.isShow = false + this.dialogData = {} + }, + // 鏁版嵁鍒濆鍖� + dataInit(data) { + this.dialogData = data } } } -- Gitblit v1.8.0