Browse Source

2025-08-27 pda其他出库优化

master
fengyuan_yang 5 months ago
parent
commit
582784aea9
  1. 13
      src/views/modules/other-inout/otherOutboundDetail.vue
  2. 4
      src/views/modules/other-inout/otherOutboundList.vue

13
src/views/modules/other-inout/otherOutboundDetail.vue

@ -131,7 +131,7 @@
<div class="col-no">NO.</div>
<div class="col-material-code">物料编码</div>
<div class="col-required-qty">需求数量</div>
<div class="col-available-qty">可用数量</div>
<div class="col-available-qty">出库数量</div>
</div>
<div class="table-body">
@ -209,7 +209,6 @@ export default {
site: localStorage.getItem('site'),
buNo: this.buNo
};
validateLabelWithOutbound(params).then(({ data }) => {
if (data && data.code === 0) {
//
@ -218,16 +217,15 @@ export default {
this.$message.warning('该标签已扫描,请勿重复扫描');
return;
}
//
this.labelList.unshift({
id: Date.now(),
labelCode: labelCode,
partNo: data.data.partNo,
quantity: data.data.quantity,
batchNo: data.data.batchNo
batchNo: data.data.batchNo,
locationId: data.data.locationId
});
this.$message.success('操作成功');
} else {
this.$message.error(data.msg || '该标签与出库单不符,请检查');
@ -255,7 +253,6 @@ export default {
this.$message.warning('请先扫描标签');
return;
}
const params = {
site: this.outboundInfo.site,
buNo: this.outboundInfo.buNo,
@ -265,10 +262,10 @@ export default {
labelCode: label.labelCode,
partNo: label.partNo,
quantity: label.quantity,
batchNo: label.batchNo
batchNo: label.batchNo,
locationId: label.locationId
}))
};
confirmOtherOutbound(params).then(({ data }) => {
if (data && data.code === 0) {
this.$message.success('出库成功');

4
src/views/modules/other-inout/otherOutboundList.vue

@ -104,14 +104,12 @@ export default {
this.$message.error('请先选择仓库');
return;
}
this.loading = true;
const params = {
warehouseId: currentWarehouse,
site: localStorage.getItem('site'),
status: '待出库',
};
getOtherOutboundList(params).then(({ data }) => {
this.loading = false;
if (data && data.code === 0) {
@ -133,7 +131,6 @@ export default {
this.$message.error('请先选择仓库');
return;
}
this.loading = true;
const params = {
warehouseId: currentWarehouse,
@ -141,7 +138,6 @@ export default {
site: localStorage.getItem('site'),
status: '待出库'
};
getOtherOutboundList(params).then(({ data }) => {
this.loading = false;
if (data && data.code === 0) {

Loading…
Cancel
Save