Compare commits

...

3 Commits

Author SHA1 Message Date
LiJianZhao 842b0e7624 Merge branch 'main' of ssh://git.jizhiweb.cn:2222/clinic-v2/web 2025-05-13 12:09:29 +08:00
LiJianZhao a99c5e654b Merge branch 'main' of ssh://git.jizhiweb.cn:2222/clinic-v2/web
# Conflicts:
#	src/views/charge/index.vue
2025-05-13 11:32:42 +08:00
LiJianZhao 31473b7f44 dev 2025-05-13 11:31:26 +08:00
4 changed files with 41 additions and 10 deletions

View File

@ -110,6 +110,14 @@ const checkTraceCode = () => {
const inputIdCode = ref() const inputIdCode = ref()
const associationIdCodeRef = ref() const associationIdCodeRef = ref()
const openAssociationIdCode = () => { const openAssociationIdCode = () => {
if(!inputIdCode.value || inputIdCode.value.length <20){
ElMessage({
message: '追溯码长度不足20位',
type: 'info',
})
return
}
if (addTraceAbilityCode()) { if (addTraceAbilityCode()) {
return return
} }
@ -136,6 +144,13 @@ const addTraceabilityCodeDo = (item: any, inputStr: any) => {
item.traceAbilityCodeList = [] item.traceAbilityCodeList = []
} }
let traceAbilityCodeListList = item.traceAbilityCodeList.length let traceAbilityCodeListList = item.traceAbilityCodeList.length
if(!inputStr || inputStr.length <20){
ElMessage({
message: '追溯码长度不足20位',
type: 'info',
})
return
}
if (traceAbilityCodeListList == item.shouldNumber) { if (traceAbilityCodeListList == item.shouldNumber) {
ElMessage({ ElMessage({

View File

@ -68,11 +68,13 @@ const show = ref(false)
const printReceipt = ref(false); const printReceipt = ref(false);
const payType = ref(null); const payType = ref(null);
const retailOrder = ref<any>(null); const retailOrder = ref<any>(null);
const init = (code: any) => { const init = async (code: any, psnNo: any) => {
post('charge/getByCode', {code: code}).then((res: any) => { retailOrder.value = await post("charge/getByCode", {code: code});
retailOrder.value = res; if (psnNo != null){
show.value = true; socialCard.value = await post("social/person/getSocialInfoByPsnNo", {psnNo: psnNo});
}) }
show.value = true;
} }
defineExpose({init}) defineExpose({init})

View File

@ -47,6 +47,7 @@
<script setup lang="ts"> <script setup lang="ts">
import {ref, unref, watch} from "vue"; import {ref, unref, watch} from "vue";
import {post} from "@/utils/request.ts"; import {post} from "@/utils/request.ts";
import {ElMessage} from "element-plus";
const keyword = ref(""); const keyword = ref("");
const popoverRef = ref(); const popoverRef = ref();
@ -110,10 +111,23 @@ const changeInput = (inputStr: string) => {
} }
const emit = defineEmits(['selectedCallBack', 'focus']) const emit = defineEmits(['selectedCallBack', 'focus'])
const clickRow = (row: any) => { const clickRow = (row: any) => {
if (selectList.value && selectList.value.length >=3){
ElMessage({
message: '诊断最多三个',
type: 'info',
})
return
}
if (selectList.value.some((item: any) => item.id === row.id)) {
ElMessage({
message: '诊断已存在',
type: 'info',
})
return
}
selectList.value.push(row) selectList.value.push(row)
nameList.value.push(row.name) nameList.value.push(row.name)
keyword.value = nameList.value.join(",") + "," keyword.value = nameList.value.join(",") + ","
searchList.value = [] searchList.value = []
popoverRef.value.hide() popoverRef.value.hide()
} }

View File

@ -54,7 +54,7 @@
@totalPriceChange="getOrderTotalPrice" :statusDisabled="statusDisabled==1"></GoodsDetail> @totalPriceChange="getOrderTotalPrice" :statusDisabled="statusDisabled==1"></GoodsDetail>
</div> </div>
<div class="bottom"> <div class="bottom">
<TotalPrice v-model="formData.totalPrice" @edit="charge" :status="!(statusDisabled)&&formData.status==0" @openCheckOut ="openCheckoutDetail(formData.goodsDetail)"></TotalPrice> <TotalPrice v-model="formData.totalPrice" @save="charge" :status="formData.status" @openCheckOut ="openCheckoutDetail(formData.goodsDetail,formData.patientRegistration.psnNo)"></TotalPrice>
</div> </div>
</el-scrollbar> </el-scrollbar>
</div> </div>
@ -120,7 +120,7 @@ const charge = () => {
saveAndCharge() saveAndCharge()
} else { } else {
// //
openCheckoutDetail(formData.value.goodsDetail) openCheckoutDetail(formData.value.goodsDetail,formData.value.patientRegistration.psnNo)
} }
} }
@ -141,7 +141,7 @@ const checkTraceCode = (goodsList: any[]) => {
} }
const checkoutDetailRef = ref() const checkoutDetailRef = ref()
const openCheckoutDetail = (goodsList: any[]) => { const openCheckoutDetail = (goodsList: any[],psnNo:string) => {
if (!goodsList || goodsList.length == 0) { if (!goodsList || goodsList.length == 0) {
ElMessage({ ElMessage({
message: '没有商品信息,请先选择需要售卖的商品', message: '没有商品信息,请先选择需要售卖的商品',
@ -151,7 +151,7 @@ const checkTraceCode = (goodsList: any[]) => {
return return
} }
nextTick(() => { nextTick(() => {
checkoutDetailRef.value.init(goodsList); checkoutDetailRef.value.init(goodsList,psnNo);
}) })
} }