|
@ -62,7 +62,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="list_form hold_form"> |
|
|
<!-- <view class="list_form hold_form"> |
|
|
<view class="uni-container"> |
|
|
<view class="uni-container"> |
|
|
<uni-table style=""> |
|
|
<uni-table style=""> |
|
|
<uni-tr> |
|
|
<uni-tr> |
|
@ -102,7 +102,7 @@ |
|
|
|
|
|
|
|
|
</uni-table> |
|
|
</uni-table> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> --> |
|
|
|
|
|
|
|
|
<view class="list_form hold_form"> |
|
|
<view class="list_form hold_form"> |
|
|
<view class="uni-container"> |
|
|
<view class="uni-container"> |
|
@ -159,7 +159,6 @@ |
|
|
</view> |
|
|
</view> |
|
|
<selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList> |
|
|
<selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList> |
|
|
<win-scan-button @goScan='openScanPopupTo' title="箱码"></win-scan-button> |
|
|
<win-scan-button @goScan='openScanPopupTo' title="箱码"></win-scan-button> |
|
|
<winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom> |
|
|
|
|
|
<win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack> |
|
|
<win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack> |
|
|
<winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode> |
|
|
<winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode> |
|
|
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()' |
|
|
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()' |
|
@ -175,7 +174,8 @@ |
|
|
finshSparePartIssueJob, |
|
|
finshSparePartIssueJob, |
|
|
getRecommendBalance, |
|
|
getRecommendBalance, |
|
|
balances, |
|
|
balances, |
|
|
getBalanceRemoveInAndOut |
|
|
getBalanceRemoveInAndOut, |
|
|
|
|
|
locations |
|
|
} from '@/api/index.js'; |
|
|
} from '@/api/index.js'; |
|
|
import { |
|
|
import { |
|
|
getJobStatuStyle, |
|
|
getJobStatuStyle, |
|
@ -190,7 +190,6 @@ |
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' |
|
|
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' |
|
|
import winScanButtonTop from '@/mycomponents/wincom/winScanButtonTop.vue' |
|
|
import winScanButtonTop from '@/mycomponents/wincom/winScanButtonTop.vue' |
|
|
import winScanButtonBottom from '@/mycomponents/wincom/winScanButtonBottom.vue' |
|
|
|
|
|
|
|
|
|
|
|
import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' |
|
|
import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' |
|
|
import comJobScanDetail from '@/mycomponents/comjob/comJobScanDetail.vue' |
|
|
import comJobScanDetail from '@/mycomponents/comjob/comJobScanDetail.vue' |
|
@ -204,7 +203,6 @@ |
|
|
comMessage, |
|
|
comMessage, |
|
|
winScanButton, |
|
|
winScanButton, |
|
|
winScanButtonTop, |
|
|
winScanButtonTop, |
|
|
winScanButtonBottom, |
|
|
|
|
|
winMulitScan, |
|
|
winMulitScan, |
|
|
comJobScanDetail, |
|
|
comJobScanDetail, |
|
|
winScanByPack, |
|
|
winScanByPack, |
|
@ -282,7 +280,7 @@ |
|
|
this.$refs.locationTo.openScanPopup() |
|
|
this.$refs.locationTo.openScanPopup() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
geToLocation(locationInfo) { |
|
|
geToLocationss(locationInfo) { |
|
|
var current = this.details[0] |
|
|
var current = this.details[0] |
|
|
if (locationInfo.code != current.recommendToLocationCode) { |
|
|
if (locationInfo.code != current.recommendToLocationCode) { |
|
|
this.showMessage(" 扫描目标库位[" + locationInfo.code + "]与推荐目标库位[" + current |
|
|
this.showMessage(" 扫描目标库位[" + locationInfo.code + "]与推荐目标库位[" + current |
|
@ -294,6 +292,25 @@ |
|
|
current.handledToLocationGroup = locationInfo.locationGroup |
|
|
current.handledToLocationGroup = locationInfo.locationGroup |
|
|
current.handledToLocationErpCode = locationInfo.locationErpCode |
|
|
current.handledToLocationErpCode = locationInfo.locationErpCode |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getToLocation(locationCode){ |
|
|
|
|
|
var current = this.details[0] |
|
|
|
|
|
locations(locationCode).then((res) => { |
|
|
|
|
|
uni.hideLoading(); |
|
|
|
|
|
if (res) { |
|
|
|
|
|
current.handledToLocationCode = res.code |
|
|
|
|
|
current.handledToLocationArea = res.locationArea |
|
|
|
|
|
current.handledToLocationGroup = res.locationGroup |
|
|
|
|
|
current.handledToLocationErpCode = res.locationErpCode |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showMessage('未查找到库位【' + locationCode + '】'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}).catch((err) => { |
|
|
|
|
|
this.showMessage(err.message); |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//加载零件信息 |
|
|
//加载零件信息 |
|
|
getDetail() { |
|
|
getDetail() { |
|
|
let that = this; |
|
|
let that = this; |
|
@ -432,6 +449,7 @@ |
|
|
item.handledFromQty = balancesItem.qty |
|
|
item.handledFromQty = balancesItem.qty |
|
|
item.handledFromLocationCode = balancesItem.locationCode |
|
|
item.handledFromLocationCode = balancesItem.locationCode |
|
|
item.handleToPackingCodeLocationCode = balancesItem.locationCode |
|
|
item.handleToPackingCodeLocationCode = balancesItem.locationCode |
|
|
|
|
|
this.getToLocation(this.details[0].recommendToLocationCode) |
|
|
} else { |
|
|
} else { |
|
|
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item |
|
|
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item |
|
|
.recommendToLot + "]不一致,是否继续发料", res => { |
|
|
.recommendToLot + "]不一致,是否继续发料", res => { |
|
@ -458,6 +476,7 @@ |
|
|
item.handledFromQty = balancesItem.qty |
|
|
item.handledFromQty = balancesItem.qty |
|
|
item.handledFromLocationCode = balancesItem.locationCode |
|
|
item.handledFromLocationCode = balancesItem.locationCode |
|
|
item.handleToPackingCodeLocationCode = balancesItem.locationCode |
|
|
item.handleToPackingCodeLocationCode = balancesItem.locationCode |
|
|
|
|
|
this.getToLocation(this.details[0].recommendToLocationCode) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|