新增功能

This commit is contained in:
Your Name
2026-03-14 15:39:34 +08:00
parent 4ddee40675
commit 4a853ba237
27 changed files with 2906 additions and 74 deletions
+22 -4
View File
@@ -190,6 +190,15 @@
>
视频二维码
</el-button>
<el-button
v-if="row.status === 1"
v-perms="['tcm.diagnosis/kaifang']"
type="primary"
link
@click="handlePrescription(row)"
>
开方
</el-button>
</template>
</el-table-column>
</el-table>
@@ -250,8 +259,8 @@
<!-- 编辑患者弹窗 -->
<edit-popup ref="editRef" @success="getLists" />
<!-- 处方单抽屉 -->
<prescription-drawer ref="prescriptionDrawerRef" @success="loadData" />
<!-- 中医处方单 -->
<tcm-prescription ref="prescriptionRef" @success="loadData" />
<!-- 聊天对话框 -->
<chat-dialog ref="chatDialogRef" />
@@ -298,7 +307,7 @@ import { appointmentLists, cancelAppointment, completeAppointment, appointmentDe
import { getCallSignature, generateMiniProgramQrcode } from '@/api/tcm'
import feedback from '@/utils/feedback'
import EditPopup from '../diagnosis/edit.vue'
import PrescriptionDrawer from './components/prescription-drawer.vue'
import TcmPrescription from '@/components/tcm-prescription/index.vue'
import ChatDialog from '@/components/chat-dialog/index.vue'
import useUserStore from '@/stores/modules/user'
import { getWeappConfig } from '@/api/channel/weapp'
@@ -392,7 +401,7 @@ const handleReset = () => {
const detailVisible = ref(false)
const detailData = ref<any>(null)
const editRef = ref()
const prescriptionDrawerRef = ref()
const prescriptionRef = ref()
const chatDialogRef = ref()
// 小程序二维码相关
@@ -525,6 +534,15 @@ const handleMiniProgramQRCode = async (row: any) => {
}
}
// 开处方
const handlePrescription = (row: any) => {
if (!row.diagnosis_id && !row.patient_id) {
feedback.msgWarning('该预约缺少诊单信息,请先编辑患者')
return
}
prescriptionRef.value?.open(row)
}
// 重新生成二维码
const handleRegenerateQRCode = () => {
if (currentQRCodeRow.value) {
+4
View File
@@ -284,6 +284,10 @@
<el-option label="挂号费" :value="1" />
<el-option label="问诊费" :value="2" />
<el-option label="药品费用" :value="3" />
<el-option label="首付费用" :value="4" />
<el-option label="尾款费用" :value="5" />
<el-option label="其他费用" :value="6" />
<el-option label="全部费用" :value="7" />
</el-select>
</el-form-item>