dev
This commit is contained in:
parent
cbcec95d0c
commit
c5cdd9af01
|
|
@ -1,10 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<Mask :top="50" :height="650" :width="900" :is-show="show">
|
<Mask :top="50" :height="650" :width="900" :is-show="show" title="追溯码采集" @close="show = false" :show-footer="true">
|
||||||
<CloseBtn @click="show = false"></CloseBtn>
|
|
||||||
<el-card>
|
<el-card>
|
||||||
<template #header>
|
|
||||||
<div class="header">追溯码采集</div>
|
|
||||||
</template>
|
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<el-input placeholder="请输入追溯码" v-model="inputIdCode" clearable @keydown.enter="openAssociationIdCode()">
|
<el-input placeholder="请输入追溯码" v-model="inputIdCode" clearable @keydown.enter="openAssociationIdCode()">
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
|
|
@ -44,13 +40,13 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</el-card>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="bottom-btn">
|
<div class="bottom-btn">
|
||||||
<el-button @click="saveRetail()" type="primary">确定</el-button>
|
<el-button @click="saveRetail()" type="primary">确定</el-button>
|
||||||
<el-button @click="show = false">关闭</el-button>
|
<el-button @click="show = false">关闭</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-card>
|
|
||||||
<AssociationIdCode
|
<AssociationIdCode
|
||||||
ref="associationIdCodeRef"
|
ref="associationIdCodeRef"
|
||||||
@addIdCode="cleanInputIdCode"
|
@addIdCode="cleanInputIdCode"
|
||||||
|
|
@ -58,7 +54,7 @@
|
||||||
</Mask>
|
</Mask>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Mask from "@/components/Mask.vue";
|
import Mask from "@/components/common/Mask.vue";
|
||||||
import CloseBtn from "@/components/CloseBtn.vue";
|
import CloseBtn from "@/components/CloseBtn.vue";
|
||||||
import {nextTick, ref} from "vue";
|
import {nextTick, ref} from "vue";
|
||||||
import IdCodeListShow from "@/components/charge/IdCodeListShow.vue";
|
import IdCodeListShow from "@/components/charge/IdCodeListShow.vue";
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<Mask :is-show="show" :width=500 :height="500">
|
<Mask :is-show="show" :width=500 :height="500" title="个人现金部分" @close="show=false" :show-footer="true">
|
||||||
<div class="container-wrapper">
|
<div class="container-wrapper">
|
||||||
<CloseBtn @click="show = false"></CloseBtn>
|
|
||||||
<div class="header">
|
|
||||||
个人现金部分
|
|
||||||
</div>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div>
|
<div>
|
||||||
总金额:{{ socialPayInfo.setlinfo.medfee_sumamt }}<br>
|
总金额:{{ socialPayInfo.setlinfo.medfee_sumamt }}<br>
|
||||||
|
|
@ -28,17 +24,19 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<el-button type="primary" @click="completeSettlement">完成订单</el-button>
|
|
||||||
<el-button @click="cecalOrder">取消订单</el-button>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<template #footer>
|
||||||
|
<div class="bottom">
|
||||||
|
<el-button type="primary" @click="completeSettlement">完成订单</el-button>
|
||||||
|
<el-button @click="cecalOrder">取消订单</el-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
</Mask>
|
</Mask>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
||||||
import Mask from "@/components/Mask.vue";
|
import Mask from "@/components/common/Mask.vue";
|
||||||
import {nextTick, ref} from "vue";
|
import {nextTick, ref} from "vue";
|
||||||
import {priceBtnListNoSocial} from "@/assets/config/constants.ts";
|
import {priceBtnListNoSocial} from "@/assets/config/constants.ts";
|
||||||
import CloseBtn from "@/components/CloseBtn.vue";
|
import CloseBtn from "@/components/CloseBtn.vue";
|
||||||
|
|
@ -75,7 +73,6 @@ const completeSettlement = ()=>{
|
||||||
insutype: orderInfo.value.insutype,
|
insutype: orderInfo.value.insutype,
|
||||||
changeOrderCode: orderInfo.value.changeOrderCode,
|
changeOrderCode: orderInfo.value.changeOrderCode,
|
||||||
}
|
}
|
||||||
|
|
||||||
post("charge/socialRealPay", {...params}).then((res: any) => {
|
post("charge/socialRealPay", {...params}).then((res: any) => {
|
||||||
show.value = false;
|
show.value = false;
|
||||||
emit('orderCompleted')
|
emit('orderCompleted')
|
||||||
|
|
@ -83,8 +80,6 @@ const completeSettlement = ()=>{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const cecalOrder = () => {
|
const cecalOrder = () => {
|
||||||
ElMessageBox.confirm(
|
ElMessageBox.confirm(
|
||||||
`取消后不能恢复,是否确定取消当前订单?`,
|
`取消后不能恢复,是否确定取消当前订单?`,
|
||||||
|
|
@ -127,6 +122,7 @@ const orderCanceled = ()=>{
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
height: 45px;
|
height: 45px;
|
||||||
width: 95px;
|
width: 95px;
|
||||||
|
|
@ -139,6 +135,7 @@ const orderCanceled = ()=>{
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
.image {
|
.image {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
|
@ -163,4 +160,11 @@ const orderCanceled = ()=>{
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.bottom{
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0 24px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Mask :width="696" :height="409" title="收费" :is-show="show" @close="show = false" :show-footer="true">
|
<Mask :width="696" :height="409" title="收费" :is-show="show" @close="close" :show-footer="true">
|
||||||
<template #default>
|
<template #default>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="btns">
|
<div class="btns">
|
||||||
|
|
@ -66,26 +66,30 @@ const socialCard = ref<any>({
|
||||||
data: null,
|
data: null,
|
||||||
mdtrtCertType: null,
|
mdtrtCertType: null,
|
||||||
mdtrtCertNo: null,
|
mdtrtCertNo: null,
|
||||||
payInfo: {
|
payInfo: {}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const show = ref(false)
|
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 close = () => {
|
||||||
|
show.value = false;
|
||||||
|
payType.value = null;
|
||||||
|
selectedIndex.value = null
|
||||||
|
}
|
||||||
const init = async (code: any, psnNo: any) => {
|
const init = async (code: any, psnNo: any) => {
|
||||||
retailOrder.value = await post("charge/getByCode", {code: code});
|
retailOrder.value = await post("charge/getByCode", {code: code});
|
||||||
if (psnNo != null) {
|
if (psnNo != null) {
|
||||||
let result: any = await post("social/person/getSocialInfoByPsnNo", {psnNo: psnNo});
|
let result: any = await post("social/person/getSocialInfoByPsnNo", {psnNo: psnNo});
|
||||||
|
if (result) {
|
||||||
socialCard.value.data = result;
|
socialCard.value.data = result;
|
||||||
socialCard.value.mdtrtCertType = result.mdtrtCertType;
|
socialCard.value.mdtrtCertType = result.mdtrtCertType;
|
||||||
socialCard.value.mdtrtCertNo = result.mdtrtCertNo;
|
socialCard.value.mdtrtCertNo = result.mdtrtCertNo;
|
||||||
socialCard.value.payInfo.selfpay_prop_type = result.insuinfo[0].insutype;
|
socialCard.value.payInfo.selfpay_prop_type = result.insuinfo[0].insutype;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
show.value = true;
|
show.value = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
defineExpose({init})
|
defineExpose({init})
|
||||||
const changePriceType = (type: any, index: any) => {
|
const changePriceType = (type: any, index: any) => {
|
||||||
|
|
@ -98,6 +102,7 @@ const completeSettlement = () => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (payType.value == null) {
|
if (payType.value == null) {
|
||||||
|
ElMessage.warning("请选择支付方式")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (payType.value == 1) {
|
if (payType.value == 1) {
|
||||||
|
|
@ -135,6 +140,10 @@ const getBalcByInsutype = (type: any) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const socialSettlement = () => {
|
const socialSettlement = () => {
|
||||||
|
if (socialCard.value.data == null) {
|
||||||
|
ElMessage.warning("请刷卡")
|
||||||
|
return;
|
||||||
|
}
|
||||||
const params = {
|
const params = {
|
||||||
mdtrtCertType: socialCard.value.mdtrtCertType,
|
mdtrtCertType: socialCard.value.mdtrtCertType,
|
||||||
mdtrtCertNo: socialCard.value.mdtrtCertNo,
|
mdtrtCertNo: socialCard.value.mdtrtCertNo,
|
||||||
|
|
|
||||||
|
|
@ -111,21 +111,20 @@
|
||||||
<el-table-column label="生产日期" width="140">
|
<el-table-column label="生产日期" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
:editable="false"
|
|
||||||
v-model="scope.row.productionDate"
|
v-model="scope.row.productionDate"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
placeholder="生产日期"
|
placeholder="生产日期"
|
||||||
size="small"
|
size="small"
|
||||||
@change="checkProductionDate(scope.row)"
|
@change="checkProductionDate(scope.row)"
|
||||||
style="width: 100px;"/>
|
style="width: 100px;"
|
||||||
|
@input="inputProductionDate(scope.row)"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="有效日期" width="140">
|
<el-table-column label="有效日期" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
:editable="false"
|
|
||||||
v-model="scope.row.expiryDate"
|
v-model="scope.row.expiryDate"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
|
|
@ -215,7 +214,12 @@ const checkProductionDate = (row: any) => {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
const inputProductionDate= (row: any) => {
|
||||||
|
console.log(row)
|
||||||
|
if (row.productionDate && row.expiryDate) {
|
||||||
|
checkExpiryDate(row);
|
||||||
|
}
|
||||||
|
}
|
||||||
const checkExpiryDate = (row: any) => {
|
const checkExpiryDate = (row: any) => {
|
||||||
if (!row.expiryDate) {
|
if (!row.expiryDate) {
|
||||||
ElMessage.error('有效期不能为空');
|
ElMessage.error('有效期不能为空');
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,6 @@ const delDraft = () => {
|
||||||
}
|
}
|
||||||
const settlementRef = ref()
|
const settlementRef = ref()
|
||||||
const charge = () => {
|
const charge = () => {
|
||||||
|
|
||||||
if (checkTraceCode(formData.value.goodsDetail)) {
|
if (checkTraceCode(formData.value.goodsDetail)) {
|
||||||
//保存订单
|
//保存订单
|
||||||
saveAndCharge()
|
saveAndCharge()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue