From b2bc3eb81485bc7ddb8366477b3483d4f160adaa Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 29 三月 2024 09:17:20 +0800
Subject: [PATCH] git ch
---
company/src/views/index.vue | 42 ++++++++++++++++++++++++++++--------------
1 files changed, 28 insertions(+), 14 deletions(-)
diff --git a/company/src/views/index.vue b/company/src/views/index.vue
index f61386e..e00d8da 100644
--- a/company/src/views/index.vue
+++ b/company/src/views/index.vue
@@ -128,7 +128,7 @@
import OperaSettleClaimsWindow from '@/components/business/OperaSettleClaimsWindow'
import OperaApplyChangeDetailWindow from '@/components/business/OperaApplyChangeDetailWindow'
import OperaTaxesWindow from '@/components/business/OperaTaxesWindow'
-import { fetchList as noticeList } from '@/api/business/notices'
+import { fetchList as noticeList, deleById } from '@/api/business/notices'
export default {
components: {
OperaInsuranceApplyWindow,
@@ -169,15 +169,20 @@
icon: require('../assets/icons/company/dipatch_unit.png')
},
{
- name: '鐩翠繚寮�绁�',
- url: '/enterprise/directInvoicing',
- icon: require('../assets/icons/company/tax.png')
- },
- {
- name: '濮旀墭淇濆紑绁�',
- url: '/enterprise/entrustedInvoicing',
- icon: require('../assets/icons/company/tax.png')
+ name: '鍛樺伐绠$悊',
+ url: '/business/member',
+ icon: require('../assets/icons/company/image.png')
}
+ // {
+ // name: '鐩翠繚寮�绁�',
+ // url: '/enterprise/directInvoicing',
+ // icon: require('../assets/icons/company/tax.png')
+ // },
+ // {
+ // name: '濮旀墭淇濆紑绁�',
+ // url: '/enterprise/entrustedInvoicing',
+ // icon: require('../assets/icons/company/tax.png')
+ // }
],
catePlat: [
{
@@ -225,13 +230,22 @@
} else if (obj.objType === 1) {
this.$refs.operaApplyChangeDetailWindow.open('鍔犲噺淇濊鎯�', { id: obj.objId, applyId: obj.param1 })
} else if (obj.objType === 2) {
- this.$refs.operaApplyChangeUnitDetailWindow.open('鎹㈠巶鐢宠璇︽儏', { id: obj.objId, applyId: obj.param1 })
+ this.$refs.operaApplyChangeUnitDetailWindow.open('鏇存崲娲鹃仯鍗曚綅鐢宠璇︽儏', { id: obj.objId, applyId: obj.param1 })
} else if (obj.objType === 3) {
this.$refs.dispatchUnitDetailsPlat.open('娲鹃仯鍗曡鎯�', { id: obj.objId })
} else if (obj.objType === 4) {
this.$refs.OperaTaxesWindow.open('寮�绁ㄧ敵璇疯鎯�', { id: obj.objId })
} else if (obj.objType === 5) {
- this.$refs.operaSettleClaimsWindow.open('鐞嗚禂璇︽儏', { id: obj.objId })
+ deleById(obj.id)
+ .then(res => {
+ this.tableData2.forEach((item, index) => {
+ if (item.id === obj.id) {
+ this.tableData2.splice(index, 1)
+ this.totalPage2 = this.totalPage2 - 1
+ }
+ })
+ this.$refs.operaSettleClaimsWindow.open('鐞嗚禂璇︽儏', { id: obj.objId })
+ })
}
},
setLoadTimer () {
@@ -242,7 +256,7 @@
}
window.timer = setInterval(() => {
that.initLoadData()
- }, 6000)
+ }, 60000)
},
initLoadData(){
var pemissons = this.userInfo.permissions
@@ -287,12 +301,12 @@
this.tabs.push({ name: '0', label: '鎶曚繚浠e姙' })
// this.handleCurrentChange0(0);
}
- if (pemissons.includes('business:notice:tax')) {
+ if (pemissons.includes('business:notice:tax') && this.userInfo.type !== 1) {
this.tabs.push({ name: '1', label: '鍙戠エ浠e姙' })
// this.handleCurrentChange1(0);
}
if (pemissons.includes('business:notice:settle')) {
- this.tabs.push({ name: '2', label: '鐞嗚禂浠e姙' })
+ this.tabs.push({ name: '2', label: '鐞嗚禂鎻愰啋' })
// this.handleCurrentChange2(0);
}
/* if (pemissons.includes('business:notice:insurance')) {
--
Gitblit v1.9.3