|
|
|
@ -98,8 +98,8 @@ |
|
|
|
<span class="card-value">{{ label.labelCode }}</span> |
|
|
|
</div> |
|
|
|
<div class="card-row"> |
|
|
|
<span class="card-label">物料号:</span> |
|
|
|
<span class="card-value">{{ label.partNo || '-' }}</span> |
|
|
|
<span class="card-label">批次号:</span> |
|
|
|
<span class="card-value">{{ label.batchNo}}</span> |
|
|
|
</div> |
|
|
|
<div class="card-row"> |
|
|
|
<span class="card-label">库位号:</span> |
|
|
|
@ -112,6 +112,11 @@ |
|
|
|
<div class="card-row"> |
|
|
|
<span class="card-label">退料数量:</span> |
|
|
|
<span class="card-value highlight">{{ label.quantity || 0 }}</span> |
|
|
|
|
|
|
|
<span class="card-label">是否被占用:</span> |
|
|
|
<span class="card-value" :class="{ 'is-occupied': label.isInWh === 'Y' }"> |
|
|
|
{{ label.isInWh === 'Y' ? '是' : '否' }} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -296,6 +301,7 @@ import { |
|
|
|
scanMaterialLabel, |
|
|
|
productionReturnConfirm, |
|
|
|
printLabelCommon, |
|
|
|
getMaterialLabelByIssueDetail |
|
|
|
} from '@/api/production/production-return' |
|
|
|
import moment from 'moment' |
|
|
|
|
|
|
|
@ -349,6 +355,7 @@ export default { |
|
|
|
wdrNo: '', |
|
|
|
engChgLevel: '', |
|
|
|
enablePrint: true, // 是否打印标签,默认勾选 |
|
|
|
umId: '', |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -682,6 +689,17 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// 从 labelList 中移除 isInWh 为 'Y' 且 quantity 为 0 的标签 |
|
|
|
this.labelList = this.labelList.filter((label) => { |
|
|
|
return !(label.isInWh === 'Y' && (Number(label.quantity) === 0 || !label.quantity)); |
|
|
|
}); |
|
|
|
|
|
|
|
// 如果过滤后没有标签了,提示用户 |
|
|
|
if (this.labelList.length === 0) { |
|
|
|
this.$message.warning('没有可退料的标签') |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
const returnParams = { |
|
|
|
site: localStorage.getItem('site'), |
|
|
|
workOrderNo: this.orderNo, |
|
|
|
@ -697,6 +715,7 @@ export default { |
|
|
|
lineItemNo:this.lineItemNo, |
|
|
|
releaseNo: this.releaseNo, |
|
|
|
sequenceNo: this.sequenceNo, |
|
|
|
umId: this.umId, |
|
|
|
// 退料标签列表 |
|
|
|
selectedMaterials: this.labelList.map((label) => ({ |
|
|
|
labelCode: label.labelCode, |
|
|
|
@ -711,6 +730,8 @@ export default { |
|
|
|
newPrint: label.newPrint || 'OLD', |
|
|
|
})), |
|
|
|
} |
|
|
|
console.log(returnParams); |
|
|
|
|
|
|
|
this.loading = true |
|
|
|
|
|
|
|
productionReturnConfirm(returnParams) |
|
|
|
@ -833,6 +854,19 @@ export default { |
|
|
|
this.orderInfo.quantity = this.quantity |
|
|
|
this.orderInfo.componentPartDesc = this.componentPartDesc |
|
|
|
this.orderInfo.qtyReversed = this.qtyReversed |
|
|
|
|
|
|
|
const paramdetail = { |
|
|
|
workOrderNo: this.orderNo, |
|
|
|
batchNo: this.batchNo, |
|
|
|
site: localStorage.getItem('site'), |
|
|
|
partNo: this.componentPartNo, |
|
|
|
quantity:this.quantity |
|
|
|
} |
|
|
|
getMaterialLabelByIssueDetail(paramdetail).then(({data}) =>{ |
|
|
|
if(data.code == 0){ |
|
|
|
this.labelList = data.labelInfo |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
addWmsLabel() { |
|
|
|
if (!this.printData.materialCode1.trim()) { |
|
|
|
@ -878,6 +912,7 @@ export default { |
|
|
|
this.sequenceNo = this.$route.query.sequenceNo |
|
|
|
this.wdrNo = this.$route.query.wdrNo |
|
|
|
this.engChgLevel = this.$route.query.engChgLevel |
|
|
|
this.umId = this.$route.query.umId |
|
|
|
console.log( |
|
|
|
'订单号:', |
|
|
|
this.orderNo, |
|
|
|
@ -1353,6 +1388,12 @@ export default { |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
|
|
|
|
.card-value.is-occupied { |
|
|
|
color: #ff4949; |
|
|
|
font-weight: bold; |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
|
|
|
|
.empty-labels { |
|
|
|
padding: 40px 20px; |
|
|
|
text-align: center; |
|
|
|
|