| | |
| | | |
| | | # VUE_APP_API = 'http://192.168.0.134:10023/' |
| | | |
| | | VUE_APP_API = 'http://localhost:10023/' |
| | | #VUE_APP_API = 'http://localhost:10023/' |
| | | |
| | | # VUE_APP_API = 'http://192.168.0.134:10023/' |
| | |
| | | return request.post('/business/insuranceApply/getCountCyclePriceVO', data) |
| | | } |
| | | |
| | | // ç³è¯·è®°å½ç¶æå¤ç |
| | | export function applyOpt (data) { |
| | | return request.post('/business/insuranceApply/applyOpt', data) |
| | | } |
| | | |
| | | export function exportDetailExcel (data) { |
| | | return request.post('/business/insuranceApply/exportDetailExcel', data, { |
| | | trim: true, |
| | |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | // å表æ¥è¯¢ |
| | | export function findList (data) { |
| | | return request.post('/business/applyDetail/findList', data) |
| | | } |
| | | |
| | | // ä¿®æ¹ |
| | | export function updateData (data) { |
| | | return request.post('/business/insuranceApply/updateData', data) |
| | | } |
| | |
| | | <span>æäº¤æ¶é´ï¼{{ model.createDate }}</span> |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('æä¿è¯¦æ
å',model,0)">导åºè¯¦å</el-button> |
| | | <el-button v-if="model.status == 2 ||model.status == 3 ||model.status == 5 ||model.status == 7 ||model.status == 8 " type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="model.status == 5 " type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <el-button v-if="model.status == 10 " type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ æä¿å',model,2)">ä¸ä¼ æä¿å</el-button> |
| | | <el-button v-if="model.status == 3 " type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ ä¿é©å',model,3)">ä¸ä¼ ä¿é©å</el-button> |
| | | <el-button v-if="model.status == 2 " type="primary" @click="goSign">ä¼ä¸ç¾ç« </el-button> |
| | | <el-button v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('驳åéåç³è¯·',model,5)">驳åéåç³è¯·</el-button> |
| | | <el-button v-if="model.status == 0 " type="primary" @click="$refs.InsuranceDetails.open('æä¿å®¡æ ¸',model,1)">æä¿å®¡æ ¸</el-button> |
| | | <el-button v-if="model.status != 5 && model.status != 4 && model.status != 1" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('éåæä¿',model,1)">éåæä¿</el-button> |
| | | <el-button v-if="model.status == 5 " type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¿®æ¹ä¿é©å',model,4)">ä¿®æ¹ä¿é©å</el-button> |
| | | <template v-if="userInfo.type === 1"> |
| | | <el-button v-if="[0, 2, 3, 10].includes(model.status)" type="danger" @click="$refs.applyReturn.open('ç³è¯·éå', {id: dataId})">ç³è¯·éå</el-button> |
| | | <el-button v-if="model.status == 4" type="primary" @click="$refs.OperaInsuranceApply.open('æä¿ç³è¯·', {id: dataId})">忬¡æä¿</el-button> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('æä¿è¯¦æ
å',model,0)">导åºè¯¦å</el-button> |
| | | <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <el-button v-if="model.status == 2" type="primary" @click="goSign">ç¾ç½²æä¿å</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('æä¿è¯¦æ
å',model,0)">导åºè¯¦å</el-button> |
| | | <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <el-button v-if="model.status == 10" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ æä¿å',model,2)">ä¸ä¼ æä¿å</el-button> |
| | | <el-button v-if="model.status == 3" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ ä¿é©å',model,3)">ä¸ä¼ ä¿é©å</el-button> |
| | | <el-button v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('驳åéåç³è¯·',model,5)">驳åéåç³è¯·</el-button> |
| | | <el-button v-if="model.status == 0" type="primary" @click="$refs.InsuranceDetails.open('æä¿å®¡æ ¸',model,1)">æä¿å®¡æ ¸</el-button> |
| | | <el-button v-if="model.status != 5 && model.status != 4 && model.status != 1" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('éåæä¿',model,1)">éåæä¿</el-button> |
| | | <el-button v-if="model.status == 5" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¿®æ¹ä¿é©å',model,4)">ä¿®æ¹ä¿é©å</el-button> |
| | | </template> |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | |
| | | </div> |
| | | <InsuranceDetails ref="InsuranceDetails" @success="successEvent" /> |
| | | <OperaInsuranceApplyCheckWindow ref="OperaInsuranceApplyCheckWindow" @success="successEvent" /> |
| | | <!-- éåæä¿ --> |
| | | <!-- ä¼ä¸ç³è¯·éå --> |
| | | <applyReturn ref="applyReturn" @success="successEvent" /> |
| | | <!-- æ°å¢æä¿ --> |
| | | <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import InsuranceDetails from '@/components/business/InsuranceDetails' |
| | | import OperaInsuranceApplyCheckWindow from '@/components/business/OperaInsuranceApplyCheckWindow' |
| | | |
| | | import applyReturn from '@/components/enterprise/applyReturn' |
| | | import {getDetail, getSignLink} from "@/api/business/insuranceApply"; |
| | | import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow' |
| | | import { mapState } from 'vuex' |
| | | import {all as solutionAll} from "@/api/business/solutions"; |
| | | export default { |
| | | name: 'OperaInsuranceApplyWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, InsuranceDetails ,OperaInsuranceApplyCheckWindow}, |
| | | components: { GlobalWindow, InsuranceDetails ,OperaInsuranceApplyCheckWindow, applyReturn, OperaInsuranceApply }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | methods: { |
| | | open(title,target){ |
| | | this.visible=true; |
| | | this.dataId=target.id |
| | | this.getDetail() |
| | | this.visible = true; |
| | | this.title = title |
| | | this.dataId = target.id |
| | | this.getDetail() |
| | | }, |
| | | handleClick(e) { |
| | | console.log(e) |
| | | }, |
| | | goSign(){ |
| | | getSignLink(this.dataId).then(res => { |
| | | window.open(res) |
| | |
| | | import importEmployees from '@/components/enterprise/importEmployees' |
| | | import confirmJobType from '@/components/enterprise/confirmJobType' |
| | | import { all } from '@/api/business/solutions' |
| | | import { create, getCountCyclePriceVO } from '@/api/business/insuranceApply' |
| | | import { create, getCountCyclePriceVO, getDetail, findList, updateData } from '@/api/business/insuranceApply' |
| | | export default { |
| | | name: 'OperaInsuranceApplyWindow', |
| | | extends: BaseOpera, |
| | |
| | | return { |
| | | form: { |
| | | id: null, |
| | | ID: null, |
| | | solutionId: '', |
| | | applyStartTime: '', |
| | | applyEndTime: '' |
| | |
| | | this.form.solutionId = '' |
| | | this.form.applyStartTime = '' |
| | | this.form.applyEndTime = '' |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | | }) |
| | | this.visible = true |
| | | if (target && target.id) { |
| | | this.form.id = target.id |
| | | this.getDetails() |
| | | } else { |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | | }) |
| | | } |
| | | this.getCompany() |
| | | this.visible = true |
| | | this.updatePickerOptions() |
| | | }, |
| | | // è·åæä¿è¯¦æ
|
| | | getDetails() { |
| | | findList({ applyId: this.form.id }) |
| | | .then(res => { |
| | | res.forEach(item => { |
| | | item.idCard = item.idcardNo |
| | | item.fee = '' |
| | | }) |
| | | this.tableData = res |
| | | }) |
| | | getDetail(this.form.id) |
| | | .then(res => { |
| | | this.form.solutionId = res.solutionId |
| | | this.changeSolution1(res.solutionId) |
| | | }) |
| | | }, |
| | | getSummaries(param) { |
| | | const { columns, data } = param |
| | | const sums = [] |
| | |
| | | item.idcardNo = item.idCard |
| | | }) |
| | | this.isWorking = true |
| | | create({ |
| | | applyDetailList: arr, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | solutionId: this.form.solutionId |
| | | }).then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æä½æå') |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | if (!this.form.id) { |
| | | create({ |
| | | applyDetailList: arr, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | solutionId: this.form.solutionId |
| | | }).then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æä½æå') |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | } else { |
| | | updateData({ |
| | | id: this.form.id, |
| | | applyDetailList: arr, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | solutionId: this.form.solutionId |
| | | }).then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æä½æå') |
| | | this.$emit('success') |
| | | }).catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | } |
| | | |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | // åæ¢æ¹æ¡ |
| | | changeSolution(e) { |
| | | this.tableData = [] |
| | | this.company.forEach(item => { |
| | | if (item.id === e) { |
| | | // this.price = item.price |
| | |
| | | item.fee = this.price |
| | | }) |
| | | }, |
| | | // åæ¢æ¹æ¡ |
| | | changeSolution1(e) { |
| | | this.company.forEach(item => { |
| | | if (item.id === e) { |
| | | // this.price = item.price |
| | | this.item = item |
| | | this.updatePickerOptions() |
| | | } |
| | | }) |
| | | this.tableData.forEach(item => { |
| | | item.fee = this.price |
| | | }) |
| | | }, |
| | | dele(index) { |
| | | this.tableData.splice(index, 1) |
| | | }, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="40%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form ref="form" :model="form" label-width="130px"> |
| | | <el-form-item label="å¡«åç³è¯·è¯´æ"> |
| | | <el-input type="textarea" v-model="form.remark"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { applyOpt } from '@/api/business/insuranceApply' |
| | | |
| | | export default { |
| | | name: 'applyReturn', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | remark: '' |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insurance', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open (title, target) { |
| | | this.title = title |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | | }) |
| | | this.$nextTick(() => { |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | } |
| | | }) |
| | | }, |
| | | confirm() { |
| | | this.isWorking = true |
| | | applyOpt({ applyId: this.form.id, optIllustration: this.form.remark, optType: 1 }) |
| | | .then(res => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æä½æå') |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <TableLayout :permissions="['business:insuranceapply:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="ç¶æ" prop="status"> |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©" @change="search"> |
| | | <el-form-item label="ç¶æ" prop="statusCollect"> |
| | | <el-select v-model="searchForm.statusCollect" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option label="å¾
审æ¹" value="0"></el-option> |
| | | <el-option label="å¾
ç¾ç½²" value="2"></el-option> |
| | | <el-option label="å·²ç¾ç½²" value="3"></el-option> |
| | | <el-option label="å·²æ¤é" value="7"></el-option> |
| | | <el-option label="å¾
åºå" value="1"></el-option> |
| | | <el-option label="å¾
ç¾ç« " value="7"></el-option> |
| | | <el-option label="ä¿éä¸" value="2"></el-option> |
| | | <el-option label="å·²è¿æ" value="3"></el-option> |
| | | <el-option label="å·²éå" value="4"></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="baseSolutionId"> |
| | |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="ç¶æ"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.status === 0">å¾
审æ¹</span> |
| | | <span v-if="row.status === 2">å¾
ç¾ç½²</span> |
| | | <span v-if="row.status === 3">å·²ç¾ç½²</span> |
| | | <span v-if="row.status === 4">å·²æ¤é</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="statusInfo" label="ç¶æ"></el-table-column> |
| | | <el-table-column prop="solutionsName" label="ä¿é©æ¹æ¡"></el-table-column> |
| | | <el-table-column prop="insureNum" label="æä¿äººæ°"></el-table-column> |
| | | <el-table-column prop="serviceDays" label="æä¿æ¶é¿ï¼å¤©ï¼"></el-table-column> |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaInsuranceApplyWindow.open('ç¼è¾æä¿ç³è¯·ä¿¡æ¯è¡¨', row)" icon="el-icon-edit" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="$refs.OperaInsuranceApplyDetails.open('æä¿è¯¦æ
', { id: row.id })" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å¢æä¿ --> |
| | | <OperaInsuranceApplyWindow ref="OperaInsuranceApplyWindow" @sucess="handlePageChange" /> |
| | | <OperaInsuranceApplyWindow ref="OperaInsuranceApplyWindow" @success="handlePageChange" /> |
| | | <!-- æä¿è¯¦æ
--> |
| | | <OperaInsuranceApplyDetails ref="OperaInsuranceApplyDetails" @success="handlePageChange" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaInsuranceApplyWindow from '@/components/enterprise/OperaInsuranceApplyWindow' |
| | | import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow' |
| | | |
| | | import { all as solutionAll} from '@/api/business/solutions' |
| | | export default { |
| | | name: 'InsuranceApply', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaInsuranceApplyWindow }, |
| | | components: { TableLayout, Pagination, OperaInsuranceApplyWindow, OperaInsuranceApplyDetails }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | |
| | | createTimeS: '', |
| | | createTimeE: '', |
| | | baseSolutionId: '', |
| | | status: '2' |
| | | statusCollect: '' |
| | | }, |
| | | solutionList:[] |
| | | } |