|
|
@@ -1064,10 +1064,30 @@ export default {
|
|
|
)
|
|
|
.then(() => {
|
|
|
this.loading = true
|
|
|
- financeInvoiceService.batchInvoicePush(selectedRows).then(() => {
|
|
|
- this.$message.success('操作成功')
|
|
|
- this.refreshList()
|
|
|
- }).catch(() => {
|
|
|
+ financeInvoiceService.batchInvoicePush(selectedRows).then((data) => {
|
|
|
+ if (data) {
|
|
|
+ if (data.length > 0) {
|
|
|
+ console.log(123);
|
|
|
+ let message = '操作完成</br>';
|
|
|
+ data.forEach((item) => {
|
|
|
+ message += item + '</br>';
|
|
|
+ });
|
|
|
+ ElMessageBox.alert(message, '提示', {
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ callback: (action) => {
|
|
|
+ this.refreshList()
|
|
|
+ },
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message.success('操作成功')
|
|
|
+ this.refreshList()
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ loading.close();
|
|
|
+ }
|
|
|
+ }).catch((e) => {
|
|
|
+ console.log(e);
|
|
|
this.$message.error('操作失败,请重试')
|
|
|
this.refreshList()
|
|
|
})
|