| | |
| | | color: #F95601 !important; |
| | | } |
| | | .apply-status5,.apply-status27,.change-status7,.settle-status7, |
| | | .tax-status1,.du-status1,.settle-status4 .union-apply-status3 { |
| | | .tax-status1,.du-status1,.settle-status4 ,.union-apply-status3 { |
| | | color: #00BA92 !important; |
| | | } |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="50%" |
| | | width="60%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | |
| | | </el-form-item> |
| | | <div v-for="(item,index) in this.model.applyList" :key="index"> |
| | | <el-form-item :label="(index+1)+'.被ä¿é©äººï¼'+item.companyName+')ï¼'" prop="tbdMultifileList[index]"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileIndex="index" :showTips="showTips" :fileList="model.applyList[index].fileList" @uploadSuccess="toubaoFileUploaded2" /> |
| | | <UploadFile @remove="deleIndex(0,index)" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileIndex="index" :showTips="showTips" :fileList="model.applyList[index].fileList" @uploadSuccess="toubaoFileUploaded2" /> |
| | | </el-form-item> |
| | | </div> |
| | | </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 label="ææä¿é©çææï¼"> |
| | | <span >{{( form.startTime|| '-') +' è³ '+( form.endTime|| '-')}}</span> |
| | | </el-form-item> |
| | | <el-form-item label="" > |
| | | <el-radio-group v-model="form.selectRadio" @change="selectChange"> |
| | |
| | | placeholder="éæ©æ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©çæèµ·æï¼"> |
| | | {{ form.startTime }} |
| | | <el-form-item label="ä¿é©çææ¢æï¼" prop="endTime" v-if="form.selectRadio === 1"> |
| | | <el-date-picker |
| | | v-model="form.endTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="éæ©æ¥æ"> |
| | | </el-date-picker> |
| | | </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 @remove="dele3" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | <UploadFile @remove="dele3" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | </el-form-item> |
| | | <div v-for="(item,index) in this.model.applyList" :key="index"> |
| | | <div class="box_table"> |
| | | <div class="box_table_head"> |
| | | <div class="box_table_head_item">åºå·</div> |
| | | <div class="box_table_head_item">被ä¿é©äºº</div> |
| | | <div class="box_table_head_item">æä¿äººæ°</div> |
| | | <div class="box_table_head_item">æä½</div> |
| | | <div class="box_table_head_item">æå¡è´¹(å½åä¿å)</div> |
| | | </div> |
| | | <div class="box_table_content" v-for="(item, index) in model.applyList" :key="index"> |
| | | <div class="box_table_content_item">{{index + 1}}</div> |
| | | <div class="box_table_content_item" >{{ item.companyName }}</div> |
| | | <div class="box_table_content_item">{{ item.insureNum }}</div> |
| | | <div class="box_table_content_item"> |
| | | <el-form-item label="" prop="bxdMultifileList[index]"> |
| | | <UploadFileLink @remove="deleIndex(1,index)" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileIndex="index" :showTips="showTips" :fileList="model.applyList[index].fileList1" @uploadSuccess="baoxianFileUploaded2" /> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="box_table_content_item"> <el-input style="width: 60%" v-model="form.bxdMultifileList[index].serverMoney" placeholder="请è¾å
¥" ></el-input> |
| | | <span style="margin-left: 15px">å
/人</span></div> |
| | | </div> |
| | | </div> |
| | | <!-- <div v-for="(item,index) in this.model.applyList" :key="index"> |
| | | <el-form-item :label="item.companyName" prop="bxdMultifileList[index]"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileIndex="index" :showTips="showTips" :fileList="model.applyList[index].fileList1" @uploadSuccess="baoxianFileUploaded2" /> |
| | | </el-form-item> |
| | | </div> |
| | | </div>--> |
| | | </el-form> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="doSubmit">ç¡® å®</el-button> |
| | |
| | | uploadToubaodan |
| | | } from '@/api/business/unionApply' |
| | | import UploadFile from '@/components/common/UploadFile' |
| | | import UploadFileLink from '@/components/common/UploadFileLink' |
| | | |
| | | export default { |
| | | name: 'OperaUnionApplyCheckWindow', |
| | | extends: BaseOpera, |
| | | components: { UploadFile, GlobalWindow }, |
| | | components: { UploadFile, GlobalWindow ,UploadFileLink}, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | |
| | | startTime: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | endTime: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | baoxianFile: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ] |
| | |
| | | backCheckInfo: '', |
| | | editCheckInfo: '', |
| | | startTime: null, |
| | | endTime: null, |
| | | code: null, |
| | | toubaodanFile: null, |
| | | baoxianFile: null, |
| | |
| | | this.form.toubaodanFile= null |
| | | }, |
| | | deleIndex (flag,index) { |
| | | if(flag == 0) |
| | | this.form.tbdMultifileList[index].fileurl = null |
| | | this.form.tbdMultifileList[index].name = null |
| | | alert(index) |
| | | if(flag == 0){ |
| | | this.form.tbdMultifileList[index].fileurl = null |
| | | this.form.tbdMultifileList[index].name = null |
| | | }else if(flag ==1){ |
| | | this.form.bxdMultifileList[index].fileUrl = null |
| | | this.form.bxdMultifileList[index].fileName = null |
| | | } |
| | | }, |
| | | dele3 () { |
| | | this.form.baoxianFile = null |
| | |
| | | editDate: '', |
| | | editCode: '', |
| | | startTime: null, |
| | | endTime: null, |
| | | code: null, |
| | | toubaodanFile: null, |
| | | baoxianFile: null, |
| | | editBaoxianFile: null, |
| | | tbdMultifileList:[], |
| | | bxdMultifileList:[], |
| | | fileList: [], |
| | | fileList1: [], |
| | | selectRadio: 0 |
| | |
| | | |
| | | this.model = target |
| | | this.form.startTime = target.startTime |
| | | this.form.endTime = target.endTime |
| | | this.title = title |
| | | this.flag = flag |
| | | this.visible1 = false |
| | |
| | | if(this.model.applyList){ |
| | | this.model.applyList.forEach(item =>{ |
| | | item.fileList1 =[] |
| | | this.form.bxdMultifileList.push({objId:item.id,fileurl:null,name:null}) |
| | | this.form.bxdMultifileList.push({applyId:item.id,serverMoney:0,fileUrl:null,fileName:null}) |
| | | }) |
| | | } |
| | | } |
| | |
| | | selectChange () { |
| | | if (this.form.selectRadio == 0) { |
| | | this.form.startTime = this.model.startTime |
| | | this.form.endTime = this.model.endTime |
| | | } else { |
| | | this.form.startTime = '' |
| | | // this.form.startTime = '' |
| | | // this.form.endTime = '' |
| | | } |
| | | }, |
| | | toubaoFileUploaded (data) { |
| | |
| | | this.form.baoxianFile = data |
| | | }, |
| | | baoxianFileUploaded2 (data) { |
| | | this.form.bxdMultifileList[data.index].fileurl = data.fileurl |
| | | this.form.bxdMultifileList[data.index].name = data.name |
| | | this.form.bxdMultifileList[data.index].fileUrl = data.fileurl |
| | | this.form.bxdMultifileList[data.index].fileName = data.name |
| | | }, |
| | | backDo () { |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | uploadBXD({ id: this.model.id, startTime: this.form.startTime, code: this.form.code, baoxiandanFile: this.form.baoxianFile }) |
| | | var param ={ |
| | | id: this.model.id, |
| | | startTime: this.form.startTime, |
| | | endTime: this.form.endTime, |
| | | code: this.form.code, |
| | | fileUrl: this.form.baoxianFile.fileurl, |
| | | fileName: this.form.baoxianFile.name, |
| | | unionApplyBXDDDetailDTOList:this.form.bxdMultifileList |
| | | } |
| | | console.log(param) |
| | | uploadBXD(param) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | |
| | | } |
| | | } |
| | | } |
| | | .box_table { |
| | | width: 100%; |
| | | border-top: 1px solid #b4bbc5; |
| | | border-left: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | .box_table_head { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | .box_table_head_item1 { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #f2f2f2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | } |
| | | .box_table_head_item { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #f2f2f2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(1) { |
| | | flex: 0.5;; |
| | | } |
| | | &:nth-child(2) { |
| | | flex:1.5; |
| | | } |
| | | &:nth-child(4) { |
| | | flex:1.5; |
| | | } |
| | | &:nth-child(5) { |
| | | flex: 1.5;; |
| | | } |
| | | } |
| | | .box_table_head_item5 { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #f2f2f2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(2) { |
| | | flex: 5; |
| | | } |
| | | } |
| | | .box_form_item { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #ffffff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(1) { |
| | | //flex: 0.5; |
| | | } |
| | | } |
| | | } |
| | | .box_table_content { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | .box_table_content_header{ |
| | | border-bottom: 0px solid #b4bbc5 !important; |
| | | } |
| | | .box_table_content_item { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #ffffff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(1) { |
| | | flex: 0.5;; |
| | | } |
| | | &:nth-child(2) { |
| | | flex:1.5; |
| | | } |
| | | &:nth-child(4) { |
| | | flex: 1.5; |
| | | } |
| | | &:nth-child(5) { |
| | | flex: 1.5; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <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> |
| | | <el-button v-if="[1,2,3].includes(model.unionApplyTbdStatus) &&(model.toubaodanFile || model.oubaodanSignedFile)" type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="[3].includes(model.unionApplyTbdStatus) &&(model.baoxiandanFile)" 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> |
| | |
| | | <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="[1,2,3].includes(model.unionApplyTbdStatus) &&(model.toubaodanFile || model.oubaodanSignedFile)" type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="[3].includes(model.unionApplyTbdStatus) &&(model.baoxiandanFile)" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <el-button v-if="model.status == 22" type="primary" @click="$refs.InsuranceDetails.open('æä¿å®¡æ ¸',model,1)">æä¿å®¡æ ¸</el-button> |
| | | <el-button v-if="[20,21,22].includes(model.status)" type="danger" @click="$refs.OperaWtbApplyCheckWindow.open('éåæä¿',model,1)">éåç³è¯·</el-button> |
| | | <el-button v-if="model.status == 23" type="danger" @click="$refs.OperaWtbApplyCheckWindow.open('å
³éç³è¯·',model,2)">å
³éç³è¯·</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> |
| | | <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) &&(model.toubaodanFile || model.oubaodanSignedFile)" type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="[3].includes(model.unionApplyTbdStatus) &&(model.baoxiandanFile)" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | </template> |
| | | </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>ä¿åç¶æï¼<span :class="'union-apply-status'+model.status" >{{ model.statusInfo }}</span></span> |
| | | <span>æäº¤æ¶é´ï¼{{ model.createDate }}</span> |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | |
| | | :on-error="uploadError" |
| | | :before-upload="beforeFileUpload" |
| | | :file-list="fileList"> |
| | | <el-button size="small" type="primary" >ç¹å»ä¸ä¼ </el-button> |
| | | <el-button size="small" type="primary" >ç¹å»ä¸ä¼ </el-button> |
| | | <div style="display: inline-block;position: absolute" slot="tip" class="el-upload__tip" v-if="showTips">{{'(åªè½ä¸ä¼ '+uploadData.fileType +'æä»¶ï¼ä¸ä¸è¶
è¿5mb)'}}</div> |
| | | </el-upload> |
| | | </div> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | uploaded:false, |
| | | // fileList:[], |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload?folder='+this.uploadData.folder |
| | | } |
| | |
| | | fileList (nv,ov) { |
| | | if(this.fileList ==null){ |
| | | this.fileList = new Array(); |
| | | } |
| | | if(this.fileList.length == 0){ |
| | | this.uploaded = false |
| | | }else{ |
| | | this.uploaded=true |
| | | } |
| | | // alert(this.fileList) |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | removes() { |
| | | this.uploaded=false |
| | | this.$emit('remove') |
| | | }, |
| | | // ä¸ä¼ å¾ç |
| | |
| | | handleFileSuccess(res, file) { |
| | | if (res.code == 200) { |
| | | let { data } = res |
| | | this.uploaded = true |
| | | // this.fileList = [{name: data.originname, url: data.url }] |
| | | this.$message.success('ä¸ä¼ æå') |
| | | this.$emit('uploadSuccess', { fileurl: data.imgaddr, fileurlFull: data.url, name: data.originname ,index:this.fileIndex}) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <el-upload |
| | | ref="uploadFileBtn" |
| | | class="upload-demo" |
| | | :accept="uploadData.fileType" |
| | | :action="uploadImgUrl" |
| | | :limit="1" |
| | | :before-remove="removes" |
| | | :on-exceed="handleExceed" |
| | | :on-success="handleFileSuccess" |
| | | :on-error="uploadError" |
| | | :before-upload="beforeFileUpload" |
| | | :file-list="fileList"> |
| | | <a v-if="!uploaded" size="small" type="primary" >ç¹å»ä¸ä¼ </a> |
| | | <div style="display: inline-block;position: absolute" slot="tip" class="el-upload__tip" v-if="showTips">{{'(åªè½ä¸ä¼ '+uploadData.fileType +'æä»¶ï¼ä¸ä¸è¶
è¿5mb)'}}</div> |
| | | </el-upload> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | fileList:{ |
| | | type: Array, |
| | | default: () => [] |
| | | }, |
| | | file: { |
| | | type: Object, |
| | | default: () => {} |
| | | }, |
| | | fileIndex: { |
| | | type: Number, |
| | | default: () =>0 |
| | | }, |
| | | showTips: { |
| | | type: Boolean, |
| | | default: () => true |
| | | }, |
| | | customStyle: { |
| | | type: String, |
| | | default: 'width: 190px; height: 190px;' |
| | | }, |
| | | uploadData: Object |
| | | }, |
| | | data() { |
| | | return { |
| | | uploaded:false, |
| | | // 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(); |
| | | } |
| | | if(this.fileList.length == 0){ |
| | | this.uploaded = false |
| | | }else{ |
| | | this.uploaded=true |
| | | } |
| | | // alert(this.fileList) |
| | | }, |
| | | tipsLabel (nv,ov) { |
| | | if(this.tipsLabel ==null){ |
| | | this.tipsLabel = '' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | removes() { |
| | | this.uploaded=false |
| | | this.$emit('remove') |
| | | }, |
| | | // ä¸ä¼ å¾ç |
| | | handleExceed(){ |
| | | this.$message.error('åªå
许ä¸ä¼ 1个æä»¶ï¼è¯·å é¤å·²ä¼ æä»¶ï¼éè¯ï¼') |
| | | }, |
| | | handleFileSuccess(res, file) { |
| | | if (res.code == 200) { |
| | | let { data } = res |
| | | this.uploaded = true |
| | | // this.fileList = [{name: data.originname, url: data.url }] |
| | | this.$message.success('ä¸ä¼ æå') |
| | | this.$emit('uploadSuccess', { fileurl: data.imgaddr, fileurlFull: data.url, name: data.originname ,index:this.fileIndex}) |
| | | } else { |
| | | this.$message.apiFailed('ä¸ä¼ 失败') |
| | | } |
| | | this.$emit('uploadEnd') |
| | | }, |
| | | uploadError() { |
| | | this.$message.apiFailed('ä¸ä¼ 失败') |
| | | this.$emit('endUpload') |
| | | }, |
| | | // // æ¦æª |
| | | beforeFileUpload(file) { |
| | | |
| | | this.$emit('uploadBegin') |
| | | return true |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | $image-width: 150px; |
| | | .avatar-uploader { |
| | | width: $image-width; |
| | | height: $image-width; |
| | | } |
| | | ::v-deep .el-upload { |
| | | //border: 1px dashed #d9d9d9; |
| | | border-radius: 6px; |
| | | cursor: pointer; |
| | | position: relative; |
| | | width: 150px; |
| | | height: 30px; |
| | | margin-top: 25px; |
| | | overflow: hidden; |
| | | color: #2E68EC; |
| | | display: inline-block; |
| | | } |
| | | .avatar-uploader .el-upload:hover { |
| | | border-color: #409EFF; |
| | | } |
| | | .avatar-uploader-icon { |
| | | line-height: 90px; |
| | | font-size: 28px; |
| | | color: #8c939d; |
| | | width: $image-width; |
| | | height: $image-width; |
| | | text-align: center; |
| | | } |
| | | .avatar { |
| | | width: $image-width; |
| | | height: $image-width; |
| | | display: block; |
| | | }#67C23A |
| | | .tips-style { |
| | | height: 13px; |
| | | font-size: 13px; |
| | | font-weight: 400; |
| | | color: #999999; |
| | | line-height: 13px; |
| | | } |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | ::v-deep .el-upload--picture-card{ |
| | | width: 90px !important; |
| | | height: 90px !important; |
| | | } |
| | | ::v-deep .el-upload-list__item-name{ |
| | | color: #67C23A; |
| | | } |
| | | ::v-deep .el-upload-list{ |
| | | position: absolute; |
| | | left: 0; |
| | | top: 20px; |
| | | } |
| | | ::v-deep .el-upload-list__item { |
| | | width: 150px !important; |
| | | height: 100% !important; |
| | | display: inline-block; |
| | | } |
| | | .icon { |
| | | -webkit-transform: translate(-50%,-50%); |
| | | -ms-transform: translate(-50%,-50%); |
| | | transform: translate(0%, -85%); |
| | | } |
| | | |
| | | </style> |
| | | |
| | |
| | | |
| | | |
| | | |
| | | public enum UnionChangeStatus { |
| | | public enum åæ· { |
| | | MERGE(0, "å¾
ç¾ç½²",""), |
| | | UPLOAD_INSURANCE_POLICY(1, "å¾
åºå",""), |
| | | FINISH(2, "ä¿éä¸",""), |
| | |
| | | |
| | | |
| | | // æé æ¹æ³ |
| | | UnionChangeStatus(int key, String name,String info) { |
| | | åæ·(int key, String name,String info) { |
| | | this.name = name; |
| | | this.key = key; |
| | | this.info = info; |
| | |
| | | |
| | | // æ®éæ¹æ³ |
| | | public static String getName(int index) { |
| | | for (UnionChangeStatus c : UnionChangeStatus.values()) { |
| | | for (åæ· c : åæ·.values()) { |
| | | if (c.getKey() == index) { |
| | | return c.name; |
| | | } |
| | |
| | | return null; |
| | | } |
| | | public static String getInfo(int index) { |
| | | for (UnionChangeStatus c : UnionChangeStatus.values()) { |
| | | for (åæ· c : åæ·.values()) { |
| | | if (c.getKey() == index) { |
| | | return c.info; |
| | | } |
| | |
| | | List<UnionApplyBXDDetailDTO> unionApplyBXDDetailDTOList = unionApplyBXDDTO.getUnionApplyBXDDDetailDTOList(); |
| | | |
| | | //æææä¿ç³è¯·ä¿åæç»è¡ |
| | | List<ApplyDetail> applyDetailList = applyDetailJoinMapper.selectList(new QueryWrapper<ApplyDetail>().lambda().select(ApplyDetail::getPrice) |
| | | List<ApplyDetail> applyDetailList = applyDetailJoinMapper.selectList(new QueryWrapper<ApplyDetail>().lambda() |
| | | .select(ApplyDetail::getId,ApplyDetail::getApplyId,ApplyDetail::getPrice) |
| | | .in(ApplyDetail::getUnionApplyId,unionApply.getId())); |
| | | //æ»å¤©æ° |
| | | Integer maxDays = DateUtil.calculateBetween(unionApplyBXDDTO.getStartTime(),unionApplyBXDDTO.getEndTime(),0); |
| | |
| | | List<InsuranceApply> insuranceApplyList = insuranceApplyJoinMapper.selectList(new QueryWrapper<InsuranceApply>() |
| | | .lambda().eq(InsuranceApply::getUnionApplyId,unionApply.getId())); |
| | | for (InsuranceApply insuranceApply:insuranceApplyList) { |
| | | BigDecimal price = insuranceApply.getPrice(); |
| | | Optional<UnionApplyBXDDetailDTO> unionApplyBXDDDetailTO= unionApplyBXDDetailDTOList.stream().filter(m->m.getApplyId().equals(insuranceApply.getId())).findFirst(); |
| | | BigDecimal price = Constants.formatBigdecimal(insuranceApply.getPrice()); |
| | | Optional<UnionApplyBXDDetailDTO> unionApplyBXDDDetailTO= unionApplyBXDDetailDTOList.stream().filter( |
| | | m->m.getApplyId().equals(insuranceApply.getId())).findFirst(); |
| | | if(unionApplyBXDDDetailTO.isPresent()){ |
| | | UnionApplyBXDDetailDTO unionApplyBXDDetailDTO = unionApplyBXDDDetailTO.get(); |
| | | price = price.add(unionApplyBXDDetailDTO.getServerMoney()); |
| | | price = Constants.formatBigdecimal(price).add(Constants.formatBigdecimal(unionApplyBXDDetailDTO.getServerMoney())); |
| | | //ä¸ä¼ ä¿åä¿¡æ¯ |
| | | if(StringUtils.isNotBlank(unionApplyBXDDetailDTO.getFileUrl())){ |
| | | Multifile multifile = new Multifile(); |
| | |
| | | currentFee = new BigDecimal(useDays).multiply(price); |
| | | } |
| | | |
| | | List<ApplyDetail> applyDetails = applyDetailList.stream().filter(m->m.getApplyId().equals(insuranceApply.getId())).collect(Collectors.toList()); |
| | | List<ApplyDetail> applyDetails = applyDetailList.stream() |
| | | .filter(m->Constants.equalsInteger(m.getApplyId(),(insuranceApply.getId()))).collect(Collectors.toList()); |
| | | //æ´æ°æä¿ç³è¯·å |
| | | insuranceApplyJoinMapper.update(null,new UpdateWrapper<InsuranceApply>().lambda() |
| | | .set(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WTB_DONE.getKey()) |
| | |
| | | |
| | | unionApplyMapper.update(null,new UpdateWrapper<UnionApply>() |
| | | .lambda() |
| | | .set(UnionApply::getStatus,Constants.UnionApplyStatus.FINISH) |
| | | .set(UnionApply::getStatus,Constants.UnionApplyStatus.FINISH.getKey()) |
| | | .set(UnionApply::getEditDate,new Date()) |
| | | .set(UnionApply::getEditor,user.getId()) |
| | | .set(UnionApply::getStartTime,unionApplyBXDDTO.getStartTime()) |