Browse Source

待签收,商配增加滞留

dev-xx
马远东 6 months ago
parent
commit
e1fd79266b
  1. 4
      src/api/distribution/distributionDeliveryList.js
  2. 8
      src/api/distribution/distributionSignfor.js
  3. 2
      src/option/distribution/DeliveryExceptionReview.js
  4. 44
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue
  5. 49
      src/views/distribution/signfor/distributionSignfortreat.vue

4
src/api/distribution/distributionDeliveryList.js

@ -389,11 +389,11 @@ export const $_retentionScan = data => {
});
};
//滞留
//滞留(已弃用!)
export const $_retentionSave = data => {
return request({
url: '/api/logpm-distribution/deliveryList/retentionSave',
method: 'post',
data,
});
};
};

8
src/api/distribution/distributionSignfor.js

@ -383,3 +383,11 @@ export const postPageCount = params => {
params,
});
};
//滞留
export const $_retentionScan = data => {
return request({
url: '/api/logpm-distribution/deliveryList/retentionPC',
method: 'post',
data,
});
};

2
src/option/distribution/DeliveryExceptionReview.js

@ -452,7 +452,7 @@ export const AbnormalReview = [
label: '操作',
type: 6,
values: '',
width: '80',
width: '120',
checkarr: [],
fixed: 'right',
sortable: false,

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

@ -883,7 +883,7 @@
<MyPrint :html="html" v-model="dialogVisibleF" width="70%"></MyPrint>
<el-dialog
title="异常装车包件列表"
title="异常包件列表"
v-model="abnormalBox"
width="67%"
append-to-body
@ -922,6 +922,11 @@
@click="RejectFn(slotProps.scope.row)"
>驳回
</el-text>
<el-text
v-if="slotProps.scope.row.auditingStatusName == '已驳回'"
@click="abnormalretention(slotProps.scope.row)"
>滞留
</el-text>
</template>
</template>
</tablecmt>
@ -980,7 +985,6 @@ import {
$_showInventoryPackgeCode,
$_loadingAbnormalPackageListTurnDown,
$_retentionScan,
$_retentionSave,
} from '@/api/distribution/distributionDeliveryList';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
import { exportBlob } from '@/api/common';
@ -4030,7 +4034,7 @@ export default {
});
this.AbnormalReviewloading = false; //
console.log();
this.viewAbnormalLoading(this.toexamineID); //
this.viewAbnormalLoading(this.toexamineID); //
}
});
},
@ -4647,6 +4651,40 @@ export default {
})
.catch(() => {});
},
//
abnormalretention(row) {
ElMessageBox.confirm('是否确认滞留操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
let data = {
barcode: row.packageCode,
deliveryId: row.deliveryListId,
retentionType: '1',
};
this.loading = true;
$_retentionScan(data)
.then(res => {
console.log(res, 'res');
if (res.data.code == 200) {
ElMessage({
message: '滞留成功',
type: 'success',
});
this.viewAbnormalLoading(this.toexamineID); //
}
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {});
},
//
Batchpackages() {
if (!this.selectionList.length) {

49
src/views/distribution/signfor/distributionSignfortreat.vue

@ -176,11 +176,7 @@
@click="handleSign(slotProps.scope.row)"
> </el-text
>
<el-text
size="small"
@click="asurcharge(slotProps.scope.row)"
>附加费</el-text
>
<el-text size="small" @click="asurcharge(slotProps.scope.row)">附加费</el-text>
</template>
<!-- <el-button size="small" type="danger" @click="delectsolt(slotProps.scope)"-->
@ -447,6 +443,13 @@
size="small"
> </el-button
>
<el-button
v-if="scope.row.auditingStatusName === '已驳回'"
@click="retention(scope.row)"
type="text"
size="small"
> </el-button
>
<!-- <el-button type="text" size="small">编辑</el-button>-->
</template>
</el-table-column>
@ -515,6 +518,7 @@ import {
getSignforExport,
numberDetail,
$_isSignt,
$_retentionScan,
} from '@/api/distribution/distributionSignfor';
import { update as updatesign } from '@/api/distribution/distributionSignfor';
import option from '@/option/distribution/distributionSignfor';
@ -1839,8 +1843,8 @@ export default {
}
},
//
asurcharge(row){
console.log(row,'附加费');
asurcharge(row) {
console.log(row, '附加费');
this.$router.push({
path: '/distribution/signfor/asurcharge',
query: {
@ -1989,6 +1993,37 @@ export default {
const { row } = scope;
console.log(row);
},
//
retention(row) {
ElMessageBox.confirm('是否确认滞留操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
let data = {
barcode: row.packageCode,
deliveryId: row.deliveryListId,
retentionType: '1',
};
this.loading = true;
$_retentionScan(data)
.then(res => {
console.log(res, 'res');
if (res.data.code == 200) {
ElMessage({
message: '滞留成功',
type: 'success',
});
this.AbnormalreviewFn(this.abnormalReview);
}
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {});
},
//
auditing(row) {
this.Abnormalloading = true;

Loading…
Cancel
Save