Browse Source

委外退料过期时间获取修改

master
shenzhouyu 1 month ago
parent
commit
f187c41225
  1. 8
      src/views/modules/outsourcing-return/outsourcingReturnPDAIssueList.vue
  2. 20
      src/views/modules/outsourcing-return/outsourcingReturnPDAList.vue
  3. 3
      src/views/modules/production-return/productionReturnPDAIssueList.vue

8
src/views/modules/outsourcing-return/outsourcingReturnPDAIssueList.vue

@ -297,6 +297,8 @@ export default {
locationId: '', locationId: '',
quantity: 0, quantity: 0,
}, },
engChgLevel: '1', //
wdrNo:'', // WDR
} }
}, },
computed: { computed: {
@ -420,7 +422,7 @@ export default {
this.newLabelForm = { this.newLabelForm = {
partNo: this.partNo, partNo: this.partNo,
partDesc: this.orderInfo.description || '', partDesc: this.orderInfo.description || '',
wdrNo: '*',
wdrNo: this.wdrNo || '*',
locationId: '', locationId: '',
quantity: 0, quantity: 0,
} }
@ -460,7 +462,7 @@ export default {
locationId: this.newLabelForm.locationId || '', locationId: this.newLabelForm.locationId || '',
warehouseId: '', warehouseId: '',
wdrNo: this.newLabelForm.wdrNo || '*', wdrNo: this.newLabelForm.wdrNo || '*',
engChgLevel: '1',
engChgLevel: this.engChgLevel || '1',
height: Number(this.newLabelForm.height) || 0, height: Number(this.newLabelForm.height) || 0,
newPrint: 'NEW', newPrint: 'NEW',
}) })
@ -724,6 +726,8 @@ export default {
this.unissureQty = this.$route.query.material.unissureQty this.unissureQty = this.$route.query.material.unissureQty
this.itemNo = this.$route.query.material.itemNo this.itemNo = this.$route.query.material.itemNo
this.qtyReversed = this.$route.query.material.qtyReversedBy || 0 this.qtyReversed = this.$route.query.material.qtyReversedBy || 0
this.engChgLevel = this.$route.query.material.engChgLevel || '1'
this.wdrNo = this.$route.query.material.wdrNo || '*'
if (!this.orderNo) { if (!this.orderNo) {
this.$message.error('参数错误') this.$message.error('参数错误')

20
src/views/modules/outsourcing-return/outsourcingReturnPDAList.vue

@ -16,7 +16,7 @@
<label class="title-label">物料编码:{{ partNo }}</label> <label class="title-label">物料编码:{{ partNo }}</label>
</div> </div>
<div class="card-title"> <div class="card-title">
<label class="title-label">可退数量:{{ unissureQty }}</label>
<label class="title-label">可退数量:{{ formatQty(unissureQty) }}</label>
</div> </div>
</div> </div>
<div class="content-area"> <div class="content-area">
@ -38,15 +38,15 @@
<div class="card-details"> <div class="card-details">
<div class="detail-item"> <div class="detail-item">
<div class="detail-label">发料数量</div> <div class="detail-label">发料数量</div>
<div class="detail-value">{{ item.QUANTITY }}</div>
<div class="detail-value">{{ formatQty(item.QUANTITY) }}</div>
</div> </div>
<div class="detail-item"> <div class="detail-item">
<div class="detail-label">已退数量</div> <div class="detail-label">已退数量</div>
<div class="detail-value">{{ item.QTY_REVERSED || 0 }}</div>
<div class="detail-value">{{ formatQty(item.QTY_REVERSED || 0) }}</div>
</div> </div>
<div class="detail-item"> <div class="detail-item">
<div class="detail-label">可退数量</div> <div class="detail-label">可退数量</div>
<div class="detail-value">{{ item.QUANTITY - (item.QTY_REVERSED || 0) }}</div>
<div class="detail-value">{{ formatQty(item.QUANTITY - (item.QTY_REVERSED || 0)) }}</div>
</div> </div>
</div> </div>
</div> </div>
@ -166,13 +166,23 @@ export default {
ifsTransactionID: item.TRANSACTION_ID, ifsTransactionID: item.TRANSACTION_ID,
quantity: item.QUANTITY, quantity: item.QUANTITY,
batchNo: item.LOT_BATCH_NO, batchNo: item.LOT_BATCH_NO,
unissureQty: this.unissureQty,
unissureQty: item.QUANTITY - (item.QTY_REVERSED || 0) ,
ifsAccountingID:item.ACCOUNTING_ID, ifsAccountingID:item.ACCOUNTING_ID,
qtyReversed:item.QTY_REVERSED || 0, qtyReversed:item.QTY_REVERSED || 0,
engChgLevel:item.ENG_CHG_LEVEL || '1',
wdrNo:item.WAIV_DEV_REJ_NO || '*',
} }
}, },
}); });
}, },
//
formatQty(value) {
const num = Number(value || 0);
if (Number.isNaN(num)) {
return value;
}
return num.toFixed(3).replace(/\.?0+$/, '');
},
}, },
mounted() { mounted() {
// //

3
src/views/modules/production-return/productionReturnPDAIssueList.vue

@ -449,6 +449,7 @@ export default {
releaseNo:'', releaseNo:'',
sequenceNo:'', sequenceNo:'',
enablePrint: true, // enablePrint: true, //
engChgLevel: '1', // 1
} }
}, },
computed: { computed: {
@ -647,7 +648,7 @@ export default {
locationId: this.newLabelForm.locationId || '', locationId: this.newLabelForm.locationId || '',
warehouseId: '', warehouseId: '',
wdrNo: this.newLabelForm.wdrNo || '*', wdrNo: this.newLabelForm.wdrNo || '*',
engChgLevel: '1',
engChgLevel: this.engChgLevel,
height: Number(this.newLabelForm.height) || 0, height: Number(this.newLabelForm.height) || 0,
newPrint: 'NEW', newPrint: 'NEW',
}) })

Loading…
Cancel
Save