|
|
|
@ -1111,6 +1111,8 @@ const IndexTable = val => {
|
|
|
|
|
details.loadingObj.list = true; //开启动画加载 |
|
|
|
|
let data = { |
|
|
|
|
...val, |
|
|
|
|
workOrderStatus: |
|
|
|
|
TabPermissions.value == '0' && UserPermissions.value == '仓库客服' ? '1000' : null, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
columnList[2].checkarr = []; //重置下拉搜索框 |
|
|
|
@ -1136,90 +1138,86 @@ const IndexTable = val => {
|
|
|
|
|
} else { |
|
|
|
|
TabList.value[2].state = true; |
|
|
|
|
} |
|
|
|
|
if (UserPermissions.value == '仓库客服') { |
|
|
|
|
details.query.workOrderStatus = 1000; |
|
|
|
|
console.log('执行了1000'); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
TabList.value[2].state = true; |
|
|
|
|
UserPermissions.value = '仓库客服'; |
|
|
|
|
} |
|
|
|
|
console.log(UserPermissions.value, '当前角色权限'); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$_getList(data).then(res => { |
|
|
|
|
Tableheaderswitching(columnList); |
|
|
|
|
console.log(res, '初始化返回值'); |
|
|
|
|
details.loadingObj.list = false; //关闭动画加载 |
|
|
|
|
|
|
|
|
|
if (res.data.data) { |
|
|
|
|
page.value.total = res.data.data.total; //总页数 |
|
|
|
|
|
|
|
|
|
if (res.data.data.records.length) { |
|
|
|
|
res.data.data.records.forEach(item => { |
|
|
|
|
console.log(item, 'item'); |
|
|
|
|
// 对为null的数据进行处理 |
|
|
|
|
// for (const property in item) { |
|
|
|
|
// if (item[property] == null) { |
|
|
|
|
// item[property] = '/'; |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// 对状态进行处理 |
|
|
|
|
if (item.workOrderType == 1) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[0].label; //货损 |
|
|
|
|
} else if (item.workOrderType == 2) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[1].label; //少货 |
|
|
|
|
} else if (item.workOrderType == 3) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[2].label; //窜货 |
|
|
|
|
} else if (item.workOrderType == 4) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[3].label; //加急 |
|
|
|
|
} else if (item.workOrderType == 5) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[4].label; //其他 |
|
|
|
|
} |
|
|
|
|
// 提货环节下拉赋值 |
|
|
|
|
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) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[2].label; //干线卸车环节 |
|
|
|
|
} else if (item.discoveryNode == 4) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[3].label; //库内作业环节 |
|
|
|
|
} else if (item.discoveryNode == 5) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[4].label; //配送装车环节 |
|
|
|
|
} else if (item.discoveryNode == 6) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[5].label; //其他 |
|
|
|
|
} else if (item.discoveryNode == 7) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[6].label; //配送签收环节 |
|
|
|
|
} else if (item.discoveryNode == 8) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[7].label; //安装环节 |
|
|
|
|
} |
|
|
|
|
if (item.workOrderStatus == 10) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[0].label; //待处理 |
|
|
|
|
} else if (item.workOrderStatus == 20) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[1].label; //处理中 |
|
|
|
|
} else if (item.workOrderStatus == 30) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[2].label; //已处理 |
|
|
|
|
} else if (item.workOrderStatus == 40) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[4].label; //待审核 |
|
|
|
|
} else if (item.workOrderStatus == 50) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[5].label; //已审核 |
|
|
|
|
} else if (item.workOrderStatus == 60) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[3].label; //超时未处理 |
|
|
|
|
} else if (item.workOrderStatus == 70) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[6].label; //仲裁中 |
|
|
|
|
} else if (item.workOrderStatus == 80) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[7].label; //完结 |
|
|
|
|
} else if (item.workOrderStatus == 90) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[8].label; //理赔金未出 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
details.data = res.data.data.records; |
|
|
|
|
} else { |
|
|
|
|
details.data = res.data.data.records; |
|
|
|
|
$_getList(data).then(res => { |
|
|
|
|
Tableheaderswitching(columnList); |
|
|
|
|
console.log(res, '初始化返回值'); |
|
|
|
|
details.loadingObj.list = false; //关闭动画加载 |
|
|
|
|
|
|
|
|
|
if (res.data.data) { |
|
|
|
|
page.value.total = res.data.data.total; //总页数 |
|
|
|
|
|
|
|
|
|
if (res.data.data.records.length) { |
|
|
|
|
res.data.data.records.forEach(item => { |
|
|
|
|
console.log(item, 'item'); |
|
|
|
|
// 对为null的数据进行处理 |
|
|
|
|
// for (const property in item) { |
|
|
|
|
// if (item[property] == null) { |
|
|
|
|
// item[property] = '/'; |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// 对状态进行处理 |
|
|
|
|
if (item.workOrderType == 1) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[0].label; //货损 |
|
|
|
|
} else if (item.workOrderType == 2) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[1].label; //少货 |
|
|
|
|
} else if (item.workOrderType == 3) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[2].label; //窜货 |
|
|
|
|
} else if (item.workOrderType == 4) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[3].label; //加急 |
|
|
|
|
} else if (item.workOrderType == 5) { |
|
|
|
|
item.workOrderTypeNameS = columnList[2].checkarr[4].label; //其他 |
|
|
|
|
} |
|
|
|
|
// 提货环节下拉赋值 |
|
|
|
|
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) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[2].label; //干线卸车环节 |
|
|
|
|
} else if (item.discoveryNode == 4) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[3].label; //库内作业环节 |
|
|
|
|
} else if (item.discoveryNode == 5) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[4].label; //配送装车环节 |
|
|
|
|
} else if (item.discoveryNode == 6) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[5].label; //其他 |
|
|
|
|
} else if (item.discoveryNode == 7) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[6].label; //配送签收环节 |
|
|
|
|
} else if (item.discoveryNode == 8) { |
|
|
|
|
item.discoveryNodeNameS = columnList[3].checkarr[7].label; //安装环节 |
|
|
|
|
} |
|
|
|
|
if (item.workOrderStatus == 10) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[0].label; //待处理 |
|
|
|
|
} else if (item.workOrderStatus == 20) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[1].label; //处理中 |
|
|
|
|
} else if (item.workOrderStatus == 30) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[2].label; //已处理 |
|
|
|
|
} else if (item.workOrderStatus == 40) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[4].label; //待审核 |
|
|
|
|
} else if (item.workOrderStatus == 50) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[5].label; //已审核 |
|
|
|
|
} else if (item.workOrderStatus == 60) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[3].label; //超时未处理 |
|
|
|
|
} else if (item.workOrderStatus == 70) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[6].label; //仲裁中 |
|
|
|
|
} else if (item.workOrderStatus == 80) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[7].label; //完结 |
|
|
|
|
} else if (item.workOrderStatus == 90) { |
|
|
|
|
item.workOrderStatusNameS = columnList[17].checkarr[8].label; //理赔金未出 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
details.data = res.data.data.records; |
|
|
|
|
} else { |
|
|
|
|
details.data = res.data.data.records; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
loading.value = false; //关闭加载效果 |
|
|
|
|
loading.value = false; //关闭加载效果 |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -2176,7 +2174,7 @@ const tabChenge = val => {
|
|
|
|
|
if (val == 0) { |
|
|
|
|
ProcessingPartyState.value = false; //关闭处理方 |
|
|
|
|
|
|
|
|
|
ArbitrationStatus.value = false; //不可以申请仲裁 |
|
|
|
|
ArbitrationStatus.value = true; //可以以申请仲裁 |
|
|
|
|
if (UserPermissions.value == '仓库客服') { |
|
|
|
|
data.workOrderStatus = 1000; |
|
|
|
|
details.query.workOrderStatus = 1000; |
|
|
|
@ -2652,11 +2650,17 @@ const arbitrate = () => {
|
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let resultState = details.selectionList.every(item => item.workOrderStatus != '30'); //判断勾选中的数据是否存在不符合条件的 |
|
|
|
|
if (!resultState) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: '勾选数据不符合(待处理或处理中才可以申请仲裁)', |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let data = { |
|
|
|
|
assignList: [], |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
console.log(details.selectionList, '仲裁选中的参数'); |
|
|
|
|
details.selectionList.forEach(item => { |
|
|
|
|
data['assignList'].push(item.id); |
|
|
|
|
}); |
|
|
|
|