This commit is contained in:
ChenQiuYu 2025-05-27 17:11:19 +08:00
parent a77eb5c4eb
commit f435e97154
5 changed files with 14 additions and 16 deletions

View File

@ -85,7 +85,7 @@ const addIdCode = () => {
return; return;
} }
let idCode = traceabilityCode.value.slice(0, 7); let idCode = traceabilityCode.value.slice(0, 7);
post(API.Goods.Base.AddIdCode, {goodsId: selected.value, idCode: idCode}).then((res: any) => { post(API.Charge.Order.Save, {goodsId: selected.value, idCode: idCode}).then((res: any) => {
for (let subItem of tableData.value) { for (let subItem of tableData.value) {
if (subItem.id === selected.value) { if (subItem.id === selected.value) {
if (subItem.idCode == null) { if (subItem.idCode == null) {

View File

@ -45,11 +45,12 @@ import {formatDate} from "@/utils/dateUtils.ts"
import Panel from "@/components/common/Panel.vue"; import Panel from "@/components/common/Panel.vue";
import {onMounted, ref} from "vue"; import {onMounted, ref} from "vue";
import {post} from "@/utils/request.ts"; import {post} from "@/utils/request.ts";
import {API} from "@/assets/config/API.ts";
const seeDockerInfo = ref<any>(); const seeDockerInfo = ref<any>();
const getSeeDockerInfo = (newValue: any) => { const getSeeDockerInfo = (newValue: any) => {
if (!newValue) return; if (!newValue) return;
post('medical/record/getSeeDockerInfo', {regisId: newValue}).then((res: any) => { post(API.Diagnosis.Base.GetRegistrationDetail, {regisId: newValue}).then((res: any) => {
seeDockerInfo.value = res seeDockerInfo.value = res
}) })
} }

View File

@ -26,6 +26,7 @@ import Detail from './RecordsLog/Detail.vue';
import {post} from "@/utils/request.ts"; import {post} from "@/utils/request.ts";
import {ref} from "vue"; import {ref} from "vue";
import {formatListTime} from "@/utils/dateUtils.ts"; import {formatListTime} from "@/utils/dateUtils.ts";
import {API} from "@/assets/config/API.ts";
const list = ref<any>([]) const list = ref<any>([])
const init = (patientId: any) => { const init = (patientId: any) => {
@ -33,7 +34,7 @@ const init = (patientId: any) => {
patientId: patientId, patientId: patientId,
pageSize: 20 pageSize: 20
} }
post('charge/listDetail', {query}).then((res: any) => { post(API.Charge.Order.ListWithDetail, {query}).then((res: any) => {
list.value = res.list list.value = res.list
}) })
} }

View File

@ -128,11 +128,6 @@ const initFormData = () => {
const statusDisabled = ref(0) const statusDisabled = ref(0)
const diagnosisKeyword = ref("") const diagnosisKeyword = ref("")
const chargeQueueRef = ref() const chargeQueueRef = ref()
const delDraft = () => {
nextTick(() => {
chargeQueueRef.value?.delDraft()
})
}
const settlementRef = ref() const settlementRef = ref()
const charge = () => { const charge = () => {
if (checkTraceCode(formData.value.goodsDetail)) { if (checkTraceCode(formData.value.goodsDetail)) {
@ -176,7 +171,7 @@ const openCheckoutDetail = (goodsList: any[], psnNo: string) => {
} }
const saveAndCharge = () => { const saveAndCharge = () => {
post('charge/save', {data: {...formData.value, doctorId: doctorId.value}}).then((res: any) => { post(API.Charge.Order.Save, {data: {...formData.value, doctorId: doctorId.value}}).then((res: any) => {
formData.value.orderCode = res formData.value.orderCode = res
nextTick(() => { nextTick(() => {
settlementRef.value?.init(res, formData.value.patientRegistration.psnNo) settlementRef.value?.init(res, formData.value.patientRegistration.psnNo)
@ -205,7 +200,7 @@ const patientCardRef = ref()
const disabled = ref(false) const disabled = ref(false)
const clickItem = async (item: any, status: any) => { const clickItem = async (item: any, status: any) => {
statusDisabled.value = status statusDisabled.value = status
formData.value = await post(API.Charge.Order.GetByDiagnosisCode, {diagnosisCode: item.code}) formData.value = await post(API.Diagnosis.Base.GetByDiagnosisCode, {diagnosisCode: item.code})
// //
for (let i = 0; i < formData.value.goodsDetail.length; i++) { for (let i = 0; i < formData.value.goodsDetail.length; i++) {
let goodsItem = formData.value.goodsDetail[i] let goodsItem = formData.value.goodsDetail[i]
@ -231,7 +226,7 @@ const getDockerList = () => {
let query = { let query = {
role: 1 role: 1
} }
post('organization/member/search', {query: query}).then((res: any) => { post(API.Organization.Member.Search, {query: query}).then((res: any) => {
dockerList.value = res dockerList.value = res
}) })
} }

View File

@ -180,6 +180,7 @@ import {formatListTime} from "@/utils/dateUtils.ts";
import antys from "@/assets/config/directory/antys.json" import antys from "@/assets/config/directory/antys.json"
import area from "@/assets/config/area.json" import area from "@/assets/config/area.json"
import psnCertTypes from "@/assets/config/directory/psnCertTypes.json" import psnCertTypes from "@/assets/config/directory/psnCertTypes.json"
import {API} from "@/assets/config/API.ts";
const isGrant = ref(false) const isGrant = ref(false)
@ -224,14 +225,14 @@ const init = () => {
page: 1, page: 1,
pageSize: 100 pageSize: 100
}; };
post("vip/vip/list", query).then((res: any) => { post(API.Patient.Base.List, query).then((res: any) => {
list.value = res.list; list.value = res.list;
totalCount.value = res.total_count totalCount.value = res.total_count
listItem.value = res.list[0]; listItem.value = res.list[0];
// //
list.value.forEach((item: any) => { list.value.forEach((item: any) => {
if (!item.levelId) return if (!item.levelId) return
post("vip/vipLevel/get", {levelId: item.levelId}).then((res: any) => { post(API.Patient.LevelConfig.Get, {levelId: item.levelId}).then((res: any) => {
item.levelName = res.name; item.levelName = res.name;
}); });
}); });
@ -239,7 +240,7 @@ const init = () => {
}); });
}; };
const getVipIntegral = (id: any) => { const getVipIntegral = (id: any) => {
post("vip/vip/get", {id: id}).then((res: any) => { post(API.Patient.LevelConfig.Get, {id: id}).then((res: any) => {
listItem.value.integralBalance = res.integralBalance; listItem.value.integralBalance = res.integralBalance;
}); });
}; };
@ -316,7 +317,7 @@ const getChargeList = (id: any) => {
pageSize: 20, pageSize: 20,
patientId: id patientId: id
} }
post('charge/list', {query}).then((res: any) => { post(API.Charge.Order.List, {query}).then((res: any) => {
tableData.value = res.list tableData.value = res.list
total.value = res.total_count total.value = res.total_count
}) })
@ -360,7 +361,7 @@ const getPayTypeStr = (payType: number): string => {
const searchVip = () => { const searchVip = () => {
post("vip/vip/list", { post(API.Patient.Base.List, {
page: 1, page: 1,
pageSize: 50, pageSize: 50,
keyword: input3.value, keyword: input3.value,