|
@ -19,7 +19,7 @@ |
|
|
<view class="" style="margin-left: 20rpx;"> |
|
|
<view class="" style="margin-left: 20rpx;"> |
|
|
{{positionInfo}} |
|
|
{{positionInfo}} |
|
|
</view> |
|
|
</view> |
|
|
<u-select v-model="show" mode="mutil-column-auto" :list="list" |
|
|
<u-select v-model="show" mode="mutil-column-auto" :list="positionList" |
|
|
@confirm="confirmSelect"></u-select> |
|
|
@confirm="confirmSelect"></u-select> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -70,7 +70,8 @@ |
|
|
import { |
|
|
import { |
|
|
getBasicLocationByCode, |
|
|
getBasicLocationByCode, |
|
|
getBasicItemByCode, |
|
|
getBasicItemByCode, |
|
|
getProductionlineItem |
|
|
getProductionlineItem, |
|
|
|
|
|
getWorkShopLineStation |
|
|
} from '@/api/request2.js'; |
|
|
} from '@/api/request2.js'; |
|
|
import { |
|
|
import { |
|
|
getLocationTypeName, |
|
|
getLocationTypeName, |
|
@ -93,9 +94,13 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
// itemCode: 'CE115F11161AG', |
|
|
// itemCode: 'CE115F11161AG', |
|
|
workShopCode: "", |
|
|
workShopCode: "", //车间 |
|
|
productionLineCode: "", |
|
|
workShopName: "", |
|
|
workStationCode: "", |
|
|
productionLineCode: "",//生产线 |
|
|
|
|
|
productionLineName:"", |
|
|
|
|
|
workStationCode: "",//工位 |
|
|
|
|
|
workStationName:"", |
|
|
|
|
|
|
|
|
itemCode: '', |
|
|
itemCode: '', |
|
|
itemName: "", |
|
|
itemName: "", |
|
|
qty: 0, |
|
|
qty: 0, |
|
@ -110,6 +115,102 @@ |
|
|
positionInfo: "请选择位置", |
|
|
positionInfo: "请选择位置", |
|
|
show: false, |
|
|
show: false, |
|
|
isModifiedPosition: true, |
|
|
isModifiedPosition: true, |
|
|
|
|
|
positionList:[ |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"label": "", |
|
|
|
|
|
"value": "" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "生产线1", |
|
|
|
|
|
"value": "111" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "车间1", |
|
|
|
|
|
"value": "111" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"label": "测试", |
|
|
|
|
|
"value": "测试111" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "222", |
|
|
|
|
|
"value": "222" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "333", |
|
|
|
|
|
"value": "222" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"label": "", |
|
|
|
|
|
"value": "" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "", |
|
|
|
|
|
"value": "" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "3333", |
|
|
|
|
|
"value": "333" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"label": "", |
|
|
|
|
|
"value": "" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "", |
|
|
|
|
|
"value": "" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "测试1111", |
|
|
|
|
|
"value": "测试111" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"label": "工位1", |
|
|
|
|
|
"value": "station1" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"label": "工位2", |
|
|
|
|
|
"value": "station2" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "车间1-生产线1", |
|
|
|
|
|
"value": "line1" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"children": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"label": "", |
|
|
|
|
|
"value": "" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "车间1-生产线2", |
|
|
|
|
|
"value": "line2" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"label": "车间1", |
|
|
|
|
|
"value": "work1" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
list: [{ |
|
|
list: [{ |
|
|
value: 1, |
|
|
value: 1, |
|
|
label: '车间1', |
|
|
label: '车间1', |
|
@ -184,6 +285,14 @@ |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
openRequestPopup(editPosition) { |
|
|
openRequestPopup(editPosition) { |
|
|
|
|
|
if(this.positionList.length==0){ |
|
|
|
|
|
getWorkShopLineStation().then(res=>{ |
|
|
|
|
|
// this.positionList =res |
|
|
|
|
|
}).catch(error=>{ |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.editPosition = editPosition; |
|
|
this.editPosition = editPosition; |
|
|
if (this.isModifiedPosition) { |
|
|
if (this.isModifiedPosition) { |
|
|
this.isModifiedPosition = false |
|
|
this.isModifiedPosition = false |
|
@ -208,9 +317,8 @@ |
|
|
this.showErrorMessage("请先选择位置") |
|
|
this.showErrorMessage("请先选择位置") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.$refs.selectList.queryList("111dsda") |
|
|
this.$refs.selectList.queryList(this.productionLineCode) |
|
|
// this.refs.selectList |
|
|
|
|
|
// this.getItemCodeListByProLine("111") |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
itemCodeGetFocus() { |
|
|
itemCodeGetFocus() { |
|
@ -262,9 +370,12 @@ |
|
|
callback(action) { |
|
|
callback(action) { |
|
|
let item = { |
|
|
let item = { |
|
|
positionInfo: this.positionInfo, |
|
|
positionInfo: this.positionInfo, |
|
|
workShopCode: this.workShopCode, |
|
|
workShopCode: this.workShopCode,//车间 |
|
|
productionLineCode: this.productionLineCode, |
|
|
workShopName: this.workShopName, |
|
|
workStationCode: this.workStationCode, |
|
|
productionLineCode: this.productionLineCode,//生产线 |
|
|
|
|
|
productionLineName:this.productionLineName, |
|
|
|
|
|
workStationCode: this.workStationCode,//工位 |
|
|
|
|
|
workStationName:this.workStationName, |
|
|
itemCode: this.itemCode, |
|
|
itemCode: this.itemCode, |
|
|
itemName: this.itemName, |
|
|
itemName: this.itemName, |
|
|
uom: this.uom, |
|
|
uom: this.uom, |
|
@ -305,12 +416,19 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
confirmSelect(e) { |
|
|
confirmSelect(e) { |
|
|
|
|
|
|
|
|
this.positionInfo = e[0].label + "-" + e[1].label + "-" + e[2].label |
|
|
this.positionInfo = e[0].label + "-" + e[1].label + "-" + e[2].label |
|
|
// this.productionLineCode =e[1].label; |
|
|
var positionInfoValue = e[0].value + "-" + e[1].value + "-" + e[2].value |
|
|
// this.getItemCodeListByProLine(lineCode) |
|
|
console.log("位置",this.positionInfo) |
|
|
this.workShopCode = e[0].label |
|
|
console.log("位置value",positionInfoValue) |
|
|
this.productionLineCode = e[1].label |
|
|
this.workShopCode = e[0].value |
|
|
this.workStationCode = e[2].label |
|
|
this.productionLineCode = e[1].value |
|
|
|
|
|
this.workStationCode = e[2].value |
|
|
|
|
|
this.workShopName= e[0].label |
|
|
|
|
|
this.productionLineName = e[1].label |
|
|
|
|
|
this.workStationName = e[2].label |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
getItemCodeListByProLine(lineCode) { |
|
|
getItemCodeListByProLine(lineCode) { |
|
|