Merge remote-tracking branch 'origin/2.0.1' into 2.0.1
| | |
| | | VUE_APP_COOKIE_NAME='dmplat-auth-token' |
| | | |
| | | # 测试服 |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/yyb_admin_api/' |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/yyb_admin_api/' |
| | | |
| | | # 任康 |
| | | # VUE_APP_API = 'http://192.168.0.147:10030/' |
| | | VUE_APP_API = 'http://192.168.0.162:10030/' |
| | |
| | | VUE_APP_CONTEXT_PATH = '/yyb_web' |
| | | VUE_APP_COOKIE_NAME='doumee-auth-token' |
| | | |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/yyb_web_api/' |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/yyb_web_api/' |
| | | |
| | | # VUE_APP_API = 'http://192.168.0.147:10031/' |
| | | VUE_APP_API = 'http://192.168.0.162:10031/' |
| | | |
| | | # VUE_APP_API = 'https://www.yyb.red/yyb_web_api/' |
| | |
| | | VUE_APP_CONTEXT_PATH = '/yyb_shop' |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/yyb_shop_api/' |
| | | |
| | | # VUE_APP_API = 'http://192.168.0.147:10032/' |
| | | # VUE_APP_API = 'http://192.168.0.162:10032/' |
| | | |
| | | #VUE_APP_API = 'http://localhost:10032/' |
| | | |
| | |
| | | VUE_APP_COOKIE_NAME='dmshop-auth-token' |
| | | VUE_APP_CONTEXT_PATH = '/yyb_shop' |
| | | # 平台端 |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/yyb_shop_api/' |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/yyb_shop_api/' |
| | | |
| | | VUE_APP_SYSTEM_TITLE = '云易保客户服务系统-商户端' |
| | | |
| | | # 企业端 |
| | | VUE_APP_API = 'https://www.yyb.red/yyb_shop_api/' |
| | | # VUE_APP_API = 'https://www.yyb.red/yyb_shop_api/' |
| | |
| | | this.$dialog.messageConfirm('确认进行该操作吗?') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | editChangePidan({ id: this.model.id, checkInfo: this.form.editCheckInfo, validCode: this.form.editValidCode, pidanFile: this.form.editPidanFile }) |
| | | editChangePidan({ id: this.model.id, checkInfo: this.form.editCheckInfo, validCode: this.form.editValidCode, pidanFileList: this.form.editPidanFile }) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>上传批单:</div> |
| | | <div class="form_item_val"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" /> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :limit="99" @remove="removeEditPiDan" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" /> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | |
| | | applyStartTime:null, |
| | | validCode:null, |
| | | pidanFile:[], |
| | | editPidanFile:null, |
| | | editPidanFile:[], |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | |
| | | applyStartTime:null, |
| | | validCode:null, |
| | | pidanFile:[], |
| | | editPidanFile:null, |
| | | editPidanFile:[], |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | |
| | | }) |
| | | }, |
| | | editBaoxianFileUploaded(data){ |
| | | this.form.editPidanFile=data |
| | | this.form.editPidanFile.push(data) |
| | | }, |
| | | removeEditPiDan(imgaddr) { |
| | | this.form.editPidanFile.forEach((item, index) => { |
| | | if (imgaddr === item.imgaddr) { |
| | | this.form.editPidanFile.splice(index, 1) |
| | | } |
| | | }) |
| | | }, |
| | | backDo(){ |
| | | this.$dialog.messageConfirm('确认进行该操作吗?') |
| | |
| | | this.$dialog.messageConfirm('确认进行该操作吗?') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFile:this.form.pidanFile}) |
| | | uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFileList:this.form.pidanFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | |
| | | this.$dialog.messageConfirm('确认进行该操作吗?') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFile:this.form.editPidanFile}) |
| | | editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFileList:this.form.editPidanFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | |
| | | <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) && userInfo.type === 0" 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> |
| | | |
| | | <el-button v-if="[0,1].includes(model.status)" type="danger" @click="$refs.OperaUnionChangeCheckWindow.open('关闭申请',model,1)">关闭申请</el-button> |
| | | </template> |
| | | <template v-if="0"> |
| | | <template v-if="0"> |
| | |
| | | <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="[5].includes(model.status)" type="primary" @click="fusheng">投保复审</el-button> |
| | | |
| | | <el-button v-if="[0,1,2].includes(model.status) " type="danger" @click="$refs.OperaUnionApplyCheckWindow.open('退回申请',model,1)">退回申请</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">{{model.signType === 1 ? '查看申请单' : '查看投保单'}}</el-button> |
| | |
| | | this.visible = false |
| | | this.$tip.apiSuccess('操作成功') |
| | | // this.$refs.OperaApplyChangeDetailWindow.open('加减保详情', { applyId: this.form.id, id: res }) |
| | | this.$emit('success', { applyId: this.form.id, id: res }) |
| | | // { applyId: this.form.id, id: res } |
| | | this.$emit('success') |
| | | }).catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }).finally(() => { |
| | |
| | | } |
| | | }, |
| | | getUser (obj) { |
| | | console.log(this.seleData) |
| | | this.seleData.forEach(item => { |
| | | if (this.activeName === '0') { |
| | | this.form.addDetailList.forEach(row => { |
| | |
| | | <el-button type="danger" @click="deleItem">删除</el-button> |
| | | </div> |
| | | <div class="btns_item" v-if="activeName !== '1'"> |
| | | <el-button type="primary" @click="sele">选取派遣单位</el-button> |
| | | <!-- <el-button type="primary" @click="sele">选取派遣单位</el-button>--> |
| | | <el-button type="primary" @click="sele(1)" v-if="item && item.hasDispatchUnit !== 1">选取派遣单位</el-button> |
| | | <el-button type="primary" @click="sele(2)" v-if="item && item.hasDispatchUnit === 1">选取工种</el-button> |
| | | </div> |
| | | </div> |
| | | <el-table |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-if="item && item.hasDispatchUnit !== 1" |
| | | :key="Math.random()" |
| | | prop="duName" |
| | | label="派遣单位"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-if="item && item.hasDispatchUnit !== 1" |
| | | :key="Math.random()" |
| | | prop="duName" |
| | | label="派遣单位"> |
| | |
| | | types: [0] |
| | | }).then(res => { |
| | | res.forEach(item => { |
| | | item.fee = '' |
| | | item.fee = item.fee |
| | | item.idCard = item.memberIdcardNo |
| | | item.workTypeName = '' |
| | | item.worktypeId = '' |
| | |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | | sums[index] = '总价' |
| | | } else if (index === 7) { |
| | | } else if (this.item && this.item.hasDispatchUnit === 1 && index === 6) { |
| | | let total = 0 |
| | | if (this.activeName === '0') { |
| | | this.form.addDetailList.forEach(item => { |
| | |
| | | this.form.delDetailList.forEach(item => { |
| | | total += item.fee |
| | | }) |
| | | // if (total < 0) { |
| | | sums[index] = (total||0).toFixed(2) |
| | | // } else { |
| | | // sums[index] = '-' + total |
| | | // } |
| | | return |
| | | } |
| | | sums[index] = '' |
| | | } else if (this.item && this.item.hasDispatchUnit === 0 && index === 7) { |
| | | let total = 0 |
| | | if (this.activeName === '0') { |
| | | this.form.addDetailList.forEach(item => { |
| | | total += item.fee |
| | | }) |
| | | sums[index] = total.toFixed(2) |
| | | return |
| | | } else { |
| | | this.form.delDetailList.forEach(item => { |
| | | total += item.fee |
| | | }) |
| | | sums[index] = (total||0).toFixed(2) |
| | | return |
| | | } |
| | | sums[index] = '' |
| | |
| | | if (this.activeName === '0') { |
| | | this.seleData.forEach(item => { |
| | | this.form.addDetailList.forEach((row, index) => { |
| | | if (item === row.name) { |
| | | if (item === row.idCard) { |
| | | this.form.addDetailList.splice(index, 1) |
| | | } |
| | | }) |
| | |
| | | } else { |
| | | this.seleData.forEach(item => { |
| | | this.form.delDetailList.forEach((row, index) => { |
| | | if (item === row.name) { |
| | | if (item === row.idCard) { |
| | | this.form.delDetailList.splice(index, 1) |
| | | } |
| | | }) |
| | |
| | | return |
| | | } |
| | | if (this.activeName === '0') { |
| | | this.$refs.addEmployee.open('添加加保员工', { arr: this.form.addDetailList, solutionId: this.item.newVersionSolutionId, price: this.price }) |
| | | this.$refs.addEmployee.open('添加加保员工', { arr: this.form.addDetailList, solutionId: this.item.newVersionSolutionId, price: this.price, companyId: this.item.hasDispatchUnit === 1 ? '1' : '' }) |
| | | } else { |
| | | this.$refs.addEmployee.open('添加减保员工', { arr: this.form.delDetailList, solutionId: this.item.newVersionSolutionId, price: this.reducePrice }) |
| | | this.$refs.addEmployee.open('添加减保员工', { arr: this.form.delDetailList, solutionId: this.item.newVersionSolutionId, price: this.reducePrice, companyId: this.item.hasDispatchUnit === 1 ? '1' : '' }) |
| | | } |
| | | }, |
| | | uploadUser () { |
| | |
| | | return |
| | | } |
| | | 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, solutionId: this.item.newVersionSolutionId, hasDispatchUnit: this.item.hasDispatchUnit }) |
| | | } 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, solutionId: this.item.newVersionSolutionId, insuranceApplyId: this.form.id, hasDispatchUnit: this.item.hasDispatchUnit }) |
| | | } |
| | | }, |
| | | // 切换方案 |
| | |
| | | this.seleData.forEach(item => { |
| | | if (this.activeName === '0') { |
| | | this.form.addDetailList.forEach(row => { |
| | | if (item === row.name) { |
| | | if (item === row.idCard) { |
| | | row.workTypeName = obj.workTypeName |
| | | row.worktypeId = obj.worktypeId |
| | | row.duName = obj.duName |
| | |
| | | }) |
| | | } else { |
| | | this.form.delDetailList.forEach(row => { |
| | | if (item === row.name) { |
| | | if (item === row.idCard) { |
| | | row.workTypeName = obj.workTypeName |
| | | row.worktypeId = obj.worktypeId |
| | | row.duName = obj.duName |
| | |
| | | this.$refs.multipleTable.clearSelection() |
| | | }, |
| | | // 选择员工 |
| | | sele () { |
| | | sele (type) { |
| | | if (!this.form.solutionId) { |
| | | this.$message.warning('请选择保险方案') |
| | | return |
| | |
| | | this.$message.warning('请选择员工') |
| | | return |
| | | } |
| | | this.$refs.confirmJobType.open('确认工种', { solutionId: this.newVersionSolutionId }) |
| | | this.$refs.confirmJobType.open('确认工种', { solutionId: this.newVersionSolutionId, type }) |
| | | }, |
| | | // 查询全部方案 |
| | | getCompany () { |
| | |
| | | return sexAndAge.age |
| | | }, |
| | | handleSelectionChange (e) { |
| | | this.seleData = e.map(item => item.name) |
| | | this.seleData = e.map(item => item.memberIdcardNo) |
| | | }, |
| | | getValue (list) { |
| | | console.log(list) |
| | |
| | | <el-table-column prop="createDate" label="申请时间"></el-table-column> |
| | | <el-table-column label="申请状态"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.status === 0">待审核</span> |
| | | <span v-if="row.status === 1">审核通过</span> |
| | | <span v-if="row.status === 2">审核不通过</span> |
| | | <span style="color: #216EEE;" v-if="row.status === 0">待审核</span> |
| | | <span style="color: #00BA92;" v-if="row.status === 1">审核通过</span> |
| | | <span style="color: red;" v-if="row.status === 2">审核不通过</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaCompanyUserApplyDescWindow.open('申请记录详情', row.id)" icon="el-icon-view">查看</el-button> |
| | | <el-button type="text" v-if="userInfo.type === 0 && row.status === 0" @click="$refs.operaCompanyUserApplyCarefulWindow.open('集团申请记录审核', row.id)">审核</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-if="userInfo.type === 1" v-permissions="['business:companyuserapply:delete']">删除</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-if="userInfo.type === 1 && row.status === 0" v-permissions="['business:companyuserapply:delete']">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | .then(res => { |
| | | this.solutions = res |
| | | }) |
| | | /* if(this.userInfo.type ==1){ |
| | | findListByDTO({ dataType: 2 }) |
| | | .then(res => { |
| | | this.options = res |
| | | }) |
| | | }*/ |
| | | |
| | | if (this.userInfo.type === 0) { |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }) |
| | | } |
| | | }, |
| | | calculateAge(idNumber) { |
| | | if (!idNumber) return |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="statusInfo" align="center" fixed label="状态"> |
| | | <template slot-scope="{row}"> |
| | | <span :class="'apply-status'+row.status">{{row.statusInfo}}</span> |
| | | <span style="color:#f95601;" v-if="row.status === 5 && row.statusInfo === '待生效'">{{row.statusInfo}}</span> |
| | | <span style="color:#999;" v-else-if="row.status === 5 && row.statusInfo === '已过期'">{{row.statusInfo}}</span> |
| | | <span :class="'apply-status'+row.status" v-else>{{row.statusInfo}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="solutionsName" align="center" fixed label="保险方案" min-width="150"></el-table-column> |
| | |
| | | startTimeE: '', |
| | | startTimeS: '', |
| | | baseSolutionId: '', |
| | | status: '5', |
| | | status: '5,27', |
| | | solutionType: '', |
| | | timeOut: '' |
| | | }, |
| | |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange2" |
| | | @current-change="handleCurrentChange6" |
| | | :current-page="page2" |
| | | :page-size="5" |
| | | layout="total, prev, pager, next, jumper" |
| | |
| | | <div class="list_item" v-for="(item, index) in tableData6" :key="index"> |
| | | <div class="list_item_left"> |
| | | <span>{{item.title}}({{ item.typeDetail }})</span> |
| | | <span>{{item.info}}({{item.content}})</span> |
| | | <span>{{item.content}}</span> |
| | | </div> |
| | | <div class="list_item_center"> |
| | | <span>{{item.companyName}}</span> |
| | |
| | | <div class="list_item" v-for="(item, index) in tableData7" :key="index"> |
| | | <div class="list_item_left"> |
| | | <span>{{item.title}}({{ item.typeDetail }})</span> |
| | | <span>{{item.info}}({{item.content}})</span> |
| | | <span>{{item.content}}</span> |
| | | </div> |
| | | <div class="list_item_center"> |
| | | <span>{{item.companyName}}</span> |
| | |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange2" |
| | | @current-change="handleCurrentChange7" |
| | | :current-page="page7" |
| | | :page-size="5" |
| | | layout="total, prev, pager, next, jumper" |
| | |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange2" |
| | | :current-page="page7" |
| | | @current-change="handleCurrentChange8" |
| | | :current-page="page8" |
| | | :page-size="5" |
| | | layout="total, prev, pager, next, jumper" |
| | | :total="totalPage7"> |
| | | :total="totalPage8"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="list_item" v-for="(item, index) in tableData6" :key="index"> |
| | | <div class="list_item_left"> |
| | | <span>{{item.title}}({{ item.typeDetail }})</span> |
| | | <span>{{item.info}}({{item.content}})</span> |
| | | <span>{{item.content}}</span> |
| | | </div> |
| | | <div class="list_item_center"> |
| | | <span>{{item.companyName}}</span> |