更新
This commit is contained in:
parent
3f2f3db9b0
commit
4ba4d20229
@ -53,3 +53,9 @@ export function reportPrePscription(id){//上报处方
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
export function lookAddress(id){//解密收货人地址
|
||||
return request({
|
||||
url:`/decrypt/order/product/consignee/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ export const formatDoctorTitle=(val)=>{
|
||||
}
|
||||
export const formatPharmacistStatus=(val)=>{
|
||||
//pharmacist_audit_status药师审核状态(0:审核中 1:审核成功 2:审核驳回)
|
||||
let data={1:'审核中', 2:'审核成功', 3:'审核驳回'}
|
||||
let data={0:'审核中', 1:'审核成功', 2:'审核驳回'}
|
||||
if(val || val==0){
|
||||
return data[val]
|
||||
}else{
|
||||
|
||||
@ -51,16 +51,28 @@
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item field="delivery_range_time" label="发货时间范围">
|
||||
<a-range-picker style="width: 300px;" v-model="queryForm.delivery_range_time" />
|
||||
<a-range-picker
|
||||
style="width: 300px"
|
||||
v-model="queryForm.delivery_range_time"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item field="cancel_range_time" label="取消时间范围">
|
||||
<a-range-picker style="width: 300px;" v-model="queryForm.cancel_range_time" />
|
||||
<a-range-picker
|
||||
style="width: 300px"
|
||||
v-model="queryForm.cancel_range_time"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item field="pay_range_time" label="支付时间范围">
|
||||
<a-range-picker style="width: 300px;" v-model="queryForm.pay_range_time" />
|
||||
<a-range-picker
|
||||
style="width: 300px"
|
||||
v-model="queryForm.pay_range_time"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item field="report_range_time" label="上报时间范围">
|
||||
<a-range-picker style="width: 300px;" v-model="queryForm.report_range_time" />
|
||||
<a-range-picker
|
||||
style="width: 300px"
|
||||
v-model="queryForm.report_range_time"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item>
|
||||
@ -109,16 +121,18 @@
|
||||
<div>{{ formatProductStatus(record.order_product_status) }}</div>
|
||||
</template>
|
||||
<template #amount_total="{ record }">
|
||||
{{(record.amount_total) }}元
|
||||
{{ record.amount_total }}元
|
||||
</template>
|
||||
<template #payment_amount_total="{ record }">
|
||||
{{(record.payment_amount_total) }}元
|
||||
{{ record.payment_amount_total }}元
|
||||
</template>
|
||||
<template #pay_time="{ record }">
|
||||
{{ parseTime(record.pay_time) }}
|
||||
</template>
|
||||
<template #patient_name_mask="{ record }">
|
||||
{{record.patient_name_mask}}({{record.patient_sex==1?'男,':'女,'}}{{record.patient_age}}岁)
|
||||
{{ record.patient_name_mask }}({{
|
||||
record.patient_sex == 1 ? '男,' : '女,'
|
||||
}}{{ record.patient_age }}岁)
|
||||
</template>
|
||||
<template #action="{ record }">
|
||||
<a-space>
|
||||
@ -137,18 +151,20 @@
|
||||
fullscreen
|
||||
:title="modalTitle"
|
||||
title-align="start"
|
||||
:auto-label-width="true"
|
||||
:footer="false"
|
||||
@close="() => {$refs.modalFormRef.resetFields();modalForm.doctor_id = null;}"
|
||||
@close="
|
||||
() => {
|
||||
$refs.modalFormRef.resetFields();
|
||||
modalForm.doctor_id = null;
|
||||
}
|
||||
"
|
||||
>
|
||||
<div class="titlebox">
|
||||
<div class="bar"></div>
|
||||
<div class="name">订单信息</div>
|
||||
</div>
|
||||
<a-form
|
||||
:model="modalForm"
|
||||
ref="modalFormRef"
|
||||
:auto-label-width="true"
|
||||
>
|
||||
<a-form :model="modalForm" ref="modalFormRef" :auto-label-width="true">
|
||||
<a-row :gutter="24" style="margin-top: 35px">
|
||||
<a-col :span="12">
|
||||
<a-form-item field="inquiry_no" label="订单编号:">
|
||||
@ -158,7 +174,7 @@
|
||||
<a-col :span="12">
|
||||
<a-form-item field="order_product_status" label="处方编号:">
|
||||
<span v-if="modalForm.order_prescription">{{
|
||||
modalForm.order_prescription.order_prescription_id
|
||||
modalForm.order_prescription.prescription_code
|
||||
}}</span>
|
||||
<span v-else>暂无</span>
|
||||
</a-form-item>
|
||||
@ -172,7 +188,9 @@
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item field="pay_time" label="支付时间:">
|
||||
<span v-if="parseTime(modalForm.pay_time)">{{parseTime(modalForm.pay_time)}}</span>
|
||||
<span v-if="parseTime(modalForm.pay_time)">{{
|
||||
parseTime(modalForm.pay_time)
|
||||
}}</span>
|
||||
<span v-else>-</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@ -197,14 +215,18 @@
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item field="order_product_status" label="订单状态:">
|
||||
<span>{{formatProductStatus(modalForm.order_product_status)}}</span>
|
||||
<span>{{
|
||||
formatProductStatus(modalForm.order_product_status)
|
||||
}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="modalForm.cancel_reason">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="department_custom_name" label="备 注 :">
|
||||
<span>{{formatProductCancelReason(modalForm.cancel_reason) }}</span>
|
||||
<span>{{
|
||||
formatProductCancelReason(modalForm.cancel_reason)
|
||||
}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -220,7 +242,9 @@
|
||||
>
|
||||
<a-col :span="12">
|
||||
<a-form-item field="inquiry_refund_no" label="退款编号:">
|
||||
<span>{{ modalForm.order_product_refund.product_refund_no}}</span>
|
||||
<span>{{
|
||||
modalForm.order_product_refund.product_refund_no
|
||||
}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
@ -238,14 +262,18 @@
|
||||
<a-col :span="12">
|
||||
<a-form-item field="escrow_trade_no" label="退款状态:">
|
||||
<span>{{
|
||||
formatRefundStatus(modalForm.order_product_refund.product_refund_status)}}</span>
|
||||
formatRefundStatus(
|
||||
modalForm.order_product_refund.product_refund_status
|
||||
)
|
||||
}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="modalForm.order_product_refund">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="inquiry_refund_no" label="退款时间:">
|
||||
<span>{{ modalForm.order_product_refund.success_time }}</span>
|
||||
<span v-if="parseTime(modalForm.order_product_refund.success_time)">{{ modalForm.order_product_refund.success_time }}</span>
|
||||
<span v-else>-</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -295,34 +323,38 @@
|
||||
<div class="titlebox">
|
||||
<div class="bar"></div>
|
||||
<div class="name">地址信息</div>
|
||||
<a-space
|
||||
style="
|
||||
margin-right: 8px;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
"
|
||||
>
|
||||
<a-button type="primary" status="warning" @click="toggleAddress"
|
||||
>{{lookAllAddress?'隐藏完整地址信息':'查看完整地址信息'}}</a-button
|
||||
>
|
||||
</a-space>
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px">
|
||||
<a-col :span="12">
|
||||
<a-form-item field="inquiry_no" label="收货人姓名:">
|
||||
<span v-if="!lookAllAddress"> {{ modalForm.consignee_name_mask}}</span>
|
||||
<span v-else>{{AddressData.consignee_name}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item field="inquiry_no" label="收货人电话:">
|
||||
<span v-if="!lookAllAddress"> {{modalForm.consignee_tel_mask}}</span>
|
||||
<span v-else>{{AddressData.consignee_tel}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" :hide-label="true">
|
||||
<div class="doctorInfo">
|
||||
<div class="infobox">
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<div class="nameDesc">收货人姓名:</div>
|
||||
<div class="desc">
|
||||
{{ modalForm.consignee_name_mask }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="nameDesc">收货人电话:</div>
|
||||
<div class="desc">
|
||||
{{ modalForm.consignee_tel_mask }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="nameDesc">收货人地址:</div>
|
||||
<div class="desc">
|
||||
{{ modalForm.address_mask }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a-form-item field="inquiry_no" label="收货人地址:">
|
||||
<span v-if="!lookAllAddress"> {{modalForm.address_mask }}</span>
|
||||
<span v-else>{{AddressData.address}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -331,35 +363,45 @@
|
||||
<div class="bar"></div>
|
||||
<div class="name">物流信息</div>
|
||||
</div>
|
||||
<a-row
|
||||
:gutter="24"
|
||||
style="margin-top: 35px"
|
||||
|
||||
>
|
||||
<a-row :gutter="24" style="margin-top: 35px">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" :hide-label="true">
|
||||
<div class="timeline" v-if="modalForm.order_product_logistics">
|
||||
<a-timeline>
|
||||
<a-timeline-item :label="item.time" :dotColor="formatColor(item.status)" v-for="item in cur_express">
|
||||
<a-timeline-item
|
||||
:label="item.time"
|
||||
:dotColor="formatColor(item.status)"
|
||||
v-for="item in cur_express"
|
||||
>
|
||||
{{ item.context }}
|
||||
</a-timeline-item>
|
||||
</a-timeline>
|
||||
<a-button @click="toggleExpand" class="expand">{{isExpand?"收起":"展开"}}</a-button>
|
||||
<a-button @click="toggleExpand" class="expand">{{
|
||||
isExpand ? '收起' : '展开'
|
||||
}}</a-button>
|
||||
</div>
|
||||
<div v-else>暂无物流信息</div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
|
||||
<a-divider />
|
||||
<div class="titlebox" v-if="modalForm.order_prescription">
|
||||
<div class="bar"></div>
|
||||
<div class="name">处方信息</div>
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px;" v-if="modalForm.order_prescription">
|
||||
<a-row
|
||||
:gutter="24"
|
||||
style="margin-top: 35px"
|
||||
v-if="modalForm.order_prescription"
|
||||
>
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" :hide-label="true">
|
||||
<tableUnit :pagination="false" :columns="chufang_columns" :data="chufang_data"></tableUnit>
|
||||
<tableUnit
|
||||
:pagination="false"
|
||||
:columns="chufang_columns"
|
||||
:data="chufang_data"
|
||||
></tableUnit>
|
||||
<!-- <prescription :data="modalForm.order_prescription"></prescription> -->
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@ -368,23 +410,54 @@
|
||||
<div class="titlebox" v-if="modalForm.user_doctor">
|
||||
<div class="bar"></div>
|
||||
<div class="name">医生信息</div>
|
||||
<a-space style="margin-right: 8px;flex:1;display: flex;justify-content: flex-end;" >
|
||||
<a-button type="primary" @click="openDcotor">查看医生完整信息</a-button>
|
||||
<a-space
|
||||
style="
|
||||
margin-right: 8px;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
"
|
||||
>
|
||||
<a-button type="primary" @click="openDcotor"
|
||||
>查看医生完整信息</a-button
|
||||
>
|
||||
</a-space>
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px;" >
|
||||
<a-row :gutter="24" style="margin-top: 35px">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" :hide-label="true">
|
||||
<div class="doctorInfo" v-if="modalForm.user_doctor">
|
||||
<a-space size="large">
|
||||
<a-image width="80" height="80" class="headImg" :src="modalForm.user_doctor.avatar" v-if="modalForm.user_doctor.avatar">
|
||||
<a-image
|
||||
width="80"
|
||||
height="80"
|
||||
class="headImg"
|
||||
:src="modalForm.user_doctor.avatar"
|
||||
v-if="modalForm.user_doctor.avatar"
|
||||
>
|
||||
</a-image>
|
||||
<a-image width="80" height="80" class="headImg" src="https://img.applets.igandanyiyuan.com/basic/file/doctor_avatar.png" v-else>
|
||||
<a-image
|
||||
width="80"
|
||||
height="80"
|
||||
class="headImg"
|
||||
src="https://img.applets.igandanyiyuan.com/basic/file/doctor_avatar.png"
|
||||
v-else
|
||||
>
|
||||
</a-image>
|
||||
</a-space>
|
||||
<div class="infobox">
|
||||
<div class="name">{{modalForm.user_doctor.user_name}} {{formatDoctorTitle(modalForm.user_doctor.doctor_title)}}</div>
|
||||
<div class="hospital">{{modalForm.user_doctor.hospital.hospital_name}} {{modalForm.user_doctor.department_custom_name}}</div>
|
||||
<div class="name">
|
||||
{{ modalForm.user_doctor.user_name }} {{
|
||||
formatDoctorTitle(modalForm.user_doctor.doctor_title)
|
||||
}}
|
||||
</div>
|
||||
<div class="hospital">
|
||||
{{
|
||||
modalForm.user_doctor.hospital.hospital_name
|
||||
}} {{
|
||||
modalForm.user_doctor.department_custom_name
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="doctorInfo" v-else>暂未分配到医生</div>
|
||||
@ -395,29 +468,37 @@
|
||||
<div class="titlebox">
|
||||
<div class="bar"></div>
|
||||
<div class="name">就诊人信息</div>
|
||||
<a-space style="margin-right: 8px;flex:1;display: flex;justify-content: flex-end;">
|
||||
<a-button type="primary" status="warning" @click="openPatient">查看就诊人完整信息</a-button>
|
||||
<a-space
|
||||
style="
|
||||
margin-right: 8px;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
"
|
||||
>
|
||||
<a-button type="primary" status="warning" @click="openPatient"
|
||||
>查看就诊人完整信息</a-button
|
||||
>
|
||||
</a-space>
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px;" v-if="modalForm.user_doctor">
|
||||
<a-row :gutter="24" style="margin-top: 35px" v-if="modalForm.order_inquiry_case">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" :hide-label="true" >
|
||||
<div class="doctorInfo">
|
||||
<div class="infobox">
|
||||
<div class="row">
|
||||
<div class="nameDesc">就诊人姓名:</div>
|
||||
<div class="desc">{{modalForm.order_inquiry_case.name}} ({{modalForm.order_inquiry_case.sex==1?'男':'女'}} {{modalForm.order_inquiry_case.age}}岁)</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="nameDesc">确诊疾病:</div>
|
||||
<div class="desc">{{modalForm.order_inquiry_case.disease_class_name}} {{modalForm.user_doctor.department_custom_name}}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="nameDesc">病情描述:</div>
|
||||
<div class="desc">{{modalForm.order_inquiry_case.disease_desc}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a-form-item label="就诊人姓名:">
|
||||
<span>{{modalForm.order_inquiry_case.name }} ({{modalForm.order_inquiry_case.sex == 1 ? '男' : '女'}} {{ modalForm.order_inquiry_case.age }}岁)</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="modalForm.order_inquiry_case">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="inquiry_no" label="病情描述:">
|
||||
<span>{{modalForm.order_inquiry_case.disease_desc}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="modalForm.order_inquiry_case">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="inquiry_no" label="确诊疾病:">
|
||||
<span>{{modalForm.order_inquiry_case.disease_class_name}} {{modalForm.user_doctor.department_custom_name}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -425,23 +506,31 @@
|
||||
<div class="titlebox">
|
||||
<div class="bar"></div>
|
||||
<div class="name">处方上报状态</div>
|
||||
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" >
|
||||
<div class="doctorInfo">
|
||||
<div class="infobox">
|
||||
<div class="row">
|
||||
<div class="nameDesc">上报状态:</div>
|
||||
<div class="desc">{{fromatReportStatus(modalForm.report_pre_status)}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a-form-item field="inquiry_no" label="上报状态:">
|
||||
<span> {{ fromatReportStatus(modalForm.report_pre_status) }}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" >
|
||||
<a-col :span="24">
|
||||
<a-form-item field="inquiry_no" label="上报时间:">
|
||||
<span> {{ fromatReportStatus(modalForm.report_pre_status) }}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="modalForm.report_pre_fail_reason">
|
||||
<a-col :span="24" >
|
||||
<a-form-item field="inquiry_no" label="上报失败原因:">
|
||||
<span> {{ modalForm.report_pre_fail_reason}}</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-divider />
|
||||
</a-form>
|
||||
|
||||
<div class="titlebox">
|
||||
<div class="bar"></div>
|
||||
<div class="name">操作</div>
|
||||
@ -449,17 +538,42 @@
|
||||
<a-row :gutter="24" style="margin-top: 35px">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" no-style>
|
||||
<a-space style="margin-right: 8px" v-if="modalForm.report_pre_status==2">
|
||||
<a-button type="primary" @click="() =>{isVisible=true;order_product_id=modalForm.order_product_id;}"
|
||||
<a-space
|
||||
style="margin-right: 8px"
|
||||
v-if="modalForm.report_pre_status == 2"
|
||||
>
|
||||
<a-button
|
||||
type="primary"
|
||||
@click="
|
||||
() => {
|
||||
isVisible = true;
|
||||
order_product_id = modalForm.order_product_id;
|
||||
}
|
||||
"
|
||||
>上报处方平台</a-button
|
||||
>
|
||||
</a-space>
|
||||
<a-space style="margin-right: 8px" v-if="modalForm.order_product_status==2 || (modalForm.order_product_refund && modalForm.order_product_refund.product_refund_status==4) || (modalForm.order_product_refund && modalForm.order_product_refund.product_refund_status==5)">
|
||||
<a-space
|
||||
style="margin-right: 8px"
|
||||
v-if="
|
||||
modalForm.order_product_status == 2 ||
|
||||
(modalForm.order_product_refund &&
|
||||
modalForm.order_product_refund.product_refund_status == 4) ||
|
||||
(modalForm.order_product_refund &&
|
||||
modalForm.order_product_refund.product_refund_status == 5) ||
|
||||
modalForm.report_pre_status != 2
|
||||
"
|
||||
>
|
||||
<a-button
|
||||
type="primary"
|
||||
v-has="'admin:sysProductList:cancel'"
|
||||
status="danger"
|
||||
@click="()=>{okVisible=true;cur_product_id=modalForm.order_product_id;}"
|
||||
@click="
|
||||
() => {
|
||||
okVisible = true;
|
||||
cur_product_id = modalForm.order_product_id;
|
||||
}
|
||||
"
|
||||
>取消药品订单</a-button
|
||||
>
|
||||
</a-space>
|
||||
@ -468,11 +582,41 @@
|
||||
</a-row>
|
||||
</a-modal>
|
||||
<!-- 医生详情弹框 -->
|
||||
<doctorModal :doctorVisible="doctorVisible" :doctor_id="doctor_id" @doctorVisibleChange="() => {doctorVisible = false;doctor_id='';}"></doctorModal>
|
||||
<doctorModal
|
||||
:doctorVisible="doctorVisible"
|
||||
:doctor_id="doctor_id"
|
||||
@doctorVisibleChange="
|
||||
() => {
|
||||
doctorVisible = false;
|
||||
doctor_id = '';
|
||||
}
|
||||
"
|
||||
></doctorModal>
|
||||
<!-- 患者详情弹窗 -->
|
||||
<patientModal :patientVisible="patientVisible" :data="patientData" @patientVisibleChange="() => {patientVisible = false;}"></patientModal>
|
||||
<confirmModal :okVisible="okVisible" :api="cancelProduct" :dealType="'order_inquiry_id'" :id="cur_product_id" @closeChange="closeChange"></confirmModal>
|
||||
<isOkModal :isVisible="isVisible" :api="reportPrePscription" :title="'确定上报处方吗?'" :dealType="'order_product_id'" :id="order_product_id" @closeChangeOk="closeChangeOk"></isOkModal>
|
||||
<patientModal
|
||||
:patientVisible="patientVisible"
|
||||
:data="patientData"
|
||||
@patientVisibleChange="
|
||||
() => {
|
||||
patientVisible = false;
|
||||
}
|
||||
"
|
||||
></patientModal>
|
||||
<confirmModal
|
||||
:okVisible="okVisible"
|
||||
:api="cancelProduct"
|
||||
:dealType="'order_inquiry_id'"
|
||||
:id="cur_product_id"
|
||||
@closeChange="closeChange"
|
||||
></confirmModal>
|
||||
<isOkModal
|
||||
:isVisible="isVisible"
|
||||
:api="reportPrePscription"
|
||||
:title="'确定上报处方吗?'"
|
||||
:dealType="'order_product_id'"
|
||||
:id="order_product_id"
|
||||
@closeChangeOk="closeChangeOk"
|
||||
></isOkModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -482,12 +626,23 @@ import {
|
||||
ref,
|
||||
getCurrentInstance,
|
||||
onMounted,
|
||||
nextTick,
|
||||
watch,
|
||||
} from 'vue';
|
||||
import { productList, getProductDetail,cancelProduct,reportPrePscription} from '@/api/order/list';
|
||||
import {
|
||||
productList,
|
||||
getProductDetail,
|
||||
cancelProduct,
|
||||
reportPrePscription,
|
||||
lookAddress
|
||||
} from '@/api/order/list';
|
||||
import { parseTime } from '@/utils/parseTime';
|
||||
import {formatDoctorTitle,fromatReportStatus,formatPrescriptionStatus,formatPharmacistStatus,formatProductCancelReason} from "@/utils/format"
|
||||
import {
|
||||
formatDoctorTitle,
|
||||
fromatReportStatus,
|
||||
formatPrescriptionStatus,
|
||||
formatPharmacistStatus,
|
||||
formatProductCancelReason,
|
||||
} from '@/utils/format';
|
||||
const IMG_URL = import.meta.env.VITE_IMG_URL;
|
||||
// Akiraka 20230210 删除数据
|
||||
const deleteData = ref([]);
|
||||
@ -499,13 +654,14 @@ const cur_product_id=ref('');
|
||||
const doctorVisible = ref(false);
|
||||
const doctor_id = ref('');
|
||||
const isVisible = ref(false);
|
||||
const order_product_id=ref("");
|
||||
const order_product_id = ref('');
|
||||
let express = []; //物流信息;
|
||||
const cur_express = ref([]);
|
||||
const isExpand = ref(false);
|
||||
const patientVisible = ref(false);
|
||||
const patientData=reactive({
|
||||
});
|
||||
const patientData = reactive({});
|
||||
const lookAllAddress=ref(false);
|
||||
const AddressData=reactive({});
|
||||
const chufang_columns = reactive([
|
||||
{
|
||||
title: '处方编号',
|
||||
@ -530,10 +686,10 @@ const chufang_columns=reactive([
|
||||
{
|
||||
title: '处方链接',
|
||||
dataIndex: 'url',
|
||||
slotName:"url"
|
||||
}
|
||||
slotName: 'url',
|
||||
},
|
||||
]);
|
||||
let chufang_data=reactive([])
|
||||
let chufang_data = reactive([]);
|
||||
watch(
|
||||
() => deleteVisible.value,
|
||||
(value) => {
|
||||
@ -562,39 +718,51 @@ const modalForm = reactive({
|
||||
order_prescription: null,
|
||||
});
|
||||
|
||||
watch(()=>queryForm.delivery_range_time,(value)=>{
|
||||
watch(
|
||||
() => queryForm.delivery_range_time,
|
||||
(value) => {
|
||||
if (value) {
|
||||
let[startTime,endTime]=value
|
||||
queryForm.delivery_time=startTime+"&"+endTime;
|
||||
let [startTime, endTime] = value;
|
||||
queryForm.delivery_time = startTime + '&' + endTime;
|
||||
} else {
|
||||
queryForm.delivery_time=''
|
||||
};
|
||||
console.log(queryForm.finish_time)
|
||||
})
|
||||
watch(()=>queryForm.pay_range_time,(value)=>{
|
||||
queryForm.delivery_time = '';
|
||||
}
|
||||
console.log(queryForm.finish_time);
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => queryForm.pay_range_time,
|
||||
(value) => {
|
||||
if (value) {
|
||||
let[startTime,endTime]=value
|
||||
queryForm.pay_time=startTime+"&"+endTime;
|
||||
let [startTime, endTime] = value;
|
||||
queryForm.pay_time = startTime + '&' + endTime;
|
||||
} else {
|
||||
queryForm.pay_time=''
|
||||
};
|
||||
})
|
||||
watch(()=>queryForm.cancel_range_time,(value)=>{
|
||||
queryForm.pay_time = '';
|
||||
}
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => queryForm.cancel_range_time,
|
||||
(value) => {
|
||||
if (value) {
|
||||
let[startTime,endTime]=value
|
||||
queryForm.cancel_time=startTime+"&"+endTime;
|
||||
let [startTime, endTime] = value;
|
||||
queryForm.cancel_time = startTime + '&' + endTime;
|
||||
} else {
|
||||
queryForm.cancel_time=''
|
||||
};
|
||||
})
|
||||
watch(()=>queryForm.report_range_time,(value)=>{
|
||||
queryForm.cancel_time = '';
|
||||
}
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => queryForm.report_range_time,
|
||||
(value) => {
|
||||
if (value) {
|
||||
let[startTime,endTime]=value
|
||||
queryForm.report_pre_time=startTime+"&"+endTime;
|
||||
let [startTime, endTime] = value;
|
||||
queryForm.report_pre_time = startTime + '&' + endTime;
|
||||
} else {
|
||||
queryForm.report_pre_time=''
|
||||
};
|
||||
})
|
||||
queryForm.report_pre_time = '';
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// Modal
|
||||
const modalVisible = ref(false);
|
||||
@ -607,28 +775,39 @@ let batchList = [];
|
||||
const columns = [
|
||||
{ title: '排序', dataIndex: 'post_id', slotName: 'post_id', width: 90 },
|
||||
{ title: '订单编号', dataIndex: 'order_product_no', width: 200 },
|
||||
{ title: '处方编号', dataIndex: 'order_prescription_id',width:200 },
|
||||
{ title: '处方编号', dataIndex: 'prescription_code', slotName: 'prescription_code', width: 200 },
|
||||
{ title: '医生姓名', dataIndex: 'doctor_name', width: 100 },
|
||||
{ title: '就诊人', dataIndex: 'patient_name_mask',slotName:'patient_name_mask',width:200 },
|
||||
{
|
||||
title: '就诊人',
|
||||
dataIndex: 'patient_name_mask',
|
||||
slotName: 'patient_name_mask',
|
||||
width: 200,
|
||||
},
|
||||
{ title: '就诊人联系电话', dataIndex: 'patient_mobile', width: 130 },
|
||||
{ title: '订单金额', dataIndex: 'amount_total', slotName: 'amount_total' },
|
||||
{ title: '实付金额', dataIndex: 'payment_amount_total',slotName:'payment_amount_total' },
|
||||
{
|
||||
title: '实付金额',
|
||||
dataIndex: 'payment_amount_total',
|
||||
slotName: 'payment_amount_total',
|
||||
},
|
||||
{ title: '支付方式', dataIndex: 'pay_channel', slotName: 'pay_channel' },
|
||||
{
|
||||
title: '订单状态',
|
||||
dataIndex: 'order_product_status',
|
||||
slotName: 'order_product_status',
|
||||
},
|
||||
{ title: '支付时间', dataIndex: 'pay_time', slotName: 'pay_time',width:200 },
|
||||
{ title: '操作', slotName: 'action',fixed: "right", width: 100 },
|
||||
{
|
||||
title: '支付时间',
|
||||
dataIndex: 'pay_time',
|
||||
slotName: 'pay_time',
|
||||
width: 200,
|
||||
},
|
||||
{ title: '操作', slotName: 'action', fixed: 'right', width: 100 },
|
||||
];
|
||||
|
||||
// Table Data
|
||||
const tableData = ref([]);
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 分页改变
|
||||
* @param {Number} [page]
|
||||
@ -678,34 +857,50 @@ const handleQuery = async () => {
|
||||
if (code == 200) {
|
||||
Object.assign(modalForm, data);
|
||||
let result = data.order_prescription;
|
||||
express=data.order_product_logistics?JSON.parse(data.order_product_logistics.logistics_content):[];
|
||||
express = data.order_product_logistics
|
||||
? JSON.parse(data.order_product_logistics.logistics_content)
|
||||
: [];
|
||||
cur_express.value = express.length > 1 && express.slice(0, 1);
|
||||
let data_arr = [{}];
|
||||
if (result) {
|
||||
chufang_columns.forEach((item) => {
|
||||
if(item.dataIndex=="prescription_status"){
|
||||
data_arr[0][item.dataIndex]=formatPrescriptionStatus(result[item.dataIndex])
|
||||
}else if(item.dataIndex=="pharmacist_audit_status"){
|
||||
data_arr[0][item.dataIndex]=formatPharmacistStatus(result[item.dataIndex])
|
||||
}else if(item.dataIndex=="url"){
|
||||
data_arr[0][item.dataIndex]=IMG_URL+'/applet/prescription/'+result.order_prescription_id+'.pdf'
|
||||
}else if(item.dataIndex=="pharmacist_fail_reason"){
|
||||
data_arr[0][item.dataIndex]=result[item.dataIndex]?result[item.dataIndex]:'暂无'
|
||||
}else{
|
||||
if (item.dataIndex == 'prescription_status') {
|
||||
data_arr[0][item.dataIndex] = formatPrescriptionStatus(
|
||||
result[item.dataIndex]
|
||||
);
|
||||
} else if (item.dataIndex == 'pharmacist_audit_status') {
|
||||
data_arr[0][item.dataIndex] = formatPharmacistStatus(
|
||||
result[item.dataIndex]
|
||||
);
|
||||
} else if (item.dataIndex == 'url') {
|
||||
data_arr[0][item.dataIndex] =
|
||||
IMG_URL +
|
||||
'/applet/prescription/' +
|
||||
result.order_prescription_id +
|
||||
'.pdf';
|
||||
} else if (item.dataIndex == 'pharmacist_fail_reason') {
|
||||
data_arr[0][item.dataIndex] = result[item.dataIndex]
|
||||
? result[item.dataIndex]
|
||||
: '暂无';
|
||||
} else {
|
||||
data_arr[0][item.dataIndex] = result[item.dataIndex];
|
||||
}
|
||||
});
|
||||
|
||||
chufang_data = data_arr;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
//获取订单详情
|
||||
const handleDetail = (record) => {
|
||||
const handleDetail = async(record) => {
|
||||
modalVisible.value = true;
|
||||
modalTitle.value = '药品订单详情';
|
||||
getDetail(record.order_product_id)
|
||||
getDetail(record.order_product_id);
|
||||
const{data,code}= await lookAddress(record.order_product_id);
|
||||
|
||||
if(code==200){
|
||||
Object.assign(AddressData,data)
|
||||
}
|
||||
|
||||
};
|
||||
const formatProductStatus = (val) => {
|
||||
@ -741,39 +936,41 @@ const formatRefundStatus = (val) => {
|
||||
}
|
||||
};
|
||||
const formatColor = (value) => {
|
||||
if(value=="签收"){
|
||||
return "#00B42A"
|
||||
if (value == '签收') {
|
||||
return '#00B42A';
|
||||
} else {
|
||||
return "var(--color-fill-4)"
|
||||
return 'var(--color-fill-4)';
|
||||
}
|
||||
|
||||
};
|
||||
const toggleExpand = () => {
|
||||
isExpand.value = !isExpand.value;
|
||||
if (isExpand.value) {
|
||||
cur_express.value=express.slice(0,-1)
|
||||
cur_express.value = express.slice(0, -1);
|
||||
} else {
|
||||
cur_express.value=express.slice(0,1)
|
||||
cur_express.value = express.slice(0, 1);
|
||||
}
|
||||
};
|
||||
const toggleAddress=()=>{
|
||||
lookAllAddress.value=!lookAllAddress.value;
|
||||
}
|
||||
//关闭确认框
|
||||
const closeChange = (data) => {
|
||||
cur_product_id.value="";
|
||||
cur_product_id.value = '';
|
||||
okVisible.value = false;
|
||||
if (data) {
|
||||
modalVisible.value = false;
|
||||
getProductInfo({ ...pager, ...queryForm });
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
//关闭上传处方平台弹框
|
||||
const closeChangeOk = (data) => {
|
||||
order_product_id.value="";
|
||||
order_product_id.value = '';
|
||||
isVisible.value = false;
|
||||
if (data) {
|
||||
getDetail(modalForm.order_product_id)
|
||||
}
|
||||
getDetail(modalForm.order_product_id);
|
||||
}
|
||||
};
|
||||
|
||||
// 重置搜索
|
||||
const handleResetQuery = () => {
|
||||
proxy.$refs.queryFormRef.resetFields();
|
||||
@ -783,13 +980,14 @@ const handleResetQuery = () => {
|
||||
const openDcotor = () => {
|
||||
doctor_id.value = modalForm.doctor_id;
|
||||
doctorVisible.value = true;
|
||||
}
|
||||
};
|
||||
const openPatient = () => {
|
||||
Object.assign(patientData, modalForm.order_inquiry_case);
|
||||
patientVisible.value = true;
|
||||
}
|
||||
};
|
||||
onMounted(() => {
|
||||
getProductInfo(pager);
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -208,7 +208,8 @@
|
||||
<a-row :gutter="24" v-if="modalForm.order_inquiry_refund">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="inquiry_refund_no" label="退款时间:">
|
||||
<span>{{modalForm.order_inquiry_refund.success_time}}</span>
|
||||
<span v-if="parseTime(modalForm.order_inquiry_refund.success_time)">{{modalForm.order_inquiry_refund.success_time}}</span>
|
||||
<span v-else>-</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -254,14 +255,35 @@
|
||||
<a-button type="primary" status="warning" @click="openPatient">查看就诊人完整信息</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px;" v-if="modalForm.user_doctor">
|
||||
<a-row :gutter="24" style="margin-top: 35px" v-if="modalForm.order_inquiry_case">
|
||||
<a-col :span="24">
|
||||
<a-form-item label="就诊人姓名:">
|
||||
<span>{{modalForm.patient_name}} ({{modalForm.patient_sex==1?'男':'女'}} {{modalForm.patient_age}}岁)</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="modalForm.order_inquiry_case">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="inquiry_no" label="确诊疾病:">
|
||||
<span> <span>{{modalForm.order_inquiry_case.disease_class_name}} {{modalForm.user_doctor.department_custom_name}}</span></span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24" v-if="modalForm.order_inquiry_case.disease_desc">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="inquiry_no" label="病情描述:">
|
||||
{{modalForm.order_inquiry_case.disease_desc}}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<!-- <a-row :gutter="24" style="margin-top: 35px;" v-if="modalForm.user_doctor">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="license_cert" :hide-label="true" >
|
||||
<div class="doctorInfo">
|
||||
<div class="infobox">
|
||||
<div class="row">
|
||||
<div class="nameDesc">就诊人姓名:</div>
|
||||
<div class="desc">{{modalForm.patient_name_mask}} ({{modalForm.patient_sex==1?'男':'女'}} {{modalForm.patient_age}}岁)</div>
|
||||
<div class="desc">{{modalForm.patient_name}} ({{modalForm.patient_sex==1?'男':'女'}} {{modalForm.patient_age}}岁)</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="nameDesc">确诊疾病:</div>
|
||||
@ -275,7 +297,7 @@
|
||||
</div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-row> -->
|
||||
</a-form>
|
||||
<a-divider v-if="modalForm.user_doctor"/>
|
||||
<div class="titlebox" v-if="modalForm.order_evaluation">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user