company/src/components/business/OperaApplyChangeDetailWindow.vue
@@ -190,7 +190,11 @@ <reinsurance ref="reinsurance" @success="successEvent" /> <!-- 换厂申请 --> <factoryChange ref="factoryChange" @success="successEvent" /> <template v-slot:footer> <el-button @click="visible=false">返回</el-button> </template> </GlobalWindow> </template> <script> company/src/components/business/OperaApplyChangeUnitDetailWindow.vue
@@ -178,8 +178,10 @@ <additionSubtractionApplication ref="additionSubtractionApplication" @success="successEvent" /> <!-- 换厂申请 --> <factoryChange ref="factoryChange" @success="successEvent" /> <editFactoryChange ref="editFactoryChange" @success="successEvent" /> <template v-slot:footer> <el-button @click="visible=false">返回</el-button> </template> </GlobalWindow> </template> company/src/components/business/OperaInsuranceApplyWindow.vue
@@ -250,6 +250,9 @@ <additionSubtractionApplication ref="additionSubtractionApplication" @success="successEvent" /> <!-- 换厂申请 --> <factoryChange ref="factoryChange" @success="successEvent" /> <template v-slot:footer> <el-button @click="visible=false">返回</el-button> </template> </GlobalWindow> </template> @@ -335,6 +338,8 @@ open(title,target){ this.visible = true; this.title = title this.model={} this.dataId=null this.dataId = target.id this.getDetail() this.getList() @@ -520,7 +525,7 @@ onSubmit(){ }, getDetail(){ getDetail(){ getDetail(this.dataId).then(res => { this.model = res this.tableData = new Array() company/src/components/business/dispatchUnitDetailsPlat.vue
@@ -112,6 +112,9 @@ <OperaDispatchUnitWindow ref="OperaDispatchUnitWindow" @success="callback" /> <dispatchReview ref="dispatchReview" @success="callback" /> <dispatchReviewCheck ref="dispatchReviewCheck" @success="callback" /> <template v-slot:footer> <el-button @click="visible=false">返回</el-button> </template> </GlobalWindow> </template> company/src/views/business/insuranceApply.vue
@@ -75,7 +75,7 @@ fixed="right" > <template slot-scope="{row}"> <el-button type="text" @click="$refs.operaInsuranceApplyWindow.open('编辑投保申请信息表', row)" icon="el-icon-edit" v-permissions="['business:insuranceapply:update']">查看详情</el-button> <el-button type="text" @click="$refs.operaInsuranceApplyWindow.open('投保申请详情', row)" icon="el-icon-edit" v-permissions="['business:insuranceapply:update']">查看详情</el-button> </template> </el-table-column> </el-table> company/src/views/business/taxes.vue
@@ -84,7 +84,7 @@ <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 && userInfo.type === 0" type="text" @click="$refs.OperaTaxesUploadWindow.open('修改发票',row)">修改发票</el-button> <el-button type="text" @click="$refs.OperaTaxesWindow.open('申请详情',row)">申请详情</el-button> <el-button type="text" @click="$refs.OperaTaxesWindow.open('开票申请详情',row)">申请详情</el-button> </template> </el-table-column> </el-table> company/src/views/index.vue
@@ -42,7 +42,7 @@ <span>提交时间 {{item.createDate}}</span> </div> <div class="list_item_right"> <span>查看详情</span> <span @click="detail(item)">查看</span> </div> </div> </div> @@ -68,7 +68,7 @@ <span>提交时间 {{item.createDate}}</span> </div> <div class="list_item_right"> <span>查看详情</span> <span @click="detail(item)">查看</span> </div> </div> </div> @@ -94,7 +94,7 @@ <span>提交时间 {{item.createDate}}</span> </div> <div class="list_item_right"> <span>查看详情</span> <span @click="detail(item)">查看</span> </div> </div> </div> @@ -110,28 +110,47 @@ </div> </div> </div> <OperaInsuranceApplyWindow ref="operaInsuranceApplyWindow" @success="backDo"/> <dispatchUnitDetailsPlat ref="dispatchUnitDetailsPlat" @success="backDo"/> <OperaSettleClaimsWindow ref="operaSettleClaimsWindow" @success="backDo"/> <OperaApplyChangeUnitDetailWindow ref="operaApplyChangeUnitDetailWindow" @success="backDo"/> <OperaApplyChangeDetailWindow ref="operaApplyChangeDetailWindow" @success="backDo"/> <OperaTaxesWindow ref="OperaTaxesWindow" @success="backDo"/> </div> </template> <script> import * as echarts from 'echarts'; import {mapState} from "vuex"; import * as echarts from 'echarts' import { mapState } from 'vuex' import OperaInsuranceApplyWindow from '@/components/business/OperaInsuranceApplyWindow' import dispatchUnitDetailsPlat from '@/components/business/dispatchUnitDetailsPlat' import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow' 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' export default { components: { OperaInsuranceApplyWindow , dispatchUnitDetailsPlat, OperaTaxesWindow, OperaSettleClaimsWindow, OperaApplyChangeDetailWindow, OperaApplyChangeUnitDetailWindow }, name: 'Index', data () { return { activeName: '0', tabs:[], tabs: [], page0: 1, page1: 1, page2: 1, totalPage2: 0, totalPage1: 0, totalPage0: 0, tableData0:[], tableData1:[], tableData2:[], tableData0: [], tableData1: [], tableData2: [], cate: [ { name: '投保申请', @@ -191,81 +210,99 @@ computed: { ...mapState(['userInfo']) }, mounted() { mounted () { this.setPicture1() this.setPicture2() this.setPicture3() this.initPanel() }, methods: { getNoticeList(type,page){ noticeList({ page: page, capacity: 5, model: { queryType:type}, sorts: [] }) .then(response => { if(type ===0){ this.tableData0 = response.records this.totalPage0 = response.total } if(type ===1){ this.tableData1 = response.records this.totalPage1 = response.total } if(type ===2){ this.tableData2 = response.records this.totalPage2 = response.total } }) .catch(e => { this.$tip.apiFailed(e) }) detail (obj) { if (obj.objType === 0) { this.$refs.operaInsuranceApplyWindow.open('投保申请详情', {id:obj.objId}) } 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}) } 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}) } }, initPanel(){ backDo(){ }, getNoticeList (type, page) { noticeList({ page: page, capacity: 5, model: { queryType: type }, sorts: [] }) .then(response => { if (type === 0) { this.tableData0 = response.records this.totalPage0 = response.total } if (type === 1) { this.tableData1 = response.records this.totalPage1 = response.total } if (type === 2) { this.tableData2 = response.records this.totalPage2 = response.total } }) .catch(e => { this.$tip.apiFailed(e) }) }, initPanel () { var pemissons = this.userInfo.permissions if(pemissons.includes("business:notice:insurance")){ this.tabs.push( {name:"0",label:"投保代办" }) if (pemissons.includes('business:notice:insurance')) { this.tabs.push({ name: '0', label: '投保代办' }) } if(pemissons.includes("business:notice:tax")){ this.tabs.push( {name:"1",label:"发票代办" }) if (pemissons.includes('business:notice:tax')) { this.tabs.push({ name: '1', label: '发票代办' }) } if(pemissons.includes("business:notice:settle")){ this.tabs.push( {name:"2",label:"理赔代办" }) if (pemissons.includes('business:notice:settle')) { this.tabs.push({ name: '2', label: '理赔代办' }) } if(pemissons.includes("business:notice:insurance")){ this.getNoticeList(0,this.page0 ) if (pemissons.includes('business:notice:insurance')) { this.getNoticeList(0, this.page0) } if(pemissons.includes("business:notice:tax")){ this.getNoticeList(1,this.page1 ) if (pemissons.includes('business:notice:tax')) { this.getNoticeList(1, this.page1) } if(pemissons.includes("business:notice:settle")){ this.getNoticeList(2,this.page2 ) if (pemissons.includes('business:notice:settle')) { this.getNoticeList(2, this.page2) } }, handleClick(e) { handleClick (e) { this.activeName = e.name }, handleCurrentChange0(page) { handleCurrentChange0 (page) { this.page0 = page this.getNoticeList(0,this.page0 ) this.getNoticeList(0, this.page0) }, handleCurrentChange1(page) { handleCurrentChange1 (page) { this.page1 = page this.getNoticeList(1,this.page1 ) this.getNoticeList(1, this.page1) }, handleCurrentChange2(page) { handleCurrentChange2 (page) { this.page2 = page this.getNoticeList(2,this.page2) this.getNoticeList(2, this.page2) }, jump(url) { if (!url) return; this.$router.push({ path: url }); jump (url) { if (!url) return this.$router.push({ path: url }) }, setPicture1 () { let chartDom = this.$refs.picture1; let myChart = echarts.init(chartDom); const chartDom = this.$refs.picture1 const myChart = echarts.init(chartDom) let option option = { title: { @@ -282,7 +319,7 @@ radius: '50%', data: [ { value: 1048, name: '保障中' }, { value: 735, name: '不在保' }, { value: 735, name: '不在保' } ], emphasis: { itemStyle: { @@ -293,13 +330,13 @@ } } ] }; } option && myChart.setOption(option); option && myChart.setOption(option) }, setPicture2 () { let chartDom = this.$refs.picture2; let myChart = echarts.init(chartDom); const chartDom = this.$refs.picture2 const myChart = echarts.init(chartDom) let option option = { title: { @@ -329,13 +366,13 @@ type: 'line' } ] }; } option && myChart.setOption(option); option && myChart.setOption(option) }, setPicture3 () { let chartDom = this.$refs.picture3; let myChart = echarts.init(chartDom); const chartDom = this.$refs.picture3 const myChart = echarts.init(chartDom) let option option = { title: { @@ -356,7 +393,7 @@ containLabel: true }, xAxis: { type: 'value', type: 'value' // boundaryGap: [0, 0.01] }, yAxis: { @@ -377,9 +414,9 @@ data: [15, 16, 24] } ] }; } option && myChart.setOption(option); option && myChart.setOption(option) } } } @@ -520,7 +557,7 @@ } .home_content_right_page { margin-top: 20px; position: absolute; position: relative; bottom: 20px; left: 20px; box-sizing: border-box; server/platform/src/main/java/com/doumee/api/business/DispatchUnitController.java
@@ -7,6 +7,7 @@ import com.doumee.core.model.LoginUserInfo; import com.doumee.core.model.PageWrap; import com.doumee.core.model.PageData; import com.doumee.dao.business.dto.DispatchUnitQueryDTO; import com.doumee.dao.business.dto.SaveDispatchUnitDTO; import com.doumee.dao.business.model.DispatchUnit; import com.doumee.service.business.DispatchUnitService; @@ -74,6 +75,15 @@ return ApiResponse.success(null); } @ApiOperation("数据列表") @PostMapping("/findListByDTO") @RequiresPermissions("business:dispatchunit:query") public ApiResponse<List<DispatchUnit>> findListByDTO (@RequestBody DispatchUnitQueryDTO dispatchUnitQueryDTO) { return ApiResponse.success(dispatchUnitService.findByDTO(dispatchUnitQueryDTO)); } @ApiOperation("根据ID修改") @PostMapping("/updateById") @RequiresPermissions("business:dispatchunit:update") server/platform/src/main/java/com/doumee/api/business/WorktypeController.java
@@ -6,6 +6,7 @@ import com.doumee.core.model.ApiResponse; import com.doumee.core.model.PageWrap; import com.doumee.core.model.PageData; import com.doumee.dao.business.dto.WorkTypeQueryDTO; import com.doumee.dao.business.model.Worktype; import com.doumee.service.business.WorktypeService; import io.swagger.annotations.*; @@ -68,6 +69,12 @@ worktypeService.updateById(worktype); return ApiResponse.success(null); } @ApiOperation("根据条件工种列表") @PostMapping("/findListByDTO") public ApiResponse<List<Worktype>> findListByDTO (@RequestBody WorkTypeQueryDTO workTypeQueryDTO) { return ApiResponse.success(worktypeService.findListByDTO(workTypeQueryDTO)); } @ApiOperation("分页查询") @PostMapping("/page") server/service/src/main/java/com/doumee/core/utils/Constants.java
@@ -764,7 +764,7 @@ CA_PALTFORM_EDIT_PIDAN(21, "修改批单","修改原因:${param}",1), PALTFORM_EDIT_BD(22, "修改保单","修改原因:${param}",1), CA_JIAJIAN_APPLY_SIGN(23, "加减保申请企业签章","",1), CA_CHANGUNIT_APPLY_SIGN(24, "换成申请企业签章","",1), CA_CHANGUNIT_APPLY_SIGN(24, "换厂申请企业签章","",1), CA_UPLOAD_AGAIN(25, "再次投保","",1), ; // 成员变量 server/service/src/main/java/com/doumee/dao/business/model/ApplyChagneDetail.java
@@ -33,7 +33,6 @@ @ApiModelProperty(value = "创建时间") @ExcelColumn(name="创建时间") private Date createDate; @ApiModelProperty(value = "更新人编码", example = "1") @@ -42,7 +41,6 @@ @ApiModelProperty(value = "更新时间") @ExcelColumn(name="更新时间") private Date editDate; @ApiModelProperty(value = "是否删除0否 1是", example = "1") server/service/src/main/java/com/doumee/service/business/impl/DispatchUnitServiceImpl.java
@@ -893,14 +893,15 @@ LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); List<DispatchUnit> dispatchUnitList = dispatchUnitJoinMapper.selectJoinList(DispatchUnit.class, new MPJLambdaWrapper<DispatchUnit>().selectAll(DispatchUnit.class) .selectAs(DuSolution::getId,DispatchUnit::getDuSolutionId) .leftJoin(DuSolution.class,DuSolution::getDispatchUnitId,DispatchUnit::getId) // .selectAs(DuSolution::getId,DispatchUnit::getDuSolutionId) // .leftJoin(DuSolution.class,DuSolution::getDispatchUnitId,DispatchUnit::getId) .eq(DispatchUnit::getIsdeleted,Constants.ZERO) .eq(loginUserInfo.getType().equals(Constants.ONE),DispatchUnit::getCompanyId,loginUserInfo.getCompanyId()) .eq(DispatchUnit::getStatus,Constants.ZERO) //.eq(DispatchUnit::getDataType,dispatchUnitQueryDTO.getDataType()) .eq(DispatchUnit::getDataType,Constants.TWO) .eq(!Objects.isNull(dispatchUnitQueryDTO.getSolutionId()),DuSolution::getSolutionId,dispatchUnitQueryDTO.getSolutionId()) .exists("select b.id from du_solution b where b.isdeleted=0 and b.dispatch_unit_id=t.id" ) // .eq(!Objects.isNull(dispatchUnitQueryDTO.getSolutionId()),DuSolution::getSolutionId,dispatchUnitQueryDTO.getSolutionId()) .exists(!Objects.isNull(dispatchUnitQueryDTO.getApplyId()), " select 1 from apply_detail ad where ad.isdeleted = 0 and ad.apply_id = "+dispatchUnitQueryDTO.getApplyId()+" " + " and ad.du_id = t.id ")