Browse Source

发起开票申请调整

huangguoce 3 weeks ago
parent
commit
f1284f5cc0

+ 24 - 4
src/views/cw/invoice/InvoiceList.vue

@@ -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()
           })

+ 2 - 2
src/views/cw/reportManagement/ReportManagementList.vue

@@ -147,7 +147,7 @@
 						plain>已盖章文件下载</el-button>
 					<el-button v-if="hasPermission('cw_report_number:replace')" type="primary"
 						@click="importReplaceNumber()" plain>报告号替换</el-button>
-					<el-button type="primary" v-if="hasPermission('cwProjectReport:import')" @click="exportReport()"
+					<el-button type="primary" v-if="hasPermission('cwProjectReport:import')" @click="importReport()"
 						plain>批量登记报告</el-button>
 					<el-button type="primary" v-if="hasPermission('cwProjectReport:start')"
 						@click="batchStartReportNumber()" plain
@@ -2190,7 +2190,7 @@ export default {
 			this.$refs.numberReplace.init()
 		},
 		// 批量导入报告
-		exportReport() {
+		importReport() {
 			this.$refs.reportListImport.init()
 		},
 		// 批量启动报告号申请流程