fix(生产入库单申请):修改单据打印bug

refs: #44331
This commit is contained in:
leiqiaozhen 2024-11-20 16:27:40 +08:00
parent d1bf38271b
commit 64714d6180

View File

@ -742,6 +742,9 @@ export default {
if (isBlank(documentNo)) {
return me.$message.error('请检索单据号后操作');
}
if (storagRequestList.length === 0) {
return me.$message.error('该单据号['+documentNo+']不存在');
}
for (let rowObject of storagRequestList) {
if (me.isNotBank(documentNo)) {
@ -749,14 +752,13 @@ export default {
return me.$message.error('请检索单据号后操作');
}
// 调用
// me.doSearch();
console.log(rowObject.documentStatus);
if (rowObject.documentStatus !== '提交' ) {
return me.$message.error(documentNo+'单据状态不是提交状态不允许打印');
}
}
}
showLoading();
axios({
method: 'get',