This commit is contained in:
LiJianZhao 2025-05-12 17:03:29 +08:00
parent 77b913e017
commit d7386a3936
4 changed files with 1 additions and 63 deletions

View File

@ -157,7 +157,7 @@ const goodsSelect = (row: any) => {
row.selectedUnit = row.packagingUnit row.selectedUnit = row.packagingUnit
row.selectedPrice = row.unitPrice row.selectedPrice = row.unitPrice
row.shouldNumber = 1; row.shouldNumber = 1;
row.idCode = row.idCode.split(",") row.idCode = row.idCode?.split(",")
if (goodsDetail.value.find((i: any) => i.id == row.id)) { if (goodsDetail.value.find((i: any) => i.id == row.id)) {

View File

@ -279,7 +279,6 @@ let confirm = async () => {
} }
// //
for (let i = 0; i < table_list.value.length; i++) { for (let i = 0; i < table_list.value.length; i++) {
debugger
if (!table_list.value[i].productionBatchCode) { if (!table_list.value[i].productionBatchCode) {
ElMessage.error('生产批号不能为空') ElMessage.error('生产批号不能为空')
return return

View File

@ -236,7 +236,6 @@ const close = () => {
} }
const form = ref() const form = ref()
const save = () => { const save = () => {
debugger
let data = { let data = {
...edit_data.value, ...edit_data.value,
psnNo: socialCard.value?.data?.baseinfo.psn_no, psnNo: socialCard.value?.data?.baseinfo.psn_no,

View File

@ -221,66 +221,6 @@ const checkTraceCode = (goodsList: any[]) => {
nextTick(() => { nextTick(() => {
chargeQueueRef.value?.getOrderList() chargeQueueRef.value?.getOrderList()
}) })
const saveAndCharge = () => {
post('charge/save', {data: {...formData.value, doctorId: doctorId.value}}).then((res: any) => {
formData.value.code = res
nextTick(() => {
settlementRef.value?.init(res)
})
})
}
const diagnosisSearchRef = ref()
const diagnosisSearchApi = "social/diagnose/search"
const diagnosisShowConfig = [
{
label: "诊断名称",
prop: "name",
},
{
label: "诊断编码",
prop: "code",
}
]
const diagnosisSelect = (list: any) => {
const diagnosisNames = list.map((item: any) => item.name).join(',')
formData.value.diagnosisMedicalRecord.diagnosisDetail = JSON.stringify(list)
formData.value.diagnosisMedicalRecord.diagnosisSummary = diagnosisNames
}
const recordsConsumptionRef = ref<any>("")
const patientCardRef = ref()
const clickItem = async (item: any, status: any) => {
statusDisabled.value = status
formData.value = await post('medical/record/getByDiagnosisCode', {diagnosisCode: item.code})
formData.value.doctorId = formData.value.patientRegistration.organizationDoctorId
getOrderTotalPrice()
nextTick(() => {
let list = JSON.parse(formData.value.diagnosisMedicalRecord.diagnosisDetail)
let nList = formData.value.diagnosisMedicalRecord.diagnosisSummary.split(',')
diagnosisSearchRef.value?.init(list, nList);
recordsConsumptionRef.value?.init(formData.value.patientInfo.id);
patientCardRef.value?.init(formData.value.registrationId);
})
}
const dockerList = ref<any[]>([])
const getDockerList = () => {
let query = {
role: 1
}
post('organization/member/search', {query: query}).then((res: any) => {
dockerList.value = res
})
}
const orderCompleted = () => {
getDockerList()
list()
nextTick(() => {
chargeQueueRef.value?.getOrderList()
})
}
const orderCanceled = () => {
nextTick(() => {
chargeQueueRef.value?.getOrderList()
})
} }