| | |
| | | <template> |
| | | <template> |
| | | <div class="home"> |
| | | <div class="home_inlet"> |
| | | <div class="home_inlet_label">快捷入口</div> |
| | |
| | | <div class="home_content_left_item" ref="picture3"></div> |
| | | </div> |
| | | <div class="home_content_right"> |
| | | <div class="home_content_right_label" v-if="tabs && tabs.length>0" >代办事项</div> |
| | | <div class="home_content_right_label" v-if="tabs && tabs.length>0" >待办事项</div> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick" > |
| | | <el-tab-pane v-for="a in tabs" :key="a.path" :name="a.name" > |
| | | <span slot="label" title="点击刷新"> {{a.label }} |
| | |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <div v-if="activeName === '0'" v-permissions="['business:notice:insurance']" > |
| | | <div class="home_content_right_list"> |
| | | <div class="home_content_right_list" v-if="tableData0 && tableData0.length"> |
| | | <div class="list_item" v-for="(item, index) in tableData0" :key="index"> |
| | | <div class="list_item_left"> |
| | | <span>{{item.title}}({{ item.typeDetail }})</span> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_list" v-else> |
| | | <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px"> |
| | | 暂无消息 |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange0" |
| | |
| | | </div> |
| | | </div> |
| | | <div v-if="activeName === '1'" v-permissions="['business:notice:tax']"> |
| | | <div class="home_content_right_list"> |
| | | <div class="home_content_right_list" v-if="tableData1 && tableData1.length"> |
| | | <div class="list_item" v-for="(item, index) in tableData1" :key="index"> |
| | | <div class="list_item_left"> |
| | | <span>{{item.title}}({{ item.typeDetail }})</span> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_list" v-else> |
| | | <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px"> |
| | | 暂无消息 |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange1" |
| | |
| | | </div> |
| | | </div> |
| | | <div v-if="activeName === '2'" v-permissions="['business:notice:settle']"> |
| | | <div class="home_content_right_list"> |
| | | <div class="home_content_right_list" v-if="tableData2 && tableData2.length"> |
| | | <div class="list_item" v-for="(item, index) in tableData2" :key="index"> |
| | | <div class="list_item_left"> |
| | | <span>{{item.title}}({{ item.typeDetail }})</span> |
| | |
| | | <div class="list_item_right"> |
| | | <span @click="detail(item)">查看</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_list" v-else> |
| | | <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px"> |
| | | 暂无消息 |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | |
| | | </div> |
| | | </div> |
| | | <OperaInsuranceApplyWindow ref="operaInsuranceApplyWindow" @success="handleCurrentChange0()"/> |
| | | <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" @success="handleCurrentChange0()"/> |
| | | <dispatchUnitDetailsPlat ref="dispatchUnitDetailsPlat" @success="handleCurrentChange0()"/> |
| | | <OperaSettleClaimsWindow ref="operaSettleClaimsWindow" @success="handleCurrentChange2()"/> |
| | | <OperaApplyChangeUnitDetailWindow ref="operaApplyChangeUnitDetailWindow" @success="handleCurrentChange0()"/> |
| | |
| | | import OperaApplyChangeDetailWindow from '@/components/business/OperaApplyChangeDetailWindow' |
| | | import OperaTaxesWindow from '@/components/business/OperaTaxesWindow' |
| | | import { fetchList as noticeList, deleById } from '@/api/business/notices' |
| | | import {getChangeDetail, getDetail} from "@/api/business/insuranceApply"; |
| | | import OperaWtbApplyShopWindow from "@/components/business/OperaWtbApplyShopWindow"; |
| | | export default { |
| | | components: { |
| | | OperaWtbApplyShopWindow, |
| | | OperaInsuranceApplyWindow, |
| | | dispatchUnitDetailsPlat, |
| | | OperaTaxesWindow, |
| | | OperaSettleClaimsWindow, |
| | | OperaApplyChangeDetailWindow, |
| | | OperaApplyChangeUnitDetailWindow |
| | | OperaApplyChangeUnitDetailWindow, |
| | | }, |
| | | name: 'Index', |
| | | data () { |
| | |
| | | methods: { |
| | | detail (obj) { |
| | | if (obj.objType === 0) { |
| | | this.$refs.operaInsuranceApplyWindow.open('投保申请详情', { id: obj.objId }) |
| | | getDetail(obj.objId).then(res => { |
| | | if( res.solutionType == 0){ |
| | | this.$refs.operaInsuranceApplyWindow.open('投保申请详情', { id: obj.objId }) |
| | | }else{ |
| | | this.$refs.OperaWtbApplyShopWindow.open('委托投保申请详情', { id: obj.objId }) |
| | | } |
| | | }).catch(err => { |
| | | }) |
| | | } else if (obj.objType === 1) { |
| | | this.$refs.operaApplyChangeDetailWindow.open('加减保详情', { id: obj.objId, applyId: obj.param1 }) |
| | | getChangeDetail(obj.objId).then(res => { |
| | | this.$refs.operaApplyChangeDetailWindow.open('加减保详情', { id: obj.objId, applyId: res.applyId }) |
| | | }).catch(err => { |
| | | }) |
| | | } else if (obj.objType === 2) { |
| | | this.$refs.operaApplyChangeUnitDetailWindow.open('更换派遣单位申请详情', { id: obj.objId, applyId: obj.param1 }) |
| | | getChangeDetail(obj.objId).then(res => { |
| | | this.$refs.operaApplyChangeUnitDetailWindow.open('更换派遣单位申请详情', { id: obj.objId, applyId: res.applyId }) |
| | | }).catch(err => { |
| | | }) |
| | | } else if (obj.objType === 3) { |
| | | this.$refs.dispatchUnitDetailsPlat.open('派遣单详情', { id: obj.objId }) |
| | | } else if (obj.objType === 4) { |
| | |
| | | var pemissons = this.userInfo.permissions |
| | | |
| | | if (pemissons.includes('business:notice:insurance')) { |
| | | this.tabs.push({ name: '0', label: '投保代办' }) |
| | | this.tabs.push({ name: '0', label: '投保待办' }) |
| | | // this.handleCurrentChange0(0); |
| | | } |
| | | if (pemissons.includes('business:notice:tax') && this.userInfo.type !== 1) { |
| | | this.tabs.push({ name: '1', label: '发票代办' }) |
| | | this.tabs.push({ name: '1', label: '发票待办' }) |
| | | // this.handleCurrentChange1(0); |
| | | } |
| | | if (pemissons.includes('business:notice:settle')) { |