|
|
@ -52,9 +52,9 @@ |
|
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
|
<view class=""> |
|
|
|
<locationCompare ref ="comScanLocation" title="收货库位" :isShowEdit="jobContent.allowModifyLocation=='TRUE'" |
|
|
|
:recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" |
|
|
|
@getLocation='scanLocationCode' :locationTypeList="toLocationTypeList"></locationCompare> |
|
|
|
<locationCompare ref="comScanLocation" title="收货库位" :recommendLocationCode="jobToLocationCode" |
|
|
|
:locationCode="toLocationCode" @getLocation='scanLocationCode' |
|
|
|
:locationTypeList="toLocationTypeList"></locationCompare> |
|
|
|
</view> |
|
|
|
<view class=" uni-flex uni-row"> |
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> |
|
|
@ -333,12 +333,32 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
scanLocationCode(location, code) { |
|
|
|
//允许修改库位 |
|
|
|
if (this.jobContent.allowModifyLocation == "TRUE") { |
|
|
|
this.toLocationCode = code |
|
|
|
this.detailSource.forEach(item => { |
|
|
|
item.subList.forEach(detail => { |
|
|
|
detail.toLocationCode = code |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
//不允许修改库位 |
|
|
|
if (code != this.jobToLocationCode) { |
|
|
|
this.showMessageHint("任务中不允许修改库位\n扫描库位[" + code + "]推荐库位是[" + this.jobToLocationCode + "]", |
|
|
|
callBack => {}) |
|
|
|
} else { |
|
|
|
this.toLocationCode = code |
|
|
|
this.detailSource.forEach(item => { |
|
|
|
item.subList.forEach(detail => { |
|
|
|
detail.toLocationCode = code |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
checkLocation() { |
|
|
@ -492,17 +512,17 @@ |
|
|
|
this.managementList = res.list; |
|
|
|
var params = this.setParams(); |
|
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
|
productReceiptJobsubmit(params).then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
if (res.data) { |
|
|
|
this.showCommitSuccessMessage("提交成功\n生成装配收货记录\n" + res.data, ) |
|
|
|
} else { |
|
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
uni.hideLoading() |
|
|
|
this.showErrorMessage(error) |
|
|
|
}) |
|
|
|
// productReceiptJobsubmit(params).then(res => { |
|
|
|
// uni.hideLoading() |
|
|
|
// if (res.data) { |
|
|
|
// this.showCommitSuccessMessage("提交成功\n生成装配收货记录\n" + res.data, ) |
|
|
|
// } else { |
|
|
|
// this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
|
// } |
|
|
|
// }).catch(error => { |
|
|
|
// uni.hideLoading() |
|
|
|
// this.showErrorMessage(error) |
|
|
|
// }) |
|
|
|
} else { |
|
|
|
uni.hideLoading(); |
|
|
|
this.showErrorMessage(res.message); |
|
|
|