From 5019ed6016b47221321bf395cd102dc4b51b4724 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 05 二月 2024 09:40:43 +0800
Subject: [PATCH] Mr.Shi
---
company/src/views/business/taxes.vue | 29 +++++++++++++++++++----------
1 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/company/src/views/business/taxes.vue b/company/src/views/business/taxes.vue
index be01d8e..3d42e64 100644
--- a/company/src/views/business/taxes.vue
+++ b/company/src/views/business/taxes.vue
@@ -19,7 +19,7 @@
end-placeholder="缁撴潫鏃ユ湡">
</el-date-picker>
</el-form-item>
- <el-form-item label="鐢宠寮�绁ㄤ紒涓�" prop="companyId">
+ <el-form-item label="鐢宠寮�绁ㄤ紒涓�" prop="companyId" v-if="userInfo.type === 0">
<el-select v-model="searchForm.companyId" placeholder="璇烽�夋嫨" @change="search">
<el-option
v-for="item in companyList"
@@ -48,13 +48,13 @@
</el-table-column>
<el-table-column label="寮�绁ㄧ姸鎬�" min-width="100px">
<template slot-scope="{row}">
- <span v-if="row.status === 0">寰呭鐞�</span>
- <span v-if="row.status === 1">宸插紑绁�</span>
- <span v-if="row.status === 2">骞冲彴鎾ゅ洖</span>
- <span v-if="row.status === 3">宸插啿绾�</span>
+ <span :class="'tax-status'+row.status" v-if="row.status === 0">寰呭鐞�</span>
+ <span :class="'tax-status'+row.status" v-if="row.status === 1">宸插紑绁�</span>
+ <span :class="'tax-status'+row.status" v-if="row.status === 2">骞冲彴鎾ゅ洖</span>
+ <span :class="'tax-status'+row.status" v-if="row.status === 3">宸插啿绾�</span>
</template>
</el-table-column>
- <el-table-column prop="companyName" label="鐢宠浼佷笟" min-width="100px"></el-table-column>
+ <el-table-column prop="companyName" label="鐢宠浼佷笟" min-width="100px" v-if="userInfo.type === 0"></el-table-column>
<el-table-column prop="createDate" label="鐢宠寮�绁ㄦ椂闂�" min-width="100px"></el-table-column>
<el-table-column prop="creatorName" label="鐢宠浜�" min-width="100px"></el-table-column>
<el-table-column prop="price" label="寮�绁ㄩ噾棰濓紙鍏冿級" min-width="100px"></el-table-column>
@@ -72,14 +72,19 @@
</el-table-column>
<el-table-column prop="type" label="鍙戠エ鐢靛瓙鐗�" min-width="100px">
<template slot-scope="{row}">
- <img v-if="row.imgurlFull!=null" :src="row.imgurlFull" style="width: 40px;height: 40px">
+ <el-image
+ v-if="row.imgurlFull!=null"
+ style="width: 40px; height: 40px"
+ :src="row.imgurlFull"
+ :preview-src-list="[row.imgurlFull]">
+ </el-image>
</template>
</el-table-column>
<el-table-column label="鎿嶄綔" min-width="180px">
<template slot-scope="{row}">
- <el-button v-if="row.status==0" type="text" @click="$refs.OperaTaxesUploadWindow.open('涓婁紶鍙戠エ',row)">涓婁紶鍙戠エ</el-button>
- <el-button v-if="row.status ==1 " type="text" @click="$refs.OperaTaxesUploadWindow.open('淇敼鍙戠エ',row)">淇敼鍙戠エ</el-button>
- <el-button type="text" @click="$refs.OperaTaxesWindow.open('鐢宠璇︽儏',row)">鐢宠璇︽儏</el-button>
+ <el-button v-if="row.status == 0" type="text" @click="$refs.OperaTaxesUploadWindow.open('涓婁紶鍙戠エ',row)">涓婁紶鍙戠エ</el-button>
+ <el-button v-if="row.status == 1 && userInfo.type === 0" type="text" @click="$refs.OperaTaxesUploadWindow.open('淇敼鍙戠エ',row)">淇敼鍙戠エ</el-button>
+ <el-button type="text" @click="$refs.OperaTaxesWindow.open('寮�绁ㄧ敵璇疯鎯�',row)">鐢宠璇︽儏</el-button>
</template>
</el-table-column>
</el-table>
@@ -131,6 +136,7 @@
import { pageAll as companyAll } from '@/api/business/company'
import { doneApply } from '@/api/business/taxes'
import UploadAvatarImage from '@/components/common/UploadAvatarImage'
+import { mapState } from 'vuex'
export default {
name: 'Taxes',
extends: BaseTable,
@@ -152,6 +158,9 @@
visible: false
}
},
+ computed: {
+ ...mapState(['userInfo'])
+ },
created () {
this.config({
module: '鍙戠エ淇℃伅琛�',
--
Gitblit v1.9.3