|
|
@ -166,6 +166,7 @@ |
|
|
|
scanMessage: '', |
|
|
|
status: '', |
|
|
|
switchCode: "", |
|
|
|
switchCode1: "", |
|
|
|
isCheckLocation: 'purchaseReceiptLocationCodeValidate', //校验收货库位 |
|
|
|
reasonText: "", |
|
|
|
|
|
|
@ -181,9 +182,8 @@ |
|
|
|
this.scanMessage = option.scanMessage; |
|
|
|
this.operation = option.operation; |
|
|
|
this.status = option.status; |
|
|
|
this.switchCode = "purchasereceiptPrintPDA" //pda打印 |
|
|
|
|
|
|
|
|
|
|
|
this.switchCode = "purchasereceiptPrintPDA" //采购收货PDA打印开关 |
|
|
|
this.switchCode1 = "EnableQms" //根据开关中是否启用QMS去判断,如果为TRUE显示检验指引单,如果为FALSE不显示检验指引单 |
|
|
|
}, |
|
|
|
|
|
|
|
onShow() { |
|
|
@ -458,7 +458,6 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
commit() { |
|
|
|
this.scanCount = getScanCount(this.subList); |
|
|
|
if (this.scanCount == 0) { |
|
|
|
this.showErrorMessage("扫描数为0,请先扫描") |
|
|
|
return; |
|
|
@ -530,7 +529,8 @@ |
|
|
|
this.detailSource.forEach(item => { |
|
|
|
itemCodes.push(item.itemCode) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取管理模式,封装参数 |
|
|
|
getManagementPrecisions(itemCodes, this.toLocationCode, res => { |
|
|
|
if (res.success) { |
|
|
@ -539,15 +539,17 @@ |
|
|
|
let that = this |
|
|
|
purchaseReceiptJobSubmit(params).then(res => { |
|
|
|
if (res.data) { |
|
|
|
let isCheckPrint = getSwitchInfoByCode(this.switchCode) |
|
|
|
if (!isCheckPrint) { |
|
|
|
let isCheckPrint = getSwitchInfoByCode(this.switchCode)//是否显示上架指引单 |
|
|
|
let isCheckPrint1 = getSwitchInfoByCode(this.switchCode1)//是否显示采购收货检验指引单 |
|
|
|
if (isCheckPrint1 && !isCheckPrint) { |
|
|
|
uni.hideLoading() |
|
|
|
|
|
|
|
// this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number) |
|
|
|
uni.redirectTo({ |
|
|
|
url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number |
|
|
|
}) |
|
|
|
} else { |
|
|
|
}else if(!isCheckPrint1 && !isCheckPrint){ |
|
|
|
this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number) |
|
|
|
}else { |
|
|
|
// if (res.data == '打印任务已发送,等待打印机处理!') { |
|
|
|
// this.showCommitSuccessMessage(res.data) |
|
|
|
// const purchaseReceiptDetailPointParams = { |
|
|
@ -603,11 +605,19 @@ |
|
|
|
',') |
|
|
|
} |
|
|
|
uni.hideLoading() |
|
|
|
uni.redirectTo({ |
|
|
|
url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number + |
|
|
|
'&data=' + |
|
|
|
encodeURIComponent(JSON.stringify(dataParams)) |
|
|
|
}) |
|
|
|
if(!isCheckPrint1 && isCheckPrint){ |
|
|
|
uni.redirectTo({ |
|
|
|
url: '/pages/pointPutawayJob/index?data=' + |
|
|
|
encodeURIComponent(JSON.stringify(dataParams)) |
|
|
|
}) |
|
|
|
}else if(isCheckPrint1 && isCheckPrint){ |
|
|
|
uni.redirectTo({ |
|
|
|
url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number + |
|
|
|
'&data=' + |
|
|
|
encodeURIComponent(JSON.stringify(dataParams)) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, 2000) |
|
|
|