From 3a45da15c947c2d478a44a51bd0f926647b1b841 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 11 四月 2025 16:33:17 +0800
Subject: [PATCH] 提交
---
company/src/components/business/OperaTaxesWindow.vue | 254 ++++++++++++++++++++++++++++++++++++++------------
1 files changed, 190 insertions(+), 64 deletions(-)
diff --git a/company/src/components/business/OperaTaxesWindow.vue b/company/src/components/business/OperaTaxesWindow.vue
index 4f6ce95..eee0fe5 100644
--- a/company/src/components/business/OperaTaxesWindow.vue
+++ b/company/src/components/business/OperaTaxesWindow.vue
@@ -46,16 +46,18 @@
<div class="info_list_item_label">鎺ユ敹鍦板潃锛�</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);">{{ model.price }}</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);">{{ model.price }}</div>-->
+<!-- </div>-->
</div>
- <el-table v-if="model.type ==0"
+<!-- show-summary-->
+<!-- :summary-method="getSummaries1"-->
+ <el-table
+ v-if="model.applyType ==0"
:data="tableData"
border
- show-summary
- :summary-method="getSummaries"
+
style="width: 100%; margin-bottom: 20px;">
<el-table-column
label="搴忓彿"
@@ -75,26 +77,23 @@
prop="applyCode"
label="淇濆崟鍙�">
</el-table-column>
- <el-table-column
- align="center"
- prop="createDate"
- 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-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="tableData1"
- border
- show-summary
- :summary-method="getSummaries"
- style="width: 100%; margin-bottom: 20px;">
+<!-- show-summary-->
+<!-- :summary-method="getSummaries"-->
+ <el-table
+ v-if="model.applyType ==1"
+ :data="tableData1"
+ border
+
+ style="width: 100%; margin-bottom: 20px;">
<el-table-column
label="淇濆崟"
align="center"
@@ -109,29 +108,34 @@
label="淇濋櫓鏂规">
</el-table-column>
<el-table-column
+ v-if="model.applyType == 1"
align="center"
prop="applyCode"
label="淇濆崟鍙�">
</el-table-column>
<el-table-column
align="center"
- prop="changApplyCode"
label="鎵瑰崟鍙�">
+ <template slot-scope="{row}">
+ <span>{{row.changApplyCode ? row.changApplyCode : '-'}}</span>
+ </template>
</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-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"
+<!-- show-summary-->
+<!-- :summary-method="getSummaries"-->
+ <el-table
+ v-if="model.applyType == 1"
:data="tableData2"
border
- show-summary
- :summary-method="getSummaries"
+
style="width: 100%; margin-bottom: 20px;">
<el-table-column
label="鍐茬孩鍗�"
@@ -156,23 +160,54 @@
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-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>
+ <span style="font-size: 14px;" v-if="model.status === 2">閫�鍥炲師鍥狅細{{model.cancelInfo}} 寮�绁ㄥ憳-{{model.cancelUserId}} {{model.cancelUserName}}</span>
+ <el-dialog
+ title="涓婁紶鍙戠エ"
+ :visible.sync="visible1"
+ width="500px"
+ style="margin-top: 150px"
+ :show-close="false"
+ append-to-body
+ :close-on-click-modal="false"
+ center>
+ <div class="form">
+ <div class="form_item">
+ <div class="form_item_val">
+ <el-form :model="form" ref="form" :rules="rules" style="width: 100%;">
+ <el-form-item label="濉啓閫�鍥炶鏄庯細":inline="true" prop="backInfo">
+ <el-input v-model="form.backInfo" type="textarea" placeholder="璇疯緭鍏�" />
+ </el-form-item>
+ </el-form>
+ </div>
+ </div>
+ </div>
+ <span slot="footer" class="dialog-footer">
+ <el-button @click="visible1 = false">鍙� 娑�</el-button>
+ <el-button type="primary" @click="backDo()">鎻� 浜�</el-button>
+ </span>
+ </el-dialog>
+ <template v-slot:footer>
+ <el-button v-if="userInfo.type !== 1 && model.status ==0 && !visible1" type="danger" @click="visible1 = true">閫�鍥炵敵璇�</el-button>
+ <el-button @click="visible = false">鍙栨秷</el-button>
+ </template>
</GlobalWindow>
</template>
<script>
import BaseOpera from '@/components/base/BaseOpera'
import GlobalWindow from '@/components/common/GlobalWindow'
-import { getDetail } from '@/api/business/taxes'
+import { getDetail,backApply } from '@/api/business/taxes'
+import { mapState } from 'vuex'
export default {
name: 'OperaCompanyWindow',
extends: BaseOpera,
@@ -181,16 +216,24 @@
return {
// 琛ㄥ崟鏁版嵁
model: {},
+ visible1:false,
form: {
- id: null
+ id: null,
+ backInfo:''
},
- // 楠岃瘉瑙勫垯
- rules: {},
+ rules: {
+ backInfo: [
+ { required: true, message: '璇疯緭鍏ラ��鍥炶鏄�' }
+ ],
+ },
tableData: [],
tableData1: [],
tableData2: []
}
},
+ computed: {
+ ...mapState(['userInfo'])
+ },
created () {
this.config({
api: '/business/taxes',
@@ -201,25 +244,71 @@
open (title, target) {
this.title = title
this.visible = true
+ this.visible1 = false
+ this.form.backInfo=''
this.model = {}
this.tableData = []
this.tableData1 = []
this.tableData2 = []
this.model = target
+ this.form.id = target.id
this.getDetails()
+ },
+ backDo(){
+ this.$refs.form.validate((valid) => {
+ if (!valid) {
+ return
+ }
+ this.isWorking = true
+ backApply(this.form)
+ .then(response => {
+ this.visible1 = false
+ this.getDetails()
+ this.$emit('success')
+ }).catch(err => {
+ this.$tip.apiFailed(err)
+ }).finally(() => {
+ this.isWorking = false
+ })
+ })
},
getDetails () {
getDetail(this.model.id).then(res => {
this.model = res
- if (res.type == 0) {
+ if (res.applyType == 0) {
this.tableData=(res.applyList)
} else {
+ console.log(res.applyList)
+ console.log(res.delTaxList)
this.tableData1=(res.applyList)
this.tableData2=(res.delTaxList)
}
- console.log(this.tableData)
}).catch(err => {
})
+ },
+ getSummaries1 (param) {
+ const { columns, data } = param
+ const sums = []
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = '鍚堣'
+ } else {
+ if (index == 3) {
+ 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
},
getSummaries (param) {
const { columns, data } = param
@@ -257,17 +346,17 @@
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);
- }
- }*/
+ /* ::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 {
@@ -296,7 +385,7 @@
font-size: 14px;
margin-bottom: 20px;
.info_list_item_label {
- width: 150px;
+ width: 100px;
flex-shrink: 0;
}
.info_list_item_val {
@@ -318,4 +407,41 @@
}
}
}
+
+ .form {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ .form_item {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ margin-bottom: 20px;
+ &:last-child {
+ margin-bottom: 0 !important;
+ }
+ .form_item_label {
+ width: 100px;
+ flex-shrink: 0;
+ font-size: 14px;
+ color: black;
+ }
+ .form_item_val {
+ flex: 1;
+ min-height: 35px;
+ display: flex;
+ align-items: center;
+ input {
+ width: 100%;
+ height: 100%;
+ font-size: 14px;
+ color: black;
+ padding: 5px 10px;
+ outline: none;
+ box-sizing: border-box;
+ border: 1px solid #ececec;
+ }
+ }
+ }
+ }
</style>
--
Gitblit v1.9.3