|
|
|
@ -38,8 +38,18 @@ |
|
|
|
<!-- 物料信息卡片 --> |
|
|
|
<div class="material-info-card" v-if="materialInfo.inboundNo"> |
|
|
|
<div class="card-title"> |
|
|
|
<span class="title-label">入库单号</span> |
|
|
|
<span class="title-value">{{ materialInfo.inboundNo }}</span> |
|
|
|
<div class="title-item"> |
|
|
|
<span class="title-label">入库单号</span> |
|
|
|
<span class="title-value">{{ materialInfo.inboundNo }}</span> |
|
|
|
</div> |
|
|
|
<div class="title-item"> |
|
|
|
<span class="title-label">关联单号</span> |
|
|
|
<span class="title-value">{{ materialInfo.relatedOrderNo || '-' }}</span> |
|
|
|
</div> |
|
|
|
<div class="title-item"> |
|
|
|
<span class="title-label">行号</span> |
|
|
|
<span class="title-value">{{ materialInfo.relatedOrderLineNo || '-' }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="card-details"> |
|
|
|
@ -57,7 +67,7 @@ |
|
|
|
</div> |
|
|
|
<div class="detail-item"> |
|
|
|
<div class="detail-label">批次号</div> |
|
|
|
<div class="detail-value">{{ materialInfo.batchNo }}</div> |
|
|
|
<div class="detail-value">{{ materialInfo.batchNo || '-' }}</div> |
|
|
|
</div> |
|
|
|
<div class="detail-item"> |
|
|
|
<div class="detail-label">检验日期</div> |
|
|
|
@ -279,6 +289,8 @@ export default { |
|
|
|
labelList: [], |
|
|
|
inboundNo: '', |
|
|
|
partNo: '', |
|
|
|
relatedOrderNo: '', |
|
|
|
relatedOrderLineNo: '', |
|
|
|
showLocationDialog: false, |
|
|
|
locationCode: '', |
|
|
|
showMaterialDialog: false, |
|
|
|
@ -325,7 +337,9 @@ export default { |
|
|
|
site: this.materialInfo.site, |
|
|
|
buNo: this.materialInfo.buNo, |
|
|
|
operationType: 'I', // I表示添加 |
|
|
|
warehouseId: getCurrentWarehouse() // 当前仓库 |
|
|
|
warehouseId: getCurrentWarehouse(), // 当前仓库 |
|
|
|
relatedOrderNo: this.relatedOrderNo, |
|
|
|
relatedOrderLineNo: this.relatedOrderLineNo |
|
|
|
}; |
|
|
|
|
|
|
|
validateLabelWithInbound(params).then(({ data }) => { |
|
|
|
@ -350,7 +364,9 @@ export default { |
|
|
|
site: this.materialInfo.site, |
|
|
|
buNo: this.materialInfo.buNo, |
|
|
|
operationType: 'D', // D表示移除 |
|
|
|
warehouseId: getCurrentWarehouse() // 当前仓库 |
|
|
|
warehouseId: getCurrentWarehouse(), // 当前仓库 |
|
|
|
relatedOrderNo: this.relatedOrderNo, |
|
|
|
relatedOrderLineNo: this.relatedOrderLineNo |
|
|
|
}; |
|
|
|
|
|
|
|
validateLabelWithInbound(params).then(({ data }) => { |
|
|
|
@ -403,7 +419,9 @@ export default { |
|
|
|
site: this.materialInfo.site, |
|
|
|
buNo: this.materialInfo.buNo, |
|
|
|
inboundNo: this.inboundNo, |
|
|
|
locationCode: this.locationCode.trim() |
|
|
|
locationCode: this.locationCode.trim(), |
|
|
|
relatedOrderNo: this.relatedOrderNo, |
|
|
|
relatedOrderLineNo: this.relatedOrderLineNo |
|
|
|
}; |
|
|
|
confirmInboundStorage(params).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -568,7 +586,9 @@ export default { |
|
|
|
partNo: this.partNo, |
|
|
|
buNo: this.buNo, |
|
|
|
warehouseId: getCurrentWarehouse(), |
|
|
|
site:localStorage.getItem('site'), |
|
|
|
site: localStorage.getItem('site'), |
|
|
|
relatedOrderNo: this.relatedOrderNo, |
|
|
|
relatedOrderLineNo: this.relatedOrderLineNo |
|
|
|
}; |
|
|
|
|
|
|
|
getInboundDetails(params).then(({ data }) => { |
|
|
|
@ -620,6 +640,10 @@ export default { |
|
|
|
// 获取路由参数 |
|
|
|
this.inboundNo = this.$route.params.inboundNo; |
|
|
|
this.buNo = this.$route.params.buNo; |
|
|
|
this.relatedOrderNo = this.$route.params.relatedOrderNo || ''; |
|
|
|
this.relatedOrderLineNo = this.$route.params.relatedOrderLineNo || ''; |
|
|
|
this.partNo = this.$route.params.partNo || ''; |
|
|
|
|
|
|
|
if (!this.inboundNo || !this.buNo) { |
|
|
|
this.$message.error('参数错误'); |
|
|
|
this.$router.back(); |
|
|
|
@ -806,23 +830,39 @@ export default { |
|
|
|
|
|
|
|
/* 卡片标题 */ |
|
|
|
.card-title { |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: flex-end; |
|
|
|
margin-bottom: 16px; |
|
|
|
gap: 8px; |
|
|
|
} |
|
|
|
|
|
|
|
.title-item { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
flex: 1; |
|
|
|
} |
|
|
|
|
|
|
|
.title-item:first-child { |
|
|
|
flex: 1.5; |
|
|
|
} |
|
|
|
|
|
|
|
.title-label { |
|
|
|
font-size: 11px; |
|
|
|
color: #999; |
|
|
|
display: block; |
|
|
|
margin-bottom: 6px; |
|
|
|
font-weight: normal; |
|
|
|
margin-bottom: 4px; |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
|
|
|
|
.title-value { |
|
|
|
font-size: 18px; |
|
|
|
font-size: 13px; |
|
|
|
font-weight: bold; |
|
|
|
color: #333; |
|
|
|
line-height: 1.2; |
|
|
|
margin-left: 20px; |
|
|
|
word-break: break-all; |
|
|
|
} |
|
|
|
|
|
|
|
.title-item:first-child .title-value { |
|
|
|
font-size: 15px; |
|
|
|
} |
|
|
|
|
|
|
|
/* 卡片详情 */ |
|
|
|
|