Compare commits
4 Commits
42d2e7e1e8
...
750bbb7ea2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
750bbb7ea2 | ||
|
|
19de6e0e26 | ||
|
|
f5d48739ec | ||
|
|
2aea66aebd |
@ -122,3 +122,11 @@ export function exportService(data){//导出服务包
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function hideInquiry(id, data){//年度审查隐藏
|
||||||
|
return request({
|
||||||
|
url:`/admin/order/inquiry/hide/${id}`,
|
||||||
|
method: 'put',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -145,6 +145,11 @@
|
|||||||
<a-space>
|
<a-space>
|
||||||
<a-button v-has="'admin:sysOrderList:detail'" type="text"
|
<a-button v-has="'admin:sysOrderList:detail'" type="text"
|
||||||
@click="handleDetail(record)"><icon-book />详情</a-button>
|
@click="handleDetail(record)"><icon-book />详情</a-button>
|
||||||
|
<a-button v-has="'admin:sysOrderList:hide'" type="text" @click="handleHide(record)">
|
||||||
|
<icon-eye-invisible v-if="record.annual_review_hide !== 1" />
|
||||||
|
<icon-eye v-else />
|
||||||
|
{{ record.annual_review_hide === 1 ? '取消隐藏' : '隐藏' }}
|
||||||
|
</a-button>
|
||||||
<!-- <a-button v-has="'admin:sysPost:remove'" type="text" @click="() => { deleteVisible = true; deleteData = [record.post_id]; }"><icon-delete /> 删除</a-button> -->
|
<!-- <a-button v-has="'admin:sysPost:remove'" type="text" @click="() => { deleteVisible = true; deleteData = [record.post_id]; }"><icon-delete /> 删除</a-button> -->
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
@ -474,7 +479,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch } from 'vue';
|
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch } from 'vue';
|
||||||
import {exportInquiry, getOrderList,getOrderDetail,cancelInquiry,inquiryCase} from '@/api/order/list';
|
import {exportInquiry, getOrderList,getOrderDetail,cancelInquiry,inquiryCase,hideInquiry} from '@/api/order/list';
|
||||||
import { parseTime } from '@/utils/parseTime';
|
import { parseTime } from '@/utils/parseTime';
|
||||||
import {formatDoctorTitle,formatOrderCancelReason,formatMode} from "@/utils/format"
|
import {formatDoctorTitle,formatOrderCancelReason,formatMode} from "@/utils/format"
|
||||||
import { downloadFile } from '@/utils/downloadFile';
|
import { downloadFile } from '@/utils/downloadFile';
|
||||||
@ -597,7 +602,7 @@ const columns = [
|
|||||||
{ title: '支付方式', dataIndex: 'inquiry_pay_channel',slotName: 'inquiry_pay_channel'},
|
{ title: '支付方式', dataIndex: 'inquiry_pay_channel',slotName: 'inquiry_pay_channel'},
|
||||||
{ title: '订单状态', dataIndex: 'inquiry_status', slotName:'inquiry_status' },
|
{ title: '订单状态', dataIndex: 'inquiry_status', slotName:'inquiry_status' },
|
||||||
{ title: '支付时间', dataIndex: 'pay_time', slotName: 'pay_time',width:200 },
|
{ title: '支付时间', dataIndex: 'pay_time', slotName: 'pay_time',width:200 },
|
||||||
{ title: '操作', slotName: 'action',fixed: "right", width: 100 },
|
{ title: '操作', slotName: 'action',fixed: "right", width: 180 },
|
||||||
];
|
];
|
||||||
|
|
||||||
// Table Data
|
// Table Data
|
||||||
@ -691,6 +696,18 @@ const handleQuery = async () => {
|
|||||||
getOrderInfo(params);
|
getOrderInfo(params);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleHide = async (record) => {
|
||||||
|
const annual_review_hide = record.annual_review_hide === 1 ? 0 : 1;
|
||||||
|
const { code, message } = await hideInquiry(record.order_inquiry_id, { annual_review_hide });
|
||||||
|
if (code == 200) {
|
||||||
|
proxy.$notification.success(annual_review_hide === 1 ? '隐藏成功' : '取消隐藏成功');
|
||||||
|
record.annual_review_hide = annual_review_hide;
|
||||||
|
// getOrderInfo({ ...pager, ...queryForm }); // 避免全局刷新导致重新获取的数据里没有该字段,这里直接局部更新
|
||||||
|
} else {
|
||||||
|
proxy.$notification.error(message || '操作失败');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
//获取订单详情
|
//获取订单详情
|
||||||
const handleDetail = async (record) => {
|
const handleDetail = async (record) => {
|
||||||
modalVisible.value = true;
|
modalVisible.value = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user