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/index.vue | 40 +++++++++++++++++++++++++++------------- 1 files changed, 27 insertions(+), 13 deletions(-) diff --git a/company/src/views/index.vue b/company/src/views/index.vue index 86c30d9..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 () { @@ -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