Merge remote-tracking branch 'origin/master'
| | |
| | | VUE_APP_ROUTER_MODE = 'hash' |
| | | |
| | | # 项ç®ä¸ä¸æè·¯å¾ |
| | | VUE_APP_CONTEXT_PATH = '/yyb_admin' |
| | | VUE_APP_CONTEXT_PATH = '/yyb_web' |
| | | |
| | | # æ¥å£åç¼ |
| | | VUE_APP_API_PREFIX = '/api' |
| | |
| | | # å·¥ç§å¯¼å
¥æ¨¡æ¿ |
| | | VUE_APP_TYPEWORK_URL = 'https://doumeetest.oss-cn-beijing.aliyuncs.com/yunyibao_file/typeWork.xlsx' |
| | | |
| | | # 人å导å
¥æ¨¡æ¿ |
| | | # 人å导å
¥æ¨¡æ¿(å åä¿æ¢åº) |
| | | VUE_APP_MEMBER_URL = 'https://doumeetest.oss-cn-beijing.aliyuncs.com/yunyibao_file/member.xlsx' |
| | | |
| | | # 人å导å
¥æ¨¡æ¿(æä¿ç³è¯·) |
| | | VUE_APP_MEMBER1_URL = 'https://doumeetest.oss-cn-beijing.aliyuncs.com/yunyibao_file/personnel.xlsx' |
| | |
| | | # VUE_APP_API_PREFIX = '/yyb_web_api' |
| | | |
| | | # ä¼ä¸ç«¯-ä»åº· |
| | | VUE_APP_API = 'http://192.168.0.129:10031/' |
| | | VUE_APP_API = 'http://192.168.0.186:10031/' |
| | | |
| | | # å¹³å°ç«¯-ä»åº· |
| | | # VUE_APP_API = 'http://192.168.0.129:10030/' |
| | | # VUE_APP_API = 'http://192.168.0.186:10030/' |
| | | |
| | | # å¹³å°ç«¯-èå§ |
| | | # VUE_APP_API = 'http://192.168.0.105:10023/' |
| | |
| | | # ç产ç¯å¢é
ç½® |
| | | NODE_ENV = 'production' |
| | | |
| | | VUE_APP_API_PREFIX = '/yyb_admin_api' |
| | | VUE_APP_API_PREFIX = '/yyb_web_api' |
| | | |
| | | # å¹³å°ç«¯ |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/yyb_admin_api/' |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/yyb_admin_api/' |
| | | |
| | | # ä¼ä¸ç«¯ |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/yyb_web_api/' |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/yyb_web_api/' |
| | |
| | | .du-status0 { |
| | | color: #216EEE !important; |
| | | } |
| | | .apply-status1 , .apply-status4, .apply-status6, .apply-status7, .apply-status8, |
| | | .apply-status1 , .apply-status4, .apply-status6, .apply-status7, .apply-status8, .apply-status11, |
| | | .change-status3,.change-status4,.change-status5,.change-status8, |
| | | .settle-status1, |
| | | .tax-status2, |
| | |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <el-button v-if="model.status == 10 ||model.status == 2" 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 == 6 || model.status == 7|| model.status == 8 || model.status == 11" 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> |
| | |
| | | :key="Math.random()" |
| | | align="center" |
| | | prop="fee" |
| | | label="已产çè´¹ç¨ï¼å
ï¼"> |
| | | label="产çè´¹ç¨"> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-table |
| | |
| | | ref="table" |
| | | v-if="activeName === '1'" |
| | | style="width: 100%"> |
| | | <el-table-column label="åºå·" |
| | | <el-table-column |
| | | label="åºå·" |
| | | align="center"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | |
| | | } else { |
| | | this.formInline.applyStatus = '' |
| | | } |
| | | this.formInline.start = '' |
| | | this.formInline.startTimeE = '' |
| | | this.formInline.endTimeE = '' |
| | | this.list = [] |
| | | this.list1 = [] |
| | | this.list2 = [] |
| | |
| | | changeStart(e) { |
| | | if (e.length > 0) { |
| | | this.formInline.startTimeS = e[0] |
| | | this.formInline.endTimeS = e[1] |
| | | this.formInline.startTimeE = e[1] |
| | | } else { |
| | | this.formInline.startTimeS = '' |
| | | this.formInline.endTimeS = '' |
| | | this.formInline.startTimeE = '' |
| | | } |
| | | this.search() |
| | | }, |
| | | changeEnd(e) { |
| | | if (e.length > 0) { |
| | | this.formInline.startTimeE = e[0] |
| | | this.formInline.endTimeS = e[0] |
| | | this.formInline.endTimeE = e[1] |
| | | } else { |
| | | this.formInline.startTimeE = '' |
| | | this.formInline.endTimeS = '' |
| | | this.formInline.endTimeE = '' |
| | | } |
| | | this.search() |
| | |
| | | :title="title" |
| | | width="50%" |
| | | text="ä¿®æ¹" |
| | | :visible="userInfo.type !== 1" |
| | | :withFooter="userInfo.type !== 1" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="$refs.operaSolutionsWindow.open('ç¼è¾æ¹æ¡', form)" |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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> |
| | | <div class="box_table_content " > |
| | | <div class="box_table_content_item box_table_content_header">{{ model.companyName }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.solutionName }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.applyStartTime }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.applyEndTime }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{ model.insureNum }}</div> |
| | | <div class="box_table_content_item box_table_content_header">{{model.totalPrice}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="box_table" v-if="model"> |
| | | <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> |
| | | <div class="box_table_content" v-for="(item, index) in model.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.idCard }}</div> |
| | | <div class="box_table_content_item">{{ getGender(item.idCard) }}</div> |
| | | <div class="box_table_content_item">{{ item.duName }}</div> |
| | | <div class="box_table_content_item">{{ item.workTypeName}}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="submit">ç¡®å®</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' |
| | | export default { |
| | | name: 'InsuranceDetails', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | model:{} |
| | | } |
| | | }, |
| | | methods: { |
| | | open(title, target){ |
| | | this.title = title |
| | | this.visible = true |
| | | this.model = target |
| | | }, |
| | | submit() { |
| | | this.$emit('success') |
| | | this.visible = false |
| | | }, |
| | | getGender(idCardNumber) { |
| | | // ä½¿ç¨æ£åè¡¨è¾¾å¼æå身份è¯å·ç ç第17使°å |
| | | const genderCode = idCardNumber.substr(-2); |
| | | |
| | | if (genderCode % 2 === 0) { |
| | | return '女'; |
| | | } else { |
| | | return 'ç·'; |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </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-sizing: border-box; |
| | | } |
| | | .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_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(1) { |
| | | //flex: 0.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(1) { |
| | | // flex: 0.5; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <el-form-item label="æ´¾é£åä½åç§°" prop="name"> |
| | | <el-input v-model="form.name" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="æ´¾é£åä½ä¿¡ç¨ä»£ç " prop="code"> |
| | | <el-input v-model="form.code" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="æ´¾é£åä½ä¿¡ç¨ä»£ç " prop="code">--> |
| | | <!-- <el-input v-model="form.code" placeholder="请è¾å
¥" v-trim/>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="æ´¾é£åä½æè¿°" prop="content"> |
| | | <el-input v-model="form.content" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥æ´¾é£åä½åç§°' } |
| | | ], |
| | | code: [ |
| | | { required: true, message: '请è¾å
¥æ´¾é£åä½ä¿¡ç¨ä»£ç ' } |
| | | ], |
| | | content: [ |
| | | { required: true, message: '请è¾å
¥æ´¾é£åä½æè¿°' } |
| | | ] |
| | | // code: [ |
| | | // { required: true, message: '请è¾å
¥æ´¾é£åä½ä¿¡ç¨ä»£ç ' } |
| | | // ], |
| | | // content: [ |
| | | // { required: true, message: '请è¾å
¥æ´¾é£åä½æè¿°' } |
| | | // ] |
| | | }, |
| | | insuranceScheme: [] |
| | | } |
| | |
| | | <importEmployees ref="importEmployees" @result="getValue" /> |
| | | <!-- ç¡®è®¤å·¥ç§ --> |
| | | <confirmJobType ref="confirmJobType" @result="getUser" /> |
| | | <!-- æ¥ç详å --> |
| | | <detailsPolicyholder ref="detailsPolicyholder" @success="successEvent" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | |
| | | import addEmployee from '@/components/enterprise/addEmployee' |
| | | import importEmployees from '@/components/enterprise/importEmployees' |
| | | import confirmJobType from '@/components/enterprise/confirmJobType' |
| | | import detailsPolicyholder from '@/components/business/detailsPolicyholder' |
| | | import { all, getNewVersion } from '@/api/business/solutions' |
| | | import { mapState } from 'vuex' |
| | | import { create, getCountCyclePriceVO, getDetail, findList, updateData } from '@/api/business/insuranceApply' |
| | | export default { |
| | | name: 'OperaInsuranceApplyWindow2', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, selectEmployees, addEmployee, importEmployees, confirmJobType }, |
| | | components: { GlobalWindow, selectEmployees, addEmployee, importEmployees, confirmJobType, detailsPolicyholder }, |
| | | data () { |
| | | return { |
| | | form: { |
| | |
| | | applyStartTime: '', |
| | | applyEndTime: '' |
| | | }, |
| | | solutionName: '', |
| | | type: '', |
| | | pickerOptions: {}, // åæ¾picker optionsçåé |
| | | price: '', |
| | |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | methods: { |
| | | successEvent() { |
| | | let arr = JSON.parse(JSON.stringify(this.tableData)) |
| | | arr.forEach(item => { |
| | | item.idcardNo = item.idCard |
| | | }) |
| | | this.isWorking = true |
| | | // if (!this.form.id) { |
| | | create({ |
| | | applyDetailList: arr, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | solutionId: this.form.solutionId |
| | | }).then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æä½æå') |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | // } else { |
| | | // updateData({ |
| | | // id: this.form.id, |
| | | // applyDetailList: arr, |
| | | // applyStartTime: this.form.applyStartTime, |
| | | // applyEndTime: this.form.applyEndTime, |
| | | // solutionId: this.form.solutionId |
| | | // }).then(() => { |
| | | // this.visible = false |
| | | // this.$tip.apiSuccess('æä½æå') |
| | | // this.$emit('success') |
| | | // }).catch(e => { |
| | | // this.$tip.apiFailed(e) |
| | | // }) |
| | | // .finally(() => { |
| | | // this.isWorking = false |
| | | // }) |
| | | // } |
| | | }, |
| | | open (title, target) { |
| | | this.title = title |
| | | this.tableData = [] |
| | |
| | | return |
| | | } |
| | | for (let i = 0; i < this.tableData.length; i++) { |
| | | console.log(this.tableData[i].worktypeId, this.tableData[i].duId) |
| | | console.log(this.tableData[i].worktypeId) |
| | | console.log(this.tableData[i].duId) |
| | | if (!this.tableData[i].worktypeId || !this.tableData[i].duId) { |
| | | this.$message.warning('请å®åæ´¾é£åä½åå·¥ç§ä¿¡æ¯') |
| | | return |
| | | } |
| | | } |
| | | let arr = JSON.parse(JSON.stringify(this.tableData)) |
| | | arr.forEach(item => { |
| | | item.idcardNo = item.idCard |
| | | |
| | | let price = 0 |
| | | this.tableData.forEach(item => { |
| | | price = price + item.fee |
| | | }) |
| | | this.isWorking = true |
| | | if (!this.form.id) { |
| | | create({ |
| | | applyDetailList: arr, |
| | | this.$refs.detailsPolicyholder.open('æä¿è¯¦æ
å', { |
| | | companyName: this.userInfo.company.name, |
| | | solutionName: this.item.name, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | solutionId: this.form.solutionId |
| | | }).then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æä½æå') |
| | | this.$emit('success') |
| | | insureNum: this.tableData.length, |
| | | totalPrice: price, |
| | | detailList: this.tableData |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | } else { |
| | | updateData({ |
| | | id: this.form.id, |
| | | applyDetailList: arr, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | solutionId: this.form.solutionId |
| | | }).then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('æä½æå') |
| | | this.$emit('success') |
| | | }).catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | } |
| | | |
| | | // let arr = JSON.parse(JSON.stringify(this.tableData)) |
| | | // arr.forEach(item => { |
| | | // item.idcardNo = item.idCard |
| | | // }) |
| | | // this.isWorking = true |
| | | // if (!this.form.id) { |
| | | // create({ |
| | | // applyDetailList: arr, |
| | | // applyStartTime: this.form.applyStartTime, |
| | | // applyEndTime: this.form.applyEndTime, |
| | | // solutionId: this.form.solutionId |
| | | // }).then(() => { |
| | | // this.visible = false |
| | | // this.$tip.apiSuccess('æä½æå') |
| | | // this.$emit('success') |
| | | // }) |
| | | // .catch(e => { |
| | | // this.$tip.apiFailed(e) |
| | | // }) |
| | | // .finally(() => { |
| | | // this.isWorking = false |
| | | // }) |
| | | // } else { |
| | | // updateData({ |
| | | // id: this.form.id, |
| | | // applyDetailList: arr, |
| | | // applyStartTime: this.form.applyStartTime, |
| | | // applyEndTime: this.form.applyEndTime, |
| | | // solutionId: this.form.solutionId |
| | | // }).then(() => { |
| | | // this.visible = false |
| | | // this.$tip.apiSuccess('æä½æå') |
| | | // this.$emit('success') |
| | | // }).catch(e => { |
| | | // this.$tip.apiFailed(e) |
| | | // }) |
| | | // .finally(() => { |
| | | // this.isWorking = false |
| | | // }) |
| | | // } |
| | | |
| | | } |
| | | }) |
| | |
| | | this.$message.warning('请å
éæ©ä¿é©æ¹æ¡') |
| | | return |
| | | } |
| | | this.$refs.importEmployees.open('ä¸ä¼ åå', { arr: this.tableData, price: this.price }) |
| | | this.$refs.importEmployees.open('ä¸ä¼ åå', { arr: this.tableData, solutionId: this.form.solutionId, type: 1, price: this.price }) |
| | | }, |
| | | // åæ¢æ¹æ¡ |
| | | changeSolution(e) { |
| | |
| | | getFindListByDTO () { |
| | | findListByDTO({ |
| | | solutionId: this.form.solutionId, |
| | | dataType: 0 |
| | | // dataType: 0 |
| | | }).then(res => { |
| | | this.dispatching = res |
| | | }) |
| | |
| | | <div class="info_list_item_label">æ´¾é£åä½ï¼</div> |
| | | <div class="info_list_item_val">{{form.name}}</div> |
| | | </div> |
| | | <div class="info_list_item"> |
| | | <div class="info_list_item_label">æ´¾é£åä½ä¿¡ç¨ä»£ç ï¼</div> |
| | | <div class="info_list_item_val">{{form.code}}</div> |
| | | </div> |
| | | <!-- <div class="info_list_item">--> |
| | | <!-- <div class="info_list_item_label">æ´¾é£åä½ä¿¡ç¨ä»£ç ï¼</div>--> |
| | | <!-- <div class="info_list_item_val">{{form.code}}</div>--> |
| | | <!-- </div>--> |
| | | <div class="info_list_item"> |
| | | <div class="info_list_item_label">æ´¾é£åä½ç¶æï¼</div> |
| | | <div class="info_list_item_val" style="color:#2E68EC;" v-if="form.unitStatus === 0">å¾
å®¡æ ¸</div> |
| | |
| | | margin-bottom: 15px; |
| | | .info_list_item_label { |
| | | flex-shrink: 0; |
| | | width: 150px; |
| | | /*width: 150px;*/ |
| | | font-size: 14px; |
| | | color: black; |
| | | } |
| | |
| | | return { |
| | | list: [], |
| | | price: 0, |
| | | type: null, |
| | | solutionId: null, |
| | | addList: [], |
| | | fileName: '' |
| | | } |
| | |
| | | this.title = title |
| | | this.addList = [] |
| | | this.fileName = '' |
| | | this.type = obj.type |
| | | this.visible = true |
| | | this.solutionId = obj.solutionId |
| | | this.list = obj.arr |
| | | this.price = obj.price |
| | | }, |
| | | // å¯¼åºæ¨¡æ¿ |
| | | exportTemplate () { |
| | | // æä¿ç³è¯· |
| | | if (this.type === 1) { |
| | | window.open(process.env.VUE_APP_MEMBER1_URL) |
| | | } else { |
| | | window.open(process.env.VUE_APP_MEMBER_URL) |
| | | } |
| | | }, |
| | | clickRef () { |
| | | this.$refs.fileExcel.click() |
| | |
| | | result (e) { |
| | | const data = new FormData() |
| | | data.append('file', e.target.files[0]) |
| | | data.append('solutionId', this.solutionId) |
| | | importExcel(data) |
| | | .then(res => { |
| | | res.forEach(item => { |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="insureNum" label="æä¿äººæ°"></el-table-column> |
| | | <el-table-column prop="serviceDays" label="æä¿æ¶é¿ï¼å¤©ï¼"></el-table-column> |
| | | <el-table-column label="æä¿æ¶é¿ï¼å¤©ï¼"> |
| | | <template slot-scope="{row}"> |
| | | <span>{{row.serviceDays < 0 ? `-` : row.serviceDays}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="currentFee" label="已产çè´¹ç¨"></el-table-column> |
| | | <el-table-column prop="fee" label="æ»è´¹ç¨ï¼å
ï¼"></el-table-column> |
| | | <el-table-column prop="checkDate" 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="endTime" label="ä¿é©çææ¢æ"></el-table-column> |
| | | <el-table-column label="失æå©ä½ï¼å¤©ï¼"> |
| | | <template slot-scope="{row}"> |
| | | <span style="color: #F95601;">{{row.loseEfficacyDays}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | min-width="150" |
| | | min-width="100" |
| | | label="æä½"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaInsuranceApply.open('ç»ä¿', { id: row.id, type: 1 })">ä¸ä»¶ç»ä¿</el-button> |
| | | <el-button type="text" @click="dele(row)">å 餿é</el-button> |
| | | <!-- <el-button type="text" @click="dele(row)">å 餿é</el-button>--> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | capacity: 10, |
| | | page: this.currentPage, |
| | | model: { |
| | | loseEfficacy: 1 |
| | | loseEfficacy: 1, |
| | | status: 5 |
| | | } |
| | | }).then(res => { |
| | | this.tableData = res.records |
| | | this.total = res.total |
| | | }) |
| | | }, |
| | | dele(row) { |
| | | this.$confirm('ç¡®å®å
³éæ¤æç¤ºå?', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | |
| | | }).catch(() => { |
| | | |
| | | }); |
| | | console.log(row) |
| | | }, |
| | | successEvent(){ |
| | | this.$emit('success') |
| | |
| | | <AppHeader/> |
| | | </header> |
| | | <div style="height:10px;"></div> |
| | | <main> |
| | | <main ref="containerS"> |
| | | <transition name="fade"> |
| | | <!-- <keep-alive>--> |
| | | <router-view></router-view> |
| | |
| | | import Header from '@/components/common/Header' |
| | | import CommonHeader from '@/components/common/CommonHeader' |
| | | import Menu from '@/components/common/Menu' |
| | | import Watermark from "@/utils/waterMark"; |
| | | export default { |
| | | name: 'DefaultLayout', |
| | | components: { AppHeader: Header, Menu, CommonHeader }, |
| | | data() { |
| | | return { |
| | | isFinishData: false |
| | | isFinishData: false, |
| | | orgBackground: '' |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['menuData', 'userInfo']) |
| | | }, |
| | | |
| | | mounted() { |
| | | // ä¼ä¸ç«¯ç¨æ·è®¾ç½®æ°´å° |
| | | if (this.userInfo.type === 1) { |
| | | Watermark.set(this.userInfo.company.name, this.$refs.containerS); |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | } |
| | | & > main { |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | overflow-y: auto; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 'use strict' |
| | | const watermark = {} |
| | | const setWatermark = (str, container) => { |
| | | const id = '1.23452384164.123412415' |
| | | if (container === undefined) { |
| | | return |
| | | } |
| | | |
| | | // æ¥ç页é¢ä¸ææ²¡æï¼å¦ææåå é¤ |
| | | if (document.getElementById(id) !== null) { |
| | | const childelement = document.getElementById(id) |
| | | childelement.parentNode.removeChild(childelement) |
| | | } |
| | | var containerWidth = container.offsetWidth // è·åç¶å®¹å¨å®½ |
| | | var containerHeight = container.offsetHeight // è·åç¶å®¹å¨é« |
| | | container.style.position = 'relative' // 设置å¸å±ä¸ºç¸å¯¹å¸å± |
| | | // å建canvaså
ç´ (å
å¶ä½ä¸åèæ¯å¾) |
| | | const can = document.createElement('canvas') |
| | | can.width = 300 // 设置æ¯ä¸åç宽度 |
| | | can.height = 260 // é«åº¦ |
| | | const cans = can.getContext('2d') // è·åcanvasç»å¸ |
| | | cans.rotate(-20 * Math.PI / 180) // éæ¶éæè½¬Ï/9 |
| | | cans.font = '24px Vedana' // 设置åä½ |
| | | cans.fillStyle = 'rgba(0, 0, 0, 0.1)' // 设置åä½çé¢è² |
| | | cans.textAlign = 'left' // ææ¬å¯¹é½æ¹å¼ |
| | | cans.textBaseline = 'Middle' // ææ¬åºçº¿ |
| | | cans.fillText(str, 0, 4 * can.height / 5) // ç»å¶æå |
| | | // å建ä¸ä¸ªdivå
ç´ |
| | | const div = document.createElement('div') |
| | | div.id = id // 设置id |
| | | div.style.pointerEvents = 'none' // åæ¶ææäºä»¶ |
| | | div.style.top = '0px' |
| | | div.style.left = '0px' |
| | | div.style.position = 'absolute' |
| | | div.style.zIndex = '100000' |
| | | div.style.width = '100%' |
| | | // div.style.width = containerWidth + 'px' |
| | | div.style.height = containerHeight + 'px' |
| | | div.style.background = 'url(' + can.toDataURL('image/png') + ') left top repeat' |
| | | container.appendChild(div) // 追å å°é¡µé¢ |
| | | return id |
| | | } |
| | | // è¯¥æ¹æ³åªå
许è°ç¨ä¸æ¬¡ |
| | | watermark.set = (str, container) => { |
| | | let id = setWatermark(str, container) |
| | | setInterval(() => { |
| | | if (document.getElementById(id) === null) { |
| | | id = setWatermark(str, container) |
| | | } |
| | | }, 500) |
| | | // çå¬é¡µé¢å¤§å°çåå |
| | | window.onresize = () => { |
| | | setWatermark(str, container) |
| | | } |
| | | } |
| | | export default watermark |
| | |
| | | <el-select v-model="searchForm.companyId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in companyList" |
| | | :key="item.baseId" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.baseId"> |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | </el-switch> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createDate" label="æ¹æ¡æ¥æ" min-width="100px"></el-table-column> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:solutions:update', 'business:solutions:delete'])" |
| | | label="æä½" |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="solutionsName" label="ä¿é©æ¹æ¡"></el-table-column> |
| | | <el-table-column prop="insureNum" label="æä¿äººæ°"></el-table-column> |
| | | <el-table-column prop="serviceDays" label="æä¿æ¶é¿ï¼å¤©ï¼"></el-table-column> |
| | | <el-table-column label="æä¿æ¶é¿ï¼å¤©ï¼"> |
| | | <template slot-scope="{row}"> |
| | | <span>{{(row.serviceDays - row.loseEfficacyDays) < 0 ? `-` : row.serviceDays - row.loseEfficacyDays}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="fee" label="æ»è´¹ç¨ï¼å
ï¼"></el-table-column> |
| | | <el-table-column prop="checkDate" label="æäº¤æ¥æ"></el-table-column> |
| | | <el-table-column prop="startTime" label="æä¿çææ¥æ"></el-table-column> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="insureNum" label="æä¿äººæ°"></el-table-column> |
| | | <el-table-column prop="serviceDays" label="æä¿æ¶é¿ï¼å¤©ï¼"></el-table-column> |
| | | <el-table-column label="æä¿æ¶é¿ï¼å¤©ï¼"> |
| | | <template slot-scope="{row}"> |
| | | <span>{{(row.serviceDays - row.loseEfficacyDays) < 0 ? `-` : row.serviceDays - row.loseEfficacyDays}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="currentFee" label="已产çè´¹ç¨"></el-table-column> |
| | | <el-table-column prop="fee" label="æ»è´¹ç¨ï¼å
ï¼"></el-table-column> |
| | | <el-table-column prop="checkDate" label="æäº¤æ¥æ"></el-table-column> |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaInsuranceApplyDetails.open('æä¿è¯¦æ
', { id: row.id })" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | <template v-if="row.statusCollect === 2"> |
| | | <el-button type="text" @click="$refs.additionSubtractionApplication.open('å åä¿ç³è¯·', { id: row.id })">å åä¿ç³è¯·</el-button> |
| | | </template> |
| | | <!-- <template v-if="row.statusCollect === 2">--> |
| | | <!-- <el-button type="text" @click="$refs.additionSubtractionApplication.open('å åä¿ç³è¯·', { id: row.id })">å åä¿ç³è¯·</el-button>--> |
| | | <!-- </template>--> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | // const outputDir = process.env.VUE_APP_CONTEXT_PATH.substring(1, process.env.VUE_APP_CONTEXT_PATH.length) |
| | | module.exports = { |
| | | publicPath: './', |
| | | outputDir: 'yyb_admin', |
| | | outputDir: 'yyb_web', |
| | | assetsDir: 'static', |
| | | lintOnSave: false, |
| | | devServer: { |
| | |
| | | <AppHeader/> |
| | | </header> |
| | | <div style="height:10px;"></div> |
| | | <main> |
| | | <main ref="containerS"> |
| | | <transition name="fade"> |
| | | <!-- <keep-alive>--> |
| | | <router-view></router-view> |
| | |
| | | import Header from '@/components/common/Header' |
| | | import CommonHeader from '@/components/common/CommonHeader' |
| | | import Menu from '@/components/common/Menu' |
| | | import Watermark from "@/utils/waterMark"; |
| | | export default { |
| | | name: 'DefaultLayout', |
| | | components: { AppHeader: Header, Menu, CommonHeader }, |
| | | data() { |
| | | return { |
| | | isFinishData: false |
| | | isFinishData: false, |
| | | orgBackground: '' |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['menuData', 'userInfo']) |
| | | }, |
| | | |
| | | mounted() { |
| | | // ä¼ä¸ç«¯ç¨æ·è®¾ç½®æ°´å° |
| | | if (this.userInfo.type === 1) { |
| | | Watermark.set(this.userInfo.company.name, this.$refs.containerS); |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | } |
| | | & > main { |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | overflow-y: auto; |
| | | } |
| | | } |