|
@ -8,7 +8,7 @@ |
|
|
申请单号:{{jobContent.requestNumber}} |
|
|
申请单号:{{jobContent.requestNumber}} |
|
|
</view> |
|
|
</view> |
|
|
<u-line color="#D8D8D8"></u-line> |
|
|
<u-line color="#D8D8D8"></u-line> |
|
|
<view class="cen_card" style="padding: 5rpx;"> |
|
|
<!-- <view class="cen_card" style="padding: 5rpx;"> |
|
|
<view class="cell_box uni-flex uni-row"> |
|
|
<view class="cell_box uni-flex uni-row"> |
|
|
<view class="cell_info"> |
|
|
<view class="cell_info"> |
|
|
<view class="text_lightblue">客户代码</view> |
|
|
<view class="text_lightblue">客户代码</view> |
|
@ -20,7 +20,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<u-line /> |
|
|
<u-line /> |
|
|
</view> |
|
|
</view> --> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="page-main"> |
|
|
<view class="page-main"> |
|
@ -32,13 +32,28 @@ |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<div class="btn_bottom"> |
|
|
|
|
|
|
|
|
<view class="page-footer"> |
|
|
|
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
|
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
|
|
|
<view class=""> |
|
|
|
|
|
<locationCompare ref='comScanLocation' title="目标库位" :recommendLocationCode="jobToLocationCode" |
|
|
|
|
|
:locationCode="toLocationCode" @getLocation='scanLocationCode' |
|
|
|
|
|
:locationAreaTypeList="toLocationAreaTypeList"></locationCompare> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class=" uni-flex uni-row"> |
|
|
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="btn_bottom"> |
|
|
<view class="" style="display: flex;flex-direction: row;"> |
|
|
<view class="" style="display: flex;flex-direction: row;"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<button class="btn_commit" hover-class="btn_commit_after" @click="submit()">提交</button> |
|
|
<button class="btn_commit" hover-class="btn_commit_after" @click="submit()">提交</button> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</div> |
|
|
</div> --> |
|
|
<win-scan-button @goScan='openScanDetailPopup'></win-scan-button> |
|
|
<win-scan-button @goScan='openScanDetailPopup'></win-scan-button> |
|
|
<comScanStockUpPack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'> |
|
|
<comScanStockUpPack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'> |
|
|
</comScanStockUpPack> |
|
|
</comScanStockUpPack> |
|
@ -82,6 +97,7 @@ |
|
|
import comStockUpDetailCard from '@/pages/stockUp/coms/comStockUpDetailCard.vue' |
|
|
import comStockUpDetailCard from '@/pages/stockUp/coms/comStockUpDetailCard.vue' |
|
|
import comScanStockUpPack from '@/pages/stockUp/coms/comScanStockUpPack.vue' |
|
|
import comScanStockUpPack from '@/pages/stockUp/coms/comScanStockUpPack.vue' |
|
|
import jobTop from '@/mycomponents/job/jobTop.vue' |
|
|
import jobTop from '@/mycomponents/job/jobTop.vue' |
|
|
|
|
|
import locationCompare from '@/mycomponents/location/locationCompare.vue' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'issueDetail', |
|
|
name: 'issueDetail', |
|
@ -90,7 +106,8 @@ |
|
|
winScanButton, |
|
|
winScanButton, |
|
|
comStockUpDetailCard, |
|
|
comStockUpDetailCard, |
|
|
comScanStockUpPack, |
|
|
comScanStockUpPack, |
|
|
jobTop |
|
|
jobTop, |
|
|
|
|
|
locationCompare |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -102,7 +119,9 @@ |
|
|
scanOptions: [], |
|
|
scanOptions: [], |
|
|
status: "", |
|
|
status: "", |
|
|
toLocationCode: "", |
|
|
toLocationCode: "", |
|
|
jobStatus:"" |
|
|
jobStatus: "", |
|
|
|
|
|
toLocationAreaTypeList: [], |
|
|
|
|
|
jobToLocationCode: "", |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -134,7 +153,7 @@ |
|
|
onBackPress(e) { |
|
|
onBackPress(e) { |
|
|
//已经接收但是没提交任务 |
|
|
//已经接收但是没提交任务 |
|
|
if (e.from == 'backbutton') { |
|
|
if (e.from == 'backbutton') { |
|
|
if (this.jobStatus=="2") { |
|
|
if (this.jobStatus == "2") { |
|
|
//取消承接任务 |
|
|
//取消承接任务 |
|
|
cancleTakeStockUpJob(this.id).then(res => { |
|
|
cancleTakeStockUpJob(this.id).then(res => { |
|
|
uni.navigateBack(); |
|
|
uni.navigateBack(); |
|
@ -176,10 +195,15 @@ |
|
|
if (res.data.subList.length > 0) { |
|
|
if (res.data.subList.length > 0) { |
|
|
that.jobContent = res.data; |
|
|
that.jobContent = res.data; |
|
|
that.jobStatus = res.data.status; |
|
|
that.jobStatus = res.data.status; |
|
|
|
|
|
|
|
|
that.subList = res.data.subList; |
|
|
that.subList = res.data.subList; |
|
|
that.detailSource = getDataSource(that.detailSource, that.subList) |
|
|
that.detailSource = getDataSource(that.detailSource, that.subList) |
|
|
that.toLocationCode = that.subList[0].toLocationCode |
|
|
// that.toLocationCode = that.subList[0].toLocationCode |
|
|
|
|
|
|
|
|
|
|
|
that.fromLocationCode = that.subList[0].fromLocationCode |
|
|
|
|
|
that.jobToLocationCode = that.subList[0].toLocationCode; |
|
|
|
|
|
that.toLocationAreaTypeList = getDirectoryItemArray(that.jobContent.toAreaTypes) |
|
|
|
|
|
|
|
|
that.resizeCollapse(); |
|
|
that.resizeCollapse(); |
|
|
} else { |
|
|
} else { |
|
|
that.showMessage('列表数据为0'); |
|
|
that.showMessage('列表数据为0'); |
|
@ -191,6 +215,17 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
scanLocationCode(location, code) { |
|
|
|
|
|
// this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => { |
|
|
|
|
|
this.toLocationCode = code |
|
|
|
|
|
this.detailSource.forEach(item => { |
|
|
|
|
|
item.subList.forEach(detail => { |
|
|
|
|
|
detail.toLocationCode = code |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
// }) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
closeScan() { |
|
|
closeScan() { |
|
|
this.resizeCollapse(); |
|
|
this.resizeCollapse(); |
|
|
}, |
|
|
}, |
|
@ -277,7 +312,7 @@ |
|
|
record.supplierCode = r.supplierCode; |
|
|
record.supplierCode = r.supplierCode; |
|
|
|
|
|
|
|
|
//使用在途库不改变管理模式 |
|
|
//使用在途库不改变管理模式 |
|
|
if (this.toLocationCode ==null) { |
|
|
if (this.toLocationCode == null) { |
|
|
record.toPackingNumber = r |
|
|
record.toPackingNumber = r |
|
|
.packingNumber; |
|
|
.packingNumber; |
|
|
record.toBatch = r.batch; |
|
|
record.toBatch = r.batch; |
|
@ -458,4 +493,4 @@ |
|
|
// border-bottom-width: 1px; |
|
|
// border-bottom-width: 1px; |
|
|
// border-bottom-color: #ebeef5; |
|
|
// border-bottom-color: #ebeef5; |
|
|
// } |
|
|
// } |
|
|
</style> |
|
|
</style> |