Merge branch 'main' of ssh://git.jizhiweb.cn:2222/clinic-v2/web
This commit is contained in:
commit
5c0c2e73bd
|
|
@ -9,10 +9,10 @@
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
class="box-item"
|
class="box-item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
:content="item.diagnosisMedicalRecord.diagnosisSummary"
|
:content="item.diagnosisMedicalRecord?.diagnosisSummary"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
>
|
>
|
||||||
<span class="disease-name">{{ item.diagnosisMedicalRecord.diagnosisSummary }}</span>
|
<span class="disease-name">{{ item.diagnosisMedicalRecord?.diagnosisSummary }}</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<!-- <span class="doctor">{{ item.patientId }}</span>-->
|
<!-- <span class="doctor">{{ item.patientId }}</span>-->
|
||||||
<!-- <span class="time">{{ item.createDatetime }}</span>-->
|
<!-- <span class="time">{{ item.createDatetime }}</span>-->
|
||||||
|
|
@ -37,9 +37,10 @@ const list = ref<any>([])
|
||||||
|
|
||||||
const init = (patientId: any) => {
|
const init = (patientId: any) => {
|
||||||
const query = {
|
const query = {
|
||||||
patientId: patientId
|
patientId: patientId,
|
||||||
|
pageSize:10
|
||||||
}
|
}
|
||||||
post('charge/list', {query}).then((res: any) => {
|
post('charge/listDetail', {query}).then((res: any) => {
|
||||||
list.value = res.list
|
list.value = res.list
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,11 +61,11 @@ const {detail} = defineProps(['detail']);
|
||||||
const detailObj = ref<any>(detail)
|
const detailObj = ref<any>(detail)
|
||||||
const sumPrice = ref(0)
|
const sumPrice = ref(0)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const pharmaceuticalTotalAmount = detailObj.value.serviceDetail.reduce((pre: any, cur: any) => {
|
const pharmaceuticalTotalAmount = detailObj.value.serviceDetail?.reduce((pre: any, cur: any) => {
|
||||||
return pre + cur.number * cur.unitPrice
|
return pre + cur.number * cur.unitPrice
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
||||||
const serviceTotalAmount = detailObj.value.goodsDetail.reduce((pre: any, cur: any) => {
|
const serviceTotalAmount = detailObj.value.goodsDetail?.reduce((pre: any, cur: any) => {
|
||||||
return pre + cur.number * cur.unitPrice
|
return pre + cur.number * cur.unitPrice
|
||||||
}, 0);
|
}, 0);
|
||||||
sumPrice.value = pharmaceuticalTotalAmount + serviceTotalAmount;
|
sumPrice.value = pharmaceuticalTotalAmount + serviceTotalAmount;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="price">¥{{ prop.money }}</div>
|
<div class="price">¥{{ retailOrder.totalPrice }}</div>
|
||||||
<div class="social" >
|
<div class="social" >
|
||||||
<CardPay v-model="socialCard"/>
|
<CardPay v-model="socialCard"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -50,12 +50,6 @@ import PersonalPayment from "@/components/charge/PersonalPayment.vue";
|
||||||
import {ElMessage} from "element-plus";
|
import {ElMessage} from "element-plus";
|
||||||
const wsStore = useWsStore();
|
const wsStore = useWsStore();
|
||||||
const socialCard =defineModel<any>();
|
const socialCard =defineModel<any>();
|
||||||
const prop=defineProps({
|
|
||||||
money: {
|
|
||||||
type: String,
|
|
||||||
default: ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
const show = ref(false)
|
const show = ref(false)
|
||||||
const printReceipt = ref(false);
|
const printReceipt = ref(false);
|
||||||
|
|
|
||||||
|
|
@ -29,13 +29,12 @@ const list = ref<any>([])
|
||||||
const init = (patientId: any) => {
|
const init = (patientId: any) => {
|
||||||
post("medical/record/listByPatient",{patientId:patientId}).then((res: any) => {
|
post("medical/record/listByPatient",{patientId:patientId}).then((res: any) => {
|
||||||
list.value = res
|
list.value = res
|
||||||
emit('initMedicalRecord', res[0].diagnosisMedicalRecord.allergyHistory,res[0].diagnosisMedicalRecord.beforeMedicalHistory)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const clearList = () => {
|
const clearList = () => {
|
||||||
list.value = []
|
list.value = []
|
||||||
}
|
}
|
||||||
const emit = defineEmits(['copy','copyItem','copyGoods',"initMedicalRecord"])
|
const emit = defineEmits(['copy','copyItem','copyGoods'])
|
||||||
const copy = (item: any) => {
|
const copy = (item: any) => {
|
||||||
emit('copy', item)
|
emit('copy', item)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -155,9 +155,12 @@ import {medTypeJson} from "@/assets/config/constants.ts";
|
||||||
const show = ref<boolean>(false);
|
const show = ref<boolean>(false);
|
||||||
const orderInfo = ref<any>({});
|
const orderInfo = ref<any>({});
|
||||||
|
|
||||||
const init = (order: any) => {
|
const init = (code: any) => {
|
||||||
orderInfo.value = order;
|
|
||||||
show.value = true;
|
show.value = true;
|
||||||
|
post("charge/getByCode", {code: code}).then((res: any)=>{
|
||||||
|
orderInfo.value = res;
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
//修改时间格式化
|
//修改时间格式化
|
||||||
const formatDate = (isoStr: any) => {
|
const formatDate = (isoStr: any) => {
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Settlement
|
<Settlement
|
||||||
:money="formData.totalPrice"
|
|
||||||
ref="settlementRef"
|
ref="settlementRef"
|
||||||
v-model="socialCard"
|
v-model="socialCard"
|
||||||
@orderCompleted="orderCompleted"
|
@orderCompleted="orderCompleted"
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,7 @@ const getChargeList = (id: any) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const openDetail = (row: any, column: any, event: Event) => {
|
const openDetail = (row: any, column: any, event: Event) => {
|
||||||
orderDetailRef.value.init(row)
|
orderDetailRef.value.init(row.code)
|
||||||
}
|
}
|
||||||
const statusObj = {
|
const statusObj = {
|
||||||
0: "未完成",
|
0: "未完成",
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
<MedicalInformation v-model="seeDockerInfo" ref="medicalInformationRef"></MedicalInformation>
|
<MedicalInformation v-model="seeDockerInfo" ref="medicalInformationRef"></MedicalInformation>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<MedicalHistory ref="medicalHistoryRef" @copy="copyForm" @copyItem="copyItemList" @copyGoods="copyGoodsList" @initMedicalRecord="initMedicalRecord"></MedicalHistory>
|
<MedicalHistory ref="medicalHistoryRef" @copy="copyForm" @copyItem="copyItemList" @copyGoods="copyGoodsList" ></MedicalHistory>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -181,6 +181,8 @@ const getSeeDockerInfo = (newValue:any) => {
|
||||||
if (!registerId.value)return;
|
if (!registerId.value)return;
|
||||||
post('medical/record/getSeeDockerInfo', {regisId: newValue}).then((res: any) => {
|
post('medical/record/getSeeDockerInfo', {regisId: newValue}).then((res: any) => {
|
||||||
seeDockerInfo.value = res
|
seeDockerInfo.value = res
|
||||||
|
formData.value.allergyHistory = res.patientInfo.allergyHistory;
|
||||||
|
formData.value.beforeMedicalHistory = res.patientInfo.beforeMedicalHistory;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const isShowFrom= ref<any>(false)
|
const isShowFrom= ref<any>(false)
|
||||||
|
|
@ -195,10 +197,7 @@ watch(() => registerId.value, (newValue) => {
|
||||||
getSeeDockerInfo(newValue)
|
getSeeDockerInfo(newValue)
|
||||||
})
|
})
|
||||||
|
|
||||||
const initMedicalRecord = (allergy:string, before:string) => {
|
|
||||||
formData.value.allergyHistory = allergy;
|
|
||||||
formData.value.beforeMedicalHistory = before;
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.container {
|
.container {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue