| | |
| | | } |
| | | |
| | | // æ¥è¯¢å
¨é¨ä¿é©æ¹æ¡ |
| | | export function all (data) { |
| | | export function all (data, type) { |
| | | if (!type) { |
| | | data.status = 0 |
| | | } |
| | | return request.post('/business/solutions/list', data) |
| | | } |
| | | |
| | |
| | | return request.get(`/business/solutions/getUseList?companyId=${companyId}&dateType=${dateType}`) |
| | | } |
| | | |
| | | // æ ¹æ®IDå é¤ |
| | | export function deleteById (id) { |
| | | return request.get(`/business/solutions/delete/${id}`) |
| | | } |
| | |
| | | <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.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | <UploadFile :limit="99" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @remove="removePIDAN" @uploadSuccess="baoxianFileUploaded" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | applyStartTime: null, |
| | | delValidTime: null, |
| | | validCode: null, |
| | | pidanFile: null, |
| | | pidanFile: [], |
| | | editPidanFile: null, |
| | | fileList1: [], |
| | | fileList2: [], |
| | |
| | | delValidTime: null, |
| | | applyStartTime: null, |
| | | validCode: null, |
| | | pidanFile: null, |
| | | pidanFile: [], |
| | | editPidanFile: null, |
| | | fileList1: [], |
| | | fileList2: [], |
| | |
| | | } |
| | | }, |
| | | baoxianFileUploaded (data) { |
| | | this.form.pidanFile = data |
| | | this.form.pidanFile.push(data) |
| | | }, |
| | | removePIDAN(e) { |
| | | this.form.pidanFile.forEach((item, index) => { |
| | | if (e === item.imgaddr) { |
| | | this.form.pidanFile.splice(index, 1) |
| | | } |
| | | }) |
| | | }, |
| | | editBaoxianFileUploaded (data) { |
| | | this.form.editPidanFile = data |
| | |
| | | applyStartTime: (this.model.delOnlyReplace != 1 ? this.form.applyStartTime : this.form.delValidTime), |
| | | delValidTime: this.form.delValidTime, |
| | | validCode: this.form.validCode, |
| | | pidanFile: this.form.pidanFile |
| | | pidanFileList: this.form.pidanFile |
| | | }) |
| | | .then(response => { |
| | | this.visible = false |
| | |
| | | label="身份è¯å·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-if="apply && apply.hasDispatchUnit !== 1" |
| | | prop="duName" |
| | | label="æ´¾é£åä½"> |
| | | </el-table-column> |
| | |
| | | <el-button @click="visiblePhone=false">å æ¶</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="æ¹åå表" :modal="false" :visible.sync="flieVisible"> |
| | | <el-table :data="model.pidanFileList"> |
| | | <el-table-column property="name" label="æä»¶åç§°"></el-table-column> |
| | | <el-table-column label="æä½" width="90"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="primary" @click="yulan(row.name, row.fileurlFull)">é¢è§</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-dialog> |
| | | <template v-slot:footer> |
| | | <el-button @click="visible=false">è¿å</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | activeName: '0', |
| | | total: 0, |
| | | currentPage: 1, |
| | | loading: false |
| | | loading: false, |
| | | flieVisible: false, |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | } |
| | | }, |
| | | viewPidan(){ |
| | | if(this.model.pidanFile && this.model.pidanFile.fileurlFull){ |
| | | this.$refs.OperaPdfViewerWindow.open('æ¥çæ¹å',this.model.pidanFile.fileurlFull) |
| | | // window.open(this.model.pidanFile.fileurlFull) |
| | | } |
| | | this.flieVisible = true |
| | | }, |
| | | yulan(name, url) { |
| | | this.$refs.OperaPdfViewerWindow.open(name, url) |
| | | }, |
| | | handleSizeChange(val){ |
| | | console.log(val) |
| | |
| | | label="身份è¯å·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-if="hasDispatchUnit !== 1" |
| | | prop="oldDuName" |
| | | label="åæ´¾é£åä½"> |
| | | </el-table-column> |
| | |
| | | label="ä¿é©çæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-if="hasDispatchUnit !== 1" |
| | | prop="duName" |
| | | label="æ´æ¢åæ´¾é£åä½"> |
| | | </el-table-column> |
| | |
| | | <el-button @click="visiblePhone=false">å æ¶</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="æ¥çæ¹å" |
| | | :visible.sync="visibleFile" |
| | | width="800px" |
| | | :modal="false" |
| | | :show-close="true" |
| | | :close-on-click-modal="false" |
| | | append-to-body |
| | | center> |
| | | <el-table :data="model.pidanFileList"> |
| | | <el-table-column property="name" label="æä»¶å"></el-table-column> |
| | | <el-table-column label="æä½" width="90px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="primary" @click="chakan(row.name, row.fileurlFull)">æ¥ç</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="visibleFile=false">å
³ é</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <ApplyChangeUnitDetails ref="ApplyChangeDetails" @success="successEvent" /> |
| | | <OperaApplyChangeUnitCheckWindow ref="OperaApplyChangeCheckWindow" @success="successEvent" /> |
| | | <!-- ä¼ä¸ç³è¯·éå --> |
| | |
| | | activeName: '0', |
| | | total: 0, |
| | | currentPage: 1, |
| | | loading: false |
| | | loading: false, |
| | | hasDispatchUnit: null, |
| | | visibleFile: false |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | this.timer=null |
| | | this.getDetail() |
| | | this.getList() |
| | | }, |
| | | chakan(name, url) { |
| | | this.$refs.OperaPdfViewerWindow.open(name, url) |
| | | }, |
| | | send () { |
| | | sendSms({ |
| | |
| | | } |
| | | }, |
| | | viewPidan(){ |
| | | if(this.model.pidanFile && this.model.pidanFile.fileurlFull){ |
| | | this.$refs.OperaPdfViewerWindow.open('æ¥çæ¹å',this.model.pidanFile.fileurlFull) |
| | | // window.open(this.model.pidanFile.fileurlFull) |
| | | } |
| | | this.visibleFile = true |
| | | // if(this.model.pidanFile && this.model.pidanFile.fileurlFull){ |
| | | // this.$refs.OperaPdfViewerWindow.open('æ¥çæ¹å',this.model.pidanFile.fileurlFull) |
| | | // // window.open(this.model.pidanFile.fileurlFull) |
| | | // } |
| | | }, |
| | | handleSizeChange (val) { |
| | | console.log(val) |
| | |
| | | }, |
| | | getDetail () { |
| | | getDetail(this.dataId).then(res => { |
| | | this.hasDispatchUnit = res.hasDispatchUnit |
| | | this.apply = res |
| | | console.log(this.tableData) |
| | | }).catch(err => { |
| | | }) |
| | | getChangeDetail(this.modelId).then(res => { |
| | | this.model = res |
| | | this.tableData = new Array() |
| | | this.tableData.push(res) |
| | | console.log(this.tableData) |
| | | this.activities = res.applyLogList |
| | | }).catch(err => { |
| | | }) |
| | |
| | | <OperaCompanyWindow ref="operaCompanyWindow" @success="callback"/> |
| | | <!-- ä¿®æ¹ä¿é©æ¹æ¡ --> |
| | | <modification ref="modification" @success="callback"/> |
| | | <OperaPdfViewerWindow ref="operaPdfViewerWindow" /> |
| | | <!-- ä¿®æ¹ææºå· --> |
| | | <el-dialog |
| | | title="æ´æ¹ç»å®ææºå·" |
| | |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import OperaCompanyWindow from '@/components/business/OperaCompanyWindow' |
| | | import modification from '@/components/business/modification' |
| | | import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow' |
| | | import { getById, updatePhone } from '@/api/business/company' |
| | | import { listForCompany } from '@/api/business/solutions' |
| | | import { sendSms } from '@/api/business/smsEmail' |
| | | export default { |
| | | name: 'OperaCompanyDescWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, OperaCompanyWindow, modification }, |
| | | components: { GlobalWindow, OperaCompanyWindow, modification, OperaPdfViewerWindow }, |
| | | data () { |
| | | return { |
| | | ruleForm: { |
| | |
| | | }, |
| | | methods: { |
| | | openFile(url) { |
| | | window.open(url) |
| | | this.$refs.operaPdfViewerWindow.open('æ¹æ¡ç¡®è®¤ä¹¦', url) |
| | | }, |
| | | close () { |
| | | this.visiblePhone = false |
| | |
| | | <el-radio :label="2">å®¡æ ¸ä¸éè¿</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="驳åçç±" prop="checkInfo" :rules="form.status === 2 ? { required: true, message: '驳åçç±ä¸è½ä¸ºç©º', trigger: 'blur' } : { required: false } "> |
| | | <el-form-item :label="form.status === 1 ? '夿³¨çç±' : '驳åçç±'" prop="checkInfo" :rules="form.status === 2 ? { required: true, message: '驳åçç±ä¸è½ä¸ºç©º', trigger: 'blur' } : { required: false } "> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="请è¾å
¥é©³åçç±" |
| | | placeholder="请è¾å
¥" |
| | | v-model="form.checkInfo" |
| | | maxlength="300" |
| | | show-word-limit /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- é¢è§pdf --> |
| | | <OperaPdfViewerWindow ref="OperaPdfViewerWindow" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import UploadFile from '@/components/common/UploadFile' |
| | | import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow' |
| | | import { audit, getById } from '@/api/business/companyUserApply' |
| | | export default { |
| | | name: 'OperaCompanyUserApplyCarefulWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, UploadFile }, |
| | | components: { GlobalWindow, UploadFile, OperaPdfViewerWindow }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | |
| | | }) |
| | | }, |
| | | openFile(url) { |
| | | window.open(url) |
| | | this.$refs.OperaPdfViewerWindow.open('éä»¶', url) |
| | | }, |
| | | confirm() { |
| | | this.$refs.form.validate((valid) => { |
| | |
| | | v-model="form.companyIds" |
| | | multiple |
| | | filterable |
| | | allow-create |
| | | default-first-option |
| | | placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in company" |
| | |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="ååéä»¶" prop="multifile" :rules="[{required:true,message:'请ä¸ä¼ æ¹æ¡ç¡®è®¤ä¹¦'}]"> |
| | | <div> |
| | | <div v-if="visible"> |
| | | <UploadFile @remove="deleFile" :uploadData="{ folder: 'contract', fileType:'.pdf' }" :fileList="fileList" @uploadSuccess="editFanganFile" /> |
| | | </div> |
| | | </el-form-item> |
| | |
| | | <el-button v-if="[12].includes(model.status)" type="primary" @click="review">æä¿å¤å®¡</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="[27,5].includes(model.status)" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <el-button v-if="[2,10].includes(model.status) && model.solutionType ==0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ æä¿å',model,2)">ä¸ä¼ æä¿å</el-button> |
| | | <el-button v-if="model.status == 3 && model.solutionType ==0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ ä¿é©å',model,3)">ä¸ä¼ ä¿é©å</el-button> |
| | | <el-button v-if="model.status === 3 && userInfo.type === 0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ ä¿é©å',model,3)">ä¸ä¼ ä¿é©å</el-button> |
| | | |
| | | <!-- <el-button v-if="model.status == 26 && model.solutionType == 1" type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('ä¸ä¼ ä¿é©å',model,3)">ä¸ä¼ ä¿é©å</el-button>--> |
| | | |
| | | <el-button v-if="[6,7,8,11].includes(model.status) && model.solutionType ==0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('驳åéåç³è¯·',model,5)">驳åéåç³è¯·</el-button> |
| | | <el-button v-if="[22, 0].includes(model.status) && [0,1].includes(model.solutionType)" type="primary" @click="$refs.InsuranceDetails.open('æä¿å®¡æ ¸',model,1)">æä¿å®¡æ ¸</el-button> |
| | | <el-button v-if="![1, 4, 5].includes(model.status) && [0,1].includes(model.solutionType)" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('éåç³è¯·',model,1)">éåç³è¯·</el-button> |
| | | <el-button v-if="model.status == 5 && model.solutionType ==0" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¿®æ¹ä¿é©å',model,4)">ä¿®æ¹ä¿é©å</el-button> |
| | | <el-button v-if="[5,27].includes(model.status) && userInfo.type === 0" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¿®æ¹ä¿é©å',model,4)">ä¿®æ¹ä¿é©å</el-button> |
| | | </template> |
| | | </div> |
| | | </div> |
| | |
| | | <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"> |
| | |
| | | backCheckInfo: '', |
| | | applyTime: null, |
| | | code: null, |
| | | baoxianFile: null, |
| | | baoxianFile: [], |
| | | bxdMultifileList: [], |
| | | fileList1: [], |
| | | selectRadio: 0 |
| | |
| | | this.form.bxdMultifileList[index].name = null |
| | | } |
| | | }, |
| | | dele3 () { |
| | | this.form.baoxianFile = null |
| | | dele3 (e) { |
| | | this.form.baoxianFile.forEach((item, index) => { |
| | | if (e === item.imgaddr) { |
| | | this.form.baoxianFile.splice(index, 1) |
| | | } |
| | | }) |
| | | }, |
| | | open (title, target, flag) { |
| | | this.visible = true |
| | |
| | | backCheckInfo: '', |
| | | startTime: null, |
| | | code: null, |
| | | baoxianFile: null, |
| | | baoxianFile: [], |
| | | bxdMultifileList:[], |
| | | fileList1: [], |
| | | selectRadio: 0, |
| | |
| | | } |
| | | }, |
| | | baoxianFileUploaded (data) { |
| | | this.form.baoxianFile = data |
| | | this.form.baoxianFile.push(data) |
| | | }, |
| | | baoxianFileUploaded2 (data) { |
| | | this.form.bxdMultifileList[data.index].fileurl = data.fileurl |
| | |
| | | id: this.model.id, |
| | | applyDate: this.form.applyTime, |
| | | code: this.form.code, |
| | | fileurl: this.form.baoxianFile.fileurl, |
| | | name: this.form.baoxianFile.name, |
| | | // fileurl: this.form.baoxianFile.fileurl, |
| | | // name: this.form.baoxianFile.name, |
| | | pidanFileList: this.form.baoxianFile, |
| | | applyChangeBXDList:this.form.bxdMultifileList |
| | | } |
| | | uploadBXD(param) |
| | |
| | | <div class="desc_item"> |
| | | <div class="desc_item_label"> |
| | | <div class="desc_item_label_left"> |
| | | <span>æä¿äººï¼{{ model.shopName}}</span> |
| | | <span>æä¿äººï¼{{ model.shopName}} </span> |
| | | <span v-if="model.status === 0">ä¿åç¶æï¼<span :class="'change-status'+model.status" >å¾
ç¾ç½²</span></span> |
| | | <span v-if="model.status === 1">ä¿åç¶æï¼<span :class="'change-status'+model.status" >å¾
å®¡æ ¸</span></span> |
| | | <span v-if="model.status === 2">ä¿åç¶æï¼<span :class="'change-status'+model.status" >å·²çæ</span></span> |
| | |
| | | label="被ä¿é©äºº"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-if="hasDispatchUnit !== 1" |
| | | prop="oldDuName" |
| | | label="åæ´¾é£åä½"> |
| | | </el-table-column> |
| | |
| | | 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="800px" |
| | | :modal="true" |
| | | :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"> |
| | | <el-table-column property="name" label="æä»¶å"></el-table-column> |
| | | <el-table-column label="æä½" width="90px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="primary" @click="chakan(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>--> |
| | | <!-- |
| | | <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> |
| | |
| | | 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() |
| | | }, |
| | | chakan(name, url) { |
| | | this.$refs.OperaPdfViewerWindow.open(name, url) |
| | | }, |
| | | send () { |
| | | sendSms({ |
| | | phone: this.form.phone |
| | |
| | | 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-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="[2].includes(model.status) " type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('ä¸ä¼ ä¿é©å',model,3)">ä¸ä¼ ä¿é©å</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> |
| | |
| | | align="center" |
| | | label="ä¿é©æ¹æ¡"> |
| | | <template slot-scope="scope"> |
| | | <!-- :value="{ id:item.id, baseId: item.baseId }"--> |
| | | <el-select v-model="scope.row.solution.id" filterable @change="changeSolution($event, scope.$index)" placeholder="è¯·éæ©"> |
| | | <el-select v-model="scope.row.solution.id" :disabled="scope.row.disabled" filterable @change="changeSolution($event, scope.$index)" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in programme" |
| | | :key="item.id" |
| | |
| | | align="center" |
| | | label="å§æåæ·"> |
| | | <template slot-scope="scope"> |
| | | <el-select :ref="'shopSelect'+scope.$index" :disabled="scope.row.solution.type ==1" v-model="scope.row.shopId" clearable value-key="id" placeholder="è¯·éæ©"> |
| | | <el-select :ref="'shopSelect'+scope.$index" disabled v-model="scope.row.shopId" clearable value-key="id" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in shops" |
| | | :key="item.id" |
| | |
| | | label="ç¾ç½²ç¶æ"> |
| | | <template slot-scope="{row}"> |
| | | <template v-if="row.signStatus === 0">å¾
ç¾ç« </template> |
| | | <template v-if="row.signStatus === 1">å·²ç¾ç« </template> |
| | | <template v-else-if="row.signStatus === 1">å·²ç¾ç« </template> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | align="center" |
| | | width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" style="color: red;" @click="dele(scope.$index)" v-if="scope.row.signStatus === 0 || !scope.row.signStatus">å é¤</el-button> |
| | | <el-button type="text" size="small" style="color: red;" @click="dele(scope.$index)">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | .then(resa => { |
| | | resa.forEach(item => { |
| | | this.form.solutionList.push({ |
| | | disabled: true, |
| | | solution: { id: item.solutionId, baseId: item.solutionBaseId,type:item.solutionType }, |
| | | shopId: item.shopId, |
| | | canAdd: 1, |
| | | canReduce: 1 |
| | | canReduce: 1, |
| | | signStatus: item.signStatus |
| | | }) |
| | | }) |
| | | console.log(this.form.solutionList) |
| | | that.visible = true |
| | | }) |
| | | }, |
| | | add () { |
| | | this.form.solutionList.push({ |
| | | disabled: false, |
| | | solution: { id: null, baseId: null }, |
| | | shopId: null, |
| | | canAdd: 1, |
| | |
| | | }) |
| | | }, |
| | | openFile(name, url) { |
| | | console.log(url) |
| | | this.$refs.OperaPdfViewerWindow.open(name, url) |
| | | } |
| | | } |
| | |
| | | import plugins from './plugins' |
| | | import { mapState, mapMutations } from 'vuex' |
| | | import { fetchMenuTree } from './api/system/menu' |
| | | |
| | | Vue.config.productionTip = false |
| | | Vue.use(ElementUI, { |
| | | size: 'small' |
| | |
| | | Vue.use(directives) |
| | | Vue.use(filters) |
| | | Vue.use(plugins) |
| | | |
| | | new Vue({ |
| | | data: { |
| | | loading: false |
| | |
| | | |
| | | // æ°å»ºååºæ¦æªå¨ |
| | | axiosInstance.interceptors.response.use((response) => { |
| | | // console.log(response.status) |
| | | // debugger |
| | | // 请æ±å¤±è´¥ |
| | | if (response.status !== 200) { |
| | | return Promise.reject(new Error('æå¡å¨ç¹å¿ï¼è¯·ç¨ååè¯')) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | //resetMessage.js |
| | | /**éç½®messageï¼é²æ¢éå¤ç¹å»éå¤å¼¹åºmessageæ¶æ¯æç¤º */ |
| | | import { |
| | | Message |
| | | } from 'element-ui'; |
| | | |
| | | let messageInstance = null; |
| | | |
| | | const resetMessage = (options) => { |
| | | if(messageInstance) { |
| | | messageInstance.close(); |
| | | |
| | | } |
| | | Message.closeAll(); //æå¨å
³éæææ¶æ¯æç¤ºå®ä¾ |
| | | messageInstance = Message(options); |
| | | // console.log(Message(options)); |
| | | |
| | | }; |
| | | |
| | | ['error','success','info','warning'].forEach(type => { |
| | | resetMessage[type] = options => { |
| | | if(typeof options === 'string') { |
| | | options = { |
| | | message:options |
| | | } |
| | | } |
| | | options.type = type |
| | | return resetMessage(options) |
| | | } |
| | | }) |
| | | |
| | | export const message = resetMessage |
| | |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:contract:create']" v-if="[0,2].includes(userInfo.type)"> |
| | | <li><el-button type="primary" @click="$refs.operaContractWindow.open('æ°å»ºååä¿¡æ¯è¡¨', null, 2)" icon="el-icon-plus" v-permissions="['business:contract:create']">æ°å»º</el-button></li> |
| | | <li><el-button type="primary" @click="$refs.operaContractWindow.open('æ°å»ºååä¿¡æ¯è¡¨', null, userInfo.type)" icon="el-icon-plus" v-permissions="['business:contract:create']">æ°å»º</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="220" |
| | | min-width="150" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-table-column prop="solutionBaseName" label="ä¸»æ¹æ¡" min-width="100px" v-if="userInfo.type === 0"></el-table-column> |
| | | <el-table-column label="æä¿ç±»å" min-width="120px" align="center"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.type === 0">ç´ä¿</span> |
| | | <span v-if="row.type === 1">å§æ<div style="color: blue;display: block" >{{row.shopName||'-'}}</div></span> |
| | | <span v-if="row.type === 0">ç´ä¿<div style="color: blue;display: block" >{{ row.shopName || '-' }}</div></span> |
| | | <span v-if="row.type === 1">å§æ<div style="color: blue;display: block" >{{ row.shopName || '-' }}</div></span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æä¿ä»·æ ¼" min-width="100px"> |
| | |
| | | <template v-if="userInfo.type === 1 && row.signStatus === 1"> |
| | | <el-button type="text" icon="el-icon-tickets" @click="seeFleSignUrl(row.fileSignUrl)">æ¥çæ¹æ¡ç¡®è®¤ä¹¦</el-button> |
| | | </template> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:solutions:delete']">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <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="150px" align="center"></el-table-column> |
| | |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-if="activeName === '6'"> |
| | | <div class="home_content_right_list" v-if="tableData6 && tableData6.length"> |
| | | <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> |
| | | </div> |
| | | <div class="list_item_center"> |
| | | <span>{{item.companyName}}</span> |
| | | <span>æäº¤æ¶é´ {{item.createDate}}</span> |
| | | </div> |
| | | <div class="list_item_right"> |
| | | <span @click="jump('/business/contract')">æ¥ç</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_list" v-else> |
| | | <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px"> |
| | | ææ æ¶æ¯ |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange2" |
| | | :current-page="page6" |
| | | :page-size="5" |
| | | layout="total, prev, pager, next, jumper" |
| | | :total="totalPage6"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <div v-if="activeName === '7'"> |
| | | <div class="home_content_right_list" v-if="tableData7 && tableData7.length"> |
| | | <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> |
| | | </div> |
| | | <div class="list_item_center"> |
| | | <span>{{item.companyName}}</span> |
| | | <span>æäº¤æ¶é´ {{item.createDate}}</span> |
| | | </div> |
| | | <div class="list_item_right"> |
| | | <span @click="jump('/business/solutions')">æ¥ç</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_list" v-else> |
| | | <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px"> |
| | | ææ æ¶æ¯ |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange2" |
| | | :current-page="page7" |
| | | :page-size="5" |
| | | layout="total, prev, pager, next, jumper" |
| | | :total="totalPage7"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <div v-if="activeName === '8'"> |
| | | <div class="home_content_right_list" v-if="tableData7 && tableData7.length"> |
| | | <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> |
| | | </div> |
| | | <div class="list_item_center"> |
| | | <span>{{item.companyName}}</span> |
| | | <span>æäº¤æ¶é´ {{item.createDate}}</span> |
| | | </div> |
| | | <div class="list_item_right"> |
| | | <span @click="jump('/business/companyUserApply')">æ¥ç</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_list" v-else> |
| | | <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px"> |
| | | ææ æ¶æ¯ |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange2" |
| | | :current-page="page7" |
| | | :page-size="5" |
| | | layout="total, prev, pager, next, jumper" |
| | | :total="totalPage7"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <OperaInsuranceApplyWindow ref="operaInsuranceApplyWindow" @success="handleCurrentChange0()"/> |
| | | <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" @success="handleCurrentChange0()"/> |
| | | <OperaWtbApplyShopWindow ref="OperaWatbApplyShopWindow" @success="handleCurrentChange0()"/> |
| | | <dispatchUnitDetailsPlat ref="dispatchUnitDetailsPlat" @success="handleCurrentChange0()"/> |
| | | <OperaSettleClaimsWindow ref="operaSettleClaimsWindow" @success="handleCurrentChange2()"/> |
| | | <OperaApplyChangeUnitDetailWindow ref="operaApplyChangeUnitDetailWindow" @success="handleCurrentChange0()"/> |
| | |
| | | page0: 1, |
| | | page1: 1, |
| | | page2: 1, |
| | | page6: 1, |
| | | page7: 1, |
| | | page8: 1, |
| | | totalPage8: 0, |
| | | totalPage7: 0, |
| | | totalPage6: 0, |
| | | totalPage2: 0, |
| | | totalPage1: 0, |
| | | totalPage0: 0, |
| | | tableData0: [], |
| | | tableData1: [], |
| | | tableData2: [], |
| | | tableData6: [], |
| | | tableData7: [], |
| | | tableData8: [], |
| | | cate: [ |
| | | { |
| | | name: 'æä¿ç³è¯·', |
| | |
| | | if (type === 1) { |
| | | this.tableData1 = response.records |
| | | this.totalPage1 = response.total |
| | | } if (type === 2) { |
| | | } |
| | | if (type === 2) { |
| | | this.tableData2 = response.records |
| | | this.totalPage2 = response.total |
| | | } |
| | | if (type === 6) { |
| | | this.tableData6 = response.records |
| | | this.totalPage6 = response.total |
| | | } |
| | | if (type === 7) { |
| | | this.tableData7 = response.records |
| | | this.totalPage7 = response.total |
| | | } |
| | | if (type === 8) { |
| | | this.tableData8 = response.records |
| | | this.totalPage8 = response.total |
| | | } |
| | | }) |
| | | .catch(e => { |
| | |
| | | this.tabs.push({ name: '2', label: 'çèµæé' }) |
| | | // this.handleCurrentChange2(0); |
| | | } |
| | | //æ°å¢åç±» |
| | | if (pemissons.includes('business:notice:settle')) { |
| | | this.tabs.push({ name: '3', label: 'ååç¾ç½²æé' }) |
| | | // this.handleCurrentChange2(0); |
| | | if (this.userInfo.type === 1) { |
| | | this.tabs.push({ name: '7', label: 'æ¹æ¡ç¾ç½²æé' }) |
| | | } |
| | | this.tabs.push({ name: '6', label: 'ååç¾ç½²æé' }) |
| | | if (this.userInfo.type === 0) { |
| | | this.tabs.push({ name: '8', label: 'éå¢ç³è¯·æé' }) |
| | | } |
| | | /* if (pemissons.includes('business:notice:insurance')) { |
| | | this.getNoticeList(0, this.page0) |
| | |
| | | this.handleCurrentChange1(0) |
| | | } else if (this.activeName === '2') { |
| | | this.handleCurrentChange2(0) |
| | | } else if (this.activeName === '6') { |
| | | this.handleCurrentChange6(0) |
| | | } else if (this.activeName === '7') { |
| | | this.handleCurrentChange7(0) |
| | | } else if (this.activeName === '8') { |
| | | this.handleCurrentChange8(0) |
| | | } |
| | | }, |
| | | handleCurrentChange0 (page) { |
| | |
| | | this.page2 = page |
| | | this.getNoticeList(2, this.page2) |
| | | }, |
| | | handleCurrentChange6 (page) { |
| | | this.page6 = page |
| | | this.getNoticeList(6, this.page6) |
| | | }, |
| | | handleCurrentChange7 (page) { |
| | | this.page7 = page |
| | | this.getNoticeList(7, this.page7) |
| | | }, |
| | | handleCurrentChange8 (page) { |
| | | this.page8 = page |
| | | this.getNoticeList(8, this.page8) |
| | | }, |
| | | jump (url) { |
| | | if (!url) return |
| | | this.$router.push({ path: url }) |
| | |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-if="activeName === '6'" > |
| | | <div class="home_content_right_list" v-if="tableData6&&tableData6.length"> |
| | | <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> |
| | | </div> |
| | | <div class="list_item_center"> |
| | | <span>{{item.companyName}}</span> |
| | | <span>æäº¤æ¶é´ {{item.createDate}}</span> |
| | | </div> |
| | | <div class="list_item_right"> |
| | | <span @click="jump('/business/contract')">æ¥ç</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_list" v-else> |
| | | <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px"> |
| | | ææ æ¶æ¯ |
| | | </div> |
| | | </div> |
| | | <div class="home_content_right_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange1" |
| | | :current-page="page1" |
| | | :page-size="5" |
| | | layout="total, prev, pager, next, jumper" |
| | | :total="totalPage1"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <OperaInsuranceApplyWindow ref="operaInsuranceApplyWindow" @success="handleCurrentChange0()"/> |
| | |
| | | page0: 1, |
| | | page1: 1, |
| | | page2: 1, |
| | | page6: 1, |
| | | totalPage6: 0, |
| | | totalPage2: 0, |
| | | totalPage1: 0, |
| | | totalPage0: 0, |
| | | tableData0: [], |
| | | tableData1: [], |
| | | tableData2: [], |
| | | tableData6: [], |
| | | cate: [ |
| | | { |
| | | name: 'æä¿ç³è¯·å®¡æ ¸', |
| | |
| | | initLoadData () { |
| | | this.handleCurrentChange0(0) |
| | | this.handleCurrentChange1(0) |
| | | this.handleCurrentChange6(0) |
| | | }, |
| | | getNoticeList (type, page) { |
| | | noticeList({ |
| | |
| | | this.tableData1 = response.records |
| | | this.totalPage1 = response.total |
| | | } |
| | | if (type === 6) { |
| | | this.tableData6 = response.records |
| | | this.totalPage6 = response.total |
| | | } |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | |
| | | initPanel () { |
| | | this.tabs.push({ name: '0', label: 'ç´æ¥æä¿å¾
å' }) |
| | | this.tabs.push({ name: '1', label: 'å§ææä¿å¾
å' }) |
| | | this.tabs.push({ name: '6', label: 'ååç¾ç½²æé' }) |
| | | }, |
| | | handleClick (e) { |
| | | this.activeName = e.name |
| | |
| | | this.handleCurrentChange0(0) |
| | | } else if (this.activeName === '1') { |
| | | this.handleCurrentChange1(0) |
| | | } else if (this.activeName === '6') { |
| | | this.handleCurrentChange6(0) |
| | | } |
| | | }, |
| | | handleCurrentChange0 (page) { |
| | |
| | | this.page1 = page |
| | | this.getNoticeList(4, this.page1) |
| | | }, |
| | | handleCurrentChange6 (page) { |
| | | this.page6 = page |
| | | this.getNoticeList(6, this.page6) |
| | | }, |
| | | jump (url) { |
| | | if (!url) return |
| | | this.$router.push({ path: url }) |