| | |
| | | label="被ä¿é©äºº"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="applyStartTime" |
| | | label="ææä¿é©çæèµ·æ"> |
| | | prop="validCode" |
| | | label="ä¿åå·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="addNum" |
| | | label="å ä¿äººæ°"> |
| | | prop="startTime" |
| | | label="ä¿é©çæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="delNum" |
| | | label="åä¿äººæ°"> |
| | | prop="endTime" |
| | | label="ä¿é©çææ¢æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="fee" |
| | | label="è´¹ç¨åæ´"> |
| | | prop="changeNum" |
| | | label="æ¢å人æ°"> |
| | | </el-table-column> |
| | | <el-table-column label="æä½"> |
| | | <template slot-scope="{row}"> |
| | |
| | | import selectApplicationForm from '@/components/business/selectApplicationForm' |
| | | import { listAll } from '@/api/business/applyChange' |
| | | import { merge } from '@/api/business/unionChange' |
| | | import ApplyChangeDetails from '@/components/business/ApplyChangeDetails' |
| | | import ApplyChangeDetails from '@/components/business/ApplyChangeUnitDetails' |
| | | import { fetchList as pageUnionList } from '@/api/business/unionApply' |
| | | import {getDetail} from "@/api/business/insuranceApply"; |
| | | export default { |
| | |
| | | checkDetial(row){ |
| | | getDetail(row.applyId).then(res => { |
| | | // this.apply = res |
| | | this.$refs.ApplyChangeDetails.open('å åä¿äººååå',res, row,2) |
| | | this.$refs.ApplyChangeDetails.open('æ´æ¢æ´¾é£åä½äººå',res, row,2) |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | |
| | | <div class="box_table_head"> |
| | | <div class="box_table_head_item">åºå·</div> |
| | | <div class="box_table_head_item">被ä¿é©äºº</div> |
| | | <div class="box_table_head_item">æä¿äººæ°</div> |
| | | <div class="box_table_head_item">æä¿äººæ°</div> |
| | | <div class="box_table_head_item">æä½</div> |
| | | <div class="box_table_head_item">æå¡è´¹(å½åä¿å)</div> |
| | | </div> |
| | |
| | | this.form.toubaodanFile= null |
| | | }, |
| | | deleIndex (flag,index) { |
| | | alert(index) |
| | | if(flag == 0){ |
| | | this.form.tbdMultifileList[index].fileurl = null |
| | | this.form.tbdMultifileList[index].name = null |
| | |
| | | <div class="box_table_head"> |
| | | <div class="box_table_head_item">åºå·</div> |
| | | <div class="box_table_head_item">被ä¿é©äºº</div> |
| | | <div class="box_table_head_item">å ä¿äººæ°</div> |
| | | <div class="box_table_head_item">åä¿äººæ°</div> |
| | | <div v-if="model.type==0" class="box_table_head_item">å ä¿äººæ°</div> |
| | | <div v-if="model.type==0" class="box_table_head_item">åä¿äººæ°</div> |
| | | <div v-if="model.type==1" class="box_table_head_item">åæ´äººæ°</div> |
| | | <div class="box_table_head_item">ä¸ä¼ æ¹å</div> |
| | | </div> |
| | | <div class="box_table_content" v-for="(item, index) in model.applyList" :key="index"> |
| | | <div class="box_table_content_item">{{index + 1}}</div> |
| | | <div class="box_table_content_item" >{{ item.companyName }}</div> |
| | | <div class="box_table_content_item">{{ item.addNum }}</div> |
| | | <div class="box_table_content_item">{{ item.delNum }}</div> |
| | | <div v-if="model.type==0" class="box_table_content_item">{{ item.addNum }}</div> |
| | | <div v-if="model.type==0" class="box_table_content_item">{{ item.delNum }}</div> |
| | | <div v-if="model.type==1" class="box_table_content_item">{{ item.changeNum }}</div> |
| | | <div class="box_table_content_item"> |
| | | <el-form-item label="" prop="bxdMultifileList[index]"> |
| | | <UploadFileLink @remove="deleIndex(1,index)" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileIndex="index" :showTips="showTips" :fileList="model.applyList[index].fileList1" @uploadSuccess="baoxianFileUploaded2" /> |
| | |
| | | }, |
| | | methods: { |
| | | deleIndex (flag,index) { |
| | | alert(index) |
| | | if(flag == 0){ |
| | | this.form.tbdMultifileList[index].fileurl = null |
| | | this.form.tbdMultifileList[index].name = null |
| | |
| | | <el-button v-if="[0,1].includes(model.status)" type="danger" @click="$refs.OperaUnionChangeCheckWindow.open('éåæä¿',model,1)">éåæä¿</el-button> |
| | | </template> |
| | | <template v-if="0"> |
| | | </template> |
| | | <template v-if="0"> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('æ´æ¢æ´¾é£åä½è¯¦å',model,0)">导åºè¯¦å</el-button> |
| | | <el-button v-if="[1,2].includes(model.status)" type="primary" @click="viewApplyFile">æ¥çç³è¯·å</el-button> |
| | | <el-button v-if="[0].includes(model.status)" type="primary" @click="getSignLink(0)">ç¾ç½²ç³è¯·å</el-button> |
| | | <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">æ¥çæ¹å</el-button> |
| | | </template> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | |
| | | this.setTime() |
| | | }) |
| | | }, |
| | | openFile (url) { |
| | | setTimeout(() => { |
| | | window.open(url) |
| | | }, 500) |
| | | }, |
| | | setTime () { |
| | | this.timer = setInterval(() => { |
| | | if (this.num === 0) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <div class="desc"> |
| | | <div class="desc_item"> |
| | | <div class="desc_item_label"> |
| | | <div class="desc_item_label_left"> |
| | | <span>æä¿äººï¼{{ model.shopName}}</span> |
| | | <span v-if="model.status === 0">ä¿åç¶æï¼<span :class="'change-status'+model.status" >å¾
ç¾ç½²</span></span> |
| | | <span v-if="model.status === 1">ä¿åç¶æï¼<span :class="'change-status'+model.status" >å¾
å®¡æ ¸</span></span> |
| | | <span v-if="model.status === 2">ä¿åç¶æï¼<span :class="'change-status'+model.status" >å·²çæ</span></span> |
| | | <span v-if="model.status === 3">ä¿åç¶æï¼<span :class="'change-status'+model.status" >å·²éå</span></span> |
| | | <span>æäº¤æ¶é´ï¼{{ model.createDate }}</span> |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <template v-if="2"> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('æ´æ¢æ´¾é£åä½è¯¦å',model,0)">导åºè¯¦å</el-button> |
| | | <el-button v-if="[1,2].includes(model.status)" type="primary" @click="viewApplyFile">æ¥çç³è¯·å</el-button> |
| | | <el-button v-if="[0].includes(model.status)" type="primary" @click="getSignLink(0)">ç¾ç½²ç³è¯·å</el-button> |
| | | <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">æ¥çæ¹å</el-button> |
| | | <el-button v-if=" [1].includes(model.status)" type="primary" @click="$refs.OperaUnionChangeCheckWindow.open('ä¸ä¼ æ¹å',model,3)">ä¸ä¼ æ¹å</el-button> |
| | | <el-button v-if="[0,1].includes(model.status)" type="danger" @click="$refs.OperaUnionChangeCheckWindow.open('éåæä¿',model,1)">éåæä¿</el-button> |
| | | </template> |
| | | <template v-if="0"> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('æ´æ¢æ´¾é£åä½è¯¦å',model,0)">导åºè¯¦å</el-button> |
| | | <el-button v-if="[1,2].includes(model.status)" type="primary" @click="viewApplyFile">æ¥çç³è¯·å</el-button> |
| | | <el-button v-if="[0].includes(model.status)" type="primary" @click="getSignLink(0)">ç¾ç½²ç³è¯·å</el-button> |
| | | <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">æ¥çæ¹å</el-button> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="validCode" |
| | | align="center" |
| | | label="æ¹åå·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | align="center" |
| | | label="ä¿åå·"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.insuranceApplyDetails.open('æä¿è¯¦æ
', { id: row.applyId })">{{row.applyCode}}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="solutionsName" |
| | | label="ä¿é©æ¹æ¡" |
| | | align="center" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="startTime" |
| | | align="center" |
| | | label="ä¿é©çæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="endTime" |
| | | align="center" |
| | | label="ä¿é©çææ¢æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="changeNum" |
| | | align="center" |
| | | label="æ¢å人æ°"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="applyStartTime" |
| | | align="center" |
| | | label="æ¹åçæèµ·æ"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | | <el-table |
| | | :data="list" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column label="åºå·"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="memberName" |
| | | label="åå·¥å§å"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="æ§å«"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.sex === 0">ç·</span> |
| | | <span v-else>女</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="memberIdcardNo" |
| | | label="身份è¯å·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="companyName" |
| | | label="被ä¿é©äºº"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="oldDuName" |
| | | label="åæ´¾é£åä½"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="oldWorkTypeName" |
| | | label="åæå±å·¥ç§"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="duName" |
| | | label="æ´æ¢åæ´¾é£åä½"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="workTypeName" |
| | | label="æ´æ¢åæå±å·¥ç§"> |
| | | </el-table-column> |
| | | |
| | | </el-table> |
| | | <div class="desc_item_from_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-size="10" |
| | | layout="total, prev, pager, next, jumper" |
| | | :total="total"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_review" v-if="model.applyLogList"> |
| | | <div class="desc_item_review_label">å®¡æ ¸æµç¨</div> |
| | | <el-timeline :reverse="reverse"> |
| | | <el-timeline-item |
| | | v-for="(activity, index) in model.applyLogList" |
| | | :key="index"> |
| | | <div style="display: flex; flex-direction: column;"> |
| | | <span style="font-size: 16px; font-weight: 400; color: black;"> |
| | | {{activity.title}} |
| | | <span style="font-size: 16px; font-weight: 400; color: black; margin-left: 10px;" > |
| | | {{activity.content}} |
| | | </span> |
| | | </span> |
| | | <span style="margin-top: 5px; font-size: 12px; font-weight: 400; color: #999999;"> |
| | | æä½å-{{activity.creatorName}}ï¼{{activity.creatorType==1? activity.companyName: (activity.creatorType==2? activity.companyName: "å¹³å°ç«¯") }}}ï¼{{activity.createDate}} |
| | | </span> |
| | | </div> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <UnionChangeUnitDetails ref="ApplyChangeDetails" @success="successEvent" /> |
| | | <OperaUnionChangeCheckWindow ref="OperaUnionChangeCheckWindow" @success="successEvent" /> |
| | | <!-- ä¼ä¸ç³è¯·éå --> |
| | | <!-- <applyReturn ref="applyReturn" @success="successEvent" />--> |
| | | <add_subtract_return ref="add_subtract_return" @success="successEvent" /> |
| | | <!-- æ°å¢æä¿ --> |
| | | <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" /> |
| | | <!-- æ´æ¢æ´¾é£åä½ç³è¯· --> |
| | | <reinsurance ref="reinsurance" @success="successEvent" /> |
| | | <!-- æ´æ¢æ´¾é£åä½ç³è¯· --> |
| | | <factoryChange ref="factoryChange" @success="successEvent" /> |
| | | <!-- æä¿è¯¦æ
--> |
| | | <insuranceApplyDetails ref="insuranceApplyDetails" @success="successEvent" /> |
| | | <!-- ä¿®æ¹ææºå· --> |
| | | <el-dialog |
| | | :title="signTitle" |
| | | :visible.sync="visiblePhone" |
| | | width="500px" |
| | | :modal="false" |
| | | :show-close="false" |
| | | :close-on-click-modal="false" |
| | | center> |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="ææºå·" prop="phone"> |
| | | <el-input v-model="form.phone" placeholder="请è¾å
¥" disabled v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="éªè¯ç " prop="code"> |
| | | <div style="width: 100%; display: flex; align-items: center;"> |
| | | <el-input v-model="form.code" placeholder="请è¾å
¥" v-trim/> |
| | | <el-button type="primary" style="margin-left: 15px;" @click="send" v-if="num === 0">åééªè¯ç </el-button> |
| | | <el-button type="primary" style="margin-left: 15px;" v-else>{{num}}s</el-button> |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" :loading="signing" @click="goSignDo()">ç¡® å®</el-button> |
| | | <el-button @click="visiblePhone=false">å æ¶</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="æ¥çä¿é©å" |
| | | :visible.sync="visibleFile" |
| | | width="500px" |
| | | :modal="true" |
| | | :show-close="true" |
| | | :close-on-click-modal="false" |
| | | append-to-body |
| | | center> |
| | | <div class="desc_item_from" v-for="(item, index) in pidanFileData" :key="index" style="margin-bottom: 15px"> |
| | | <span v-if="index ==0">{{item.name}}ï¼</span> |
| | | <span v-if="index >0">被ä¿é©äººï¼{{item.name}}ï¼ä¿é©åï¼</span> |
| | | <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl" @click="openFile(item.file.fileurlFull)">å¨çº¿é¢è§</a><span v-if="!item.file || !item.file.fileurl">æªä¸ä¼ </span> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="visibleFile=false">å
³ é</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <template v-slot:footer> |
| | | <el-button @click="visible=false">è¿å</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import UnionChangeUnitDetails from '@/components/business/UnionChangeUnitDetails' |
| | | import OperaUnionChangeCheckWindow from '@/components/business/OperaUnionChangeCheckWindow' |
| | | import reinsurance from '@/components/enterprise/reinsurance' |
| | | import factoryChange from '@/components/enterprise/factoryChange' |
| | | import add_subtract_return from '@/components/enterprise/add_subtract_return' |
| | | import { |
| | | applyChagneDetailPage |
| | | } from '@/api/business/insuranceApply' |
| | | import { |
| | | getById, |
| | | getSignLink |
| | | } from '@/api/business/unionChange' |
| | | import {applyChangeOpt, listAll as applyList} from '@/api/business/applyChange' |
| | | |
| | | import {sendSms} from "@/api/business/smsEmail"; |
| | | import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow' |
| | | import { mapState } from 'vuex' |
| | | |
| | | export default { |
| | | name: 'OperaUnionChangeDetailWindow', |
| | | extends: BaseOpera, |
| | | components: { |
| | | GlobalWindow, |
| | | UnionChangeUnitDetails, |
| | | OperaUnionChangeCheckWindow, |
| | | add_subtract_return, |
| | | OperaInsuranceApply, |
| | | reinsurance, |
| | | factoryChange, |
| | | insuranceApplyDetails: () => import ('@/components/business/OperaInsuranceApplyWindow') |
| | | }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | modelId:null, |
| | | num: 0, |
| | | timer: null, |
| | | signing:false, |
| | | signTitle: 'ææºå·éªè¯', |
| | | pidanFileData:[], |
| | | model: {}, |
| | | visiblePhone: false, |
| | | visibleFile:false, |
| | | form: { |
| | | businessId: null, |
| | | phone: this.$store.state.userInfo.company.phone, |
| | | id: null, |
| | | editDate: '', |
| | | code:null |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | }, |
| | | formInline: { |
| | | applyStatus: '', |
| | | duId: '', |
| | | workTypeId: '', |
| | | memberName: '', |
| | | types: '' |
| | | }, |
| | | reverse: false, |
| | | radio: 0, |
| | | activities: [], |
| | | tableData: [], |
| | | list: [], |
| | | activeName: '0', |
| | | total: 0, |
| | | currentPage: 1 |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | methods: { |
| | | open(title,target){ |
| | | this.visible = true; |
| | | this.title = title |
| | | this.modelId = target.id |
| | | this.model={} |
| | | this.form.businessId = target.id |
| | | this.num=0 |
| | | this.signing=false |
| | | this.visiblePhone=false |
| | | this.visibleFile=false |
| | | this. pidanFileData=[] |
| | | this.timer=null |
| | | this.getDetail() |
| | | this.getList() |
| | | }, |
| | | send () { |
| | | sendSms({ |
| | | phone: this.form.phone |
| | | }).then(res => { |
| | | this.num = 60 |
| | | this.setTime() |
| | | }) |
| | | }, |
| | | openFile (url) { |
| | | setTimeout(() => { |
| | | window.open(url) |
| | | }, 500) |
| | | }, |
| | | setTime () { |
| | | this.timer = setInterval(() => { |
| | | if (this.num === 0) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | return |
| | | } |
| | | this.num = this.num - 1 |
| | | }, 1000) |
| | | }, |
| | | getSignLink (flag) { |
| | | this.signTitle = 'ç¾ç½²æ¹æ¡ç¡®è®¤ä¹¦' |
| | | this.form.type = flag |
| | | this.visiblePhone = true |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | }); |
| | | }, |
| | | goSignDo(){ |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.signing = true |
| | | if(this.form.type===0){ |
| | | getSignLink(this.form).then(res => { |
| | | setTimeout(() => { |
| | | this.visiblePhone=false |
| | | this.signing=false |
| | | window.open(res) |
| | | }, 500) |
| | | }).catch(err => { |
| | | this.signing=false |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | resetting() { |
| | | this.search() |
| | | }, |
| | | closeOrder() { |
| | | this.$confirm('确认å
³éæ¤è®¢åå?', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | applyChangeOpt({ |
| | | optType: 6, |
| | | applyId: this.model.id |
| | | }).then(res => { |
| | | this.getDetail() |
| | | }).catch(e => { |
| | | this.$message.error(e) |
| | | }) |
| | | }).catch(() => { |
| | | |
| | | }); |
| | | }, |
| | | search() { |
| | | this.currentPage = 1 |
| | | this.getList() |
| | | }, |
| | | getList() { |
| | | applyChagneDetailPage({ |
| | | capacity: 10, |
| | | page: this.currentPage, |
| | | model: { |
| | | unionChangeId: this.modelId |
| | | } |
| | | }).then(res => { |
| | | this.list = res.records |
| | | this.total = res.total |
| | | }) |
| | | }, |
| | | handleClick(e) { |
| | | this.activeName = e.index |
| | | this.resetting() |
| | | }, |
| | | viewApplyFile(){ |
| | | if(this.model.applyFile && this.model.applyFile.fileurlFull){ |
| | | window.open(this.model.applyFile.fileurlFull) |
| | | } |
| | | }, |
| | | viewPidan(){ |
| | | this.visibleFile=true |
| | | }, |
| | | handleSizeChange(val){ |
| | | console.log(val) |
| | | }, |
| | | handleCurrentChange(val){ |
| | | console.log(val) |
| | | this.page = val |
| | | this.getList() |
| | | }, |
| | | onSubmit(){ |
| | | |
| | | }, |
| | | getDetail(){ |
| | | this.pidanFileData=[] |
| | | getById(this.modelId).then(res => { |
| | | this.model = res |
| | | this.tableData = new Array() |
| | | this.tableData.push(res) |
| | | this.pidanFileData.push({ name: 'åæ·ä¿é©å', file: this.model.pidanFile }) |
| | | this.getApplyList() |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | getApplyList () { |
| | | applyList({ unionChangeId: this.model.id, getFiles: 1 }).then(res => { |
| | | this.model.applyList = res |
| | | if (res && res.length > 0) { |
| | | res.forEach(item => { |
| | | if (item.pidanFile) { |
| | | this.pidanFileData.push({ name: item.companyName, file: item.pidanFile }) |
| | | } else { |
| | | this.pidanFileData.push({ name: item.companyName, file: null }) |
| | | } |
| | | }) |
| | | } |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | successEvent(){ |
| | | // this.visible=false |
| | | this.getDetail() |
| | | this.$emit('success') |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .form { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | .form_span { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: start; |
| | | flex-direction: column; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-size: 14px; |
| | | &:nth-child(1) { |
| | | color: black; |
| | | margin-bottom: 5px; |
| | | } |
| | | &:nth-child(2) { |
| | | color: #8c939d; |
| | | } |
| | | } |
| | | } |
| | | .form_item { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | .form_item_label { |
| | | flex-shrink: 0; |
| | | width: 170px; |
| | | color: black; |
| | | font-size: 14px; |
| | | span { |
| | | color: red; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .form_item_val { |
| | | flex: 1; |
| | | /*height: 40px;*/ |
| | | margin-left: 20px; |
| | | textarea { |
| | | width: 100%; |
| | | height: 70px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 10px; |
| | | outline: none; |
| | | box-sizing: border-box; |
| | | } |
| | | input { |
| | | width: 100%; |
| | | height: 40px; |
| | | outline: none; |
| | | border-radius: 5px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 0 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .desc { |
| | | width: 100%; |
| | | .desc_item { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .desc_item_label { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-bottom: 10px; |
| | | .desc_item_label_left { |
| | | flex-shrink: 0; |
| | | } |
| | | span { |
| | | font-size: 14px; |
| | | color: black; |
| | | margin-right: 30px; |
| | | } |
| | | } |
| | | .desc_item_from { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | .desc_item_from_page { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: end; |
| | | margin-top: 10px; |
| | | } |
| | | } |
| | | .desc_item_cate { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | } |
| | | .desc_item_search { |
| | | width: 100%; |
| | | margin-bottom: 20px; |
| | | } |
| | | .desc_item_review { |
| | | width: 100%; |
| | | .desc_item_review_label { |
| | | font-size: 20px; |
| | | color: black; |
| | | font-weight: bold; |
| | | margin-bottom: 15px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import {getChangeDetailList, exportJiajianBaoExcel} from "@/api/business/insuranceApply"; |
| | | import {getChangeDetailList} from "@/api/business/insuranceApply"; |
| | | import {check } from "@/api/business/applyChange"; |
| | | import {exportDetailExcel} from "@/api/business/unionChange"; |
| | | export default { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <div class="box"> |
| | | <div class="top"> |
| | | {{title}} |
| | | </div> |
| | | <div class="box_table"> |
| | | <div class="box_table_head"> |
| | | <div class="box_table_head_item">æä¿äºº</div> |
| | | <div class="box_table_head_item">ä¿é©æ¹æ¡</div> |
| | | <div class="box_table_head_item">ä¿é©çæèµ·æ</div> |
| | | <div class="box_table_head_item">ä¿é©çææ¢æ</div> |
| | | <div class="box_table_head_item">ä¿åå·</div> |
| | | <div class="box_table_head_item">æ¢å</div> |
| | | <div class="box_table_head_item">æ¹åçææ</div> |
| | | </div> |
| | | <div class="box_table_content " > |
| | | <div class="box_table_content_item box_table_content_header">{{ model.shopName }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.solutionsName }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.startTime }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.endTime }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.applyCode }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.changeNum}}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.applyStartTime}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="box_table"> |
| | | <div class="box_table_head box_table_content"> |
| | | <div class="box_table_head_item" style=" flex: 1;border-bottom: 0px">被ä¿é©äºº</div> |
| | | <div class="box_table_content_item box_table_content_header" style=" flex: 6;"> |
| | | <p v-for="(item, index) in companyList" :key="index" > |
| | | {{index>0?'ï¼':''}} {{ item[1]}} |
| | | </p> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="box_table" v-if="addList && addList.length>0"> |
| | | <div class="box_table_head"> |
| | | <div class="box_table_head_item">åºå·</div> |
| | | <div class="box_table_head_item">åå·¥å§å</div> |
| | | <div class="box_table_head_item">æ§å«</div> |
| | | <div class="box_table_head_item">身份è¯å·</div> |
| | | <div class="box_table_head_item">被ä¿é©äºº</div> |
| | | <div class="box_table_head_item">åæ´¾é£åä½</div> |
| | | <div class="box_table_head_item">åæå±å·¥ç§</div> |
| | | <div class="box_table_head_item">æ´æ¢åæ´¾é£åä½</div> |
| | | <div class="box_table_head_item">æ´æ¢åæå±å·¥ç§</div> |
| | | </div> |
| | | <div class="box_table_content" v-for="(item, index) in addList" :key="index"> |
| | | <div class="box_table_content_item">{{(index + 1)}}</div> |
| | | <div class="box_table_content_item" >{{ item.memberName }}</div> |
| | | <div class="box_table_content_item">{{ item.sex==0?"ç·":(item.sex==1?"女":"" )}}</div> |
| | | <div class="box_table_content_item">{{ item.memberIdcardNo }}</div> |
| | | <div class="box_table_content_item">{{ item.companyName }}</div> |
| | | <div class="box_table_content_item">{{ item.oldDuName }}</div> |
| | | <div class="box_table_content_item">{{item.oldWorkTypeName}}</div> |
| | | <div class="box_table_content_item">{{ item.duName }}</div> |
| | | <div class="box_table_content_item">{{item.workTypeName}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="box_table" v-if="type==1" style="border-top: 0px solid #b4bbc5;" > |
| | | <div class="box_table_head"> |
| | | <div class="box_table_head_item5">夿³¨</div> |
| | | <div class="box_table_head_item5"> |
| | | <input v-model="form.checkInfo" style="width: 100%;height: 45px;border: 0px;outline: none;" placeholder="请è¾å
¥" v-trim/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <template v-if="type==1" v-slot:footer> |
| | | <el-button type="primary" :loading="isWorking.export" @click="check(0)">æäº¤éè¿</el-button> |
| | | <!-- <el-button type="danger" :loading="isWorking.export" @click="check(1)">å®¡æ ¸ä¸éè¿</el-button>--> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | | </template> |
| | | <template v-else-if="type==2" v-slot:footer> |
| | | <el-button @click="visible=false">è¿å</el-button> |
| | | </template> |
| | | <template v-else v-slot:footer> |
| | | <el-button type="primary" :loading="isWorking.export" @click="exportDetail">导åºè¯¦å</el-button> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import {getChangeDetailList} from "@/api/business/insuranceApply"; |
| | | import {check } from "@/api/business/applyChange"; |
| | | import {exportDetailExcel} from "@/api/business/unionChange"; |
| | | export default { |
| | | name: 'ApplyChangeDetails', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | model:{}, |
| | | apply:{}, |
| | | type:0, |
| | | delList:[], |
| | | addList:[], |
| | | companyList:new Map(), |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | dealBackApply:0, |
| | | checkInfo: '' |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | }, |
| | | reverse: false, |
| | | tableData: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title,target,target2){ |
| | | this.title=title |
| | | this.visible=true |
| | | this.model = target |
| | | this.form.id=target.id |
| | | this.type=target2 |
| | | this.getDetailListDo() |
| | | }, |
| | | check (type) { |
| | | this.form.dealBackApply = type |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | check(this.form) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | }) |
| | | }, |
| | | getDetailListDo() { |
| | | this.delList=[] |
| | | this.addList=[] |
| | | getChangeDetailList({unionChangeId: this.model.id}) |
| | | .then(res => { |
| | | var index =0 |
| | | res.forEach(item1 => { |
| | | this.companyList.set(item1.companyId, item1.companyName) |
| | | if (item1.type == 1) { |
| | | this.delList.push(item1); |
| | | } else { |
| | | this.addList.push(item1); |
| | | } |
| | | }) |
| | | |
| | | }).catch(err => {}) |
| | | }, |
| | | exportDetail(){ |
| | | this.$dialog.exportConfirm('确认导åºè¯¦ååï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | exportDetailExcel({ id: this.model.id }) |
| | | .then(response => { |
| | | this.download(response) |
| | | }) |
| | | .catch(e => { |
| | | console.log(e) |
| | | this.$message.error('æ°æ®ä¸è½½å¤±è´¥ï¼') |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | }) |
| | | }, |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`); |
| | | }, |
| | | handleClick(tab, event) { |
| | | console.log(tab, event); |
| | | }, |
| | | onSubmit() { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .box { |
| | | width: 100%; |
| | | .top{ |
| | | width: 100%; |
| | | align-items: center; |
| | | flex-wrap: wrap; |
| | | border-top: 1px solid #b4bbc5; |
| | | border-left: 1px solid #b4bbc5; |
| | | font-size: 14px; |
| | | font-weight: bold; |
| | | text-align: center; |
| | | padding: 15px; |
| | | box-sizing: border-box; |
| | | } |
| | | .box_header { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-wrap: wrap; |
| | | border-top: 1px solid #b4bbc5; |
| | | border-left: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | .box_header_item { |
| | | width: 50%; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | |
| | | .box_header_item_label { |
| | | flex: 1; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | background: #f2f2f2; |
| | | border-right: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | } |
| | | .box_header_item_val { |
| | | flex: 1; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | } |
| | | } |
| | | } |
| | | .box_table { |
| | | width: 100%; |
| | | border-top: 1px solid #b4bbc5; |
| | | border-left: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | .box_table_head { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | .box_table_head_item1 { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #f2f2f2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | } |
| | | .box_table_head_item { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #f2f2f2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(3) { |
| | | } |
| | | &:nth-child(9) { |
| | | } |
| | | } |
| | | .box_table_head_item5 { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #f2f2f2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(2) { |
| | | } |
| | | } |
| | | .box_form_item { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #ffffff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(1) { |
| | | } |
| | | } |
| | | } |
| | | .box_table_content { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | .box_table_content_header{ |
| | | border-bottom: 0px solid #b4bbc5 !important; |
| | | } |
| | | .box_table_content_item { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #ffffff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(3) { |
| | | } |
| | | &:nth-child(9) { |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaApplyChangeDetailWindow.open('æ´æ¢æ´¾é£åä½è¯¦æ
', row)">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="$refs.OperaUnionChangeUnitDetailWindow.open('æ´æ¢æ´¾é£åä½è¯¦æ
', row)">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </pagination> |
| | | </template> |
| | | <!-- æäº¤ç³è¯· --> |
| | | <OpearaUnionChangeUnit ref="OpearaUnionChangeUnit" /> |
| | | <OpearaUnionChangeUnit ref="OpearaUnionChangeUnit" @success="successDo"/> |
| | | <OperaUnionChangeUnitDetailWindow ref="OperaUnionChangeUnitDetailWindow" @success="successDo" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaUnionChangeUnitDetailWindow from '@/components/business/OperaUnionChangeUnitDetailWindow' |
| | | import OpearaUnionChangeUnit from '@/components/business/OpearaUnionChangeUnit' |
| | | export default { |
| | | name: 'unionChangeUnit', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OpearaUnionChangeUnit }, |
| | | components: { TableLayout, Pagination, OpearaUnionChangeUnit,OperaUnionChangeUnitDetailWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | successDo(){ |
| | | this.reset() |
| | | }, |
| | | changeTime(e) { |
| | | if (e.length > 0) { |
| | | this.searchForm.queryStartTime = e[0] |
| | |
| | | try { |
| | | sxssfWorkbook = new SXSSFWorkbook(); |
| | | Sheet sheet = sxssfWorkbook.createSheet(sheetName); |
| | | for (int i = 0; i < 9; i++) { |
| | | for (int i = 0; i < 8; i++) { |
| | | sheet.setColumnWidth(i, ((i==3|| i== 4|| i== 5 ||i== 6 || i==7)?16:8) * 2 * 256); |
| | | } |
| | | sheet.createFreezePane(0, 1); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,8)); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,7)); |
| | | Row title = sheet.createRow(0); |
| | | title.setHeight((short) 2000); |
| | | Cell c = title.createCell(0); |
| | | c.setCellValue(sheetName); |
| | | configFirstCell(sxssfWorkbook,c); |
| | | for (int i = 0; i < 9; i++) { |
| | | for (int i = 0; i < 8; i++) { |
| | | if(i>0){ |
| | | title.createCell(i).setCellValue(""); |
| | | } |
| | |
| | | sheet.createFreezePane(0, 1); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,8)); |
| | | Row title = sheet.createRow(0); |
| | | title.setHeight((short) 2000); |
| | | title.setHeight((short) 1000); |
| | | Cell c = title.createCell(0); |
| | | c.setCellValue(sheetName); |
| | | configFirstCell(sxssfWorkbook,c); |
| | |
| | | } |
| | | Row header1 = sheet.createRow(1); |
| | | header1.createCell(0).setCellValue("æä¿äºº"); |
| | | header1.createCell(1).setCellValue("ä¿é©æ¹æ¡"); |
| | | header1.createCell(2).setCellValue(""); |
| | | header1.createCell(3).setCellValue(""); |
| | | header1.createCell(1).setCellValue(""); |
| | | header1.createCell(2).setCellValue("ä¿é©æ¹æ¡"); |
| | | header1.createCell(3).setCellValue(""); |
| | | header1.createCell(4).setCellValue("ä¿åå·"); |
| | | header1.createCell(5).setCellValue("ä¿é©çæèµ·æ"); |
| | | header1.createCell(6).setCellValue("ä¿é©çææ¢æ"); |
| | | header1.createCell(7).setCellValue("æ¢å人æ°"); |
| | | header1.createCell(8).setCellValue("æææ¹åçææ"); |
| | | |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,0,1)); |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,2,3)); |
| | | |
| | | for (int i = 0; i < 9; i++) { |
| | | configFirstCell(sxssfWorkbook,header1.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,1,3)); |
| | | |
| | | Row header2 = sheet.createRow(2); |
| | | header2.createCell(0).setCellValue(data.getShopName()); |
| | | header2.createCell(1).setCellValue(data.getSolutionsName()); |
| | | header2.createCell(2).setCellValue(""); |
| | | header2.createCell(1).setCellValue(""); |
| | | header2.createCell(2).setCellValue(data.getSolutionsName()); |
| | | header2.createCell(3).setCellValue(""); |
| | | header2.createCell(4).setCellValue(data.getApplyCode()); |
| | | header2.createCell(5).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getStartTime())); |
| | | header2.createCell(6).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getEndTime())); |
| | | header2.createCell(7).setCellValue(data.getApplyChagneDetailList().stream().filter(i->i.getType().equals(Constants.TWO)).collect(Collectors.toList()).size()); |
| | | header2.createCell(8).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getApplyStartTime())); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,1,3)); |
| | | // sheet.addMergedRegion(new CellRangeAddress(2 ,2,1,3)); |
| | | |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,0,1)); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,2,3)); |
| | | for (int i = 0; i < 9; i++) { |
| | | configDataCell(sxssfWorkbook,header2.getCell(i)); |
| | | } |
| | | |
| | | Row header3 = sheet.createRow(3); |
| | | header3.createCell(0).setCellValue("被ä¿é©äºº"); |
| | | header3.createCell(1).setCellValue(data.getCompanyNames()); |
| | | header3.createCell(2).setCellValue(""); |
| | | header3.createCell(1).setCellValue(""); |
| | | header3.createCell(2).setCellValue(data.getCompanyNames()); |
| | | header3.createCell(3).setCellValue(""); |
| | | header3.createCell(4).setCellValue(""); |
| | | header3.createCell(5).setCellValue(""); |
| | | header3.createCell(6).setCellValue(""); |
| | | header3.createCell(7).setCellValue(""); |
| | | header3.createCell(8).setCellValue(""); |
| | | for (int i = 0; i < 9; i++) { |
| | | for (int i = 0; i < 2; i++) { |
| | | configFirstCell(sxssfWorkbook,header3.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,1,8)); |
| | | |
| | | for (int i = 2; i < 9; i++) { |
| | | configDataCell(sxssfWorkbook,header3.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,0,1)); |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,2,8)); |
| | | |
| | | |
| | | List<ApplyChagneDetail> otherChangeDetailList = data.getApplyChagneDetailList().stream().filter(i->i.getType().equals(Constants.TWO)).collect(Collectors.toList()); |
| | |
| | | header6.createCell(7).setCellValue(applyChagneDetail.getDuName()); |
| | | header6.createCell(8).setCellValue(applyChagneDetail.getWorkTypeName()); |
| | | for (int i = 0; i < 9; i++) { |
| | | configFirstCell(sxssfWorkbook,header6.getCell(i)); |
| | | } |
| | | configDataCell(sxssfWorkbook,header6.getCell(i)); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | int rowIndex = row + 1 ; |
| | | Row header6= sheet.createRow(rowIndex); |
| | | header6.createCell(0).setCellValue("æä¿ä¼ä¸ç³æ:\n" + |
| | |
| | | sheet.createFreezePane(0, 1); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,7)); |
| | | Row title = sheet.createRow(0); |
| | | title.setHeight((short) 2000); |
| | | title.setHeight((short) 1000); |
| | | for (int i = 0; i < 8; i++) { |
| | | title.createCell(i).setCellValue(i==0?sheetName:""); |
| | | configTitleCell(sxssfWorkbook,title.getCell(i)); |
| | |
| | | sheet.createFreezePane(0, 1); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,8)); |
| | | Row title = sheet.createRow(0); |
| | | title.setHeight((short) 2000); |
| | | title.setHeight((short) 1000); |
| | | Cell c = title.createCell(0); |
| | | c.setCellValue(sheetName); |
| | | configFirstCell(sxssfWorkbook,c); |
| | |
| | | } |
| | | Row header1 = sheet.createRow(1); |
| | | header1.createCell(0).setCellValue("æä¿äºº"); |
| | | header1.createCell(1).setCellValue("ä¿é©æ¹æ¡"); |
| | | header1.createCell(2).setCellValue(""); |
| | | header1.createCell(1).setCellValue(""); |
| | | header1.createCell(2).setCellValue("ä¿é©æ¹æ¡"); |
| | | header1.createCell(3).setCellValue(""); |
| | | header1.createCell(4).setCellValue("ä¿åå·"); |
| | | header1.createCell(5).setCellValue("ä¿é©çæèµ·æ"); |
| | | header1.createCell(6).setCellValue("ä¿é©çææ¢æ"); |
| | | header1.createCell(7).setCellValue("æ¢å人æ°"); |
| | | header1.createCell(8).setCellValue("æææ¹åçææ"); |
| | | |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,0,1)); |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,2,3)); |
| | | |
| | | for (int i = 0; i < 9; i++) { |
| | | configFirstCell(sxssfWorkbook,header1.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,1,3)); |
| | | |
| | | Row header2 = sheet.createRow(2); |
| | | header2.createCell(0).setCellValue(data.getShopName()); |
| | | header2.createCell(1).setCellValue(data.getSolutionsName()); |
| | | header2.createCell(2).setCellValue(""); |
| | | header2.createCell(1).setCellValue(""); |
| | | header2.createCell(2).setCellValue(data.getSolutionsName()); |
| | | header2.createCell(3).setCellValue(""); |
| | | header2.createCell(4).setCellValue(data.getApplyCode()); |
| | | header2.createCell(5).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getStartTime())); |
| | | header2.createCell(6).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getEndTime())); |
| | | header2.createCell(7).setCellValue(data.getApplyChagneDetailList().stream().filter(i->i.getType().equals(Constants.TWO)).collect(Collectors.toList()).size()); |
| | | header2.createCell(8).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getApplyStartTime())); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,1,3)); |
| | | // sheet.addMergedRegion(new CellRangeAddress(2 ,2,1,3)); |
| | | |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,0,1)); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,2,3)); |
| | | for (int i = 0; i < 9; i++) { |
| | | configDataCell(sxssfWorkbook,header2.getCell(i)); |
| | | } |
| | | |
| | | Row header3 = sheet.createRow(3); |
| | | header3.createCell(0).setCellValue("被ä¿é©äºº"); |
| | | header3.createCell(1).setCellValue(data.getCompanyNames()); |
| | | header3.createCell(2).setCellValue(""); |
| | | header3.createCell(1).setCellValue(""); |
| | | header3.createCell(2).setCellValue(data.getCompanyNames()); |
| | | header3.createCell(3).setCellValue(""); |
| | | header3.createCell(4).setCellValue(""); |
| | | header3.createCell(5).setCellValue(""); |
| | | header3.createCell(6).setCellValue(""); |
| | | header3.createCell(7).setCellValue(""); |
| | | header3.createCell(8).setCellValue(""); |
| | | for (int i = 0; i < 9; i++) { |
| | | for (int i = 0; i < 2; i++) { |
| | | configFirstCell(sxssfWorkbook,header3.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,1,8)); |
| | | |
| | | for (int i = 2; i < 9; i++) { |
| | | configDataCell(sxssfWorkbook,header3.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,0,1)); |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,2,8)); |
| | | |
| | | |
| | | List<ApplyChagneDetail> otherChangeDetailList = data.getApplyChagneDetailList().stream().filter(i->i.getType().equals(Constants.TWO)).collect(Collectors.toList()); |
| | |
| | | header6.createCell(7).setCellValue(applyChagneDetail.getDuName()); |
| | | header6.createCell(8).setCellValue(applyChagneDetail.getWorkTypeName()); |
| | | for (int i = 0; i < 9; i++) { |
| | | configFirstCell(sxssfWorkbook,header6.getCell(i)); |
| | | configDataCell(sxssfWorkbook,header6.getCell(i)); |
| | | } |
| | | } |
| | | } |
| | |
| | | queryWrapper |
| | | .selectAll(ApplyChange.class) |
| | | .selectAs(InsuranceApply::getCode,ApplyChange::getApplyCode) |
| | | .selectAs(InsuranceApply::getStartTime,ApplyChange::getStartTime) |
| | | .selectAs(InsuranceApply::getCode,ApplyChange::getValidCode) |
| | | .selectAs(InsuranceApply::getEndTime,ApplyChange::getEndTime) |
| | | .selectAs(Solutions::getName,ApplyChange::getSolutionsName) |
| | | .selectAs(Solutions::getType,ApplyChange::getSolutionType) |
| | | .selectAs(Company::getName,ApplyChange::getCompanyName) |
| | |
| | | |
| | | List<Multifile> multifiles = multifileMapper.selectList(new QueryWrapper<Multifile>().lambda() |
| | | .eq(Multifile::getObjId, applyChange.getId() ) |
| | | .in(Multifile::getObjType, Arrays.asList(new Integer[]{Constants.MultiFile.CA_APPLY_JIAJIAN_SIGN.getKey() |
| | | ,Constants.MultiFile.CA_PD_PDF.getKey() |
| | | ,Constants.MultiFile.CA_APPLY_CHANGEUNIT_SIGN.getKey()})) |
| | | // .in(Multifile::getObjType, Arrays.asList(new Integer[]{Constants.MultiFile.CA_APPLY_JIAJIAN_SIGN.getKey() |
| | | // ,Constants.MultiFile.CA_PD_PDF.getKey() |
| | | // ,Constants.MultiFile.CA_APPLY_CHANGEUNIT_SIGN.getKey()})) |
| | | .eq(Multifile::getIsdeleted,Constants.ZERO)); |
| | | if(multifiles!=null){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode() |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(user.getType().equals(Constants.TWO)){ |
| | | user.setType(Constants.formatIntegerNum(user.getType())); |
| | | if(!user.getType().equals(Constants.TWO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éåæ·ç¨æ·ï¼æ æ³è¿è¡è¯¥æä½ï¼"); |
| | | } |
| | | UnionChange unionChange = unionChangeMapper.selectById(closeDTO.getId()); |
| | | if(Objects.isNull(unionChange)||!Constants.equalsInteger(unionChange.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | unionChange.setStatus(Constants.formatIntegerNum(unionChange.getStatus())); |
| | | unionChange.setShopId(Constants.formatIntegerNum(unionChange.getShopId())); |
| | | if(!unionChange.getShopId().equals(user.getCompanyId())){ |
| | | throw new BusinessException(ResponseStatus.DATA_ERRO.getCode(),"对ä¸èµ·éæ¨çåå¹¶åï¼æ¨æ æ³è¿è¡æä½ï¼"); |
| | | } |
| | |
| | | |
| | | applyChagneDetailJoinMapper.update(null,new UpdateWrapper<ApplyChagneDetail>().lambda() |
| | | .set(ApplyChagneDetail::getUnionChangeId,null) |
| | | .in(ApplyChagneDetail::getApplyId,unionChange.getId())); |
| | | .eq(ApplyChagneDetail::getUnionChangeId,unionChange.getId())); |
| | | |
| | | unionChangeMapper.update(null,new UpdateWrapper<UnionChange>().lambda() |
| | | .set(UnionChange::getStatus,Constants.UnionApplyStatus.CLOSE.getKey()) |
| | | .set(UnionChange::getStatus,Constants.UnionChangeStatus.CLOSE.getKey()) |
| | | .eq(UnionChange::getId,unionChange.getId()) |
| | | ); |
| | | |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.CA_HBD_UPLOAD; |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.CA_HBD_CLOSE; |
| | | String info =applyLogType.getInfo(); |
| | | info = info.replace("${param}", closeDTO.getReason()); |
| | | ApplyLog log = new ApplyLog(unionChange,applyLogType.getName(), info |
| | |
| | | multifileMapper.insert(m); |
| | | } |
| | | } |
| | | |
| | | |
| | | if(CollectionUtils.isNotEmpty(applyChangeList)){ |
| | | for (ApplyChange applyChange:applyChangeList) { |
| | | applyChange.setApplyStartTime(unionChangeBXDDTO.getApplyDate()); |