| | |
| | | # å¹³å°ç«¯-èå§ |
| | | # VUE_APP_API = 'http://192.168.0.105:10023/' |
| | | |
| | | VUE_APP_API = 'http://localhost:10032/' |
| | | VUE_APP_API = 'http://192.168.0.176:10032/' |
| | |
| | | export function getSignLink (id) { |
| | | return request.get(`business/insuranceApply/getSignLink/${id}`) |
| | | } |
| | | export function getSignTBQRSLink (data) { |
| | | // return request.get('/business/insuranceApply/signTBQRSLink') |
| | | return request.post('/business/insuranceApply/signTBQRSLink', data) |
| | | } |
| | | export function getMemberListOnlineSignLink (data) { |
| | | return request.post('/business/insuranceApply/getMemberListOnlineSignLink', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function getSignWTBTBDLinkk (data) { |
| | | return request.post('/business/insuranceApply/getSignWTBTBDLinkk', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function getJiajianBaoSignLink (data) { |
| | | return request.post('/business/applyChange/getJiajianBaoSignLink', data, { |
| | | trim: true |
| | |
| | | ::v-deep .el-table__cell { |
| | | height: 100% !important; |
| | | } |
| | | .apply-status0, .apply-status2 , .apply-status3, .apply-status10, |
| | | .apply-status0, .apply-status28,.apply-status20,.apply-status21,.apply-status22, |
| | | .apply-status25,.apply-status2 , .apply-status3, .apply-status10, |
| | | .change-status0,.change-status1,.change-status2, |
| | | .settle-status0,.settle-status2,.settle-status3, |
| | | .tax-status0, |
| | | .du-status0 { |
| | | color: #216EEE !important; |
| | | } |
| | | .apply-status1 , .apply-status4, .apply-status6, .apply-status7, .apply-status8, .apply-status11, |
| | | .apply-status1 ,.apply-status24,.apply-status23, .apply-status4, .apply-status6, |
| | | .apply-status7, .apply-status8, .apply-status11, |
| | | .change-status3,.change-status4,.change-status5,.change-status8, |
| | | .settle-status1, |
| | | .tax-status2, |
| | | .du-status2 { |
| | | color: #F95601 !important; |
| | | } |
| | | .apply-status5,.change-status7,.settle-status7,.tax-status1,.du-status1,.settle-status4 { |
| | | .apply-status5,.apply-status26,.change-status7,.settle-status7,.tax-status1,.du-status1,.settle-status4 { |
| | | color: #00BA92 !important; |
| | | } |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸ä¼ æ¹æ¡ç¡®è®¤ä¹¦ï¼" prop="fanganFile" v-if="form.type =='1'"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="editFanganFile" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ¥æ¶æä»¶é®ç®±" prop="email"> |
| | | <el-input v-model="form.email" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | |
| | | import { all as allWorktype } from '@/api/business/worktype' |
| | | import { solutionsId } from '@/api/business/solutions' |
| | | import { pageAll as shopList } from '@/api/business/company' |
| | | import UploadFile from "@/components/common/UploadFile"; |
| | | export default { |
| | | name: 'OperaSolutionsWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | components: { GlobalWindow ,UploadFile}, |
| | | data () { |
| | | var validType = (rule, value, callback) => { |
| | | if (this.form.validType === 0 && !value) { |
| | |
| | | ortherInfo: '', |
| | | signKeyword: '', |
| | | validTypeNum: '', |
| | | fileList1:[], |
| | | fanganFile:null, |
| | | worktypeIdList: [{ worktypeId: '' }] |
| | | }, |
| | | // éªè¯è§å |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | editFanganFile(data){ |
| | | this.form.fanganFile=data |
| | | }, |
| | | // 忢å
¬å¸ |
| | | getAllWorktype1 () { |
| | | this.form.worktypeIdList = [{ worktypeId: '' }] |
| | |
| | | this.form.insureCycleUnit = '' |
| | | this.form.validTypeNum = '' |
| | | this.visible = true |
| | | this.form.fanganFile=null |
| | | this.form.fileList1= new Array(); |
| | | this.form.worktypeIdList = [{ worktypeId: '' }] |
| | | // this.$refs['$upload'].clearFiles()//åå§å导å
¥ç»ä»¶ |
| | | this.allCompany() |
| | | this.allShops() |
| | | // æ°å»º |
| | |
| | | for (const key in this.form) { |
| | | this.form[key] = res[key] |
| | | } |
| | | if(this.form.fanganFile && this.form.fanganFile.fileurl){ |
| | | this.form.fileList1= [{url: this.form.fanganFile.fileurlFull, name:this.form.fanganFile.name}]; |
| | | } |
| | | console.log(this.form.fileList1) |
| | | this.form.worktypeIdList = res.worktypeList.map(item => { |
| | | return { |
| | | worktypeId: item.worktypeId |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="50%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <!-- éåæä¿ --> |
| | | <el-form v-if="visible1==true" :model="form" ref="form1" :rules="rules1" style="width: 100%;"> |
| | | <el-form-item label="å¡«åéå说æï¼" prop="backCheckInfo"> |
| | | <el-input type="textarea" v-model="form.backCheckInfo" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form v-if="visible2==true" :model="form" ref="form2" :rules="rules2" style="width: 100%;"> |
| | | <el-form-item label="ä¸ä¼ æä¿åï¼" prop="toubaodanFile"> |
| | | <UploadFile @remove="dele2" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList" @uploadSuccess="toubaoFileUploaded" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- ä¸ä¼ ä¿é©å --> |
| | | <el-form v-if="visible3==true" :model="form" ref="form3" :rules="rules3" style="width: 100%;"> |
| | | <el-form-item label="å®¢æ·ææä¿é©çæèµ·æï¼"> |
| | | {{ model.applyStartTime }} |
| | | </el-form-item> |
| | | <el-form-item label="" > |
| | | <el-radio-group v-model="form.selectRadio" @change="selectChange"> |
| | | <el-radio :label="0" >ä¸ä¿åä¸è´</el-radio> |
| | | <el-radio :label="1" >ä¸ä¿åä¸ä¸è´</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©çæèµ·æï¼" prop="startTime" v-if="form.selectRadio === 1"> |
| | | <el-date-picker |
| | | v-model="form.startTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="éæ©æ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©çæèµ·æï¼"> |
| | | {{ form.startTime }} |
| | | </el-form-item> |
| | | <el-form-item label="ä¿åå·ï¼" prop="code"> |
| | | <el-input v-model="form.code" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸ä¼ ä¿é©åï¼" prop="baoxianFile"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- ä¿®æ¹ä¿é©å --> |
| | | <el-form v-if="visible4==true" :model="form" ref="form4" :rules="rules4" style="width: 100%;"> |
| | | <el-form-item label="ä¿é©çæèµ·æï¼"> |
| | | {{ model.startTime }} |
| | | </el-form-item> |
| | | <el-form-item label="ä¿åå·ï¼" prop="editCode"> |
| | | <el-input v-model="form.editCode" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸ä¼ ä¿é©åï¼" prop="editBaoxianFile"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="editBaoxianFileUploaded" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿®æ¹åå ï¼" prop="editCheckInfo"> |
| | | <el-input type="textarea" v-model="form.editCheckInfo" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form v-if="visible5==true || visible6==true" :model="form" ref="form5" :rules="rules5" style="width: 100%;"> |
| | | <el-form-item label="å¡«å说æï¼" prop="dealBackInfo"> |
| | | <el-input type="textarea" v-model="form.dealBackInfo" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="doSubmit">ç¡® å®</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 { |
| | | dealBackApply, |
| | | back, |
| | | uploadBaoxiandan, |
| | | editBaoxiandan, |
| | | uploadToubaodan, |
| | | check |
| | | } from "@/api/business/insuranceApply"; |
| | | import UploadFile from "@/components/common/UploadFile"; |
| | | import {remark} from "@/api/business/settleClaims"; |
| | | export default { |
| | | name: 'OperaWtbApplyCheckWindow', |
| | | extends: BaseOpera, |
| | | components: {UploadFile, GlobalWindow }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | model: {}, |
| | | falg :0, |
| | | rules1: { |
| | | backCheckInfo: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ] |
| | | }, |
| | | rules2: { |
| | | toubaodanFile: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ] |
| | | }, |
| | | rules3: { |
| | | code: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | startTime: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | baoxianFile: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | }, |
| | | rules5: { |
| | | dealBackInfo: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ] |
| | | }, |
| | | rules4: { |
| | | editCode: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | editBaoxianFile: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | editCheckInfo: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ] |
| | | }, |
| | | form: { |
| | | id: null, |
| | | backCheckInfo:'', |
| | | dealBackInfo:'', |
| | | editCheckInfo:'', |
| | | editDate: '', |
| | | editCode: '', |
| | | startTime:null, |
| | | code:null, |
| | | toubaodanFile:null, |
| | | baoxianFile:null, |
| | | editBaoxianFile:null, |
| | | fileList: [], |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | | }, |
| | | visible1: false, |
| | | visible2: false, |
| | | visible3: false, |
| | | visible4: false, |
| | | visible5: false, |
| | | visible6: false, |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | dele2() { |
| | | this.form.toubaodanFile = '' |
| | | }, |
| | | open(title,target,flag){ |
| | | this.visible=true |
| | | this.model={} |
| | | this.form= { |
| | | id: null, |
| | | backCheckInfo:'', |
| | | dealBackInfo:'', |
| | | editCheckInfo:'', |
| | | editDate: '', |
| | | editCode: '', |
| | | startTime:null, |
| | | code:null, |
| | | toubaodanFile:null, |
| | | baoxianFile:null, |
| | | editBaoxianFile:null, |
| | | fileList: [], |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | | }, |
| | | this.model = target |
| | | this.form.startTime = target.startTime |
| | | this.title = title |
| | | this.flag = flag |
| | | this.visible1 = false |
| | | this.visible2 = false |
| | | this.visible3 = false |
| | | this.visible4 = false |
| | | this.visible5 = false |
| | | this.visible6 = false |
| | | if(flag == 1){ |
| | | this.visible1 = true |
| | | } |
| | | if(flag == 2){ |
| | | this.visible2 = true |
| | | } |
| | | if(flag == 3){ |
| | | this.visible3 = true |
| | | } |
| | | if(flag == 4){ |
| | | this.visible4 = true |
| | | this.$nextTick(() => { |
| | | this.$refs.form4.resetFields() |
| | | }) |
| | | } |
| | | if(flag == 5){ |
| | | this.visible5 = true |
| | | } |
| | | if(flag == 6){ |
| | | this.visible6 = true |
| | | } |
| | | }, |
| | | doSubmit(){ |
| | | if (this.flag == 1) { |
| | | this.$refs.form1.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.backDo() |
| | | }) |
| | | } else if (this.flag == 2) { |
| | | this.$refs.form2.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.uploadToubaodan() |
| | | }) |
| | | } else if (this.flag == 3) { |
| | | this.$refs.form3.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.uploadBaoxiandan() |
| | | }) |
| | | } else if (this.flag == 4) { |
| | | this.$refs.form4.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.editBaoxiandan() |
| | | }) |
| | | } else if (this.flag == 5) { |
| | | this.$refs.form5.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.dealBackApply(1) |
| | | }) |
| | | } else if (this.flag == 6) { |
| | | this.$refs.form5.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.dealBackApply(0) |
| | | }) |
| | | } |
| | | }, |
| | | selectChange(){ |
| | | if(this.form.selectRadio == 0){ |
| | | this.form.startTime = this.model.startTime |
| | | }else{ |
| | | this.form.startTime = '' |
| | | } |
| | | }, |
| | | toubaoFileUploaded(data){ |
| | | this.form.toubaodanFile=data |
| | | }, |
| | | baoxianFileUploaded(data){ |
| | | this.form.baoxianFile=data |
| | | }, |
| | | editBaoxianFileUploaded(data){ |
| | | this.form.editBaoxianFile=data |
| | | }, |
| | | backDo(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | back({id:this.model.id,checkInfo:this.form.backCheckInfo}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | uploadToubaodan(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | uploadToubaodan({id:this.model.id,toubaodanFile:this.form.toubaodanFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | dealBackApply(type){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | dealBackApply({ id: this.model.id, checkInfo: this.form.dealBackInfo, dealBackApply: type }) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | uploadBaoxiandan(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | uploadBaoxiandan({id:this.model.id,startTime:this.form.startTime,code:this.form.code,baoxiandanFile:this.form.baoxianFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | |
| | | }, |
| | | editBaoxiandan(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | editBaoxiandan({id:this.model.id, checkInfo:this.form.editCheckInfo,code:this.form.editCode,baoxiandanFile:this.form.editBaoxianFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | handleRemove(file, fileList) { |
| | | console.log(file, fileList); |
| | | }, |
| | | handlePreview(file) { |
| | | console.log(file); |
| | | }, |
| | | handleExceed(files, fileList) { |
| | | this.$message.warning(`å½åéå¶éæ© 3 个æä»¶ï¼æ¬æ¬¡éæ©äº ${files.length} 个æä»¶ï¼å
±éæ©äº ${files.length + fileList.length} 个æä»¶`); |
| | | }, |
| | | beforeRemove(file, fileList) { |
| | | return this.$confirm(`ç¡®å®ç§»é¤ ${ file.name }ï¼`); |
| | | }, |
| | | successEvent() { |
| | | |
| | | }, |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`); |
| | | }, |
| | | handleClick(tab, event) { |
| | | console.log(tab, event); |
| | | }, |
| | | onSubmit() { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </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; |
| | | 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> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <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" v-if="userInfo.type === 1 &&(model.statusCollect === 2 || model.statusCollect === 3)"> |
| | | <div class="desc_item_label_left"> |
| | | <span>ä¿é©å°æè¿æ <b style="color: #F95601;">{{model.loseEfficacyDays ? model.loseEfficacyDays : '-'}}</b> 天</span> |
| | | <el-button type="primary" v-if="model.statusCollect === 2 || model.statusCollect === 3" @click="$refs.OperaInsuranceApply.open('ç»ä¿', { id: dataId, type: 1 })">ä¸é®ç»ä¿</el-button> |
| | | <el-button type="primary" v-if="model.statusCollect === 2" @click="$refs.additionSubtractionApplication.open('å åä¿ç³è¯·', { id: dataId })">å åä¿ç³è¯·</el-button> |
| | | <el-button type="primary" v-if="model.statusCollect === 2" @click="$refs.factoryChange.open('æ´æ¢æ´¾é£åä½ç³è¯·', { id: dataId })">æ´æ¢æ´¾é£åä½ç³è¯·</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_label"> |
| | | <div class="desc_item_label_left"> |
| | | <span>æä¿ä¼ä¸ï¼{{ model.companyName }}</span> |
| | | <span>ä¿åç¶æï¼<span :class="'apply-status'+model.status" >{{ model.statusInfo }}</span></span> |
| | | <span>æäº¤æ¶é´ï¼{{ model.createDate }}</span> |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <template v-if="userInfo.type === 1"> |
| | | <el-button v-if="model.status == 24" type="primary" @click="$refs.OperaInsuranceApply.open('æä¿ç³è¯·', {id: dataId})">忬¡æä¿</el-button> |
| | | <el-button v-if="model.status == 24" type="primary" @click="closeOrder">å
³é订å</el-button> |
| | | <el-button v-if="[21,22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewFanganshu">æ¥ç确认书</el-button> |
| | | <el-button v-if="[22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewShenqingdan">æ¥çç³è¯·å</el-button> |
| | | <el-button v-if="[1,2,3].includes(model.unionApplyTbdStatus)" type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="[3].includes(model.unionApplyTbdStatus) " type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <!-- goSign--> |
| | | <el-button v-if="model.status == 20" type="primary" @click="getSignLink(0)">ç¾ç½²æ¹æ¡ç¡®è®¤ä¹¦</el-button> |
| | | <el-button v-if="model.status == 21" type="primary" @click="getSignLink(1)">ç¾ç½²ç³è¯·å</el-button> |
| | | <el-button v-if="model.unionApplyTbdStatus == 1" type="primary" @click="getSignLink(2)">ç¾ç½²æä¿å</el-button> |
| | | </template> |
| | | <template v-if="userInfo.type === 2"> |
| | | <el-button v-if="[21,22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewFanganshu">æ¥ç确认书</el-button> |
| | | <el-button v-if="[22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewShenqingdan">æ¥çç³è¯·å</el-button> |
| | | <el-button v-if="model.status == 22" type="primary" @click="$refs.InsuranceDetails.open('æä¿å®¡æ ¸',model,1)">æä¿å®¡æ ¸</el-button> |
| | | <el-button v-if="model.status == 22" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('éåæä¿',model,1)">éåç³è¯·</el-button> |
| | | <el-button v-if="model.status == 23" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('éåæä¿',model,1)">å
³éç³è¯·</el-button> |
| | | </template> |
| | | <template v-if="userInfo.type === 0"> |
| | | <el-button v-if="[27].includes(model.status)" type="primary" @click="viewFanganshu">æ¥ç确认书</el-button> |
| | | <el-button v-if="[27].includes(model.status)" type="primary" @click="viewShenqingdan">æ¥çç³è¯·å</el-button> |
| | | <el-button v-if="[27].includes(model.status)" type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="[27].includes(model.status)" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="code" |
| | | align="center" |
| | | label="ä¿åå·"> |
| | | </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="insureNum" |
| | | align="center" |
| | | label="æä¿äººæ°"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="serviceDays" |
| | | align="center" |
| | | label="å¨ä¿æ¶é¿ï¼å¤©ï¼"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="currentFee" |
| | | align="center" |
| | | label="已产çè´¹ç¨(å
)"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="fee" |
| | | align="center" |
| | | label="æ»è´¹ç¨(å
)"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div class="desc_item_cate"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="å¨ä¿äººå" name="0" ></el-tab-pane> |
| | | <el-tab-pane label="å /åä¿è®°å½" name="1"></el-tab-pane> |
| | | <el-tab-pane label="æ´æ¢æ´¾é£åä½è®°å½" name="2"></el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <div class="desc_item_search"> |
| | | <el-form :inline="true" :model="formInline" ref="sou" class="demo-form-inline"> |
| | | <template v-if="activeName === '0'"> |
| | | <el-form-item label="å¨ä¿ç¶æ" prop="applyStatus"> |
| | | <el-select v-model="formInline.applyStatus" @change="search" placeholder="è¯·éæ©"> |
| | | <el-option label="å
¨é¨" value="0"></el-option> |
| | | <el-option label="ä¿éä¸" value="1"></el-option> |
| | | <el-option label="ä¸å¨ä¿" value="2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æ´¾é£åä½" prop="duId"> |
| | | <el-select v-model="formInline.duId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in dwList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æå±å·¥ç§" prop="workTypeId"> |
| | | <el-select v-model="formInline.workTypeId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in gzList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="åå·¥å§å" prop="memberName"> |
| | | <el-input v-model="formInline.memberName" placeholder="请è¾å
¥" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©çæèµ·æ" prop="end"> |
| | | <el-date-picker |
| | | @change="changeStart" |
| | | v-model="formInline.end" |
| | | type="daterange" |
| | | format="yyyy å¹´ MM æ dd æ¥" |
| | | value-format="yyyy-MM-dd" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©çææ¢æ" prop="start"> |
| | | <el-date-picker |
| | | @change="changeEnd" |
| | | v-model="formInline.start" |
| | | type="daterange" |
| | | format="yyyy å¹´ MM æ dd æ¥" |
| | | value-format="yyyy-MM-dd" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </template> |
| | | <template v-else> |
| | | <el-form-item label="ç¶æ" prop="applyStatus"> |
| | | <el-select v-model="formInline.applyStatus" @change="search" placeholder="è¯·éæ©"> |
| | | <el-option label="å
¨é¨" value=""></el-option> |
| | | <el-option label="å¾
ç¾ç½²" value="0"></el-option> |
| | | <el-option label="å¾
å®¡æ ¸" value="1"></el-option> |
| | | <el-option label="å·²çæ" value="2"></el-option> |
| | | <el-option label="ç³è¯·éå" value="3"></el-option> |
| | | <el-option label="å·²éå" value="5"></el-option> |
| | | <el-option label="å·²å
³é" value="6"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æ¹åçæèµ·æ" prop="end"> |
| | | <el-date-picker |
| | | @change="changeStart" |
| | | v-model="formInline.end" |
| | | type="daterange" |
| | | format="yyyy å¹´ MM æ dd æ¥" |
| | | value-format="yyyy-MM-dd" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </template> |
| | | <el-form-item> |
| | | <el-button type="primary" style="width: 80px;" @click="search">æ¥è¯¢</el-button> |
| | | <el-button @click="resetting" style="width: 80px;">éç½®</el-button> |
| | | <el-button type="primary" style="width: 80px;" @click="exportExcel" v-if="activeName === '0'">导åºåå</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | | <el-table |
| | | :data="list" |
| | | border |
| | | ref="table" |
| | | v-if="activeName === '0'" |
| | | style="width: 100%"> |
| | | <el-table-column label="åºå·" |
| | | align="center"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="memberName" |
| | | align="center" |
| | | label="åå·¥å§å"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | align="center" |
| | | :key="Math.random()" |
| | | label="æ§å«"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.sex === 0">ç·</span> |
| | | <span v-else>女</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="idcardNo" |
| | | align="center" |
| | | label="身份è¯å·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="duName" |
| | | align="center" |
| | | label="æ´¾é£åä½"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="workTypeName" |
| | | align="center" |
| | | label="æå±å·¥ç§"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="startTime" |
| | | align="center" |
| | | label="ä¿é©çæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="endTime" |
| | | align="center" |
| | | label="ä¿é©çææ¢æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | align="center" |
| | | prop="fee" |
| | | label="产çè´¹ç¨"> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-table |
| | | :data="list1" |
| | | border |
| | | ref="table" |
| | | v-if="activeName === '1'" |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | label="åºå·" |
| | | align="center"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="ä¿åç¶æ" :key="Math.random()" |
| | | align="center"> |
| | | <template slot-scope="{row}"> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 0">å¾
ç¾ç½²</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 1">å¾
å®¡æ ¸</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 2">å·²çæ</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 3 || row.status === 4">ç³è¯·éå</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 5 || row.status === 8">å·²éå</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 6">å·²å
³é</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="applyCode" |
| | | align="center" |
| | | label="æ¹åå·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="addNum" |
| | | align="center" |
| | | label="å¢å 人æ°ï¼äººï¼"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="delNum" |
| | | align="center" |
| | | label="åå°äººæ°ï¼äººï¼"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="createDate" |
| | | align="center" |
| | | label="æäº¤æ¶é´"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="applyStartTime" |
| | | align="center" |
| | | label="æ¹åçæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | align="center" |
| | | :key="Math.random()" |
| | | label="æä½"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaApplyChangeDetailWindow.open('å åä¿è¯¦æ
', row)">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-table |
| | | :data="list2" |
| | | border |
| | | ref="table" |
| | | v-if="activeName === '2'" |
| | | style="width: 100%"> |
| | | <el-table-column label="åºå·" |
| | | align="center"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | align="center" label="ä¿åç¶æ" :key="Math.random()"> |
| | | <template slot-scope="{row}"> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 0">å¾
ç¾ç½²</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 1">å¾
å®¡æ ¸</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 2">å·²çæ</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 3 || row.status === 4">ç³è¯·éå</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 5 || row.status === 8">å·²éå</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 6">å·²å
³é</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | align="center" |
| | | prop="applyCode" |
| | | label="æ¹åå·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="changeNum" |
| | | align="center" |
| | | label="æ´æ¢æ´¾é£åä½äººæ°"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="createDate" |
| | | align="center" |
| | | label="æäº¤æ¶é´"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="applyStartTime" |
| | | align="center" |
| | | label="æ¹åçæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | align="center" |
| | | label="æä½"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaApplyChangeUnitDetailWindow.open('æ´æ¢æ´¾é£åä½è¯¦æ
', row)">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </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"> |
| | | <div class="desc_item_review_label">å®¡æ ¸æµç¨</div> |
| | | <el-timeline :reverse="reverse"> |
| | | <el-timeline-item |
| | | v-for="(activity, index) in activities" |
| | | :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;" v-if="[1, 2, 5, 6, 9, 11, 22].includes(activity.objType)"> |
| | | {{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.createDate}} |
| | | </span> |
| | | </div> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <InsuranceDetails ref="InsuranceDetails" @success="successEvent" /> |
| | | <OperaInsuranceApplyCheckWindow ref="OperaInsuranceApplyCheckWindow" @success="successEvent" /> |
| | | <!-- ä¼ä¸ç³è¯·éå --> |
| | | <applyReturn ref="applyReturn" @success="successEvent" /> |
| | | <!-- æ°å¢æä¿ --> |
| | | <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" /> |
| | | <!-- å åä¿ç³è¯· --> |
| | | <additionSubtractionApplication ref="additionSubtractionApplication" @success="successEvent" /> |
| | | <!-- æ´æ¢æ´¾é£åä½ç³è¯· --> |
| | | <factoryChange ref="factoryChange" @success="successEvent" /> |
| | | <!-- å åä¿è¯¦æ
--> |
| | | <OperaApplyChangeDetailWindow ref="OperaApplyChangeDetailWindow" @success="successEvent"/> |
| | | <!-- æ´æ¢æ´¾é£åä½è¯¦æ
--> |
| | | <OperaApplyChangeUnitDetailWindow ref="OperaApplyChangeUnitDetailWindow" @success="successEvent"/> |
| | | <!-- éªè¯ææºå· --> |
| | | <operaverifyPhoneNumberWindew ref="operaverifyPhoneNumberWindew" @success="goSign" /> |
| | | <template v-slot:footer> |
| | | <el-button @click="visible=false">è¿å</el-button> |
| | | </template> |
| | | |
| | | <!-- ä¿®æ¹ææºå· --> |
| | | <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" @click="goSignDo()">ç¡® å®</el-button> |
| | | <el-button @click="visiblePhone=false">å æ¶</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import InsuranceDetails from '@/components/business/InsuranceDetails' |
| | | import OperaInsuranceApplyCheckWindow from '@/components/business/OperaInsuranceApplyCheckWindow' |
| | | import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication' |
| | | import factoryChange from '@/components/enterprise/factoryChange' |
| | | import operaverifyPhoneNumberWindew from '@/components/business/operaverifyPhoneNumberWindew' |
| | | import OperaApplyChangeDetailWindow from '@/components/business/OperaApplyChangeDetailWindow' |
| | | import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow' |
| | | |
| | | import applyReturn from '@/components/enterprise/applyReturn' |
| | | import { |
| | | getDetail, |
| | | getSignLink, |
| | | applyDetailPage, |
| | | exportExcel, |
| | | applyChagneDetailExcel, |
| | | applyOpt, |
| | | getMemberListOnlineSignLink, getSignTBQRSLink |
| | | } from '@/api/business/insuranceApply' |
| | | import { findListByDTO } from '@/api/business/dispatchUnit' |
| | | import { fetchList } from '@/api/business/applyChange' |
| | | import { findListByDTO as worktypeFindListByDTO } from '@/api/business/worktype' |
| | | import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow' |
| | | import { mapState } from 'vuex' |
| | | import {sendSms, validateCode} from "@/api/business/smsEmail"; |
| | | |
| | | export default { |
| | | name: 'OperaWtbApplyShopWindow', |
| | | extends: BaseOpera, |
| | | components: { |
| | | GlobalWindow, |
| | | InsuranceDetails, |
| | | OperaInsuranceApplyCheckWindow, |
| | | applyReturn, |
| | | OperaInsuranceApply, |
| | | additionSubtractionApplication, |
| | | factoryChange, |
| | | OperaApplyChangeDetailWindow, |
| | | OperaApplyChangeUnitDetailWindow, |
| | | operaverifyPhoneNumberWindew |
| | | }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | dataId: null, |
| | | signTitle: 'ææºå·éªè¯', |
| | | model: {}, |
| | | form: { |
| | | businessId: null, |
| | | phone: this.$store.state.userInfo.company.phone, |
| | | code: '', |
| | | type:0 |
| | | }, |
| | | rules: { |
| | | code: [ |
| | | { required: true, message: '请è¾å
¥éªè¯ç ' } |
| | | ] |
| | | }, |
| | | num: 0, |
| | | timer: null, |
| | | formInline: { |
| | | applyStatus: '', |
| | | duId: '', |
| | | workTypeId: '', |
| | | memberName: '', |
| | | end: [], |
| | | start: [], |
| | | endTimeE: '', |
| | | endTimeS: '', |
| | | startTimeE: '', |
| | | startTimeS: '', |
| | | type: '' |
| | | }, |
| | | visible1: false, |
| | | visible2: false, |
| | | visible3: false, |
| | | visible4: false, |
| | | visible5: false, |
| | | visiblePhone: false, |
| | | reverse: false, |
| | | radio: 0, |
| | | activities: [], |
| | | tableData: [], |
| | | list: [], |
| | | list1: [], |
| | | list2: [], |
| | | dwList: [], |
| | | gzList: [], |
| | | 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.model = {} |
| | | this.dataId = null |
| | | this.dataId = target.id |
| | | this.form.businessId = target.id |
| | | this.formInline.applyStatus = '' |
| | | this.formInline.duId = '' |
| | | this.formInline.workTypeId = '' |
| | | this.formInline.memberName = '' |
| | | this.formInline.end = '' |
| | | this.formInline.start = '' |
| | | this.formInline.endTimeE = '' |
| | | this.formInline.endTimeS = '' |
| | | this.formInline.startTimeE = '' |
| | | this.formInline.startTimeS = '' |
| | | this.formInline.type = '' |
| | | this.activeName = '0' |
| | | this.getDetail() |
| | | this.getList() |
| | | this.getDW() |
| | | this.getGZ() |
| | | }, |
| | | getSignLink (flag) { |
| | | if (flag === 0) { |
| | | this.signTitle = 'ç¾ç½²æ¹æ¡ç¡®è®¤ä¹¦' |
| | | } else if (flag === 1) { |
| | | this.signTitle = 'ç¾ç½²ç³è¯·å' |
| | | } else if (flag === 2) { |
| | | 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.isWorking = true |
| | | if(this.form.type===0){ |
| | | getSignTBQRSLink(this.form).then(res => { |
| | | setTimeout(() => { |
| | | this.visiblePhone=false |
| | | window.open(res) |
| | | }, 500) |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | } else if (this.form.type === 1) { |
| | | getMemberListOnlineSignLink(this.form).then(res => { |
| | | setTimeout(() => { |
| | | this.visiblePhone=false |
| | | window.open(res) |
| | | }, 500) |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | } else if (this.form.type === 2) { |
| | | getSignLink(this.dataId).then(res => { |
| | | setTimeout(() => { |
| | | this.visiblePhone=false |
| | | window.open(res) |
| | | }, 500) |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | send () { |
| | | sendSms({ |
| | | phone: this.form.phone |
| | | }).then(res => { |
| | | this.num = 60 |
| | | this.setTime() |
| | | }) |
| | | }, |
| | | setTime () { |
| | | this.timer = setInterval(() => { |
| | | if (this.num === 0) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | return |
| | | } |
| | | this.num = this.num - 1 |
| | | }, 1000) |
| | | }, |
| | | // å
³é订å |
| | | closeOrder () { |
| | | this.$confirm('确认å
³éæ¤è®¢åå?', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | applyOpt({ |
| | | applyId: this.dataId, |
| | | optType: 2 |
| | | }).then(res => { |
| | | this.getDetail() |
| | | }) |
| | | }).catch(() => { |
| | | |
| | | }) |
| | | }, |
| | | // æ´¾é£åä½ |
| | | getDW () { |
| | | findListByDTO({ applyId: this.dataId }) |
| | | .then(res => { |
| | | this.dwList = res |
| | | }) |
| | | }, |
| | | // å·¥ç§ |
| | | getGZ () { |
| | | worktypeFindListByDTO({ |
| | | id: this.dataId, |
| | | queryType: 2 |
| | | }).then(res => { |
| | | this.gzList = res |
| | | }) |
| | | }, |
| | | resetting () { |
| | | if (this.activeName === '0') { |
| | | this.formInline.applyStatus = '0' |
| | | } else { |
| | | this.formInline.applyStatus = '' |
| | | } |
| | | this.formInline.start = '' |
| | | this.formInline.startTimeE = '' |
| | | this.formInline.endTimeE = '' |
| | | this.list = [] |
| | | this.list1 = [] |
| | | this.list2 = [] |
| | | this.formInline.duId = '' |
| | | this.formInline.workTypeId = '' |
| | | this.formInline.memberName = '' |
| | | this.formInline.end = [] |
| | | this.formInline.end = [] |
| | | this.formInline.endTimeE = '' |
| | | this.formInline.endTimeS = '' |
| | | this.formInline.startTimeE = '' |
| | | this.formInline.startTimeS = '' |
| | | this.search() |
| | | }, |
| | | search () { |
| | | this.currentPage = 1 |
| | | this.getList() |
| | | }, |
| | | changeStart (e) { |
| | | if (e.length > 0) { |
| | | this.formInline.startTimeS = e[0] |
| | | this.formInline.startTimeE = e[1] |
| | | } else { |
| | | this.formInline.startTimeS = '' |
| | | this.formInline.startTimeE = '' |
| | | } |
| | | this.search() |
| | | }, |
| | | changeEnd (e) { |
| | | if (e.length > 0) { |
| | | this.formInline.endTimeS = e[0] |
| | | this.formInline.endTimeE = e[1] |
| | | } else { |
| | | this.formInline.endTimeS = '' |
| | | this.formInline.endTimeE = '' |
| | | } |
| | | this.search() |
| | | }, |
| | | exportExcel () { |
| | | if (this.activeName === '0') { |
| | | exportExcel({ |
| | | capacity: 10, |
| | | page: this.currentPage, |
| | | model: { |
| | | solutionName: this.tableData[0].solutionsName, |
| | | applyId: this.dataId, |
| | | applyStatus: this.formInline.applyStatus, |
| | | duId: this.formInline.duId, |
| | | workTypeId: this.formInline.workTypeId, |
| | | memberName: this.formInline.memberName, |
| | | endTimeE: this.formInline.endTimeE, |
| | | endTimeS: this.formInline.endTimeS, |
| | | startTimeE: this.formInline.startTimeE, |
| | | startTimeS: this.formInline.startTimeS |
| | | } |
| | | }).then(response => { |
| | | this.download(response) |
| | | }) |
| | | } else { |
| | | applyChagneDetailExcel({ |
| | | capacity: 10, |
| | | page: this.currentPage, |
| | | model: { |
| | | applyId: this.dataId, |
| | | applyStatus: this.formInline.applyStatus, |
| | | duId: this.formInline.duId, |
| | | workTypeId: this.formInline.workTypeId, |
| | | memberName: this.formInline.memberName, |
| | | endTimeE: this.formInline.endTimeE, |
| | | endTimeS: this.formInline.endTimeS, |
| | | startTimeE: this.formInline.startTimeE, |
| | | startTimeS: this.formInline.startTimeS, |
| | | type: this.formInline.type |
| | | } |
| | | }).then(response => { |
| | | this.download(response) |
| | | }) |
| | | } |
| | | }, |
| | | getList () { |
| | | if (this.activeName === '0') { |
| | | applyDetailPage({ |
| | | capacity: 10, |
| | | page: this.currentPage, |
| | | model: { |
| | | applyId: this.dataId, |
| | | applyStatus: this.formInline.applyStatus, |
| | | duId: this.formInline.duId, |
| | | workTypeId: this.formInline.workTypeId, |
| | | memberName: this.formInline.memberName, |
| | | endTimeE: this.formInline.endTimeE, |
| | | endTimeS: this.formInline.endTimeS, |
| | | startTimeE: this.formInline.startTimeE, |
| | | startTimeS: this.formInline.startTimeS |
| | | } |
| | | }).then(res => { |
| | | this.list = res.records |
| | | this.total = res.total |
| | | this.$nextTick(() => { |
| | | console.log(this.$refs.table) |
| | | if (this.$refs.table && this.$refs.table.doLayout) { |
| | | this.$refs.table.doLayout() |
| | | } |
| | | }) |
| | | }) |
| | | } else { |
| | | fetchList({ |
| | | capacity: 10, |
| | | page: this.currentPage, |
| | | model: { |
| | | applyId: this.dataId, |
| | | status: this.formInline.applyStatus, |
| | | endTimeE: this.formInline.endTimeS, |
| | | endTimeS: this.formInline.startTimeS, |
| | | type: this.formInline.type |
| | | } |
| | | }).then(res => { |
| | | if (this.activeName === '1') { |
| | | this.list1 = res.records |
| | | } else if (this.activeName === '2') { |
| | | this.list2 = res.records |
| | | } |
| | | this.total = res.total |
| | | this.$nextTick(() => { |
| | | console.log(this.$refs.table) |
| | | if (this.$refs.table && this.$refs.table.doLayout) { |
| | | this.$refs.table.doLayout() |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | }, |
| | | handleClick (e) { |
| | | this.activeName = e.index |
| | | if (e.index === '1') { |
| | | this.formInline.type = 0 |
| | | } else if (e.index === '2') { |
| | | this.formInline.type = 1 |
| | | } |
| | | this.resetting() |
| | | }, |
| | | goSign () { |
| | | getSignLink(this.dataId).then(res => { |
| | | setTimeout(() => { |
| | | window.open(res) |
| | | }, 500) |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }, |
| | | viewToubaodan () { |
| | | if (this.model.toubaodanSignedFile && this.model.toubaodanSignedFile.fileurlFull) { |
| | | setTimeout(() => { |
| | | window.open(this.model.toubaodanSignedFile.fileurlFull) |
| | | }, 500) |
| | | } else if (this.model.toubaodanFile && this.model.toubaodanFile.fileurlFull) { |
| | | setTimeout(() => { |
| | | window.open(this.model.toubaodanFile.fileurlFull) |
| | | }, 500) |
| | | } |
| | | }, |
| | | viewBaoxiandan () { |
| | | if (this.model.baoxiandanFile && this.model.baoxiandanFile.fileurlFull) { |
| | | window.open(this.model.baoxiandanFile.fileurlFull) |
| | | } |
| | | }, |
| | | viewFanganshu () { |
| | | if (this.model.fanganFile && this.model.fanganFile.fileurlFull) { |
| | | window.open(this.model.fanganFile.fileurlFull) |
| | | } |
| | | }, |
| | | viewShenqingdan () { |
| | | if (this.model.shenqingdanFile && this.model.shenqingdanFile.fileurlFull) { |
| | | window.open(this.model.shenqingdanFile.fileurlFull) |
| | | } |
| | | }, |
| | | handleSizeChange (val) { |
| | | console.log(val) |
| | | }, |
| | | handleCurrentChange (val) { |
| | | console.log(val) |
| | | this.currentPage = val |
| | | this.getList() |
| | | }, |
| | | onSubmit () { |
| | | |
| | | }, |
| | | getDetail () { |
| | | getDetail(this.dataId).then(res => { |
| | | this.model = res |
| | | this.tableData = new Array() |
| | | this.tableData.push(res) |
| | | console.log(this.tableData) |
| | | this.activities = res.applyLogList |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | successEvent () { |
| | | // this.visible=false |
| | | this.getDetail() |
| | | this.$emit('success') |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | ::v-deep .el-tabs__item{ |
| | | font-weight: 600; |
| | | } |
| | | </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; |
| | | 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> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { sendSms, validateCode } from '@/api/business/smsEmail' |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | name: 'operaverifyPhoneNumberWindew', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | form: { |
| | | phone: this.$store.state.userInfo.company.phone, |
| | | code: '' |
| | | }, |
| | | rules: { |
| | | code: [ |
| | | { required: true, message: '请è¾å
¥éªè¯ç ' } |
| | | ] |
| | | }, |
| | | num: 0, |
| | | timer: null |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | methods: { |
| | | open (title) { |
| | | this.title = title |
| | | this.num = 0 |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | }) |
| | | }, |
| | | send () { |
| | | sendSms({ |
| | | phone: this.form.phone |
| | | }).then(res => { |
| | | this.num = 60 |
| | | this.setTime() |
| | | }) |
| | | }, |
| | | setTime () { |
| | | this.timer = setInterval(() => { |
| | | if (this.num === 0) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | return |
| | | } |
| | | this.num = this.num - 1 |
| | | }, 1000) |
| | | }, |
| | | confirm () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.isWorking = true |
| | | validateCode({ |
| | | code: this.form.code |
| | | }).then(res => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æä½æå') |
| | | this.$emit('success') |
| | | }).catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { sendSms, validateCode } from '@/api/business/smsEmail' |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | name: 'operaverifyPhoneNumberWindew', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | form: { |
| | | phone: this.$store.state.userInfo.company.phone, |
| | | code: '' |
| | | }, |
| | | rules: { |
| | | code: [ |
| | | { required: true, message: '请è¾å
¥éªè¯ç ' } |
| | | ] |
| | | }, |
| | | num: 0, |
| | | timer: null |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | methods: { |
| | | open (title) { |
| | | this.title = title |
| | | this.num = 0 |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | }) |
| | | }, |
| | | send () { |
| | | sendSms({ |
| | | phone: this.form.phone |
| | | }).then(res => { |
| | | this.num = 60 |
| | | this.setTime() |
| | | }) |
| | | }, |
| | | setTime () { |
| | | this.timer = setInterval(() => { |
| | | if (this.num === 0) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | return |
| | | } |
| | | this.num = this.num - 1 |
| | | }, 1000) |
| | | }, |
| | | confirm () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.isWorking = true |
| | | validateCode({ |
| | | code: this.form.code |
| | | }).then(res => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æä½æå') |
| | | this.$emit('success') |
| | | }).catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | } |
| | | }, |
| | | watch: { |
| | | type: function (newVal, oldVal) { |
| | | this.type = newVal |
| | | }, |
| | | excludeId () { |
| | | this.fetchData() |
| | | } |
| | |
| | | methods: { |
| | | // è·åææèå |
| | | fetchData () { |
| | | if (this.type == '1' || this.type == '2') { |
| | | if (this.type == '1' || this.type == '2') { |
| | | fetchTree1(this.type) |
| | | .then(records => { |
| | | this.data = [] |
| | |
| | | <template> |
| | | <div> |
| | | <el-upload |
| | | ref="uploadFileBtn" |
| | | class="upload-demo" |
| | | :accept="uploadData.fileTyp" |
| | | :action="uploadImgUrl" |
| | |
| | | :on-error="uploadError" |
| | | :before-upload="beforeFileUpload" |
| | | :file-list="fileList"> |
| | | <el-button size="small" type="primary">ç¹å»ä¸ä¼ </el-button> |
| | | <div slot="tip" class="el-upload__tip">åªè½ä¸ä¼ {{ uploadData.fileType }}æä»¶ï¼ä¸ä¸è¶
è¿5mb</div> |
| | | <el-button size="small" type="primary" >ç¹å»ä¸ä¼ </el-button> |
| | | <div style="display: inline-block" slot="tip" class="el-upload__tip">(åªè½ä¸ä¼ {{ uploadData.fileType }}æä»¶ï¼ä¸ä¸è¶
è¿5mb)</div> |
| | | </el-upload> |
| | | </div> |
| | | |
| | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | fileList:{ |
| | | type: Array, |
| | | default: () => [] |
| | | }, |
| | | file: { |
| | | type: Object, |
| | | default: () => {} |
| | |
| | | tipsLabel: '', |
| | | customStyle: { |
| | | type: String, |
| | | default: 'width: 190px; height: 190px;' |
| | | default: 'width: 190px; height: 190px;' |
| | | }, |
| | | uploadData: Object |
| | | }, |
| | | data() { |
| | | return { |
| | | fileList:null, |
| | | // fileList:[], |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload?folder='+this.uploadData.folder |
| | | } |
| | | }, |
| | | |
| | | watch: { |
| | | fileList (nv,ov) { |
| | | if(this.fileList ==null){ |
| | | this.fileList = new Array(); |
| | | } |
| | | // alert(this.fileList) |
| | | } |
| | | }, |
| | | methods: { |
| | | removes() { |
| | | this.$emit('remove') |
| | | }, |
| | | // ä¸ä¼ å¾ç |
| | | handleExceed(){}, |
| | | handleExceed(){ |
| | | this.$message.error('åªå
许ä¸ä¼ 1个æä»¶ï¼è¯·å é¤å·²ä¼ æä»¶ï¼éè¯ï¼') |
| | | }, |
| | | handleFileSuccess(res, file) { |
| | | if (res.code == 200) { |
| | | let { data } = res |
| | | // this.fileList = [{name: data.originname, url: data.url }] |
| | | this.$message.success('ä¸ä¼ æå') |
| | | this.$emit('uploadSuccess', { fileurl: data.imgaddr, fileurlFull: data.url, name: data.originname }) |
| | | this.$emit('uploadSuccess', { fileurl: data.imgaddr, fileurlFull: data.url, name: data.originname }) |
| | | } else { |
| | | this.$tip.apiFailed('ä¸ä¼ 失败') |
| | | this.$message.apiFailed('ä¸ä¼ 失败') |
| | | } |
| | | this.$emit('uploadEnd') |
| | | }, |
| | | uploadError() { |
| | | this.$tip.apiFailed('ä¸ä¼ 失败') |
| | | this.$message.apiFailed('ä¸ä¼ 失败') |
| | | this.$emit('endUpload') |
| | | }, |
| | | // // æ¦æª |
| | | beforeFileUpload(file) { |
| | | |
| | | this.$emit('uploadBegin') |
| | | return true |
| | | } |
| | |
| | | cursor: pointer; |
| | | position: relative; |
| | | width: $image-width; |
| | | height: $image-width; |
| | | height: auto; |
| | | overflow: hidden; |
| | | } |
| | | .avatar-uploader .el-upload:hover { |
| | |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="ä¿åç¶æ" prop="statusCollect"> |
| | | <el-select v-model="searchForm.statusCollect" placeholder="è¯·éæ©" @keypress.enter.native="search"> |
| | | <<<<<<< HEAD |
| | | <el-option label="å¾
å®¡æ ¸" value="0"></el-option> |
| | | <el-option label="å¾
åºå" value="1"></el-option> |
| | | <el-option label="å¾
ç¾ç½²" value="7"></el-option> |
| | |
| | | <el-option label="å·²éå" value="4"></el-option> |
| | | <el-option label="éåç³è¯·ä¸" value="5"></el-option> |
| | | <el-option label="å·²å
³é" value="6"></el-option> |
| | | ======= |
| | | <el-option label="å¾
ç¾ç½²" value="28"></el-option> |
| | | <el-option label="å¾
å®¡æ ¸" value="22"></el-option> |
| | | <el-option label="å¾
åºå" value="23"></el-option> |
| | | <el-option label="å·²éå" value="24"></el-option> |
| | | <el-option label="å·²å
³é" value="25"></el-option> |
| | | <el-option label="æä¿ä¸" value="26"></el-option> |
| | | <el-option label="ä¿éä¸" value="27"></el-option> |
| | | >>>>>>> 2ce7d1d9934f97604ff00b1789dd3628d814dd60 |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æä¿ä¼ä¸" prop="companyId"> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="statusInfo" label="æä¿ç¶æ" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span :class="'apply-status'+row.status" >{{row.statusInfo}}</span> |
| | | <span :class="'apply-status'+row.statusCollect" >{{row.statusInfo}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyName" label="æä¿ä¼ä¸" min-width="100px"></el-table-column> |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaInsuranceApplyShopWindow.open('å§ææä¿è¯¦æ
', row)" icon="el-icon-edit" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="$refs.operaWtbApplyShopWindow.open('å§ææä¿è¯¦æ
', row)" icon="el-icon-edit" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <OperaInsuranceApplyShopWindow ref="operaInsuranceApplyShopWindow" @success="handlePageChange"/> |
| | | <OperaWtbApplyShopWindow ref="operaWtbApplyShopWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import { all as solutionAll } from '@/api/business/solutions' |
| | | import { pageAll as companyAll } from '@/api/business/company' |
| | | import OperaInsuranceApplyShopWindow from '@/components/business/OperaInsuranceApplyShopWindow' |
| | | import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow' |
| | | export default { |
| | | name: 'InsuranceApply', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaInsuranceApplyShopWindow }, |
| | | components: { TableLayout, Pagination, OperaWtbApplyShopWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | |
| | | <el-option label="å·²éå" value="4"></el-option> |
| | | <el-option label="éåç³è¯·ä¸" value="5"></el-option> |
| | | <el-option label="å·²å
³é" value="6"></el-option> |
| | | <el-option label="æä¿ä¸" value="25"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©æ¹æ¡" prop="baseSolutionId"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="solutionsName" label="ä¿é©æ¹æ¡"></el-table-column> |
| | | <el-table-column label="ç±»å"> |
| | | <template slot-scope="{row}"> |
| | | <span style="color: #00BA92" v-if="row.solutionType == 1">å§ææä¿</span> |
| | | <span style="color: #F95601;" v-else>ç´æ¥æä¿</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="insureNum" label="æä¿äººæ°"></el-table-column> |
| | | <el-table-column label="æä¿æ¶é¿ï¼å¤©ï¼"> |
| | | <template slot-scope="{row}"> |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaInsuranceApplyDetails.open('æä¿è¯¦æ
', { id: row.id })" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="godetail(row)" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | <!-- æ°å¢æä¿ --> |
| | | <OperaInsuranceApplyWindow ref="OperaInsuranceApplyWindow" @success="handlePageChange" /> |
| | | <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" @success="handlePageChange" /> |
| | | <!-- æä¿è¯¦æ
--> |
| | | <OperaInsuranceApplyDetails ref="OperaInsuranceApplyDetails" @success="handlePageChange" /> |
| | | </TableLayout> |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaInsuranceApplyWindow from '@/components/enterprise/OperaInsuranceApplyWindow' |
| | | import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow' |
| | | import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow' |
| | | |
| | | import { all as solutionAll} from '@/api/business/solutions' |
| | | import { all as solutionAll } from '@/api/business/solutions' |
| | | export default { |
| | | name: 'InsuranceApply', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaInsuranceApplyWindow, OperaInsuranceApplyDetails }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | createTimeS: '', |
| | | createTimeE: '', |
| | | baseSolutionId: '', |
| | | statusCollect: '' |
| | | }, |
| | | solutionList:[] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'æä¿ç³è¯·ä¿¡æ¯è¡¨', |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | this.loadSelectList() |
| | | }, |
| | | methods:{ |
| | | loadSelectList() { |
| | | solutionAll({ dataType:2}).then(res => { |
| | | this.solutionList = res |
| | | }) |
| | | } |
| | | name: 'InsuranceApply', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaInsuranceApplyWindow, OperaInsuranceApplyDetails,OperaWtbApplyShopWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | createTimeS: '', |
| | | createTimeE: '', |
| | | baseSolutionId: '', |
| | | statusCollect: '' |
| | | }, |
| | | solutionList: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'æä¿ç³è¯·ä¿¡æ¯è¡¨', |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | this.loadSelectList() |
| | | }, |
| | | methods: { |
| | | godetail (row) { |
| | | if (row.solutionType == 1) { |
| | | this.$refs.OperaWtbApplyShopWindow.open('å§ææä¿è¯¦æ
', { id: row.id }) |
| | | } else { |
| | | this.$refs.OperaInsuranceApplyDetails.open('æä¿è¯¦æ
', { id: row.id }) |
| | | } |
| | | }, |
| | | loadSelectList () { |
| | | solutionAll({ dataType: 2 }).then(res => { |
| | | this.solutionList = res |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="solutionsName" label="ä¿é©æ¹æ¡"></el-table-column> |
| | | <el-table-column label="ä¿åå·"> |
| | | <el-table-column label="ç±»å"> |
| | | <template slot-scope="{row}"> |
| | | <span style="color: #00BA92" v-if="row.solutionType == 1">å§ææä¿</span> |
| | | <span style="color: #F95601;" v-else>ç´æ¥æä¿</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="ä¿åå·"> |
| | | <template slot-scope="{row}"> |
| | | <span>{{row.code ? row.code : '-'}}</span> |
| | | </template> |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaInsuranceApplyDetails.open('æä¿è¯¦æ
', { id: row.id })" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="godetail(row)" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | <!-- <template v-if="row.statusCollect === 2">--> |
| | | <!-- <el-button type="text" @click="$refs.additionSubtractionApplication.open('å åä¿ç³è¯·', { id: row.id })">å åä¿ç³è¯·</el-button>--> |
| | | <!-- </template>--> |
| | |
| | | <OperaInsuranceApplyWindow ref="OperaInsuranceApplyWindow" @success="handlePageChange" /> |
| | | <!-- æä¿è¯¦æ
--> |
| | | <OperaInsuranceApplyDetails ref="OperaInsuranceApplyDetails" @success="handlePageChange" /> |
| | | <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" @success="handlePageChange" /> |
| | | <!-- å åä¿ç³è¯· --> |
| | | <additionSubtractionApplication ref="additionSubtractionApplication" @success="handlePageChange" /> |
| | | <!-- ç»ä¿å¼¹çª --> |
| | |
| | | import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow' |
| | | import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication' |
| | | import renewalInsurance from '@/components/enterprise/renewalInsurance' |
| | | import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow' |
| | | |
| | | import { all as solutionAll} from '@/api/business/solutions' |
| | | import { getCaptcha, closeApplyNotice } from '@/api/business/notices' |
| | |
| | | OperaInsuranceApplyWindow, |
| | | OperaInsuranceApplyDetails, |
| | | renewalInsurance, |
| | | additionSubtractionApplication |
| | | additionSubtractionApplication, |
| | | OperaWtbApplyShopWindow |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | this.getNum() |
| | | }, |
| | | methods:{ |
| | | godetail (row) { |
| | | if (row.solutionType == 1) { |
| | | this.$refs.OperaWtbApplyShopWindow.open('å§ææä¿è¯¦æ
', { id: row.id }) |
| | | } else { |
| | | this.$refs.OperaInsuranceApplyDetails.open('æä¿è¯¦æ
', { id: row.id }) |
| | | } |
| | | }, |
| | | see() { |
| | | this.searchForm.statusCollect = '7' |
| | | this.search() |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.dto.ApplyChangeCyclePriceDTO; |
| | | import com.doumee.dao.business.dto.ApplyChangeOptDTO; |
| | | import com.doumee.dao.business.dto.CountCyclePriceDTO; |
| | | import com.doumee.dao.business.dto.InsuranceApplyOptDTO; |
| | | import com.doumee.dao.business.dto.*; |
| | | import com.doumee.dao.business.model.ApplyChange; |
| | | import com.doumee.dao.business.vo.CountCyclePriceVO; |
| | | import com.doumee.service.business.ApplyChangeService; |
| | |
| | | } |
| | | |
| | | @ApiOperation("æä¿ç¡®è®¤ä¹¦ç¾ç« ä¸å¡") |
| | | @GetMapping("/getChangeMemberListOnlineSignLink/{id}") |
| | | @PostMapping("/getChangeMemberListOnlineSignLink") |
| | | @RequiresPermissions("business:applychange:query") |
| | | public ApiResponse<String> getChangeMemberListOnlineSignLink(@PathVariable Integer id) { |
| | | return ApiResponse.success(applyChangeService.getChangeMemberListOnlineSignLink(id)); |
| | | public ApiResponse<String> getChangeMemberListOnlineSignLink(@RequestBody SmsCheckDTO smsCheckDTO) { |
| | | return ApiResponse.success(applyChangeService.getChangeMemberListOnlineSignLink(smsCheckDTO)); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.doumee.dao.business.dto.CountCyclePriceDTO; |
| | | import com.doumee.dao.business.dto.InsuranceApplyOptDTO; |
| | | import com.doumee.dao.business.dto.InsuranceApplyQueryDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.model.InsuranceApply; |
| | | import com.doumee.dao.business.vo.CountCyclePriceVO; |
| | | import com.doumee.service.business.InsuranceApplyService; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("æä¿ç¡®è®¤ä¹¦ç¾ç« ä¸å¡") |
| | | @GetMapping("/getSignTBQRSLink/{id}") |
| | | @ApiOperation("æ¹æ¡ç¡®è®¤ä¹¦ç¾ç« ä¸å¡") |
| | | @PostMapping("/signTBQRSLink") |
| | | @RequiresPermissions("business:insuranceapply:query") |
| | | public ApiResponse<String> getSignTBQRSLink(@PathVariable Integer id) { |
| | | return ApiResponse.success(insuranceApplyService.getSignTBQRSLink(id)); |
| | | public ApiResponse<String> getSignTBQRSLink(@RequestBody SmsCheckDTO smsCheckDTO) { |
| | | return ApiResponse.success(insuranceApplyService.getSignTBQRSLink(smsCheckDTO)); |
| | | } |
| | | @ApiOperation("人åååç¾ç« ") |
| | | @PostMapping("/getMemberListOnlineSignLink") |
| | | @RequiresPermissions("business:insuranceapply:query") |
| | | public ApiResponse<String> getMemberListOnlineSignLink(@RequestBody SmsCheckDTO smsCheckDTO) { |
| | | return ApiResponse.success(insuranceApplyService.getMemberListOnlineSignLink(smsCheckDTO)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("人åååç¾ç« ") |
| | | @GetMapping("/getMemberListOnlineSignLink/{id}") |
| | | @ApiOperation("æä¿ç³è¯·åç¾ç« ä¸å¡") |
| | | @PostMapping("/getSignWTBTBDLink") |
| | | @RequiresPermissions("business:insuranceapply:query") |
| | | public ApiResponse<String> getMemberListOnlineSignLink(@PathVariable Integer id) { |
| | | return ApiResponse.success(insuranceApplyService.getMemberListOnlineSignLink(id)); |
| | | public ApiResponse<String> getSignWTBTBDLink(@RequestBody SmsCheckDTO smsCheckDTO) { |
| | | return ApiResponse.success(insuranceApplyService.getSignWTBTBDLink(smsCheckDTO)); |
| | | } |
| | | |
| | | |
| | |
| | | ExcelExporter.build(UnionApply.class).export(unionApplyService.findPage(pageWrap).getRecords(), "åå¹¶æä¿åä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:unionapply:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(unionApplyService.findById(id)); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("å建åå¹¶å") |
| | | @PostMapping("/merge") |
| | | @RequiresPermissions("business:unionapply:create") |
| | | public ApiResponse merge(@RequestBody SaveUnionApplyDTO saveUnionApplyDTO) { |
| | | return ApiResponse.success(unionApplyService.merge(saveUnionApplyDTO)); |
| | | } |
| | | |
| | | @ApiOperation("å
³éåå¹¶å") |
| | | @GetMapping("/close") |
| | | @RequiresPermissions("business:unionapply:close") |
| | | public ApiResponse close(@RequestParam Integer id) { |
| | | unionApplyService.cancelMerge(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("ä¸ä¼ æä¿å") |
| | | @PostMapping("/uploadToubaodan") |
| | | @RequiresPermissions("business:unionapply:create") |
| | | public ApiResponse uploadToubaodan(@RequestBody UploadMultifileDTO uploadMultifileDTO) { |
| | | unionApplyService.uploadToubaodan(uploadMultifileDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("ç¾ç½²ç³è¯·å") |
| | | @GetMapping("/getSignLink") |
| | | @RequiresPermissions("business:unionapply:query") |
| | | public ApiResponse getSignLink(@RequestParam Integer id) { |
| | | unionApplyService.getSignLink(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("ä¸ä¼ ä¿é©å") |
| | | @PostMapping("/uploadBXD") |
| | | @RequiresPermissions("business:unionchange:query") |
| | | public ApiResponse uploadBXD(@RequestBody UnionApplyBXDDTO unionApplyBXDDTO) { |
| | | unionApplyService.uploadBXD(unionApplyBXDDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | return ApiResponse.success(unionChangeService.findById(id)); |
| | | } |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("å建åå¹¶å") |
| | | @PostMapping("/merge") |
| | | @RequiresPermissions("business:unionchange:create") |
| | | public ApiResponse merge(@RequestBody SaveUnionChangeDTO saveUnionChangeDTO) { |
| | | return ApiResponse.success(unionChangeService.merge(saveUnionChangeDTO)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("å
³éåå¹¶å") |
| | | @GetMapping("/close") |
| | | @RequiresPermissions("business:unionchange:close") |
| | | public ApiResponse close(@RequestParam Integer id) { |
| | | unionChangeService.cancelMerge(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("ç¾ç½²ç³è¯·å") |
| | | @GetMapping("/getSignLink") |
| | | @RequiresPermissions("business:unionchange:query") |
| | | public ApiResponse getSignLink(@RequestParam Integer id) { |
| | | unionChangeService.getSignLink(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("ä¸ä¼ ä¿é©å") |
| | | @PostMapping("/uploadBXD") |
| | | @RequiresPermissions("business:unionchange:query") |
| | | public ApiResponse uploadBXD(@RequestBody UnionChangeBXDDTO unionChangeBXDDTO) { |
| | | unionChangeService.uploadBXD(unionChangeBXDDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.ApplyChagneDetail; |
| | | import com.doumee.dao.business.model.ApplyChange; |
| | | import com.doumee.dao.business.model.ApplyDetail; |
| | | import com.doumee.dao.business.model.InsuranceApply; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | import java.nio.charset.Charset; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Excel导åºå®ç° |
| | |
| | | private Field field; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * å¯¼åº åå¹¶å æ¢å ç³è¯·è¯¦å |
| | | * @param data æ°æ® |
| | | * @param sheetName Sheetåç§° |
| | | */ |
| | | public String exportUnionChangeOtherUnitExcelToPdf (UnionChange data, String sheetName) { |
| | | SXSSFWorkbook sxssfWorkbook; |
| | | try { |
| | | sxssfWorkbook = new SXSSFWorkbook(); |
| | | Sheet sheet = sxssfWorkbook.createSheet(sheetName); |
| | | 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,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 < 8; i++) { |
| | | if(i>0){ |
| | | title.createCell(i).setCellValue(""); |
| | | } |
| | | configTitleCell(sxssfWorkbook,title.getCell(i)); |
| | | } |
| | | Row header1 = sheet.createRow(1); |
| | | header1.createCell(0).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("æææ¹åçææ"); |
| | | 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(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)); |
| | | 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(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++) { |
| | | configFirstCell(sxssfWorkbook,header3.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,1,8)); |
| | | |
| | | |
| | | Row header4 = sheet.createRow(4); |
| | | header4.createCell(0).setCellValue("åºå·"); |
| | | header4.createCell(1).setCellValue("åå·¥å§å"); |
| | | header4.createCell(2).setCellValue("æ§å«"); |
| | | header4.createCell(3).setCellValue("身份è¯å·"); |
| | | header4.createCell(4).setCellValue("被ä¿é©äºº"); |
| | | header4.createCell(5).setCellValue("åæ´¾é£åä½"); |
| | | header4.createCell(6).setCellValue("åææå±å·¥ç§"); |
| | | header4.createCell(7).setCellValue("æ´æ¹åæ´¾é£åä½"); |
| | | header4.createCell(8).setCellValue("æ´æ¹åæå±å·¥ç§"); |
| | | for (int i = 0; i < 9; i++) { |
| | | configFirstCell(sxssfWorkbook,header4.getCell(i)); |
| | | } |
| | | |
| | | List<ApplyChagneDetail> otherChangeDetailList = data.getApplyChagneDetailList().stream().filter(i->i.getType().equals(Constants.TWO)).collect(Collectors.toList()); |
| | | |
| | | Integer row = 4; |
| | | |
| | | if(CollectionUtils.isNotEmpty(otherChangeDetailList)){ |
| | | row = row + 1; |
| | | Row header5 = sheet.createRow(row); |
| | | header5.createCell(0).setCellValue("åºå·"); |
| | | header5.createCell(1).setCellValue("åå·¥å§å"); |
| | | header5.createCell(2).setCellValue("æ§å«"); |
| | | header5.createCell(3).setCellValue("身份è¯å·"); |
| | | header5.createCell(4).setCellValue("被ä¿é©äºº"); |
| | | header5.createCell(5).setCellValue("åæ´¾é£åä½"); |
| | | header5.createCell(6).setCellValue("åæå±å·¥ç§"); |
| | | header5.createCell(7).setCellValue("æ´æ¹åæ´¾é£åä½"); |
| | | header5.createCell(8).setCellValue("æ´æ¹åæå±å·¥ç§"); |
| | | for (int i = 0; i < 9; i++) { |
| | | configFirstCell(sxssfWorkbook,header5.getCell(i)); |
| | | } |
| | | for (int rowIndex = 0; rowIndex < otherChangeDetailList.size(); rowIndex++) { |
| | | row = row + 1; |
| | | Row header6 = sheet.createRow(row); |
| | | ApplyChagneDetail applyChagneDetail = otherChangeDetailList.get(rowIndex); |
| | | header6.createCell(0).setCellValue(rowIndex + 1); |
| | | header6.createCell(1).setCellValue(applyChagneDetail.getMemberName()); |
| | | header6.createCell(2).setCellValue(Constants.equalsInteger(applyChagneDetail.getSex(),0)?"ç·":(Constants.equalsInteger(applyChagneDetail.getSex(),1)?"女":"-")); |
| | | header6.createCell(3).setCellValue(applyChagneDetail.getIdcardNo()); |
| | | header6.createCell(4).setCellValue(applyChagneDetail.getCompanyName()); |
| | | header6.createCell(5).setCellValue(applyChagneDetail.getOldDuName()); |
| | | header6.createCell(6).setCellValue(applyChagneDetail.getOldWorkTypeName()); |
| | | header6.createCell(7).setCellValue(applyChagneDetail.getDuName()); |
| | | header6.createCell(8).setCellValue(applyChagneDetail.getWorkTypeName()); |
| | | for (int i = 0; i < 9; i++) { |
| | | configFirstCell(sxssfWorkbook,header6.getCell(i)); |
| | | } |
| | | } |
| | | } |
| | | int rowIndex = row + 1 ; |
| | | Row header6= sheet.createRow(rowIndex); |
| | | header6.createCell(0).setCellValue("æä¿ä¼ä¸ç³æ:\n" + |
| | | "1ãå¨ç³è¯·ä¹¦ä¸å¡«åçä¸åå
容å±å®ï¼å¦åæ¬ä¼ä¸æ¿æ
ä¸åæ³å¾è´£ä»»ã\n" + |
| | | "2ãç±äºåæ´åç人产ççæ³å¾çº 纷æ¬ä¼ä¸æ¿æ¿æ
ä¸åæ³å¾è´£ä»»ã\n" + |
| | | "3ãæ¬ç³è¯·è¡¨çç¾ç« 为æ¬ä¼ä¸äº²èªç¾ç½²ï¼å¦ç±æ¤äº§ççæ³å¾çº 纷æ¬ä¼ä¸æ¿æ¿æ
ä¸åæ³å¾è´£ä»»ã\n"); |
| | | for (int i = 1; i < 9; i++) { |
| | | header6.createCell(i).setCellValue(""); |
| | | } |
| | | for (int i =0; i < 9; i++) { |
| | | if(i>0){ |
| | | header6.createCell(i).setCellValue(""); |
| | | } |
| | | configInfoCell(sxssfWorkbook,header6.getCell(i),HorizontalAlignment.LEFT); |
| | | } |
| | | header6.setHeight((short) 2000); |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex ,rowIndex,0,8)); |
| | | Row header7= sheet.createRow(rowIndex+1); |
| | | header7.setHeight((short) 3000); |
| | | header7.createCell(0).setCellValue("æä¿äººç¾ç« ï¼ \n \n \n" +"æ¥æï¼ å¹´ æ æ¥ "); |
| | | for (int i =0; i < 9; i++) { |
| | | if(i>0){ |
| | | header7.createCell(i).setCellValue(""); |
| | | } |
| | | configInfoCell(sxssfWorkbook,header7.getCell(i),HorizontalAlignment.RIGHT); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex+1 ,rowIndex+1,0,8)); |
| | | |
| | | //临æ¶ç¼å²åº |
| | | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| | | //åå»ºä¸´æ¶æä»¶ |
| | | sxssfWorkbook.write(out); |
| | | byte [] bookByteAry = out.toByteArray(); |
| | | InputStream in = new ByteArrayInputStream(bookByteAry); |
| | | String tempExcel = saveIsToFile(in); |
| | | String tempPdf =System.getProperty("java.io.tmpdir")+File.separator+UUID.randomUUID().toString()+".pdf"; |
| | | // ExcelToPdfTool.excelToPdf(in,tempPdf);//转PDF |
| | | ExcelToPdfTool.excelToPdf(tempExcel,tempPdf);//转PDF |
| | | File f = new File(tempPdf); |
| | | if(f!=null && f.isFile() && f.length()>0){ |
| | | return tempPdf; |
| | | } |
| | | } catch (Exception e) { |
| | | // throw new BusinessException(ResponseStatus.EXPORT_EXCEL_ERROR, e); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * å¯¼åº åå¹¶åå åä¿ç³è¯·è¯¦å |
| | | * @param data æ°æ® |
| | | * @param sheetName Sheetåç§° |
| | | */ |
| | | public String exportUnionChangeExcelToPdf (UnionChange data, String sheetName) { |
| | | SXSSFWorkbook sxssfWorkbook; |
| | | try { |
| | | sxssfWorkbook = new SXSSFWorkbook(); |
| | | Sheet sheet = sxssfWorkbook.createSheet(sheetName); |
| | | for (int i = 0; i < 12; i++) { |
| | | sheet.setColumnWidth(i, ((i==3|| i==4|| i== 5 || i==9||i==10|| i==11)?16:8) * 2 * 256); |
| | | } |
| | | sheet.createFreezePane(0, 1); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,11)); |
| | | Row title = sheet.createRow(0); |
| | | title.setHeight((short) 2000); |
| | | for (int i = 0; i < 12; i++) { |
| | | title.createCell(i).setCellValue(i==0?sheetName:""); |
| | | configTitleCell(sxssfWorkbook,title.getCell(i)); |
| | | } |
| | | Row header1 = sheet.createRow(1); |
| | | header1.createCell(0).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("æææ¹åçææ"); |
| | | for (int i = 0; i < 8; i++) { |
| | | configFirstCell(sxssfWorkbook,header1.getCell(i)); |
| | | } |
| | | |
| | | Row header2 = sheet.createRow(2); |
| | | header2.createCell(0).setCellValue(data.getShopName()); |
| | | header2.createCell(1).setCellValue(data.getSolutionsName()); |
| | | header2.createCell(2).setCellValue(data.getApplyCode()); |
| | | header2.createCell(3).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getStartTime())); |
| | | header2.createCell(4).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getEndTime())); |
| | | header2.createCell(5).setCellValue(data.getApplyChagneDetailList().stream().filter(i->i.getType().equals(Constants.ZERO)).collect(Collectors.toList()).size()); |
| | | header2.createCell(6).setCellValue(data.getApplyChagneDetailList().stream().filter(i->i.getType().equals(Constants.ONE)).collect(Collectors.toList()).size()); |
| | | header2.createCell(7).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getValidTime())); |
| | | for (int i = 0; i < 8; 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(3).setCellValue(""); |
| | | header3.createCell(4).setCellValue(""); |
| | | header3.createCell(5).setCellValue(""); |
| | | header3.createCell(6).setCellValue(""); |
| | | header3.createCell(7).setCellValue(""); |
| | | for (int i = 0; i < 8; i++) { |
| | | configFirstCell(sxssfWorkbook,header3.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,1,7)); |
| | | |
| | | Integer row = 4; |
| | | List<ApplyChagneDetail> addChangeDetailList = data.getApplyChagneDetailList().stream().filter(i->i.getType().equals(Constants.ZERO)).collect(Collectors.toList()); |
| | | if(CollectionUtils.isNotEmpty(addChangeDetailList)){ |
| | | Row header4 = sheet.createRow(row); |
| | | header4.createCell(0).setCellValue("å ä¿äººå"); |
| | | for (int i = 0; i < 8; i++) { |
| | | configFirstCell(sxssfWorkbook, header4.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(row ,row,0,7)); |
| | | row = row + 1; |
| | | Row header5 = sheet.createRow(row); |
| | | header5.createCell(0).setCellValue("åºå·"); |
| | | header5.createCell(1).setCellValue("åå·¥å§å"); |
| | | header5.createCell(2).setCellValue("æ§å«"); |
| | | header5.createCell(3).setCellValue("身份è¯å·"); |
| | | header5.createCell(4).setCellValue("被ä¿é©äºº"); |
| | | header5.createCell(5).setCellValue("æ´¾é£åä½"); |
| | | header5.createCell(6).setCellValue(""); |
| | | header5.createCell(7).setCellValue("æå±å·¥ç§"); |
| | | for (int i = 0; i < 8; i++) { |
| | | configFirstCell(sxssfWorkbook,header5.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(row ,row,5,6)); |
| | | for (int rowIndex = 0; rowIndex < addChangeDetailList.size(); rowIndex++) { |
| | | row = row + 1 ; |
| | | Row header6 = sheet.createRow(row); |
| | | ApplyChagneDetail applyChagneDetail = addChangeDetailList.get(rowIndex); |
| | | header6.createCell(0).setCellValue(rowIndex + 1); |
| | | header6.createCell(1).setCellValue(applyChagneDetail.getMemberName()); |
| | | header6.createCell(2).setCellValue(Constants.equalsInteger(applyChagneDetail.getSex(),0)?"ç·":(Constants.equalsInteger(applyChagneDetail.getSex(),1)?"女":"-")); |
| | | header6.createCell(3).setCellValue(applyChagneDetail.getIdcardNo()); |
| | | header6.createCell(4).setCellValue(applyChagneDetail.getCompanyName()); |
| | | header6.createCell(5).setCellValue(applyChagneDetail.getDuName()); |
| | | header6.createCell(6).setCellValue(""); |
| | | header6.createCell(7).setCellValue(applyChagneDetail.getWorkTypeName()); |
| | | for (int i = 0; i < 8; i++) { |
| | | configFirstCell(sxssfWorkbook,header6.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(row ,row,5,6)); |
| | | } |
| | | } |
| | | |
| | | List<ApplyChagneDetail> reduceChangeDetailList = data.getApplyChagneDetailList().stream().filter(i->i.getType().equals(Constants.ONE)).collect(Collectors.toList()); |
| | | row = row + 1; |
| | | if(CollectionUtils.isNotEmpty(reduceChangeDetailList)){ |
| | | Row header4 = sheet.createRow(row); |
| | | header4.createCell(0).setCellValue("åä¿äººå"); |
| | | for (int i = 0; i < 8; i++) { |
| | | configFirstCell(sxssfWorkbook, header4.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(row ,row,0,7)); |
| | | |
| | | row = row + 1; |
| | | Row header5 = sheet.createRow(row); |
| | | header5.createCell(0).setCellValue("åºå·"); |
| | | header5.createCell(1).setCellValue("åå·¥å§å"); |
| | | header5.createCell(2).setCellValue("æ§å«"); |
| | | header5.createCell(3).setCellValue("身份è¯å·"); |
| | | header5.createCell(4).setCellValue("被ä¿é©äºº"); |
| | | header5.createCell(5).setCellValue("æ´¾é£åä½"); |
| | | header5.createCell(6).setCellValue(""); |
| | | header5.createCell(7).setCellValue("æå±å·¥ç§"); |
| | | for (int i = 0; i < 8; i++) { |
| | | configFirstCell(sxssfWorkbook,header5.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(row ,row,5,6)); |
| | | |
| | | row = row + 1 ; |
| | | for (int rowIndex = 0; rowIndex < reduceChangeDetailList.size(); rowIndex++) { |
| | | row = row + rowIndex; |
| | | Row header6 = sheet.createRow(row); |
| | | ApplyChagneDetail applyChagneDetail = reduceChangeDetailList.get(rowIndex); |
| | | header6.createCell(0).setCellValue(rowIndex + 1); |
| | | header6.createCell(1).setCellValue(applyChagneDetail.getMemberName()); |
| | | header6.createCell(2).setCellValue(Constants.equalsInteger(applyChagneDetail.getSex(),0)?"ç·":(Constants.equalsInteger(applyChagneDetail.getSex(),1)?"女":"-")); |
| | | header6.createCell(3).setCellValue(applyChagneDetail.getIdcardNo()); |
| | | header6.createCell(4).setCellValue(applyChagneDetail.getCompanyName()); |
| | | header6.createCell(5).setCellValue(applyChagneDetail.getDuName()); |
| | | header6.createCell(6).setCellValue(""); |
| | | header6.createCell(7).setCellValue(applyChagneDetail.getWorkTypeName()); |
| | | for (int i = 0; i < 8; i++) { |
| | | configFirstCell(sxssfWorkbook,header6.getCell(i)); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(row ,row,5,6)); |
| | | } |
| | | } |
| | | |
| | | int rowIndex = row + 1; |
| | | Row header6= sheet.createRow(rowIndex); |
| | | header6.createCell(0).setCellValue("æä¿ä¼ä¸ç³æ:\n" + |
| | | "1ãå¨ç³è¯·ä¹¦ä¸å¡«åçä¸åå
容å±å®ï¼å¦åæ¬ä¼ä¸æ¿æ
ä¸åæ³å¾è´£ä»»ã\n" + |
| | | "2ãç±äºåæ´åç人产ççæ³å¾çº 纷æ¬ä¼ä¸æ¿æ¿æ
ä¸åæ³å¾è´£ä»»ã\n" + |
| | | "3ãæ¬ç³è¯·è¡¨çç¾ç« 为æ¬ä¼ä¸äº²èªç¾ç½²ï¼å¦ç±æ¤äº§ççæ³å¾çº 纷æ¬ä¼ä¸æ¿æ¿æ
ä¸åæ³å¾è´£ä»»ã\n"); |
| | | for (int i = 1; i < 8; i++) { |
| | | header6.createCell(i).setCellValue(""); |
| | | } |
| | | for (int i =0; i < 8; i++) { |
| | | if(i>0){ |
| | | header6.createCell(i).setCellValue(""); |
| | | } |
| | | configInfoCell(sxssfWorkbook,header6.getCell(i),HorizontalAlignment.LEFT); |
| | | } |
| | | header6.setHeight((short) 2000); |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex ,rowIndex,0,11)); |
| | | Row header7= sheet.createRow(rowIndex+1); |
| | | header7.setHeight((short) 3000); |
| | | header7.createCell(0).setCellValue("æä¿äººç¾ç« ï¼ \n \n \n" +"æ¥æï¼ å¹´ æ æ¥ "); |
| | | for (int i =0; i < 8; i++) { |
| | | if(i>0){ |
| | | header7.createCell(i).setCellValue(""); |
| | | } |
| | | configInfoCell(sxssfWorkbook,header7.getCell(i),HorizontalAlignment.RIGHT); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex+1 ,rowIndex+1,0,11)); |
| | | |
| | | //临æ¶ç¼å²åº |
| | | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| | | //åå»ºä¸´æ¶æä»¶ |
| | | sxssfWorkbook.write(out); |
| | | byte [] bookByteAry = out.toByteArray(); |
| | | InputStream in = new ByteArrayInputStream(bookByteAry); |
| | | String tempExcel = saveIsToFile(in); |
| | | String tempPdf =System.getProperty("java.io.tmpdir")+File.separator+UUID.randomUUID().toString()+".pdf"; |
| | | // ExcelToPdfTool.excelToPdf(in,tempPdf);//转PDF |
| | | ExcelToPdfTool.excelToPdf(tempExcel,tempPdf);//转PDF |
| | | File f = new File(tempPdf); |
| | | if(f!=null && f.isFile() && f.length()>0){ |
| | | return tempPdf; |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | // throw new BusinessException(ResponseStatus.EXPORT_EXCEL_ERROR, e); |
| | | } |
| | | return null; |
| | | } |
| | | } |
| | |
| | | public static final int ZERO = 0 ; |
| | | public static final int ONE = 1 ; |
| | | public static final int TWO = 2 ; |
| | | public static final int THREE = 3 ; |
| | | public static final int |
| | | THREE = 3 ; |
| | | public static final int SEVEN = 7 ; |
| | | public static final String ACCESS_ID="ACCESS_ID"; |
| | | public static final String BUCKETNAME = "BUCKETNAME"; |
| | |
| | | |
| | | HBD_BD_APPLY_PDF(15, "åå¹¶å-ä¿åç³è¯·è¡¨PDF ", "åå¹¶å-ä¿åç³è¯·è¡¨PDF "), |
| | | HBD_BD_SIGNED_PDF(16, "åå¹¶å-ç¾ç½²åä¿åç³è¯·è¡¨PDF", "åå¹¶å-ç¾ç½²åä¿åç³è¯·è¡¨PDF"), |
| | | COMPANY_TBD_SIGNED_PDF(17, "åå¹¶å-æä¿å-åæ·æäº¤ï¼ä¼ä¸ç¾ç½²ï¼", "åå¹¶å-ç¾ç½²åä¿åç³è¯·è¡¨PDF"), |
| | | SOLUTIONS_CONFIRMATION_LATTER(18, "å§æä¿ - æä¿æ¹æ¡ç¡®è®¤ä¹¦", "å§æä¿ - æ¹æ¡ç¡®è®¤ä¹¦"), |
| | | MEMBER_LIST_LATTER(19, "å§æä¿ - æä¿äººååå", "å§æä¿ - æ¹æ¡ç¡®è®¤ä¹¦"), |
| | | CHANGE_MEMBER_LIST_LATTER(20, "å§æä¿ - å åä¿äººååå", "å§æä¿ - æ¹æ¡ç¡®è®¤ä¹¦"), |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | COMPANY_TBD_SIGNED(17, "åå¹¶å-æä¿å-åæ·æäº¤", "åå¹¶å-æä¿å-åæ·æäº¤"), |
| | | SOLUTIONS_CONFIRMATION_LATTER(18, "æä¿æ¹æ¡ç¡®è®¤ä¹¦", "æä¿æ¹æ¡ç¡®è®¤ä¹¦"), |
| | | MEMBER_LIST_LATTER(19, "å§æä¿ - æä¿äººååå", "å§æä¿ - æä¿äººååå"), |
| | | CHANGE_MEMBER_LIST_LATTER(20, "å§æä¿ - å åä¿äººååå", "å§æä¿ - å åä¿äººååå"), |
| | | WTB_BD_DONE_PDF(21, "å§ææä¿å - åå¹¶åæç»ä¿å", "å§ææä¿å - åå¹¶åæç»ä¿å"), |
| | | COMPANY_TBD_SIGNED_PDF(22, "åå¹¶å-æä¿å-åæ·æäº¤ï¼ä¼ä¸ç¾ç½²ï¼PDF", "åå¹¶å-æä¿å-åæ·æäº¤ï¼ä¼ä¸ç¾ç½²ï¼PDF"), |
| | | WTB_CA_DONE_PDF(23, "å§æå åä¿/æ¢åä¸å¡ - åå¹¶åæç»ä¿å", "å§æå åä¿/æ¢åä¸å¡ - åå¹¶åæç»ä¿å"), |
| | | WTB_CONFIRMATION_LATTER(24, "å§æä¿ - æä¿æ¹æ¡ç¡®è®¤ä¹¦", "å§æä¿ - æä¿æ¹æ¡ç¡®è®¤ä¹¦"), |
| | | ; |
| | | // æååé |
| | | private String name; |
| | |
| | | THSQZ(5, "ç³è¯·éå"), |
| | | YGB(6, "å·²å
³é"), |
| | | DQYQZ(7, "å¾
ç¾ç½²"), |
| | | |
| | | WTBDQS(28, "å¾
ç¾ç½²"), |
| | | WTBDSH(22, "å¾
å®¡æ ¸"), |
| | | WTBDCD(23, "å¾
åºå"), |
| | | WTBYTH(24, "å·²éå"), |
| | | WTBYGB(25, "å·²å
³é"), |
| | | WTBTBZ(26, "æä¿ä¸"), |
| | | WTBBZZ(27, "ä¿éä¸"), |
| | | ; |
| | | // æååé |
| | | private String name; |
| | |
| | | CA_JIAJIAN_APPLY_SIGN(23, "å åä¿ç³è¯·ä¼ä¸ç¾ç« ","",1), |
| | | CA_CHANGUNIT_APPLY_SIGN(24, "æ¢åç³è¯·ä¼ä¸ç¾ç« ","",1), |
| | | CA_UPLOAD_AGAIN(25, "忬¡æä¿","",1), |
| | | |
| | | |
| | | WTB_FINISH_FAQRS(26, "å§æä¿ - ä¼ä¸å®æç¾ç½²æ¹æ¡ç¡®è®¤ä¹¦","",0), |
| | | WTB_FINISH_MEMBER_LIST(27, "å§æä¿ - ä¼ä¸å®æç¾ç½²äººååå","",0), |
| | | |
| | | CA_WTB_FINISH_MEMBER_LIST(28, "å§æä¿ - å åä¿ç¾ç½²äººååå","",1), |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ; |
| | | // æååé |
| | | private String name; |
| | |
| | | |
| | | |
| | | public enum UnionChangeStatus { |
| | | MERGE(0, "å¾
ç¾ç½²ç³è¯·å","",0), |
| | | UPLOAD_INSURANCE_POLICY(1, "å¾
ä¸ä¼ ä¿å","",0), |
| | | FINISH(2, "ä¿éä¸","",0), |
| | | CLOSE(3, "å
³é","",0), |
| | | MERGE(0, "å¾
ç¾ç½²ç³è¯·å",""), |
| | | UPLOAD_INSURANCE_POLICY(1, "å¾
ä¸ä¼ ä¿å",""), |
| | | FINISH(2, "ä¿éä¸",""), |
| | | CLOSE(3, "å
³é",""), |
| | | ; |
| | | // æååé |
| | | private String name; |
| | | private String info; |
| | | private int key; |
| | | private int collectStatus; |
| | | |
| | | |
| | | // æé æ¹æ³ |
| | | UnionChangeStatus(int key, String name,String info,int collectStatus) { |
| | | UnionChangeStatus(int key, String name,String info) { |
| | | this.name = name; |
| | | this.key = key; |
| | | this.info = info; |
| | | this.collectStatus = collectStatus; |
| | | } |
| | | |
| | | // æ®éæ¹æ³ |
| | |
| | | for (UnionChangeStatus c : UnionChangeStatus.values()) { |
| | | if (c.getKey() == index) { |
| | | return c.name; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | public static List<Integer> getKesByStatus(Integer collectStatus) { |
| | | List<Integer> list = new ArrayList<>(); |
| | | if(collectStatus!=null){ |
| | | for (UnionChangeStatus c : UnionChangeStatus.values()) { |
| | | if (Constants.equalsInteger(c.getCollectStatus() ,collectStatus)) { |
| | | list.add(c.getKey()); |
| | | } |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | public static Integer getCollectStatus(Integer index) { |
| | | for (UnionChangeStatus c : UnionChangeStatus.values()) { |
| | | if (Constants.equalsInteger(c.getKey() , index)) { |
| | | return c.collectStatus; |
| | | } |
| | | } |
| | | return null; |
| | |
| | | public void setInfo(String info) { |
| | | this.info = info; |
| | | } |
| | | |
| | | public int getCollectStatus() { |
| | | return collectStatus; |
| | | } |
| | | |
| | | public void setCollectStatus(int collectStatus) { |
| | | this.collectStatus = collectStatus; |
| | | } |
| | | } |
| | | |
| | | public enum InsuranceApplyStatus { |
| | |
| | | CLOSE(9, "订åå
³é","",6), |
| | | PLATFORM_CHECK_PASS(10,"平尿ä¿å®¡æ ¸éè¿","æäº¤æè§ï¼${param}",0), |
| | | COMPANY_BACK_APPLY_PASS(11, "ä¼ä¸ç³è¯·éå(平尿ä¿å®¡æ ¸éè¿)","æäº¤æè§ï¼${param}",5), |
| | | COMPANY_APPLY_SIGNATURE(12, "å§æä¿-ä¼ä¸å·²ç¾ç½²æä¿ç¡®è®¤ä¹¦","æäº¤æè§ï¼${param}",5), |
| | | COMPANY_MEMBER_LIST_SIGNATURE(13, "å§æä¿-ä¼ä¸å·²ç¾ç½²äººååå","æäº¤æè§ï¼${param}",5), |
| | | |
| | | |
| | | |
| | | WTB_UPLOAD(20, "æäº¤æä¿","",28), |
| | | WTB_COMPANY_APPLY_SIGNATURE(21, "å§æä¿-ä¼ä¸å·²ç¾ç½²æä¿ç¡®è®¤ä¹¦","æäº¤æè§ï¼${param}",28), |
| | | WTB_COMPANY_MEMBER_LIST_SIGNATURE(22, "å§æä¿-ä¼ä¸å·²ç¾ç½²äººååå","æäº¤æè§ï¼${param}",22), |
| | | WTB_BUSINESS_CHECK_PASS(23,"åæ·æä¿å®¡æ ¸éè¿","æäº¤æè§ï¼${param}",23), |
| | | WTB_RETURN(24, "å·²éå","æäº¤æè§ï¼${param}",24), |
| | | WTB_CLOSED(25, "å·²å
³é","æäº¤æè§ï¼${param}",25), |
| | | WTB_TOUBAOING(26, "æä¿ä¸","æäº¤æè§ï¼${param}",26), |
| | | WTB_DONE(27, "ä¿éä¸","æäº¤æè§ï¼${param}",27), |
| | | |
| | | ; |
| | | // æååé |
| | | private String name; |
| | |
| | | private Integer applyId; |
| | | @ApiModelProperty(value = "å åä¿ä¸»é®") |
| | | private Integer applyChangeId; |
| | | @ApiModelProperty(value = "åå¹¶å主é®") |
| | | private Integer unionApplyId; |
| | | |
| | | @ApiModelProperty(value = "ç±»åï¼0=å ä¿ï¼1=åä¿ï¼2=æ¢å ") |
| | | private List<Integer> types; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author RenKang |
| | | */ |
| | | @Data |
| | | public class SmsCheckDTO { |
| | | |
| | | @ApiModelProperty(value = "ä¸å¡ä¸»é®", example = "1") |
| | | private Integer businessId; |
| | | |
| | | @ApiModelProperty(value = "éªè¯ç ") |
| | | private String code; |
| | | |
| | | |
| | | } |
| | |
| | | package com.doumee.dao.business.dto; |
| | | |
| | | import com.doumee.dao.business.model.Multifile; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | private Date applyDate; |
| | | |
| | | @ApiModelProperty(value = "ä¿åæä»¶å°å") |
| | | private String fileUrl; |
| | | private String fileurl; |
| | | |
| | | @ApiModelProperty(value = "ä¿åæä»¶åç§°") |
| | | private String fileName; |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "å åä¿ ä¿åæä»¶æ°æ®") |
| | | private List<Multifile> applyChangeBXDList; |
| | | |
| | | } |
| | |
| | | package com.doumee.dao.business.dto; |
| | | |
| | | import com.doumee.dao.business.model.Multifile; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | |
| | | @ApiModelProperty(value = "ä¸å¡ä¸»é®") |
| | | private Integer businessId; |
| | | |
| | | @ApiModelProperty(value = "æä»¶è·¯å¾") |
| | | private String filePath; |
| | | @ApiModelProperty(value = "æä»¶è·¯å¾ ") |
| | | private String fileurl; |
| | | |
| | | @ApiModelProperty(value = "æä»¶åç§°") |
| | | private String fileName; |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "ä¼ä¸ä¿å - ä¿é©å") |
| | | private List<Multifile> multifileList; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.join; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.UnionChange; |
| | | import com.github.yulichang.base.mapper.MPJJoinMapper; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/03/12 11:34 |
| | | */ |
| | | public interface UnionChangeJoinMapper extends MPJJoinMapper<UnionChange> { |
| | | |
| | | } |
| | |
| | | @TableField(exist = false) |
| | | private Integer solutionId; |
| | | |
| | | @ApiModelProperty(value = "åå·¥ä¼ä¸åç§°") |
| | | @TableField(exist = false) |
| | | private String companyName; |
| | | |
| | | @ApiModelProperty(value = "å¹´é¾") |
| | | @TableField(exist = false) |
| | | private long age; |
| | |
| | | @ApiModelProperty(value = "æ¹æ¡ç±»å 0ç´ä¿ 1å§ææä¿") |
| | | @TableField(exist = false) |
| | | private Integer solutionType; |
| | | |
| | | @ApiModelProperty(value = "åå¹¶å主é®ï¼ä¿åï¼") |
| | | @TableField(exist = false) |
| | | private Integer unionApplyId; |
| | | |
| | | |
| | | public TaxesInvoicingVO toTaxesInvoicingVO(){ |
| | | TaxesInvoicingVO taxesInvoicingVO = new TaxesInvoicingVO(); |
| | | taxesInvoicingVO.setId(this.getId()); |
| | |
| | | @TableField(exist = false) |
| | | private String workTypeName; |
| | | |
| | | @ApiModelProperty(value = "ä¼ä¸åç§°") |
| | | @TableField(exist = false) |
| | | private String companyName; |
| | | |
| | | } |
| | |
| | | @ExcelColumn(name="åå¹¶åç¼ç ï¼å
³èunion_apply)") |
| | | private Integer unionApplyId; |
| | | |
| | | @ApiModelProperty(value = "åå¹¶å-æä¿åç¶æ 0=æªä¸ä¼ ;1=å·²ä¸ä¼ ;2=å·²ç¾ç½²", example = "1") |
| | | @ApiModelProperty(value = "åå¹¶å-æä¿åç¶æ 0=æªä¸ä¼ ;1=å·²ä¸ä¼ ;2=å·²ç¾ç½²;3=å·²ä¸ä¼ ä¿é©å", example = "1") |
| | | private Integer unionApplyTbdStatus; |
| | | |
| | | @ApiModelProperty(value = "å§æä¿-æä¿åååå· ï¼åæ·ä¸ä¼ ï¼ä¼ä¸ç¾ç½²ï¼") |
| | | @ExcelColumn(name="å§æä¿-æä¿åååå· ï¼åæ·ä¸ä¼ ï¼ä¼ä¸ç¾ç½²ï¼") |
| | | private String applyTbdNo; |
| | | |
| | | @ApiModelProperty(value = "åå·") |
| | | @ExcelColumn(name="åå·") |
| | |
| | | @ExcelColumn(name="å¨çº¿ç¾ç« ååå·") |
| | | private String signApplyNo; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¾
å®¡æ ¸ 1å¹³å°éåä¿åï¼å·²éåï¼ 2å·²ä¸ä¼ 代ç¾ç³è¯·è¡¨å¾
ä¼ä¸ç¾ç« ï¼å¾
ç¾ç½²ï¼ 3å·²ç¾ç« å¾
ä¸ä¼ ä¿é©åï¼å¾
åºåï¼ 4ä¿ååºå
·å¤±è´¥éåï¼å·²éåï¼ 5å·²ä¸ä¼ ä¿åï¼ä¿éä¸ï¼6ä¼ä¸ç³è¯·éåä¸ 7å¹³å°åæéåï¼å·²éåï¼ 8ä¼ä¸å
³é ï¼å·²å
³éï¼", example = "1") |
| | | @ApiModelProperty(value = "ç¶æ 0å¾
å®¡æ ¸ 1å¹³å°éåä¿åï¼å·²éåï¼ 2å·²ä¸ä¼ 代ç¾ç³è¯·è¡¨å¾
ä¼ä¸ç¾ç« ï¼å¾
ç¾ç½²ï¼ 3å·²ç¾ç« å¾
ä¸ä¼ ä¿é©åï¼å¾
åºåï¼ 4ä¿ååºå
·å¤±è´¥éåï¼å·²éåï¼ 5å·²ä¸ä¼ ä¿åï¼ä¿éä¸ï¼6ä¼ä¸ç³è¯·éåä¸ 7å¹³å°åæéåï¼å·²éåï¼ 8ä¼ä¸å
³é ï¼å·²å
³éï¼;" + |
| | | " ãå§ææä¿ã 0æäº¤æä¿ 12å·²ç¾ç½²æ¹æ¡ç¡®è®¤ä¹¦ 13å·²ç¾ç½²åå 10å®¡æ ¸éè¿ 5ä¿éä¸", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0å¾
å®¡æ ¸ 1å¹³å°éåä¿åï¼å·²éåï¼ 2å·²ä¸ä¼ 代ç¾ç³è¯·è¡¨å¾
ä¼ä¸ç¾ç« ï¼å¾
ç¾ç½²ï¼ 3å·²ç¾ç« å¾
ä¸ä¼ ä¿é©åï¼å¾
åºåï¼ 4ä¿ååºå
·å¤±è´¥éåï¼å·²éåï¼ 5å·²ä¸ä¼ ä¿åï¼ä¿éä¸ï¼6ä¼ä¸ç³è¯·éåä¸ 7å¹³å°åæéåï¼å·²éåï¼ 8ä¼ä¸å
³é ï¼å·²å
³éï¼") |
| | | private Integer status; |
| | | |
| | |
| | | @TableField(exist = false) |
| | | private Multifile baoxiandanFile; |
| | | |
| | | @ApiModelProperty(value = "ç³è¯·å对象") |
| | | @TableField(exist = false) |
| | | private Multifile shenqingdanFile; |
| | | @ApiModelProperty(value = "ç¾ç½²åæ¹æ¡ç¡®è®¤ä¹¦å¯¹è±¡") |
| | | @TableField(exist = false) |
| | | private Multifile fanganFile; |
| | | |
| | | @ApiModelProperty(value = "æ¥å¿è®°å½") |
| | | @TableField(exist = false) |
| | | private List<ApplyLog> applyLogList; |
| | |
| | | @TableField(exist = false) |
| | | private Date lastChangeDate; |
| | | |
| | | |
| | | @ApiModelProperty(value = "æä½å¹´é¾", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer minAge; |
| | |
| | | @ApiModelProperty(value = "æé«å¹´é¾", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer maxAge; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä¿é©è´¹ç¨(人/天ï¼", example = "1") |
| | | @TableField(exist = false) |
| | |
| | | @ApiModelProperty(value = "å§æåæ·åç§°", example = "1") |
| | | @TableField(exist = false) |
| | | private String shopName; |
| | | @ApiModelProperty(value = "æ¹æ¡ç¡®è®¤ä¹¦å¯¹è±¡", example = "1") |
| | | @TableField(exist = false) |
| | | private Multifile fanganFile; |
| | | |
| | | } |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | |
| | | @ApiModelProperty(value = "å®é
ä¿é©çææ¢æ") |
| | | @ExcelColumn(name="å®é
ä¿é©çææ¢æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date endTime; |
| | | |
| | | @ApiModelProperty(value = "å®é
ä¿é©çæèµ·æ") |
| | | @ExcelColumn(name="å®é
ä¿é©çæèµ·æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date startTime; |
| | | |
| | | @ApiModelProperty(value = "æè¿æä½æ¶é´") |
| | | @ExcelColumn(name="æè¿æä½æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date checkDate; |
| | | |
| | | @ApiModelProperty(value = "æè¿æä½å¤æ³¨") |
| | |
| | | @ExcelColumn(name="æ¹æ¡ç¼ç ï¼å
³èsolutionsï¼") |
| | | private Integer solutionId; |
| | | |
| | | @ApiModelProperty(value = "åæ·åç§°", example = "1") |
| | | @TableField(exist = false) |
| | | private String companyName; |
| | | |
| | | @ApiModelProperty(value = "æ¹æ¡åç§°", example = "1") |
| | | @TableField(exist = false) |
| | | private String solutionName; |
| | | |
| | | @ApiModelProperty(value = "æ¥è¯¢å¼å§æ¥æ", example = "1") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @TableField(exist = false) |
| | | private Date queryStartTime; |
| | | |
| | | @ApiModelProperty(value = "æ¥è¯¢ç»ææ¥æ", example = "1") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @TableField(exist = false) |
| | | private Date queryEndTime; |
| | | |
| | | @ApiModelProperty(value = "æå¡å¤©æ°") |
| | | @TableField(exist = false) |
| | | private Integer serviceDays; |
| | | } |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å åä¿æ¢ååå¹¶åä¿¡æ¯è¡¨ |
| | |
| | | @ExcelColumn(name="åå¹¶ä¿å主é®") |
| | | private Integer unionApplyId; |
| | | |
| | | @ApiModelProperty(value = "åæ·åç§°") |
| | | @TableField(exist = false) |
| | | private String shopName; |
| | | |
| | | @ApiModelProperty(value = "æ¹æ¡åç§°") |
| | | @TableField(exist = false) |
| | | private String solutionsName; |
| | | |
| | | @ApiModelProperty(value = "åå¹¶åç¼å·") |
| | | @TableField(exist = false) |
| | | private String applyCode; |
| | | |
| | | |
| | | @ApiModelProperty(value = "å®é
ä¿é©çææ¢æ") |
| | | @TableField(exist = false) |
| | | private Date endTime; |
| | | |
| | | @ApiModelProperty(value = "å®é
ä¿é©çæèµ·æ") |
| | | @TableField(exist = false) |
| | | private Date startTime; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä¼ä¸åç§° ,åå²") |
| | | @TableField(exist = false) |
| | | private String companyNames; |
| | | |
| | | @ApiModelProperty(value = "æ¥è¯¢å¼å§æ¥æ", example = "1") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @TableField(exist = false) |
| | | private Date queryStartTime; |
| | | |
| | | @ApiModelProperty(value = "æ¥è¯¢ç»ææ¥æ", example = "1") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @TableField(exist = false) |
| | | private Date queryEndTime; |
| | | |
| | | |
| | | @ApiModelProperty(value = "æç»è¡è®°å½") |
| | | @TableField(exist = false) |
| | | private List<ApplyChagneDetail> applyChagneDetailList; |
| | | |
| | | @ApiModelProperty(value = "å ä¿äººæ°") |
| | | @TableField(exist = false) |
| | | private Integer addNum; |
| | | |
| | | @ApiModelProperty(value = "åä¿äººæ°") |
| | | @TableField(exist = false) |
| | | private Integer delNum; |
| | | |
| | | @ApiModelProperty(value = "æ¢å人æ°") |
| | | @TableField(exist = false) |
| | | private Integer changeNum; |
| | | } |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.dto.ApplyChangeCyclePriceDTO; |
| | | import com.doumee.dao.business.dto.ApplyChangeOptDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.model.ApplyChange; |
| | | import com.doumee.dao.business.model.InsuranceApply; |
| | | import com.doumee.dao.business.vo.CountCyclePriceVO; |
| | |
| | | Integer back(ApplyChange param); |
| | | Integer dealBackApply(ApplyChange param); |
| | | Integer uploadPidan(ApplyChange insuranceApply); |
| | | Integer check(ApplyChange applyChange); |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | |
| | | |
| | | /** |
| | | * å§æä¿ äººåååç¾ç½² |
| | | * @param applyChangeId |
| | | * @param smsCheckDTO |
| | | * @return |
| | | */ |
| | | String getChangeMemberListOnlineSignLink(Integer applyChangeId); |
| | | String getChangeMemberListOnlineSignLink(SmsCheckDTO smsCheckDTO); |
| | | |
| | | } |
| | |
| | | import com.doumee.dao.business.dto.CountCyclePriceDTO; |
| | | import com.doumee.dao.business.dto.InsuranceApplyOptDTO; |
| | | import com.doumee.dao.business.dto.InsuranceApplyQueryDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.model.InsuranceApply; |
| | | import com.doumee.dao.business.vo.CountCyclePriceVO; |
| | | import com.jzq.common.bean.sign.NotifyDataReq; |
| | |
| | | |
| | | /** |
| | | * å§æä¿ æä¿ç¡®è®¤ä¹¦ç¾ç« ä¸å¡ |
| | | * @param applyId |
| | | * @param smsCheckDTO |
| | | * @return |
| | | */ |
| | | String getSignTBQRSLink(Integer applyId); |
| | | String getSignTBQRSLink(SmsCheckDTO smsCheckDTO); |
| | | |
| | | /** |
| | | * 人åååç¾ç« |
| | | * @param applyId |
| | | * @param smsCheckDTO |
| | | * @return |
| | | */ |
| | | String getMemberListOnlineSignLink(Integer applyId); |
| | | String getMemberListOnlineSignLink(SmsCheckDTO smsCheckDTO); |
| | | |
| | | /** |
| | | * å§æä¿ æä¿ç³è¯·ç¾ç½² |
| | | * @param smsCheckDTO |
| | | * @return |
| | | */ |
| | | String getSignWTBTBDLink(SmsCheckDTO smsCheckDTO); |
| | | } |
| | | |
| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.dto.SaveUnionApplyDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.dto.UnionApplyBXDDTO; |
| | | import com.doumee.dao.business.dto.UploadMultifileDTO; |
| | | import com.doumee.dao.business.model.UnionApply; |
| | |
| | | |
| | | /** |
| | | * åå¹¶å ä¿åç¾ç½² |
| | | * @param id |
| | | * @param smsCheckDTO |
| | | * @return |
| | | */ |
| | | String getSignLink(Integer id); |
| | | String getSignLink(SmsCheckDTO smsCheckDTO); |
| | | |
| | | /** |
| | | * ä¸ä¼ ä¿é©å |
| | |
| | | */ |
| | | void uploadBXD(UnionApplyBXDDTO unionApplyBXDDTO); |
| | | |
| | | UnionApply detail(Integer applyId); |
| | | } |
| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.dto.SaveUnionChangeDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.dto.UnionChangeBXDDTO; |
| | | import com.doumee.dao.business.model.UnionChange; |
| | | import java.util.List; |
| | |
| | | |
| | | /** |
| | | * åå¹¶åï¼å åä¿/æ¢åï¼ - æä¿ç³è¯·ç¾ç½² |
| | | * @param id |
| | | * @param smsCheckDTO |
| | | * @return |
| | | */ |
| | | String getSignLink(Integer id); |
| | | String getSignLink(SmsCheckDTO smsCheckDTO); |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | void uploadBXD(UnionChangeBXDDTO unionChangeBXDDTO); |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯¦æ
|
| | | * @param id |
| | | * @return |
| | | */ |
| | | UnionChange getDetail(Integer id); |
| | | } |
| | |
| | | MPJLambdaWrapper<ApplyChagneDetail> queryWrapper = new MPJLambdaWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.selectAll(ApplyChagneDetail.class); |
| | | queryWrapper.selectAs(Company::getName,ApplyChagneDetail::getCompanyName); |
| | | queryWrapper.select("t2.name",ApplyChagneDetail::getWorkTypeName); |
| | | queryWrapper.select("t3.name",ApplyChagneDetail::getDuName); |
| | | queryWrapper.select("t4.name",ApplyChagneDetail::getOldWorkTypeName); |
| | |
| | | queryWrapper.leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyChagneDetail::getDuId); |
| | | queryWrapper.leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getOldWorktypeId); |
| | | queryWrapper.leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyChagneDetail::getOldDuId); |
| | | queryWrapper.leftJoin(Company.class,Company::getId,Member::getCompanyId); |
| | | ApplyDetailPageDTO applyDetailPageDTO = pageWrap.getModel(); |
| | | queryWrapper.exists(!Objects.isNull(applyDetailPageDTO.getApplyId()), |
| | | " select 1 from apply_change ac where ac.isdeleted = 0 and ac.status in (1,2) and ac.apply_id = "+applyDetailPageDTO.getApplyId()+" and ac.id = t.apply_change_id "); |
| | |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dto.ApplyChangeCyclePriceDTO; |
| | | import com.doumee.dao.business.dto.ApplyChangeOptDTO; |
| | | import com.doumee.dao.business.dto.CountCyclePriceDTO; |
| | | import com.doumee.dao.business.dto.InsuranceApplyOptDTO; |
| | | import com.doumee.dao.business.dto.*; |
| | | import com.doumee.dao.business.join.*; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.business.vo.CountCyclePriceVO; |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.SmsEmailService; |
| | | import com.doumee.service.business.third.SignService; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | |
| | | @Autowired |
| | | private SolutionsMapper solutionsMapper; |
| | | |
| | | @Autowired |
| | | private SmsEmailService smsEmailService; |
| | | @Autowired |
| | | private NoticesMapper noticesMapper; |
| | | /** |
| | |
| | | .in(!Objects.isNull(model.getStatus())&&model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()),ApplyChange::getStatus, |
| | | Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey(), |
| | | Constants.ApplyChangeStatus.RETURN_APPLY_SIGNATURE.getKey()) |
| | | // .eq(!Objects.isNull(model.getCompanyId()),InsuranceApply::getCompanyId,model.getCompanyId()) |
| | | .eq(!Objects.isNull(model.getUnionApplyId()),InsuranceApply::getUnionApplyId,model.getUnionApplyId()) |
| | | // .eq(!Objects.isNull(model.getSolutionsId()),ApplyChange::getSolutionsId,model.getSolutionsId()) |
| | | .eq(!Objects.isNull(model.getSolutionType()),Solutions::getType,model.getSolutionType()) |
| | | .eq(!Objects.isNull(model.getApplyId()),ApplyChange::getApplyId,model.getApplyId()) |
| | |
| | | * 人åååç¾ç« |
| | | */ |
| | | @Override |
| | | public String getChangeMemberListOnlineSignLink(Integer applyChangeId) { |
| | | ApplyChange model = this.queryApplyChangeData(applyChangeId); |
| | | public String getChangeMemberListOnlineSignLink(SmsCheckDTO smsCheckDTO) { |
| | | if(Objects.isNull(smsCheckDTO) |
| | | || Objects.isNull(smsCheckDTO.getBusinessId()) |
| | | || StringUtils.isBlank(smsCheckDTO.getCode()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | //éªè¯ éªè¯ç |
| | | if(!debugModel){ |
| | | smsEmailService.validateCode(smsCheckDTO.getCode()); |
| | | } |
| | | ApplyChange model = this.queryApplyChangeData(smsCheckDTO.getBusinessId()); |
| | | if(Objects.isNull(model)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å åä¿ä¿¡æ¯"); |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public Integer check(ApplyChange applyChange) { |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(!user.getType().equals(Constants.TWO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éåæ·ç«¯æ æ³è¿è¡è¯¥æä½"); |
| | | } |
| | | if(applyChange.getId() == null){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | ApplyChange model = applyChangeJoinMapper.selectJoinOne(ApplyChange.class, |
| | | new MPJLambdaWrapper<ApplyChange>() |
| | | .selectAll(ApplyChange.class) |
| | | .selectAs(InsuranceApply::getSolutionId,ApplyChange::getSolutionsId) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | | .eq(ApplyChange::getId,applyChange.getId()) |
| | | .last(" limit 1") |
| | | ); |
| | | |
| | | if(model == null ||!Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | Solutions solutions = solutionsMapper.selectById(model.getSolutionsId()); |
| | | if(Objects.isNull(solutions)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢æ¹æ¡ä¿¡æ¯"); |
| | | } |
| | | if(solutions.getType().equals(Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ç´ä¿åæ®æ æ³è¿è¡è¯¥æä½"); |
| | | }else{ |
| | | if(!Constants.equalsInteger(model.getStatus(),Constants.ApplyChangeStatus.COMPANY_SIGN.getKey())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥ç³è¯·ç¶æå·²æµè½¬ï¼å½å䏿¯æè¯¥æä½~"); |
| | | } |
| | | } |
| | | |
| | | ApplyChange update = new ApplyChange(); |
| | | update.setEditDate(new Date()); |
| | | update.setEditor(user.getId()); |
| | | update.setCheckDate(update.getEditDate()); |
| | | update.setCheckInfo(applyChange.getCheckInfo()); |
| | | update.setCheckUserId(user.getId()); |
| | | update.setId(model.getId()); |
| | | if(applyChange.getDealBackApply() ==1){ |
| | | //妿æ¯ä¸éè¿ |
| | | update.setStatus(Constants.ApplyChangeStatus.PALTFORM_CHECK_PASS_NO.getKey()); |
| | | }else{ |
| | | update.setStatus(Constants.ApplyChangeStatus.PALTFORM_CHECK_PASS.getKey()); |
| | | } |
| | | applyChangeJoinMapper.updateById(update); |
| | | |
| | | return 1; |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | queryWrapper.selectAs(Member::getIdcardNo,ApplyDetail::getIdcardNo); |
| | | queryWrapper.selectAs(Member::getName,ApplyDetail::getMemberName); |
| | | queryWrapper.selectAs(Solutions::getName,ApplyDetail::getSolutionName); |
| | | queryWrapper.selectAs(Company::getName,ApplyDetail::getCompanyName); |
| | | queryWrapper.selectAs(InsuranceApply::getStatus,ApplyDetail::getSolutionName); |
| | | queryWrapper.leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyDetail::getDuId); |
| | | queryWrapper.leftJoin(Worktype.class,Worktype::getId,ApplyDetail::getWorktypeId); |
| | | queryWrapper.leftJoin(Member.class,Member::getId,ApplyDetail::getMemberId); |
| | | queryWrapper.leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyDetail::getApplyId); |
| | | queryWrapper.leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId); |
| | | queryWrapper.leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId); |
| | | |
| | | ApplyDetailPageDTO applyDetailPageDTO = pageWrap.getModel(); |
| | | |
| | |
| | | |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getDuId()),ApplyDetail::getDuId,applyDetailPageDTO.getDuId()); |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getWorkTypeId()),ApplyDetail::getWorktypeId,applyDetailPageDTO.getWorkTypeId()); |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getUnionApplyId()),ApplyDetail::getUnionApplyId,applyDetailPageDTO.getUnionApplyId()); |
| | | queryWrapper.like(StringUtils.isNotBlank(applyDetailPageDTO.getMemberName()),Member::getName,applyDetailPageDTO.getMemberName()); |
| | | queryWrapper.ge(StringUtils.isNotBlank(applyDetailPageDTO.getStartTimeS()),ApplyDetail::getStartTime,applyDetailPageDTO.getStartTimeS()+" 00:00:00.0"); |
| | | queryWrapper.le(StringUtils.isNotBlank(applyDetailPageDTO.getStartTimeE()),ApplyDetail::getStartTime,applyDetailPageDTO.getStartTimeE()+" 23:59:59.0"); |
| | |
| | | newVersion = dispatchUnitMapper.selectOne(new QueryWrapper<DispatchUnit>().lambda() |
| | | .eq(DispatchUnit::getIsdeleted,Constants.ZERO) |
| | | .eq(DispatchUnit::getDataType,Constants.TWO) |
| | | .eq(DispatchUnit::getBaseId,model.getId()).last(" limit 1")); |
| | | .eq(DispatchUnit::getBaseId,model.getId()) |
| | | .last(" limit 1")); |
| | | } |
| | | if(Objects.isNull(newVersion)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°æ´¾é£å使æ°çæ¬"); |
| | |
| | | import com.doumee.dao.business.dto.CountCyclePriceDTO; |
| | | import com.doumee.dao.business.dto.InsuranceApplyOptDTO; |
| | | import com.doumee.dao.business.dto.InsuranceApplyQueryDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.join.*; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.business.vo.CountCyclePriceVO; |
| | |
| | | InsuranceApply update = new InsuranceApply(); |
| | | update.setEditDate(new Date()); |
| | | update.setEditor(model.getCreator()); |
| | | update.setStatus(Constants.InsuranceApplyStatus.COMPANY_APPLY_SIGNATURE.getKey()); |
| | | update.setStatus(Constants.InsuranceApplyStatus.WTB_COMPANY_APPLY_SIGNATURE.getKey()); |
| | | update.setCheckDate(update.getEditDate()); |
| | | update.setCheckInfo("ä¼ä¸å®æç¾ç½²æ¹æ¡ç¡®è®¤ä¹¦"); |
| | | update.setCheckUserId(model.getCreator()); |
| | |
| | | f.setCreator(model.getCreator()); |
| | | f.setObjId(update.getId()); |
| | | f.setCreateDate(update.getEditDate()); |
| | | f.setObjType(Constants.MultiFile.SOLUTIONS_CONFIRMATION_LATTER.getKey()); |
| | | f.setObjType(Constants.MultiFile.WTB_CONFIRMATION_LATTER.getKey()); |
| | | f.setType(Constants.TWO); |
| | | f.setFileurl(fileurl); |
| | | f.setFileurlFull(fullUrl); |
| | | f.setInfo("ä¼ä¸å®æç¾ç½²æ¹æ¡ç¡®è®¤ä¹¦"); |
| | | f.setName("æ¹æ¡ç¡®è®¤ä¹¦.pdf"); |
| | | multifileMapper.insert(f); |
| | | |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.WTB_FINISH_FAQRS; |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(), null |
| | | ,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | | return f; |
| | | } |
| | | |
| | | /** |
| | | * å§æä¿ ä¼ä¸ç¾ç½²æä¿ç³è¯·ä¹¦ |
| | | * @param model |
| | | * @param fileurl |
| | | * @param fullUrl |
| | | * @return |
| | | */ |
| | | public Multifile uploadTBSQSSignedFileDo(InsuranceApply model,String fileurl,String fullUrl) { |
| | | InsuranceApply update = new InsuranceApply(); |
| | | update.setEditDate(new Date()); |
| | | update.setEditor(model.getCreator()); |
| | | update.setUnionApplyTbdStatus(Constants.TWO); |
| | | update.setCheckDate(update.getEditDate()); |
| | | update.setCheckInfo("å§æä¿ä¼ä¸å®æç¾ç½²æä¿ç³è¯·ä¹¦"); |
| | | update.setCheckUserId(model.getCreator()); |
| | | update.setId(model.getId()); |
| | | insuranceApplyMapper.updateById(update); |
| | | |
| | | Multifile f = new Multifile(); |
| | | f.setIsdeleted(Constants.ZERO); |
| | | f.setCreator(model.getCreator()); |
| | | f.setObjId(update.getId()); |
| | | f.setCreateDate(update.getEditDate()); |
| | | f.setObjType(Constants.MultiFile.COMPANY_TBD_SIGNED_PDF.getKey()); |
| | | f.setType(Constants.TWO); |
| | | f.setFileurl(fileurl); |
| | | f.setFileurlFull(fullUrl); |
| | | f.setInfo("å§æä¿ä¼ä¸å®æç¾ç½²æä¿ç³è¯·ä¹¦"); |
| | | f.setName("æä¿ç³è¯·ä¹¦.pdf"); |
| | | multifileMapper.insert(f); |
| | | |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.SIGNATURE; |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(), null |
| | | ,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | | return f; |
| | | } |
| | | |
| | |
| | | InsuranceApply update = new InsuranceApply(); |
| | | update.setEditDate(new Date()); |
| | | update.setEditor(model.getCreator()); |
| | | update.setStatus(Constants.InsuranceApplyStatus.COMPANY_MEMBER_LIST_SIGNATURE.getKey()); |
| | | update.setStatus(Constants.InsuranceApplyStatus.WTB_COMPANY_MEMBER_LIST_SIGNATURE.getKey()); |
| | | update.setCheckDate(update.getEditDate()); |
| | | update.setCheckInfo("ä¼ä¸å®æç¾ç½²äººååå"); |
| | | update.setCheckUserId(model.getCreator()); |
| | |
| | | f.setInfo("ä¼ä¸å®æç¾ç½²äººååå"); |
| | | f.setName("人ååå.pdf"); |
| | | multifileMapper.insert(f); |
| | | |
| | | |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.WTB_FINISH_MEMBER_LIST; |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(), null |
| | | ,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | | return f; |
| | | } |
| | | |
| | |
| | | f.setInfo("ä¼ä¸ç³è¯·è¡¨ç¾ç½²æä»¶"); |
| | | f.setName("ç¾ç« ç³è¯·è¡¨.pdf"); |
| | | multifileMapper.insert(f); |
| | | |
| | | Constants.ApplyLogType applyLogType =Constants.equalsInteger(Constants.ZERO,model.getType())? Constants.ApplyLogType.CA_JIAJIAN_APPLY_SIGN: Constants.ApplyLogType.CA_CHANGUNIT_APPLY_SIGN; |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(), null,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | |
| | | f.setInfo("ä¼ä¸å®æç¾ç½²äººååå"); |
| | | f.setName("ç¾ç« 人ååå.pdf"); |
| | | multifileMapper.insert(f); |
| | | |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.CA_WTB_FINISH_MEMBER_LIST; |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(), null,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | | |
| | | return f; |
| | | } |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | continue; |
| | | } |
| | | uploadSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | //å§æä¿ ä¼ä¸ç¾ç½²æä¿ç¡®è®¤ä¹¦ |
| | |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.UPLOAD.getKey()) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WTB_UPLOAD.getKey()) |
| | | .eq(Solutions::getType,Constants.ONE) |
| | | .isNotNull(InsuranceApply::getSignQrsNo)); |
| | | if(applyList !=null && applyList.size()>0 ){ |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | continue; |
| | | } |
| | | uploadFAQRSSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | |
| | |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.COMPANY_APPLY_SIGNATURE.getKey()) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WTB_COMPANY_APPLY_SIGNATURE.getKey()) |
| | | .eq(Solutions::getType,Constants.ONE) |
| | | .isNotNull(InsuranceApply::getSignMemberListNo)); |
| | | if(applyList !=null && applyList.size()>0 ){ |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | continue; |
| | | } |
| | | uploadApplyMemberListSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | |
| | | //å§æä¿ä¼ä¸ç¾ç½²æä¿ç³è¯·å |
| | | applyList = insuranceApplyJoinMapper.selectJoinList(InsuranceApply.class, |
| | | new MPJLambdaWrapper<InsuranceApply>() |
| | | .selectAll(InsuranceApply.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(InsuranceApply::getUnionApplyTbdStatus,Constants.ONE) |
| | | .eq(Solutions::getType,Constants.ONE) |
| | | .isNotNull(InsuranceApply::getApplyTbdNo)); |
| | | |
| | | if(applyList !=null && applyList.size()>0 ){ |
| | | for(InsuranceApply model : applyList){ |
| | | String status = signService.linkFileStatus(model.getApplyTbdNo()); |
| | | if(!StringUtils.equals(status,"3")){ |
| | | continue; |
| | | } |
| | | String link = signService.linkFile(model.getApplyTbdNo()); |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | continue; |
| | | } |
| | | uploadTBSQSSignedFileDo(model,fileUrl,path+fileUrl); |
| | | // return; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | List<ApplyChange> chagneList = applyChangeMapper.selectJoinList(ApplyChange.class, |
| | | new MPJLambdaWrapper<ApplyChange>() |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | continue; |
| | | } |
| | | uploadChangeSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | continue; |
| | | } |
| | | uploadChangeMemberListSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | continue; |
| | | } |
| | | uploadUnionApplySignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | @Override |
| | |
| | | .eq(Solutions::getType,Constants.ONE) |
| | | .eq(InsuranceApply::getSignQrsNo,data.getApplyNo()) |
| | | .last("limit 1" )); |
| | | if(modelTBQRS != null && Constants.equalsInteger(modelTBQRS.getStatus(),Constants.InsuranceApplyStatus.UPLOAD.getKey())){ |
| | | if(modelTBQRS != null && Constants.equalsInteger(modelTBQRS.getStatus(),Constants.InsuranceApplyStatus.WTB_UPLOAD.getKey())){ |
| | | //宿ç¾ç½²å·²å®ææä½ |
| | | String link = signService.linkFile(data.getApplyNo()); |
| | | String fileUrl = uploadSignFile(link); |
| | |
| | | uploadFAQRSSignedFileDo(modelTBQRS,fileUrl,path+fileUrl); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | //å§æä¿ ä¼ä¸ç¾ç½²äººååå |
| | | InsuranceApply modelMemberList = insuranceApplyJoinMapper.selectJoinOne(InsuranceApply.class, |
| | | new MPJLambdaWrapper<InsuranceApply>() |
| | |
| | | .eq(Solutions::getType,Constants.ONE) |
| | | .eq(InsuranceApply::getSignMemberListNo,data.getApplyNo()) |
| | | .last("limit 1" )); |
| | | if(modelMemberList != null && Constants.equalsInteger(modelMemberList.getStatus(),Constants.InsuranceApplyStatus.COMPANY_APPLY_SIGNATURE.getKey())){ |
| | | if(modelMemberList != null && Constants.equalsInteger(modelMemberList.getStatus(),Constants.InsuranceApplyStatus.WTB_COMPANY_APPLY_SIGNATURE.getKey())){ |
| | | //宿ç¾ç½²å·²å®ææä½ |
| | | String link = signService.linkFile(data.getApplyNo()); |
| | | String fileUrl = uploadSignFile(link); |
| | |
| | | return; |
| | | } |
| | | uploadApplyMemberListSignedFileDo(modelMemberList,fileUrl,path+fileUrl); |
| | | return; |
| | | } |
| | | |
| | | |
| | | //å§æä¿ æä¿ç³è¯·ä¹¦ç¾ç½² |
| | | InsuranceApply modelTBQSQ = insuranceApplyJoinMapper.selectJoinOne(InsuranceApply.class, |
| | | new MPJLambdaWrapper<InsuranceApply>() |
| | | .selectAll(InsuranceApply.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(Solutions::getType,Constants.ONE) |
| | | .eq(InsuranceApply::getApplyTbdNo,data.getApplyNo()) |
| | | .last("limit 1" )); |
| | | if(modelTBQRS != null && Constants.equalsInteger(modelTBQSQ.getUnionApplyTbdStatus(),Constants.ONE)){ |
| | | //宿ç¾ç½²å·²å®ææä½ |
| | | String link = signService.linkFile(data.getApplyNo()); |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | } |
| | | uploadTBSQSSignedFileDo(modelTBQSQ,fileUrl,path+fileUrl); |
| | | return; |
| | | } |
| | | |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public Integer check(InsuranceApply insuranceApply) { |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(insuranceApply.getId() == null){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | |
| | | if(model == null ||!Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(!Constants.equalsInteger(model.getStatus(),Constants.InsuranceApplyStatus.UPLOAD.getKey())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥ç³è¯·ç¶æå·²æµè½¬ï¼å½å䏿¯æè¯¥æä½~"); |
| | | } |
| | | |
| | | Solutions solutions = solutionsMapper.selectById(model.getSolutionId()); |
| | | if(Objects.isNull(solutions)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢æ¹æ¡ä¿¡æ¯"); |
| | | } |
| | | if(solutions.getType().equals(Constants.ZERO)){ |
| | | if(!Constants.equalsInteger(model.getStatus(),Constants.InsuranceApplyStatus.UPLOAD.getKey())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥ç³è¯·ç¶æå·²æµè½¬ï¼å½å䏿¯æè¯¥æä½~"); |
| | | } |
| | | }else{ |
| | | if(!user.getType().equals(Constants.TWO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éåæ·ç«¯æ æ³è¿è¡è¯¥æä½"); |
| | | } |
| | | if(!Constants.equalsInteger(model.getStatus(),Constants.InsuranceApplyStatus.WTB_RETURN.getKey())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥ç³è¯·ç¶æå·²æµè½¬ï¼å½å䏿¯æè¯¥æä½~"); |
| | | } |
| | | } |
| | | |
| | | Constants.ApplyLogType applyLogType = null; |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | InsuranceApply update = new InsuranceApply(); |
| | | update.setEditDate(new Date()); |
| | | update.setEditor(user.getId()); |
| | | update.setCheckDate(update.getEditDate()); |
| | | update.setCheckInfo(insuranceApply.getCheckInfo()); |
| | | update.setCheckUserId(user.getId()); |
| | | update.setId(model.getId()); |
| | | Constants.NoticeType noticeType = Constants.NoticeType.ONE; |
| | | update.setId(model.getId()); |
| | | if(insuranceApply.getDealBackApply() ==1){ |
| | | //妿æ¯ä¸éè¿ |
| | | applyLogType = Constants.ApplyLogType.PLATFORM_RETURN ; |
| | | update.setStatus(Constants.InsuranceApplyStatus.PLATFORM_RETURN.getKey()); |
| | | |
| | | noticeType = Constants.NoticeType.FOUR; |
| | | }else{ |
| | | applyLogType = Constants.ApplyLogType.PLATFORM_CHECK_PASS; |
| | | update.setStatus(Constants.InsuranceApplyStatus.PLATFORM_CHECK_PASS.getKey()); |
| | |
| | | //å é¤å
¶ä»å¾
å |
| | | noticesMapper.delete(new QueryWrapper<Notices>().lambda().eq(Notices::getObjType,noticeObjectType.getKey()) |
| | | .ne(Notices::getType,Constants.NoticeType.SIX.getStatus()) |
| | | .eq(Notices::getObjId,model.getId())); |
| | | // Notices notices = new Notices(noticeObjectType,Constants.ONE,model.getId(),solutions.getName(),model.getCompanyId(),noticeType); |
| | | // noticesMapper.insert(notices); |
| | | |
| | | .eq(Notices::getObjId,model.getId())); |
| | | String info =applyLogType.getInfo(); |
| | | if(StringUtils.isNotBlank(update.getCheckInfo())){ |
| | | info = info.replace("${param}", update.getCheckInfo()); |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_ERRO.getCode(),"å工信æ¯åå¨éå¤ä¿¡æ¯"); |
| | | } |
| | | Constants.InsuranceApplyStatus insuranceApplyStatus = Constants.InsuranceApplyStatus.UPLOAD; |
| | | if(solutions.getType().equals(Constants.ONE)){ |
| | | insuranceApplyStatus = Constants.InsuranceApplyStatus.WTB_UPLOAD; |
| | | } |
| | | insuranceApply.setCreateDate(new Date()); |
| | | insuranceApply.setCreator(loginUserInfo.getId()); |
| | | insuranceApply.setEditor(loginUserInfo.getId()); |
| | |
| | | QueryWrapper<InsuranceApply> wrapper = new QueryWrapper<>(insuranceApply); |
| | | return insuranceApplyMapper.selectList(wrapper); |
| | | } |
| | | |
| | | public List<Integer> getCollectStatus(Integer collectStatus){ |
| | | if(collectStatus ==null){ |
| | | return new ArrayList<>(); |
| | | } |
| | | List<Integer> statusList = Constants.InsuranceApplyStatus.getKesByStatus(collectStatus); |
| | | if(collectStatus.equals(Constants.ApplyCollectStatus.DCD)){ |
| | | statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBDCD.getKey())); |
| | | }else if(collectStatus.equals(Constants.ApplyCollectStatus.DSP)){ |
| | | statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBDSH.getKey())); |
| | | }else if(collectStatus.equals(Constants.ApplyCollectStatus.BZZ)){ |
| | | statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBBZZ.getKey())); |
| | | }else if(collectStatus.equals(Constants.ApplyCollectStatus.YTH)){ |
| | | statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBYTH.getKey())); |
| | | }else if(collectStatus.equals(Constants.ApplyCollectStatus.YGB)){ |
| | | statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBYGB.getKey())); |
| | | }else if(collectStatus.equals(Constants.ApplyCollectStatus.DQYQZ)){ |
| | | statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBDQS.getKey())); |
| | | } |
| | | |
| | | return statusList; |
| | | } |
| | | |
| | | @Override |
| | | public PageData<InsuranceApply> findPage(PageWrap<InsuranceApplyQueryDTO> pageWrap) { |
| | | IPage<InsuranceApply> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | MPJLambdaWrapper<InsuranceApply> queryWrapper = new MPJLambdaWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | List<Integer> statusList = Constants.InsuranceApplyStatus.getKesByStatus(pageWrap.getModel().getStatusCollect()); |
| | | |
| | | List<Integer> statusList = this.getCollectStatus(pageWrap.getModel().getStatusCollect()); |
| | | |
| | | queryWrapper.selectAll(InsuranceApply.class); |
| | | queryWrapper.selectAs(Company::getName,InsuranceApply::getCompanyName); |
| | | queryWrapper.selectAs(Solutions::getName,InsuranceApply::getSolutionsName); |
| | |
| | | |
| | | private void initImgData(InsuranceApply model) { |
| | | List<Multifile> multifiles = multifileMapper.selectList(new QueryWrapper<Multifile>().lambda() |
| | | .eq(Multifile::getObjId,Constants.equalsInteger(model.getSolutionType(),Constants.ZERO)? model.getId():model.getUnionApplyId()) |
| | | .eq(Multifile::getObjId, model.getId()) |
| | | .in(Multifile::getObjType,Arrays.asList(new Integer[]{Constants.MultiFile.BD_APPLY_PDF.getKey() |
| | | ,Constants.MultiFile.BD_SIGNED_PDF.getKey() |
| | | ,Constants.MultiFile.WTB_CONFIRMATION_LATTER.getKey() |
| | | ,Constants.MultiFile.MEMBER_LIST_LATTER.getKey() |
| | | ,Constants.MultiFile.BD_DONE_PDF.getKey()})) |
| | | .eq(Multifile::getIsdeleted,Constants.ZERO)); |
| | | .eq(Multifile::getIsdeleted,Constants.ZERO) |
| | | .orderByAsc(Multifile::getId)); |
| | | if(multifiles!=null){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode() |
| | | +systemDictDataBiz.queryByCode(Constants.OSS,Constants.APPLY_FILE).getCode(); |
| | |
| | | }else if(Constants.equalsInteger(f.getObjType(),Constants.MultiFile.BD_DONE_PDF.getKey())){ |
| | | //æçµä¿é©å |
| | | model.setBaoxiandanFile(f); |
| | | }else if(Constants.equalsInteger(f.getObjType(),Constants.MultiFile.MEMBER_LIST_LATTER.getKey())){ |
| | | //ç³è¯·å |
| | | model.setShenqingdanFile(f); |
| | | }else if(Constants.equalsInteger(f.getObjType(),Constants.MultiFile.WTB_CONFIRMATION_LATTER.getKey())){ |
| | | //ç¾ç½²å确认书 |
| | | model.setFanganFile(f); |
| | | } |
| | | |
| | | // if(model.getStatus().equals(Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey())){ |
| | |
| | | |
| | | /** |
| | | * å§æå® æä¿ç¡®è®¤ä¹¦ |
| | | * @param id |
| | | * @param smsCheckDTO |
| | | * @return |
| | | */ |
| | | @Override |
| | | public String getSignTBQRSLink(Integer id) { |
| | | if(id == null ){ |
| | | public String getSignTBQRSLink(SmsCheckDTO smsCheckDTO) { |
| | | if(Objects.isNull(smsCheckDTO) |
| | | || Objects.isNull(smsCheckDTO.getBusinessId()) |
| | | || StringUtils.isBlank(smsCheckDTO.getCode()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | if(!debugModel){ |
| | | smsEmailService.validateCode(smsCheckDTO.getCode()); |
| | | } |
| | | MPJLambdaWrapper wrapper= new MPJLambdaWrapper<InsuranceApply>() |
| | | .selectAll(InsuranceApply.class) |
| | | .selectAs(Solutions::getSignKeyword,InsuranceApply::getSignKeyword) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .eq(InsuranceApply::getId,id) |
| | | .eq(InsuranceApply::getId,smsCheckDTO.getBusinessId()) |
| | | .last("limit 1"); |
| | | |
| | | InsuranceApply model = insuranceApplyJoinMapper.selectJoinOne(InsuranceApply.class,wrapper); |
| | | if(model == null ||!Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | |
| | | if(Objects.isNull(solutions)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢æ¹æ¡ä¿¡æ¯"); |
| | | } |
| | | if(solutions.getType().equals(Constants.ZERO)){ |
| | | if(Constants.equalsInteger(solutions.getType(),(Constants.ZERO))){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼éå§æä¿æ¹æ¡ä¿å!"); |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | Constants.ApplyLogType applyLogType = null; |
| | | String info = ""; |
| | | //妿æ¯é©³å,åªè½å¯é©³åå·²ç¾ç« ç¶æä¸çéåç³è¯·ç¶æè¿è¡æä½ |
| | | if(!Constants.equalsInteger(model.getStatus(),Constants.InsuranceApplyStatus.UPLOAD.getKey())){ |
| | | if(!Constants.equalsInteger(model.getStatus(),Constants.InsuranceApplyStatus.WTB_UPLOAD.getKey())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥ç³è¯·ç¶æå·²æµè½¬ï¼å½å䏿¯æè¯¥æä½~"); |
| | | } |
| | | Company company = user.getCompany(); |
| | |
| | | return link; |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public InsuranceApply queryApplyDetail(Integer applyId){ |
| | | InsuranceApply model = findDetail(applyId); |
| | |
| | | * 人åååç¾ç« |
| | | */ |
| | | @Override |
| | | public String getMemberListOnlineSignLink(Integer applyId) { |
| | | InsuranceApply model = this.queryApplyDetail(applyId); |
| | | public String getMemberListOnlineSignLink(SmsCheckDTO smsCheckDTO) { |
| | | if(Objects.isNull(smsCheckDTO) |
| | | || Objects.isNull(smsCheckDTO.getBusinessId()) |
| | | || StringUtils.isBlank(smsCheckDTO.getCode()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | //éªè¯ éªè¯ç |
| | | if(!debugModel){ |
| | | smsEmailService.validateCode(smsCheckDTO.getCode()); |
| | | } |
| | | InsuranceApply model = this.queryApplyDetail(smsCheckDTO.getBusinessId()); |
| | | if(Objects.isNull(model)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢ä¿åä¿¡æ¯"); |
| | | } |
| | | if(Objects.isNull(model) ||! Constants.equalsInteger(Constants.ZERO,model.getIsdeleted())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(!Constants.equalsInteger(Constants.ZERO,model.getStatus())){ |
| | | if(!Constants.equalsInteger(Constants.InsuranceApplyStatus.WTB_COMPANY_APPLY_SIGNATURE.getKey(),model.getStatus())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"对ä¸èµ·ï¼è¯¥ç³è¯·ç¶æå·²æµè½¬ï¼å½å䏿¯æç¾ç« æä½ï¼"); |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å§æä¿ æä¿ç³è¯·ç¾ç½² |
| | | * @param smsCheckDTO |
| | | * @return |
| | | */ |
| | | @Override |
| | | public String getSignWTBTBDLink(SmsCheckDTO smsCheckDTO) { |
| | | if(Objects.isNull(smsCheckDTO) |
| | | || Objects.isNull(smsCheckDTO.getBusinessId()) |
| | | || StringUtils.isBlank(smsCheckDTO.getCode()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | //éªè¯ éªè¯ç |
| | | if(!debugModel){ |
| | | smsEmailService.validateCode(smsCheckDTO.getCode()); |
| | | } |
| | | MPJLambdaWrapper wrapper= new MPJLambdaWrapper<InsuranceApply>() |
| | | .selectAll(InsuranceApply.class) |
| | | .selectAs(Solutions::getSignKeyword,InsuranceApply::getSignKeyword) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .eq(InsuranceApply::getId,smsCheckDTO.getBusinessId()) |
| | | .last("limit 1"); |
| | | |
| | | InsuranceApply model = insuranceApplyJoinMapper.selectJoinOne(InsuranceApply.class,wrapper); |
| | | if(model == null ||!Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | Solutions solutions = solutionsMapper.selectById(model.getSolutionId()); |
| | | if(Objects.isNull(solutions)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢æ¹æ¡ä¿¡æ¯"); |
| | | } |
| | | if(solutions.getType().equals(Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼éå§æä¿æ¹æ¡ä¿å!"); |
| | | } |
| | | if(!model.getUnionApplyTbdStatus().equals(Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼åæ·æªä¸ä¼ æå·²ç¾ç½²"); |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | Constants.ApplyLogType applyLogType = null; |
| | | String info = ""; |
| | | //妿æ¯é©³å,åªè½å¯é©³åå·²ç¾ç« ç¶æä¸çéåç³è¯·ç¶æè¿è¡æä½ |
| | | if(!Constants.equalsInteger(model.getStatus(),Constants.InsuranceApplyStatus.WTB_UPLOAD.getKey())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥ç³è¯·ç¶æå·²æµè½¬ï¼å½å䏿¯æè¯¥æä½~"); |
| | | } |
| | | Company company = user.getCompany(); |
| | | if(debugModel){ |
| | | company = companyMapper.selectById(model.getCompanyId()); |
| | | } |
| | | if(company== null || StringUtils.isBlank( company.getEmail()) || !Constants.equalsInteger(company.getSignStatus(),Constants.THREE)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼ä¼ä¸å°æªå
·å¤å¨çº¿ç¾ç« æ¡ä»¶ï¼è¯·è系平å°ç®¡çå确认~"); |
| | | } |
| | | Multifile f = multifileMapper.selectOne(new QueryWrapper<Multifile>().lambda() |
| | | .eq(Multifile::getObjId,model.getId()) |
| | | .eq(Multifile::getObjType,Constants.MultiFile.COMPANY_TBD_SIGNED.getKey()) |
| | | .eq(Multifile::getIsdeleted,Constants.ZERO).last("limit 1")); |
| | | if(f == null || StringUtils.isBlank(f.getFileurl())){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼è·å确认书æä»¶å¤±è´¥ï¼è¯·èç³»åæ·ç¡®è®¤æä¿ç³è¯·ä¹¦æ¯å¦æ£ç¡®ï¼"); |
| | | } |
| | | String url = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode()+systemDictDataBiz.queryByCode(Constants.OSS,Constants.APPLY_FILE).getCode()+f.getFileurl(); |
| | | String notifyUrl = systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SIGN_DONE_NOTIFY_URL).getCode(); |
| | | notifyUrl = notifyUrl.replace("${type}","0").replace("${id}",model.getId().toString()); |
| | | String applyNo = signService.applySign(company.getName(),url,company.getName(),company.getCode(),company.getEmail(),model.getSignKeyword(),company.getSignId(),notifyUrl); |
| | | if(StringUtils.isBlank(applyNo) ){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼è·åå¨çº¿ç¾ç« å°å失败ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | String link = signService.signLink(applyNo,company.getName(),company.getCode()); |
| | | if(StringUtils.isBlank(link) ){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼è·åå¨çº¿ç¾ç« å°å失败ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | InsuranceApply update= new InsuranceApply(); |
| | | update.setId(model.getId()); |
| | | update.setEditor(user.getId()); |
| | | update.setEditDate(new Date()); |
| | | update.setApplyTbdNo(applyNo); |
| | | insuranceApplyMapper.updateById(update); |
| | | return link; |
| | | } |
| | | |
| | | } |
| | |
| | | private EmayService emayService; |
| | | @Autowired |
| | | private EmailService emailService; |
| | | @Value("${debug_model}") |
| | | private boolean debugModel; |
| | | |
| | | public static void isCaptcheValide(SmsEmailMapper smsEmailMapper, String phone, String captche) { |
| | | SmsEmail model = smsEmailMapper.selectOne(new QueryWrapper<SmsEmail>().lambda() |
| | |
| | | if(StringUtils.isBlank(code)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | if(debugModel){ |
| | | return; |
| | | } |
| | | LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(!loginUserInfo.getType().equals(Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ç¨æ·ç±»å«é误"); |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.UUID; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * ä¿é©æ¹æ¡ä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | @Service |
| | | public class SolutionsServiceImpl implements SolutionsService { |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | @Autowired |
| | | private MultifileMapper multifileMapper; |
| | | @Autowired |
| | | private SolutionsMapper solutionsMapper; |
| | | @Autowired |
| | |
| | | solutionsMapper.insert(newModel); |
| | | |
| | | dealWorkType(solutions,newModel,solutions.getWorktypeIdList(),true); |
| | | if(Constants.equalsObject(solutions.getType(),Constants.ONE) ){ |
| | | if (solutions.getFanganFile()==null || StringUtils.isBlank(solutions.getFanganFile().getFileurl())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"请ä¸ä¼ æ¹æ¡ç¡®è®¤ä¹¦ï¼"); |
| | | } |
| | | |
| | | Multifile file = solutions.getFanganFile(); |
| | | file.setIsdeleted(Constants.ZERO); |
| | | file.setCreateDate(new Date()); |
| | | file.setCreator(user.getId()); |
| | | file.setObjId(solutions.getId()); |
| | | file.setObjType(Constants.MultiFile.SOLUTIONS_CONFIRMATION_LATTER.getKey()); |
| | | file.setType(Constants.formatIntegerNum(file.getType())); |
| | | multifileMapper.insert(file); |
| | | file.setObjId(newModel.getId()); |
| | | multifileMapper.insert(file); |
| | | } |
| | | return solutions.getId(); |
| | | } |
| | | |
| | |
| | | .lambda() |
| | | .eq(SolutionWorktype::getSolutionId,solutions.getId()) |
| | | ); |
| | | |
| | | if(Constants.equalsObject(solutions.getType(),Constants.ONE) ){ |
| | | if (solutions.getFanganFile()!=null && StringUtils.isNotBlank(solutions.getFanganFile().getFileurl())){ |
| | | multifileMapper.update(null,new UpdateWrapper<Multifile>().lambda() |
| | | .set(Multifile::getIsdeleted,Constants.ONE) |
| | | .set(Multifile::getEditDate,solutions.getEditDate()) |
| | | .set(Multifile::getEditor,solutions.getEditor()) |
| | | .eq(Multifile::getObjId,solutions.getId()) |
| | | .eq(Multifile::getIsdeleted,Constants.ZERO) |
| | | .eq(Multifile::getObjType,Constants.MultiFile.SOLUTIONS_CONFIRMATION_LATTER.getKey())); |
| | | Multifile file = solutions.getFanganFile(); |
| | | file.setIsdeleted(Constants.ZERO); |
| | | file.setCreateDate(solutions.getEditDate()); |
| | | file.setCreator(solutions.getEditor()); |
| | | file.setObjId(solutions.getId()); |
| | | file.setObjType(Constants.MultiFile.SOLUTIONS_CONFIRMATION_LATTER.getKey()); |
| | | file.setType(Constants.formatIntegerNum(file.getType())); |
| | | multifileMapper.insert(file); |
| | | file.setObjId(newModel.getId()); |
| | | multifileMapper.insert(file); |
| | | } |
| | | } |
| | | |
| | | solutionsMapper.update(null,new UpdateWrapper<Solutions>() |
| | | .lambda() |
| | |
| | | wrapper.orderByAsc(SolutionWorktype::getSortnum); |
| | | List<SolutionWorktype> worktypeList = solutionWorktypeJoinMapper.selectJoinList(SolutionWorktype.class,wrapper); |
| | | model.setWorktypeList(worktypeList); |
| | | Multifile f = multifileMapper.selectOne(new QueryWrapper<Multifile>().lambda() |
| | | .eq(Multifile::getObjId,model.getId()) |
| | | .eq(Multifile::getObjType,Constants.MultiFile.SOLUTIONS_CONFIRMATION_LATTER.getKey()) |
| | | .eq(Multifile::getIsdeleted,Constants.ZERO) |
| | | .last("limit 1")); |
| | | if(f!=null && StringUtils.isNotBlank(f.getFileurl())){ |
| | | String url = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode()+systemDictDataBiz.queryByCode(Constants.OSS,Constants.APPLY_FILE).getCode()+f.getFileurl(); |
| | | f.setFileurlFull(url); |
| | | model.setFanganFile(f);//æ¹æ¡ç¡®è®¤ä¹¦ |
| | | } |
| | | return model; |
| | | } |
| | | |
| | |
| | | import com.doumee.dao.business.MultifileMapper; |
| | | import com.doumee.dao.business.SolutionsMapper; |
| | | import com.doumee.dao.business.UnionApplyMapper; |
| | | import com.doumee.dao.business.dto.SaveUnionApplyDTO; |
| | | import com.doumee.dao.business.dto.UnionApplyBXDDDetailTO; |
| | | import com.doumee.dao.business.dto.UnionApplyBXDDTO; |
| | | import com.doumee.dao.business.dto.UploadMultifileDTO; |
| | | import com.doumee.dao.business.dto.*; |
| | | import com.doumee.dao.business.join.ApplyDetailJoinMapper; |
| | | import com.doumee.dao.business.join.InsuranceApplyJoinMapper; |
| | | import com.doumee.dao.business.join.UnionApplyJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.service.business.SmsEmailService; |
| | | import com.doumee.service.business.UnionApplyService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | |
| | | |
| | | @Autowired |
| | | private SignService signService; |
| | | |
| | | @Autowired |
| | | private SmsEmailService smsEmailService; |
| | | |
| | | @Value("${debug_model}") |
| | | private boolean debugModel; |
| | | |
| | | @Override |
| | | public Integer create(UnionApply unionApply) { |
| | |
| | | @Override |
| | | public PageData<UnionApply> findPage(PageWrap<UnionApply> pageWrap) { |
| | | IPage<UnionApply> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<UnionApply> queryWrapper = new QueryWrapper<>(); |
| | | MPJLambdaWrapper<UnionApply> queryWrapper = new MPJLambdaWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.selectAll(UnionApply.class); |
| | | queryWrapper.leftJoin(Solutions.class,Solutions::getId,UnionApply::getSolutionId); |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(user.getType().equals(Constants.TWO)){ |
| | | queryWrapper.eq(UnionApply::getCompanyId, pageWrap.getModel().getCompanyId()); |
| | | } |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getId, pageWrap.getModel().getId()); |
| | | queryWrapper.eq(UnionApply::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getCreator, pageWrap.getModel().getCreator()); |
| | | queryWrapper.eq(UnionApply::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getQueryStartTime() != null) { |
| | | queryWrapper.ge(UnionApply::getCreateDate, pageWrap.getModel().getQueryStartTime() +" 00:00:00" ); |
| | | } |
| | | if (pageWrap.getModel().getQueryEndTime() != null) { |
| | | queryWrapper.le(UnionApply::getCreateDate, pageWrap.getModel().getQueryEndTime() +" 23:59:59"); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(UnionApply::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(UnionApply::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.ge(UnionApply::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.le(UnionApply::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getEditor, pageWrap.getModel().getEditor()); |
| | | queryWrapper.eq(UnionApply::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(UnionApply::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(UnionApply::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.ge(UnionApply::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.le(UnionApply::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | queryWrapper.eq(UnionApply::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getRemark, pageWrap.getModel().getRemark()); |
| | | queryWrapper.eq(UnionApply::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getSortnum() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getSortnum, pageWrap.getModel().getSortnum()); |
| | | queryWrapper.eq(UnionApply::getSortnum, pageWrap.getModel().getSortnum()); |
| | | } |
| | | if (pageWrap.getModel().getCompanyId() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getCompanyId, pageWrap.getModel().getCompanyId()); |
| | | queryWrapper.eq(UnionApply::getCompanyId, pageWrap.getModel().getCompanyId()); |
| | | } |
| | | if (pageWrap.getModel().getEndTime() != null) { |
| | | queryWrapper.lambda().ge(UnionApply::getEndTime, Utils.Date.getStart(pageWrap.getModel().getEndTime())); |
| | | queryWrapper.lambda().le(UnionApply::getEndTime, Utils.Date.getEnd(pageWrap.getModel().getEndTime())); |
| | | queryWrapper.ge(UnionApply::getEndTime, Utils.Date.getStart(pageWrap.getModel().getEndTime())); |
| | | queryWrapper.le(UnionApply::getEndTime, Utils.Date.getEnd(pageWrap.getModel().getEndTime())); |
| | | } |
| | | if (pageWrap.getModel().getStartTime() != null) { |
| | | queryWrapper.lambda().ge(UnionApply::getStartTime, Utils.Date.getStart(pageWrap.getModel().getStartTime())); |
| | | queryWrapper.lambda().le(UnionApply::getStartTime, Utils.Date.getEnd(pageWrap.getModel().getStartTime())); |
| | | queryWrapper.ge(UnionApply::getStartTime, Utils.Date.getStart(pageWrap.getModel().getStartTime())); |
| | | queryWrapper.le(UnionApply::getStartTime, Utils.Date.getEnd(pageWrap.getModel().getStartTime())); |
| | | } |
| | | if (pageWrap.getModel().getCheckDate() != null) { |
| | | queryWrapper.lambda().ge(UnionApply::getCheckDate, Utils.Date.getStart(pageWrap.getModel().getCheckDate())); |
| | | queryWrapper.lambda().le(UnionApply::getCheckDate, Utils.Date.getEnd(pageWrap.getModel().getCheckDate())); |
| | | queryWrapper.ge(UnionApply::getCheckDate, Utils.Date.getStart(pageWrap.getModel().getCheckDate())); |
| | | queryWrapper.le(UnionApply::getCheckDate, Utils.Date.getEnd(pageWrap.getModel().getCheckDate())); |
| | | } |
| | | if (pageWrap.getModel().getCheckInfo() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getCheckInfo, pageWrap.getModel().getCheckInfo()); |
| | | queryWrapper.eq(UnionApply::getCheckInfo, pageWrap.getModel().getCheckInfo()); |
| | | } |
| | | if (pageWrap.getModel().getCheckUserId() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getCheckUserId, pageWrap.getModel().getCheckUserId()); |
| | | queryWrapper.eq(UnionApply::getCheckUserId, pageWrap.getModel().getCheckUserId()); |
| | | } |
| | | if (pageWrap.getModel().getCode() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getCode, pageWrap.getModel().getCode()); |
| | | queryWrapper.eq(UnionApply::getCode, pageWrap.getModel().getCode()); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getStatus, pageWrap.getModel().getStatus()); |
| | | queryWrapper.eq(UnionApply::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | if (pageWrap.getModel().getCurrentFee() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getCurrentFee, pageWrap.getModel().getCurrentFee()); |
| | | queryWrapper.eq(UnionApply::getCurrentFee, pageWrap.getModel().getCurrentFee()); |
| | | } |
| | | if (pageWrap.getModel().getFee() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getFee, pageWrap.getModel().getFee()); |
| | | queryWrapper.eq(UnionApply::getFee, pageWrap.getModel().getFee()); |
| | | } |
| | | if (pageWrap.getModel().getSignApplyNo() != null) { |
| | | queryWrapper.lambda().eq(UnionApply::getSignApplyNo, pageWrap.getModel().getSignApplyNo()); |
| | | queryWrapper.eq(UnionApply::getSignApplyNo, pageWrap.getModel().getSignApplyNo()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(unionApplyMapper.selectPage(page, queryWrapper)); |
| | | PageData<UnionApply> pageData = PageData.from(unionApplyJoinMapper.selectJoinPage(page,UnionApply.class, queryWrapper)); |
| | | return pageData; |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public UnionApply detail(Integer applyId){ |
| | | UnionApply unionApply = unionApplyJoinMapper.selectJoinOne(UnionApply.class, |
| | | new MPJLambdaWrapper<UnionApply>() |
| | | .selectAll(UnionApply.class) |
| | | .selectAs(Solutions::getName,UnionApply::getSolutionName) |
| | | .selectAs(Company::getName,UnionApply::getCompanyName) |
| | | .select(" ( select count(DISTINCT(ad.MEMBER_ID)) from apply_detail ad where ad.UNION_APPLY_ID = t.id ) as insureNum") |
| | | .leftJoin(Solutions.class,Solutions::getId,UnionApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,UnionApply::getCompanyId) |
| | | .eq(UnionApply::getId,applyId) |
| | | .last(" limit 1 ") |
| | | ); |
| | | unionApply.setServiceDays(Constants.ZERO); |
| | | if(unionApply.getStatus().equals(Constants.UnionApplyStatus.FINISH.getKey())){ |
| | | //妿å½åæ¶é´å¤§äºç»ææ¥æ å使ç¨ç»ææ¥æå¯¹æ¯å¼å§æ¥æ |
| | | if(DateUtil.compareDate(new Date(),unionApply.getEndTime())>=Constants.ZERO){ |
| | | unionApply.setServiceDays( |
| | | DateUtil.daysBetweenDates(unionApply.getEndTime(),unionApply.getStartTime())+1 |
| | | ); |
| | | }else if(DateUtil.compareDate(unionApply.getStartTime(),new Date())>=Constants.ZERO){ |
| | | //æªå¼å§ |
| | | unionApply.setServiceDays(Constants.ZERO); |
| | | }else{ |
| | | unionApply.setServiceDays(DateUtil.daysBetweenDates(new Date(),unionApply.getStartTime())+1); |
| | | } |
| | | } |
| | | return unionApply; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public Integer merge(SaveUnionApplyDTO saveUnionApplyDTO){ |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(user.getType().equals(Constants.TWO)){ |
| | | if(!user.getType().equals(Constants.TWO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éåæ·ç¨æ·ï¼æ æ³è¿è¡è¯¥æä½"); |
| | | } |
| | | if(Objects.isNull(saveUnionApplyDTO) |
| | |
| | | .selectAs(InsuranceApply::getSolutionBaseId,Solutions::getBaseId) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .eq(InsuranceApply::getIsdeleted, Constants.ZERO) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.COMPANY_MEMBER_LIST_SIGNATURE.getKey()) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WTB_BUSINESS_CHECK_PASS.getKey()) |
| | | .eq(Solutions::getBaseId,saveUnionApplyDTO.getBaseSolutionId()) |
| | | .in(InsuranceApply::getId,saveUnionApplyDTO.getApplyIds()) |
| | | .isNull(InsuranceApply::getUnionApplyId) |
| | |
| | | .set(InsuranceApply::getUnionApplyId,unionApply.getId()) |
| | | .set(InsuranceApply::getCheckDate,new Date()) |
| | | .set(InsuranceApply::getCheckUserId,user.getId()) |
| | | .set(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WTB_TOUBAOING.getKey()) |
| | | .in(InsuranceApply::getId,saveUnionApplyDTO.getApplyIds())); |
| | | |
| | | applyDetailJoinMapper.update(null,new UpdateWrapper<ApplyDetail>().lambda() |
| | |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public void cancelMerge(Integer id){ |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(user.getType().equals(Constants.TWO)){ |
| | | if(!user.getType().equals(Constants.TWO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éåæ·ç¨æ·ï¼æ æ³è¿è¡è¯¥æä½ï¼"); |
| | | } |
| | | UnionApply unionApply = unionApplyMapper.selectById(id); |
| | |
| | | .set(InsuranceApply::getUnionApplyId,null) |
| | | .set(InsuranceApply::getCheckDate,new Date()) |
| | | .set(InsuranceApply::getCheckUserId,user.getId()) |
| | | .set(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WTB_BUSINESS_CHECK_PASS.getKey()) |
| | | .eq(InsuranceApply::getUnionApplyId,unionApply.getId())); |
| | | |
| | | applyDetailJoinMapper.update(null,new UpdateWrapper<ApplyDetail>().lambda() |
| | |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public void uploadToubaodan(UploadMultifileDTO uploadMultifileDTO){ |
| | | if(uploadMultifileDTO.getBusinessId() == null |
| | | ||StringUtils.isBlank( uploadMultifileDTO.getFilePath()) |
| | | ||StringUtils.isBlank( uploadMultifileDTO.getFileName())){ |
| | | ||StringUtils.isBlank( uploadMultifileDTO.getFileurl()) |
| | | ||StringUtils.isBlank( uploadMultifileDTO.getName())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(!user.getType().equals(Constants.TWO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éåæ·ç¨æ·ï¼æ æ³è¿è¡è¯¥æä½ï¼"); |
| | | } |
| | | UnionApply unionApply = unionApplyMapper.selectById(uploadMultifileDTO.getBusinessId()); |
| | | if(Objects.isNull(unionApply)||!Constants.equalsInteger(unionApply.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | |
| | | if(unionApply.getStatus().equals(Constants.UnionApplyStatus.MERGE.getKey())){ |
| | | throw new BusinessException(ResponseStatus.DATA_ERRO.getCode(),"对ä¸èµ·ï¼åå¹¶åä¸å¡å·²æµè½¬ï¼æ¨æ æ³è¿è¡è¯¥æä½ï¼"); |
| | | } |
| | | |
| | | if(CollectionUtils.isNotEmpty(uploadMultifileDTO.getMultifileList())){ |
| | | List<Multifile> multifileList = uploadMultifileDTO.getMultifileList(); |
| | | for (Multifile multifile:multifileList) { |
| | | if(Objects.isNull(multifile.getObjId()) |
| | | ||Objects.isNull(multifile.getName()) |
| | | ||Objects.isNull(multifile.getFileurl())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"ä¼ä¸æä¿åéä»¶åæ°é误"); |
| | | } |
| | | InsuranceApply insuranceApply = insuranceApplyJoinMapper.selectOne(new QueryWrapper<InsuranceApply>().lambda() |
| | | .eq(InsuranceApply::getId,multifile.getObjId()) |
| | | .eq(InsuranceApply::getUnionApplyId,uploadMultifileDTO.getBusinessId()) |
| | | ); |
| | | if(Objects.isNull(insuranceApply)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"ä¼ä¸æä¿åæªæ¥è¯¢å°"); |
| | | } |
| | | |
| | | multifile.setIsdeleted(Constants.ZERO); |
| | | multifile.setCreator(user.getId()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setObjType(Constants.MultiFile.COMPANY_TBD_SIGNED.getKey()); |
| | | multifile.setType(Constants.TWO); |
| | | multifileMapper.insert(multifile); |
| | | |
| | | insuranceApplyJoinMapper.update(null,new UpdateWrapper<InsuranceApply>().lambda() |
| | | .set(InsuranceApply::getUnionApplyTbdStatus,Constants.ONE) |
| | | .set(InsuranceApply::getEditDate,new Date()) |
| | | .set(InsuranceApply::getEditor,user.getId()) |
| | | .eq(InsuranceApply::getId,multifile.getObjId()) |
| | | ); |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | unionApply.setCheckDate(new Date()); |
| | | unionApply.setCheckUserId(user.getId()); |
| | |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setObjType(Constants.MultiFile.HBD_BD_SIGNED_PDF.getKey()); |
| | | multifile.setType(Constants.TWO); |
| | | multifile.setFileurl(uploadMultifileDTO.getFilePath()); |
| | | multifile.setName(uploadMultifileDTO.getFileName()); |
| | | multifile.setFileurl(uploadMultifileDTO.getFileurl()); |
| | | multifile.setName(uploadMultifileDTO.getName()); |
| | | multifileMapper.insert(multifile); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public String getSignLink(Integer id) { |
| | | if(id == null ){ |
| | | public String getSignLink(SmsCheckDTO smsCheckDTO) { |
| | | if(Objects.isNull(smsCheckDTO) |
| | | || Objects.isNull(smsCheckDTO.getBusinessId()) |
| | | || StringUtils.isBlank(smsCheckDTO.getCode()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | //éªè¯ éªè¯ç |
| | | if(!debugModel){ |
| | | smsEmailService.validateCode(smsCheckDTO.getCode()); |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | UnionApply unionApply = unionApplyJoinMapper.selectById(id); |
| | | if(!user.getType().equals(Constants.TWO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éåæ·ç¨æ·ï¼æ æ³è¿è¡è¯¥æä½ï¼"); |
| | | } |
| | | UnionApply unionApply = unionApplyJoinMapper.selectById(smsCheckDTO.getBusinessId()); |
| | | if(unionApply == null ||!Constants.equalsInteger(unionApply.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(!user.getType().equals(Constants.TWO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éåæ·ç¨æ·ï¼æ æ³è¿è¡è¯¥æä½ï¼"); |
| | | } |
| | | UnionApply unionApply = unionApplyJoinMapper.selectById(unionApplyBXDDTO.getId()); |
| | | if(unionApply == null ||!Constants.equalsInteger(unionApply.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | |
| | | multifile.setCreator(user.getId()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setObjId(insuranceApply.getId()); |
| | | multifile.setObjType(Constants.MultiFile.COMPANY_TBD_SIGNED_PDF.getKey()); |
| | | multifile.setObjType(Constants.MultiFile.BD_DONE_PDF.getKey()); |
| | | multifile.setType(Constants.TWO); |
| | | multifile.setFileurl(unionApplyBXDDDetailTO.getFileUrl()); |
| | | multifile.setName(unionApplyBXDDDetailTO.getFileName()); |
| | |
| | | new BigDecimal(applyDetails.size()) |
| | | .multiply(price) |
| | | ) |
| | | .set(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey()) |
| | | .set(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WTB_DONE.getKey()) |
| | | .set(InsuranceApply::getUnionApplyTbdStatus,3) |
| | | .set(InsuranceApply::getFee,price.multiply(new BigDecimal(applyDetails.size())).multiply(new BigDecimal(maxDays))) |
| | | .set(InsuranceApply::getCurrentFee,currentFee.multiply(new BigDecimal(applyDetails.size()))) |
| | | .set(InsuranceApply::getStartTime,unionApplyBXDDTO.getStartTime()) |
| | |
| | | multifile.setCreator(user.getId()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setObjId(unionApply.getId()); |
| | | multifile.setObjType(Constants.MultiFile.HBD_BD_APPLY_PDF.getKey()); |
| | | multifile.setObjType(Constants.MultiFile.WTB_BD_DONE_PDF.getKey()); |
| | | multifile.setType(Constants.TWO); |
| | | multifile.setFileurl(unionApplyBXDDTO.getFileUrl()); |
| | | multifile.setName(unionApplyBXDDTO.getFileName()); |
| | | multifileMapper.insert(multifile); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dto.SaveUnionApplyDTO; |
| | | import com.doumee.dao.business.dto.SaveUnionChangeDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.dto.UnionChangeBXDDTO; |
| | | import com.doumee.dao.business.join.ApplyChagneDetailJoinMapper; |
| | | import com.doumee.dao.business.join.ApplyChangeJoinMapper; |
| | | import com.doumee.dao.business.join.ApplyDetailJoinMapper; |
| | | import com.doumee.dao.business.join.MemberInsuranceJoinMapper; |
| | | import com.doumee.dao.business.join.*; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.business.vo.CountCyclePriceVO; |
| | | import com.doumee.service.business.SmsEmailService; |
| | | import com.doumee.service.business.UnionChangeService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | |
| | | |
| | | @Autowired |
| | | private UnionChangeMapper unionChangeMapper; |
| | | |
| | | @Autowired |
| | | private UnionChangeJoinMapper unionChangeJoinMapper; |
| | | |
| | | @Autowired |
| | | private ApplyChangeJoinMapper applyChangeJoinMapper; |
| | |
| | | |
| | | @Autowired |
| | | private InsuranceApplyMapper insuranceApplyMapper; |
| | | |
| | | @Value("${debug_model}") |
| | | private boolean debugModel; |
| | | @Autowired |
| | | private SmsEmailService smsEmailService; |
| | | @Autowired |
| | | private MultifileMapper multifileMapper; |
| | | |
| | | @Override |
| | | public Integer create(UnionChange unionChange) { |
| | |
| | | return unionChangeMapper.selectById(id); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public UnionChange getDetail(Integer id){ |
| | | UnionChange unionChange = unionChangeJoinMapper.selectJoinOne(UnionChange.class, |
| | | new MPJLambdaWrapper<UnionChange>() |
| | | .selectAll(UnionChange.class) |
| | | .selectAs(UnionApply::getCode,UnionChange::getApplyCode) |
| | | .selectAs(Solutions::getName,UnionChange::getSolutionsName) |
| | | .selectAs(UnionApply::getStartTime,UnionChange::getStartTime) |
| | | .selectAs(UnionApply::getEndTime,UnionChange::getEndTime) |
| | | .selectAs(Company::getName,UnionChange::getShopName) |
| | | .select("( select count(1) from apply_chagne_detail ad where t.id = ad.UNION_CHANGE_ID and ad.TYPE = 0 )",UnionChange::getAddNum) |
| | | .select("( select count(1) from apply_chagne_detail ad where t.id = ad.UNION_CHANGE_ID and ad.TYPE = 1 )",UnionChange::getDelNum) |
| | | .select("( select count(1) from apply_chagne_detail ad where t.id = ad.UNION_CHANGE_ID and ad.TYPE = 2 )",UnionChange::getChangeNum) |
| | | .leftJoin(UnionApply.class,UnionApply::getId,UnionChange::getUnionApplyId) |
| | | .leftJoin(Solutions.class,Solutions::getId,UnionApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,UnionChange::getShopId) |
| | | .eq(UnionChange::getId,id) |
| | | .last(" limit 1 ") |
| | | ); |
| | | return unionChange; |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public UnionChange findOne(UnionChange unionChange) { |
| | | QueryWrapper<UnionChange> wrapper = new QueryWrapper<>(unionChange); |
| | |
| | | @Override |
| | | public PageData<UnionChange> findPage(PageWrap<UnionChange> pageWrap) { |
| | | IPage<UnionChange> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<UnionChange> queryWrapper = new QueryWrapper<>(); |
| | | MPJLambdaWrapper<UnionChange> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper.selectAll(UnionChange.class); |
| | | queryWrapper.selectAs(UnionApply::getCode,UnionChange::getApplyCode) |
| | | .select("( select count(1) from apply_chagne_detail ad where t.id = ad.UNION_CHANGE_ID and ad.TYPE = 0 )",UnionChange::getAddNum) |
| | | .select("( select count(1) from apply_chagne_detail ad where t.id = ad.UNION_CHANGE_ID and ad.TYPE = 1 )",UnionChange::getDelNum) |
| | | .select("( select count(1) from apply_chagne_detail ad where t.id = ad.UNION_CHANGE_ID and ad.TYPE = 2 )",UnionChange::getChangeNum); |
| | | queryWrapper.leftJoin(UnionApply.class,UnionApply::getId,UnionChange::getUnionApplyId); |
| | | queryWrapper.leftJoin(Solutions.class,Solutions::getId,UnionApply::getSolutionId); |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(user.getType().equals(Constants.TWO)){ |
| | | queryWrapper.eq(UnionChange::getShopId, pageWrap.getModel().getShopId()); |
| | | } |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getId, pageWrap.getModel().getId()); |
| | | queryWrapper.eq(UnionChange::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getCreator, pageWrap.getModel().getCreator()); |
| | | queryWrapper.eq(UnionChange::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | |
| | | if (pageWrap.getModel().getQueryStartTime() != null) { |
| | | queryWrapper.ge(UnionChange::getCreateDate, pageWrap.getModel().getQueryStartTime() +" 00:00:00" ); |
| | | } |
| | | if (pageWrap.getModel().getQueryEndTime() != null) { |
| | | queryWrapper.le(UnionChange::getCreateDate, pageWrap.getModel().getQueryEndTime() +" 23:59:59"); |
| | | } |
| | | |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(UnionChange::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(UnionChange::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.ge(UnionChange::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.le(UnionChange::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getEditor, pageWrap.getModel().getEditor()); |
| | | queryWrapper.eq(UnionChange::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(UnionChange::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(UnionChange::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.ge(UnionChange::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.le(UnionChange::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | queryWrapper.eq(UnionChange::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getRemark, pageWrap.getModel().getRemark()); |
| | | queryWrapper.eq(UnionChange::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getSortnum() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getSortnum, pageWrap.getModel().getSortnum()); |
| | | queryWrapper.eq(UnionChange::getSortnum, pageWrap.getModel().getSortnum()); |
| | | } |
| | | if (pageWrap.getModel().getShopId() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getShopId, pageWrap.getModel().getShopId()); |
| | | queryWrapper.eq(UnionChange::getShopId, pageWrap.getModel().getShopId()); |
| | | } |
| | | if (pageWrap.getModel().getCode() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getCode, pageWrap.getModel().getCode()); |
| | | queryWrapper.eq(UnionChange::getCode, pageWrap.getModel().getCode()); |
| | | } |
| | | if (pageWrap.getModel().getApplyStartTime() != null) { |
| | | queryWrapper.lambda().ge(UnionChange::getApplyStartTime, Utils.Date.getStart(pageWrap.getModel().getApplyStartTime())); |
| | | queryWrapper.lambda().le(UnionChange::getApplyStartTime, Utils.Date.getEnd(pageWrap.getModel().getApplyStartTime())); |
| | | queryWrapper.ge(UnionChange::getApplyStartTime, Utils.Date.getStart(pageWrap.getModel().getApplyStartTime())); |
| | | queryWrapper.le(UnionChange::getApplyStartTime, Utils.Date.getEnd(pageWrap.getModel().getApplyStartTime())); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getStatus, pageWrap.getModel().getStatus()); |
| | | queryWrapper.eq(UnionChange::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | if (pageWrap.getModel().getValidTime() != null) { |
| | | queryWrapper.lambda().ge(UnionChange::getValidTime, Utils.Date.getStart(pageWrap.getModel().getValidTime())); |
| | | queryWrapper.lambda().le(UnionChange::getValidTime, Utils.Date.getEnd(pageWrap.getModel().getValidTime())); |
| | | queryWrapper.ge(UnionChange::getValidTime, Utils.Date.getStart(pageWrap.getModel().getValidTime())); |
| | | queryWrapper.le(UnionChange::getValidTime, Utils.Date.getEnd(pageWrap.getModel().getValidTime())); |
| | | } |
| | | if (pageWrap.getModel().getValidCode() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getValidCode, pageWrap.getModel().getValidCode()); |
| | | queryWrapper.eq(UnionChange::getValidCode, pageWrap.getModel().getValidCode()); |
| | | } |
| | | if (pageWrap.getModel().getType() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getType, pageWrap.getModel().getType()); |
| | | queryWrapper.eq(UnionChange::getType, pageWrap.getModel().getType()); |
| | | } |
| | | if (pageWrap.getModel().getSignApplyNo() != null) { |
| | | queryWrapper.lambda().eq(UnionChange::getSignApplyNo, pageWrap.getModel().getSignApplyNo()); |
| | | queryWrapper.eq(UnionChange::getSignApplyNo, pageWrap.getModel().getSignApplyNo()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(unionChangeMapper.selectPage(page, queryWrapper)); |
| | | PageData<UnionChange> pageData = PageData.from(unionChangeJoinMapper.selectJoinPage(page,UnionChange.class, queryWrapper)); |
| | | return pageData; |
| | | } |
| | | |
| | | @Override |
| | |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | | .eq(ApplyChange::getIsdeleted, Constants.ZERO) |
| | | .eq(InsuranceApply::getUnionApplyId,saveUnionChangeDTO.getUnionApplyId()) |
| | | .eq(ApplyChange::getStatus,Constants.ApplyChangeStatus.COMPANY_SIGN.getKey()) |
| | | .eq(ApplyChange::getStatus,Constants.ApplyChangeStatus.PALTFORM_CHECK_PASS.getKey()) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey()) |
| | | .eq(ApplyChange::getType,saveUnionChangeDTO.getBusinessType()) |
| | | .in(ApplyChange::getId,saveUnionChangeDTO.getApplyIds()) |
| | |
| | | } |
| | | |
| | | |
| | | public UnionChange unionChangeDetail(Integer unionChangeId){ |
| | | |
| | | UnionChange unionChange = unionChangeJoinMapper.selectJoinOne(UnionChange.class, |
| | | new MPJLambdaWrapper<UnionChange>() |
| | | .selectAll(UnionChange.class) |
| | | .selectAs(Company::getName,UnionChange::getShopName) |
| | | .selectAs(Solutions::getName,UnionChange::getSolutionsName) |
| | | .selectAs(UnionApply::getCode,UnionChange::getApplyCode) |
| | | .selectAs(UnionApply::getStartTime,UnionChange::getStartTime) |
| | | .selectAs(UnionApply::getEndTime,UnionChange::getEndTime) |
| | | .leftJoin(UnionApply.class,UnionApply::getId,UnionChange::getUnionApplyId) |
| | | .leftJoin(Company.class,Company::getId,UnionChange::getShopId) |
| | | .leftJoin(Solutions.class,Solutions::getId,UnionApply::getSolutionId) |
| | | .eq(UnionChange::getId,unionChangeId) |
| | | .last(" limit 1 ") |
| | | ); |
| | | //ä¼ä¸åç§° |
| | | List<ApplyChange> applyChangeList = applyChangeJoinMapper.selectJoinList(ApplyChange.class,new MPJLambdaWrapper<ApplyChange>() |
| | | .selectAs(Company::getName,ApplyChange::getCompanyName) |
| | | .leftJoin(Company.class,Company::getId,ApplyChange::getCompanyId) |
| | | .eq(ApplyChange::getUnionChangeId,unionChangeId) |
| | | ); |
| | | |
| | | String companyNames = String.join(",",applyChangeList.stream().map(m->m.getCompanyName()).collect(Collectors.toList())); |
| | | |
| | | List<ApplyChagneDetail> applyChagneDetailList = applyChagneDetailJoinMapper.selectJoinList(ApplyChagneDetail.class,new MPJLambdaWrapper<ApplyChagneDetail>() |
| | | .selectAll(ApplyChagneDetail.class) |
| | | .selectAs(Member::getName,ApplyChagneDetail::getMemberName) |
| | | .selectAs(Member::getIdcardNo,ApplyChagneDetail::getIdcardNo) |
| | | .selectAs(Member::getSex,ApplyChagneDetail::getSex) |
| | | .selectAs(Company::getName,ApplyChagneDetail::getCompanyName) |
| | | .select("t2.name",ApplyChagneDetail::getWorkTypeName) |
| | | .select("t3.name",ApplyChagneDetail::getDuName) |
| | | .select("t4.name",ApplyChagneDetail::getOldWorkTypeName) |
| | | .select("t5.name",ApplyChagneDetail::getOldDuName) |
| | | .leftJoin(Member.class,Member::getId,ApplyChagneDetail::getMemberId) |
| | | .leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getWorktypeId) |
| | | .leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyChagneDetail::getDuId) |
| | | .leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getOldWorktypeId) |
| | | .leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyChagneDetail::getOldDuId) |
| | | .leftJoin(Company.class,Company::getId,Member::getCompanyId) |
| | | .eq(ApplyChagneDetail::getUnionChangeId,unionChangeId) |
| | | ); |
| | | |
| | | unionChange.setCompanyNames(companyNames); |
| | | unionChange.setApplyChagneDetailList(applyChagneDetailList); |
| | | return unionChange; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * åå¹¶åï¼å åä¿/æ¢åï¼ - æä¿ç³è¯·ç¾ç½² |
| | | * @param id |
| | | * @param smsCheckDTO |
| | | * @return |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public String getSignLink(Integer id) { |
| | | if(id == null ){ |
| | | public String getSignLink(SmsCheckDTO smsCheckDTO) { |
| | | if(Objects.isNull(smsCheckDTO) |
| | | || Objects.isNull(smsCheckDTO.getBusinessId()) |
| | | || StringUtils.isBlank(smsCheckDTO.getCode()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | //éªè¯ éªè¯ç |
| | | if(!debugModel){ |
| | | smsEmailService.validateCode(smsCheckDTO.getCode()); |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | UnionChange unionChange = unionChangeMapper.selectById(id); |
| | | UnionChange unionChange = this.unionChangeDetail(smsCheckDTO.getBusinessId()); |
| | | if(Objects.isNull(unionChange)||!Constants.equalsInteger(unionChange.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | |
| | | |
| | | String fileUrl = null; |
| | | if(Constants.equalsObject(unionChange.getType(), Constants.ONE)){ |
| | | // fileUrl = ExcelExporter.build(ApplyChange.class).exportChangeUnitExcelToPdf(model,"æ¢åç³è¯·è¡¨","被ä¿é©äºº"); |
| | | fileUrl = ExcelExporter.build(UnionChange.class).exportUnionChangeOtherUnitExcelToPdf(unionChange,"æ¢åç³è¯·è¡¨"); |
| | | }else{ |
| | | // fileUrl = ExcelExporter.build(ApplyChange.class).exportJiajianBaoExcelToPdf(model,"å åä¿ç³è¯·è¡¨","被ä¿é©äºº"); |
| | | fileUrl = ExcelExporter.build(UnionChange.class).exportUnionChangeExcelToPdf(unionChange,"å åä¿ç³è¯·è¡¨"); |
| | | } |
| | | |
| | | String notifyUrl = systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SIGN_DONE_NOTIFY_URL).getCode(); |
| | | notifyUrl = notifyUrl.replace("${type}","0").replace("${id}",unionChange.getId().toString()); |
| | | String applyNo = signService.applySignLocalFile(company.getName(),company.getName(),fileUrl,company.getCode(),company.getEmail(),"åå¹¶åï¼å åä¿/æ¢åï¼ç³è¯·ç¾ç½²",company.getSignId(),notifyUrl); |
| | |
| | | if(Objects.isNull(unionChangeBXDDTO) |
| | | || Objects.isNull(unionChangeBXDDTO.getId()) |
| | | || Objects.isNull(unionChangeBXDDTO.getApplyDate()) |
| | | || StringUtils.isBlank(unionChangeBXDDTO.getFileName()) |
| | | || StringUtils.isBlank(unionChangeBXDDTO.getFileUrl()) |
| | | || StringUtils.isBlank(unionChangeBXDDTO.getName()) |
| | | || StringUtils.isBlank(unionChangeBXDDTO.getFileurl()) |
| | | || StringUtils.isBlank(unionChangeBXDDTO.getCode()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | |
| | | .selectAs(InsuranceApply::getCode,ApplyChange::getApplyCode) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | | .eq(ApplyChange::getUnionChangeId,unionChange.getId())); |
| | | |
| | | //åå¨åå¹¶åä¿é©å |
| | | Multifile multifile = new Multifile(); |
| | | multifile.setIsdeleted(Constants.ZERO); |
| | | multifile.setCreator(user.getId()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setObjId(unionChangeBXDDTO.getId()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setObjType(Constants.MultiFile.WTB_CA_DONE_PDF.getKey()); |
| | | multifile.setType(Constants.TWO); |
| | | multifile.setFileurl(unionChangeBXDDTO.getFileurl()); |
| | | multifile.setName(unionChangeBXDDTO.getName()); |
| | | multifileMapper.insert(multifile); |
| | | |
| | | if(CollectionUtils.isNotEmpty(unionChangeBXDDTO.getApplyChangeBXDList())){ |
| | | //æ¥è¯¢æ¯å¦ä¸åå¨å½ååå¹¶åçæ°æ® |
| | | if(applyChangeJoinMapper.selectCount(new QueryWrapper<ApplyChange>() |
| | | .lambda().ne(ApplyChange::getUnionChangeId,unionChangeBXDDTO.getId()) |
| | | .in(ApplyChange::getId, |
| | | unionChangeBXDDTO.getApplyChangeBXDList().stream().map(m->m.getObjId()).collect(Collectors.toList()) |
| | | ) |
| | | )>Constants.ZERO){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"æ¹åæç»è®°å½åå¨éæ¬åå¹¶åæ°æ®"); |
| | | }; |
| | | for (Multifile m:unionChangeBXDDTO.getApplyChangeBXDList()) { |
| | | if(Objects.isNull(m.getObjId()) |
| | | ||StringUtils.isBlank(m.getFileurl()) |
| | | ||StringUtils.isBlank(m.getName()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"å åä¿/æ¢åä¸å¡æ¹åæä»¶ä¿¡æ¯ç¼ºå¤±"); |
| | | } |
| | | multifile.setIsdeleted(Constants.ZERO); |
| | | multifile.setCreator(user.getId()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setCreateDate(new Date()); |
| | | multifile.setObjType(Constants.MultiFile.CA_PD_PDF.getKey()); |
| | | multifile.setType(Constants.TWO); |
| | | multifileMapper.insert(multifile); |
| | | } |
| | | } |
| | | |
| | | |
| | | if(CollectionUtils.isNotEmpty(applyChangeList)){ |
| | | for (ApplyChange applyChange:applyChangeList) { |
| | | applyChange.setApplyStartTime(unionChangeBXDDTO.getApplyDate()); |
| | | applyChange.setValidTime(unionChangeBXDDTO.getApplyDate()); |
| | | applyChange.setEditDate(new Date()); |
| | | applyChange.setEditor(user.getId()); |
| | | applyChange.setStatus(Constants.ApplyChangeStatus.APPROVE.getKey()); |
| | | List<ApplyChagneDetail> allList = applyChagneDetailJoinMapper.selectList(new QueryWrapper<ApplyChagneDetail>().lambda().eq(ApplyChagneDetail::getApplyChangeId,applyChange.getId())); |
| | | this.dealApplyChangeDetail(applyChange,allList); |
| | | applyChange.setCode(unionChangeBXDDTO.getCode()); |
| | | applyChange.setCheckUserId(user.getId()); |
| | | applyChangeJoinMapper.updateById(applyChange); |
| | | } |
| | | } |
| | | unionChangeMapper.update(null,new UpdateWrapper<UnionChange>().lambda() |
| | |
| | | /** |
| | | * åèµ·ç¾çº¦ |
| | | * @param name |
| | | * @param fileUrl |
| | | * @param file |
| | | * @param creditCoe |
| | | * @param email |
| | |
| | | params.put("serverCa",1); //使ç¨äºè¯ä¹¦ |
| | | params.put("file",new File(file)); |
| | | params.put("dealType",5); //æå®ååæä»¶ç¾ç½²æ¹å¼ 5 为é¨åèªå¨ç¾ |
| | | params.put("positionType",2); //æå®éè¿è¡¨ååæ¹å¼è®¾ç½®ç¾åä½ç½® |
| | | params.put("positionType",0); //æå®éè¿è¡¨ååæ¹å¼è®¾ç½®ç¾åä½ç½® |
| | | params.put("fileType",0); |
| | | params.put("needQifengSign",1); |
| | | params.put("notifyUrl",notifyUrl); |
| | |
| | | sReq.setEmail(email); //å¨ååç¾æ³¨å认è¯çé®ç®± |
| | | // sReq.setChapteJson("[{\"page\":0,\"chaptes\":[{\"offsetX\":0.12,\"offsetY\":0.23}]},{\"page\":1,\"chaptes\":[{\"offsetX\":0.45,\"offsetY\":0.67}]}]"); |
| | | // sReq.setChapteJson(postionJson); |
| | | sReq.setSearchKey(postionJson); |
| | | // sReq.setSearchKey(postionJson); |
| | | sReq.setSignId(singId); |
| | | sReq.setSearchConvertExtend("{\"fixX\":-80,\"fixY\":-80}"); |
| | | sReq.setNoNeedVerify(1); |
| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.ApplyChange; |
| | | import com.doumee.dao.business.model.InsuranceApply; |
| | | import com.doumee.service.business.ApplyChangeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | public ApiResponse<ApplyChange> findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(applyChangeService.findDetail(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("åæ·å®¡æ ¸ - å§æä¿ä¸å¡") |
| | | @PostMapping("/check") |
| | | @RequiresPermissions("business:applychange:check") |
| | | public ApiResponse check(@RequestBody ApplyChange model) { |
| | | return ApiResponse.success(applyChangeService.check(model)); |
| | | } |
| | | } |
| | |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.dto.SaveUnionApplyDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.dto.UnionApplyBXDDTO; |
| | | import com.doumee.dao.business.dto.UploadMultifileDTO; |
| | | import com.doumee.dao.business.model.UnionApply; |
| | | import com.doumee.service.business.UnionApplyService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | ExcelExporter.build(UnionApply.class).export(unionApplyService.findPage(pageWrap).getRecords(), "åå¹¶æä¿åä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:unionapply:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(unionApplyService.findById(id)); |
| | | public ApiResponse<UnionApply> findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(unionApplyService.detail(id)); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("å建åå¹¶å") |
| | | @PostMapping("/merge") |
| | | @RequiresPermissions("business:unionapply:create") |
| | | public ApiResponse merge(@RequestBody SaveUnionApplyDTO saveUnionApplyDTO) { |
| | | return ApiResponse.success(unionApplyService.merge(saveUnionApplyDTO)); |
| | | } |
| | | |
| | | @ApiOperation("å
³éåå¹¶å") |
| | | @GetMapping("/close") |
| | | @RequiresPermissions("business:unionapply:close") |
| | | public ApiResponse close(@RequestParam Integer id) { |
| | | unionApplyService.cancelMerge(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("ä¸ä¼ æä¿å") |
| | | @PostMapping("/uploadToubaodan") |
| | | @RequiresPermissions("business:unionapply:create") |
| | | public ApiResponse uploadToubaodan(@RequestBody UploadMultifileDTO uploadMultifileDTO) { |
| | | unionApplyService.uploadToubaodan(uploadMultifileDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("ç¾ç½²ç³è¯·å") |
| | | @PostMapping("/getSignLink") |
| | | @RequiresPermissions("business:unionapply:query") |
| | | public ApiResponse getSignLink(@RequestBody SmsCheckDTO smsCheckDTO) { |
| | | unionApplyService.getSignLink(smsCheckDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("ä¸ä¼ ä¿é©å") |
| | | @PostMapping("/uploadBXD") |
| | | @RequiresPermissions("business:unionchange:query") |
| | | public ApiResponse uploadBXD(@RequestBody UnionApplyBXDDTO unionApplyBXDDTO) { |
| | | unionApplyService.uploadBXD(unionApplyBXDDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.dto.SaveUnionChangeDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.dto.UnionChangeBXDDTO; |
| | | import com.doumee.dao.business.model.UnionChange; |
| | | import com.doumee.service.business.UnionChangeService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:unionchange:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(unionChangeService.findById(id)); |
| | | return ApiResponse.success(unionChangeService.getDetail(id)); |
| | | } |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("å建åå¹¶å") |
| | | @PostMapping("/merge") |
| | | @RequiresPermissions("business:unionchange:create") |
| | | public ApiResponse merge(@RequestBody SaveUnionChangeDTO saveUnionChangeDTO) { |
| | | return ApiResponse.success(unionChangeService.merge(saveUnionChangeDTO)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("å
³éåå¹¶å") |
| | | @GetMapping("/close") |
| | | @RequiresPermissions("business:unionchange:close") |
| | | public ApiResponse close(@RequestParam Integer id) { |
| | | unionChangeService.cancelMerge(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("ç¾ç½²ç³è¯·å") |
| | | @PostMapping("/getSignLink") |
| | | @RequiresPermissions("business:unionchange:query") |
| | | public ApiResponse getSignLink(@RequestBody SmsCheckDTO smsCheckDTO) { |
| | | unionChangeService.getSignLink(smsCheckDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("ä¸ä¼ ä¿é©å") |
| | | @PostMapping("/uploadBXD") |
| | | @RequiresPermissions("business:unionchange:query") |
| | | public ApiResponse uploadBXD(@RequestBody UnionChangeBXDDTO unionChangeBXDDTO) { |
| | | unionChangeService.uploadBXD(unionChangeBXDDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | } |