From 4a9c70dde16036fd7e4e3c06bd8b9de98cc578e4 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 01 二月 2024 20:47:12 +0800
Subject: [PATCH] Mr.Shi

---
 company/src/components/business/OperaTaxesWindow.vue |  264 +++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 197 insertions(+), 67 deletions(-)

diff --git a/company/src/components/business/OperaTaxesWindow.vue b/company/src/components/business/OperaTaxesWindow.vue
index e3d809c..4f6ce95 100644
--- a/company/src/components/business/OperaTaxesWindow.vue
+++ b/company/src/components/business/OperaTaxesWindow.vue
@@ -1,7 +1,7 @@
 <template>
     <GlobalWindow
         :title="title"
-        width="50%"
+        width="60%"
         submitText="杩斿洖淇敼"
         :visible.sync="visible"
         :confirm-working="isWorking"
@@ -9,45 +9,49 @@
     >
         <div class="info">
             <div class="info_label">
-                <span>浼佷笟璇︽儏锛堝凡鐢宠锛�</span>
+              <span v-if="model.status === 0">浼佷笟璇︽儏锛堝緟澶勭悊锛�</span>
+              <span v-if="model.status === 1">浼佷笟璇︽儏锛堝凡寮�绁級</span>
+              <span v-if="model.status === 2">浼佷笟璇︽儏锛堝钩鍙版挙鍥烇級</span>
+              <span v-if="model.status === 3">浼佷笟璇︽儏锛堝凡鍐茬孩锛�</span>
             </div>
             <div class="info_list">
                 <div class="info_list_item">
                     <div class="info_list_item_label">寮�绁ㄥ悕绉帮細</div>
-                    <div class="info_list_item_val">瀹夊窘鏍煎姏浜哄姏璧勬簮鏈夐檺鍏徃</div>
+                    <div class="info_list_item_val">{{ model.companyName}}</div>
                 </div>
                 <div class="info_list_item">
                     <div class="info_list_item_label">绾崇◣浜鸿瘑鍒彿锛�</div>
-                    <div class="info_list_item_val">913418210000000000</div>
+                    <div class="info_list_item_val">{{ model.taxCode }}</div>
                 </div>
                 <div class="info_list_item">
                     <div class="info_list_item_label">寮�鎴疯锛�</div>
-                    <div class="info_list_item_val">瀹夊窘鍐滄潙鍟嗕笟閾惰鑲′唤鏈夐檺鍏徃鍚堣偉鏀</div>
+                    <div class="info_list_item_val">{{ model.taxBank }}</div>
                 </div>
                 <div class="info_list_item">
                     <div class="info_list_item_label">璐﹀彿锛�</div>
                     <div class="info_list_item_val">
-                        20010355666666600000000
+                      {{ model.taxAccount }}
                     </div>
                 </div>
                 <div class="info_list_item" style="width: 100%;">
                     <div class="info_list_item_label">鍦板潃銆佺數璇濓細</div>
-                    <div class="info_list_item_val">瀹夊窘鐪佸悎鑲ュ競缁忔祹鎶�鏈紑鍙戝尯鑾茶姳璺互涓溿�佺煶闂ㄨ矾浠ュ崡鑾茶姳璺�1锛�     0551-63450845</div>
+                    <div class="info_list_item_val">{{ model.taxAddr }}</div>
                 </div>
                 <div class="info_list_item" style="width: 100%;">
                     <div class="info_list_item_label">鎺ユ敹鏂瑰紡锛�</div>
-                    <div class="info_list_item_val">鐢靛瓙鍙戠エ</div>
+                    <div v-if="model.type === 0" class="info_list_item_val">鐢靛瓙鍙戠エ</div>
+                    <div v-if="model.type === 1" class="info_list_item_val">绾歌川鍙戠エ</div>
                 </div>
                 <div class="info_list_item" style="width: 100%;">
                     <div class="info_list_item_label">鎺ユ敹鍦板潃锛�</div>
-                    <div class="info_list_item_val">111122223333@qq.com</div>
+                    <div class="info_list_item_val">{{ model.addr }}</div>
                 </div>
                 <div class="info_list_item" style="width: 100%;">
                     <div class="info_list_item_label">寮�绁ㄩ噾棰濓細</div>
-                    <div class="info_list_item_val" style="color:rgba(249, 86, 1, 0.996078431372549);">2000.00</div>
+                    <div class="info_list_item_val" style="color:rgba(249, 86, 1, 0.996078431372549);">{{ model.price }}</div>
                 </div>
             </div>
-            <el-table
+            <el-table v-if="model.type ==0"
                 :data="tableData"
                 border
                 show-summary
@@ -63,23 +67,102 @@
                 </el-table-column>
                 <el-table-column
                     align="center"
-                    prop="code"
+                    prop="solutionName"
                     label="淇濋櫓鏂规">
                 </el-table-column>
                 <el-table-column
                     align="center"
-                    prop="code"
+                    prop="applyCode"
                     label="淇濆崟鍙�">
                 </el-table-column>
                 <el-table-column
                     align="center"
-                    prop="code"
+                    prop="createDate"
                     label="鐢宠寮�绁ㄦ椂闂�">
                 </el-table-column>
                 <el-table-column
                     align="center"
-                    prop="code"
+                    prop="fee"
                     label="閲戦">
+                  <template slot-scope="{row}">
+                    <span  style="color:rgba(249, 86, 1, 0.996078431372549);">{{row.fee}}</span>
+                  </template>
+                </el-table-column>
+            </el-table>
+          <el-table v-if="model.type ==1"
+                    :data="tableData1"
+                    border
+                    show-summary
+                    :summary-method="getSummaries"
+                    style="width: 100%; margin-bottom: 20px;">
+            <el-table-column
+                label="淇濆崟"
+                align="center"
+                width="80">
+              <template slot-scope="scope">
+                <span>{{scope.$index + 1}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column
+                align="center"
+                prop="solutionName"
+                label="淇濋櫓鏂规">
+            </el-table-column>
+            <el-table-column
+                align="center"
+                prop="applyCode"
+                label="淇濆崟鍙�">
+            </el-table-column>
+            <el-table-column
+                align="center"
+                prop="changApplyCode"
+                label="鎵瑰崟鍙�">
+            </el-table-column>
+            <el-table-column
+                align="center"
+                prop="fee"
+                label="閲戦">
+              <template slot-scope="{row}">
+                <span  style="color:rgba(249, 86, 1, 0.996078431372549);">{{row.fee}}</span>
+              </template>
+            </el-table-column>
+          </el-table>
+            <el-table v-if="model.type == 1"
+                :data="tableData2"
+                border
+                show-summary
+                :summary-method="getSummaries"
+                style="width: 100%; margin-bottom: 20px;">
+                <el-table-column
+                    label="鍐茬孩鍗�"
+                    align="center"
+                    width="80">
+                    <template slot-scope="scope">
+                        <span>{{scope.$index + 1}}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column
+                    align="center"
+                    prop="solutionName"
+                    label="淇濋櫓鏂规">
+                </el-table-column>
+                <el-table-column
+                    align="center"
+                    prop="taxDoneCode"
+                    label="鍙戠エ鍙�">
+                </el-table-column>
+                <el-table-column
+                    align="center"
+                    prop="taxCreateDate"
+                    label="鐢宠寮�绁ㄦ椂闂�">
+                </el-table-column>
+                <el-table-column
+                    align="center"
+                    prop="fee"
+                    label="鍙戠エ閲戦">
+                  <template slot-scope="{row}">
+                    <span  style="color:rgba(249, 86, 1, 0.996078431372549);">{{row.fee}}</span>
+                  </template>
                 </el-table-column>
             </el-table>
         </div>
@@ -87,60 +170,106 @@
 </template>
 
 <script>
-    import BaseOpera from '@/components/base/BaseOpera'
-    import GlobalWindow from '@/components/common/GlobalWindow'
-    export default {
-        name: 'OperaCompanyWindow',
-        extends: BaseOpera,
-        components: { GlobalWindow },
-        data () {
-            return {
-                // 琛ㄥ崟鏁版嵁
-                form: {
-                    id: null
-                },
-                // 楠岃瘉瑙勫垯
-                rules: {},
-              tableData:[]
-            }
-        },
-        created () {
-            this.config({
-                api: '/business/taxes',
-                'field.id': 'id'
-            })
-        },
-        methods: {
-            getSummaries(param) {
-                const { columns, data } = param;
-                const sums = [];
-                columns.forEach((column, index) => {
-                    if (index === 0) {
-                        sums[index] = '鍚堣';
-                        return;
-                    } else {
-                        if (index == 9||index==10||index==11||index==12) {
-                            const values = data.map(item => Number(item[column.property]));
-                            if (!values.every(value => isNaN(value))) {
-                                sums[index] = values.reduce((prev, curr) => {
-                                    const value = Number(curr);
-                                    if (!isNaN(value)) {
-                                        return prev + curr;
-                                    } else {
-                                        return prev;
-                                    }
-                                }, 0);
-                            }
-                        }
-                    }
-                });
-                return sums;
-            }
-        }
+import BaseOpera from '@/components/base/BaseOpera'
+import GlobalWindow from '@/components/common/GlobalWindow'
+import { getDetail } from '@/api/business/taxes'
+export default {
+  name: 'OperaCompanyWindow',
+  extends: BaseOpera,
+  components: { GlobalWindow },
+  data () {
+    return {
+      // 琛ㄥ崟鏁版嵁
+      model: {},
+      form: {
+        id: null
+      },
+      // 楠岃瘉瑙勫垯
+      rules: {},
+      tableData: [],
+      tableData1: [],
+      tableData2: []
     }
+  },
+  created () {
+    this.config({
+      api: '/business/taxes',
+      'field.id': 'id'
+    })
+  },
+  methods: {
+    open (title, target) {
+      this.title = title
+      this.visible = true
+      this.model = {}
+      this.tableData = []
+      this.tableData1 = []
+      this.tableData2 = []
+      this.model = target
+      this.getDetails()
+    },
+    getDetails  () {
+      getDetail(this.model.id).then(res => {
+        this.model = res
+        if (res.type == 0) {
+          this.tableData=(res.applyList)
+        } else {
+          this.tableData1=(res.applyList)
+          this.tableData2=(res.delTaxList)
+        }
+        console.log(this.tableData)
+      }).catch(err => {
+      })
+    },
+    getSummaries (param) {
+      const { columns, data } = param
+      const sums = []
+      columns.forEach((column, index) => {
+        if (index === 0) {
+          sums[index] = '鍚堣'
+        } else {
+          if (index == 4) {
+            const values = data.map(item => Number(item[column.property]))
+            if (!values.every(value => isNaN(value))) {
+              sums[index] = values.reduce((prev, curr) => {
+                const value = Number(curr)
+                if (!isNaN(value)) {
+                  return prev + curr
+                } else {
+                  return prev
+                }
+              }, 0)
+            }
+          }
+        }
+      })
+      return  sums
+    }
+  }
+}
 </script>
 
 <style lang="scss" scoped>
+    ::v-deep .el-table__footer-wrapper tbody td {
+      cursor: pointer;
+      text-align: center;
+      &:nth-child(5) {
+        color:rgba(249, 86, 1, 0.996078431372549);
+      }
+    }
+    ::v-deep .el-table__header-wrapper   th:first-child .cell{
+        color:rgba(249, 86, 1, 0.996078431372549) !important
+    }
+    ::v-deep  table:first-of-type th:first-child .cell{
+         //color:rgba(249, 86, 1, 0.996078431372549) !important
+    }
+  /*  ::v-deep   .el-table--border th:first-child .cell {
+      &:nth-child(2) {
+        color:rgba(249, 86, 1, 0.996078431372549);
+      }
+    }*/
+
+
     .info {
         width: 100%;
         .info_label {
@@ -150,7 +279,7 @@
             justify-content: space-between;
             margin-bottom: 20px;
             span {
-                font-size: 18px;
+                font-size: 14px;
                 font-weight: 500;
                 color: #000000;
             }
@@ -158,12 +287,13 @@
         .info_list {
             width: 100%;
             display: flex;
-            align-items: center;
+            align-items: left;
             flex-wrap: wrap;
             .info_list_item {
                 width: 50%;
                 display: flex;
                 align-items: start;
+                font-size: 14px;
                 margin-bottom: 20px;
                 .info_list_item_label {
                     width: 150px;

--
Gitblit v1.9.3