diff --git a/src/api/doctor/list.js b/src/api/doctor/list.js index 193f628..62d5279 100644 --- a/src/api/doctor/list.js +++ b/src/api/doctor/list.js @@ -86,4 +86,12 @@ export function getDoctorDetail(id){ params }) } - \ No newline at end of file + + export function exportDoctor(data){//导出 + return request({ + url:'/admin/export/doctor', + method: 'post', + data + }) + } + \ No newline at end of file diff --git a/src/api/finance/account.js b/src/api/finance/account.js index 3de141d..7c06003 100644 --- a/src/api/finance/account.js +++ b/src/api/finance/account.js @@ -18,4 +18,19 @@ export function getAccountDetail(id){ method: 'get', params }) - } \ No newline at end of file + } + export function exportAccount(data){//导出 + return request({ + url:'/admin/export/doctor/account', + method: 'post', + data + }) + } + export function exportAccountOrder(data){//导出关联订单 + return request({ + url:'/admin/export/doctor/account/order', + method: 'post', + data + }) + } + \ No newline at end of file diff --git a/src/api/finance/bank.js b/src/api/finance/bank.js index 49e5463..f9f1823 100644 --- a/src/api/finance/bank.js +++ b/src/api/finance/bank.js @@ -6,4 +6,11 @@ export function getBankList(params){ params }) } +export function exportBankcard(data){//导出 + return request({ + url:'/admin/export/doctor/bank/card', + method: 'post', + data + }) +} diff --git a/src/api/finance/record.js b/src/api/finance/record.js index 8a33e2b..1a190a4 100644 --- a/src/api/finance/record.js +++ b/src/api/finance/record.js @@ -44,6 +44,18 @@ export function getOrder(params){ method: 'put' }) } - - - \ No newline at end of file + export function exportRecord(data){//导出 + return request({ + url:'/admin/export/withdrawal', + method: 'post', + data + }) + } + export function exportRecordOrder(data){//导出相关订单 + return request({ + url:'/admin/export/withdrawal/order', + method: 'post', + data + }) + } + \ No newline at end of file diff --git a/src/api/order/list.js b/src/api/order/list.js index 007fa78..9cb8008 100644 --- a/src/api/order/list.js +++ b/src/api/order/list.js @@ -72,4 +72,20 @@ export function getIm(params){//获取im分页 params }) } + +export function exportInquiry(data){//导出问诊订单 + return request({ + url:'/admin/export/order/inquiry', + method: 'post', + data + }) +} +export function exportProduct(data){//导出药品订单 + return request({ + url:'/admin/export/order/product', + method: 'post', + data + }) +} + diff --git a/src/api/patient/family.js b/src/api/patient/family.js index 887b8c0..e88e6d9 100644 --- a/src/api/patient/family.js +++ b/src/api/patient/family.js @@ -23,4 +23,11 @@ export function getFamilyDetail(id){ params }) } + export function exportFamily(data){//导出 + return request({ + url:'/admin/export/patient/family', + method: 'post', + data + }) + } \ No newline at end of file diff --git a/src/api/patient/list.js b/src/api/patient/list.js index 8564b2b..952ad79 100644 --- a/src/api/patient/list.js +++ b/src/api/patient/list.js @@ -22,4 +22,11 @@ export function getPatientDetail(id){ method: 'put', data }) + } + export function exportPatient(data){//导出 + return request({ + url:'/admin/export/patient', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/api/prescription/list.js b/src/api/prescription/list.js index f369922..13b7a22 100644 --- a/src/api/prescription/list.js +++ b/src/api/prescription/list.js @@ -22,3 +22,11 @@ export function getPrescriptionDetail(id){ method: 'get' }) } + export function exportPrescription(data){//导出 + return request({ + url:'/admin/export/prescription', + method: 'post', + data + }) + } + \ No newline at end of file diff --git a/src/components/accountModal.vue b/src/components/accountModal.vue index 3b81005..e63b33d 100644 --- a/src/components/accountModal.vue +++ b/src/components/accountModal.vue @@ -7,6 +7,8 @@
关联订单
+ + @@ -66,6 +68,16 @@ + + +
+ + 选择数据导出 + 当前搜索全部导出 + 全部导出 + +
+
@@ -77,7 +89,7 @@ :row-selection="{ type: 'checkbox', showCheckedAll: true }" :pagination="{ 'show-total': true, 'show-jumper': true, 'show-page-size': true, total: pager.total, current: currentPage }" - row-key="order_inquiry_id" @selection-change="(selection) => {console.log(selection)}" + row-key="order_inquiry_id" @selection-change="(selection) => {selectData=selection}" @page-change="handlePageChange" @page-size-change="handlepage_sizeChange"> diff --git a/src/views/order/order-list/index.vue b/src/views/order/order-list/index.vue index 4bdb418..e8d7eb7 100644 --- a/src/views/order/order-list/index.vue +++ b/src/views/order/order-list/index.vue @@ -82,6 +82,14 @@ + +
+ + 选择数据导出 + 当前搜索全部导出 + 全部导出 + +
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch } from 'vue'; -import { getOrderList,getOrderDetail,cancelInquiry,inquiryCase} from '@/api/order/list'; +import {exportInquiry, getOrderList,getOrderDetail,cancelInquiry,inquiryCase} from '@/api/order/list'; import { parseTime } from '@/utils/parseTime'; import {formatDoctorTitle,formatOrderCancelReason} from "@/utils/format" - +import { downloadFile } from '@/utils/downloadFile'; // Akiraka 20230210 删除数据 const deleteData = ref([]) // Akiraka 20230210 删除对话框 @@ -723,7 +731,44 @@ const handleResetQuery = () => { //getOrderInfo(queryForm); } - +const handlExport=async(type)=>{ + proxy.$loading.show(); + let fromData=null; + if(type==1){ + fromData={ + type, + ...queryForm + } + }else if(type==2){ + if(deleteData.value.length==0){ + proxy.$message.warning('请勾选数据'); + proxy.$loading.hide(); + return false; + }; + let id=''; + deleteData.value.forEach((item)=>{ + if(id){ + id+=","+item + }else{ + id=item; + } + }) + fromData={ + type, + id + } + }else if(type==3){ + fromData={ + type + } + } + const {code,data}=await exportInquiry(fromData); + if(code==200){ + downloadFile(data,'问诊订单'); + } + proxy.$loading.hide(); +} + onMounted(() => { getOrderInfo(pager); }); diff --git a/src/views/patient/family-list/index.vue b/src/views/patient/family-list/index.vue index 41bc4a8..744051e 100644 --- a/src/views/patient/family-list/index.vue +++ b/src/views/patient/family-list/index.vue @@ -32,18 +32,19 @@ - +