|
@ -13,6 +13,18 @@ |
|
|
<u-line /> |
|
|
<u-line /> |
|
|
<view class="uni-flex uni-column" style="background-color: white; "> |
|
|
<view class="uni-flex uni-column" style="background-color: white; "> |
|
|
<view class="uni-flex uni-column "> |
|
|
<view class="uni-flex uni-column "> |
|
|
|
|
|
<view class="uni-flex uni-row padding title u-col-center"> |
|
|
|
|
|
<text>从仓库代码:</text> |
|
|
|
|
|
<view class="uni-flex u-col-center uni-row" @click="showWarseHouseSelect"> |
|
|
|
|
|
<view class="" style="margin-left: 20rpx;width: 100% "> |
|
|
|
|
|
{{fromWarehouseCode}} |
|
|
|
|
|
</view> |
|
|
|
|
|
<u-select v-model="showWareHouse" mode="single-column" :list="wareHouseList" |
|
|
|
|
|
@confirm="confirmWareHouse"></u-select> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<u-line /> |
|
|
<view class="uni-flex uni-row padding title u-col-center"> |
|
|
<view class="uni-flex uni-row padding title u-col-center"> |
|
|
<text>位置:</text> |
|
|
<text>位置:</text> |
|
|
<view class="uni-flex u-col-center uni-row" @click="showSelect"> |
|
|
<view class="uni-flex u-col-center uni-row" @click="showSelect"> |
|
@ -36,18 +48,20 @@ |
|
|
</image> |
|
|
</image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<u-line /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<u-line /> |
|
|
<view class="uni-flex uni-row padding title u-col-center"> |
|
|
<view class="uni-flex uni-row padding title u-col-center"> |
|
|
<text>数量: </text> |
|
|
<text>数量: </text> |
|
|
<view class="uni-flex uni-row uni-center" |
|
|
<view class="uni-flex uni-row uni-center" |
|
|
style="display: flex; align-items: center;margin-left: 20rpx;justify-content: center;"> |
|
|
style="display: flex; align-items: center;margin-left: 20rpx;justify-content: center;"> |
|
|
|
|
|
|
|
|
<input style="text-align: center;" class="qty_input" v-model="counQty" type="number" |
|
|
<input style="text-align: center;" class="qty_input" v-model="counQty" type="number" |
|
|
@confirm="confirm()" :focus="numberFocus" @input="checkNum" :maxlength="maxlength" /> |
|
|
@confirm="confirm()" :focus="numberFocus" @input="checkNum" |
|
|
|
|
|
:maxlength="maxlength" /> |
|
|
|
|
|
|
|
|
<uom :uom="uom"></uom> |
|
|
<uom :uom="uom"></uom> |
|
|
<view class="" v-if="stdPackInfo!=undefined" style="display: flex;flex-direction: row;margin-left: 10rpx;"> |
|
|
<view class="" v-if="stdPackInfo!=undefined" |
|
|
|
|
|
style="display: flex;flex-direction: row;margin-left: 10rpx;"> |
|
|
(<stdPackQty :dataContent="stdPackInfo"></stdPackQty>) |
|
|
(<stdPackQty :dataContent="stdPackInfo"></stdPackQty>) |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -62,7 +76,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</uni-popup> |
|
|
</uni-popup> |
|
|
<win-scan-item ref="scanPopup" title='物料代码' @getScanResult='getItemScanResult' :itemCodeTypeList="itemCodeTypeList" > |
|
|
<win-scan-item ref="scanPopup" title='物料代码' @getScanResult='getItemScanResult' |
|
|
|
|
|
:itemCodeTypeList="itemCodeTypeList"> |
|
|
</win-scan-item> |
|
|
</win-scan-item> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
@ -73,7 +88,8 @@ |
|
|
getBasicLocationByCode, |
|
|
getBasicLocationByCode, |
|
|
getBasicItemByCode, |
|
|
getBasicItemByCode, |
|
|
getProductionlineItem, |
|
|
getProductionlineItem, |
|
|
getWorkShopLineStation |
|
|
getWorkShopLineStation, |
|
|
|
|
|
getWarehouseCodeList |
|
|
} from '@/api/request2.js'; |
|
|
} from '@/api/request2.js'; |
|
|
import { |
|
|
import { |
|
|
getLocationTypeName, |
|
|
getLocationTypeName, |
|
@ -86,14 +102,13 @@ |
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
import winScanItem from '@/mycomponents/scan/winScanItem.vue' |
|
|
import winScanItem from '@/mycomponents/scan/winScanItem.vue' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
uom, |
|
|
uom, |
|
|
balanceStatus, |
|
|
balanceStatus, |
|
|
comMessage, |
|
|
comMessage, |
|
|
winScanItem, |
|
|
winScanItem, |
|
|
stdPackQty |
|
|
stdPackQty, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -104,6 +119,7 @@ |
|
|
workStationCode: "", //工位 |
|
|
workStationCode: "", //工位 |
|
|
workStationName: "", |
|
|
workStationName: "", |
|
|
itemCode: '请扫描物料信息', |
|
|
itemCode: '请扫描物料信息', |
|
|
|
|
|
fromWarehouseCode: "请选择仓库代码", |
|
|
itemName: "", |
|
|
itemName: "", |
|
|
qty: 0, |
|
|
qty: 0, |
|
|
rawLocationCode: "", |
|
|
rawLocationCode: "", |
|
@ -121,7 +137,9 @@ |
|
|
positionList: [], |
|
|
positionList: [], |
|
|
stdQty: 0, //标包 |
|
|
stdQty: 0, //标包 |
|
|
maxlength: 10, |
|
|
maxlength: 10, |
|
|
stdPackInfo:undefined |
|
|
stdPackInfo: undefined, |
|
|
|
|
|
wareHouseList: [], |
|
|
|
|
|
showWareHouse: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
@ -153,18 +171,25 @@ |
|
|
openRequestPopup(editPosition) { |
|
|
openRequestPopup(editPosition) { |
|
|
if (this.positionList.length == 0) { |
|
|
if (this.positionList.length == 0) { |
|
|
getWorkShopLineStation().then(res => { |
|
|
getWorkShopLineStation().then(res => { |
|
|
|
|
|
if (res.data != null && res.data.length > 0) { |
|
|
this.positionList = res.data |
|
|
this.positionList = res.data |
|
|
}).catch(error => { |
|
|
} else { |
|
|
|
|
|
this.showErrorMessage('未查找到位置信息'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
this.showErrorMessage(error); |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.editPosition = editPosition; |
|
|
this.editPosition = editPosition; |
|
|
if (this.isModifiedPosition) { |
|
|
if (this.isModifiedPosition) { |
|
|
this.isModifiedPosition = false |
|
|
this.isModifiedPosition = false |
|
|
} else { |
|
|
} else { |
|
|
this.itemCode = "请扫描物料信息"; |
|
|
this.itemCode = "请扫描物料信息"; |
|
|
this.show = false |
|
|
this.show = false |
|
|
|
|
|
this.showWareHouse = false |
|
|
this.uom = "" |
|
|
this.uom = "" |
|
|
this.qty = 0; |
|
|
this.qty = 0; |
|
|
this.stdPackInfo = undefined; |
|
|
this.stdPackInfo = undefined; |
|
@ -177,9 +202,13 @@ |
|
|
}, |
|
|
}, |
|
|
initData() { |
|
|
initData() { |
|
|
this.positionList = []; |
|
|
this.positionList = []; |
|
|
|
|
|
this.wareHouseList= [], |
|
|
|
|
|
this.showWareHouse = false |
|
|
|
|
|
this.editPosition =true; |
|
|
this.itemCode = "请扫描物料信息"; |
|
|
this.itemCode = "请扫描物料信息"; |
|
|
this.rawLocationCode = "" |
|
|
this.rawLocationCode = "" |
|
|
this.positionInfo = "请选择位置" |
|
|
this.positionInfo = "请选择位置" |
|
|
|
|
|
this.fromWarehouseCode = "请选择仓库代码" |
|
|
this.workshopCode = "" //车间 |
|
|
this.workshopCode = "" //车间 |
|
|
this.workShopName = "" |
|
|
this.workShopName = "" |
|
|
this.productionLineCode = "" //生产线 |
|
|
this.productionLineCode = "" //生产线 |
|
@ -218,6 +247,12 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.fromWarehouseCode == "请选择仓库代码") { |
|
|
|
|
|
this.showErrorMessage("请选择仓库代码") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.itemCode == "请扫描物料信息") { |
|
|
if (this.itemCode == "请扫描物料信息") { |
|
|
this.showErrorMessage("请输入物料", "itemCode") |
|
|
this.showErrorMessage("请输入物料", "itemCode") |
|
|
return |
|
|
return |
|
@ -250,6 +285,8 @@ |
|
|
workStationName: this.workStationName, |
|
|
workStationName: this.workStationName, |
|
|
rawLocationCode: this.rawLocationCode, |
|
|
rawLocationCode: this.rawLocationCode, |
|
|
fgLocationCode: this.fgLocationCode, |
|
|
fgLocationCode: this.fgLocationCode, |
|
|
|
|
|
fromWarehouseCode: this.fromWarehouseCode, |
|
|
|
|
|
toWarehouseCode: this.fromWarehouseCode, |
|
|
itemCode: this.itemCode, |
|
|
itemCode: this.itemCode, |
|
|
itemName: this.itemName, |
|
|
itemName: this.itemName, |
|
|
uom: this.uom, |
|
|
uom: this.uom, |
|
@ -283,8 +320,14 @@ |
|
|
if (this.editPosition) { |
|
|
if (this.editPosition) { |
|
|
this.show = true |
|
|
this.show = true |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
showWarseHouseSelect() { |
|
|
|
|
|
if (this.editPosition) { |
|
|
|
|
|
this.wareHouseClick(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
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 |
|
|
console.log("位置", this.positionInfo) |
|
|
console.log("位置", this.positionInfo) |
|
@ -321,7 +364,37 @@ |
|
|
this.uom = scanResult.uom |
|
|
this.uom = scanResult.uom |
|
|
this.stdPackInfo = scanResult.package; |
|
|
this.stdPackInfo = scanResult.package; |
|
|
this.numberFocus = true |
|
|
this.numberFocus = true |
|
|
|
|
|
}, |
|
|
|
|
|
wareHouseClick() { |
|
|
|
|
|
uni.showLoading({ |
|
|
|
|
|
title: "查询中....", |
|
|
|
|
|
mask: true |
|
|
|
|
|
}); |
|
|
|
|
|
getWarehouseCodeList(1, 100).then(res => { |
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
if (res.data != null && res.data.list.length > 0) { |
|
|
|
|
|
res.data.list.forEach(item => { |
|
|
|
|
|
item.value = item.code; |
|
|
|
|
|
item.label = item.name; |
|
|
|
|
|
}) |
|
|
|
|
|
this.wareHouseList = res.data.list |
|
|
|
|
|
this.showWareHouse = true |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showErrorMessage('未查找到仓库代码'); |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
this.showErrorMessage(error); |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
confirmWareHouse(e) { |
|
|
|
|
|
this.fromWarehouseCode = e[0].value; |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|