From 9d9eab0e8a8ef5de9c8e3c5753ca527b5c8466b1 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期三, 20 十一月 2024 12:09:49 +0800 Subject: [PATCH] 领用自动打印 --- src/views/ecg/doctor/components/DevReadyPanel.vue | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/views/ecg/doctor/components/DevReadyPanel.vue b/src/views/ecg/doctor/components/DevReadyPanel.vue index dac2850..a66148b 100644 --- a/src/views/ecg/doctor/components/DevReadyPanel.vue +++ b/src/views/ecg/doctor/components/DevReadyPanel.vue @@ -46,10 +46,11 @@ </el-form-item> </el-form> <el-button @click="submitForm" type="primary" :disabled="formLoading">棰嗙敤瀹屾垚</el-button> - <el-button @click="resetForm()">閲� 缃�</el-button> + <el-checkbox style="margin-left:10px" label="鑷姩 " v-model="autoPrint" /> <el-button @click="printBill(formData.patId)">鎵撳嵃灏忕エ</el-button> <el-button @click="printBill(formData.patId, 8)">鎵撳嵃灏忕エ2</el-button> <el-button @click="cancelInstall" :disabled="formLoading">鏀惧純瑁呮満</el-button> + <el-button @click="resetForm()">閲� 缃�</el-button> <!-- 鍖荤敓瑁呮満鍒楄〃 --> <ContentWrap> @@ -157,6 +158,8 @@ const formLoading = ref(false) // 琛ㄥ崟鐨勫姞杞戒腑锛�1锛変慨鏀规椂鐨勬暟鎹姞杞斤紱2锛夋彁浜ょ殑鎸夐挳绂佺敤 +const autoPrint = ref<boolean>(true); + const checkTypeStore = useCheckTypeStoreWithOut() const formData = ref<DevRentVO>({ @@ -233,6 +236,8 @@ const result = await DevRentApi.devReady(data) formData.value.id = result message.success(t('鎿嶄綔瀹屾垚')) + if (autoPrint.value) + printBill( data.patId) } else { await DevRentApi.devReady(data) message.success(t('鏇存柊瀹屾垚')) -- Gitblit v1.9.3