diff --git a/src/views/medince/sys-medince/index.vue b/src/views/medince/sys-medince/index.vue
index 683b480..5ecdc01 100644
--- a/src/views/medince/sys-medince/index.vue
+++ b/src/views/medince/sys-medince/index.vue
@@ -54,10 +54,10 @@
@@ -322,9 +322,9 @@
type
}
}
- const {code,data}=await exportFamily(fromData);
+ const {code,data}=await exportProduct(fromData);
if(code==200){
- downloadFile(data,'就诊人列表');
+ downloadFile(data,'平台药品列表');
}
proxy.$loading.hide();
}
diff --git a/src/views/order/medince-list/index.vue b/src/views/order/medince-list/index.vue
index 8cbbeca..17bdc5e 100644
--- a/src/views/order/medince-list/index.vue
+++ b/src/views/order/medince-list/index.vue
@@ -36,6 +36,79 @@
@press-enter="handleQuery"
/>
+
评价信息
@@ -469,6 +504,7 @@ watch(() => deleteVisible.value ,(value) => {
const { proxy } = getCurrentInstance();
const currentPage = ref(1);
+const diagnose_images=ref([]);
// Pager
const pager = {
total: 0,
@@ -670,6 +706,10 @@ const handleQuery = async () => {
const caseInfo= await inquiryCase(data.order_inquiry_case.inquiry_case_id);
Object.assign(patientData,caseInfo.data);
+ };
+ if(data.order_inquiry_case && data.order_inquiry_case.diagnose_images
+){
+ diagnose_images.value=data.order_inquiry_case.diagnose_images.split(',');
}
if(result){
Object.assign(comment,{
diff --git a/src/views/patient/family-list/index.vue b/src/views/patient/family-list/index.vue
index 744051e..7f3241c 100644
--- a/src/views/patient/family-list/index.vue
+++ b/src/views/patient/family-list/index.vue
@@ -176,6 +176,8 @@
{ title: '账号电话', dataIndex: 'mobile_mask',width:200 },
{ title: '与账号关系', dataIndex: 'relation', slotName: 'relation',width: 150 },
// { title: '启用状态', dataIndex: 'status', slotName: 'status' },
+ { title: '绑定时间', dataIndex: 'created_at', width: 180 },
+
{ title: '操作', slotName: 'action', fixed: "right", width: 180 },
];
From 794a8b35ca033716807d5ae0176530ff43ecac2a Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Fri, 24 May 2024 14:53:57 +0800
Subject: [PATCH 05/58] =?UTF-8?q?5..24=E6=9B=B4=E6=96=B0=E5=B9=B3=E5=8F=B0?=
=?UTF-8?q?=E8=8D=AF=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/medince/list.js | 4 ++--
src/views/medince/sys-medince/index.vue | 31 ++++++++++++++++++++++---
2 files changed, 30 insertions(+), 5 deletions(-)
diff --git a/src/api/medince/list.js b/src/api/medince/list.js
index f257835..aab19de 100644
--- a/src/api/medince/list.js
+++ b/src/api/medince/list.js
@@ -14,11 +14,11 @@ export function getMedinceDetail(id){//商品详情-平台
method: 'get'
})
};
- export function getSysMedinceList(params){//获取商品列表-分页-系统
+ export function getSysMedinceList(data){//获取商品列表-分页-系统
return request({
url:'/admin/product/page',
method: 'post',
- params
+ data
})
};
diff --git a/src/views/medince/sys-medince/index.vue b/src/views/medince/sys-medince/index.vue
index 5ecdc01..1b8477a 100644
--- a/src/views/medince/sys-medince/index.vue
+++ b/src/views/medince/sys-medince/index.vue
@@ -53,7 +53,7 @@
- 新增
+ 新增 1
选择数据导出
当前搜索全部导出
@@ -115,6 +115,7 @@
const deleteVisible = ref(false)
// Akiraka 20230210 监听删除事件
const okVisible = ref(false);
+ const lock= ref(false);
watch(() => deleteVisible.value, (value) => {
if (value == false) {
@@ -135,7 +136,7 @@
};
// form
const queryForm = reactive({
-
+ order:null
});
const modalForm = reactive({
user:{},
@@ -169,7 +170,30 @@
{ title: '批准文号', dataIndex: 'license_number',width:200 },
{ title: '生产厂家', dataIndex: 'manufacturer',width:200 },
{ title: '药店编码', dataIndex: 'product_pharmacy_code',width:100 },
- { title: '库存', dataIndex: 'stock',width:100 },
+ { title: '库存', dataIndex: 'stock',width:100,sortable: {
+ sortDirections: ['ascend', 'descend',''],
+ sorter:false
+ // sorter:function(a,b,extra){
+
+ // console.log(extra);
+ // if(extra.direction=='ascend'){
+ // queryForm.order={
+ // stock:'asc'
+ // }
+ // }else if(extra.direction=='descend'){
+ // queryForm.order={
+ // stock:'desc'
+ // }
+ // }else{
+ // queryForm.order=null
+ // }
+ // if(!lock.value){
+ // getMedinceInfo({ ...pager, ...queryForm });
+ // lock.value=true;
+ // }
+ // return true
+ // }
+ }, },
{ title: '购买上限', dataIndex: 'prescription_num',width:100 },
{ title: '状态', dataIndex: 'product_status',slotName:'product_status',width:100 },
// { title: '启用状态', dataIndex: 'status', slotName: 'status' },
@@ -265,6 +289,7 @@
// 获取患者信息
const getMedinceInfo = async (params = {}) => {
const { data, code, message } = await getSysMedinceList(params);
+ lock.value=false
if (code == 200) {
tableData.value = data.data;
Object.assign(pager, { total: data.total, page: data.page, page_size: data.page_size });
From 03860e0f4cdc7da94d81e6ced74a7d43c1c1bcd1 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Wed, 29 May 2024 10:58:05 +0800
Subject: [PATCH 06/58] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=8C=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components.d.ts | 1 +
src/api/order/list.js | 20 +-
src/components/confirmModal.vue | 5 +-
src/components/medinceOrderModal.vue | 790 ++++++++++++
src/utils/format.js | 32 +-
src/views/order/service-list/index.vue | 1595 ++++++++++++++++++++++++
6 files changed, 2437 insertions(+), 6 deletions(-)
create mode 100644 src/components/medinceOrderModal.vue
create mode 100644 src/views/order/service-list/index.vue
diff --git a/components.d.ts b/components.d.ts
index 514bb9b..ae332bb 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -23,6 +23,7 @@ declare module '@vue/runtime-core' {
Loading: typeof import('./src/components/loading/loading.vue')['default']
MedinceDetailModal: typeof import('./src/components/medinceDetailModal.vue')['default']
MedinceModal: typeof import('./src/components/medinceModal.vue')['default']
+ MedinceOrderModal: typeof import('./src/components/medinceOrderModal.vue')['default']
NumberModal: typeof import('./src/components/numberModal.vue')['default']
PatientModal: typeof import('./src/components/patientModal.vue')['default']
Prescription: typeof import('./src/components/prescription.vue')['default']
diff --git a/src/api/order/list.js b/src/api/order/list.js
index 9cb8008..f7d9ed4 100644
--- a/src/api/order/list.js
+++ b/src/api/order/list.js
@@ -88,4 +88,22 @@ export function exportProduct(data){//导出药品订单
})
}
-
+export function getServiceList(data){//服务列表
+ return request({
+ url:'/admin/order/service/page',
+ method: 'post',
+ data
+ })
+}
+export function serviceDetail(id){//服务包详情
+ return request({
+ url:`/admin/order/service/${id}`,
+ method: 'get'
+ })
+}
+export function serviceRightDetail(id){//服务包权益详情
+ return request({
+ url:`/admin/order/service/detail/${id}`,
+ method: 'get'
+ })
+}
\ No newline at end of file
diff --git a/src/components/confirmModal.vue b/src/components/confirmModal.vue
index 8e9639b..310c728 100644
--- a/src/components/confirmModal.vue
+++ b/src/components/confirmModal.vue
@@ -38,8 +38,7 @@ const props = defineProps({
default:'',
},
payment_amount_total:{
- type:Number,
- default:''
+ type:Number
},
dealType:{
type: String,
@@ -62,7 +61,7 @@ const handleClose = () => {
// alert(flag)
}
watch(()=>props.payment_amount_total,(newVal,oldVal)=>{
- form.refund_amount=newVal;
+ form.refund_amount=Number(newVal);
},{immediate:true})
// Akiraka 20230210 删除数据校验
const rules = reactive({
diff --git a/src/components/medinceOrderModal.vue b/src/components/medinceOrderModal.vue
new file mode 100644
index 0000000..fff7653
--- /dev/null
+++ b/src/components/medinceOrderModal.vue
@@ -0,0 +1,790 @@
+
+
+
+
+
+
+
+ {{ modalForm.order_product_no }}
+
+
+
+
+ {{
+ modalForm.order_prescription.prescription_code
+ }}
+ 暂无
+
+
+
+
+
+
+ {{ modalForm.created_at }}
+
+
+
+
+ {{
+ parseTime(modalForm.pay_time)
+ }}
+ -
+
+
+
+
+
+
+ {{ modalForm.amount_total }}元
+
+
+
+
+ {{ modalForm.logistics_fee }}元
+
+
+
+
+
+
+ {{ modalForm.payment_amount_total }}元
+
+
+
+
+ {{
+ formatProductStatus(modalForm.order_product_status)
+ }}
+
+
+
+
+
+
+ {{
+ formatProductCancelReason(modalForm.cancel_reason)
+ }}
+
+
+
+
+
+
+
+
+ {{ modalForm.order_product_refund.product_refund_no }}
+
+
+
+
+ {{ modalForm.order_product_refund.refund_id }}
+
+
+
+
+
+
+ {{ modalForm.order_product_refund.refund_total }}元
+
+
+
+
+ {{
+ formatRefundStatus(
+ modalForm.order_product_refund.product_refund_status
+ )
+ }}
+
+
+
+
+
+
+ {{ modalForm.order_product_refund.success_time }}
+ -
+
+
+
+
+
+
+ {{ modalForm.order_product_refund.refund_reason }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
地址信息
+
+ {{
+ lookAllAddress ? '隐藏完整地址信息' : '查看完整地址信息'
+ }}
+
+
+
+
+
+
+ {{ modalForm.consignee_name_mask }}
+ {{ AddressData.consignee_name }}
+
+
+
+
+
+ {{ modalForm.consignee_tel_mask }}
+ {{ AddressData.consignee_tel }}
+
+
+
+
+
+
+ {{ modalForm.address_mask }}
+ {{ AddressData.address }}
+
+
+
+
+
+
+ 物流单号:{{ modalForm.order_product_logistics.logistics_no }}
+
+
+
+
+
+
+
+ {{ item.context }}
+
+
+
{{
+ isExpand ? '收起' : '展开'
+ }}
+
+ 暂无物流信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
医生信息
+
+ 查看医生完整信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ modalForm.user_doctor.user_name }} {{
+ formatDoctorTitle(modalForm.user_doctor.doctor_title)
+ }}
+
+
+ {{
+ modalForm.user_doctor.hospital.hospital_name
+ }} {{
+ modalForm.user_doctor.department_custom_name
+ }}
+
+
+
+ 暂未分配到医生
+
+
+
+
+
+
+
就诊人信息
+
+ 查看就诊人完整信息
+
+
+
+
+
+ {{ modalForm.order_inquiry_case.name }} ({{
+ modalForm.order_inquiry_case.sex == 1 ? '男' : '女'
+ }} {{ modalForm.order_inquiry_case.age }}岁)
+
+
+
+
+
+
+ {{ modalForm.order_inquiry_case.disease_desc }}
+
+
+
+
+
+
+ {{
+ modalForm.order_inquiry_case.disease_class_name
+ }} {{
+ modalForm.user_doctor.department_custom_name
+ }}
+
+
+
+
+
+
+
+
+ {{ fromatReportStatus(modalForm.report_pre_status) }}
+
+
+
+
+
+
+
+ {{ modalForm.report_pre_time }}
+ -
+
+
+
+
+
+
+ {{ modalForm.report_pre_fail_reason }}
+
+
+
+
+
+
+
+
+
+
+
+ {
+ isVisible = true;
+ order_product_id = modalForm.order_product_id;
+ }
+ "
+ >上报处方平台
+
+
+
+ {
+ okVisible = true;
+ cur_product_id = modalForm.order_product_id;
+ }
+ "
+ >取消药品订单
+
+
+
+
+
+
+ {
+ doctorVisible = false;
+ doctor_id = '';
+ }
+ "
+ >
+
+ {
+ patientVisible = false;
+ }
+ "
+ >
+
+
+
+
+
+
diff --git a/src/utils/format.js b/src/utils/format.js
index bba579e..a465f18 100644
--- a/src/utils/format.js
+++ b/src/utils/format.js
@@ -52,6 +52,15 @@ export const formatDoctorTitle=(val)=>{
return ''
}
}
+ export const formatServiceCancelReason=(val)=>{
+ //1医生未接受服务 2:主动取消 4:客服取消 5:支付超时
+ let data={1:'医生未接受服务', 2:'主动取消',4:'客服取消',5:'支付超时'}
+ if(val){
+ return data[val]
+ }else{
+ return ''
+ }
+ }
export const fromatReportStatus=(val)=>{
//上报处方平台状态(0:未上报 1:已上报 2:上报失败))
let data={0:'未上报', 1:'已上报', 2:'上报失败'}
@@ -89,6 +98,16 @@ export const formatRelation=(val)=>{
return ''
}
};
+ export const formatMedinceStatus=(val)=>{
+ // 1:待支付 2:待发货 3:已发货 4:已签收 5:已取消
+ let data={1:'待支付', 2:'待发货', 3:'已发货', 4:'已签收',5:'已取消'}
+ if(val){
+ return data[val]
+ }else{
+ return ''
+ }
+ };
+
export const formatMultipoint=(val)=>{
//医生多点执业认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败)
let data={0:'未认证',1:'认证通过', 2:'审核中', 3:'认证失败'}
@@ -101,7 +120,7 @@ export const formatRelation=(val)=>{
export const formatMode=(val)=>{
//1:图文 2:视频 3:语音 4:电话 5:会员
- let data={1:'图文',2:'视频', 3:'语音', 4:'电话',5:'会员',6:'疑难会诊',7:'附赠沟通'}
+ let data={1:'图文',2:'视频', 3:'语音', 4:'电话',5:'会员',6:'疑难会诊',7:'附赠沟通',8:'健康包',9:'服务包'}
if(val){
return data[val]
}else{
@@ -135,4 +154,13 @@ export const formatRelation=(val)=>{
}else{
return ''
}
- };
\ No newline at end of file
+ };
+ export const formatCouponStatus=(val)=>{
+ //-1:'注册即发放',0:'未使用', 1:'已使用',2:'已过期'
+ let data={'-1':'注册即发放',0:'未使用',1:'已使用', 2:'已过期'}
+ if(val || val==0){
+ return data[val]
+ }else{
+ return ''
+ }
+ };
diff --git a/src/views/order/service-list/index.vue b/src/views/order/service-list/index.vue
new file mode 100644
index 0000000..3728664
--- /dev/null
+++ b/src/views/order/service-list/index.vue
@@ -0,0 +1,1595 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 待支付
+ 未开始
+ 服务中
+ 服务完成
+ 服务取消
+
+
+
+
+
+ 健康包服务
+ 随访包服务
+
+
+
+
+
+
+ 未支付
+ 已支付
+ 支付中
+ 支付失败
+ 支付超时
+ 支付关闭
+ 已撤销
+
+
+
+
+
+ 无退款
+ 申请退款
+ 退款中
+ 退款成功
+ 拒绝退款
+ 退款关闭
+ 退款异常
+ 部分退款
+
+
+
+
+
+ 医生未接受服务
+ 主动取消
+ 客服取消
+ 支付超时
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+ 选择数据导出
+
+ 当前搜索全部导出
+ 全部导出
+
+
+
+
+
{
+ deleteData = selection;
+ }
+ "
+ @page-change="handlePageChange"
+ @page-size-change="handlepage_sizeChange"
+ >
+
+ {{ rowIndex + 1 + (pager.page - 1) * pager.page_size }}
+
+
+ 小程序支付
+ 微信扫码
+ 模拟支付
+
+
+
+ 待支付
+ 未开始
+ 服务中
+ 服务完成
+ 服务取消
+
+
+ {{ record.amount_total }}元
+
+
+ {{ record.payment_amount_total }}元
+
+
+
+ {{ record.patient_name }}({{
+ record.patient_sex == 1 ? '男,' : '女,'
+ }}{{ record.patient_age }}岁)
+
+
+
+
+ {{ record.order_service_type == 1 ? '健康包服务' : '随访包服务' }}
+
+
+ {{ formatMode(record.inquiry_mode) }}
+
+
+ {{ parseTime(record.pay_time) }}
+
+
+
+
+ 详情
+
+
+
+
+
+
+
{
+ $refs.modalFormRef.resetFields();
+ modalForm.doctor_id = null;
+ }
+ "
+ >
+
+
+
+
+
+ {{ modalForm.order_service_no }}
+
+
+
+
+ {{
+ formatServiceStatus(modalForm.order_service_status)
+ }}
+
+
+
+
+
+
+ {{ modalForm.created_at }}
+
+
+
+
+ {{
+ parseTime(modalForm.pay_time)
+ }}
+ -
+
+
+
+
+
+
+ {{ modalForm.amount_total }}元
+
+
+
+
+ {{ modalForm.order_inquiry_coupon.coupon_name }}({{
+ modalForm.order_inquiry_coupon.coupon_use_price
+ }}元)
+ 无
+
+
+
+
+
+
+ {{ modalForm.payment_amount_total }}元
+
+
+
+
+ 专家问诊
+
+
+
+
+
+
+ {{
+ modalForm.order_service_type == 1 ? '健康包服务' : '随访包服务'
+ }}
+
+
+
+
+ {{ parseTime(modalForm.reception_time) }}
+
+
+
+
+
+
+ {{ parseTime(modalForm.finish_time) }}
+
+
+
+
+ {{ parseTime(modalForm.finish_time) }}
+
+
+
+
+
+
+ {{ parseTime(modalForm.cancel_time) }}
+
+
+
+
+
+
+ {{
+ formatServiceCancelReason(modalForm.cancel_reason)
+ }}
+
+
+
+
+
+
+
+
+ {{
+ modalForm.order_service_package_refund.inquiry_refund_no
+ }}
+
+
+
+
+ {{ modalForm.escrow_trade_no }}
+
+
+
+
+
+
+ {{
+ modalForm.order_service_package_refund.refund_total
+ }}元
+
+
+
+
+ {{
+ formatRefundStatus(
+ modalForm.order_service_package_refund.inquiry_refund_status
+ )
+ }}
+
+
+
+
+
+
+ {{ modalForm.order_service_package_refund.success_time }}
+ -
+
+
+
+
+
+
+ {{
+ modalForm.order_service_package_refund.refund_reason
+ }}
+
+
+
+
+
+
+
+
+ 接诊后生效
+ {{rightDetail.start_time}}——{{ rightDetail.finish_time }}
+
+
+
+
+
+
+ {{(rightDetail.order_service_package_detail.service_period)/30
+}}个月内{{rightDetail.order_service_package_detail.service_count==0?'不限':(rightDetail.order_service_package_detail.service_count)}}次问诊,30盒肝爽颗粒(步长)、价值5元的全品类药品优惠劵2张、价值100元的肝胆商城优惠劵1张
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ rowIndex + 1 }}
+
+
+
+ {{ formatInquiryStatus(record.inquiry_status) }}
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ rowIndex + 1 }}
+
+
+
+ {{ formatMedinceStatus(record.order_product_status) }}
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{record.coupon.coupon_name}}
+
+
+ {{formatCouponStatus(record.user_coupon_status)}}
+
+
+
+ 肝胆商城后台
+
+
+
+
+
+
+
+
+
+
医生信息
+
+ 查看医生完整信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ modalForm.user_doctor.user_name }} {{
+ formatDoctorTitle(modalForm.user_doctor.doctor_title)
+ }}
+
+
+ {{
+ modalForm.user_doctor.hospital.hospital_name
+ }} {{
+ modalForm.user_doctor.department_custom_name
+ }}
+
+
+
+ 暂未分配到医生
+
+
+
+
+
+
+
就诊人信息
+
+ 查看就诊人完整信息
+
+
+
+
+
+ {{ modalForm.patient_name }} ({{
+ modalForm.patient_sex == 1 ? '男' : '女'
+ }} {{ modalForm.patient_age }}岁)
+
+
+
+
+
+
+
+ {{
+ modalForm.order_service_package_case.disease_class_name
+ }} {{
+ modalForm.user_doctor.department_custom_name
+ }}
+
+
+
+
+
+
+ {{ modalForm.order_service_package_case.disease_desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ okVisible = true;
+ cur_inruiry_id = modalForm.order_service_id;
+ }
+ "
+ >取消订单
+
+
+
+
+
+
+
+
{
+ doctorVisible = false;
+ doctor_id = '';
+ }
+ "
+ >
+
+
+
{
+ patientVisible = false;
+ }
+ "
+ >
+
+
+
+
+
+
{
+ recordVisible = false;
+ }
+ "
+ >
+
+
+
{$refs.modalInquriyFormRef.resetFields(); modalInquiryForm.doctor_id = null;}">
+
+
+
+
+
+ {{ modalInquiryForm.inquiry_no }}
+
+
+
+
+ {{ formatInquiryStatus(modalInquiryForm.inquiry_status) }}
+
+
+
+
+
+
+ {{modalInquiryForm.created_at}}
+
+
+
+
+ {{parseTime(modalInquiryForm.pay_time)}}
+ -
+
+
+
+
+
+
+ {{modalInquiryForm.amount_total}}元
+
+
+
+
+ {{modalInquiryForm.order_inquiry_coupon.coupon_name}}({{modalForm.order_inquiry_coupon.coupon_use_price}}元)
+ 无
+
+
+
+
+
+
+ {{modalInquiryForm.payment_amount_total}}元
+
+
+
+
+ {{formatInquiryType(modalInquiryForm.inquiry_type)}}
+
+
+
+
+
+
+ {{formatMode(modalInquiryForm.inquiry_mode)}}
+
+
+
+
+ {{parseTime(modalInquiryForm.reception_time)}}
+
+
+
+
+
+
+ {{parseTime(modalInquiryForm.complete_time)}}
+
+
+
+
+ {{parseTime(modalInquiryForm.finish_time)}}
+
+
+
+
+
+
+
+ {{parseTime(modalInquiryForm.cancel_time)}}
+
+
+
+
+
+
+ {{ formatOrderCancelReason(modalInquiryForm.cancel_reason)}}
+
+
+
+
+
+
+
+
+ {{modalInquiryForm.order_inquiry_refund.inquiry_refund_no}}
+
+
+
+
+ {{modalInquiryForm.escrow_trade_no}}
+
+
+
+
+
+
+
+ {{modalInquiryForm.order_inquiry_refund.refund_total}}元
+
+
+
+
+ {{formatRefundStatus(modalInquiryForm.order_inquiry_refund.inquiry_refund_status)}}
+
+
+
+
+
+
+
+ {{modalForm.order_inquiry_refund.success_time}}
+ -
+
+
+
+
+
+
+ {{modalInquiryForm.order_inquiry_refund.refund_reason}}
+
+
+
+
+
+
+
医生信息
+
+ 查看医生完整信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{modalInquiryForm.user_doctor.user_name}} {{formatDoctorTitle(modalInquiryForm.user_doctor.doctor_title)}}
+
{{modalInquiryForm.user_doctor.hospital.hospital_name}} {{modalInquiryForm.user_doctor.department_custom_name}}
+
+
+ 暂未分配到医生
+
+
+
+
+
+
+
就诊人信息
+
+ 查看就诊人完整信息
+
+
+
+
+
+ {{modalInquiryForm.patient_name}} ({{modalInquiryForm.patient_sex==1?'男':'女'}} {{modalInquiryForm.patient_age}}岁)
+
+
+
+
+
+
+ {{modalInquiryForm.order_inquiry_case.disease_class_name}} {{modalInquiryForm.user_doctor.department_custom_name}}
+
+
+
+
+
+
+ {{modalInquiryForm.order_inquiry_case.disease_desc}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ comment.content }}
+
+
+
+
+
+
+
+
+
+
+
+ 问诊记录
+
+
+ {okVisible=true;cur_inruiry_id=modalInquiryForm.order_inquiry_id;}">取消问诊
+
+
+
+
+
+
+
+
+
+
{medinceVisible=false}">
+
+
+
+
+
+
From adaf02fd2fa338eca2fcfde2dd3dc550b5ab74cd Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Mon, 3 Jun 2024 08:59:43 +0800
Subject: [PATCH 07/58] =?UTF-8?q?=E5=8A=A0=E6=9C=8D=E5=8A=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components.d.ts | 2 ++
src/views/inquiry/inquiry-list/index.vue | 2 ++
2 files changed, 4 insertions(+)
diff --git a/components.d.ts b/components.d.ts
index ae332bb..fa7d8b7 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -16,6 +16,8 @@ declare module '@vue/runtime-core' {
ConfirmModal: typeof import('./src/components/confirmModal.vue')['default']
DeleteModal: typeof import('./src/components/DeleteModal.vue')['default']
DoctorModal: typeof import('./src/components/doctorModal.vue')['default']
+ ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
+ ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
FamilyModal: typeof import('./src/components/familyModal.vue')['default']
InquiryDetailModal: typeof import('./src/components/inquiryDetailModal.vue')['default']
InquiryDetailMoneyModal: typeof import('./src/components/inquiryDetailMoneyModal.vue')['default']
diff --git a/src/views/inquiry/inquiry-list/index.vue b/src/views/inquiry/inquiry-list/index.vue
index b59978b..a29bc69 100644
--- a/src/views/inquiry/inquiry-list/index.vue
+++ b/src/views/inquiry/inquiry-list/index.vue
@@ -29,6 +29,8 @@
会员
疑难会诊
附赠沟通
+ 健康包服务
+ 服务包服务
From 4c36596e7cca2a0867671048cc69d6e34a69734b Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Mon, 3 Jun 2024 16:56:05 +0800
Subject: [PATCH 08/58] =?UTF-8?q?=E9=80=80=E6=AC=BE=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components.d.ts | 2 +
src/api/coupon/list.js | 51 +++
src/api/doctor/list.js | 2 +-
src/api/order/list.js | 10 +-
src/components/isOkCouponModal.vue | 56 +++
src/utils/format.js | 29 ++
src/views/coupon/coupon-list/index.vue | 573 +++++++++++++++++++++++++
src/views/order/order-list/index.vue | 5 +-
src/views/order/service-list/index.vue | 34 +-
9 files changed, 746 insertions(+), 16 deletions(-)
create mode 100644 src/api/coupon/list.js
create mode 100644 src/components/isOkCouponModal.vue
create mode 100644 src/views/coupon/coupon-list/index.vue
diff --git a/components.d.ts b/components.d.ts
index fa7d8b7..6dcfec9 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -14,6 +14,7 @@ declare module '@vue/runtime-core' {
AddSysconfigModal: typeof import('./src/components/addSysconfigModal.vue')['default']
ChatRecord: typeof import('./src/components/chatRecord.vue')['default']
ConfirmModal: typeof import('./src/components/confirmModal.vue')['default']
+ copy: typeof import('./src/components/isOkModal copy.vue')['default']
DeleteModal: typeof import('./src/components/DeleteModal.vue')['default']
DoctorModal: typeof import('./src/components/doctorModal.vue')['default']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
@@ -21,6 +22,7 @@ declare module '@vue/runtime-core' {
FamilyModal: typeof import('./src/components/familyModal.vue')['default']
InquiryDetailModal: typeof import('./src/components/inquiryDetailModal.vue')['default']
InquiryDetailMoneyModal: typeof import('./src/components/inquiryDetailMoneyModal.vue')['default']
+ IsOkCouponModal: typeof import('./src/components/isOkCouponModal.vue')['default']
IsOkModal: typeof import('./src/components/isOkModal.vue')['default']
Loading: typeof import('./src/components/loading/loading.vue')['default']
MedinceDetailModal: typeof import('./src/components/medinceDetailModal.vue')['default']
diff --git a/src/api/coupon/list.js b/src/api/coupon/list.js
new file mode 100644
index 0000000..3494119
--- /dev/null
+++ b/src/api/coupon/list.js
@@ -0,0 +1,51 @@
+import request from '../../utils/request'
+export function getSystemCouponList(data){
+ return request({
+ url:'/admin/coupon/system/page',
+ method: 'post',
+ data
+ })
+}
+export function getCouponDetail(id){
+ return request({
+ url:'/admin/coupon/system/'+id,
+ method: 'get'
+ })
+ }
+ export function addCoupon(data){//系统-新增系统优惠卷
+ return request({
+ url:'/admin/coupon/system/'+id,
+ method: 'post',
+ data
+ })
+ }
+ export function updateCoupon(id,data){//系统-修改系统优惠卷
+ return request({
+ url:'/admin/coupon/system/'+id,
+ method: 'put',
+ data
+ })
+ }
+ export function updateCouponStatus(id,data){//系统-修改系统优惠卷
+ return request({
+ url:'/admin/coupon/system/status/'+id,
+ method: 'put',
+ data
+ })
+ }
+ export function getUserCouponList(data){
+ return request({
+ url:'/admin/coupon/user/page',
+ method: 'post',
+ data
+ })
+ }
+ export function giveCoupon(id,data){//系统-发放系统优惠卷
+ return request({
+ url:'/admin/coupon/system/grant/'+id,
+ method: 'post',
+ data
+ })
+ }
+
+
\ No newline at end of file
diff --git a/src/api/doctor/list.js b/src/api/doctor/list.js
index 62d5279..b417794 100644
--- a/src/api/doctor/list.js
+++ b/src/api/doctor/list.js
@@ -81,7 +81,7 @@ export function getDoctorDetail(id){
}
export function areaList(params){ //获取银行列表
return request({
- url:'/basic/area/list',
+ url:'/admin/basic/area',
method: 'get',
params
})
diff --git a/src/api/order/list.js b/src/api/order/list.js
index f7d9ed4..5dd1870 100644
--- a/src/api/order/list.js
+++ b/src/api/order/list.js
@@ -106,4 +106,12 @@ export function serviceRightDetail(id){//服务包权益详情
url:`/admin/order/service/detail/${id}`,
method: 'get'
})
-}
\ No newline at end of file
+}
+
+export function cancelService(id,data){//取消服务包-取消订单
+ return request({
+ url:`/admin/order/service/cancel/${id}`,
+ method: 'put',
+ data
+ })
+}
diff --git a/src/components/isOkCouponModal.vue b/src/components/isOkCouponModal.vue
new file mode 100644
index 0000000..da4c369
--- /dev/null
+++ b/src/components/isOkCouponModal.vue
@@ -0,0 +1,56 @@
+
+
+
+ 提示
+
+ {{ title }}
+
+
+
+
+
\ No newline at end of file
diff --git a/src/utils/format.js b/src/utils/format.js
index a465f18..2d5d669 100644
--- a/src/utils/format.js
+++ b/src/utils/format.js
@@ -164,3 +164,32 @@ export const formatRelation=(val)=>{
return ''
}
};
+
+ export const formatCouponType=(val)=>{
+ //1:无门槛 2:满减 3:数量
+ let data={1:'无门槛', 2:'满减',3:'数量'}
+ if(val ){
+ return data[val]
+ }else{
+ return ''
+ }
+ };
+ export const formatCouponObject=(val)=>{ //发放对象
+ //1:全部用户 2:新注册用户 3:会员 4:近期消费 5:近期购药 6:存量用户 7:健康包服务用户
+ let data={1:'全部用户', 2:'新注册用户',3:'会员',4:'近期消费',5:'近期购药',6:'存量用户',7:'健康包服务用户'}
+ if(val){
+ return data[val]
+ }else{
+ return ''
+ }
+ };
+
+ export const formatCouponRange=(val)=>{ //适用范围
+ //1:全场通用 2:问诊 3:按品牌适用 4:按类别适用 5:单品使用 6:全品类药品
+ let data={1:'全场通用', 2:'问诊',3:'按品牌适用',4:'按类别适用',5:'单品使用',6:'全品类药品'}
+ if(val){
+ return data[val]
+ }else{
+ return ''
+ }
+ };
\ No newline at end of file
diff --git a/src/views/coupon/coupon-list/index.vue b/src/views/coupon/coupon-list/index.vue
new file mode 100644
index 0000000..9cf9dff
--- /dev/null
+++ b/src/views/coupon/coupon-list/index.vue
@@ -0,0 +1,573 @@
+
+
+
+
+
+
+
+
+
+
+
+ 正常
+ 强制失效
+ 结束
+ 删除
+
+
+
+
+
+ 全部用户
+ 新注册用户
+ 会员
+ 近期消费
+ 近期购药
+ 存量用户
+ 健康包服务用户
+
+
+
+
+
+ 全场通用
+ 问诊
+ 按品牌适用
+ 按类别适用
+ 单品使用
+ 全品类药品
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+ 选择数据导出
+ 当前搜索全部导出
+ 全部导出
+
+
+
+
+
{deleteData = selection;console.log(selection)}"
+ @page-change="handlePageChange" @page-size-change="handlepage_sizeChange">
+
+ {{(rowIndex+1)+(pager.page-1)*pager.page_size}}
+
+
+ 小程序
+
+
+ {{formatCouponObject(record.distribution_object)}}
+
+
+ {{formatCouponRange(record.application_scope)}}
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
{$refs.modalFormRef.resetFields(); modalForm.coupon_id = null;}">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{modalForm.user_name}}
+
+
+
+
+
+
+
{{modalForm.mobile}}
+
+
+
+
+
+
+
+
+
+
+ 禁用
+ 正常
+ 删除
+
+
+
+
+ {{modalForm.created_at}}
+ -
+
+
+
+
+
+
+
+ {{modalForm.disable_reason}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.consignee_name}}
+
+
+
+
+ {{ item.consignee_tel}}
+
+
+
+
+
+
+ {{ item.province}} {{item.city}}{{item.county}}{{item.address}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 禁用
+ 启用
+
+
+
+
+
+
+
+
+
+
{familyVisible=false}">
+
+
+
+ 提示
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/order/order-list/index.vue b/src/views/order/order-list/index.vue
index fe4f14a..56e8010 100644
--- a/src/views/order/order-list/index.vue
+++ b/src/views/order/order-list/index.vue
@@ -768,7 +768,10 @@ const openInquiryRecord=()=>{
const handelCloseChange=(data)=>{
cur_inruiry_id.value="";
okVisible.value=false;
- console.log(data)
+ console.log(data);
+ if(cancleType.value=="service"){
+ modalForm.status=5;
+ }
if(data){
modalVisible.value=false;
getOrderInfo({ ...pager, ...queryForm });
diff --git a/src/views/order/service-list/index.vue b/src/views/order/service-list/index.vue
index 3728664..ad0f462 100644
--- a/src/views/order/service-list/index.vue
+++ b/src/views/order/service-list/index.vue
@@ -710,20 +710,15 @@
{
- okVisible = true;
- cur_inruiry_id = modalForm.order_service_id;
- }
- "
+ @click="cancleOrder('service')"
>取消订单
@@ -758,7 +753,7 @@
问诊记录
- {okVisible=true;cur_inruiry_id=modalInquiryForm.order_inquiry_id;}">取消问诊
+ 取消问诊
@@ -1066,6 +1061,7 @@ import {
inquiryCase,
getOrderDetail,
getProductDetail,
+ cancelService
} from '@/api/order/list';
import { parseTime } from '@/utils/parseTime';
import {
@@ -1082,7 +1078,7 @@ import { downloadFile } from '@/utils/downloadFile';
const deleteData = ref([]);
// Akiraka 20230210 删除对话框
const deleteVisible = ref(false);
-
+const cancleType=ref('service');
const doctorVisible = ref(false);
const okVisible = ref(false);
const cur_inruiry_id = ref('');
@@ -1297,7 +1293,17 @@ const juancolumns = [
// Table Data
const tableData = ref([]);
-
+const cancleOrder=(type)=>{
+ cancleType.value=type;
+ if(type=="inquiry"){
+ okVisible.value=true;
+ cur_inruiry_id.value=modalInquiryForm.order_inquiry_id;
+ }else{
+ okVisible.value = true;
+ cur_inruiry_id.value= modalForm.order_service_id;
+ }
+
+}
/**
* 分页改变
* @param {Number} [page]
@@ -1495,7 +1501,9 @@ const openInquiryRecord = () => {
const handelCloseChange = (data) => {
cur_inruiry_id.value = '';
okVisible.value = false;
- console.log(data);
+ if(cancleType.value=="service"){
+ modalForm.order_service_status=5;
+ }
if (data) {
modalVisible.value = false;
getOrderInfo({ ...pager, ...queryForm });
From 72ce2b0f0756c4fecb34bd9e0b5946517e946bb2 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Mon, 3 Jun 2024 17:12:31 +0800
Subject: [PATCH 09/58] =?UTF-8?q?=E9=80=80=E6=AC=BE=E6=8E=A5=E5=8F=A3?=
=?UTF-8?q?=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/medinceOrderModal.vue | 2 ++
src/views/order/medince-list/index.vue | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/components/medinceOrderModal.vue b/src/components/medinceOrderModal.vue
index fff7653..267f7e4 100644
--- a/src/components/medinceOrderModal.vue
+++ b/src/components/medinceOrderModal.vue
@@ -502,6 +502,8 @@
:okVisible="okVisible"
:api="cancelProduct"
:dealType="'order_inquiry_id'"
+ :payment_amount_total="modalForm.payment_amount_total
+"
:id="cur_product_id"
@closeChange="closeChange"
>
diff --git a/src/views/order/medince-list/index.vue b/src/views/order/medince-list/index.vue
index 17bdc5e..b2a2117 100644
--- a/src/views/order/medince-list/index.vue
+++ b/src/views/order/medince-list/index.vue
@@ -773,6 +773,7 @@
:okVisible="okVisible"
:api="cancelProduct"
:dealType="'order_inquiry_id'"
+ :payment_amount_total="modalForm.payment_amount_total"
:id="cur_product_id"
@closeChange="closeChange"
>
From 23a4074709a6ec1818aa65cd869f5c26eb1d42d4 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Mon, 3 Jun 2024 17:17:14 +0800
Subject: [PATCH 10/58] =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=AE=A2=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/order/service-list/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/order/service-list/index.vue b/src/views/order/service-list/index.vue
index ad0f462..e8ec6d1 100644
--- a/src/views/order/service-list/index.vue
+++ b/src/views/order/service-list/index.vue
@@ -1039,7 +1039,7 @@
-
{medinceVisible=false}">
+
{medinceVisible=false; modalMedinceForm.refund_status=5}">
From 20ad78b4e83250979a92227151be1a6a500c46b4 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Tue, 4 Jun 2024 08:54:39 +0800
Subject: [PATCH 11/58] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=98=9F=E5=88=97?=
=?UTF-8?q?=E7=8A=B6=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components.d.ts | 1 +
src/components/couponDetail.vue | 300 +++++++++++++++++++++++++
src/components/inquiryDetailModal.vue | 1 -
src/views/coupon/coupon-list/index.vue | 142 +-----------
src/views/order/service-list/index.vue | 24 ++
5 files changed, 337 insertions(+), 131 deletions(-)
create mode 100644 src/components/couponDetail.vue
diff --git a/components.d.ts b/components.d.ts
index 6dcfec9..ef2e1cc 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' {
ChatRecord: typeof import('./src/components/chatRecord.vue')['default']
ConfirmModal: typeof import('./src/components/confirmModal.vue')['default']
copy: typeof import('./src/components/isOkModal copy.vue')['default']
+ CouponDetail: typeof import('./src/components/couponDetail.vue')['default']
DeleteModal: typeof import('./src/components/DeleteModal.vue')['default']
DoctorModal: typeof import('./src/components/doctorModal.vue')['default']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
diff --git a/src/components/couponDetail.vue b/src/components/couponDetail.vue
new file mode 100644
index 0000000..2ca6829
--- /dev/null
+++ b/src/components/couponDetail.vue
@@ -0,0 +1,300 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 小程序
+
+
+
+
+
+
+
+
+
+ 全场通用
+ 问诊
+ 按品牌适用
+ 按类别适用
+ 单品使用
+ 全品类药品
+
+
+
+
+
+
+
+ 无门槛
+ 满减
+ 数量
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 绝对时效
+ 相对时效
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ isVisible = true;
+ modalForm.coupon_id='';
+ }
+ "
+ >添加
+
+
+
+ {
+ okVisible = true;
+ modalForm.coupon_id='';
+ }
+ "
+ >保存
+
+
+
+
+
+
+ {
+ doctorVisible = false;
+ doctor_id = '';
+ }
+ "
+ >
+
+ {
+ patientVisible = false;
+ }
+ "
+ >
+
+
+
\ No newline at end of file
diff --git a/src/components/inquiryDetailModal.vue b/src/components/inquiryDetailModal.vue
index 0719c4c..19f4410 100644
--- a/src/components/inquiryDetailModal.vue
+++ b/src/components/inquiryDetailModal.vue
@@ -311,7 +311,6 @@ const handleClose = () => {
\ No newline at end of file
diff --git a/src/views/coupon/coupon-list/index.vue b/src/views/coupon/coupon-list/index.vue
index 3e0816a..8ca4194 100644
--- a/src/views/coupon/coupon-list/index.vue
+++ b/src/views/coupon/coupon-list/index.vue
@@ -100,11 +100,10 @@
-
{modalVisible=false;}">
+
-
-
{familyVisible=false}">
+
@@ -273,6 +272,7 @@ const isVisible=ref(false);
}
})
}
+
//关闭启用弹框
const closeChangeOk = () => {
isVisible.value = false;
@@ -286,47 +286,6 @@ const showCoupon=(value,record)=>{
isVisible.value=true;
cur_coupon_id.value=record.coupon_id;
};
- //改变用户状态
-const handleChangeStatus=async(status)=>{
-
-
- if(status==0){
- cur_coupon_id.value=modalForm.coupon_id;
- //okVisible.value=true;
- isVisible.value=true
- }else{
- //okVisible.value=true;
- isVisible.value=true
- // switchStatus(modalForm.coupon_id,{
- // status:1
- // })
- }
- // await updateCouponStatus(cur_coupon_id,{
- // coupon_status:!status?1:2
- // })
-
- // if(record.status==0){
- // okVisible.value=true;
- // }else{
- // switchStatus(record.coupon_id,{
- // status:1
- // })
- }
- //就诊人详情
- const familyVisible=ref(false);
- const familyForm=reactive({
- user:{},
- avatar: 'https://img.applets.igandanyiyuan.com/basic/file/patient_avatar.png',
- });
- const handleFamilyDetail = async (family_id) => {
- const { code, data} = await getFamilyDetail(family_id);
- if (code == 200) {
- Object.assign(familyForm, data);
- familyVisible.value = true;
- }
- };
-
-
/**
* 分页改变
* @param {Number} [page]
@@ -373,7 +332,10 @@ const handleChangeStatus=async(status)=>{
proxy.$refs.queryFormRef.resetFields();
getInfo(queryForm);
}
-
+ const closeCouponDetail=()=>{
+ modalVisible.value=false;
+ getInfo({ ...pager, ...queryForm });
+}
onMounted(() => {
getInfo(pager);
});
From 6f02a10ed3266154dadab587ddcb7a37b10ce067 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Wed, 5 Jun 2024 16:59:33 +0800
Subject: [PATCH 16/58] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=8D=B76.5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components.d.ts | 1 +
src/api/coupon/list.js | 25 +-
src/components/couponDetail.vue | 226 ++++++++++++------
src/components/giveCouponModal.vue | 134 +++++++++++
src/views/coupon/coupon-list/index.vue | 65 +++--
src/views/coupon/userCoupon-list/index.vue | 265 +++++++++++++++++++++
src/views/order/service-list/index.vue | 4 +-
7 files changed, 631 insertions(+), 89 deletions(-)
create mode 100644 src/components/giveCouponModal.vue
create mode 100644 src/views/coupon/userCoupon-list/index.vue
diff --git a/components.d.ts b/components.d.ts
index ef2e1cc..aac7bc1 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -21,6 +21,7 @@ declare module '@vue/runtime-core' {
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
FamilyModal: typeof import('./src/components/familyModal.vue')['default']
+ GiveCouponModal: typeof import('./src/components/giveCouponModal.vue')['default']
InquiryDetailModal: typeof import('./src/components/inquiryDetailModal.vue')['default']
InquiryDetailMoneyModal: typeof import('./src/components/inquiryDetailMoneyModal.vue')['default']
IsOkCouponModal: typeof import('./src/components/isOkCouponModal.vue')['default']
diff --git a/src/api/coupon/list.js b/src/api/coupon/list.js
index 7866f75..a85473e 100644
--- a/src/api/coupon/list.js
+++ b/src/api/coupon/list.js
@@ -14,7 +14,7 @@ export function getCouponDetail(id){
}
export function addCoupon(data){//系统-新增系统优惠卷
return request({
- url:'/admin/coupon/system/',
+ url:'/admin/coupon/system',
method: 'post',
data
})
@@ -33,13 +33,21 @@ export function getCouponDetail(id){
data
})
}
- export function getUserCouponList(data){
+ export function getUserCouponList(data){//用户优惠卷列表
return request({
url:'/admin/coupon/user/page',
method: 'post',
data
})
}
+ export function getPatientList(params){
+ return request({
+ url:'/admin/patient/list',
+ method:'get',
+ params
+ })
+ }
+
export function giveCoupon(id,data){//系统-发放系统优惠卷
return request({
url:'/admin/coupon/system/grant/'+id,
@@ -47,9 +55,18 @@ export function getCouponDetail(id){
data
})
}
- export function getProduct(){//系统-发放系统优惠卷
+ export function getProduct(params){//系统-发放系统优惠卷
return request({
url:'admin/product/list',
- method: 'post'
+ method: 'get',
+ params
})
}
+ export function exportService(data){//导出
+ return request({
+ url:'/admin/export/order/service',
+ method: 'post',
+ data
+ })
+ }
+
diff --git a/src/components/couponDetail.vue b/src/components/couponDetail.vue
index cfaeada..4f0d446 100644
--- a/src/components/couponDetail.vue
+++ b/src/components/couponDetail.vue
@@ -156,14 +156,17 @@
-
+
@@ -207,7 +210,7 @@
-
+
-
-
+
+
{{ item.product_name }}
@@ -310,7 +314,7 @@
添加
@@ -319,7 +323,7 @@
修改
\ No newline at end of file
diff --git a/src/views/order/service-list/index.vue b/src/views/order/service-list/index.vue
index 233956a..1ac167a 100644
--- a/src/views/order/service-list/index.vue
+++ b/src/views/order/service-list/index.vue
@@ -1072,7 +1072,7 @@ import {
watch,
} from 'vue';
import {
- exportInquiry,
+ exportService,
getServiceList,
serviceDetail,
serviceRightDetail,
@@ -1578,7 +1578,7 @@ const handlExport = async (type) => {
type,
};
}
- const { code, data } = await exportInquiry(fromData);
+ const { code, data } = await exportService(fromData);
if (code == 200) {
downloadFile(data, '问诊订单');
}
From f37e9d0d1adc70cb5a50b17edaad2ab7fb5b6211 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Wed, 5 Jun 2024 17:48:01 +0800
Subject: [PATCH 17/58] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/couponDetail.vue | 5 ++-
src/views/coupon/coupon-list/index.vue | 53 +++++++++++++++++++++-----
2 files changed, 46 insertions(+), 12 deletions(-)
diff --git a/src/components/couponDetail.vue b/src/components/couponDetail.vue
index 4f0d446..6506fc4 100644
--- a/src/components/couponDetail.vue
+++ b/src/components/couponDetail.vue
@@ -115,6 +115,7 @@
@@ -260,7 +261,7 @@
-
+
-
+
+
+
@@ -39,6 +41,16 @@
+
+
+
+ 专家问诊
+ 快速问诊
+ 公益问诊
+ 问诊购药
+ 糖组检测
+
+
@@ -204,7 +219,7 @@ const isVisible=ref(false);
dataIndex: 'coupon_client',
slotName:'coupon_client'
},{
- title: '使用对象',
+ title: '发放对象',
dataIndex: 'distribution_object',
slotName:'distribution_object'
},{
@@ -216,13 +231,31 @@ const isVisible=ref(false);
dataIndex: 'application_scope',
slotName:'application_scope'
},
- // {
- // title: '有效期',
- // dataIndex: 'valid_type',
- // slotName:'valid_type'
- // },
{
- title: '是否开放',
+ title: '发放数量',
+ dataIndex:'coupon_count',
+ slotName:'coupon_count'
+ },
+ {
+ title: '已领取数量',
+ dataIndex:'coupon_take_count '
+ },
+ {
+ title: '已使用数量',
+ dataIndex:'coupon_used_count'
+ },
+ {
+ title: '优惠卷金额',
+ dataIndex:'coupon_price',
+ slotName:'coupon_price'
+ },
+ {
+ title: '有效类型',
+ dataIndex:'valid_type',
+ slotName:'valid_type'
+ },
+ {
+ title: '状态',
dataIndex: 'coupon_status',
slotName:'coupon_status'
}, { title: '操作', slotName: 'action'}])
From 743032a54aa9c72268730751d9455660b51eac53 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Thu, 6 Jun 2024 09:36:32 +0800
Subject: [PATCH 18/58] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/inquiry/service.js | 17 ++
src/views/inquiry/health/index.vue | 344 +++++++++++++++++++++++++++++
2 files changed, 361 insertions(+)
create mode 100644 src/api/inquiry/service.js
create mode 100644 src/views/inquiry/health/index.vue
diff --git a/src/api/inquiry/service.js b/src/api/inquiry/service.js
new file mode 100644
index 0000000..ac92e17
--- /dev/null
+++ b/src/api/inquiry/service.js
@@ -0,0 +1,17 @@
+import request from '../../utils/request'
+
+export function getInquiryconfigList(params){
+ return request({
+ url:'/admin/inquiry/doctor',
+ method: 'get',
+ params
+ })
+}
+
+export function addInquiryconfig(data){//添加配置
+ return request({
+ url:'/admin/inquiry/doctor',
+ method: 'post',
+ data
+ })
+}
\ No newline at end of file
diff --git a/src/views/inquiry/health/index.vue b/src/views/inquiry/health/index.vue
new file mode 100644
index 0000000..a29bc69
--- /dev/null
+++ b/src/views/inquiry/health/index.vue
@@ -0,0 +1,344 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 专家问诊
+ 快速问诊
+ 公益问诊
+ 问诊购药
+
+
+
+
+
+
+
+ 图文
+ 视频
+ 语音
+ 电话
+ 会员
+ 疑难会诊
+ 附赠沟通
+ 健康包服务
+ 服务包服务
+
+
+
+
+ 关闭
+ 开启
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
{deleteData = selection;console.log(selection)}"
+ @page-change="handlePageChange" @page-size-change="handlepage_sizeChange">
+
+ {{(rowIndex+1)+(pager.page-1)*pager.page_size}}
+
+
+ {{ formatDoctorTitle(record.doctor_title) }}
+
+
+ {{ formatMultipoint(record.multi_point_status) }}
+
+
+
+ {{ formatInquiryType(record.inquiry_type) }}
+
+
+ {{ formatMode(record.inquiry_mode) }}
+
+
+ 自己
+ 后台
+
+
+ 关闭
+ 开启
+
+
+
+
+ {{formatRelation(record.relation)}}
+
+
+
+
+ 修改
+
+
+
+
+
+
+
{modalVisible=false;inquiry_config_id='';}">
+
+
+
+
okVisible=false">
+
+ 提示
+
+ 确定保存当前信息?
+
+
+
+
+
+
+
\ No newline at end of file
From 26556c746566a3ed64aec062697892528c0e3606 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Thu, 6 Jun 2024 09:41:25 +0800
Subject: [PATCH 19/58] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E4=BC=98=E6=83=A0?=
=?UTF-8?q?=E5=8D=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/coupon/coupon-list/index.vue | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/views/coupon/coupon-list/index.vue b/src/views/coupon/coupon-list/index.vue
index 748b2a6..1f0d48d 100644
--- a/src/views/coupon/coupon-list/index.vue
+++ b/src/views/coupon/coupon-list/index.vue
@@ -77,10 +77,8 @@
全部导出 -->