From 7617ab95d74747e8fa784b207dcfcf7c77393a94 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期日, 04 二月 2024 14:36:54 +0800
Subject: [PATCH] Mr.Shi

---
 company/src/views/enterprise/directInvoicing.vue |   42 +++++++++++-------------------------------
 1 files changed, 11 insertions(+), 31 deletions(-)

diff --git a/company/src/views/enterprise/directInvoicing.vue b/company/src/views/enterprise/directInvoicing.vue
index 399b0a0..759def1 100644
--- a/company/src/views/enterprise/directInvoicing.vue
+++ b/company/src/views/enterprise/directInvoicing.vue
@@ -4,15 +4,12 @@
         <template v-slot:table-wrap>
             <ul style="margin-bottom: 30px;width: 100%;display: flex;align-items: center;justify-content: space-between;">
                 <li style="font-size: 18px;font-weight: bold;">鐢宠寮�绁�</li>
-                <li><el-button type="primary" @click="apply">鎻愪氦寮�绁�</el-button></li>
             </ul>
             <el-table
-                    v-loading="isWorking.search"
-                    :data="tableData.list"
-                    stripe
-                    @selection-change="handleSelectionChange"
+                v-loading="isWorking.search"
+                :data="tableData.list"
+                stripe
             >
-                <el-table-column type="selection" fixed="left" width="55"></el-table-column>
                 <el-table-column label="搴忓彿" width="80px">
                     <template slot-scope="scope">
                         <span>{{scope.$index + 1}}</span>
@@ -42,18 +39,19 @@
                 <el-table-column label="鎿嶄綔" min-width="180px">
                     <template slot-scope="{row}">
                         <el-button type="text" @click="$refs.entrustmentHistory.open('寮�绁ㄥ巻鍙�', row)">寮�绁ㄥ巻鍙�</el-button>
+                        <el-button type="text" @click="$refs.directInvoicingApplication.open('寮�绁ㄧ敵璇�', row)">鐢宠寮�绁�</el-button>
                     </template>
                 </el-table-column>
             </el-table>
             <pagination
-                    @size-change="handleSizeChange"
-                    @current-change="handlePageChange"
-                    :pagination="tableData.pagination"
+                @size-change="handleSizeChange"
+                @current-change="handlePageChange"
+                :pagination="tableData.pagination"
             >
             </pagination>
         </template>
         <!--   鐢宠    -->
-        <entrustedInvoicingApplication ref="entrustedInvoicingApplication" @success="handlePageChange" />
+        <directInvoicingApplication ref="directInvoicingApplication" @success="handlePageChange" />
         <!--    寮�绁ㄥ巻鍙�    -->
         <entrustmentHistory ref="entrustmentHistory" @success="handlePageChange" />
     </TableLayout>
@@ -63,12 +61,12 @@
     import BaseTable from '@/components/base/BaseTable'
     import TableLayout from '@/layouts/TableLayout'
     import Pagination from '@/components/common/Pagination'
-    import entrustedInvoicingApplication from '@/components/enterprise/entrustedInvoicingApplication'
+    import directInvoicingApplication from '@/components/enterprise/directInvoicingApplication'
     import entrustmentHistory from '@/components/enterprise/entrustmentHistory'
     export default {
         name: 'directInvoicing',
         extends: BaseTable,
-        components: { TableLayout, Pagination, entrustedInvoicingApplication, entrustmentHistory },
+        components: { TableLayout, Pagination, directInvoicingApplication, entrustmentHistory },
         data () {
             return {
                 searchForm: {
@@ -86,25 +84,7 @@
             this.search()
         },
         methods: {
-            apply() {
-                if (this.tableData.selectedRows.length === 0) {
-                    this.$message.warning('鑷冲皯閫夋嫨涓�椤瑰唴瀹�')
-                    return
-                }
-                for (let i = 0; i < this.tableData.selectedRows.length; i++) {
-                    if (this.tableData.selectedRows[i].currentFee - this.tableData.selectedRows[i].taxesMoney === 0) {
-                        this.$message.warning(`绗�${i + 1}椤瑰彲寮�绁ㄩ噾棰濅负0锛屼笉鑳借繘琛屽紑绁紒`)
-                        return
-                    }
-                }
-                let obj = {}
-                obj.list = JSON.parse(JSON.stringify(this.tableData.selectedRows))
-                obj.list.forEach(item => {
-                    item.totalPrice = item.currentFee - item.taxesMoney
-                })
-                console.log(obj.list)
-                this.$refs.entrustedInvoicingApplication.open('鐢宠寮�绁�', obj)
-            }
+
         }
     }
 </script>

--
Gitblit v1.9.3