MrShi
2024-03-08 d2bc6e096f0806b78ea92d4b90a21d3627d406c7
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: '投保代办' })
        // 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: '发票代办' })
        // this.handleCurrentChange1(0);
      }
      if (pemissons.includes('business:notice:settle')) {
        this.tabs.push({ name: '2', label: '理赔代办' })
        this.tabs.push({ name: '2', label: '理赔提醒' })
        // this.handleCurrentChange2(0);
      }
      /* if (pemissons.includes('business:notice:insurance')) {