| | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/yyb_admin_api/' |
| | | |
| | | # 任康 |
| | | VUE_APP_API = 'http://192.168.0.137:10030/' |
| | | VUE_APP_API = 'http://192.168.0.147:10030/' |
| | |
| | | |
| | | #VUE_APP_API = 'https://dmtest.ahapp.net/yyb_web_api/' |
| | | |
| | | VUE_APP_API = 'http://192.168.0.137:10031/' |
| | | VUE_APP_API = 'http://192.168.0.147:10031/' |
| | | |
| | | # VUE_APP_API = 'https://www.yyb.red/yyb_web_api/' |
| | |
| | | VUE_APP_SYSTEM_TITLE = '云易保客户服务系统-商户端' |
| | | #VUE_APP_API = 'https://www.yyb.red/yyb_shop_api/' |
| | | |
| | | VUE_APP_API = 'http://192.168.0.137:10032/' |
| | | VUE_APP_API = 'http://192.168.0.147:10032/' |
| | | |
| | | #VUE_APP_API = 'http://localhost:10032/' |
| | | |
| | |
| | | <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-tab-pane :label="model.hasDispatchUnit !== 1 ? '更换派遣单位' : '更换工种记录'" name="2"></el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <div class="desc_item_search"> |
| | |
| | | <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" :limit="99" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | </el-form-item> |
| | | <!-- <div class="box_table">--> |
| | | <!-- <div class="box_table_head">--> |
| | |
| | | extends: BaseOpera, |
| | | components: { UploadFile, GlobalWindow ,UploadFileLink}, |
| | | data () { |
| | | const checkFile = (rule, value, callback) => { |
| | | if (value.length === 0) { |
| | | callback(new Error('请上传批单')); |
| | | } else { |
| | | callback(); |
| | | } |
| | | }; |
| | | return { |
| | | // 表单数据 |
| | | model: {}, |
| | |
| | | { required: true, message: '请完善信息' } |
| | | ], |
| | | baoxianFile: [ |
| | | { required: true, message: '请完善信息' } |
| | | { required: true, validator: checkFile } |
| | | ] |
| | | }, |
| | | form: { |
| | |
| | | applyTime: null, |
| | | delValidTime: null, |
| | | code: null, |
| | | baoxianFile: null, |
| | | baoxianFile: [], |
| | | bxdMultifileList: [], |
| | | fileList1: [], |
| | | selectRadio: 0 |
| | |
| | | this.form.bxdMultifileList[index].name = null |
| | | } |
| | | }, |
| | | dele3 () { |
| | | this.form.baoxianFile = null |
| | | dele3 (imgaddr) { |
| | | this.form.baoxianFile.forEach((item, index) => { |
| | | if (imgaddr === item.imgaddr) { |
| | | this.form.baoxianFile.splice(index, 1) |
| | | } |
| | | }) |
| | | }, |
| | | open (title, target, flag) { |
| | | this.visible = true |
| | |
| | | backCheckInfo: '', |
| | | startTime: null, |
| | | code: null, |
| | | baoxianFile: null, |
| | | baoxianFile: [], |
| | | delValidTime: null, |
| | | bxdMultifileList:[], |
| | | fileList1: [], |
| | |
| | | } |
| | | }, |
| | | baoxianFileUploaded (data) { |
| | | this.form.baoxianFile = data |
| | | this.form.baoxianFile.push(data) |
| | | console.log(this.form.baoxianFile) |
| | | }, |
| | | baoxianFileUploaded2 (data) { |
| | | this.form.bxdMultifileList[data.index].fileurl = data.fileurl |
| | |
| | | applyDate: (this.model.delOnlyReplace != 1 ? this.form.applyTime : this.form.delValidTime), |
| | | delValidTime:this.form.delValidTime, |
| | | code: this.form.code, |
| | | fileurl: this.form.baoxianFile.fileurl, |
| | | name: this.form.baoxianFile.name, |
| | | pidanFileList: this.form.baoxianFile, |
| | | // fileurl: this.form.baoxianFile.fileurl, |
| | | // name: this.form.baoxianFile.name, |
| | | applyChangeBXDList:this.form.bxdMultifileList |
| | | } |
| | | uploadBXD(param) |
| | |
| | | label="被保险人"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-if="hasDispatchUnit !== 1" |
| | | prop="duName" |
| | | label="派遣单位"> |
| | | </el-table-column> |
| | |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="查看保险单" |
| | | title="查看批单" |
| | | :visible.sync="visibleFile" |
| | | width="500px" |
| | | :modal="true" |
| | | width="700px" |
| | | :modal="false" |
| | | :show-close="true" |
| | | :close-on-click-modal="false" |
| | | append-to-body |
| | | center> |
| | | <div class="desc_item_from" v-for="(item, index) in pidanFileData" :key="index" style="margin-bottom: 15px"> |
| | | <span v-if="index ==0">{{item.name}}:</span> |
| | | <span v-if="index >0">被保险人({{item.name}})保险单:</span> |
| | | <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index ==0" @click="openFile(item.file.fileurlFull,item.name)">在线预览</a> |
| | | <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index !=0 " @click="openFile(item.file.fileurlFull,'被保险人('+item.name+')保险单')">在线预览</a> |
| | | <span v-if="!item.file || !item.file.fileurl">未上传</span> |
| | | </div> |
| | | <el-table |
| | | :data="model.pidanFileList" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="name" |
| | | label="名称"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | width="90" |
| | | label="操作"> |
| | | <template slot-scope="{ row }"> |
| | | <el-button type="primary" @click="seePidan(row.name, row.fileurlFull)">查看</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- <div class="desc_item_from" v-for="(item, index) in pidanFileData" :key="index" style="margin-bottom: 15px">--> |
| | | <!-- <span v-if="index ==0">{{item.name}}:</span>--> |
| | | <!-- <span v-if="index >0">被保险人({{item.name}})保险单:</span>--> |
| | | <!-- <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index ==0" @click="openFile(item.file.fileurlFull,item.name)">在线预览</a>--> |
| | | <!-- <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index !=0 " @click="openFile(item.file.fileurlFull,'被保险人('+item.name+')保险单')">在线预览</a>--> |
| | | <!-- <span v-if="!item.file || !item.file.fileurl">未上传</span>--> |
| | | <!-- </div>--> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="visibleFile=false">关 闭</el-button> |
| | | </span> |
| | |
| | | model: {}, |
| | | visiblePhone: false, |
| | | visibleFile:false, |
| | | hasDispatchUnit: null, |
| | | form: { |
| | | businessId: null, |
| | | phone: this.$store.state.userInfo.company? this.$store.state.userInfo.company.phone:null, |
| | |
| | | this.getDetail() |
| | | this.getList() |
| | | }, |
| | | seePidan(name, url) { |
| | | this.$refs.OperaPdfViewerWindow.open(name, url) |
| | | }, |
| | | send () { |
| | | sendSms({ |
| | | phone: this.form.phone |
| | |
| | | this.model = res |
| | | this.tableData = new Array() |
| | | this.tableData.push(res) |
| | | console.log(this.tableData) |
| | | this.pidanFileData.push({ name: '商户保险单', file: this.model.pidanFile }) |
| | | this.getApplyList() |
| | | }).catch(err => { |
| | |
| | | getApplyList () { |
| | | applyList({ unionChangeId: this.model.id, getFiles: 1 }).then(res => { |
| | | this.model.applyList = res |
| | | this.hasDispatchUnit = res[0].hasDispatchUnit |
| | | if (res && res.length > 0) { |
| | | res.forEach(item => { |
| | | if (item.pidanFile) { |
| | |
| | | <el-form-item label="上传批单:" prop="baoxianFile"> |
| | | <UploadFile @remove="dele3" :limit="99" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | </el-form-item> |
| | | <div class="box_table"> |
| | | <div class="box_table_head"> |
| | | <div class="box_table_head_item">序号</div> |
| | | <div class="box_table_head_item">被保险人</div> |
| | | <div v-if="model.type==0" class="box_table_head_item">加保人数</div> |
| | | <div v-if="model.type==0" class="box_table_head_item">减保人数</div> |
| | | <div v-if="model.type==1" class="box_table_head_item">变更人数</div> |
| | | <div class="box_table_head_item">上传批单</div> |
| | | </div> |
| | | <div class="box_table_content" v-for="(item, index) in model.applyList" :key="index"> |
| | | <div class="box_table_content_item">{{index + 1}}</div> |
| | | <div class="box_table_content_item" >{{ item.companyName }}</div> |
| | | <div v-if="model.type==0" class="box_table_content_item">{{ item.addNum }}</div> |
| | | <div v-if="model.type==0" class="box_table_content_item">{{ item.delNum }}</div> |
| | | <div v-if="model.type==1" class="box_table_content_item">{{ item.changeNum }}</div> |
| | | <div class="box_table_content_item"> |
| | | <el-form-item label="" prop="bxdMultifileList[index]"> |
| | | <UploadFileLink @remove="deleIndex(1,index)" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileIndex="index" :showTips="showTips" :fileList="model.applyList[index].fileList1" @uploadSuccess="baoxianFileUploaded2" /> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="box_table">--> |
| | | <!-- <div class="box_table_head">--> |
| | | <!-- <div class="box_table_head_item">序号</div>--> |
| | | <!-- <div class="box_table_head_item">被保险人</div>--> |
| | | <!-- <div v-if="model.type==0" class="box_table_head_item">加保人数</div>--> |
| | | <!-- <div v-if="model.type==0" class="box_table_head_item">减保人数</div>--> |
| | | <!-- <div v-if="model.type==1" class="box_table_head_item">变更人数</div>--> |
| | | <!-- <div class="box_table_head_item">上传批单</div>--> |
| | | <!-- </div>--> |
| | | <!-- <div class="box_table_content" v-for="(item, index) in model.applyList" :key="index">--> |
| | | <!-- <div class="box_table_content_item">{{index + 1}}</div>--> |
| | | <!-- <div class="box_table_content_item" >{{ item.companyName }}</div>--> |
| | | <!-- <div v-if="model.type==0" class="box_table_content_item">{{ item.addNum }}</div>--> |
| | | <!-- <div v-if="model.type==0" class="box_table_content_item">{{ item.delNum }}</div>--> |
| | | <!-- <div v-if="model.type==1" class="box_table_content_item">{{ item.changeNum }}</div>--> |
| | | <!-- <div class="box_table_content_item">--> |
| | | <!-- <el-form-item label="" prop="bxdMultifileList[index]">--> |
| | | <!-- <UploadFileLink @remove="deleIndex(1,index)" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileIndex="index" :showTips="showTips" :fileList="model.applyList[index].fileList1" @uploadSuccess="baoxianFileUploaded2" />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | </el-form> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="doSubmit">确 定</el-button> |
| | |
| | | <el-button v-if="[1,2].includes(model.status)" type="primary" @click="viewApplyFile">查看申请单</el-button> |
| | | <el-button v-if="[0].includes(model.status)" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">签署申请单</el-button> |
| | | <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">查看批单</el-button> |
| | | <el-button v-if=" [1].includes(model.status)" type="primary" @click="$refs.OperaUnionChangeCheckWindow.open('上传批单',model,3)">上传批单</el-button> |
| | | <el-button v-if=" [1].includes(model.status) && userInfo.type !== 2" type="primary" @click="$refs.OperaUnionChangeCheckWindow.open('上传批单',model,3)">上传批单</el-button> |
| | | <el-button v-if="[0,1].includes(model.status)" type="danger" @click="$refs.OperaUnionChangeCheckWindow.open('退回申请',model,1)">退回申请</el-button> |
| | | </template> |
| | | <template v-if="0"> |
| | |
| | | <el-button v-if="model.status == 24" type="primary" @click="$refs.OperaInsuranceApplyAddWindow.open('投保申请', {id: dataId})">再次投保</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) && model.shenqingdanFile" type="primary" @click="viewShenqingdan">查看申请单</el-button> |
| | | <el-button v-if="[1,2,3].includes(model.unionApplyTbdStatus) &&(model.toubaodanFile || model.toubaodanSignedFile)" type="primary" @click="viewToubaodan">查看投保单</el-button> |
| | | <el-button v-if="[1,2,3].includes(model.unionApplyTbdStatus) && (model.toubaodanFile || model.toubaodanSignedFile) && model.signType !== 1" 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" :disabled="loading" :loading="loading" @click="getSignLink(0)">签署方案确认书</el-button> |
| | |
| | | <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-tab-pane :label="model.hasDispatchUnit !== 1 ? '更换派遣单位' : '更换工种记录'" name="2"></el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <div class="desc_item_search"> |
| | |
| | | <template v-if="userInfo.type === 2"> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('导出详单',model,0)">导出详单</el-button> |
| | | <el-button v-if="[0].includes(model.status) " type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('上传投保单',model,2)">上传投保单</el-button> |
| | | <el-button v-if="model.status == 1" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">签署投保单</el-button> |
| | | <el-button v-if="[2,3,4].includes(model.status)" type="primary" @click="viewToubaodan">查看投保单</el-button> |
| | | <el-button v-if="model.status == 1" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">{{model.signType === 1 ? '签署申请单' : '签署投保单'}}</el-button> |
| | | <el-button v-if="[2,3,4].includes(model.status)" type="primary" @click="viewToubaodan">{{model.signType === 1 ? '查看申请单' : '查看投保单'}}</el-button> |
| | | <!-- <el-button v-if="[2].includes(model.status) " type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('上传保险单',model,3)">上传保险单</el-button>--> |
| | | <el-button v-if="model.status == 3" type="primary" @click="viewBaoxiandan">查看保险单</el-button> |
| | | <el-button v-if="[0,1,2].includes(model.status) " type="danger" @click="$refs.OperaUnionApplyCheckWindow.open('退回申请',model,1)">退回申请</el-button> |
| | | </template> |
| | | <template v-if="userInfo.type ===0"> |
| | | <el-button v-if="[2,3,4,1,5].includes(model.status) && (model.toubaodanFile || model.toubaodanSignedFile)" type="primary" @click="viewToubaodan">查看投保单</el-button> |
| | | <el-button v-if="[2,3,4,1,5].includes(model.status) && (model.toubaodanFile || model.toubaodanSignedFile)" type="primary" @click="viewToubaodan">{{model.signType === 1 ? '查看申请单' : '查看投保单'}}</el-button> |
| | | <el-button v-if="[0].includes(model.status) " type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('上传投保单',model,2)">上传投保单</el-button> |
| | | <el-button v-if="[0, 1].includes(model.status)" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">签署投保单</el-button> |
| | | <el-button v-if="[0, 1].includes(model.status)" type="primary" :disabled="loading" :loading="loading" @click="getSignLink(0)">{{model.signType === 1 ? '签署申请单' : '签署投保单'}}</el-button> |
| | | <el-button v-if="[0,1,2,5].includes(model.status) " type="danger" @click="$refs.OperaUnionApplyCheckWindow.open('退回申请',model,1)">退回申请</el-button> |
| | | <el-button v-if="[2].includes(model.status)" type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('上传保险单',model,3)">上传保险单</el-button> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('导出详单',model,0)">导出详单</el-button> |
| | |
| | | this.$message.warning('请先选择保险方案') |
| | | return |
| | | } |
| | | this.$refs.importEmployees.open('上传名单', { arr: this.tableData, solutionId: this.form.solutionId, type: 1, price: this.price }) |
| | | this.$refs.importEmployees.open('上传名单', { arr: this.tableData, solutionId: this.form.solutionId, type: 1, hasDispatchUnit: this.item.hasDispatchUnit, price: this.price }) |
| | | }, |
| | | // 切换方案 |
| | | changeSolution (e) { |
| | |
| | | } |
| | | |
| | | if (this.activeName === '0') { |
| | | this.$refs.importEmployees.open('加保员工名单', { arr: this.form.addDetailList, type: 1, price: this.price, solutionId: this.item.newVersionSolutionId }) |
| | | this.$refs.importEmployees.open('加保员工名单', { arr: this.form.addDetailList, type: 1, price: this.price, hasDispatchUnit: this.item.hasDispatchUnit, solutionId: this.item.newVersionSolutionId }) |
| | | } else { |
| | | this.$refs.importEmployees.open('减保员工名单', { arr: this.form.delDetailList, type: 0, price: this.reducePrice, solutionId: this.item.newVersionSolutionId, insuranceApplyId: this.form.id }) |
| | | this.$refs.importEmployees.open('减保员工名单', { arr: this.form.delDetailList, type: 0, price: this.reducePrice, hasDispatchUnit: this.item.hasDispatchUnit, solutionId: this.item.newVersionSolutionId, insuranceApplyId: this.form.id }) |
| | | } |
| | | }, |
| | | // 切换方案 |
| | |
| | | this.$message.warning('请先选择保险方案') |
| | | return |
| | | } |
| | | this.$refs.importEmployees.open('上传名单', { arr: this.form.factory, price: this.price }) |
| | | this.$refs.importEmployees.open('上传名单', { arr: this.form.factory, price: this.price, hasDispatchUnit: this.item.hasDispatchUnit }) |
| | | }, |
| | | // 切换方案 |
| | | changeSolution1 (e) { |
| | |
| | | applyId: null, |
| | | addList: [], |
| | | delList: [], |
| | | fileName: '' |
| | | fileName: '', |
| | | hasDispatchUnit: null |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | this.applyId = obj.insuranceApplyId |
| | | this.list = obj.arr |
| | | this.price = obj.price |
| | | this.hasDispatchUnit = obj.hasDispatchUnit |
| | | this.importing= false |
| | | this.confirming= false |
| | | }, |
| | |
| | | exportTemplate () { |
| | | // 投保申请 |
| | | if (this.type === 1) { |
| | | window.open('/template/personnel_add.xlsx') |
| | | if (this.hasDispatchUnit === 1) { |
| | | window.open('/template/personnel_no.xlsx') |
| | | } else { |
| | | window.open('/template/personnel_add.xlsx') |
| | | } |
| | | } else { |
| | | window.open('/template/personnel_reduce.xlsx') |
| | | } |
| | |
| | | <el-option label="待审核" value="1"></el-option> |
| | | <el-option label="已生效" value="2"></el-option> |
| | | <el-option label="申请退回" value="3"></el-option> |
| | | <!-- 3 4 都是退回申请中--> |
| | | <el-option label="已退回" value="5"></el-option> |
| | | <el-option label="已关闭" value="6"></el-option> |
| | | <el-option label="批改申请中" value="9"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="投保类型" prop="solutionType"> |
| | |
| | | <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> |
| | | <span :class="'change-status'+row.status" v-if="row.status ===9">批改申请中</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyName" label="投保企业" min-width="100px"></el-table-column> |
| | |
| | | status: [ |
| | | { label: '待审核', id: '0' }, |
| | | { label: '待出单', id: '1' }, |
| | | { label: '投保中', id: '26' }, |
| | | { label: '待签署', id: '7' }, |
| | | { label: '待生效', id: '2,0' }, |
| | | { label: '保障中', id: '2,1' }, |
| | |
| | | status: [ |
| | | { label: '待审核', id: '0' }, |
| | | { label: '待出单', id: '1' }, |
| | | { label: '投保中', id: '26' }, |
| | | { label: '待签署', id: '7' }, |
| | | { label: '待生效', id: '2,0' }, |
| | | { label: '保障中', id: '2,1' }, |