|
@ -171,7 +171,9 @@ |
|
|
workStationCode: "", |
|
|
workStationCode: "", |
|
|
planDate: '', |
|
|
planDate: '', |
|
|
showDateSelect:false, |
|
|
showDateSelect:false, |
|
|
planDateList:[] |
|
|
planDateList:[], |
|
|
|
|
|
fgLocationCode:"", |
|
|
|
|
|
rawLocationCode:"" |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
@ -216,6 +218,8 @@ |
|
|
this.planDate="" |
|
|
this.planDate="" |
|
|
this.showDateSelect =false |
|
|
this.showDateSelect =false |
|
|
this.planDateList=[] |
|
|
this.planDateList=[] |
|
|
|
|
|
this.fgLocationCode="" |
|
|
|
|
|
this.rawLocationCode="" |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -269,8 +273,9 @@ |
|
|
planQty: this.planQty, |
|
|
planQty: this.planQty, |
|
|
goodQty: this.goodQty, |
|
|
goodQty: this.goodQty, |
|
|
planNumber: this.planNumber, |
|
|
planNumber: this.planNumber, |
|
|
workStationCode: this.workStationCode |
|
|
workStationCode: this.workStationCode, |
|
|
|
|
|
fgLocationCode:this.fgLocationCode, |
|
|
|
|
|
rawLocationCode:this.rawLocationCode |
|
|
}; |
|
|
}; |
|
|
this.closeRequestPopup(); |
|
|
this.closeRequestPopup(); |
|
|
this.$emit("confirm", item); |
|
|
this.$emit("confirm", item); |
|
@ -289,6 +294,9 @@ |
|
|
this.productionLineName = data[0].label + "—" + data[1].label |
|
|
this.productionLineName = data[0].label + "—" + data[1].label |
|
|
this.productionLineCode = data[0].value |
|
|
this.productionLineCode = data[0].value |
|
|
this.workStationCode = data[1].value |
|
|
this.workStationCode = data[1].value |
|
|
|
|
|
var parent =this.productLineList.filter(res=>res.value==this.productionLineCode) |
|
|
|
|
|
var fgLocation =parent[0].children.filter(children=>children.value==this.workStationCode) |
|
|
|
|
|
this.fgLocationCode= fgLocation[0].fgLocationCode; |
|
|
this.clearItemCode() |
|
|
this.clearItemCode() |
|
|
this.clearPackUnit() |
|
|
this.clearPackUnit() |
|
|
|
|
|
|
|
@ -360,8 +368,7 @@ |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
if (res.data && res.data.length > 0) { |
|
|
if (res.data && res.data.length > 0) { |
|
|
res.data.forEach(item => { |
|
|
res.data.forEach(item => { |
|
|
item.label = item.itemCode + "(" + item.planQty + this.getUomInfo(item.uom) + ")" + "(" + |
|
|
item.label = item.itemCode + "(" + item.planQty + this.getUomInfo(item.uom) + ")" |
|
|
dateFormatData(item.planDate) + ")" |
|
|
|
|
|
item.value = item |
|
|
item.value = item |
|
|
}) |
|
|
}) |
|
|
this.itemCodeList = res.data |
|
|
this.itemCodeList = res.data |
|
@ -385,6 +392,26 @@ |
|
|
|
|
|
|
|
|
//清除其他数据 |
|
|
//清除其他数据 |
|
|
this.clearPackUnit(); |
|
|
this.clearPackUnit(); |
|
|
|
|
|
uni.showLoading({ |
|
|
|
|
|
title: "加载中", |
|
|
|
|
|
mask: true |
|
|
|
|
|
}) |
|
|
|
|
|
getPackUnitByItemCode(this.itemCode).then(res => { |
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
if (res.data && res.data.list.length > 0) { |
|
|
|
|
|
res.data.list.forEach(item => { |
|
|
|
|
|
item.value = item.packUnit |
|
|
|
|
|
item.label = getPackUnitName(item.packUnit) + "(" + item.packQty + this |
|
|
|
|
|
.getUomInfo(item.uom) + ")"; |
|
|
|
|
|
}) |
|
|
|
|
|
this.packUnitList = res.data.list |
|
|
|
|
|
var defaultData =res.data.list.filter(item=>item.defaultPackageunit=="TRUE") |
|
|
|
|
|
this.confirmSelectPackUnit(defaultData) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
clearPackUnit(){ |
|
|
clearPackUnit(){ |
|
|