|
@@ -42,7 +42,7 @@
|
|
|
<span>{{ row.isProvince ? '省工单' : '市工单' }}</span>
|
|
|
</template>
|
|
|
<template #title="{ row }">
|
|
|
- <order-detail :order="row" @updateList="handleChange(activeName)">{{ row.title }}</order-detail>
|
|
|
+ <order-detail :order="row" @updateList="handleChange(activeName)" :type="row.canSign ? 'danger' : 'primary'">{{ row.title }}</order-detail>
|
|
|
</template>
|
|
|
<template #employeeName="{ row }">
|
|
|
<span
|
|
@@ -51,6 +51,7 @@
|
|
|
</template>
|
|
|
<!-- 表格操作 -->
|
|
|
<template #operation="{ row }">
|
|
|
+ <el-button link type="primary" @click="onSign(row)" title="签收工单" v-if="row.canSign"> 签收 </el-button>
|
|
|
<order-detail :order="row" @updateList="handleChange(activeName)" />
|
|
|
</template>
|
|
|
</ProTable>
|
|
@@ -119,7 +120,7 @@ const todoColumns = [
|
|
|
{ prop: 'sourceChannel', label: '来源方式', width: 100 },
|
|
|
{ prop: 'hotspotName', label: '热点分类', width: 100 },
|
|
|
{ prop: 'employeeName', label: '受理人', width: 170 },
|
|
|
- { prop: 'operation', label: '操作', fixed: 'right', width: 170, align: 'center' },
|
|
|
+ { prop: 'operation', label: '操作', fixed: 'right', width: 160, align: 'center' },
|
|
|
];
|
|
|
// 工单坐席待办表头
|
|
|
const seatsColumns = [
|
|
@@ -157,7 +158,7 @@ const seatsColumns = [
|
|
|
{ prop: 'emergencyLevelText', label: '紧急程度', width: 100 },
|
|
|
{ prop: 'hotspotName', label: '热点分类', width: 100 },
|
|
|
{ prop: 'employeeName', label: '受理人', width: 150 },
|
|
|
- { prop: 'operation', label: '操作', fixed: 'right', width: 190, align: 'center' },
|
|
|
+ { prop: 'operation', label: '操作', fixed: 'right', width: 160, align: 'center' },
|
|
|
];
|
|
|
// tab切换
|
|
|
const handleChange = async (tab: any) => {
|
|
@@ -220,6 +221,24 @@ const linkList = () => {
|
|
|
break;
|
|
|
}
|
|
|
};
|
|
|
+// 签收工单
|
|
|
+const onSign = (row: any) => {
|
|
|
+ ElMessageBox.confirm(`您确定要要签收【${row.title}】,是否继续?`, '提示', {
|
|
|
+ confirmButtonText: '确认',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ draggable: true,
|
|
|
+ cancelButtonClass: 'default-button',
|
|
|
+ autofocus: false,
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ orderSign(row.id).then(() => {
|
|
|
+ ElMessage.success('签收成功');
|
|
|
+ handleChange(activeName.value);
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+};
|
|
|
onMounted(() => {
|
|
|
getTableAndNum();
|
|
|
});
|