Browse Source

商配异常审核增加批量审核

dev
马远东 11 hours ago
parent
commit
44a6a25c55
  1. 91
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue

91
src/views/distribution/deliverylist/distributionDeliveryListedt.vue

@ -814,17 +814,18 @@
@close="Abnormalshutdown"
class="el_abnormalBox"
>
<div class="abnormalBox_flex">
<div>
<el-button type="primary" @click="BatchcancellationAll">批量取消</el-button>
<el-button type="primary" @click="abnormalViewQRcode(1)">批量查看二维码</el-button>
</div>
<div>
<el-button icon="el-icon-refresh" @click="abnormalBoxsearchChange" circle></el-button>
<div class="abnormalBox_flex">
<div>
<el-button type="primary" @click="BatchcancellationAll">批量取消</el-button>
<el-button type="primary" @click="Batchreview">批量审核</el-button>
<el-button type="primary" @click="abnormalViewQRcode(1)">批量查看二维码</el-button>
</div>
<div>
<el-button icon="el-icon-refresh" @click="abnormalBoxsearchChange" circle></el-button>
</div>
</div>
</div>
<tablecmt
:columnList="AbnormalReview"
:tableData="AbnormalReviewData"
@ -886,7 +887,10 @@
<el-dialog v-model="dialogViReject" title="驳回" width="500">
<div>
<span>请联系司机将货物带回仓库并由<strong style="color: red">文员或库管</strong>进行回库扫描</span>
<span
>请联系司机将货物带回仓库并由<strong style="color: red">文员或库管</strong
>进行回库扫描</span
>
<!-- <el-select
v-model="yesOrNo"
placeholder="请选择货物是否在库"
@ -4187,7 +4191,7 @@ export default {
})
.catch(() => {});
},
abnormalBoxsearchChange(){
abnormalBoxsearchChange() {
this.viewAbnormalLoading(this.toexamineID); //
},
signingReservationPackage(row) {
@ -4219,6 +4223,57 @@ export default {
});
});
},
//
Batchreview() {
if (!this.selectionList.length) {
ElMessage({
message: '请勾选要审核的数据',
type: 'warning',
});
return;
}
let result = this.selectionList.every(item => {
return item.auditingStatusName === '待审核' && item.abnormalTypeName !== '装车异常';
});
if (!result) {
ElMessage({
message: '勾选数据必须满足条件为待审核并且不是装车异常',
type: 'warning',
});
return;
}
ElMessageBox.confirm('是否确认批量审核?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
let ids = this.selectionList.map(item => item.id).join(',');
this.AbnormalReviewloading = true; //
loadingAbnormalPackageListAuditing(ids)
.then(res => {
console.log('res-------->', res);
if (res.data.code == 200) {
this.$message({
type: 'success',
message: '操作成功!',
});
this.AbnormalReviewloading = false; //
console.log();
this.viewAbnormalLoading(this.toexamineID); //
}
})
.catch(error => {
console.log(error, 'error');
})
.finally(() => {
this.AbnormalReviewloading = false; //
});
})
.catch(() => {});
},
//
retention(row) {
ElMessageBox.confirm('是否确认滞留操作?', '提示', {
@ -5398,12 +5453,12 @@ export default {
this.loading = true; //
this.deliveryId = this.$route.query.id;
if(!this.deliveryId){
if (!this.deliveryId) {
ElMessage({
message: '遇到异常,请刷新页面重试',
type: 'warning',
})
return
message: '遇到异常,请刷新页面重试',
type: 'warning',
});
return;
}
const res = await getDetail(this.deliveryId);
@ -5497,7 +5552,7 @@ export default {
align-items: center;
justify-content: center;
}
.abnormalBox_flex{
.abnormalBox_flex {
display: flex;
justify-content: space-between;
}

Loading…
Cancel
Save