|
@ -73,7 +73,8 @@ |
|
|
getCurrDateTime, |
|
|
getCurrDateTime, |
|
|
getPackingNumberAndBatch, |
|
|
getPackingNumberAndBatch, |
|
|
compareAsc, |
|
|
compareAsc, |
|
|
navigateBack |
|
|
navigateBack, |
|
|
|
|
|
getSwitchInfoByCode |
|
|
} from '@/common/basic.js'; |
|
|
} from '@/common/basic.js'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
@ -134,7 +135,8 @@ |
|
|
isAllReceived: false, |
|
|
isAllReceived: false, |
|
|
operation: '', |
|
|
operation: '', |
|
|
scanedPackingNumber: '', |
|
|
scanedPackingNumber: '', |
|
|
status:'' |
|
|
status:'', |
|
|
|
|
|
switchCode:'' |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -144,6 +146,9 @@ |
|
|
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" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onShow(){ |
|
|
onShow(){ |
|
@ -472,8 +477,15 @@ |
|
|
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) { |
|
|
// this.showCommitSuccessMessage("提交成功<br>生成采购收货记录<br><br>将跳转到打印页面<br>" + res.data) |
|
|
let isCheckPrint = getSwitchInfoByCode(this.switchCode) |
|
|
|
|
|
if(!isCheckPrint){ |
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
|
|
|
|
|
|
this.showCommitSuccessMessage("提交成功<br>生成采购收货记录<br>" + res.data.number) |
|
|
|
|
|
}else{ |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "提交成功,将跳转到打印页面", |
|
|
title: "提交成功,将跳转到打印页面", |
|
|
mask: true |
|
|
mask: true |
|
@ -525,6 +537,10 @@ |
|
|
}) |
|
|
}) |
|
|
}, 2000) |
|
|
}, 2000) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
} |
|
|
} |
|
@ -678,8 +694,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showCommitSuccessMessage(hint) { |
|
|
showCommitSuccessMessage(hint) { |
|
|
|
|
|
|
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
// navigateBack(1) |
|
|
navigateBack(1) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|