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

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

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

Loading…
Cancel
Save