|
@@ -207,11 +207,7 @@
|
|
|
import {computed, onMounted, ref} from 'vue'
|
|
import {computed, onMounted, ref} from 'vue'
|
|
|
import {List, Refresh, Search} from '@element-plus/icons-vue'
|
|
import {List, Refresh, Search} from '@element-plus/icons-vue'
|
|
|
import {ElMessage} from 'element-plus'
|
|
import {ElMessage} from 'element-plus'
|
|
|
-import {
|
|
|
|
|
- getManholeWorkOrderDetail,
|
|
|
|
|
- getManholeWorkOrderProcessingPage,
|
|
|
|
|
- operManholeWorkOrder
|
|
|
|
|
-} from '@/api/pipeNetwork/basic'
|
|
|
|
|
|
|
+import {getManholeWorkOrderDetail, getManholeWorkOrderPage, operManholeWorkOrder} from '@/api/pipeNetwork/basic'
|
|
|
|
|
|
|
|
const DEFAULT_OPER_USER_ID = 1
|
|
const DEFAULT_OPER_USER_ID = 1
|
|
|
|
|
|
|
@@ -262,7 +258,7 @@ function getOrderStatusMeta(status) {
|
|
|
6: { key: 'completed', text: '已结案', tag: 'success' },
|
|
6: { key: 'completed', text: '已结案', tag: 'success' },
|
|
|
7: { key: 'completed', text: '已驳回', tag: 'danger' },
|
|
7: { key: 'completed', text: '已驳回', tag: 'danger' },
|
|
|
8: { key: 'verify', text: '延期审核', tag: 'warning' },
|
|
8: { key: 'verify', text: '延期审核', tag: 'warning' },
|
|
|
- 9: { key: 'completed', text: '已延期', tag: 'danger' }
|
|
|
|
|
|
|
+ 9: { key: 'pending', text: '延期待接单', tag: 'warning' }
|
|
|
}
|
|
}
|
|
|
return map[Number(status)] || { key: '', text: '—', tag: 'info' }
|
|
return map[Number(status)] || { key: '', text: '—', tag: 'info' }
|
|
|
}
|
|
}
|
|
@@ -357,9 +353,11 @@ async function loadOrders() {
|
|
|
orderNo: keyword || undefined,
|
|
orderNo: keyword || undefined,
|
|
|
caseNo: keyword || undefined
|
|
caseNo: keyword || undefined
|
|
|
}
|
|
}
|
|
|
- const res = await getManholeWorkOrderProcessingPage(payload)
|
|
|
|
|
|
|
+ const res = await getManholeWorkOrderPage(payload)
|
|
|
const records = Array.isArray(res?.data?.records) ? res.data.records : []
|
|
const records = Array.isArray(res?.data?.records) ? res.data.records : []
|
|
|
- orders.value = records.map(normalizeOrder)
|
|
|
|
|
|
|
+ orders.value = records
|
|
|
|
|
+ .filter(item => [2, 3, 4, 5, 8, 9].includes(Number(item.orderStatus)))
|
|
|
|
|
+ .map(normalizeOrder)
|
|
|
currentPage.value = 1
|
|
currentPage.value = 1
|
|
|
if (currentOrder.value) {
|
|
if (currentOrder.value) {
|
|
|
const matched = orders.value.find(item => item.orderId === currentOrder.value.orderId)
|
|
const matched = orders.value.find(item => item.orderId === currentOrder.value.orderId)
|
|
@@ -416,7 +414,7 @@ function canStartRepair(order) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function canAcceptOrder(order) {
|
|
function canAcceptOrder(order) {
|
|
|
- return Number(order.orderStatus) === 2
|
|
|
|
|
|
|
+ return [2, 9].includes(Number(order.orderStatus))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function canSubmitVerify(order) {
|
|
function canSubmitVerify(order) {
|
|
@@ -514,7 +512,7 @@ function getLogType(operType) {
|
|
|
6: 'success',
|
|
6: 'success',
|
|
|
7: 'danger',
|
|
7: 'danger',
|
|
|
8: 'warning',
|
|
8: 'warning',
|
|
|
- 9: 'success'
|
|
|
|
|
|
|
+ 9: 'warning'
|
|
|
}
|
|
}
|
|
|
return map[Number(operType)] || 'info'
|
|
return map[Number(operType)] || 'info'
|
|
|
}
|
|
}
|