Compare commits

..

No commits in common. "842b0e76242f2104c8091cc38d389ff8af56d2e6" and "ce371abd826db76bea606051f4de05ad5778b042" have entirely different histories.

4 changed files with 10 additions and 41 deletions

View File

@ -110,14 +110,6 @@ 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
} }
@ -144,13 +136,6 @@ 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,13 +68,11 @@ 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 = async (code: any, psnNo: any) => { const init = (code: any) => {
retailOrder.value = await post("charge/getByCode", {code: code}); post('charge/getByCode', {code: code}).then((res: any) => {
if (psnNo != null){ retailOrder.value = res;
socialCard.value = await post("social/person/getSocialInfoByPsnNo", {psnNo: psnNo});
}
show.value = true; show.value = true;
})
} }
defineExpose({init}) defineExpose({init})

View File

@ -47,7 +47,6 @@
<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();
@ -111,23 +110,10 @@ 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" @save="charge" :status="formData.status" @openCheckOut ="openCheckoutDetail(formData.goodsDetail,formData.patientRegistration.psnNo)"></TotalPrice> <TotalPrice v-model="formData.totalPrice" @edit="charge" :status="!(statusDisabled)&&formData.status==0" @openCheckOut ="openCheckoutDetail(formData.goodsDetail)"></TotalPrice>
</div> </div>
</el-scrollbar> </el-scrollbar>
</div> </div>
@ -120,7 +120,7 @@ const charge = () => {
saveAndCharge() saveAndCharge()
} else { } else {
// //
openCheckoutDetail(formData.value.goodsDetail,formData.value.patientRegistration.psnNo) openCheckoutDetail(formData.value.goodsDetail)
} }
} }
@ -141,7 +141,7 @@ const checkTraceCode = (goodsList: any[]) => {
} }
const checkoutDetailRef = ref() const checkoutDetailRef = ref()
const openCheckoutDetail = (goodsList: any[],psnNo:string) => { const openCheckoutDetail = (goodsList: any[]) => {
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,psnNo); checkoutDetailRef.value.init(goodsList);
}) })
} }