feat pda 退料入库
This commit is contained in:
parent
6bc1cfc026
commit
7bdfffc953
@ -114,18 +114,17 @@
|
|||||||
|
|
||||||
<text class="card-description"> 料号: {{ item.MATERIALSPECNAME }}</text>
|
<text class="card-description"> 料号: {{ item.MATERIALSPECNAME }}</text>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<!-- <div>
|
||||||
<text class="card-description"> 阶段: {{ item.PHASE }}</text>
|
<text class="card-description"> 阶段: {{ item.PHASE }}</text>
|
||||||
|
|
||||||
<text class="card-description"> 实际规格: {{ item.TRUEGG }}</text>
|
<text class="card-description"> 实际规格: {{ item.TRUEGG }}</text>
|
||||||
</div>
|
</div> -->
|
||||||
<div>
|
<div>
|
||||||
<text class="card-description"> 系统数量: {{ item.TOTALQTY }} {{ item.UNIT }}</text>
|
<text class="card-description"> 系统数量: {{ item.TOTALQTY }} {{ item.UNIT }}</text>
|
||||||
|
|
||||||
<!-- <text class="card-description"> 备货数量: {{ item.ASSIGNEDQUANTITY }}
|
<!-- <text class="card-description"> 备货数量: {{ item.ASSIGNEDQUANTITY }}
|
||||||
{{ item.UNIT }}</text> -->
|
{{ item.UNIT }}</text> -->
|
||||||
<text class="card-description"> 已扫描数量: {{ item.HAVEQUANTITY }}
|
<text class="card-description"> 已扫描数量: {{ item.HAVEQUANTITY }} {{ item.UNIT }}</text>
|
||||||
{{ item.UNIT }}</text>
|
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -144,8 +143,8 @@
|
|||||||
<div>
|
<div>
|
||||||
<text class="card-description"> 料号: {{ item.MATERIALSPECNAME }}</text>
|
<text class="card-description"> 料号: {{ item.MATERIALSPECNAME }}</text>
|
||||||
|
|
||||||
<text class="card-description"> 规格: {{ item.SPECNAME }}</text>
|
<!-- <text class="card-description"> 规格: {{ item.SPECNAME }}</text>
|
||||||
|
-->
|
||||||
<text class="card-description"> 阶段: {{ item.PHASE }}</text>
|
<text class="card-description"> 阶段: {{ item.PHASE }}</text>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -153,13 +152,13 @@
|
|||||||
|
|
||||||
<text class="card-description"> 数量: {{ item.MATERIALQUANTITY }} {{ item.UNIT }}</text>
|
<text class="card-description"> 数量: {{ item.MATERIALQUANTITY }} {{ item.UNIT }}</text>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<!-- <div>
|
||||||
<text class="card-description"> 组织: {{ item.ERPFACTORY }}</text>
|
<text class="card-description"> 组织: {{ item.ERPFACTORY }}</text>
|
||||||
|
|
||||||
<text class="card-description"> 仓库: {{ item.ERPLOCATION }}</text>
|
<text class="card-description"> 仓库: {{ item.ERPLOCATION }}</text>
|
||||||
|
|
||||||
<text class="card-description"> 货位: {{ item.LOCATIONNAME }}</text>
|
<text class="card-description"> 货位: {{ item.LOCATIONNAME }}</text>
|
||||||
</div>
|
</div> -->
|
||||||
<!-- <div>
|
<!-- <div>
|
||||||
<text class="card-description" v-if="isFolded[index]" @click.stop>点击折叠</text>
|
<text class="card-description" v-if="isFolded[index]" @click.stop>点击折叠</text>
|
||||||
<text class="card-description" v-else @click.stop>点击展开</text>
|
<text class="card-description" v-else @click.stop>点击展开</text>
|
||||||
@ -550,7 +549,7 @@
|
|||||||
})
|
})
|
||||||
this.$playFail()
|
this.$playFail()
|
||||||
return;
|
return;
|
||||||
}
|
}/*
|
||||||
if (this.ERPFACTORY == null || this.ERPFACTORY == "") {
|
if (this.ERPFACTORY == null || this.ERPFACTORY == "") {
|
||||||
this.$showMessage("请选择组织!");
|
this.$showMessage("请选择组织!");
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@ -570,7 +569,7 @@
|
|||||||
})
|
})
|
||||||
this.$playFail()
|
this.$playFail()
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
var barCodeArr = this.MATERIALPACKINGNAME.split("|");
|
var barCodeArr = this.MATERIALPACKINGNAME.split("|");
|
||||||
// 470110856|1|C|75mm*1000m|SHBP01JT1202305240009|20230524|11|75
|
// 470110856|1|C|75mm*1000m|SHBP01JT1202305240009|20230524|11|75
|
||||||
@ -588,19 +587,20 @@
|
|||||||
var materialSpecName = barCodeArr[0];
|
var materialSpecName = barCodeArr[0];
|
||||||
|
|
||||||
this.$MyRequest('/ProduceReturn/getBarCode', {
|
this.$MyRequest('/ProduceReturn/getBarCode', {
|
||||||
MATERIALPACKINGNAME: this.MATERIALPACKINGNAME,
|
MATERIALPACKINGNAME: this.MATERIALPACKINGNAME/* ,
|
||||||
ERPLOCATION: this.ERPLOCATION,
|
ERPLOCATION: this.ERPLOCATION,
|
||||||
ERPFACTORY: this.ERPFACTORY,
|
ERPFACTORY: this.ERPFACTORY,
|
||||||
LOCATIONNAME: this.LOCATIONNAME,
|
LOCATIONNAME: this.LOCATIONNAME,
|
||||||
materialSpecName: materialSpecName
|
materialSpecName: materialSpecName */
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
var _Arr = res.data.resultObj;
|
var _Arr = res.data.resultObj;
|
||||||
// res.data.resultObj[0]
|
// res.data.resultObj[0]
|
||||||
|
|
||||||
let PakageList = res.data.resultObj?.list2[0];
|
let PakageList = res.data.resultObj?.list2[0];
|
||||||
let orderList = res.data.resultObj?.list4;
|
let orderList = res.data.resultObj?.list4[0];
|
||||||
this.BoxListInfo.unshift(PakageList);
|
this.BoxListInfo.unshift(PakageList);
|
||||||
|
this.sumList.unshift(orderList);
|
||||||
this.MATERIALPACKINGQTY = 0
|
this.MATERIALPACKINGQTY = 0
|
||||||
this.MATERIALPACKINGNUMBER = 0
|
this.MATERIALPACKINGNUMBER = 0
|
||||||
for (let i = 0; i < this.BoxListInfo.length; i++) {
|
for (let i = 0; i < this.BoxListInfo.length; i++) {
|
||||||
@ -638,13 +638,13 @@
|
|||||||
// // }
|
// // }
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
console.log('orderList',orderList)
|
/* console.log('orderList',orderList)
|
||||||
for (let i = 0; i < this.BoxListInfo.length; i++) {
|
for (let i = 0; i < this.BoxListInfo.length; i++) {
|
||||||
if (this.sumList.every(el => ((el.RECEIVEREQUESTNAME != this.BoxListInfo[i].RECEIVEREQUESTNAME)))) {
|
if (this.sumList.every(el => ((el.RECEIVEREQUESTNAME != this.BoxListInfo[i].RECEIVEREQUESTNAME)))) {
|
||||||
console.log(111)
|
console.log(111)
|
||||||
this.sumList = [...this.sumList,...orderList]
|
this.sumList = [...this.sumList,...orderList]
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
this.sumList.map(val => {
|
this.sumList.map(val => {
|
||||||
if((val.RECEIVEREQUESTNAME == PakageList.RECEIVEREQUESTNAME && val.MATERIALSPECNAME == PakageList.MATERIALSPECNAME)) {
|
if((val.RECEIVEREQUESTNAME == PakageList.RECEIVEREQUESTNAME && val.MATERIALSPECNAME == PakageList.MATERIALSPECNAME)) {
|
||||||
val.HAVEQUANTITY = cals.add(val.HAVEQUANTITY,PakageList.MATERIALQUANTITY).toNumber()
|
val.HAVEQUANTITY = cals.add(val.HAVEQUANTITY,PakageList.MATERIALQUANTITY).toNumber()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user