From d2bc6e096f0806b78ea92d4b90a21d3627d406c7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 08 三月 2024 18:28:42 +0800
Subject: [PATCH] mrshi
---
company/src/views/enterprise/directInvoicing.vue | 57 +++++++++++++++++++++------------------------------------
1 files changed, 21 insertions(+), 36 deletions(-)
diff --git a/company/src/views/enterprise/directInvoicing.vue b/company/src/views/enterprise/directInvoicing.vue
index 399b0a0..15c5949 100644
--- a/company/src/views/enterprise/directInvoicing.vue
+++ b/company/src/views/enterprise/directInvoicing.vue
@@ -4,26 +4,27 @@
<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>
</template>
</el-table-column>
- <el-table-column prop="statusInfo" label="鐘舵��"></el-table-column>
+ <el-table-column prop="statusInfo" label="鐘舵��">
+ <template slot-scope="{row}">
+ <span :class="'apply-status'+row.status" >{{row.statusInfo}}</span>
+ </template>
+ </el-table-column>
<el-table-column prop="solutionsName" label="淇濋櫓鏂规"></el-table-column>
<el-table-column prop="code" label="淇濆崟鍙�"></el-table-column>
- <el-table-column label="浜х敓璐圭敤锛堝厓锛�">
+ <el-table-column label="鎬昏垂鐢紙鍏冿級">
<template slot-scope="{row}">
- <span>{{row.currentFee}}</span>
+ <span>{{row.fee}}</span>
</template>
</el-table-column>
<el-table-column label="宸插紑绁ㄨ垂鐢紙鍏冿級">
@@ -33,7 +34,7 @@
</el-table-column>
<el-table-column prop="fee" label="鏈紑绁ㄨ垂鐢紙鍏冿級">
<template slot-scope="{row}">
- <span>{{row.currentFee - row.taxesMoney}}</span>
+ <span>{{row.fee - row.taxesMoney}}</span>
</template>
</el-table-column>
<el-table-column prop="taxesLast" label="涓婃寮�绁ㄦ椂闂�"></el-table-column>
@@ -42,18 +43,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,16 +65,17 @@
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: {
- type: 0
+ type: 0,
+ status: '5,7'
}
}
},
@@ -86,25 +89,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