| | |
| | | NODE_ENV = 'development' |
| | | |
| | | # ä¼ä¸ç«¯-ä»åº· |
| | | VUE_APP_API = 'http://192.168.0.134:10025/' |
| | | # VUE_APP_API = 'http://192.168.0.134:10025/' |
| | | |
| | | # å¹³å°ç«¯-ä»åº· |
| | | # 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://localhost:10023/' |
| | | |
| | |
| | | export function getDetail (id) { |
| | | return request.get(`business/insuranceApply/${id}`) |
| | | } |
| | | export function getChangeDetail (id) { |
| | | return request.get(`business/applyChange/${id}`) |
| | | } |
| | | export function getSignLink (id) { |
| | | return request.get(`business/insuranceApply/getSignLink/${id}`) |
| | | } |
| | | export function getJiajianBaoSignLink (data) { |
| | | return request.post('/business/applyChange/getJiajianBaoSignLink', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function getChangeUnitSignLink (data) { |
| | | return request.post('/business/applyChange/getChangeUnitSignLink', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function getDetailList (data) { |
| | | return request.post('/business/applyDetail/list', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function getChangeDetailList (data) { |
| | | return request.post('/business/applyChagneDetail/list', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | |
| | | download: true |
| | | }) |
| | | } |
| | | export function exportJiajianBaoExcel (data) { |
| | | return request.post('/business/applyChange/exportJiajianBaoExcel', data, { |
| | | trim: true, |
| | | download: true |
| | | }) |
| | | } |
| | | export function backChagne (data) { |
| | | return request.post('/business/applyChange/back', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function editChangePidan (data) { |
| | | return request.post('/business/applyChange/editPidan', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function uploadChangePidan (data) { |
| | | return request.post('/business/applyChange/uploadPidan', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function dealBackChangeApply (data) { |
| | | return request.post('/business/applyChange/dealBackApply', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function exportChangeUnitExcel (data) { |
| | | return request.post('/business/applyChange/exportChangeUnitExcel', data, { |
| | | trim: true, |
| | | download: true |
| | | }) |
| | | } |
| | | |
| | | // 导åºExcel |
| | | export function applyChagneDetailExcel (data) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <div class="box"> |
| | | <div class="top"> |
| | | {{title}} |
| | | </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 class="box_table_head_item">ä¿åå·</div> |
| | | <div class="box_table_head_item">ä¿é©çæèµ·æ</div> |
| | | <div class="box_table_head_item">ä¿é©çææ¢æ</div> |
| | | <div class="box_table_head_item">æ¢å人æ°</div> |
| | | <div class="box_table_head_item">æ¹åçææ</div> |
| | | </div> |
| | | <div class="box_table_content " > |
| | | <div class="box_table_content_item box_table_content_header">{{ apply.companyName }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ apply.solutionsName }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ apply.code }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ apply.startTime }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ apply.endTime }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.changeNum}}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.applyStartTime}}</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 class="box_table_head_item">æ§å«</div> |
| | | <div class="box_table_head_item">身份è¯å·</div> |
| | | <div class="box_table_head_item">åæ´¾é£åä½</div> |
| | | <div class="box_table_head_item">åæå±å·¥ç§</div> |
| | | <div class="box_table_head_item">æ¢ååæ´¾é£åä½</div> |
| | | <div class="box_table_head_item">æ¢ååæå±å·¥ç§</div> |
| | | </div> |
| | | <div class="box_table_content" v-for="(item, index) in detailList" :key="index"> |
| | | <div class="box_table_content_item">{{index + 1}}</div> |
| | | <div class="box_table_content_item" >{{ item.memberName }}</div> |
| | | <div class="box_table_content_item">{{ item.sex==0?"ç·":(item.sex==1?"女":"" )}}</div> |
| | | <div class="box_table_content_item">{{ item.memberIdcardNo }}</div> |
| | | <div class="box_table_content_item">{{ item.oldDuName }}</div> |
| | | <div class="box_table_content_item">{{item.oldWorkTypeName}}</div> |
| | | <div class="box_table_content_item">{{ item.duName }}</div> |
| | | <div class="box_table_content_item">{{item.workTypeName}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="box_table" v-if="type==1" style="border-top: 0px solid #b4bbc5;" > |
| | | <div class="box_table_head"> |
| | | <div class="box_table_head_item5">夿³¨</div> |
| | | <div class="box_table_head_item5"> |
| | | <input v-model="form.checkInfo" style="width: 100%;height: 45px;border: 0px;outline: none;" placeholder="请è¾å
¥" v-trim/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <template v-if="type==1" v-slot:footer> |
| | | <el-button type="primary" :loading="isWorking.export" @click="check(0)">æäº¤éè¿</el-button> |
| | | <!-- <el-button type="danger" :loading="isWorking.export" @click="check(1)">å®¡æ ¸ä¸éè¿</el-button>--> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | | </template> |
| | | <template v-else v-slot:footer> |
| | | <el-button type="primary" :loading="isWorking.export" @click="exportComFilesDo">ä¼ä¸è¯ä»¶</el-button> |
| | | <el-button type="primary" :loading="isWorking.export" @click="exportDetail">导åºè¯¦å</el-button> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import {getChangeDetailList, exportChangeUnitExcel} from "@/api/business/insuranceApply"; |
| | | import {exportComFiles} from "@/api/business/company"; |
| | | // import {all as solutionAll} from "@/api/business/solutions"; |
| | | export default { |
| | | name: 'ApplyChangeUnitDetails', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | model:{}, |
| | | apply:{}, |
| | | type:0, |
| | | detailList:[], |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | dealBackApply:0, |
| | | checkInfo: '' |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | }, |
| | | reverse: true, |
| | | tableData: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title,target,target2){ |
| | | this.title=title |
| | | this.visible=true |
| | | this.apply = target |
| | | this.model = target2 |
| | | this.form.id=target.id |
| | | this.getDetailListDo() |
| | | }, |
| | | getDetailListDo() { |
| | | this.detailList = [] |
| | | var that = this |
| | | getChangeDetailList({applyChangeId: this.model.id}) |
| | | .then(res => { |
| | | that.detailList= res |
| | | }).catch(err => {}) |
| | | }, |
| | | exportDetail(){ |
| | | this.$dialog.exportConfirm('确认导åºè¯¦ååï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | exportChangeUnitExcel({ id: this.model.id }) |
| | | .then(response => { |
| | | this.download(response) |
| | | }) |
| | | .catch(e => { |
| | | console.log(e) |
| | | this.$message.error('æ°æ®ä¸è½½å¤±è´¥ï¼') |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | }) |
| | | }, |
| | | exportComFilesDo(){ |
| | | this.$dialog.exportConfirm('确认导åºä¼ä¸è¯ä»¶åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | exportComFiles({ id: this.apply.companyId }) |
| | | .then(response => { |
| | | this.download(response) |
| | | }) |
| | | .catch(e => { |
| | | console.log(e) |
| | | this.$message.error('æ°æ®ä¸è½½å¤±è´¥ï¼') |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | }) |
| | | |
| | | }, |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`); |
| | | }, |
| | | handleClick(tab, event) { |
| | | console.log(tab, event); |
| | | }, |
| | | onSubmit() { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .box { |
| | | width: 100%; |
| | | .top{ |
| | | width: 100%; |
| | | align-items: center; |
| | | flex-wrap: wrap; |
| | | border-top: 1px solid #b4bbc5; |
| | | border-left: 1px solid #b4bbc5; |
| | | font-size: 14px; |
| | | font-weight: bold; |
| | | text-align: center; |
| | | padding: 15px; |
| | | } |
| | | .box_header { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-wrap: wrap; |
| | | border-top: 1px solid #b4bbc5; |
| | | border-left: 1px solid #b4bbc5; |
| | | .box_header_item { |
| | | width: 50%; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | |
| | | .box_header_item_label { |
| | | flex: 1; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | background: #f2f2f2; |
| | | border-right: 1px solid #b4bbc5; |
| | | } |
| | | .box_header_item_val { |
| | | flex: 1; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | } |
| | | } |
| | | } |
| | | .box_table { |
| | | width: 100%; |
| | | border-top: 1px solid #b4bbc5; |
| | | border-left: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | .box_table_head { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | .box_table_head_item1 { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #f2f2f2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | } |
| | | .box_table_head_item { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #f2f2f2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(4) { |
| | | flex: 1.5;; |
| | | } |
| | | &:nth-child(6) { |
| | | flex: 1.5;; |
| | | } |
| | | &:nth-child(8) { |
| | | flex: 1.5;; |
| | | } |
| | | } |
| | | .box_table_head_item5 { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #f2f2f2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(2) { |
| | | flex: 5; |
| | | } |
| | | } |
| | | .box_form_item { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #ffffff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(1) { |
| | | //flex: 0.5; |
| | | } |
| | | } |
| | | } |
| | | .box_table_content { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | .box_table_content_header{ |
| | | border-bottom: 0px solid #b4bbc5 !important; |
| | | } |
| | | .box_table_content_item { |
| | | flex: 1; |
| | | height: 50px; |
| | | background: #ffffff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 14px; |
| | | color: black; |
| | | border-right: 1px solid #b4bbc5; |
| | | border-bottom: 1px solid #b4bbc5; |
| | | box-sizing: border-box; |
| | | &:nth-child(4) { |
| | | flex: 1.5; |
| | | } |
| | | &:nth-child(6) { |
| | | flex: 1.5; |
| | | } |
| | | &:nth-child(8) { |
| | | flex: 1.5; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }) |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | }) |
| | |
| | | .catch(e => { |
| | | console.log(e) |
| | | this.$message.error('æ°æ®ä¸è½½å¤±è´¥ï¼') |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | .catch(() => { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="50%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <!-- éåæä¿ --> |
| | | <div v-if="visible1==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>å¡«åéå说æï¼</div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.backCheckInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- ä¸ä¼ ä¿é©å --> |
| | | <div v-if="visible3==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">å®¢æ·æææ¹åçæèµ·æï¼</div> |
| | | <div class="form_item_val">{{ model.applyStartTime }}</div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">æ¹åçæèµ·ææ¯å¦ä¸è´ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-radio-group v-model="form.selectRadio" @change="selectChange"> |
| | | <el-radio :label="0" >䏿¹åä¸è´</el-radio> |
| | | <el-radio :label="1" >䏿¹åä¸ä¸è´</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>æ¹åçæèµ·æï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-date-picker |
| | | v-model="form.applyStartTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="éæ©æ¥æ"> |
| | | </el-date-picker> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">æ¹åçæèµ·æï¼</div> |
| | | <div class="form_item_val">{{ form.applyStartTime }}</div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>æ¹åå·ï¼</div> |
| | | <div class="form_item_val" > |
| | | <el-input v-model="form.validCode" placeholder="请è¾å
¥"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">ä¸ä¼ æ¹åï¼</div> |
| | | <div class="form_item_val"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- ä¿®æ¹ä¿é©å --> |
| | | <div v-if="visible4==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">æ¹åçæèµ·æï¼</div> |
| | | <div class="form_item_val">{{ model.applyStartTime }}</div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>æ¹åå·ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-input v-model="form.editValidCode" placeholder="请è¾å
¥"></el-input> |
| | | </div> |
| | | </div> |
| | | <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" /> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>ä¿®æ¹åå ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-input placeholder="请è¾å
¥" v-model="form.editCheckInfo" ></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- 驳åéåç³è¯· --> |
| | | <div v-if="visible5==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>å¡«å说æï¼</div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.dealBackInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- åæéåç³è¯· --> |
| | | <div v-if="visible6==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>åæéå说æï¼</div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.dealBackInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="doSubmit">ç¡® å®</el-button> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { |
| | | backChagne, |
| | | uploadChangePidan, |
| | | editChangePidan, |
| | | dealBackChangeApply |
| | | } from '@/api/business/insuranceApply' |
| | | import UploadFile from '@/components/common/UploadFile' |
| | | export default { |
| | | name: 'OperaApplyChangeCheckWindow', |
| | | extends: BaseOpera, |
| | | components: {UploadFile, GlobalWindow }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | model: {}, |
| | | falg :0, |
| | | form: { |
| | | id: null, |
| | | backCheckInfo:'', |
| | | dealBackInfo:'', |
| | | editCheckInfo:'', |
| | | editValidCode: '', |
| | | applyStartTime:null, |
| | | validCode:null, |
| | | pidanFile:null, |
| | | editPidanFile:null, |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | | }, |
| | | visible1: false, |
| | | visible3: false, |
| | | visible4: false, |
| | | visible5: false, |
| | | visible6: false, |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title,target,flag){ |
| | | this.visible=true |
| | | this.model={} |
| | | this.form= { |
| | | id: null, |
| | | backCheckInfo:'', |
| | | dealBackInfo:'', |
| | | editCheckInfo:'', |
| | | editValidCode: '', |
| | | applyStartTime:null, |
| | | validCode:null, |
| | | pidanFile:null, |
| | | editPidanFile:null, |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | | }, |
| | | this.model=target |
| | | this.form.applyStartTime=this.model.applyStartTime |
| | | this.form.editValidCode=this.model.validCode |
| | | this.title=title |
| | | this.flag = flag |
| | | this.visible1 = false |
| | | this.visible3 = false |
| | | this.visible4 = false |
| | | this.visible5 = false |
| | | this.visible6 = false |
| | | if(flag == 1){ |
| | | this.visible1 = true |
| | | } |
| | | if(flag == 3){ |
| | | this.visible3 = true |
| | | } |
| | | if(flag == 4){ |
| | | this.visible4 = true |
| | | } |
| | | if(flag == 5){ |
| | | this.visible5 = true |
| | | } |
| | | if(flag == 6){ |
| | | this.visible6 = true |
| | | } |
| | | }, |
| | | doSubmit(){ |
| | | if (this.flag == 1) { |
| | | this.backDo() |
| | | } else if (this.flag == 3) { |
| | | this.uploadPidan() |
| | | } else if (this.flag == 4) { |
| | | this.editPidan() |
| | | } else if (this.flag == 5) { |
| | | this.dealBackApply(1) |
| | | } else if (this.flag == 6) { |
| | | this.dealBackApply(0) |
| | | } |
| | | }, |
| | | selectChange(){ |
| | | if(this.form.selectRadio == 0){ |
| | | this.form.applyStartTime = this.model.validTime |
| | | }else{ |
| | | |
| | | } |
| | | }, |
| | | baoxianFileUploaded(data){ |
| | | this.form.pidanFile=data |
| | | }, |
| | | editBaoxianFileUploaded(data){ |
| | | this.form.editPidanFile=data |
| | | }, |
| | | backDo(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | backChagne({id:this.model.id,checkInfo:this.form.backCheckInfo}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | dealBackApply(type){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | dealBackChangeApply({ id: this.model.id, checkInfo: this.form.dealBackInfo, dealBackApply: type }) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | uploadPidan(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFile:this.form.pidanFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | |
| | | }, |
| | | editPidan(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFile:this.form.editPidanFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | handleRemove(file, fileList) { |
| | | console.log(file, fileList); |
| | | }, |
| | | handlePreview(file) { |
| | | console.log(file); |
| | | }, |
| | | handleExceed(files, fileList) { |
| | | this.$message.warning(`å½åéå¶éæ© 3 个æä»¶ï¼æ¬æ¬¡éæ©äº ${files.length} 个æä»¶ï¼å
±éæ©äº ${files.length + fileList.length} 个æä»¶`); |
| | | }, |
| | | beforeRemove(file, fileList) { |
| | | return this.$confirm(`ç¡®å®ç§»é¤ ${ file.name }ï¼`); |
| | | }, |
| | | successEvent() { |
| | | |
| | | }, |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`); |
| | | }, |
| | | handleClick(tab, event) { |
| | | console.log(tab, event); |
| | | }, |
| | | onSubmit() { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .form { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | .form_span { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: start; |
| | | flex-direction: column; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-size: 14px; |
| | | &:nth-child(1) { |
| | | color: black; |
| | | margin-bottom: 5px; |
| | | } |
| | | &:nth-child(2) { |
| | | color: #8c939d; |
| | | } |
| | | } |
| | | } |
| | | .form_item { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | .form_item_label { |
| | | flex-shrink: 0; |
| | | width: 170px; |
| | | color: black; |
| | | font-size: 14px; |
| | | span { |
| | | color: red; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .form_item_val { |
| | | flex: 1; |
| | | /*height: 40px;*/ |
| | | margin-left: 20px; |
| | | textarea { |
| | | width: 100%; |
| | | height: 70px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 10px; |
| | | outline: none; |
| | | box-sizing: border-box; |
| | | } |
| | | input { |
| | | width: 100%; |
| | | height: 40px; |
| | | outline: none; |
| | | border-radius: 5px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 0 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .desc { |
| | | width: 100%; |
| | | .desc_item { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .desc_item_label { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-bottom: 10px; |
| | | span { |
| | | font-size: 14px; |
| | | color: black; |
| | | margin-right: 30px; |
| | | } |
| | | } |
| | | .desc_item_from { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | .desc_item_from_page { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: end; |
| | | margin-top: 10px; |
| | | } |
| | | } |
| | | .desc_item_cate { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | } |
| | | .desc_item_search { |
| | | width: 100%; |
| | | margin-bottom: 20px; |
| | | } |
| | | .desc_item_review { |
| | | width: 100%; |
| | | .desc_item_review_label { |
| | | font-size: 20px; |
| | | color: black; |
| | | font-weight: bold; |
| | | margin-bottom: 15px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <div class="desc"> |
| | | <div class="desc_item"> |
| | | <div class="desc_item_label"> |
| | | <div class="desc_item_label_left"> |
| | | <span>æä¿ä¼ä¸ï¼{{ apply.companyName }}</span> |
| | | <span v-if="model.status === 0">ä¿åç¶æï¼å¾
ç¾ç½²</span> |
| | | <span v-if="model.status === 1">ä¿åç¶æï¼å·²ç¾ç« </span> |
| | | <span v-if="model.status === 2">ä¿åç¶æï¼å·²ä¸ä¼ æ¹å</span> |
| | | <span v-if="model.status === 3 || model.status === 4">ä¿åç¶æï¼éåç³è¯·</span> |
| | | <span v-if="model.status ===5 || model.status === 8">ä¿åç¶æï¼å·²éå</span> |
| | | <span v-if="model.status ===7">ä¿åç¶æï¼å·²å
³é</span> |
| | | <span>æäº¤æ¶é´ï¼{{ model.createDate }}</span> |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <template v-if="userInfo.type === 1"> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('å åä¿è¯¦å',apply,model)">导åºè¯¦å</el-button> |
| | | <el-button v-if="model.status == 4" type="primary" @click="$refs.OperaInsuranceApply.open('æä¿ç³è¯·', {id: dataId})">忬¡æä¿</el-button> |
| | | <el-button type="primary" v-if="model.status == 0" @click="goSign">ç¾ç½²ç³è¯·å</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="viewApplyFile">æ¥çç³è¯·å</el-button> |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewPidan">æ¥çæ¹å</el-button> |
| | | <el-button v-if="model.status == 2" type="primary" @click="closeApply">å
³é订å</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('å åä¿è¯¦å',apply,model)">导åºè¯¦å</el-button> |
| | | <el-button v-if="[1,2,4].includes(model.status)" type="primary" @click="viewApplyFile">æ¥çç³è¯·å</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.OperaApplyChangeCheckWindow.open('ä¸ä¼ æ¹å',model,3)">ä¸ä¼ æ¹å</el-button> |
| | | <el-button v-if="[3,4].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('驳åéåç³è¯·',model,5)">驳åéåç³è¯·</el-button> |
| | | <el-button v-if="[0,1,3,4].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('éåæä¿',model,1)">éåæä¿</el-button> |
| | | <el-button v-if="[2].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('ä¿®æ¹æ¹å',model,4)">ä¿®æ¹æ¹å</el-button> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="validCode" |
| | | align="center" |
| | | label="æ¹åå·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="applyCode" |
| | | align="center" |
| | | label="ä¿åå·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="solutionsName" |
| | | label="ä¿é©æ¹æ¡" |
| | | align="center" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="startTime" |
| | | align="center" |
| | | label="ä¿é©çæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="endTime" |
| | | align="center" |
| | | label="ä¿é©çææ¢æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="applyStartTime" |
| | | align="center" |
| | | label="æ¹åçæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="addNum" |
| | | align="center" |
| | | label="å ä¿äººæ°"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="delNum" |
| | | align="center" |
| | | label="åä¿äººæ°"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="fee" |
| | | align="center" |
| | | label="è´¹ç¨åæ´ï¼å
ï¼"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div class="desc_item_cate"> |
| | | <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-tabs> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | | <el-table |
| | | :data="list" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column label="åºå·"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="memberName" |
| | | label="åå·¥å§å"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="æ§å«"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.sex === 0">ç·</span> |
| | | <span v-else>女</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="memberIdcardNo" |
| | | label="身份è¯å·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="duName" |
| | | label="æ´¾é£åä½"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="workTypeName" |
| | | label="æå±å·¥ç§"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="startTime" |
| | | label="ä¿é©çæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="endTime" |
| | | label="ä¿é©çææ¢æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="fee" |
| | | label="产çè´¹ç¨ï¼å
ï¼"> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="desc_item_from_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-size="10" |
| | | layout="total, prev, pager, next, jumper" |
| | | :total="total"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_review"> |
| | | <div class="desc_item_review_label">å®¡æ ¸æµç¨</div> |
| | | <el-timeline :reverse="reverse"> |
| | | <el-timeline-item |
| | | v-for="(activity, index) in activities" |
| | | :key="index"> |
| | | <div style="display: flex; flex-direction: column;"> |
| | | <span style="font-size: 16px; font-weight: 400; color: black;"> |
| | | {{activity.title}} |
| | | <span style="font-size: 16px; font-weight: 400; color: black; margin-left: 10px;" > |
| | | {{activity.content}} |
| | | </span> |
| | | </span> |
| | | <span style="margin-top: 5px; font-size: 12px; font-weight: 400; color: #999999;"> |
| | | æä½å-{{activity.creatorName}}ï¼{{activity.creatorType==1? activity.companyName: "å¹³å°ç«¯"}}ï¼{{activity.createDate}} |
| | | </span> |
| | | </div> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <ApplyChangeDetails ref="ApplyChangeDetails" @success="successEvent" /> |
| | | <OperaApplyChangeCheckWindow ref="OperaApplyChangeCheckWindow" @success="successEvent" /> |
| | | <!-- ä¼ä¸ç³è¯·éå --> |
| | | <applyReturn ref="applyReturn" @success="successEvent" /> |
| | | <!-- æ°å¢æä¿ --> |
| | | <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" /> |
| | | <!-- å åä¿ç³è¯· --> |
| | | <additionSubtractionApplication ref="additionSubtractionApplication" @success="successEvent" /> |
| | | <!-- æ¢åç³è¯· --> |
| | | <factoryChange ref="factoryChange" @success="successEvent" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import ApplyChangeDetails from '@/components/business/ApplyChangeDetails' |
| | | import OperaApplyChangeCheckWindow from '@/components/business/OperaApplyChangeCheckWindow' |
| | | import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication' |
| | | import factoryChange from '@/components/enterprise/factoryChange' |
| | | import applyReturn from '@/components/enterprise/applyReturn' |
| | | import { |
| | | getDetail, |
| | | getChangeDetail, |
| | | applyChagneDetailPage, |
| | | getJiajianBaoSignLink |
| | | } from '@/api/business/insuranceApply' |
| | | import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow' |
| | | import { mapState } from 'vuex' |
| | | |
| | | export default { |
| | | name: 'OperaApplyChangeDetailWindow', |
| | | extends: BaseOpera, |
| | | components: { |
| | | GlobalWindow, |
| | | ApplyChangeDetails, |
| | | OperaApplyChangeCheckWindow, |
| | | applyReturn, |
| | | OperaInsuranceApply, |
| | | additionSubtractionApplication, |
| | | factoryChange |
| | | }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | dataId:null, |
| | | modelId:null, |
| | | apply:{}, |
| | | model: {}, |
| | | form: { |
| | | id: null, |
| | | editDate: '' |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | }, |
| | | formInline: { |
| | | applyStatus: '', |
| | | duId: '', |
| | | workTypeId: '', |
| | | memberName: '', |
| | | types: '' |
| | | }, |
| | | reverse: true, |
| | | radio: 0, |
| | | activities: [], |
| | | tableData: [], |
| | | list: [], |
| | | activeName: '0', |
| | | total: 0, |
| | | currentPage: 1 |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | methods: { |
| | | open(title,target){ |
| | | this.visible = true; |
| | | this.title = title |
| | | this.dataId = target.applyId |
| | | this.modelId = target.id |
| | | this.getDetail() |
| | | this.getList() |
| | | }, |
| | | resetting() { |
| | | this.search() |
| | | }, |
| | | search() { |
| | | this.currentPage = 1 |
| | | this.getList() |
| | | }, |
| | | getList() { |
| | | applyChagneDetailPage({ |
| | | capacity: 10, |
| | | page: this.currentPage, |
| | | model: { |
| | | applyChangId: this.modelId, |
| | | types:[ this.activeName] |
| | | } |
| | | }).then(res => { |
| | | this.list = res.records |
| | | this.total = res.total |
| | | }) |
| | | }, |
| | | handleClick(e) { |
| | | this.activeName = e.index |
| | | this.resetting() |
| | | }, |
| | | goSign(){ |
| | | getJiajianBaoSignLink({id:this.modelId}).then(res => { |
| | | setTimeout(() => { |
| | | window.open(res) |
| | | }, 500); |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }, |
| | | viewApplyFile(){ |
| | | if(this.model.applyFile && this.model.applyFile.fileurlFull){ |
| | | window.open(this.model.applyFile.fileurlFull) |
| | | } |
| | | }, |
| | | viewPidan(){ |
| | | if(this.model.pidanFile && this.model.pidanFile.fileurlFull){ |
| | | window.open(this.model.pidanFile.fileurlFull) |
| | | } |
| | | }, |
| | | handleSizeChange(val){ |
| | | console.log(val) |
| | | }, |
| | | handleCurrentChange(val){ |
| | | console.log(val) |
| | | this.page = val |
| | | this.getList() |
| | | }, |
| | | onSubmit(){ |
| | | |
| | | }, |
| | | getDetail(){ |
| | | getDetail(this.dataId).then(res => { |
| | | 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 => { |
| | | }) |
| | | }, |
| | | successEvent(){ |
| | | // this.visible=false |
| | | this.getDetail() |
| | | this.$emit('success') |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .form { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | .form_span { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: start; |
| | | flex-direction: column; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-size: 14px; |
| | | &:nth-child(1) { |
| | | color: black; |
| | | margin-bottom: 5px; |
| | | } |
| | | &:nth-child(2) { |
| | | color: #8c939d; |
| | | } |
| | | } |
| | | } |
| | | .form_item { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | .form_item_label { |
| | | flex-shrink: 0; |
| | | width: 170px; |
| | | color: black; |
| | | font-size: 14px; |
| | | span { |
| | | color: red; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .form_item_val { |
| | | flex: 1; |
| | | /*height: 40px;*/ |
| | | margin-left: 20px; |
| | | textarea { |
| | | width: 100%; |
| | | height: 70px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 10px; |
| | | outline: none; |
| | | box-sizing: border-box; |
| | | } |
| | | input { |
| | | width: 100%; |
| | | height: 40px; |
| | | outline: none; |
| | | border-radius: 5px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 0 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .desc { |
| | | width: 100%; |
| | | .desc_item { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .desc_item_label { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-bottom: 10px; |
| | | span { |
| | | font-size: 14px; |
| | | color: black; |
| | | margin-right: 30px; |
| | | } |
| | | } |
| | | .desc_item_from { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | .desc_item_from_page { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: end; |
| | | margin-top: 10px; |
| | | } |
| | | } |
| | | .desc_item_cate { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | } |
| | | .desc_item_search { |
| | | width: 100%; |
| | | margin-bottom: 20px; |
| | | } |
| | | .desc_item_review { |
| | | width: 100%; |
| | | .desc_item_review_label { |
| | | font-size: 20px; |
| | | color: black; |
| | | font-weight: bold; |
| | | margin-bottom: 15px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="50%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <!-- éåæä¿ --> |
| | | <div v-if="visible1==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>å¡«åéå说æï¼</div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.backCheckInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- ä¸ä¼ ä¿é©å --> |
| | | <div v-if="visible3==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">å®¢æ·æææ¹åçæèµ·æï¼</div> |
| | | <div class="form_item_val">{{ model.applyStartTime }}</div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">æ¹åçæèµ·ææ¯å¦ä¸è´ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-radio-group v-model="form.selectRadio" @change="selectChange"> |
| | | <el-radio :label="0" >䏿¹åä¸è´</el-radio> |
| | | <el-radio :label="1" >䏿¹åä¸ä¸è´</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>æ¹åçæèµ·æï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-date-picker |
| | | v-model="form.applyStartTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="éæ©æ¥æ"> |
| | | </el-date-picker> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">æ¹åçæèµ·æï¼</div> |
| | | <div class="form_item_val">{{ form.applyStartTime }}</div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>æ¹åå·ï¼</div> |
| | | <div class="form_item_val" > |
| | | <el-input v-model="form.validCode" placeholder="请è¾å
¥"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">ä¸ä¼ æ¹åï¼</div> |
| | | <div class="form_item_val"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- ä¿®æ¹ä¿é©å --> |
| | | <div v-if="visible4==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">æ¹åçæèµ·æï¼</div> |
| | | <div class="form_item_val">{{ model.applyStartTime }}</div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>æ¹åå·ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-input v-model="form.editValidCode" placeholder="请è¾å
¥"></el-input> |
| | | </div> |
| | | </div> |
| | | <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" /> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>ä¿®æ¹åå ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-input placeholder="请è¾å
¥" v-model="form.editCheckInfo" ></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- 驳åéåç³è¯· --> |
| | | <div v-if="visible5==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>å¡«å说æï¼</div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.dealBackInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- åæéåç³è¯· --> |
| | | <div v-if="visible6==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>åæéå说æï¼</div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.dealBackInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="doSubmit">ç¡® å®</el-button> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { |
| | | backChagne, |
| | | uploadChangePidan, |
| | | editChangePidan, |
| | | dealBackChangeApply |
| | | } from '@/api/business/insuranceApply' |
| | | import UploadFile from '@/components/common/UploadFile' |
| | | export default { |
| | | name: 'OperaApplyChangeCheckWindow', |
| | | extends: BaseOpera, |
| | | components: {UploadFile, GlobalWindow }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | model: {}, |
| | | falg :0, |
| | | form: { |
| | | id: null, |
| | | backCheckInfo:'', |
| | | dealBackInfo:'', |
| | | editCheckInfo:'', |
| | | editValidCode: '', |
| | | applyStartTime:null, |
| | | validCode:null, |
| | | pidanFile:null, |
| | | editPidanFile:null, |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | | }, |
| | | visible1: false, |
| | | visible3: false, |
| | | visible4: false, |
| | | visible5: false, |
| | | visible6: false, |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title,target,flag){ |
| | | this.visible=true |
| | | this.model={} |
| | | this.form= { |
| | | id: null, |
| | | backCheckInfo:'', |
| | | dealBackInfo:'', |
| | | editCheckInfo:'', |
| | | editValidCode: '', |
| | | applyStartTime:null, |
| | | validCode:null, |
| | | pidanFile:null, |
| | | editPidanFile:null, |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | | }, |
| | | this.model=target |
| | | this.form.applyStartTime=this.model.applyStartTime |
| | | this.form.editValidCode=this.model.validCode |
| | | this.title=title |
| | | this.flag = flag |
| | | this.visible1 = false |
| | | this.visible3 = false |
| | | this.visible4 = false |
| | | this.visible5 = false |
| | | this.visible6 = false |
| | | if(flag == 1){ |
| | | this.visible1 = true |
| | | } |
| | | if(flag == 3){ |
| | | this.visible3 = true |
| | | } |
| | | if(flag == 4){ |
| | | this.visible4 = true |
| | | } |
| | | if(flag == 5){ |
| | | this.visible5 = true |
| | | } |
| | | if(flag == 6){ |
| | | this.visible6 = true |
| | | } |
| | | }, |
| | | doSubmit(){ |
| | | if (this.flag == 1) { |
| | | this.backDo() |
| | | } else if (this.flag == 3) { |
| | | this.uploadPidan() |
| | | } else if (this.flag == 4) { |
| | | this.editPidan() |
| | | } else if (this.flag == 5) { |
| | | this.dealBackApply(1) |
| | | } else if (this.flag == 6) { |
| | | this.dealBackApply(0) |
| | | } |
| | | }, |
| | | selectChange(){ |
| | | if(this.form.selectRadio == 0){ |
| | | this.form.applyStartTime = this.model.validTime |
| | | }else{ |
| | | |
| | | } |
| | | }, |
| | | baoxianFileUploaded(data){ |
| | | this.form.pidanFile=data |
| | | }, |
| | | editBaoxianFileUploaded(data){ |
| | | this.form.editPidanFile=data |
| | | }, |
| | | backDo(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | backChagne({id:this.model.id,checkInfo:this.form.backCheckInfo}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | dealBackApply(type){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | dealBackChangeApply({ id: this.model.id, checkInfo: this.form.dealBackInfo, dealBackApply: type }) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | uploadPidan(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFile:this.form.pidanFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | |
| | | }, |
| | | editPidan(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFile:this.form.editPidanFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | handleRemove(file, fileList) { |
| | | console.log(file, fileList); |
| | | }, |
| | | handlePreview(file) { |
| | | console.log(file); |
| | | }, |
| | | handleExceed(files, fileList) { |
| | | this.$message.warning(`å½åéå¶éæ© 3 个æä»¶ï¼æ¬æ¬¡éæ©äº ${files.length} 个æä»¶ï¼å
±éæ©äº ${files.length + fileList.length} 个æä»¶`); |
| | | }, |
| | | beforeRemove(file, fileList) { |
| | | return this.$confirm(`ç¡®å®ç§»é¤ ${ file.name }ï¼`); |
| | | }, |
| | | successEvent() { |
| | | |
| | | }, |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`); |
| | | }, |
| | | handleClick(tab, event) { |
| | | console.log(tab, event); |
| | | }, |
| | | onSubmit() { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .form { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | .form_span { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: start; |
| | | flex-direction: column; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-size: 14px; |
| | | &:nth-child(1) { |
| | | color: black; |
| | | margin-bottom: 5px; |
| | | } |
| | | &:nth-child(2) { |
| | | color: #8c939d; |
| | | } |
| | | } |
| | | } |
| | | .form_item { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | .form_item_label { |
| | | flex-shrink: 0; |
| | | width: 170px; |
| | | color: black; |
| | | font-size: 14px; |
| | | span { |
| | | color: red; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .form_item_val { |
| | | flex: 1; |
| | | /*height: 40px;*/ |
| | | margin-left: 20px; |
| | | textarea { |
| | | width: 100%; |
| | | height: 70px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 10px; |
| | | outline: none; |
| | | box-sizing: border-box; |
| | | } |
| | | input { |
| | | width: 100%; |
| | | height: 40px; |
| | | outline: none; |
| | | border-radius: 5px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 0 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .desc { |
| | | width: 100%; |
| | | .desc_item { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .desc_item_label { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-bottom: 10px; |
| | | span { |
| | | font-size: 14px; |
| | | color: black; |
| | | margin-right: 30px; |
| | | } |
| | | } |
| | | .desc_item_from { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | .desc_item_from_page { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: end; |
| | | margin-top: 10px; |
| | | } |
| | | } |
| | | .desc_item_cate { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | } |
| | | .desc_item_search { |
| | | width: 100%; |
| | | margin-bottom: 20px; |
| | | } |
| | | .desc_item_review { |
| | | width: 100%; |
| | | .desc_item_review_label { |
| | | font-size: 20px; |
| | | color: black; |
| | | font-weight: bold; |
| | | margin-bottom: 15px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <div class="desc"> |
| | | <div class="desc_item"> |
| | | <div class="desc_item_label"> |
| | | <div class="desc_item_label_left"> |
| | | <span>æä¿ä¼ä¸ï¼{{ apply.companyName }}</span> |
| | | <span v-if="model.status === 0">ä¿åç¶æï¼å¾
ç¾ç½²</span> |
| | | <span v-if="model.status === 1">ä¿åç¶æï¼å·²ç¾ç« </span> |
| | | <span v-if="model.status === 2">ä¿åç¶æï¼å·²ä¸ä¼ æ¹å</span> |
| | | <span v-if="model.status === 3 || model.status === 4">ä¿åç¶æï¼éåç³è¯·</span> |
| | | <span v-if="model.status ===5 || model.status === 8">ä¿åç¶æï¼å·²éå</span> |
| | | <span v-if="model.status ===7">ä¿åç¶æï¼å·²å
³é</span> |
| | | <span>æäº¤æ¶é´ï¼{{ model.createDate }}</span> |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <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 == 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.ApplyChangeDetails.open('æ¢åç³è¯·è¯¦å',apply,model)">导åºè¯¦å</el-button> |
| | | <el-button type="primary" v-if="model.status == 0" @click="goSign">ç¾ç½²ç³è¯·å</el-button> |
| | | <el-button v-if="[1,2,4].includes(model.status)" type="primary" @click="viewApplyFile">æ¥çç³è¯·å</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.OperaApplyChangeCheckWindow.open('ä¸ä¼ æ¹å',model,3)">ä¸ä¼ æ¹å</el-button> |
| | | <el-button v-if="[3,4].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('驳åéåç³è¯·',model,5)">驳åéåç³è¯·</el-button> |
| | | <el-button v-if="[0,1,3,4].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('éåæä¿',model,1)">éåæä¿</el-button> |
| | | <el-button v-if="[2].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('ä¿®æ¹æ¹å',model,4)">ä¿®æ¹æ¹å</el-button> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="validCode" |
| | | align="center" |
| | | label="æ¹åå·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="applyCode" |
| | | align="center" |
| | | label="å
³èä¿åå·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="solutionsName" |
| | | label="ä¿é©æ¹æ¡" |
| | | align="center" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="startTime" |
| | | align="center" |
| | | label="ä¿é©çæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="endTime" |
| | | align="center" |
| | | label="ä¿é©çææ¢æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="applyStartTime" |
| | | align="center" |
| | | label="æ¹åçæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="changeNum" |
| | | align="center" |
| | | label="æ¢å人æ°"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | | <el-table |
| | | :data="list" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column label="åºå·"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="memberName" |
| | | label="åå·¥å§å"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="æ§å«"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.sex === 0">ç·</span> |
| | | <span v-else>女</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="memberIdcardNo" |
| | | label="身份è¯å·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="oldDuName" |
| | | label="åæ´¾é£åä½"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="oldWorkTypeName" |
| | | label="åæå±å·¥ç§"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="startTime" |
| | | label="ä¿é©çæèµ·æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="duName" |
| | | label="æ¢ååæ´¾é£åä½"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="workTypeName" |
| | | label="æ¢ååæå±å·¥ç§"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="endTime" |
| | | label="ä¿é©çææ¢æ"> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="desc_item_from_page"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-size="10" |
| | | layout="total, prev, pager, next, jumper" |
| | | :total="total"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_review"> |
| | | <div class="desc_item_review_label">å®¡æ ¸æµç¨</div> |
| | | <el-timeline :reverse="reverse"> |
| | | <el-timeline-item |
| | | v-for="(activity, index) in activities" |
| | | :key="index"> |
| | | <div style="display: flex; flex-direction: column;"> |
| | | <span style="font-size: 16px; font-weight: 400; color: black;"> |
| | | {{activity.title}} |
| | | <span style="font-size: 16px; font-weight: 400; color: black; margin-left: 10px;" > |
| | | {{activity.content}} |
| | | </span> |
| | | </span> |
| | | <span style="margin-top: 5px; font-size: 12px; font-weight: 400; color: #999999;"> |
| | | æä½å-{{activity.creatorName}}ï¼{{activity.creatorType==1? activity.companyName: "å¹³å°ç«¯"}}ï¼{{activity.createDate}} |
| | | </span> |
| | | </div> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <ApplyChangeUnitDetails ref="ApplyChangeDetails" @success="successEvent" /> |
| | | <OperaApplyChangeUnitCheckWindow ref="OperaApplyChangeCheckWindow" @success="successEvent" /> |
| | | <!-- ä¼ä¸ç³è¯·éå --> |
| | | <applyReturn ref="applyReturn" @success="successEvent" /> |
| | | <!-- æ°å¢æä¿ --> |
| | | <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" /> |
| | | <!-- å åä¿ç³è¯· --> |
| | | <additionSubtractionApplication ref="additionSubtractionApplication" @success="successEvent" /> |
| | | <!-- æ¢åç³è¯· --> |
| | | <factoryChange ref="factoryChange" @success="successEvent" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import ApplyChangeUnitDetails from '@/components/business/ApplyChangeUnitDetails' |
| | | import OperaApplyChangeUnitCheckWindow from '@/components/business/OperaApplyChangeUnitCheckWindow' |
| | | import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication' |
| | | import factoryChange from '@/components/enterprise/factoryChange' |
| | | import applyReturn from '@/components/enterprise/applyReturn' |
| | | import { |
| | | getDetail, |
| | | getChangeDetail, |
| | | applyChagneDetailPage, |
| | | getChangeUnitSignLink |
| | | } from '@/api/business/insuranceApply' |
| | | import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow' |
| | | import { mapState } from 'vuex' |
| | | |
| | | export default { |
| | | name: 'OperaApplyChangeDetailWindow', |
| | | extends: BaseOpera, |
| | | components: { |
| | | GlobalWindow, |
| | | ApplyChangeUnitDetails, |
| | | OperaApplyChangeUnitCheckWindow, |
| | | applyReturn, |
| | | OperaInsuranceApply, |
| | | additionSubtractionApplication, |
| | | factoryChange |
| | | }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | dataId:null, |
| | | modelId:null, |
| | | apply:{}, |
| | | model: {}, |
| | | form: { |
| | | id: null, |
| | | editDate: '' |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | }, |
| | | formInline: { |
| | | applyStatus: '', |
| | | duId: '', |
| | | workTypeId: '', |
| | | memberName: '', |
| | | types: '' |
| | | }, |
| | | reverse: true, |
| | | radio: 0, |
| | | activities: [], |
| | | tableData: [], |
| | | list: [], |
| | | activeName: '0', |
| | | total: 0, |
| | | currentPage: 1 |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | methods: { |
| | | open(title,target){ |
| | | this.visible = true; |
| | | this.title = title |
| | | this.dataId = target.applyId |
| | | this.modelId = target.id |
| | | this.getDetail() |
| | | this.getList() |
| | | }, |
| | | resetting() { |
| | | this.search() |
| | | }, |
| | | search() { |
| | | this.currentPage = 1 |
| | | this.getList() |
| | | }, |
| | | getList() { |
| | | applyChagneDetailPage({ |
| | | capacity: 10, |
| | | page: this.currentPage, |
| | | model: { |
| | | applyChangId: this.modelId, |
| | | types:[2] |
| | | } |
| | | }).then(res => { |
| | | this.list = res.records |
| | | this.total = res.total |
| | | }) |
| | | }, |
| | | handleClick(e) { |
| | | this.activeName = e.index |
| | | this.resetting() |
| | | }, |
| | | goSign(){ |
| | | getChangeUnitSignLink({id:this.modelId}).then(res => { |
| | | setTimeout(() => { |
| | | window.open(res) |
| | | }, 500); |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }, |
| | | viewApplyFile(){ |
| | | if(this.model.applyUnitFile && this.model.applyUnitFile.fileurlFull){ |
| | | window.open(this.model.applyUnitFile.fileurlFull) |
| | | } |
| | | }, |
| | | viewPidan(){ |
| | | if(this.model.pidanFile && this.model.pidanFile.fileurlFull){ |
| | | window.open(this.model.pidanFile.fileurlFull) |
| | | } |
| | | }, |
| | | handleSizeChange(val){ |
| | | console.log(val) |
| | | }, |
| | | handleCurrentChange(val){ |
| | | console.log(val) |
| | | this.page = val |
| | | this.getList() |
| | | }, |
| | | onSubmit(){ |
| | | |
| | | }, |
| | | getDetail(){ |
| | | getDetail(this.dataId).then(res => { |
| | | 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 => { |
| | | }) |
| | | }, |
| | | successEvent(){ |
| | | // this.visible=false |
| | | this.getDetail() |
| | | this.$emit('success') |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .form { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | .form_span { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: start; |
| | | flex-direction: column; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-size: 14px; |
| | | &:nth-child(1) { |
| | | color: black; |
| | | margin-bottom: 5px; |
| | | } |
| | | &:nth-child(2) { |
| | | color: #8c939d; |
| | | } |
| | | } |
| | | } |
| | | .form_item { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | .form_item_label { |
| | | flex-shrink: 0; |
| | | width: 170px; |
| | | color: black; |
| | | font-size: 14px; |
| | | span { |
| | | color: red; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .form_item_val { |
| | | flex: 1; |
| | | /*height: 40px;*/ |
| | | margin-left: 20px; |
| | | textarea { |
| | | width: 100%; |
| | | height: 70px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 10px; |
| | | outline: none; |
| | | box-sizing: border-box; |
| | | } |
| | | input { |
| | | width: 100%; |
| | | height: 40px; |
| | | outline: none; |
| | | border-radius: 5px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 0 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .desc { |
| | | width: 100%; |
| | | .desc_item { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .desc_item_label { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-bottom: 10px; |
| | | span { |
| | | font-size: 14px; |
| | | color: black; |
| | | margin-right: 30px; |
| | | } |
| | | } |
| | | .desc_item_from { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | .desc_item_from_page { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: end; |
| | | margin-top: 10px; |
| | | } |
| | | } |
| | | .desc_item_cate { |
| | | width: 100%; |
| | | margin-bottom: 10px; |
| | | } |
| | | .desc_item_search { |
| | | width: 100%; |
| | | margin-bottom: 20px; |
| | | } |
| | | .desc_item_review { |
| | | width: 100%; |
| | | .desc_item_review_label { |
| | | font-size: 20px; |
| | | color: black; |
| | | font-weight: bold; |
| | | margin-bottom: 15px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | } from "@/api/business/insuranceApply"; |
| | | import UploadFile from "@/components/common/UploadFile"; |
| | | export default { |
| | | name: 'OperaInsuranceApplyCheckWindow', |
| | | name: 'OperaChangeApplyCheckWindow', |
| | | extends: BaseOpera, |
| | | components: {UploadFile, GlobalWindow }, |
| | | data () { |
| | |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | uploadBaoxiandan({id:this.model.id,startTime:this.form.startTime,checkInfo:this.form.backCheckInfo,code:this.form.code,baoxiandanFile:this.form.baoxianFile}) |
| | | uploadBaoxiandan({id:this.model.id,startTime:this.form.startTime,code:this.form.code,baoxiandanFile:this.form.baoxianFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | editBaoxiandan({id:this.model.id, checkInfo:this.form.backCheckInfo,code:this.form.editCode,baoxiandanFile:this.form.editBaoxianFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | backeditBaoxiandan(){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | editBaoxiandan({id:this.model.id,checkInfo:this.form.backCheckInfo}) |
| | | editBaoxiandan({id:this.model.id, checkInfo:this.form.editCheckInfo,code:this.form.editCode,baoxiandanFile:this.form.editBaoxianFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | |
| | | > |
| | | <div class="desc"> |
| | | <div class="desc_item"> |
| | | <div class="desc_item_label" v-if="model.statusCollect === 2 || model.statusCollect === 3"> |
| | | <div class="desc_item_label" v-if="userInfo.type === 1 &&(model.statusCollect === 2 || model.statusCollect === 3)"> |
| | | <div class="desc_item_label_left"> |
| | | <span>ä¿é©å°æè¿æ <b style="color: #F95601;">{{model.loseEfficacyDays ? model.loseEfficacyDays : '-'}}</b> 天</span> |
| | | <el-button type="primary" v-if="model.statusCollect === 2 || model.statusCollect === 3" @click="$refs.OperaInsuranceApply.open('æä¿ç³è¯·', { id: dataId })">ä¸é®ç»ä¿</el-button> |
| | | <el-button type="primary" v-if="model.statusCollect === 2 || model.statusCollect === 3" @click="$refs.OperaInsuranceApply.open('æä¿ç³è¯·', { id: dataId })">å¨çº¿ç¾ç½²</el-button> |
| | | <el-button type="primary" v-if="model.statusCollect === 2" @click="$refs.additionSubtractionApplication.open('å åä¿ç³è¯·', { id: dataId })">å åä¿ç³è¯·</el-button> |
| | | <el-button type="primary" v-if="model.statusCollect === 2" @click="$refs.factoryChange.open('æ¢åç³è¯·', { id: dataId })">æ¢åç³è¯·</el-button> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <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 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="[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> |
| | | <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> |
| | | <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 != 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"> |
| | |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="applyCode" |
| | | prop="code" |
| | | align="center" |
| | | label="ä¿åå·"> |
| | | </el-table-column> |
| | |
| | | </div> |
| | | <div class="desc_item_review"> |
| | | <div class="desc_item_review_label">å®¡æ ¸æµç¨</div> |
| | | <el-timeline :reverse="reverse"> |
| | | <el-timeline-item |
| | | v-for="(activity, index) in activities" |
| | | :key="index" |
| | | :timestamp="activity.createDate"> |
| | | {{activity.title}} |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | <el-timeline :reverse="reverse"> |
| | | <el-timeline-item |
| | | v-for="(activity, index) in activities" |
| | | :key="index"> |
| | | <div style="display: flex; flex-direction: column;"> |
| | | <span style="font-size: 16px; font-weight: 400; color: black;"> |
| | | {{activity.title}} |
| | | <span style="font-size: 16px; font-weight: 400; color: black; margin-left: 10px;" v-if="activity.objType === 5 || activity.objType === 6 || activity.objType === 1 || activity.objType === 2"> |
| | | æäº¤æè§ï¼{{activity.content}} |
| | | </span> |
| | | </span> |
| | | <span style="margin-top: 5px; font-size: 12px; font-weight: 400; color: #999999;"> |
| | | æä½å-{{activity.creatorName}}ï¼{{activity.creatorType==1? activity.companyName: "å¹³å°ç«¯"}}ï¼{{activity.createDate}} |
| | | </span> |
| | | </div> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | goSign(){ |
| | | getSignLink(this.dataId).then(res => { |
| | | window.open(res) |
| | | setTimeout(() => { |
| | | window.open(res) |
| | | }, 500); |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }, |
| | | viewToubaodan(){ |
| | | if(this.model.toubaodanSignedFile && this.model.toubaodanSignedFile.fileurlFull){ |
| | | window.open(this.model.toubaodanSignedFile.fileurlFull) |
| | | setTimeout(() => { |
| | | window.open(this.model.toubaodanSignedFile.fileurlFull) |
| | | }, 500); |
| | | |
| | | } else if(this.model.toubaodanFile && this.model.toubaodanFile.fileurlFull){ |
| | | window.open(this.model.toubaodanFile.fileurlFull) |
| | | setTimeout(() => { |
| | | window.open(this.model.toubaodanFile.fileurlFull) |
| | | },500) |
| | | } |
| | | }, |
| | | viewBaoxiandan(){ |
| | |
| | | }) |
| | | }, |
| | | successEvent(){ |
| | | this.visible=false |
| | | // this.visible=false |
| | | this.getDetail() |
| | | this.$emit('success') |
| | | } |
| | | } |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | fileList:null, |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload?folder='+this.uploadData.folder |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | // ä¸ä¼ å¾ç |
| | | handleExceed(){}, |
| | | handleFileSuccess(res, file) { |
| | | if (res.code == 200) { |
| | | let { data } = res |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | |
| | | <template> |
| | | <TableLayout :permissions="['business:applychange: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-option label="å¾
ç¾ç½²" value="0"></el-option> |
| | | <el-option label="å·²ç¾ç« " value="1"></el-option> |
| | | <el-option label="å·²ä¸ä¼ æ¹å" value="2"></el-option> |
| | | <el-option label="éåç³è¯·" value="3"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æä¿ä¼ä¸" prop="status"> |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©æ¹æ¡" prop="status"> |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æäº¤æ¥æ" prop="status"> |
| | | <el-date-picker |
| | | v-model="searchForm.status" |
| | | type="daterange" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | <el-button @click="$refs.operaApplyChangeWindow.open('å åä¿è¯¦æ
')">æ¥ç详æ
</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | > |
| | | <el-table-column label="åºå·" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="ä¿åç¶æ" min-width="100px"> |
| | | <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 v-if="row.status === 3">éåç³è¯·</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="æä¿ä¼ä¸" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="å
³èä¿åå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="ä¿é©æ¹æ¡" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="å ä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="åä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="è´¹ç¨åæ´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="æäº¤æ¶é´" min-width="100px"></el-table-column> |
| | | <!-- v-if="containPermissions(['business:applychange:update', 'business:applychange:delete'])"--> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <!-- v-permissions="['business:applychange:update']"--> |
| | | <el-button type="text" @click="$refs.operaApplyChangeWindow.open('å åä¿è¯¦æ
', row)" icon="el-icon-edit">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <OperaApplyChangeWindow ref="operaApplyChangeWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | <TableLayout :permissions="['business:applychange: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-option label="å
¨é¨" value=""></el-option> |
| | | <el-option label="å¾
ç¾ç½²" value="0"></el-option> |
| | | <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-select> |
| | | </el-form-item> |
| | | <el-form-item label="æä¿ä¼ä¸" prop="companyId"> |
| | | <el-select v-model="searchForm.companyId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in companyList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©æ¹æ¡" prop="baseSolutionsId"> |
| | | <el-select v-model="searchForm.baseSolutionsId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in solutionList" |
| | | :key="item.baseId" |
| | | :label="item.name" |
| | | :value="item.baseId"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æäº¤æ¥æ" prop="status"> |
| | | <el-date-picker |
| | | @change="changeTime" |
| | | v-model="searchForm.time" |
| | | type="daterange" |
| | | value-format="yyyy-MM-dd" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | > |
| | | <el-table-column label="åºå·" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="ä¿åç¶æ" min-width="100px"> |
| | | <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 v-if="row.status === 3 || row.status === 4">éåç³è¯·</span> |
| | | <span v-if="row.status ===5 || row.status === 8">å·²éå</span> |
| | | <span v-if="row.status ===7">å·²å
³é</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyName" label="æä¿ä¼ä¸" min-width="100px"></el-table-column> |
| | | <el-table-column prop="applyCode" label="å
³èä¿åå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="solutionsName" label="ä¿é©æ¹æ¡" min-width="100px"></el-table-column> |
| | | <el-table-column prop="addNum" label="å ä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="delNum" label="åä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="fee" label="è´¹ç¨åæ´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="æäº¤æ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaApplyChangeDetailWindow.open('å åä¿è¯¦æ
', row)">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <!-- 详æ
--> |
| | | <OperaApplyChangeDetailWindow ref="operaApplyChangeDetailWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaApplyChangeWindow from '@/components/business/OperaApplyChangeWindow' |
| | | export default { |
| | | name: 'ApplyChange', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaApplyChangeWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | status: '' |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨', |
| | | api: '/business/applyChange', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | } |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaApplyChangeDetailWindow from '@/components/business/OperaApplyChangeDetailWindow' |
| | | import {all as solutionAll, all} from '@/api/business/solutions' |
| | | import {pageAll as companyAll} from "@/api/business/company"; |
| | | export default { |
| | | name: 'add_subtract', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaApplyChangeDetailWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | status: '', |
| | | type: '0', |
| | | solutionsId: '', |
| | | createDateE: '', |
| | | createDateS: '', |
| | | time: [] |
| | | }, |
| | | solutionList:[], |
| | | companyList:[] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨', |
| | | api: '/business/applyChange', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | this.loadSelectList() |
| | | }, |
| | | methods: { |
| | | loadSelectList() { |
| | | solutionAll({dataType:2}).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | changeTime(e) { |
| | | if (e.length > 0) { |
| | | this.searchForm.createDateS = e[0] |
| | | this.searchForm.createDateE = e[1] |
| | | } else { |
| | | this.searchForm.createDateS = '' |
| | | this.searchForm.createDateE = '' |
| | | } |
| | | this.search() |
| | | }, |
| | | reset() { |
| | | this.searchForm.createDateS = '' |
| | | this.searchForm.createDateE = '' |
| | | this.searchForm.time = [] |
| | | this.$refs.searchForm.resetFields(); |
| | | this.search() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <el-select v-model="searchForm.companyId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in companyList" |
| | | :key="item.id" |
| | | :key="item.baseId" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | :value="item.baseId"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | searchForm: { |
| | | createTimeS: '', |
| | | createTimeE: '', |
| | | solutionId: '', |
| | | baseSolutionId: '', |
| | | companyId: '', |
| | | statusCollect: '' |
| | | }, |
| | |
| | | // this.search() |
| | | // }, |
| | | loadSelectList() { |
| | | solutionAll({dataType:0}).then(res => { |
| | | solutionAll({dataType:2}).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | |
| | | <template> |
| | | <TableLayout :permissions="['business:applychange: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-option label="å¾
ç¾ç½²" value="0"></el-option> |
| | | <el-option label="å·²ç¾ç« " value="1"></el-option> |
| | | <el-option label="å·²ä¸ä¼ æ¹å" value="2"></el-option> |
| | | <el-option label="éåç³è¯·" value="3"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æä¿ä¼ä¸" prop="status"> |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©æ¹æ¡" prop="status"> |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æäº¤æ¥æ" prop="status"> |
| | | <el-date-picker |
| | | v-model="searchForm.status" |
| | | type="daterange" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | <el-button @click="$refs.operaApplyChangeWindow.open('å åä¿è¯¦æ
')">æ¥ç详æ
</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | > |
| | | <el-table-column label="åºå·" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="ä¿åç¶æ" min-width="100px"> |
| | | <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 v-if="row.status === 3">éåç³è¯·</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="æä¿ä¼ä¸" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="å
³èä¿åå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="ä¿é©æ¹æ¡" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="å ä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="åä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="è´¹ç¨åæ´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="æäº¤æ¶é´" min-width="100px"></el-table-column> |
| | | <!-- v-if="containPermissions(['business:applychange:update', 'business:applychange:delete'])"--> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <!-- v-permissions="['business:applychange:update']"--> |
| | | <el-button type="text" @click="$refs.operaApplyChangeWindow.open('å åä¿è¯¦æ
', row)" icon="el-icon-edit">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <OperaSwitchCourtWindow ref="operaApplyChangeWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | <TableLayout :permissions="['business:applychange: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-option label="å
¨é¨" value=""></el-option> |
| | | <el-option label="å¾
ç¾ç½²" value="0"></el-option> |
| | | <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-select> |
| | | </el-form-item> |
| | | <el-form-item label="æä¿ä¼ä¸" prop="companyId"> |
| | | <el-select v-model="searchForm.companyId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in companyList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©æ¹æ¡" prop="baseSolutionsId"> |
| | | <el-select v-model="searchForm.baseSolutionsId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in solutionList" |
| | | :key="item.baseId" |
| | | :label="item.name" |
| | | :value="item.baseId"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æäº¤æ¥æ" prop="status"> |
| | | <el-date-picker |
| | | @change="changeTime" |
| | | v-model="searchForm.time" |
| | | type="daterange" |
| | | value-format="yyyy-MM-dd" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | > |
| | | <el-table-column label="åºå·" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="ä¿åç¶æ" min-width="100px"> |
| | | <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 v-if="row.status === 3 || row.status === 4">éåç³è¯·</span> |
| | | <span v-if="row.status ===5 || row.status === 8">å·²éå</span> |
| | | <span v-if="row.status ===7">å·²å
³é</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyName" label="æä¿ä¼ä¸" min-width="100px"></el-table-column> |
| | | <el-table-column prop="applyCode" label="å
³èä¿åå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="solutionsName" label="ä¿é©æ¹æ¡" min-width="100px"></el-table-column> |
| | | <el-table-column prop="addNum" label="å ä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="delNum" label="åä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="fee" label="è´¹ç¨åæ´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="æäº¤æ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaApplyChangeDetailWindow.open('å åä¿è¯¦æ
', row)">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <!-- 详æ
--> |
| | | <OperaApplyChangeUnitDetailWindow ref="operaApplyChangeDetailWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaSwitchCourtWindow from '@/components/business/OperaSwitchCourtWindow' |
| | | export default { |
| | | name: 'switchCourt', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaSwitchCourtWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | status: '' |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨', |
| | | api: '/business/applyChange', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | } |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow' |
| | | import {all as solutionAll, all} from '@/api/business/solutions' |
| | | import {pageAll as companyAll} from "@/api/business/company"; |
| | | export default { |
| | | name: 'add_subtract', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaApplyChangeUnitDetailWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | status: '', |
| | | type: '1', |
| | | solutionsId: '', |
| | | createDateE: '', |
| | | createDateS: '', |
| | | time: [] |
| | | }, |
| | | solutionList:[], |
| | | companyList:[] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨', |
| | | api: '/business/applyChange', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | this.loadSelectList() |
| | | }, |
| | | methods: { |
| | | loadSelectList() { |
| | | solutionAll({dataType:2}).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | changeTime(e) { |
| | | if (e.length > 0) { |
| | | this.searchForm.createDateS = e[0] |
| | | this.searchForm.createDateE = e[1] |
| | | } else { |
| | | this.searchForm.createDateS = '' |
| | | this.searchForm.createDateE = '' |
| | | } |
| | | this.search() |
| | | }, |
| | | reset() { |
| | | this.searchForm.createDateS = '' |
| | | this.searchForm.createDateE = '' |
| | | this.searchForm.time = [] |
| | | this.$refs.searchForm.resetFields(); |
| | | this.search() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <el-option label="å·²å
³é" value="6"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©æ¹æ¡" prop="solutionsId"> |
| | | <el-select v-model="searchForm.solutionsId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in list" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©æ¹æ¡" prop="baseSolutionsId"> |
| | | <el-select v-model="searchForm.baseSolutionsId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in solutionList" |
| | | :key="item.baseId" |
| | | :label="item.name" |
| | | :value="item.baseId"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æäº¤æ¥æ" prop="status"> |
| | | <el-date-picker |
| | | @change="changeTime" |
| | |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:applychange:create']"> |
| | | <li><el-button type="primary" @click="$refs.operaApplyChangeWindow.open('å åä¿è¯¦æ
')" v-permissions="['business:applychange:create']">æ°å»º</el-button></li> |
| | | <li><el-button type="primary" @click="$refs.operaApplyChangeWindow.open('æ°å»º')" v-permissions="['business:applychange:create']">æ°å»º</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | <span v-if="row.status === 3">éåç³è¯·</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="æä¿ä¼ä¸" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="å
³èä¿åå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="ä¿é©æ¹æ¡" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="å ä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="åä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="è´¹ç¨åæ´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="companyName" label="æä¿ä¼ä¸" min-width="100px"></el-table-column> |
| | | <el-table-column prop="applyCode" label="å
³èä¿åå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="solutionsName" label="ä¿é©æ¹æ¡" min-width="100px"></el-table-column> |
| | | <el-table-column prop="addNum" label="å ä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="delNum" label="åä¿äººæ°ï¼äººï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="fee" label="è´¹ç¨åæ´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="æäº¤æ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column |
| | | label="æä½" |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import add_subtractDetails from '@/components/enterprise/add_subtractDetails' |
| | | import { all } from '@/api/business/solutions' |
| | | import {all as solutionAll, all} from '@/api/business/solutions' |
| | | export default { |
| | | name: 'add_subtract', |
| | | extends: BaseTable, |
| | |
| | | searchForm: { |
| | | status: '', |
| | | type: '0', |
| | | solutionsId: '', |
| | | baseSolutionsId: '', |
| | | createDateE: '', |
| | | createDateS: '', |
| | | time: [] |
| | | }, |
| | | list: [] |
| | | solutionList: [] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | }, |
| | | methods: { |
| | | getAll() { |
| | | all() |
| | | .then(res => { |
| | | this.list = res |
| | | }) |
| | | solutionAll({dataType:2}).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | changeTime(e) { |
| | | if (e.length > 0) { |
| | |
| | | <el-select v-model="searchForm.baseSolutionId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in solutionList" |
| | | :key="item.id" |
| | | :key="item.baseId" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | :value="item.baseId"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | }, |
| | | methods:{ |
| | | loadSelectList() { |
| | | solutionAll({ dataType:0 }).then(res => { |
| | | solutionAll({ dataType:2}).then(res => { |
| | | this.solutionList = res |
| | | }) |
| | | } |
| | |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:applychange:create']"> |
| | | <li><el-button type="primary" @click="$refs.operaApplyChangeWindow.open('å åä¿è¯¦æ
')" v-permissions="['business:applychange:create']">æ°å»º</el-button></li> |
| | | <li><el-button type="primary" @click="$refs.operaApplyChangeWindow.open('æ°å»º')" v-permissions="['business:applychange:create']">æ°å»º</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import add_subtractDetails from '@/components/enterprise/add_subtractDetails' |
| | | import {all as solutionAll} from "@/api/business/solutions"; |
| | | import {pageAll as companyAll} from "@/api/business/company"; |
| | | export default { |
| | | name: 'switchCourt', |
| | | extends: BaseTable, |
| | |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | }, |
| | | methods:{ |
| | | // handlePageChange() { |
| | | // this.search() |
| | | // }, |
| | | loadSelectList() { |
| | | solutionAll({dataType:2}).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }).catch(err => { |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:applychange:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<ApplyChange> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(ApplyChange.class).export(applyChangeService.findPage(pageWrap).getRecords(), "å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨", response); |
| | | ExcelExporter.build(ApplyChange.class).export(applyChangeService.findPageForCompany(pageWrap).getRecords(), "å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨", response); |
| | | } |
| | | @ApiOperation("导åºå åä¿è¯¦æ
å") |
| | | @PostMapping("/exportJiajianBaoExcel") |
| | |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.dao.business.dto.ApplyDetailPageDTO; |
| | | import com.doumee.dao.business.model.ApplyChagneDetail; |
| | | import com.doumee.service.business.ApplyChagneDetailService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | return ApiResponse.success(null); |
| | | } |
| | | // |
| | | // @ApiOperation("å页æ¥è¯¢") |
| | | // @PostMapping("/page") |
| | | // @RequiresPermissions("business:applychagnedetail:query") |
| | | // public ApiResponse<PageData<ApplyChagneDetail>> findPage (@RequestBody PageWrap<ApplyChagneDetail> pageWrap) { |
| | | // return ApiResponse.success(applyChagneDetailService.findPage(pageWrap)); |
| | | // } |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:applychagnedetail:query") |
| | | public ApiResponse<PageData<ApplyChagneDetail>> findPage (@RequestBody PageWrap<ApplyDetailPageDTO> pageWrap) { |
| | | return ApiResponse.success(applyChagneDetailService.findPageForCompany(pageWrap)); |
| | | } |
| | | |
| | | /* @ApiOperation("导åºExcel") |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/list") |
| | | @RequiresPermissions("business:applychagnedetail:query") |
| | | public ApiResponse<List<ApplyChagneDetail>> findList (@RequestBody ApplyChagneDetail pageWrap) { |
| | | return ApiResponse.success(applyChagneDetailService.findList(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:applychagnedetail:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<ApplyChagneDetail> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(ApplyChagneDetail.class).export(applyChagneDetailService.findPage(pageWrap).getRecords(), "å åä¿æ¢åç³è¯·æç»ä¿¡æ¯è¡¨", response); |
| | | }*/ |
| | | public void exportExcel (@RequestBody PageWrap<ApplyDetailPageDTO> pageWrap, HttpServletResponse response) { |
| | | |
| | | } |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:applychagnedetail:query") |
| | |
| | | @PreventRepeat |
| | | @ApiOperation("å¹³å°ä¿®æ¹æ¹å") |
| | | @PostMapping("/editPidan") |
| | | @RequiresPermissions("business:applychange:editPidan") |
| | | @RequiresPermissions("business:applychange:uploadPidan") |
| | | public ApiResponse editPidan(@RequestBody ApplyChange applyChange) { |
| | | return ApiResponse.success(applyChangeService.editPidan(applyChange)); |
| | | } |
| | | |
| | | @ApiOperation("è·åå åä¿ç¾ç« å°å") |
| | | @PostMapping("/getJiajianBaoSignLink") |
| | | @RequiresPermissions("business:applychange:sign") |
| | | public ApiResponse<String> getSignLinkJiajiabao (@RequestBody ApplyChange model, HttpServletResponse response) { |
| | | return ApiResponse.success( applyChangeService.getSignLinkJiajiabao(model)); |
| | | } |
| | | @ApiOperation("è·åç¼åç³è¯·ç¾ç« å°å") |
| | | @PostMapping("/getChangeUnitSignLink") |
| | | @RequiresPermissions("business:applychange:sign") |
| | | public ApiResponse<String> getChangeUnitSignLink (@RequestBody ApplyChange model, HttpServletResponse response) { |
| | | return ApiResponse.success( applyChangeService.getSignLinkChangeUnit(model)); |
| | | } |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:applychange:delete") |
| | |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:applychange:query") |
| | | public ApiResponse<PageData<ApplyChange>> findPage (@RequestBody PageWrap<ApplyChange> pageWrap) { |
| | | return ApiResponse.success(applyChangeService.findPage(pageWrap)); |
| | | return ApiResponse.success(applyChangeService.findPageForCompany(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:applychange:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<ApplyChange> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(ApplyChange.class).export(applyChangeService.findPage(pageWrap).getRecords(), "å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨", response); |
| | | ExcelExporter.build(ApplyChange.class).export(applyChangeService.findPageForCompany(pageWrap).getRecords(), "å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("导åºå åä¿è¯¦æ
å") |
| | | @PostMapping("/exportJiajianBaoExcel") |
| | | @RequiresPermissions("business:insuranceapply:exportExcel") |
| | | @RequiresPermissions("business:applychange:exportExcel") |
| | | public void exportJiajianBaoExcel (@RequestBody ApplyChange model, HttpServletResponse response) { |
| | | ExcelExporter.build(ApplyChange.class).exportJiajianBaoExcel(applyChangeService.exportJiajianBaoExcel(model), response); |
| | | } |
| | | @ApiOperation("å¯¼åºæ¢åç³è¯·è¯¦æ
å") |
| | | @PostMapping("/exportChangeUnitExcel") |
| | | @RequiresPermissions("business:insuranceapply:exportExcel") |
| | | @RequiresPermissions("business:applychange:exportExcel") |
| | | public void exportChangeUnitExcel (@RequestBody ApplyChange model, HttpServletResponse response) { |
| | | ExcelExporter.build(ApplyChange.class).exportChangeUnitExcel(applyChangeService.exportChangeUnitExcel(model), response); |
| | | } |
| | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:applychange:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(applyChangeService.findById(id)); |
| | | public ApiResponse<ApplyChange> findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(applyChangeService.findDetail(id)); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * @throws Exception |
| | | */ |
| | | @Scheduled(fixedDelay= 60*1000*60,initialDelay = 30000) |
| | | @Scheduled(fixedDelay= 60*1000*2 ,initialDelay = 30000) |
| | | public void deal() throws Exception { |
| | | log.info("==============宿¶æ¥è¯¢ä¼ä¸çµåç¾ç¾ç½²ç¶æ=======start======"); |
| | | insuranceApplyService.dealWaitSignedData(); |
| | |
| | | * é
ç½®æ°æ®åå
æ ¼ |
| | | */ |
| | | private void configDataCell (SXSSFWorkbook workbook, Cell cell ) { |
| | | if(cell == null){ |
| | | return; |
| | | } |
| | | CellStyle style = workbook.createCellStyle(); |
| | | style.setAlignment(HorizontalAlignment.CENTER); |
| | | style.setVerticalAlignment(VerticalAlignment.CENTER); |
| | |
| | | * é
ç½®æ°æ®åå
æ ¼ |
| | | */ |
| | | private void configDataCell (SXSSFWorkbook workbook, Cell cell, ExcelColumn columnConfig) { |
| | | if(cell == null){ |
| | | return; |
| | | } |
| | | CellStyle style = workbook.createCellStyle(); |
| | | style.setAlignment(columnConfig.align()); |
| | | style.setVerticalAlignment(VerticalAlignment.CENTER); |
| | |
| | | * é
ç½®å头åå
æ ¼ |
| | | */ |
| | | private void configHeaderCell (SXSSFWorkbook workbook, Cell cell, ExcelColumn columnConfig) { |
| | | if(cell == null){ |
| | | return; |
| | | } |
| | | CellStyle style = workbook.createCellStyle(); |
| | | style.setAlignment(columnConfig.align()); |
| | | style.setVerticalAlignment(VerticalAlignment.CENTER); |
| | |
| | | * é
ç½®å头åå
æ ¼ |
| | | */ |
| | | private void configFirstCell (SXSSFWorkbook workbook, Cell cell ) { |
| | | if(cell == null){ |
| | | return; |
| | | } |
| | | CellStyle style = workbook.createCellStyle(); |
| | | style.setAlignment(HorizontalAlignment.CENTER); |
| | | style.setVerticalAlignment(VerticalAlignment.CENTER); |
| | |
| | | cell.setCellStyle(style); |
| | | } |
| | | private void configTitleCell (SXSSFWorkbook workbook, Cell cell ) { |
| | | if(cell == null){ |
| | | return; |
| | | } |
| | | CellStyle style = workbook.createCellStyle(); |
| | | style.setAlignment(HorizontalAlignment.CENTER); |
| | | style.setVerticalAlignment(VerticalAlignment.CENTER); |
| | |
| | | * é
ç½®å头åå
æ ¼ |
| | | */ |
| | | private void configInfoCell (SXSSFWorkbook workbook, Cell cell,HorizontalAlignment p ) { |
| | | if(cell == null){ |
| | | return; |
| | | } |
| | | CellStyle style = workbook.createCellStyle(); |
| | | style.setAlignment(p); |
| | | style.setVerticalAlignment(VerticalAlignment.CENTER); |
| | |
| | | font.setFontHeightInPoints((short)12); |
| | | font.setBold(true); |
| | | style.setFont(font); |
| | | style.setWrapText(true); |
| | | // è®¾ç½®è¾¹æ¡ |
| | | configCellBorder(style); |
| | | cell.setCellStyle(style); |
| | |
| | | * é
ç½®å头åå
æ ¼ |
| | | */ |
| | | private void configEndCell (SXSSFWorkbook workbook, Cell cell ) { |
| | | if(cell == null){ |
| | | return; |
| | | } |
| | | CellStyle style = workbook.createCellStyle(); |
| | | style.setAlignment(HorizontalAlignment.RIGHT); |
| | | style.setVerticalAlignment(VerticalAlignment.CENTER); |
| | |
| | | response.setContentType("application/octet-stream"); |
| | | response.setHeader("eva-opera-type", "download"); |
| | | response.setHeader("eva-download-filename", encodeFileName); |
| | | this.exportJiajianBaoExcelDo(model,"å åä¿ç³è¯·è¡¨_", response.getOutputStream()); |
| | | this.exportJiajianBaoExcelDo(model,"å åä¿ç³è¯·è¡¨", response.getOutputStream()); |
| | | } catch (IOException e) { |
| | | throw new BusinessException(ResponseStatus.EXPORT_EXCEL_ERROR, e); |
| | | } |
| | |
| | | try { |
| | | sxssfWorkbook = new SXSSFWorkbook(); |
| | | Sheet sheet = sxssfWorkbook.createSheet(sheetName); |
| | | for (int i = 0; i < 12; i++) { |
| | | sheet.setColumnWidth(i, ((i==3|| i== 5 || i==9|| i==11)?16:8) * 2 * 256); |
| | | } |
| | | sheet.createFreezePane(0, 1); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,8)); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,11)); |
| | | Row title = sheet.createRow(0); |
| | | title.setHeight((short) 1000); |
| | | title.setHeight((short) 800); |
| | | Cell c = title.createCell(0); |
| | | c.setCellValue(sheetName); |
| | | configFirstCell(sxssfWorkbook,c); |
| | | for (int i = 0; i < 12; i++) { |
| | | // title.createCell(i).setCellValue(i==0?sheetName:""); |
| | | configTitleCell(sxssfWorkbook,title.getCell(i)); |
| | | } |
| | | Row header1 = sheet.createRow(1); |
| | | header1.createCell(0).setCellValue("æä¿ä¼ä¸"); |
| | | header1.createCell(3).setCellValue("ä¿é©æ¹æ¡"); |
| | |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,0,2)); |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,6,8)); |
| | | |
| | | |
| | | Row header2 = sheet.createRow(2); |
| | | header2.createCell(0).setCellValue(data.getCompanyName()); |
| | | header2.createCell(3).setCellValue(data.getSolutionsName()); |
| | |
| | | header2.createCell(11).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getValidTime())); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,0,2)); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,6,8)); |
| | | //空ç½è¡ |
| | | for (int i = 0; i < 12; i++) { |
| | | configDataCell(sxssfWorkbook, header2.getCell(i)); |
| | | } |
| | | Row header3 = sheet.createRow(3); |
| | | header2.createCell(0).setCellValue("å ä¿äººå"); |
| | | header2.createCell(6).setCellValue("åä¿äººå"); |
| | | header3.createCell(0).setCellValue("å ä¿äººå"); |
| | | header3.createCell(6).setCellValue("åä¿äººå"); |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,0,5)); |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,6,11)); |
| | | for (int i = 0; i < 12; i++) { |
| | | configFirstCell(sxssfWorkbook,header2.getCell(i)); |
| | | configFirstCell(sxssfWorkbook, header3.getCell(i)); |
| | | } |
| | | Row header4 = sheet.createRow(4); |
| | | header4.createCell(0).setCellValue("åºå·"); |
| | |
| | | header5.createCell(0).setCellValue(rowIndex+1); |
| | | header5.createCell(1).setCellValue(StringUtils.defaultString(addModel.getMemberName(),"")); |
| | | header5.createCell(2).setCellValue(Constants.equalsInteger(addModel.getSex(),0)?"ç·":(Constants.equalsInteger(addModel.getSex(),1)?"女":"-")); |
| | | header5.createCell(3).setCellValue(StringUtils.defaultString(addModel.getIdcardNo(),"")); |
| | | header5.createCell(3).setCellValue(StringUtils.defaultString(addModel.getMemberIdcardNo(),"")); |
| | | header5.createCell(4).setCellValue(StringUtils.defaultString(addModel.getDuName(),"")); |
| | | header5.createCell(5).setCellValue(StringUtils.defaultString(addModel.getWorkTypeName(),"")); |
| | | }else{ |
| | | for (int i = 0; i < 6; i++) { |
| | | header5.createCell(i).setCellValue(""); |
| | | } |
| | | } |
| | | if(delModel!=null){ |
| | | header5.createCell(6).setCellValue(rowIndex+1); |
| | | header5.createCell(7).setCellValue(StringUtils.defaultString(delModel.getMemberName(),"")); |
| | | header5.createCell(8).setCellValue(Constants.equalsInteger(delModel.getSex(),0)?"ç·":(Constants.equalsInteger(delModel.getSex(),1)?"女":"-")); |
| | | header5.createCell(9).setCellValue(StringUtils.defaultString(delModel.getIdcardNo(),"")); |
| | | header5.createCell(9).setCellValue(StringUtils.defaultString(delModel.getMemberIdcardNo(),"")); |
| | | header5.createCell(10).setCellValue(StringUtils.defaultString(delModel.getDuName(),"")); |
| | | header5.createCell(11).setCellValue(StringUtils.defaultString(delModel.getWorkTypeName(),"")); |
| | | }else{ |
| | | for (int i =6; i < 12; i++) { |
| | | header5.createCell(i).setCellValue(""); |
| | | } |
| | | } |
| | | for (int i = 0; i < 12; i++) { |
| | | configDataCell(sxssfWorkbook, header5.getCell(i)); |
| | | } |
| | | } |
| | | sxssfWorkbook.write(os); |
| | |
| | | try { |
| | | sxssfWorkbook = new SXSSFWorkbook(); |
| | | Sheet sheet = sxssfWorkbook.createSheet(sheetName); |
| | | for (int i = 0; i < 12; i++) { |
| | | sheet.setColumnWidth(i, ((i==3|| i==4|| i== 5 || i==9||i==10|| i==11)?16:8) * 2 * 256); |
| | | } |
| | | sheet.createFreezePane(0, 1); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,8)); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,11)); |
| | | Row title = sheet.createRow(0); |
| | | title.setHeight((short) 1000); |
| | | Cell c = title.createCell(0); |
| | | c.setCellValue(sheetName); |
| | | configFirstCell(sxssfWorkbook,c); |
| | | title.setHeight((short) 2000); |
| | | for (int i = 0; i < 12; i++) { |
| | | title.createCell(i).setCellValue(i==0?sheetName:""); |
| | | configTitleCell(sxssfWorkbook,title.getCell(i)); |
| | | } |
| | | Row header1 = sheet.createRow(1); |
| | | header1.createCell(0).setCellValue("æä¿ä¼ä¸"); |
| | | header1.createCell(3).setCellValue("ä¿é©æ¹æ¡"); |
| | |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,0,2)); |
| | | sheet.addMergedRegion(new CellRangeAddress(1 ,1,6,8)); |
| | | |
| | | |
| | | Row header2 = sheet.createRow(2); |
| | | header2.createCell(0).setCellValue(data.getCompanyName()); |
| | | header2.createCell(1).setCellValue(""); |
| | | header2.createCell(2).setCellValue(""); |
| | | header2.createCell(3).setCellValue(data.getSolutionsName()); |
| | | header2.createCell(4).setCellValue(data.getApplyCode()); |
| | | header2.createCell(5).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getStartTime())); |
| | | header2.createCell(6).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getEndTime())); |
| | | header2.createCell(7).setCellValue(""); |
| | | header2.createCell(8).setCellValue(""); |
| | | header2.createCell(9).setCellValue(data.getAddNum()); |
| | | header2.createCell(10).setCellValue(data.getDelNum()); |
| | | header2.createCell(11).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getValidTime())); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,0,2)); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,6,8)); |
| | | //空ç½è¡ |
| | | for (int i = 0; i < 12; i++) { |
| | | configDataCell(sxssfWorkbook, header2.getCell(i)); |
| | | } |
| | | Row header3 = sheet.createRow(3); |
| | | header2.createCell(0).setCellValue("å ä¿äººå"); |
| | | header2.createCell(6).setCellValue("åä¿äººå"); |
| | | header3.createCell(0).setCellValue("å ä¿äººå"); |
| | | header3.createCell(6).setCellValue("åä¿äººå"); |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,0,5)); |
| | | sheet.addMergedRegion(new CellRangeAddress(3 ,3,6,11)); |
| | | for (int i = 0; i < 12; i++) { |
| | | configFirstCell(sxssfWorkbook,header2.getCell(i)); |
| | | configFirstCell(sxssfWorkbook, header3.getCell(i)); |
| | | } |
| | | Row header4 = sheet.createRow(4); |
| | | header4.createCell(0).setCellValue("åºå·"); |
| | |
| | | header5.createCell(0).setCellValue(rowIndex+1); |
| | | header5.createCell(1).setCellValue(StringUtils.defaultString(addModel.getMemberName(),"")); |
| | | header5.createCell(2).setCellValue(Constants.equalsInteger(addModel.getSex(),0)?"ç·":(Constants.equalsInteger(addModel.getSex(),1)?"女":"-")); |
| | | header5.createCell(3).setCellValue(StringUtils.defaultString(addModel.getIdcardNo(),"")); |
| | | header5.createCell(3).setCellValue(StringUtils.defaultString(addModel.getMemberIdcardNo(),"")); |
| | | header5.createCell(4).setCellValue(StringUtils.defaultString(addModel.getDuName(),"")); |
| | | header5.createCell(5).setCellValue(StringUtils.defaultString(addModel.getWorkTypeName(),"")); |
| | | }else{ |
| | | for (int i = 0; i < 6; i++) { |
| | | header5.createCell(i).setCellValue(""); |
| | | } |
| | | } |
| | | if(delModel!=null){ |
| | | header5.createCell(6).setCellValue(rowIndex+1); |
| | | header5.createCell(7).setCellValue(StringUtils.defaultString(delModel.getMemberName(),"")); |
| | | header5.createCell(8).setCellValue(Constants.equalsInteger(delModel.getSex(),0)?"ç·":(Constants.equalsInteger(delModel.getSex(),1)?"女":"-")); |
| | | header5.createCell(9).setCellValue(StringUtils.defaultString(delModel.getIdcardNo(),"")); |
| | | header5.createCell(9).setCellValue(StringUtils.defaultString(delModel.getMemberIdcardNo(),"")); |
| | | header5.createCell(10).setCellValue(StringUtils.defaultString(delModel.getDuName(),"")); |
| | | header5.createCell(11).setCellValue(StringUtils.defaultString(delModel.getWorkTypeName(),"")); |
| | | }else{ |
| | | for (int i =6; i < 12; i++) { |
| | | header5.createCell(i).setCellValue(""); |
| | | } |
| | | } |
| | | for (int i = 0; i < 12; i++) { |
| | | configDataCell(sxssfWorkbook, header5.getCell(i)); |
| | | } |
| | | } |
| | | int rowIndex = 4+data.getChangeDetailList().size(); |
| | | Row header6= sheet.createRow(4+data.getChangeDetailList().size()); |
| | | int rowIndex = 5+maxNum; |
| | | Row header6= sheet.createRow(rowIndex); |
| | | header6.createCell(0).setCellValue("æä¿ä¼ä¸ç³æ:\n" + |
| | | "1ãå¨ç³è¯·ä¹¦ä¸å¡«åçä¸åå
容å±å®ï¼å¦åæ¬ä¼ä¸æ¿æ
ä¸åæ³å¾è´£ä»»ã\n" + |
| | | "2ãç±äºåæ´åç人产ççæ³å¾çº 纷æ¬ä¼ä¸æ¿æ¿æ
ä¸åæ³å¾è´£ä»»ã\n" + |
| | | "3ãæ¬ç³è¯·è¡¨çç¾ç« 为æ¬ä¼ä¸äº²èªç¾ç½²ï¼å¦ç±æ¤äº§ççæ³å¾çº 纷æ¬ä¼ä¸æ¿æ¿æ
ä¸åæ³å¾è´£ä»»ã\n"); |
| | | configInfoCell(sxssfWorkbook,header6.getCell(0),HorizontalAlignment.LEFT); |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex ,rowIndex,1,12)); |
| | | for (int i = 1; i < 12; i++) { |
| | | header6.createCell(i).setCellValue(""); |
| | | } |
| | | for (int i =0; i < 12; i++) { |
| | | if(i>0){ |
| | | header6.createCell(i).setCellValue(""); |
| | | } |
| | | configInfoCell(sxssfWorkbook,header6.getCell(i),HorizontalAlignment.LEFT); |
| | | } |
| | | header6.setHeight((short) 2000); |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex ,rowIndex,0,11)); |
| | | Row header7= sheet.createRow(rowIndex+1); |
| | | header7.createCell(0).setCellValue("æä¿ä¼ä¸ç¾ç« ï¼ \n" +"æ¥æï¼ å¹´ æ æ¥ "); |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex+1 ,rowIndex+1,1,12)); |
| | | configInfoCell(sxssfWorkbook,header7.getCell(0),HorizontalAlignment.RIGHT); |
| | | header7.setHeight((short) 3000); |
| | | header7.createCell(0).setCellValue("æä¿ä¼ä¸ç¾ç« ï¼ \n \n \n" +"æ¥æï¼ å¹´ æ æ¥ "); |
| | | for (int i =0; i < 12; i++) { |
| | | if(i>0){ |
| | | header7.createCell(i).setCellValue(""); |
| | | } |
| | | configInfoCell(sxssfWorkbook,header7.getCell(i),HorizontalAlignment.RIGHT); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex+1 ,rowIndex+1,0,11)); |
| | | |
| | | //临æ¶ç¼å²åº |
| | | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| | | //åå»ºä¸´æ¶æä»¶ |
| | |
| | | return tempPdf; |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | // throw new BusinessException(ResponseStatus.EXPORT_EXCEL_ERROR, e); |
| | | } |
| | | return null; |
| | |
| | | try { |
| | | sxssfWorkbook = new SXSSFWorkbook(); |
| | | Sheet sheet = sxssfWorkbook.createSheet(sheetName); |
| | | for (int i = 0; i < 8; i++) { |
| | | sheet.setColumnWidth(i, ((i==3|| i== 5 || i==7)?16:8) * 2 * 256); |
| | | } |
| | | sheet.createFreezePane(0, 1); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,8)); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,7)); |
| | | Row title = sheet.createRow(0); |
| | | title.setHeight((short) 1000); |
| | | Cell c = title.createCell(0); |
| | | c.setCellValue(sheetName); |
| | | configFirstCell(sxssfWorkbook,c); |
| | | for (int i = 0; i < 8; i++) { |
| | | if(i>0){ |
| | | title.createCell(i).setCellValue(""); |
| | | } |
| | | configTitleCell(sxssfWorkbook,title.getCell(i)); |
| | | } |
| | | Row header1 = sheet.createRow(1); |
| | | header1.createCell(0).setCellValue("æä¿ä¼ä¸"); |
| | | header1.createCell(1).setCellValue("ä¿é©æ¹æ¡"); |
| | | header1.createCell(2).setCellValue(""); |
| | | header1.createCell(3).setCellValue("ä¿åå·"); |
| | | header1.createCell(4).setCellValue("ä¿é©çæèµ·æ"); |
| | | header1.createCell(5).setCellValue("ä¿é©çææ¢æ"); |
| | |
| | | Row header2 = sheet.createRow(2); |
| | | header2.createCell(0).setCellValue(data.getCompanyName()); |
| | | header2.createCell(1).setCellValue(data.getSolutionsName()); |
| | | header2.createCell(2).setCellValue(""); |
| | | header2.createCell(3).setCellValue(data.getApplyCode()); |
| | | header2.createCell(4).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getStartTime())); |
| | | header2.createCell(5).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getEndTime())); |
| | | header2.createCell(6).setCellValue(data.getChangeNum()); |
| | | header2.createCell(7).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getValidTime())); |
| | | header2.createCell(7).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getApplyStartTime())); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,1,2)); |
| | | |
| | | for (int i = 0; i < 8; i++) { |
| | | configDataCell(sxssfWorkbook,header2.getCell(i)); |
| | | } |
| | | Row header4 = sheet.createRow(3); |
| | | header4.createCell(0).setCellValue("åºå·"); |
| | | header4.createCell(1).setCellValue("åå·¥å§å"); |
| | |
| | | header5.createCell(0).setCellValue(rowIndex+1); |
| | | header5.createCell(1).setCellValue(StringUtils.defaultString(addModel.getMemberName(),"")); |
| | | header5.createCell(2).setCellValue(Constants.equalsInteger(addModel.getSex(),0)?"ç·":(Constants.equalsInteger(addModel.getSex(),1)?"女":"-")); |
| | | header5.createCell(3).setCellValue(StringUtils.defaultString(addModel.getIdcardNo(),"")); |
| | | header5.createCell(3).setCellValue(StringUtils.defaultString(addModel.getMemberIdcardNo(),"")); |
| | | header5.createCell(4).setCellValue(StringUtils.defaultString(addModel.getOldDuName(),"")); |
| | | header5.createCell(5).setCellValue(StringUtils.defaultString(addModel.getOldWorkTypeName(),"")); |
| | | header5.createCell(6).setCellValue(StringUtils.defaultString(addModel.getDuName(),"")); |
| | | header5.createCell(7).setCellValue(StringUtils.defaultString(addModel.getWorkTypeName(),"")); |
| | | for (int i = 0; i < 8; i++) { |
| | | configDataCell(sxssfWorkbook,header5.getCell(i)); |
| | | } |
| | | } |
| | | sxssfWorkbook.write(os); |
| | | os.close(); |
| | |
| | | try { |
| | | sxssfWorkbook = new SXSSFWorkbook(); |
| | | Sheet sheet = sxssfWorkbook.createSheet(sheetName); |
| | | for (int i = 0; i < 8; i++) { |
| | | sheet.setColumnWidth(i, ((i==3|| i== 4|| i== 5 ||i== 6 || i==7)?16:8) * 2 * 256); |
| | | } |
| | | sheet.createFreezePane(0, 1); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,8)); |
| | | sheet.addMergedRegion(new CellRangeAddress(0 ,0,0,7)); |
| | | Row title = sheet.createRow(0); |
| | | title.setHeight((short) 1000); |
| | | title.setHeight((short) 2000); |
| | | Cell c = title.createCell(0); |
| | | c.setCellValue(sheetName); |
| | | configFirstCell(sxssfWorkbook,c); |
| | | for (int i = 0; i < 8; i++) { |
| | | if(i>0){ |
| | | title.createCell(i).setCellValue(""); |
| | | } |
| | | configTitleCell(sxssfWorkbook,title.getCell(i)); |
| | | } |
| | | Row header1 = sheet.createRow(1); |
| | | header1.createCell(0).setCellValue("æä¿ä¼ä¸"); |
| | | header1.createCell(1).setCellValue("ä¿é©æ¹æ¡"); |
| | | header1.createCell(2).setCellValue(""); |
| | | header1.createCell(3).setCellValue("ä¿åå·"); |
| | | header1.createCell(4).setCellValue("ä¿é©çæèµ·æ"); |
| | | header1.createCell(5).setCellValue("ä¿é©çææ¢æ"); |
| | |
| | | Row header2 = sheet.createRow(2); |
| | | header2.createCell(0).setCellValue(data.getCompanyName()); |
| | | header2.createCell(1).setCellValue(data.getSolutionsName()); |
| | | header2.createCell(2).setCellValue(""); |
| | | header2.createCell(3).setCellValue(data.getApplyCode()); |
| | | header2.createCell(4).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getStartTime())); |
| | | header2.createCell(5).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getEndTime())); |
| | | header2.createCell(6).setCellValue(data.getChangeNum()); |
| | | header2.createCell(7).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getValidTime())); |
| | | header2.createCell(7).setCellValue(com.doumee.core.utils.DateUtil.getPlusTime2(data.getApplyStartTime())); |
| | | sheet.addMergedRegion(new CellRangeAddress(2 ,2,1,2)); |
| | | |
| | | for (int i = 0; i < 8; i++) { |
| | | configDataCell(sxssfWorkbook,header2.getCell(i)); |
| | | } |
| | | Row header4 = sheet.createRow(3); |
| | | header4.createCell(0).setCellValue("åºå·"); |
| | | header4.createCell(1).setCellValue("åå·¥å§å"); |
| | |
| | | header5.createCell(0).setCellValue(rowIndex+1); |
| | | header5.createCell(1).setCellValue(StringUtils.defaultString(addModel.getMemberName(),"")); |
| | | header5.createCell(2).setCellValue(Constants.equalsInteger(addModel.getSex(),0)?"ç·":(Constants.equalsInteger(addModel.getSex(),1)?"女":"-")); |
| | | header5.createCell(3).setCellValue(StringUtils.defaultString(addModel.getIdcardNo(),"")); |
| | | header5.createCell(3).setCellValue(StringUtils.defaultString(addModel.getMemberIdcardNo(),"")); |
| | | header5.createCell(4).setCellValue(StringUtils.defaultString(addModel.getOldDuName(),"")); |
| | | header5.createCell(5).setCellValue(StringUtils.defaultString(addModel.getOldWorkTypeName(),"")); |
| | | header5.createCell(6).setCellValue(StringUtils.defaultString(addModel.getDuName(),"")); |
| | | header5.createCell(7).setCellValue(StringUtils.defaultString(addModel.getWorkTypeName(),"")); |
| | | for (int i = 0; i < 8; i++) { |
| | | configDataCell(sxssfWorkbook,header5.getCell(i)); |
| | | } |
| | | } |
| | | int rowIndex = 4+data.getChangeDetailList().size(); |
| | | Row header6= sheet.createRow(4+data.getChangeDetailList().size()); |
| | | Row header6= sheet.createRow(rowIndex); |
| | | header6.createCell(0).setCellValue("æä¿ä¼ä¸ç³æ:\n" + |
| | | "1ãå¨ç³è¯·ä¹¦ä¸å¡«åçä¸åå
容å±å®ï¼å¦åæ¬ä¼ä¸æ¿æ
ä¸åæ³å¾è´£ä»»ã\n" + |
| | | "2ãç±äºåæ´åç人产ççæ³å¾çº 纷æ¬ä¼ä¸æ¿æ¿æ
ä¸åæ³å¾è´£ä»»ã\n" + |
| | | "3ãæ¬ç³è¯·è¡¨çç¾ç« 为æ¬ä¼ä¸äº²èªç¾ç½²ï¼å¦ç±æ¤äº§ççæ³å¾çº 纷æ¬ä¼ä¸æ¿æ¿æ
ä¸åæ³å¾è´£ä»»ã\n"); |
| | | configInfoCell(sxssfWorkbook,header6.getCell(0),HorizontalAlignment.LEFT); |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex ,rowIndex,1,8)); |
| | | for (int i = 1; i < 8; i++) { |
| | | header6.createCell(i).setCellValue(""); |
| | | } |
| | | for (int i =0; i < 8; i++) { |
| | | if(i>0){ |
| | | header6.createCell(i).setCellValue(""); |
| | | } |
| | | configInfoCell(sxssfWorkbook,header6.getCell(i),HorizontalAlignment.LEFT); |
| | | } |
| | | header6.setHeight((short) 2000); |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex ,rowIndex,0,7)); |
| | | Row header7= sheet.createRow(rowIndex+1); |
| | | header7.createCell(0).setCellValue("æä¿ä¼ä¸ç¾ç« ï¼ \n" +"æ¥æï¼ å¹´ æ æ¥ "); |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex+1 ,rowIndex+1,1,8)); |
| | | configInfoCell(sxssfWorkbook,header7.getCell(0),HorizontalAlignment.RIGHT); |
| | | header7.setHeight((short) 3000); |
| | | header7.createCell(0).setCellValue("æä¿ä¼ä¸ç¾ç« ï¼ \n \n \n" +"æ¥æï¼ å¹´ æ æ¥ "); |
| | | for (int i =0; i < 8; i++) { |
| | | if(i>0){ |
| | | header7.createCell(i).setCellValue(""); |
| | | } |
| | | configInfoCell(sxssfWorkbook,header7.getCell(i),HorizontalAlignment.RIGHT); |
| | | } |
| | | sheet.addMergedRegion(new CellRangeAddress(rowIndex+1 ,rowIndex+1,0,7)); |
| | | |
| | | //临æ¶ç¼å²åº |
| | | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| | | //åå»ºä¸´æ¶æä»¶ |
| | | sxssfWorkbook.write(out); |
| | | sxssfWorkbook.write(out); |
| | | byte [] bookByteAry = out.toByteArray(); |
| | | InputStream in = new ByteArrayInputStream(bookByteAry); |
| | | String tempPdf =System.getProperty("java.io.tmpdir")+File.separator+UUID.randomUUID().toString()+".pdf"; |
| | |
| | | if(f!=null && f.isFile()){ |
| | | return tempPdf; |
| | | } |
| | | return tempPdf; |
| | | } catch (Exception e) { |
| | | // throw new BusinessException(ResponseStatus.EXPORT_EXCEL_ERROR, e); |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "ä¿å主é®") |
| | | private Integer applyId; |
| | | @ApiModelProperty(value = "å åä¿ä¸»é®") |
| | | private Integer applyChangId; |
| | | |
| | | @ApiModelProperty(value = "ç±»åï¼0=å ä¿ï¼1=åä¿ï¼2=æ¢å ") |
| | | private List<Integer> types; |
| | |
| | | @ApiModelProperty(value = "åå·¥åç§°") |
| | | @TableField(exist = false) |
| | | private String memberName; |
| | | @ApiModelProperty(value = "å工身份è¯å·") |
| | | @TableField(exist = false) |
| | | private String memberIdcardNo; |
| | | @ApiModelProperty(value = "æ§å« 0ç· 1女") |
| | | @TableField(exist = false) |
| | | private Integer sex; |
| | |
| | | @ApiModelProperty(value = "ä¿é©æ¶é´åä½0天 1åæ 2æ 3å¹´", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer solutionTimeUnit; |
| | | @ApiModelProperty(value = "æä¿ç³è¯·ç¼ç ", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer applyId; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "ä¿é©æ¹æ¡ä¸»é®") |
| | | @TableField(exist = false) |
| | | private Integer solutionsId; |
| | | |
| | | @ApiModelProperty(value = "åºè¡¨ä¿é©æ¹æ¡ä¸»é®") |
| | | @ApiModelProperty(value = "ä¿é©æ¹æ¡ä¸»é®(åºè¡¨ï¼") |
| | | @TableField(exist = false) |
| | | private Integer baseSolutionsId; |
| | | @ApiModelProperty(value = "ç³è¯·åéä»¶") |
| | | @TableField(exist = false) |
| | | private Multifile applyFile; |
| | | @ApiModelProperty(value = "ç³è¯·åæ¢åéä»¶") |
| | | @TableField(exist = false) |
| | | private Multifile applyUnitFile; |
| | | @ApiModelProperty(value = "æ¹åéä»¶") |
| | | @TableField(exist = false) |
| | | private Multifile pidanFile; |
| | | |
| | | |
| | | @ApiModelProperty(value = "å ä¿æç»æ°æ®") |
| | | @TableField(exist = false) |
| | |
| | | @TableField(exist = false) |
| | | private Integer companyId; |
| | | |
| | | @ApiModelProperty(value = "æ¹åé件对象") |
| | | @TableField(exist = false) |
| | | private Multifile pidanFile; |
| | | @ApiModelProperty(value = "å¤çä¼ä¸ç³è¯·ç¶æ 0åæ 1驳å") |
| | | @TableField(exist = false) |
| | | private int dealBackApply; |
| | |
| | | @ApiModelProperty(value = "æ¥å¿è®°å½") |
| | | @TableField(exist = false) |
| | | private List<ApplyLog> applyLogList; |
| | | |
| | | |
| | | |
| | | public TaxesInvoicingVO toTaxesInvoicingVO(){ |
| | | TaxesInvoicingVO taxesInvoicingVO = new TaxesInvoicingVO(); |
| | | taxesInvoicingVO.setId(this.getId()); |
| | |
| | | @ApiModelProperty(value = "å建人åç§°", example = "1") |
| | | @TableField(exist = false) |
| | | private String creatorName; |
| | | @ApiModelProperty(value = "å建人é¡å 0å¹³å° 1ä¼ä¸", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer creatorType; |
| | | |
| | | @ApiModelProperty(value = "å
¬å¸åç§°", example = "1") |
| | | @TableField(exist = false) |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ApplyChagneDetail> findList(ApplyChagneDetail applyChagneDetail) { |
| | | QueryWrapper<ApplyChagneDetail> wrapper = new QueryWrapper<>(applyChagneDetail); |
| | | return applyChagneDetailMapper.selectList(wrapper); |
| | | public List<ApplyChagneDetail> findList(ApplyChagneDetail applyDetailPageDTO) { |
| | | MPJLambdaWrapper<ApplyChagneDetail> queryWrapper = new MPJLambdaWrapper<>(); |
| | | Utils.MP.blankToNull(applyDetailPageDTO ); |
| | | queryWrapper.select("t2.name",ApplyChagneDetail::getWorkTypeName); |
| | | queryWrapper.select("t3.name",ApplyChagneDetail::getDuName); |
| | | queryWrapper.select("t4.name",ApplyChagneDetail::getOldWorkTypeName); |
| | | queryWrapper.select("t5.name",ApplyChagneDetail::getOldDuName); |
| | | queryWrapper.selectAs(Member::getName,ApplyChagneDetail::getMemberName); |
| | | queryWrapper.selectAs(Member::getSex,ApplyChagneDetail::getSex); |
| | | queryWrapper.selectAs(Member::getIdcardNo,ApplyChagneDetail::getMemberIdcardNo); |
| | | queryWrapper.leftJoin(Member.class,Member::getId,ApplyChagneDetail::getMemberId); |
| | | queryWrapper.leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getWorktypeId); |
| | | queryWrapper.leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyChagneDetail::getDuId); |
| | | queryWrapper.leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getOldWorktypeId); |
| | | queryWrapper.leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyChagneDetail::getOldDuId); |
| | | queryWrapper.exists(!Objects.isNull(applyDetailPageDTO.getApplyId()), |
| | | " select 1 from apply_change ac where ac.isdeleted = 0 and ac.status in (1,2) and ac.apply_id = "+applyDetailPageDTO.getApplyId()+" and ac.id = t.apply_change_id "); |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getDuId()),ApplyChagneDetail::getDuId,applyDetailPageDTO.getDuId()); |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getWorktypeId()),ApplyChagneDetail::getWorktypeId,applyDetailPageDTO.getWorktypeId()); |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getApplyChangeId()),ApplyChagneDetail::getApplyChangeId,applyDetailPageDTO.getApplyChangeId()); |
| | | queryWrapper.like(StringUtils.isNotBlank(applyDetailPageDTO.getMemberName()),Member::getName,applyDetailPageDTO.getMemberName()); |
| | | |
| | | List<ApplyChagneDetail> pageData = applyChangeDetailJoinMapper.selectJoinList( ApplyChagneDetail.class, queryWrapper); |
| | | return pageData; |
| | | } |
| | | |
| | | |
| | |
| | | MPJLambdaWrapper<ApplyChagneDetail> queryWrapper = new MPJLambdaWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.selectAll(ApplyChagneDetail.class); |
| | | queryWrapper.selectAs(DispatchUnit::getName,ApplyChagneDetail::getDuName); |
| | | queryWrapper.selectAs(Worktype::getName,ApplyChagneDetail::getWorkTypeName); |
| | | queryWrapper.select("t2.name",ApplyChagneDetail::getWorkTypeName); |
| | | queryWrapper.select("t3.name",ApplyChagneDetail::getDuName); |
| | | queryWrapper.select("t4.name",ApplyChagneDetail::getOldWorkTypeName); |
| | | queryWrapper.select("t5.name",ApplyChagneDetail::getOldDuName); |
| | | queryWrapper.selectAs(Member::getName,ApplyChagneDetail::getMemberName); |
| | | queryWrapper.selectAs(Member::getSex,ApplyChagneDetail::getSex); |
| | | queryWrapper.selectAs(Member::getIdcardNo,ApplyChagneDetail::getMemberIdcardNo); |
| | | queryWrapper.leftJoin(Member.class,Member::getId,ApplyChagneDetail::getMemberId); |
| | | queryWrapper.leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getWorktypeId); |
| | | queryWrapper.leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyChagneDetail::getDuId); |
| | | queryWrapper.leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getOldWorktypeId); |
| | | queryWrapper.leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyChagneDetail::getOldDuId); |
| | | ApplyDetailPageDTO applyDetailPageDTO = pageWrap.getModel(); |
| | | queryWrapper.exists(!Objects.isNull(applyDetailPageDTO.getApplyId()), |
| | | " select 1 from apply_change ac where ac.isdeleted = 0 and ac.status in (1,2) and ac.apply_id = "+applyDetailPageDTO.getApplyId()+" and ac.id = t.apply_change_id "); |
| | |
| | | ApplyChagneDetail::getEndTime, DateUtil.getDate(new Date(),"yyyy-MM-dd")+" 23:59:59"); |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getDuId()),ApplyChagneDetail::getDuId,applyDetailPageDTO.getDuId()); |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getWorkTypeId()),ApplyChagneDetail::getWorktypeId,applyDetailPageDTO.getWorkTypeId()); |
| | | queryWrapper.eq(!Objects.isNull(applyDetailPageDTO.getApplyChangId()),ApplyChagneDetail::getApplyChangeId,applyDetailPageDTO.getApplyChangId()); |
| | | queryWrapper.like(StringUtils.isNotBlank(applyDetailPageDTO.getMemberName()),Member::getName,applyDetailPageDTO.getMemberName()); |
| | | queryWrapper.ge(StringUtils.isNotBlank(applyDetailPageDTO.getStartTimeS()),ApplyChagneDetail::getStartTime,applyDetailPageDTO.getStartTimeS()+" 00:00:00"); |
| | | queryWrapper.le(StringUtils.isNotBlank(applyDetailPageDTO.getStartTimeE()),ApplyChagneDetail::getStartTime,applyDetailPageDTO.getStartTimeE()+" 23:59:59"); |
| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | @Autowired |
| | | private CompanyMapper companyMapper; |
| | | @Autowired |
| | | private SignService signService; |
| | | @Autowired |
| | | private ApplyChagneDetailJoinMapper applyChagneDetailJoinMapper; |
| | |
| | | |
| | | @Autowired |
| | | private ApplyLogMapper applyLogMapper; |
| | | |
| | | @Value("${debug_model}") |
| | | private boolean debugModel; |
| | | @Autowired |
| | | private ApplyLogJoinMapper applyLogJoinMapper; |
| | | |
| | |
| | | .selectAs(Solutions::getTimeUnit,ApplyChagneDetail::getSolutionTimeUnit) |
| | | .selectAs(Solutions::getPrice,ApplyChagneDetail::getSolutionPrice) |
| | | .leftJoin(ApplyChange.class, ApplyChange::getId, ApplyChagneDetail::getApplyChangeId) |
| | | .leftJoin(Solutions.class, Solutions::getId, ApplyChange::getSolutionsId) |
| | | .leftJoin(InsuranceApply.class, InsuranceApply::getId, ApplyChange::getApplyId) |
| | | .leftJoin(Solutions.class, Solutions::getId, InsuranceApply::getSolutionId) |
| | | .eq(ApplyChagneDetail::getApplyChangeId,update.getId()) |
| | | .eq(ApplyChagneDetail::getIsdeleted,Constants.ZERO) ); |
| | | if(detailList ==null || detailList.size()==0){ |
| | |
| | | .selectAs(Solutions::getTimeUnit,ApplyChagneDetail::getSolutionTimeUnit) |
| | | .selectAs(Solutions::getPrice,ApplyChagneDetail::getSolutionPrice) |
| | | .leftJoin(ApplyChange.class, ApplyChange::getId, ApplyChagneDetail::getApplyChangeId) |
| | | .leftJoin(Solutions.class, Solutions::getId, ApplyChange::getSolutionsId) |
| | | .leftJoin(InsuranceApply.class, InsuranceApply::getId, ApplyChange::getApplyId) |
| | | .leftJoin(Solutions.class, Solutions::getId, InsuranceApply::getSolutionId) |
| | | .eq(ApplyChagneDetail::getApplyChangeId,update.getId()) |
| | | .eq(ApplyChagneDetail::getIsdeleted,Constants.ZERO) ); |
| | | if(detailList ==null || detailList.size()==0){ |
| | |
| | | add.setDuId(detail.getDuId()); |
| | | add.setStartTime(update.getApplyStartTime()); |
| | | add.setEndTime(detail.getEndTime()); |
| | | add.setFee(Constants.countDetailFee(detail.getSolutionTimeUnit(),detail.getSolutionPrice(), add.getStartTime(),add.getEndTime())); |
| | | add.setFee(new BigDecimal(0)); |
| | | // add.setFee(Constants.countDetailFee(detail.getSolutionTimeUnit(),detail.getSolutionPrice(), add.getStartTime(),add.getEndTime())); |
| | | if(DateUtil.daysBetweenDates(add.getStartTime(),new Date() )>=0){ |
| | | //å¦æå·²äº§çè´¹ç¨ï¼è®¡ç®å·²äº§çè´¹ç¨ |
| | | add.setCurrentFee(Constants.countDetailFee(detail.getSolutionTimeUnit(),detail.getSolutionPrice(), add.getStartTime(),new Date())); |
| | |
| | | BigDecimal updateCurrentFee = new BigDecimal(0); |
| | | if(DateUtil.daysBetweenDates(update.getApplyStartTime(),new Date() )>0){ |
| | | //å¦æçææ¶é´ æ¯ä»å¤©ä¹åï¼éå已产çè´¹ç¨ï¼è®¡ç®å·²äº§çè´¹ç¨(æ»è´¹ç¨-已产çè´¹ç¨) |
| | | updateCurrentFee = updateFee.subtract(oldModel.getCurrentFee()); |
| | | updateCurrentFee = updateFee.subtract(Constants.formatBigdecimal(oldModel.getCurrentFee())); |
| | | } |
| | | applyDetailJoinMapper.update(null, new UpdateWrapper<ApplyDetail>().lambda() |
| | | .setSql(" fee = ifnull(fee,0)+"+updateFee) |
| | |
| | | queryWrapper.selectAll(ApplyChange.class) |
| | | .selectAs(InsuranceApply::getCode,ApplyChange::getApplyCode) |
| | | .selectAs(Company::getName,ApplyChange::getCompanyName) |
| | | .selectAs(InsuranceApply::getStartTime,ApplyChange::getStartTime) |
| | | .selectAs(InsuranceApply::getEndTime,ApplyChange::getEndTime) |
| | | .selectAs(Solutions::getName,ApplyChange::getSolutionsName) |
| | | .select("( select count(1) from apply_chagne_detail ad where t.id = ad.APPLY_CHANGE_ID and ad.TYPE = 0 )",ApplyChange::getAddNum) |
| | | .select("( select count(1) from apply_chagne_detail ad where t.id = ad.APPLY_CHANGE_ID and ad.TYPE = 1 )",ApplyChange::getDelNum) |
| | | .select("( select count(1) from apply_chagne_detail ad where t.id = ad.APPLY_CHANGE_ID and ad.TYPE = 2 )",ApplyChange::getChangeNum) |
| | | .select("( select ifnull(sum(ad.FEE),0) from apply_chagne_detail ad where t.id = ad.APPLY_CHANGE_ID )",ApplyChange::getChangeMoney) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | |
| | | new MPJLambdaWrapper<ApplyLog>() |
| | | .selectAll(ApplyLog.class) |
| | | .selectAs(SystemUser::getRealname,ApplyLog::getCreatorName) |
| | | .selectAs(SystemUser::getType,ApplyLog::getCreatorType) |
| | | .selectAs(Company::getName,ApplyLog::getCompanyName) |
| | | .leftJoin(SystemUser.class,SystemUser::getId,ApplyLog::getCreator) |
| | | .leftJoin(Company.class,Company::getId,SystemUser::getCompanyId) |
| | |
| | | .orderByAsc(ApplyLog::getCreateDate) |
| | | ); |
| | | applyChange.setApplyLogList(applyLogList); |
| | | |
| | | List<Multifile> multifiles = multifileMapper.selectList(new QueryWrapper<Multifile>().lambda() |
| | | .eq(Multifile::getObjId,applyChange.getId()) |
| | | .in(Multifile::getObjType, Arrays.asList(new Integer[]{Constants.MultiFile.CA_APPLY_JIAJIAN_SIGN.getKey() |
| | | ,Constants.MultiFile.CA_PD_PDF.getKey() |
| | | ,Constants.MultiFile.CA_APPLY_CHANGEUNIT_SIGN.getKey()})) |
| | | .eq(Multifile::getIsdeleted,Constants.ZERO)); |
| | | if(multifiles!=null){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode() |
| | | +systemDictDataBiz.queryByCode(Constants.OSS,Constants.APPLY_FILE).getCode(); |
| | | for(Multifile f : multifiles){ |
| | | if(StringUtils.isBlank(f.getFileurl())){ |
| | | continue; |
| | | } |
| | | f.setFileurlFull(path+f.getFileurl()); |
| | | if(Constants.equalsInteger(f.getObjType(),Constants.MultiFile.CA_APPLY_JIAJIAN_SIGN.getKey())){ |
| | | //ç¾ç½²åç³è¯·å |
| | | applyChange.setApplyFile(f); |
| | | }else if(Constants.equalsInteger(f.getObjType(),Constants.MultiFile.CA_APPLY_CHANGEUNIT_SIGN.getKey())){ |
| | | //ç¾ç½²åç³è¯·å |
| | | applyChange.setApplyUnitFile(f); |
| | | }else if(Constants.equalsInteger(f.getObjType(),Constants.MultiFile.CA_PD_PDF.getKey())){ |
| | | //ç¾ç½²åçæä¿å |
| | | applyChange.setPidanFile(f); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return applyChange; |
| | | } |
| | |
| | | @Override |
| | | public ApplyChange exportChangeUnitExcel(ApplyChange param){ |
| | | ApplyChange model = findJoinDetail(param); |
| | | if(Objects.isNull(model) ||! Constants.equalsInteger(Constants.ZERO,model.getType())){ |
| | | if(Objects.isNull(model) ||! Constants.equalsInteger(Constants.ZERO,model.getIsdeleted())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | private String getOnlineSignLink(ApplyChange model) { |
| | | if(Objects.isNull(model) ||! Constants.equalsInteger(Constants.ZERO,model.getType())){ |
| | | if(Objects.isNull(model) ||! Constants.equalsInteger(Constants.ZERO,model.getIsdeleted())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(!Constants.equalsInteger(Constants.ZERO,model.getStatus())){ |
| | |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | Company company = user.getCompany(); |
| | | if(company== null || StringUtils.isBlank( company.getEmail()) || !Constants.equalsInteger(company.getSignStatus(),Constants.ONE)){ |
| | | if(debugModel){ |
| | | company = companyMapper.selectById(model.getCompanyId()); |
| | | } |
| | | if(company== null || StringUtils.isBlank( company.getEmail()) || !Constants.equalsInteger(company.getSignStatus(),Constants.THREE)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼ä¼ä¸å°æªå
·å¤å¨çº¿ç¾ç« æ¡ä»¶ï¼è¯·è系平å°ç®¡çå确认~"); |
| | | } |
| | | |
| | | String fileUrl = ExcelExporter.build(ApplyChange.class).exportChangeUnitExcelToPdf(model,"ç¼åç³è¯·è¡¨"); |
| | | String fileUrl = null; |
| | | if(Constants.equalsObject(model.getType(), Constants.ONE)){ |
| | | fileUrl = ExcelExporter.build(ApplyChange.class).exportChangeUnitExcelToPdf(model,"æ¢åç³è¯·è¡¨"); |
| | | }else{ |
| | | fileUrl = ExcelExporter.build(ApplyChange.class).exportJiajianBaoExcelToPdf(model,"å åä¿ç³è¯·è¡¨"); |
| | | } |
| | | String notifyUrl = systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SIGN_DONE_NOTIFY_URL).getCode(); |
| | | notifyUrl = notifyUrl.replace("${type}","0").replace("${id}",model.getId().toString()); |
| | | String applyNo = signService.applySignLocalFile(company.getName(),fileUrl,company.getName(),company.getCode(),company.getEmail(),null,company.getSignId(),notifyUrl); |
| | | String applyNo = signService.applySignLocalFile(company.getName(),company.getName(),fileUrl,company.getCode(),company.getEmail(),"æä¿ä¼ä¸ç¾ç« ",company.getSignId(),notifyUrl); |
| | | if(StringUtils.isBlank(applyNo) ){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼è·åå¨çº¿ç¾ç« å°å失败ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | |
| | | update.setEditDate(new Date()); |
| | | update.setSignApplyNo(applyNo); |
| | | applyChangeMapper.updateById(update); |
| | | |
| | | return link; |
| | | } |
| | | |
| | |
| | | public ApplyChange exportJiajianBaoExcel(ApplyChange param){ |
| | | |
| | | ApplyChange model = findJoinDetail(param); |
| | | if(Objects.isNull(model) ||! Constants.equalsInteger(Constants.ZERO,model.getType())){ |
| | | if(Objects.isNull(model) ||! Constants.equalsInteger(Constants.ZERO,model.getIsdeleted())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | |
| | |
| | | .selectAll(ApplyChange.class) |
| | | .selectAs(Solutions::getName,ApplyChange::getSolutionsName) |
| | | .selectAs(Company::getName,ApplyChange::getCompanyName) |
| | | .selectAs(InsuranceApply::getCompanyId,ApplyChange::getCompanyId) |
| | | .selectAs(InsuranceApply::getCode,ApplyChange::getApplyCode) |
| | | .selectAs(InsuranceApply::getStartTime,ApplyChange::getStartTime) |
| | | .selectAs(InsuranceApply::getStartTime,ApplyChange::getEndTime) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,ApplyChange::getCompanyId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(ApplyChange::getId,param.getId()) |
| | | .last("limit 1"); |
| | | |
| | |
| | | .selectAll(ApplyChagneDetail.class) |
| | | .selectAs(Member::getName,ApplyChagneDetail::getMemberName) |
| | | .selectAs(Member::getSex,ApplyChagneDetail::getSex) |
| | | .selectAs(Member::getIdcardNo,ApplyChagneDetail::getIdcardNo) |
| | | .selectAs(Member::getIdcardNo,ApplyChagneDetail::getMemberIdcardNo) |
| | | .selectAs(Worktype::getName,ApplyChagneDetail::getWorkTypeName) |
| | | .selectAs(DispatchUnit::getName,ApplyChagneDetail::getDuName) |
| | | .leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getWorktypeId) |
| | |
| | | .select("t3.name as oldWorktypeName") |
| | | .select("t4.name as oldDuName") |
| | | .selectAs(Member::getSex,ApplyChagneDetail::getSex) |
| | | .selectAs(Member::getIdcardNo,ApplyChagneDetail::getIdcardNo) |
| | | .selectAs(Member::getIdcardNo,ApplyChagneDetail::getMemberIdcardNo) |
| | | .leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getWorktypeId) |
| | | .leftJoin(DispatchUnit.class,DispatchUnit::getId,ApplyChagneDetail::getDuId) |
| | | .leftJoin(Worktype.class,Worktype::getId,ApplyChagneDetail::getOldWorktypeId) |
| | |
| | | @Override |
| | | public void dealWaitSignedData(){ |
| | | List<InsuranceApply> applyList = insuranceApplyMapper.selectList(new QueryWrapper<InsuranceApply>().lambda() |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WAIT_SIGNATURE) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WAIT_SIGNATURE.getKey()) |
| | | .isNotNull(InsuranceApply::getSignApplyNo)); |
| | | if(applyList !=null && applyList.size()>0 ){ |
| | | for(InsuranceApply model : applyList){ |
| | | String status = signService.linkFileStatus(model.getSignApplyNo()); |
| | | if(!StringUtils.equals(status,"3")){ |
| | | continue; |
| | | } |
| | | String link = signService.linkFile(model.getSignApplyNo()); |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | |
| | | } |
| | | } |
| | | List<ApplyChange> chagneList = applyChangeMapper.selectList(new QueryWrapper<ApplyChange>().lambda() |
| | | .eq(ApplyChange::getStatus,Constants.ApplyChangeStatus.UPLOAD) |
| | | .eq(ApplyChange::getStatus,Constants.ApplyChangeStatus.UPLOAD.getKey()) |
| | | .isNotNull(ApplyChange::getSignApplyNo)); |
| | | if(chagneList !=null && chagneList.size()>0 ){ |
| | | for(ApplyChange model : chagneList){ |
| | | String status = signService.linkFileStatus(model.getSignApplyNo()); |
| | | if(!StringUtils.equals(status,"3")){ |
| | | continue; |
| | | } |
| | | String link = signService.linkFile(model.getSignApplyNo()); |
| | | String fileUrl = uploadSignFile(link); |
| | | if(StringUtils.isBlank(fileUrl)){ |
| | |
| | | //ä¼ä¸äººåæ¥çæ¬ä¼ä¸æ°æ® |
| | | if(loginUserInfo.getType().equals(Constants.ONE)){ |
| | | queryWrapper.eq(InsuranceApply::getCompanyId, loginUserInfo.getCompanyId()); |
| | | }else{ |
| | | if(loginUserInfo.getCompanyIdList()!=null && loginUserInfo.getCompanyIdList().size()>0){ |
| | | queryWrapper.in(InsuranceApply::getCompanyId, loginUserInfo.getCompanyIdList()); |
| | | }else{ |
| | | queryWrapper.eq(InsuranceApply::getCompanyId, -1); |
| | | } |
| | | } |
| | | if (pageWrap.getModel().getSolutionId() != null) { |
| | | queryWrapper.eq(InsuranceApply::getSolutionId, pageWrap.getModel().getSolutionId()); |
| | |
| | | //ä¼ä¸äººåæ¥çæ¬ä¼ä¸æ°æ® |
| | | if(loginUserInfo.getType().equals(Constants.ONE)){ |
| | | queryWrapper.eq(InsuranceApply::getCompanyId, loginUserInfo.getCompanyId()); |
| | | }else{ |
| | | if(loginUserInfo.getCompanyIdList()!=null && loginUserInfo.getCompanyIdList().size()>0){ |
| | | queryWrapper.in(InsuranceApply::getCompanyId, loginUserInfo.getCompanyIdList()); |
| | | }else{ |
| | | queryWrapper.eq(InsuranceApply::getCompanyId, -1); |
| | | } |
| | | } |
| | | if (model.getSolutionId() != null) { |
| | | queryWrapper.eq(InsuranceApply::getSolutionId, model.getSolutionId()); |
| | |
| | | params.put("serverCa",1); //使ç¨äºè¯ä¹¦ |
| | | params.put("file",new File(file)); |
| | | params.put("dealType",5); //æå®ååæä»¶ç¾ç½²æ¹å¼ 5 为é¨åèªå¨ç¾ |
| | | params.put("positionType",1); //æå®éè¿è¡¨ååæ¹å¼è®¾ç½®ç¾åä½ç½® |
| | | params.put("positionType",2); //æå®éè¿è¡¨ååæ¹å¼è®¾ç½®ç¾åä½ç½® |
| | | params.put("fileType",0); |
| | | params.put("needQifengSign",1); |
| | | params.put("notifyUrl",notifyUrl); |
| | |
| | | // sReq.setChapteJson(postionJson); |
| | | sReq.setSearchKey(postionJson); |
| | | sReq.setSignId(singId); |
| | | sReq.setSearchConvertExtend("{\"fixX\":10,\"fixY\":-50}"); |
| | | sReq.setSearchConvertExtend("{\"fixX\":-80,\"fixY\":-80}"); |
| | | sReq.setNoNeedVerify(1); |
| | | signatories.add(sReq); |
| | | params.put("signatories",signatories.toJSONString()); |
| | |
| | | * è·åç¾ç½²é¾æ¥å°å(è¿åæä»¶å°åï¼ç¾ç½²åææ¯æä»¶å°åï¼å¦å跳转å°ç¾ç½²é¡µé¢) |
| | | * @param applyNo |
| | | */ |
| | | public String linkFileStatus(String applyNo) { |
| | | |
| | | try { initParams(); |
| | | Map<String, Object> params = bodyParams; |
| | | String url = SERVICE_URL + "/v2/sign/status"; |
| | | //æå»ºè¯·æ±åæ° |
| | | params.put("applyNo",applyNo); //åèµ·ååç¾ç½²æ¥å£è¿åçAPLç¼å· |
| | | // params.put("fullName",fullName); //ç¾çº¦äººåç§° |
| | | // params.put("identityCard",identityCard); //ç¾çº¦äººè¯ä»¶å· |
| | | // params.put("identityType",12); //è¯ä»¶ç±»å 1身份è¯, 2æ¤ç
§, 3å°èè¯, 4港澳å±
æ°æ¥å¾å
å°éè¡è¯, 11è¥ä¸æ§ç
§, 12ç»ä¸ç¤¾ä¼ä¿¡ç¨ä»£ç , 20åè´¦å·, 99å
¶ä» |
| | | String str= HttpClientUtils.init().getPost(url,null,params,true); |
| | | System.out.println(str); |
| | | saveInterfaceLog(url,"ãçµåç¾ãç¾çº¦ç¶ææ¥è¯¢",JSONObject.toJSONString(params),str); |
| | | JSONObject json = JSONObject.parseObject(str); |
| | | if(json!=null && json.getBoolean("success")){ |
| | | //0 ï¼æªç¾ 1 ï¼å·²ç¾ 2ï¼æç¾ 3ï¼å·²ä¿å
¨ |
| | | return json.getString("data"); |
| | | } |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | * è·åç¾ç½²é¾æ¥å°å(è¿åæä»¶å°åï¼ç¾ç½²åææ¯æä»¶å°åï¼å¦å跳转å°ç¾ç½²é¡µé¢) |
| | | * @param applyNo |
| | | */ |
| | | public String linkFile(String applyNo) { |
| | | |
| | | try { initParams(); |