|
|
@ -22,7 +22,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="item-list" v-if="poList.length > 0" style="margin: 2px;"> |
|
|
<div class="item-list" v-if="poList.length > 0" style="margin: 2px;"> |
|
|
<el-form label-position="top" style="margin: 3px;"> |
|
|
<el-form label-position="top" style="margin: 3px;"> |
|
|
<el-row :gutter="5" @click.native="recvLine(poDetail)" |
|
|
|
|
|
|
|
|
<el-row :gutter="5" |
|
|
v-for="(poDetail, index) in poList" :key="index" :class="index < poList.length - 1 ? 'bottom-line-row' : ''"> |
|
|
v-for="(poDetail, index) in poList" :key="index" :class="index < poList.length - 1 ? 'bottom-line-row' : ''"> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item label="商品编码"><span>{{ poDetail.partNo }}</span></el-form-item> |
|
|
<el-form-item label="商品编码"><span>{{ poDetail.partNo }}</span></el-form-item> |
|
|
@ -175,7 +175,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { getPoList, receivePo, printLabel, getNextItemNo, validateLocationForReceiveCase } from "@/api/po/po.js"; |
|
|
|
|
|
|
|
|
import { getPoList, receivePo, printLabel, getNextItemNo, validateLocationForReceiveCase,getPartAttributeInfo } from "@/api/po/po.js"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
@ -301,6 +301,17 @@ export default { |
|
|
console.error('获取itemNo失败:', error); |
|
|
console.error('获取itemNo失败:', error); |
|
|
// 失败时使用默认值1 |
|
|
// 失败时使用默认值1 |
|
|
} |
|
|
} |
|
|
|
|
|
let site = this.site; |
|
|
|
|
|
let partNo = row.partNo; |
|
|
|
|
|
let height = ''; |
|
|
|
|
|
try { |
|
|
|
|
|
const { data } = await getPartAttributeInfo({ site, partNo }); |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
height = data.data.height; |
|
|
|
|
|
} |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.error('获取物料高度失败:', error); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.recvItem = { |
|
|
this.recvItem = { |
|
|
...row, |
|
|
...row, |
|
|
@ -313,7 +324,7 @@ export default { |
|
|
arrivalDate: this.getCurrentDate(), |
|
|
arrivalDate: this.getCurrentDate(), |
|
|
supplierBatchNo: '', |
|
|
supplierBatchNo: '', |
|
|
wdr:"*", |
|
|
wdr:"*", |
|
|
height: '', |
|
|
|
|
|
|
|
|
height: height, |
|
|
}; |
|
|
}; |
|
|
this.processFlag = 2; |
|
|
this.processFlag = 2; |
|
|
}, |
|
|
}, |
|
|
|