|
@ -158,7 +158,7 @@ |
|
|
showProductLineSelect: false, |
|
|
showProductLineSelect: false, |
|
|
productLineList: [], |
|
|
productLineList: [], |
|
|
productionLineName: "请选择生产线", |
|
|
productionLineName: "请选择生产线", |
|
|
productionLineCode: "", |
|
|
productLineCode: "", |
|
|
batch: "", |
|
|
batch: "", |
|
|
packUnitName: "请选择包装规格", |
|
|
packUnitName: "请选择包装规格", |
|
|
packUnit: "", |
|
|
packUnit: "", |
|
@ -194,7 +194,7 @@ |
|
|
openRequestPopup() { |
|
|
openRequestPopup() { |
|
|
this.initData(); |
|
|
this.initData(); |
|
|
this.planDate = getCurrDate() |
|
|
this.planDate = getCurrDate() |
|
|
this.batch = getBatch8() |
|
|
this.batch =this.planDate.replace('-','') |
|
|
this.$refs.popup.open('bottom') |
|
|
this.$refs.popup.open('bottom') |
|
|
}, |
|
|
}, |
|
|
initData() { |
|
|
initData() { |
|
@ -208,7 +208,7 @@ |
|
|
this.showProductLineSelect = false |
|
|
this.showProductLineSelect = false |
|
|
this.productLineList = [] |
|
|
this.productLineList = [] |
|
|
this.productionLineName = "请选择生产线" |
|
|
this.productionLineName = "请选择生产线" |
|
|
this.productionLineCode = "" |
|
|
this.productLineCode = "" |
|
|
this.batch = "" |
|
|
this.batch = "" |
|
|
this.packUnitName = "请选择包装规格" |
|
|
this.packUnitName = "请选择包装规格" |
|
|
this.packUnit = "", |
|
|
this.packUnit = "", |
|
@ -271,7 +271,7 @@ |
|
|
callback() { |
|
|
callback() { |
|
|
let item = { |
|
|
let item = { |
|
|
productionLineName: "", |
|
|
productionLineName: "", |
|
|
productionLineCode: this.productLineCode, //生产线 |
|
|
productionLine: this.productLineCode, //生产线 |
|
|
itemCode: this.itemCode, |
|
|
itemCode: this.itemCode, |
|
|
itemName: this.itemName, |
|
|
itemName: this.itemName, |
|
|
uom: this.getUomInfo(this.uom), |
|
|
uom: this.getUomInfo(this.uom), |
|
@ -303,9 +303,9 @@ |
|
|
|
|
|
|
|
|
confirmSelectLine(data) { |
|
|
confirmSelectLine(data) { |
|
|
this.productionLineName = data[0].label + "—" + data[1].label |
|
|
this.productionLineName = data[0].label + "—" + data[1].label |
|
|
this.productionLineCode = data[0].value |
|
|
this.productLineCode = data[0].value |
|
|
this.workStationCode = data[1].value |
|
|
this.workStationCode = data[1].value |
|
|
var parent = this.productLineList.filter(res => res.value == this.productionLineCode) |
|
|
var parent = this.productLineList.filter(res => res.value == this.productLineCode) |
|
|
var fgLocation = parent[0].children.filter(children => children.value == this.workStationCode) |
|
|
var fgLocation = parent[0].children.filter(children => children.value == this.workStationCode) |
|
|
this.fgLocationCode = fgLocation[0].fgLocationCode; |
|
|
this.fgLocationCode = fgLocation[0].fgLocationCode; |
|
|
this.workshop = parent[0].workshop; |
|
|
this.workshop = parent[0].workshop; |
|
@ -365,7 +365,7 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
showSelectItemCode() { |
|
|
showSelectItemCode() { |
|
|
if (!this.productionLineCode) { |
|
|
if (!this.productLineCode) { |
|
|
this.showErrorMessage('请先选择生产线'); |
|
|
this.showErrorMessage('请先选择生产线'); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -373,7 +373,7 @@ |
|
|
title: "加载中", |
|
|
title: "加载中", |
|
|
mask: true |
|
|
mask: true |
|
|
}) |
|
|
}) |
|
|
getBomVersionByProductionline(this.productionLineCode).then(res => { |
|
|
getBomVersionByProductionline(this.productLineCode).then(res => { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
if (res.data && res.data.length > 0) { |
|
|
if (res.data && res.data.length > 0) { |
|
|
this.itemCodeList = res.data |
|
|
this.itemCodeList = res.data |
|
|