Compare commits
3 Commits
a296b3330e
...
c5cdd9af01
| Author | SHA1 | Date |
|---|---|---|
|
|
c5cdd9af01 | |
|
|
cbcec95d0c | |
|
|
984bd4a60c |
|
|
@ -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>
|
||||||
<template #footer>
|
|
||||||
<div class="bottom-btn">
|
|
||||||
<el-button @click="saveRetail()" type="primary">确定</el-button>
|
|
||||||
<el-button @click="show = false">关闭</el-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
|
<template #footer>
|
||||||
|
<div class="bottom-btn">
|
||||||
|
<el-button @click="saveRetail()" type="primary">确定</el-button>
|
||||||
|
<el-button @click="show = false">关闭</el-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<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,44 +1,42 @@
|
||||||
<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="container">
|
||||||
<div class="header">
|
<div>
|
||||||
个人现金部分
|
总金额:{{ socialPayInfo.setlinfo.medfee_sumamt }}<br>
|
||||||
</div>
|
基金支付金额:{{ socialPayInfo.setlinfo.fund_pay_sumamt }}<br>
|
||||||
<div class="container">
|
个人医保支付金额:{{ socialPayInfo.setlinfo.acct_pay }}<br>
|
||||||
<div>
|
个人现金支付金额:{{ socialPayInfo.setlinfo.psn_cash_pay }}<br>
|
||||||
总金额:{{socialPayInfo.setlinfo.medfee_sumamt}}<br>
|
|
||||||
基金支付金额:{{socialPayInfo.setlinfo.fund_pay_sumamt}}<br>
|
|
||||||
个人医保支付金额:{{socialPayInfo.setlinfo.acct_pay}}<br>
|
|
||||||
个人现金支付金额:{{socialPayInfo.setlinfo.psn_cash_pay}}<br>
|
|
||||||
</div>
|
|
||||||
<div class="price-type" v-if="socialPayInfo.setlinfo.psn_cash_pay>0">
|
|
||||||
<div
|
|
||||||
class="price-type-item"
|
|
||||||
:class="['btn',payType==item.type?'active':'']"
|
|
||||||
v-for="(item,index) in priceBtnListNoSocial"
|
|
||||||
@click="changePriceType(item.type)"
|
|
||||||
>
|
|
||||||
<div class="image" :style="{'background-color':item.color}">
|
|
||||||
<img style="width: 16px;height: 16px;" :src="item.img" alt=""/>
|
|
||||||
</div>
|
|
||||||
<span>{{item.name}}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<el-input v-model="cash" placeholder="请输入收到现金的数量"></el-input>
|
<div class="price-type" v-if="socialPayInfo.setlinfo.psn_cash_pay>0">
|
||||||
|
<div
|
||||||
|
class="price-type-item"
|
||||||
|
:class="['btn',payType==item.type?'active':'']"
|
||||||
|
v-for="(item,index) in priceBtnListNoSocial"
|
||||||
|
@click="changePriceType(item.type)"
|
||||||
|
>
|
||||||
|
<div class="image" :style="{'background-color':item.color}">
|
||||||
|
<img style="width: 16px;height: 16px;" :src="item.img" alt=""/>
|
||||||
|
</div>
|
||||||
|
<span>{{ item.name }}</span>
|
||||||
|
</div>
|
||||||
|
<el-input v-model="cash" placeholder="请输入收到现金的数量"></el-input>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<el-button type="primary" @click="completeSettlement">完成订单</el-button>
|
<template #footer>
|
||||||
<el-button @click="cecalOrder">取消订单</el-button>
|
<div class="bottom">
|
||||||
|
<el-button type="primary" @click="completeSettlement">完成订单</el-button>
|
||||||
|
<el-button @click="cecalOrder">取消订单</el-button>
|
||||||
</div>
|
</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";
|
||||||
|
|
@ -53,16 +51,16 @@ const changePriceType = (type: any) => {
|
||||||
}
|
}
|
||||||
const orderInfo = ref<any>(null)
|
const orderInfo = ref<any>(null)
|
||||||
const show = ref(false)
|
const show = ref(false)
|
||||||
const open = (payInfo:any,order:any)=>{
|
const open = (payInfo: any, order: any) => {
|
||||||
show.value = true
|
show.value = true
|
||||||
socialPayInfo.value = payInfo;
|
socialPayInfo.value = payInfo;
|
||||||
orderInfo.value = order;
|
orderInfo.value = order;
|
||||||
}
|
}
|
||||||
|
|
||||||
const cash = ref<number>(0)
|
const cash = ref<number>(0)
|
||||||
const emit = defineEmits(["orderCompleted","orderCancel"])
|
const emit = defineEmits(["orderCompleted", "orderCancel"])
|
||||||
const completeSettlement = ()=>{
|
const completeSettlement = () => {
|
||||||
if (cash.value != socialPayInfo.value.setlinfo.psn_cash_pay){
|
if (cash.value != socialPayInfo.value.setlinfo.psn_cash_pay) {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: '现金支付金额与实际收款金额不一致',
|
message: '现金支付金额与实际收款金额不一致',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
|
|
@ -73,19 +71,16 @@ const completeSettlement = ()=>{
|
||||||
mdtrtCertType: orderInfo.value.mdtrtCertType,
|
mdtrtCertType: orderInfo.value.mdtrtCertType,
|
||||||
mdtrtCertNo: orderInfo.value.mdtrtCertNo,
|
mdtrtCertNo: orderInfo.value.mdtrtCertNo,
|
||||||
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')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const cecalOrder = () => {
|
||||||
|
|
||||||
const cecalOrder = ()=>{
|
|
||||||
ElMessageBox.confirm(
|
ElMessageBox.confirm(
|
||||||
`取消后不能恢复,是否确定取消当前订单?`,
|
`取消后不能恢复,是否确定取消当前订单?`,
|
||||||
'Warning',
|
'Warning',
|
||||||
|
|
@ -95,7 +90,7 @@ const cecalOrder = ()=>{
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
}
|
}
|
||||||
).then(() => {
|
).then(() => {
|
||||||
post("retail/cancelOrder",{orderId:orderInfo.value.orderId}).then((res:any)=>{
|
post("retail/cancelOrder", {orderId: orderInfo.value.orderId}).then((res: any) => {
|
||||||
show.value = false;
|
show.value = false;
|
||||||
emit('orderCancel')
|
emit('orderCancel')
|
||||||
})
|
})
|
||||||
|
|
@ -106,16 +101,16 @@ const cecalOrder = ()=>{
|
||||||
defineExpose({open})
|
defineExpose({open})
|
||||||
|
|
||||||
const psnPaymentRef = ref();
|
const psnPaymentRef = ref();
|
||||||
const openPsnPayment = (payInfo:any,orderInfo:any)=>{
|
const openPsnPayment = (payInfo: any, orderInfo: any) => {
|
||||||
nextTick(()=>{
|
nextTick(() => {
|
||||||
psnPaymentRef.value.open(payInfo,orderInfo);
|
psnPaymentRef.value.open(payInfo, orderInfo);
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
const orderCompleted = ()=>{
|
const orderCompleted = () => {
|
||||||
show.value = false;
|
show.value = false;
|
||||||
}
|
}
|
||||||
const orderCanceled = ()=>{
|
const orderCanceled = () => {
|
||||||
show.value = false;
|
show.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -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,7 +135,8 @@ 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;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
|
|
@ -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});
|
||||||
socialCard.value.data = result;
|
if (result) {
|
||||||
socialCard.value.mdtrtCertType = result.mdtrtCertType;
|
socialCard.value.data = result;
|
||||||
socialCard.value.mdtrtCertNo = result.mdtrtCertNo;
|
socialCard.value.mdtrtCertType = result.mdtrtCertType;
|
||||||
socialCard.value.payInfo.selfpay_prop_type = result.insuinfo[0].insutype;
|
socialCard.value.mdtrtCertNo = result.mdtrtCertNo;
|
||||||
|
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('有效期不能为空');
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
:show-footer="true">
|
:show-footer="true">
|
||||||
<template #default>
|
<template #default>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="content">
|
<div class="content" v-loading="loading">
|
||||||
<el-form
|
<el-form
|
||||||
:model="ruleForm"
|
:model="ruleForm"
|
||||||
label-width="auto"
|
label-width="auto"
|
||||||
|
|
@ -12,9 +12,9 @@
|
||||||
>
|
>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="会员等级">
|
<el-form-item label="等级">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="ruleForm.levelId"
|
v-model="ruleForm.exp"
|
||||||
placeholder="等级"
|
placeholder="等级"
|
||||||
size="default"
|
size="default"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
v-for="item in levelList"
|
v-for="item in levelList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.levelId"
|
:value="item.startExp"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -140,41 +140,173 @@
|
||||||
<el-input v-model="ruleForm.allergyHistory"></el-input>
|
<el-input v-model="ruleForm.allergyHistory"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
<h5 v-if="!isShowCard" style="margin:24px 0;font-size: 16px">险种列表</h5>
|
||||||
|
<el-table
|
||||||
|
:data="tableData"
|
||||||
|
style="width: 100%;"
|
||||||
|
v-if="!isShowCard"
|
||||||
|
height="160"
|
||||||
|
>
|
||||||
|
<el-table-column label="险种类型" prop="insutype">
|
||||||
|
<template #default="scope">
|
||||||
|
{{ getKey(insutypes, scope.row.insutype) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="待遇状态">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="参保日期" prop="psn_insu_date"></el-table-column>
|
||||||
|
<el-table-column label="剩余余额" prop="balc">
|
||||||
|
<template #default="scope">
|
||||||
|
¥{{ scope.row.balc || 0 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<el-button @click="close">取消</el-button>
|
<el-dropdown v-if="isShowCard" placement="top-start" @show="showCardBtn" @hide="hide"
|
||||||
<el-button type="primary" @click="submitForm">
|
:disabled="ruleForm.status==0">
|
||||||
保存
|
<div class="left" style="outline: none;">
|
||||||
</el-button>
|
<span class="btnCard" type="primary">
|
||||||
|
<img class="image" src="/static/images/registration/card.png" alt=""
|
||||||
|
srcset="">{{ ruleForm.status == 0 ? '不能读卡' : '进行读卡' }}
|
||||||
|
<img class="image1" :src="'/static/images/registration/'+(showBtn?2:1)+'.png'" alt="" srcset="">
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<template #dropdown>
|
||||||
|
<CardDefault ref="cardDefaultRef" v-model="socialCard" @socialCardUpdate="socialCardUpdate"
|
||||||
|
@close="deleteCard" @changeLoading="changeLoading"/>
|
||||||
|
</template>
|
||||||
|
</el-dropdown>
|
||||||
|
<div class="closeBtn" v-else @click="deleteCard" style="outline: none;">
|
||||||
|
<img class="image" src="/static/images/registration/card.png" alt="" srcset="">
|
||||||
|
退出医保
|
||||||
|
</div>
|
||||||
|
<div class="bottom-right">
|
||||||
|
<el-button @click="close">取消</el-button>
|
||||||
|
<el-button type="primary" @click="submitForm">
|
||||||
|
保存
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Mask>
|
</Mask>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {onMounted, ref} from "vue"
|
import {nextTick, onMounted, ref} from "vue"
|
||||||
import {ElForm, ElFormItem, ElSelect, ElOption, ElRow, ElCol, ElRadioGroup, type FormInstance} from "element-plus";
|
import {
|
||||||
|
ElForm,
|
||||||
|
ElFormItem,
|
||||||
|
ElSelect,
|
||||||
|
ElOption,
|
||||||
|
ElRow,
|
||||||
|
ElCol,
|
||||||
|
ElRadioGroup,
|
||||||
|
type FormInstance,
|
||||||
|
ElMessageBox
|
||||||
|
} from "element-plus";
|
||||||
import SelectArea from "@/components/SelectArea.vue";
|
import SelectArea from "@/components/SelectArea.vue";
|
||||||
import {post} from "@/utils/request.ts";
|
import {post} from "@/utils/request.ts";
|
||||||
import Mask from "@/components/common/Mask.vue";
|
import Mask from "@/components/common/Mask.vue";
|
||||||
import psnCertTypes from "@/assets/config/directory/psnCertTypes.json"
|
import psnCertTypes from "@/assets/config/directory/psnCertTypes.json"
|
||||||
import antys from '@/assets/config/directory/antys.json'
|
import antys from '@/assets/config/directory/antys.json'
|
||||||
import {formatDate} from "@/utils/dateUtils.ts";
|
import {formatDate} from "@/utils/dateUtils.ts";
|
||||||
|
import CardDefault from "@/components/registration/CardDefault.vue";
|
||||||
|
import {getKey} from "@/utils/discrotyUtil.ts";
|
||||||
|
import insutypes from "@/assets/config/directory/insutypes.json";
|
||||||
|
|
||||||
|
|
||||||
const ruleFormRef = ref<FormInstance>()
|
const ruleFormRef = ref<FormInstance>()
|
||||||
const id = ref<any>(null)
|
const id = ref<any>(null)
|
||||||
const show = ref<boolean>(false)
|
const show = ref<boolean>(false)
|
||||||
const emit = defineEmits(['close'])
|
const emit = defineEmits(['close'])
|
||||||
|
const antysList = ref<any>(Object.entries(antys)
|
||||||
|
.map(([id, name]) => ({id: Number(id), name}))
|
||||||
|
.sort((a, b) => a.id - b.id))
|
||||||
|
const cardTypeList = ref<any>(Object.entries(psnCertTypes)
|
||||||
|
.map(([id, name]) => ({id: Number(id), name}))
|
||||||
|
.sort((a, b) => a.id - b.id))
|
||||||
|
const showBtn = ref(false)
|
||||||
|
const height = ref<any>(470)
|
||||||
const close = () => {
|
const close = () => {
|
||||||
ruleForm.value = {}
|
ruleForm.value = {}
|
||||||
id.value = ''
|
id.value = ''
|
||||||
show.value = false
|
show.value = false
|
||||||
|
isShowCard.value = true
|
||||||
|
nextTick(() => {
|
||||||
|
cardDefaultRef.value?.close()
|
||||||
|
height.value = 470
|
||||||
|
})
|
||||||
emit('close')
|
emit('close')
|
||||||
}
|
}
|
||||||
|
const showCardBtn = () => {
|
||||||
|
showBtn.value = true
|
||||||
|
}
|
||||||
|
const hide = () => {
|
||||||
|
showBtn.value = false
|
||||||
|
}
|
||||||
|
const isShowCard = ref<any>(true)
|
||||||
|
const tableData = ref<any>([])
|
||||||
|
const socialCard: any = ref({
|
||||||
|
data: null,
|
||||||
|
payInfo: {},
|
||||||
|
lastUse: null
|
||||||
|
})
|
||||||
|
const socialCardUpdate = (e: any) => {
|
||||||
|
isShowCard.value = false
|
||||||
|
if (e) {
|
||||||
|
console.log(e, '123456')
|
||||||
|
isShowCard.value = false
|
||||||
|
ruleForm.value.sex = Number(e.data.baseinfo.gend)
|
||||||
|
ruleForm.value.name = e.data.baseinfo.psn_name
|
||||||
|
ruleForm.value.certType = Number(e.data.baseinfo.psn_cert_type)
|
||||||
|
ruleForm.value.nation = Number(e.data.baseinfo.naty)
|
||||||
|
ruleForm.value.certNo = e.data.baseinfo.certno
|
||||||
|
ruleForm.value.age = Math.floor(e.data.baseinfo.age)
|
||||||
|
tableData.value = e.data.insuinfo
|
||||||
|
// if (ruleForm.value.certNo) {
|
||||||
|
// post('vip/vip/list', {
|
||||||
|
// keyword: ruleForm.value.certNo,
|
||||||
|
// page: 1,
|
||||||
|
// pageSize: 50
|
||||||
|
// }).then((res: any) => {
|
||||||
|
// ruleForm.value.name = res.list[0].name
|
||||||
|
// ruleForm.value.sex = res.list[0].sex
|
||||||
|
// ruleForm.value.phone = res.list[0].phone
|
||||||
|
// ruleForm.value.certType = Number(res.list[0].certType)
|
||||||
|
// ruleForm.value.certNo = res.list[0].certNo
|
||||||
|
// ruleForm.value.memo = res.list[0].remark
|
||||||
|
// ruleForm.value.visitType = 1
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
|
loading.value = false
|
||||||
|
}
|
||||||
|
const loading = ref(false)
|
||||||
|
const changeLoading = (e: any) => {
|
||||||
|
loading.value = e
|
||||||
|
}
|
||||||
|
const cardDefaultRef = ref<any>("")
|
||||||
|
const deleteCard = () => {
|
||||||
|
ElMessageBox.confirm("退出识别", "提示", {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
callback: (action: any) => {
|
||||||
|
if (action == "confirm") {
|
||||||
|
isShowCard.value = true
|
||||||
|
ruleForm.value = {}
|
||||||
|
tableData.value = []
|
||||||
|
nextTick(() => {
|
||||||
|
cardDefaultRef.value?.close()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
// form表单数据
|
// form表单数据
|
||||||
let ruleForm = ref<any>({
|
let ruleForm = ref<any>({
|
||||||
exp: 0,
|
exp: 0,
|
||||||
|
|
@ -194,8 +326,7 @@ let ruleForm = ref<any>({
|
||||||
certType: '',
|
certType: '',
|
||||||
levelId: ''
|
levelId: ''
|
||||||
})
|
})
|
||||||
const antysList= ref<any>(Object.entries(antys).map(([id, name]) => ({id, name})))
|
|
||||||
const cardTypeList = ref<any>(Object.entries(psnCertTypes).map(([id, name]) => ({id, name})))
|
|
||||||
const options1 = [
|
const options1 = [
|
||||||
{
|
{
|
||||||
value: '员工推荐',
|
value: '员工推荐',
|
||||||
|
|
@ -223,7 +354,7 @@ const submitForm = async () => {
|
||||||
if (!formEl) return
|
if (!formEl) return
|
||||||
await formEl.validate((valid: any) => {
|
await formEl.validate((valid: any) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
ruleForm.value.birthday=formatDate(ruleForm.value.birthday)
|
ruleForm.value.birthday = formatDate(ruleForm.value.birthday)
|
||||||
if (ruleForm.value.id) {
|
if (ruleForm.value.id) {
|
||||||
post("vip/vip/update", {vipInfo: ruleForm.value}).then(() => {
|
post("vip/vip/update", {vipInfo: ruleForm.value}).then(() => {
|
||||||
close()
|
close()
|
||||||
|
|
@ -240,26 +371,26 @@ const submitForm = async () => {
|
||||||
const levelName = ref('')
|
const levelName = ref('')
|
||||||
const rules = ref<any>({
|
const rules = ref<any>({
|
||||||
name: [
|
name: [
|
||||||
{ required: true, message: '姓名不能为空', trigger: 'blur' }
|
{required: true, message: '姓名不能为空', trigger: 'blur'}
|
||||||
],
|
],
|
||||||
phone: [
|
phone: [
|
||||||
{ required: true, message: '手机号不能为空', trigger: 'blur' }
|
{required: true, message: '手机号不能为空', trigger: 'blur'}
|
||||||
],
|
],
|
||||||
sex: [
|
sex: [
|
||||||
{ required: true, message: '性别不能为空', trigger: 'change' }
|
{required: true, message: '性别不能为空', trigger: 'blur'}
|
||||||
],
|
],
|
||||||
birthday: [
|
birthday: [
|
||||||
{ required: true, message: '请选择生日', trigger: 'change' }
|
{required: true, message: '请选择生日', trigger: 'change'}
|
||||||
],
|
],
|
||||||
certType: [
|
certType: [
|
||||||
{ required: true, message: '请选择证件类型', trigger: 'change' }
|
{required: true, message: '请选择证件类型', trigger: 'blur'}
|
||||||
],
|
],
|
||||||
certNo: [
|
certNo: [
|
||||||
{ required: true, message: '请输入证件号', trigger: 'blur' }
|
{required: true, message: '请输入证件号', trigger: 'blur'}
|
||||||
],
|
],
|
||||||
age: [
|
age: [
|
||||||
{ required: true, message: '年龄不能为空', trigger: 'blur'},
|
{required: true, message: '年龄不能为空', trigger: 'blur'},
|
||||||
{ type: 'number', message: '年龄必须为数字', trigger: 'blur' }
|
{type: 'number', message: '年龄必须为数字', trigger: 'blur'}
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
const init = (_id: any) => {
|
const init = (_id: any) => {
|
||||||
|
|
@ -273,7 +404,7 @@ const init = (_id: any) => {
|
||||||
post("vip/vip/get", {id: _id}).then((res: any) => {
|
post("vip/vip/get", {id: _id}).then((res: any) => {
|
||||||
ruleForm.value = res
|
ruleForm.value = res
|
||||||
ruleForm.value.area = JSON.parse(ruleForm.value.area)
|
ruleForm.value.area = JSON.parse(ruleForm.value.area)
|
||||||
ruleForm.value.levelId=ruleForm.value.levelId==0?null:ruleForm.value.levelId
|
ruleForm.value.levelId = ruleForm.value.levelId == 0 ? null : ruleForm.value.levelId
|
||||||
if (!res.levelId) return
|
if (!res.levelId) return
|
||||||
post("vip/vipLevel/get", {levelId: res.levelId}).then((res: any) => {
|
post("vip/vipLevel/get", {levelId: res.levelId}).then((res: any) => {
|
||||||
levelName.value = res.name
|
levelName.value = res.name
|
||||||
|
|
@ -287,7 +418,6 @@ const levelList = ref<any>([])
|
||||||
const getLevelConfig = () => {
|
const getLevelConfig = () => {
|
||||||
post("vip/vipLevel/list").then((res: any) => {
|
post("vip/vipLevel/list").then((res: any) => {
|
||||||
levelList.value = res
|
levelList.value = res
|
||||||
console.log('le',levelList.value)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
@ -309,8 +439,66 @@ defineExpose({init})
|
||||||
.bottom {
|
.bottom {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: space-between;
|
||||||
padding: 20px;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding: 0 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnCard {
|
||||||
|
width: 150px;
|
||||||
|
height: 36px;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #4D6DE4;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 15px;
|
||||||
|
color: #4D6DE4;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
.image {
|
||||||
|
width: 20px;
|
||||||
|
height: 17px;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image1 {
|
||||||
|
width: 12px;
|
||||||
|
height: 6px;
|
||||||
|
margin-left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
border: 1px solid #4D6DE4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.closeBtn {
|
||||||
|
width: 150px;
|
||||||
|
height: 36px;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #4D6DE4;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 15px;
|
||||||
|
color: #4D6DE4;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
.image {
|
||||||
|
width: 20px;
|
||||||
|
height: 17px;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
border: 1px solid #4D6DE4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
<el-popover placement="bottom-start" :visible="isVisible" :width="props.width" ref="popoverRef"
|
<el-popover placement="bottom-start" :visible="isVisible" :width="props.width" ref="popoverRef"
|
||||||
@before-enter="beforeShow" @hide="afterShow" popper-class="type-popper">
|
@before-enter="beforeShow" @hide="afterShow" popper-class="type-popper">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-input v-model="keyword" style="width: 100%;height: 100%" @input="changeInput" :disabled="disabled" @click="changeInput"
|
<el-input v-model="keyword" style="width: 100%;height: 100%" @input="changeInput" :disabled="disabled"
|
||||||
|
@click="changeInput"
|
||||||
placeholder="诊断选择" ref="inputRef" @focus="focus" @blur="handleBlur"></el-input>
|
placeholder="诊断选择" ref="inputRef" @focus="focus" @blur="handleBlur"></el-input>
|
||||||
</template>
|
</template>
|
||||||
<div class="container" style="height: 300px">
|
<div class="container" style="height: 300px">
|
||||||
|
|
@ -111,23 +112,25 @@ 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){
|
if (selectList.value && selectList.value.length >= 3) {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: '诊断最多三个',
|
message: '诊断最多三个',
|
||||||
type: 'info',
|
type: 'info',
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (selectList.value.some((item: any) => item.id === row.id)) {
|
|
||||||
|
if (selectList.value.some((item: any) => item.id == row.id)) {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: '诊断已存在',
|
message: '诊断已存在',
|
||||||
type: 'info',
|
type: 'info',
|
||||||
})
|
})
|
||||||
return
|
} else {
|
||||||
|
selectList.value.push(row)
|
||||||
|
nameList.value.push(row.name)
|
||||||
|
keyword.value = nameList.value.join(",") + ","
|
||||||
}
|
}
|
||||||
selectList.value.push(row)
|
|
||||||
nameList.value.push(row.name)
|
|
||||||
keyword.value = nameList.value.join(",") + ","
|
|
||||||
searchList.value = []
|
searchList.value = []
|
||||||
popoverRef.value.hide()
|
popoverRef.value.hide()
|
||||||
}
|
}
|
||||||
|
|
@ -169,12 +172,13 @@ const clear = () => {
|
||||||
nameList.value = []
|
nameList.value = []
|
||||||
keyword.value = ""
|
keyword.value = ""
|
||||||
}
|
}
|
||||||
defineExpose({init,clear})
|
defineExpose({init, clear})
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
:deep(.el-table--small .el-table__cell) {
|
:deep(.el-table--small .el-table__cell) {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
th {
|
th {
|
||||||
background: none !important;
|
background: none !important;
|
||||||
|
|
@ -189,6 +193,7 @@ defineExpose({init,clear})
|
||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
&:nth-child(1) {
|
&:nth-child(1) {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-radius: 8px 8px 0 0;
|
border-radius: 8px 8px 0 0;
|
||||||
|
|
@ -203,6 +208,7 @@ defineExpose({init,clear})
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
|
||||||
td {
|
td {
|
||||||
&:nth-child(1) {
|
&:nth-child(1) {
|
||||||
|
|
||||||
|
|
@ -215,7 +221,6 @@ defineExpose({init,clear})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-radius: 0 0 8px 8px;
|
border-radius: 0 0 8px 8px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ const init = async () => {
|
||||||
list.value = data.list
|
list.value = data.list
|
||||||
if (itemId.value != null) {
|
if (itemId.value != null) {
|
||||||
list.value.forEach((item: any, index: any) => {
|
list.value.forEach((item: any, index: any) => {
|
||||||
if (item.id == itemId.value) {
|
if (item.id == itemId.value&&curStatus.value == 2) {
|
||||||
clickLi(item, false)
|
clickLi(item, false)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<el-dropdown v-if="isShowCard" placement="top-start" @show="showCardBtn" @hide="hide"
|
<el-dropdown v-if="isShowCard" placement="top-start" @show="showCardBtn" @hide="hide"
|
||||||
|
|
@ -384,7 +383,6 @@ const getSectionList = () => {
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const changeLoading = (e: any) => {
|
const changeLoading = (e: any) => {
|
||||||
loading.value = e
|
loading.value = e
|
||||||
console.log(e,'e')
|
|
||||||
}
|
}
|
||||||
defineExpose({init})
|
defineExpose({init})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -107,14 +107,14 @@ const save = () => {
|
||||||
const totalAmount = ref(0)
|
const totalAmount = ref(0)
|
||||||
const medicalHistoryRef = ref()
|
const medicalHistoryRef = ref()
|
||||||
const patientCardRef = ref()
|
const patientCardRef = ref()
|
||||||
const patientRegistration = ref<any>({})
|
const patientRegistration = ref<any>({})// 当前挂号信息
|
||||||
const clickItem = (item: any) => {
|
const clickItem = (item: any) => {
|
||||||
curRegister.value = item
|
|
||||||
if (!item) return
|
if (!item) return
|
||||||
|
curRegister.value = item
|
||||||
registerId.value = item.id
|
registerId.value = item.id
|
||||||
itemId.value = item.id
|
itemId.value = item.id
|
||||||
patientId.value = item.patientInfoId
|
patientId.value = item.patientInfoId
|
||||||
if (item.status == 2) {
|
if (item.status == 1) {
|
||||||
initFormData()
|
initFormData()
|
||||||
}
|
}
|
||||||
if (item.status == 3) {
|
if (item.status == 3) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue