| | |
| | | </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 |
| | |
| | | if(this.form.type===0){ |
| | | getSignTBQRSLink(this.form).then(res => { |
| | | setTimeout(() => { |
| | | this.visiblePhone=false |
| | | window.open(res) |
| | | }, 500) |
| | | }).catch(err => { |
| | |
| | | } else if (flag === 1) { |
| | | getMemberListOnlineSignLink(this.form).then(res => { |
| | | setTimeout(() => { |
| | | this.visiblePhone=false |
| | | window.open(res) |
| | | }, 500) |
| | | }).catch(err => { |
| | |
| | | } else if (flag === 2) { |
| | | getSignLink(this.dataId).then(res => { |
| | | setTimeout(() => { |
| | | this.visiblePhone=false |
| | | window.open(res) |
| | | }, 500) |
| | | }).catch(err => { |
| | |
| | | <template> |
| | | <div> |
| | | <el-upload |
| | | ref="uploadFileBtn" |
| | | class="upload-demo" |
| | | :accept="uploadData.fileTyp" |
| | | :action="uploadImgUrl" |
| | |
| | | :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> |
| | | <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: () => {} |
| | |
| | | }, |
| | | 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.$message.success('上传成功') |
| | | 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 { |
| | |
| | | InsuranceApply update = new InsuranceApply(); |
| | | update.setEditDate(new Date()); |
| | | update.setEditor(model.getCreator()); |
| | | update.setStatus(Constants.InsuranceApplyStatus.WTB_UPLOAD.getKey()); |
| | | update.setStatus(Constants.InsuranceApplyStatus.WTB_COMPANY_APPLY_SIGNATURE.getKey()); |
| | | update.setCheckDate(update.getEditDate()); |
| | | update.setCheckInfo("企业完成签署方案确认书"); |
| | | update.setCheckUserId(model.getCreator()); |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //如果下载失败,清除合同,下次签章重新生成新合同 |
| | | return; |
| | | continue; |
| | | } |
| | | uploadSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | //委托保 企业签署投保确认书 |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //如果下载失败,清除合同,下次签章重新生成新合同 |
| | | return; |
| | | continue; |
| | | } |
| | | uploadFAQRSSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //如果下载失败,清除合同,下次签章重新生成新合同 |
| | | return; |
| | | continue; |
| | | } |
| | | uploadApplyMemberListSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | |
| | |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | | //如果下载失败,清除合同,下次签章重新生成新合同 |
| | | return; |
| | | continue; |
| | | } |
| | | uploadTBSQSSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | // return; |
| | | } |
| | | } |
| | | |
| | |
| | | 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; |
| | | } |
| | | } |
| | | |
| | |
| | | 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; |
| | |
| | | @Service |
| | | public class SolutionsServiceImpl implements SolutionsService { |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | @Autowired |
| | | private MultifileMapper multifileMapper; |
| | | @Autowired |
| | |
| | | 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(); |
| | |
| | | file.setObjType(Constants.MultiFile.SOLUTIONS_CONFIRMATION_LATTER.getKey()); |
| | | file.setType(Constants.formatIntegerNum(file.getType())); |
| | | multifileMapper.insert(file); |
| | | file.setObjId(newModel.getId()); |
| | | multifileMapper.insert(file); |
| | | } |
| | | } |
| | | |
| | |
| | | .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; |
| | | } |
| | | |