Compare commits
2 Commits
eb2454f5c4
...
1e5c2c9b4a
| Author | SHA1 | Date |
|---|---|---|
|
|
1e5c2c9b4a | |
|
|
1ed5d1d71a |
|
|
@ -74,10 +74,19 @@ const getInfoFor1101 = (params: any) => {
|
||||||
}
|
}
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
wsStore.setMessageCallback(reciceMessage)
|
wsStore.setMessageCallback(reciceMessage)
|
||||||
|
wsStore.setErrorCallback(errorCallBack)
|
||||||
});
|
});
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
wsStore.removeAllMessageCallback()
|
wsStore.removeAllMessageCallback()
|
||||||
|
wsStore.removeAllErrorCallback()
|
||||||
})
|
})
|
||||||
|
const errorCallBack = () => {
|
||||||
|
ElMessage({
|
||||||
|
message: '请连接设备',
|
||||||
|
type: 'warning',
|
||||||
|
});
|
||||||
|
isReading.value = false;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ const socialCard = ref<any>({
|
||||||
});
|
});
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const show = ref(false)
|
const show = ref(false)
|
||||||
const printReceipt = ref(true);
|
const printReceipt = ref(false);
|
||||||
const payType = ref(null);
|
const payType = ref(null);
|
||||||
const retailOrder = ref<any>(null);
|
const retailOrder = ref<any>(null);
|
||||||
const close = () => {
|
const close = () => {
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
:current-page="pageNum"
|
:current-page="pageNum"
|
||||||
:page-size="pageSize"
|
:page-size="pageSize"
|
||||||
:total="total"
|
:total="total"
|
||||||
@change="changePage"
|
@current-change="changePage"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -64,9 +64,8 @@ const close = () => {
|
||||||
const pageNum = ref(1);
|
const pageNum = ref(1);
|
||||||
const pageSize = ref(20);
|
const pageSize = ref(20);
|
||||||
const total = ref(0);
|
const total = ref(0);
|
||||||
const changePage = (pageNum: any) => {
|
const changePage = (value: any) => {
|
||||||
pageNum.value = pageNum
|
pageNum.value = value
|
||||||
console.log(pageNum.value)
|
|
||||||
init()
|
init()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
:current-page="pageNum"
|
:current-page="pageNum"
|
||||||
:page-size="pageSize"
|
:page-size="pageSize"
|
||||||
:total="total"
|
:total="total"
|
||||||
@change="changePage"
|
@current-change="changePage"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -67,10 +67,10 @@ const close = () => {
|
||||||
tableData.value = []
|
tableData.value = []
|
||||||
};
|
};
|
||||||
const pageNum = ref(1);
|
const pageNum = ref(1);
|
||||||
const pageSize = ref(1);
|
const pageSize = ref(20);
|
||||||
const total = ref(0);
|
const total = ref(0);
|
||||||
const changePage = (pageNum: any) => {
|
const changePage = (value: any) => {
|
||||||
pageNum.value = pageNum
|
pageNum.value = value
|
||||||
init()
|
init()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="phone" label="手机号" width="180"></el-table-column>
|
<el-table-column prop="phone" label="手机号" width="180" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column prop="status" label="状态" width="180">
|
<el-table-column prop="status" label="状态" width="180" show-overflow-tooltip>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag
|
<el-tag
|
||||||
:type="scope.row.status === 1 ? 'warning' : scope.row.status === 2 ? 'success' : scope.row.status === 3 ? 'info' : 'danger'"
|
:type="scope.row.status === 1 ? 'warning' : scope.row.status === 2 ? 'success' : scope.row.status === 3 ? 'info' : 'danger'"
|
||||||
|
|
@ -27,27 +27,27 @@
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="organizationSectionId" label="科室">
|
<el-table-column prop="organizationSectionId" label="科室" show-overflow-tooltip>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{ sectionList.find((item:any)=>item.id===scope.row.organizationSectionId)?.name || '-' }}
|
{{ sectionList.find((item:any)=>item.id===scope.row.organizationSectionId)?.name || '-' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="organizationDoctorId" label="医生">
|
<el-table-column prop="organizationDoctorId" label="医生" show-overflow-tooltip>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{ roleList.find((item: any) => item.id === scope.row.organizationDoctorId)?.name || '-' }}
|
{{ roleList.find((item: any) => item.id === scope.row.organizationDoctorId)?.name || '-' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="visitType" label="初/复诊">
|
<el-table-column prop="visitType" label="初/复诊" show-overflow-tooltip>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{ visitType[scope.row.visitType] || '-' }}
|
{{ visitType[scope.row.visitType] || '-' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="createDatetime" label="挂号日期" width="180">
|
<el-table-column prop="createDatetime" label="挂号日期" width="180" show-overflow-tooltip>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{ formatDate(scope.row.createDatetime) || '-' }}
|
{{ formatDate(scope.row.createDatetime) || '-' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="memo" label="备注"></el-table-column>
|
<el-table-column prop="memo" label="备注" show-overflow-tooltip></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1 @@
|
||||||
|
|
||||||
import { ref } from 'vue'
|
|
||||||
import { defineStore } from 'pinia'
|
|
||||||
|
|
||||||
export const useLogoStore = defineStore('logo', () => {
|
|
||||||
const logoUrl = ref<string>("")
|
|
||||||
function setLogoUrl(url: string) {
|
|
||||||
logoUrl.value = url
|
|
||||||
}
|
|
||||||
function getLogoUrl() {
|
|
||||||
return logoUrl.value
|
|
||||||
}
|
|
||||||
// 返回需要暴露的方法和变量
|
|
||||||
return { logoUrl, setLogoUrl, getLogoUrl }
|
|
||||||
})
|
|
||||||
|
|
@ -246,10 +246,8 @@ const orderCompleted = (printReceipt: any) => {
|
||||||
type MedTypeKey = keyof typeof medTypeJson;
|
type MedTypeKey = keyof typeof medTypeJson;
|
||||||
const wsStore = useWsStore()
|
const wsStore = useWsStore()
|
||||||
const printReceiptDo = async () => {
|
const printReceiptDo = async () => {
|
||||||
|
|
||||||
let chargeOrder:any = await post("charge/getOrderByDiagnosisCode", {
|
let chargeOrder:any = await post("charge/getOrderByDiagnosisCode", {
|
||||||
diagnosisCode: formData.value.code,
|
diagnosisCode: formData.value.code,
|
||||||
status: formData.value.status
|
|
||||||
})
|
})
|
||||||
if (!chargeOrder) {
|
if (!chargeOrder) {
|
||||||
ElMessage.error("该订单不存在")
|
ElMessage.error("该订单不存在")
|
||||||
|
|
@ -269,7 +267,6 @@ const printReceiptDo = async () => {
|
||||||
if (res.chargeSocialPayLog) {
|
if (res.chargeSocialPayLog) {
|
||||||
res.chargeSocialPayLog.medTypeStr = medTypeJson[res.chargeSocialPayLog.medType as MedTypeKey];
|
res.chargeSocialPayLog.medTypeStr = medTypeJson[res.chargeSocialPayLog.medType as MedTypeKey];
|
||||||
}
|
}
|
||||||
console.log(res)
|
|
||||||
wsStore.sendMessage({
|
wsStore.sendMessage({
|
||||||
type: "PrintReceipt",
|
type: "PrintReceipt",
|
||||||
config: null,
|
config: null,
|
||||||
|
|
@ -317,8 +314,6 @@ const getOrderTotalPrice = () => {
|
||||||
})
|
})
|
||||||
formData.value.preTotalPrice = Math.round(totalPrice * 100) / 100
|
formData.value.preTotalPrice = Math.round(totalPrice * 100) / 100
|
||||||
formData.value.totalPrice = Math.round(totalPrice * 100) / 100
|
formData.value.totalPrice = Math.round(totalPrice * 100) / 100
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -357,7 +352,6 @@ const refund = async () => {
|
||||||
}
|
}
|
||||||
let chargeOrder:any = await post("charge/getOrderByDiagnosisCode", {
|
let chargeOrder:any = await post("charge/getOrderByDiagnosisCode", {
|
||||||
diagnosisCode: formData.value.code,
|
diagnosisCode: formData.value.code,
|
||||||
status: formData.value.status
|
|
||||||
})
|
})
|
||||||
if (!chargeOrder) {
|
if (!chargeOrder) {
|
||||||
ElMessage.error("该订单不存在")
|
ElMessage.error("该订单不存在")
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,7 @@ const clickItem = (item: any) => {
|
||||||
formData.value.itemDetail = res.itemDetail
|
formData.value.itemDetail = res.itemDetail
|
||||||
formData.value.diagType = Number(formData.value.diagType)
|
formData.value.diagType = Number(formData.value.diagType)
|
||||||
patientRegistration.value = res.patientRegistration
|
patientRegistration.value = res.patientRegistration
|
||||||
|
getOrderTotalPrice()
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -162,14 +163,11 @@ const getOrderTotalPrice = () => {
|
||||||
formData.value.itemDetail?.forEach((item: any) => {
|
formData.value.itemDetail?.forEach((item: any) => {
|
||||||
totalPrice += item.selectedPrice * item.selectedNum
|
totalPrice += item.selectedPrice * item.selectedNum
|
||||||
})
|
})
|
||||||
console.log(totalPrice, 'totalPrice')
|
|
||||||
formData.value.goodsDetail?.forEach((item: any) => {
|
formData.value.goodsDetail?.forEach((item: any) => {
|
||||||
totalPrice += item.selectedPrice * item.selectedNum
|
totalPrice += item.selectedPrice * item.selectedNum
|
||||||
})
|
})
|
||||||
console.log(totalPrice, 'totalPrice')
|
|
||||||
formData.value.preTotalPrice = Math.round((totalPrice * 100) / 100)
|
formData.value.preTotalPrice = Math.round((totalPrice * 100) / 100)
|
||||||
formData.value.totalPrice = totalPrice
|
formData.value.totalPrice = totalPrice
|
||||||
console.log(formData.value.totalPrice, 'formData.value.totalPrice')
|
|
||||||
}
|
}
|
||||||
const caseRef = ref<any>("")
|
const caseRef = ref<any>("")
|
||||||
const copyForm = (item: any) => {
|
const copyForm = (item: any) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue