|
|
|
@ -191,7 +191,7 @@
|
|
|
|
|
|
|
|
|
|
<template v-if="slotProps.scope.column.label === '操作'"> |
|
|
|
|
<el-text size="small" @click="editsolt(slotProps.scope)">查 看</el-text> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-text |
|
|
|
|
size="small" |
|
|
|
|
v-if="slotProps.scope.row.isHaveAbnormalPackage === 2" |
|
|
|
@ -460,9 +460,7 @@
|
|
|
|
|
:before-close="beforeClose" |
|
|
|
|
append-to-body |
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
<el-table |
|
|
|
|
|
|
|
|
|
ref="table" |
|
|
|
|
v-loading="Abnormalloading" |
|
|
|
|
@selection-change="selectionChange" |
|
|
|
@ -557,6 +555,7 @@ import {
|
|
|
|
|
loadingAbnormalPackageListAuditing, |
|
|
|
|
getSignforExport, |
|
|
|
|
numberDetail, |
|
|
|
|
$_isSignt, |
|
|
|
|
} from '@/api/distribution/distributionSignfor'; |
|
|
|
|
import { update as updatesign } from '@/api/distribution/distributionSignfor'; |
|
|
|
|
import option from '@/option/distribution/distributionSignfor'; |
|
|
|
@ -566,12 +565,12 @@ import dayjs from 'dayjs';
|
|
|
|
|
import { getDeliveryListExport } from '@/api/distribution/distributionDeliveryList'; |
|
|
|
|
import { downloadXls } from '@/utils/util'; |
|
|
|
|
import { getToken } from '@/utils/auth'; |
|
|
|
|
import { ElMessage } from 'element-plus'; |
|
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
abnormalReview:'',//异常审核 |
|
|
|
|
Abnormalloading:false,//审核加载效果 |
|
|
|
|
abnormalReview: '', //异常审核 |
|
|
|
|
Abnormalloading: false, //审核加载效果 |
|
|
|
|
dialogImageUrl: '', //图片放大地址 |
|
|
|
|
dialogVisible: false, //图片状态 |
|
|
|
|
dialogImageUrlA: '', |
|
|
|
@ -2071,7 +2070,7 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
//审批异常装车包件 |
|
|
|
|
auditing(row) { |
|
|
|
|
this.Abnormalloading=true; |
|
|
|
|
this.Abnormalloading = true; |
|
|
|
|
// const { row } = scope; |
|
|
|
|
console.log('----------->row', row); |
|
|
|
|
loadingAbnormalPackageListAuditing(row.id).then(res => { |
|
|
|
@ -2081,8 +2080,8 @@ export default {
|
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
this.Abnormalloading=false; |
|
|
|
|
this.AbnormalreviewFn(this.abnormalReview);//审核完成更新数据 |
|
|
|
|
this.Abnormalloading = false; |
|
|
|
|
this.AbnormalreviewFn(this.abnormalReview); //审核完成更新数据 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -2090,7 +2089,7 @@ export default {
|
|
|
|
|
* 一键审批 |
|
|
|
|
*/ |
|
|
|
|
fastAuditing() { |
|
|
|
|
this.Abnormalloading=true;//开启加载效果 |
|
|
|
|
this.Abnormalloading = true; //开启加载效果 |
|
|
|
|
console.log('this.wrapdata---------->', this.wrapdata); |
|
|
|
|
let ids = []; |
|
|
|
|
this.wrapdata.forEach(item => { |
|
|
|
@ -2103,18 +2102,18 @@ export default {
|
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.abnormalBox = false;//关闭弹窗 |
|
|
|
|
this.Abnormalloading=false;//关闭加载效果 |
|
|
|
|
|
|
|
|
|
this.abnormalBox = false; //关闭弹窗 |
|
|
|
|
this.Abnormalloading = false; //关闭加载效果 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
console.log('ids---------->', ids); |
|
|
|
|
}, |
|
|
|
|
handleSign(row) { |
|
|
|
|
// 复核请求公共函数 |
|
|
|
|
checkFn(row) { |
|
|
|
|
console.log('签收>>>>>>>>>>', row); |
|
|
|
|
// this.title = '查看'; |
|
|
|
|
// this.view = true; |
|
|
|
|
this.reservationId = row.reservationId; //存储当前行的ID |
|
|
|
|
this.signform = row; |
|
|
|
|
this.signBox = true; |
|
|
|
|
getDetail(row.id).then(res => { |
|
|
|
@ -2127,23 +2126,58 @@ export default {
|
|
|
|
|
this.FragilePhotos = []; |
|
|
|
|
this.HomePhotos = []; |
|
|
|
|
this.SignForPhotos = []; |
|
|
|
|
res.data.data.printVOList.forEach(item => { |
|
|
|
|
if (item.type == 'photo_1') { |
|
|
|
|
this.DoorstepPhoto.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
if (item.type == 'photo_2') { |
|
|
|
|
this.StackingPhoto.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
if (item.type == 'photo_3') { |
|
|
|
|
this.FragilePhotos.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
if (item.type == 'photo_4') { |
|
|
|
|
this.HomePhotos.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
if (item.type == 'photo_5') { |
|
|
|
|
this.SignForPhotos.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
if (res.data.data.printVOList.length) { |
|
|
|
|
InfoData.printVOList.forEach(item => { |
|
|
|
|
if (item.type == 'photo_1') { |
|
|
|
|
this.DoorstepPhoto.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
if (item.type == 'photo_2') { |
|
|
|
|
this.StackingPhoto.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
if (item.type == 'photo_3') { |
|
|
|
|
this.FragilePhotos.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
if (item.type == 'photo_4') { |
|
|
|
|
this.HomePhotos.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
if (item.type == 'photo_5') { |
|
|
|
|
this.SignForPhotos.push({ name: item.name, url: item.urlRoute }); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleSign(row) { |
|
|
|
|
this.reservationId = row.reservationId; //存储当前行的ID |
|
|
|
|
let data = { |
|
|
|
|
signingId: row.id, |
|
|
|
|
}; |
|
|
|
|
$_isSignt(data).then(res => { |
|
|
|
|
console.log(res, '预请求返回值'); |
|
|
|
|
if (res.data.msg == '存在异常包件') { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (res.data.msg == '此任务存在未完成包件,请确认') { |
|
|
|
|
ElMessageBox.confirm(res.data.msg, '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
this.checkFn(row); |
|
|
|
|
}) |
|
|
|
|
.catch(() => { |
|
|
|
|
console.log('取消'); |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (res.data.msg == '直接进行复核操作') { |
|
|
|
|
this.checkFn(row); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// this.wid= row.id |
|
|
|
|
// this.getWrapdetails(this.wpage) |
|
|
|
@ -2151,7 +2185,7 @@ export default {
|
|
|
|
|
// 异常装车 |
|
|
|
|
|
|
|
|
|
// 异常审核函数 |
|
|
|
|
AbnormalreviewFn(row){ |
|
|
|
|
AbnormalreviewFn(row) { |
|
|
|
|
loadingAbnormalPackageListDetail(row.id).then(res => { |
|
|
|
|
this.wrapdata = res.data.data; |
|
|
|
|
console.log('res------------->', res.data.data); |
|
|
|
@ -2160,13 +2194,13 @@ export default {
|
|
|
|
|
|
|
|
|
|
viewAbnormalLoading(scope) { |
|
|
|
|
const { row } = scope; |
|
|
|
|
console.log(scope,'异常审核'); |
|
|
|
|
this.abnormalReview=row |
|
|
|
|
console.log(scope, '异常审核'); |
|
|
|
|
this.abnormalReview = row; |
|
|
|
|
// this.title = '查看'; |
|
|
|
|
// this.view = true; |
|
|
|
|
this.abnormalBox = true; |
|
|
|
|
console.log('异常装车审核------------->', row); |
|
|
|
|
this.AbnormalreviewFn(this.abnormalReview) |
|
|
|
|
this.AbnormalreviewFn(this.abnormalReview); |
|
|
|
|
}, |
|
|
|
|
editsolt(scope) { |
|
|
|
|
const { row } = scope; |
|
|
|
|