|
|
|
@ -181,9 +181,9 @@
|
|
|
|
|
>批量删除</el-button |
|
|
|
|
> --> |
|
|
|
|
|
|
|
|
|
<el-button v-if="ButtonPermissions.appeal" type="primary" @click="appeal" |
|
|
|
|
>申诉</el-button |
|
|
|
|
> |
|
|
|
|
<!-- <el-button v-if="ButtonPermissions.appeal" type="primary" @click="appealAll" |
|
|
|
|
>批量申诉</el-button |
|
|
|
|
> --> |
|
|
|
|
<!-- 财务入账 --> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
@ -1671,6 +1671,7 @@ const TransportLossNode = ref([
|
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
const Statusprocessing = val => { |
|
|
|
|
console.log(val,'状态处理的值'); |
|
|
|
|
val.forEach(item => { |
|
|
|
|
// 对为null的数据进行处理 |
|
|
|
|
// for (const property in item) { |
|
|
|
@ -1694,6 +1695,7 @@ const Statusprocessing = val => {
|
|
|
|
|
// 提货环节下拉赋值 |
|
|
|
|
if (item.discoveryNode == 1) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[0].label; //提货环节 |
|
|
|
|
|
|
|
|
|
} else if (item.discoveryNode == 2) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[1].label; //发货环节 |
|
|
|
|
} else if (item.discoveryNode == 3) { |
|
|
|
@ -1709,6 +1711,8 @@ const Statusprocessing = val => {
|
|
|
|
|
} else if (item.discoveryNode == 8) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[7].label; //安装环节 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (item.workOrderStatus == 10) { |
|
|
|
|
item.workOrderStatusNameS = columnList[10].checkarr[0].label; //待处理 |
|
|
|
|
} else if (item.workOrderStatus == 20) { |
|
|
|
@ -1729,11 +1733,12 @@ const Statusprocessing = val => {
|
|
|
|
|
item.workOrderStatusNameS = columnList[10].checkarr[8].label; //理赔金未出 |
|
|
|
|
} else if (item.workOrderStatus == 21) { |
|
|
|
|
item.workOrderStatusNameS = columnList[10].checkarr[9].label; //处理结果已提交 |
|
|
|
|
} else if (item.workOrderStatus == 100) { |
|
|
|
|
item.workOrderStatusNameS = columnList[10].checkarr[10].label; //已结束 |
|
|
|
|
} else if (item.workOrderStatus == 110) { |
|
|
|
|
item.workOrderStatusNameS = columnList[10].checkarr[11].label; //已结束 |
|
|
|
|
} |
|
|
|
|
// } else if (item.workOrderStatus == 100) { |
|
|
|
|
// item.workOrderStatusNameS = columnList[10].checkarr[10].label; //申诉中 |
|
|
|
|
// } else if (item.workOrderStatus == 110) { |
|
|
|
|
// item.workOrderStatusNameS = columnList[10].checkarr[11].label; //已结束 |
|
|
|
|
// } |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
// 页面初始化数据 |
|
|
|
@ -1803,21 +1808,18 @@ const IndexTable = (val, Refresh) => {
|
|
|
|
|
details.loadingObj.list = false; //关闭动画加载 |
|
|
|
|
if (res.data.data) { |
|
|
|
|
console.log(res.data.data, '初始化返回值===>'); |
|
|
|
|
console.log(res.data.data.records.length, 'res.data.data.records'); |
|
|
|
|
console.log(TabList.value, 'TabList.value===>'); |
|
|
|
|
// page.value.total = res.data.data.total; //总页数 |
|
|
|
|
if (res.data.data.records.length) { |
|
|
|
|
Statusprocessing(res.data.data.records); |
|
|
|
|
console.log(res.data.data.records, 'res.data.data.records有值'); |
|
|
|
|
TabList.value.find(res => res.name == TabPermissions.value).DataList = |
|
|
|
|
res.data.data.records; |
|
|
|
|
TabList.value.find(res => res.name == TabPermissions.value).DataList =res.data.data.records; |
|
|
|
|
TabList.value.find(res => res.name == TabPermissions.value).total = res.data.data.total; |
|
|
|
|
TabList.value.find(res => res.name == TabPermissions.value).request = false; |
|
|
|
|
console.log(TabList.value, '当前存储的值'); |
|
|
|
|
// details.data = res.data.data.records; |
|
|
|
|
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList; |
|
|
|
|
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total; |
|
|
|
|
console.log(TabList.value, 'TabList.value===>'); |
|
|
|
|
Statusprocessing(res.data.data.records); |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
TabList.value.find(res => res.name == TabPermissions.value).DataList = []; |
|
|
|
|
TabList.value.find(res => res.name == TabPermissions.value).total = 0; |
|
|
|
@ -2257,14 +2259,14 @@ const CancelappealFn = val => {
|
|
|
|
|
|
|
|
|
|
// 工单申诉按钮 |
|
|
|
|
const appeal = (val, state) => { |
|
|
|
|
console.log(state,'state'); |
|
|
|
|
AppealAttachment.value = []; //清空图片 |
|
|
|
|
Appealselection.value = ''; //清空责任人 |
|
|
|
|
Reasonforappeal.value = ''; //清空申诉内容 |
|
|
|
|
console.log(state); |
|
|
|
|
console.log(val.row, '申诉当前点击的按钮'); |
|
|
|
|
console.log(val, '申诉当前点击的按钮'); |
|
|
|
|
if (state == 'edit') { |
|
|
|
|
// 当前是编辑申诉 |
|
|
|
|
|
|
|
|
|
details.selectionList.push(val.row); |
|
|
|
|
AppealeditorState.value = true; //开启申诉编辑状态 |
|
|
|
|
if (val.row) { |
|
|
|
@ -2295,13 +2297,19 @@ const appeal = (val, state) => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!state) { |
|
|
|
|
console.log('当前是申诉'); |
|
|
|
|
// 单条申诉 |
|
|
|
|
AppealeditorState.value = false; //开启申诉编辑状态 |
|
|
|
|
if (val.row) { |
|
|
|
|
details.selectionList.push(val.row); |
|
|
|
|
} |
|
|
|
|
dialogappeal.value = true; //展开申诉弹窗 |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 批量申诉 |
|
|
|
|
|
|
|
|
|
const appealAll=()=>{ |
|
|
|
|
// 批量申诉 |
|
|
|
|
console.log(details.selectionList, 'details.selectionList'); |
|
|
|
|
if (!details.selectionList.length) { |
|
|
|
@ -2319,8 +2327,7 @@ const appeal = (val, state) => {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
dialogappeal.value = true; //展开申诉弹窗 |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
// 确定理赔金额 |
|
|
|
|
const DetermineClaims = val => { |
|
|
|
|
console.log(val.row); |
|
|
|
@ -2466,6 +2473,7 @@ const Appealbutton = state => {
|
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
DataRendering(TabPermissions.value, details.query, true); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.finally(res => { |
|
|
|
|