Compare commits
No commits in common. "750bbb7ea2e8b06ffc64ee9af8651cf7d1a0f6e9" and "42d2e7e1e8daf33897d6e719f13d0ff0cca07e38" have entirely different histories.
750bbb7ea2
...
42d2e7e1e8
@ -122,11 +122,3 @@ export function exportService(data){//导出服务包
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hideInquiry(id, data){//年度审查隐藏
|
|
||||||
return request({
|
|
||||||
url:`/admin/order/inquiry/hide/${id}`,
|
|
||||||
method: 'put',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@ -145,11 +145,6 @@
|
|||||||
<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>
|
||||||
@ -479,7 +474,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,hideInquiry} from '@/api/order/list';
|
import {exportInquiry, getOrderList,getOrderDetail,cancelInquiry,inquiryCase} 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';
|
||||||
@ -602,7 +597,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: 180 },
|
{ title: '操作', slotName: 'action',fixed: "right", width: 100 },
|
||||||
];
|
];
|
||||||
|
|
||||||
// Table Data
|
// Table Data
|
||||||
@ -696,18 +691,6 @@ 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