fix:修复了工单,工单详情,工作台的部分显示问题
This commit is contained in:
@@ -52,16 +52,6 @@ const searchConfig = reactive([
|
||||
checkStrictly: true
|
||||
},
|
||||
component: 'el-input',
|
||||
}, {
|
||||
label: '工单状态',
|
||||
prop: 'orderState',
|
||||
props: {
|
||||
placeholder: '请选择工单状态查询',
|
||||
cacheKey: 'work_order_status',
|
||||
clearable: true,
|
||||
filterable: true,
|
||||
},
|
||||
component: shallowRef(fvSelect),
|
||||
}, {
|
||||
label: '处理人',
|
||||
prop: 'operationUser',
|
||||
@@ -170,7 +160,7 @@ const tableConfig = reactive({
|
||||
label: '处理人',
|
||||
align: 'center'
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
prop: 'processedContent',
|
||||
label: '处理内容',
|
||||
@@ -233,14 +223,14 @@ const tableConfig = reactive({
|
||||
}
|
||||
],
|
||||
api: '/order/list',
|
||||
params: {orderState:"0"},
|
||||
params: { orderState: "0" },
|
||||
btns: [
|
||||
// {name: '新增', key: 'add', color: '#DED0B2', auth: auths.report},
|
||||
]
|
||||
})
|
||||
|
||||
const search = (val) => {
|
||||
let obj = {...val}
|
||||
let obj = { ...val, orderState: '0' }
|
||||
if (obj.dateValue) {
|
||||
obj.startTime = obj.dateValue[0]
|
||||
obj.endTime = obj.dateValue[1]
|
||||
@@ -276,25 +266,26 @@ const handleClose = async (row) => {
|
||||
}
|
||||
)
|
||||
.then(async () => {
|
||||
await orderdClose(row.orderNumber)
|
||||
tableIns.value.refresh()
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: '关闭成功',
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
// tableIns.value.refresh()
|
||||
ElMessage({
|
||||
type: 'info',
|
||||
message: '关闭失败',
|
||||
})
|
||||
const info = await orderdClose(row.orderNumber)
|
||||
// console.log(info);
|
||||
if (info.code === 1000) {
|
||||
tableIns.value.refresh()
|
||||
ElMessage({
|
||||
message: '关闭成功',
|
||||
type: 'success',
|
||||
})
|
||||
} else {
|
||||
ElMessage({
|
||||
message: info.msg,
|
||||
type: 'warning',
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
ElMessageBox.alert('此工单已被关闭!', '温馨提示', {
|
||||
// if you want to disable its autofocus
|
||||
// autofocus: false,
|
||||
type:'warning',
|
||||
type: 'warning',
|
||||
confirmButtonText: '确定',
|
||||
})
|
||||
}
|
||||
@@ -313,19 +304,20 @@ const handleDelete = async (row) => {
|
||||
}
|
||||
)
|
||||
.then(async () => {
|
||||
await orderdDetele(row.orderNumber)
|
||||
tableIns.value.refresh()
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: '删除成功',
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
// tableIns.value.refresh()
|
||||
ElMessage({
|
||||
type: 'info',
|
||||
message: '删除失败',
|
||||
})
|
||||
const info = await orderdDetele(row.orderNumber)
|
||||
console.log(info);
|
||||
if (info.code === 1000) {
|
||||
tableIns.value.refresh()
|
||||
ElMessage({
|
||||
message: '删除成功',
|
||||
type: 'success',
|
||||
})
|
||||
} else {
|
||||
ElMessage({
|
||||
message: info.msg,
|
||||
type: 'warning',
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user