|
@ -44,7 +44,7 @@ |
|
|
<view v-if="operation=='receipt'" class="uni-flex u-col-center space-between padding_10"> |
|
|
<view v-if="operation=='receipt'" class="uni-flex u-col-center space-between padding_10"> |
|
|
<view> |
|
|
<view> |
|
|
<locationCompare ref="locationCompare" title="收货库位" :recommendLocationCode="jobToLocationCode" |
|
|
<locationCompare ref="locationCompare" title="收货库位" :recommendLocationCode="jobToLocationCode" |
|
|
:locationCode="toLocationCode" @getLocation='scanLocationCode' |
|
|
@getLocation='scanLocationCode' |
|
|
:locationAreaTypeList="toLocationAreaTypeList"> |
|
|
:locationAreaTypeList="toLocationAreaTypeList"> |
|
|
</locationCompare> |
|
|
</locationCompare> |
|
|
</view> |
|
|
</view> |
|
@ -143,8 +143,9 @@ |
|
|
operation: '', |
|
|
operation: '', |
|
|
scanedPackingNumber: '', |
|
|
scanedPackingNumber: '', |
|
|
status: '', |
|
|
status: '', |
|
|
switchCode: '', |
|
|
switchCode:"", |
|
|
reasonText: "" |
|
|
isCheckLocation: 'purchaseReceiptLocationCodeValidate',//校验收货库位 |
|
|
|
|
|
reasonText: "", |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -154,7 +155,7 @@ |
|
|
this.scanedPackingNumber = option.scaned || ''; |
|
|
this.scanedPackingNumber = option.scaned || ''; |
|
|
this.operation = option.operation; |
|
|
this.operation = option.operation; |
|
|
this.status = option.status; |
|
|
this.status = option.status; |
|
|
this.switchCode = "purchasereceiptPrintPDA" |
|
|
this.switchCode = "purchasereceiptPrintPDA"//pda打印 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
@ -240,6 +241,12 @@ |
|
|
that.jobStatus = res.data.status |
|
|
that.jobStatus = res.data.status |
|
|
that.jobToLocationCode = that.subList[0].toLocationCode |
|
|
that.jobToLocationCode = that.subList[0].toLocationCode |
|
|
that.detailSource = getTreeDataSource(that.subList) |
|
|
that.detailSource = getTreeDataSource(that.subList) |
|
|
|
|
|
that.isCheckLocation = getSwitchInfoByCode(that.isCheckLocation) |
|
|
|
|
|
if (that.isCheckLocation) { |
|
|
|
|
|
that.toLocationCode = "" |
|
|
|
|
|
} else { |
|
|
|
|
|
that.toLocationCode = that.jobToLocationCode; |
|
|
|
|
|
} |
|
|
that.isAllReceived = false; |
|
|
that.isAllReceived = false; |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
that.detailSource.forEach(r => { |
|
|
that.detailSource.forEach(r => { |
|
@ -494,10 +501,8 @@ |
|
|
getManagementPrecisions(itemCodes, this.toLocationCode, res => { |
|
|
getManagementPrecisions(itemCodes, this.toLocationCode, res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.managementList = res.list; |
|
|
this.managementList = res.list; |
|
|
var params = this.setParams() |
|
|
var params = this.setParams(); |
|
|
purchaseReceiptJobSubmit(params).then(res => { |
|
|
purchaseReceiptJobSubmit(params).then(res => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (res.data) { |
|
|
if (res.data) { |
|
|
let isCheckPrint = getSwitchInfoByCode(this.switchCode) |
|
|
let isCheckPrint = getSwitchInfoByCode(this.switchCode) |
|
|
if (!isCheckPrint) { |
|
|
if (!isCheckPrint) { |
|
@ -559,10 +564,8 @@ |
|
|
}) |
|
|
}) |
|
|
}, 2000) |
|
|
}, 2000) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
} |
|
|
} |
|
|