|
|
@@ -1049,7 +1049,7 @@ export default {
|
|
|
let selectedRows = this.$refs.invoiceTable.getCheckboxRecords()
|
|
|
// 校验
|
|
|
for (const row of selectedRows) {
|
|
|
- if ((row.status != '0' && row.status != '1')) {
|
|
|
+ if ((row.status != '0' && row.status != '1' && row.status != '3')) {
|
|
|
this.$message.error('所选数据中存在已发起开票申请流程的数据,请重新选择')
|
|
|
return
|
|
|
}
|
|
|
@@ -1067,7 +1067,6 @@ export default {
|
|
|
financeInvoiceService.batchInvoicePush(selectedRows).then((data) => {
|
|
|
if (data) {
|
|
|
if (data.length > 0) {
|
|
|
- console.log(123);
|
|
|
let message = '操作完成</br>';
|
|
|
data.forEach((item) => {
|
|
|
message += item + '</br>';
|
|
|
@@ -1084,10 +1083,9 @@ export default {
|
|
|
this.refreshList()
|
|
|
}
|
|
|
} else {
|
|
|
- loading.close();
|
|
|
+ this.refreshList()
|
|
|
}
|
|
|
}).catch((e) => {
|
|
|
- console.log(e);
|
|
|
this.$message.error('操作失败,请重试')
|
|
|
this.refreshList()
|
|
|
})
|