¶Ô±ÈÐÂÎļþ |
| | |
| | | <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=""></el-option> |
| | | <el-option label="å¾
ç¾ç½²" value="1"></el-option> |
| | | <el-option label="å¾
åºå" value="2"></el-option> |
| | | <el-option label="å·²çæ" value="3"></el-option> |
| | | <el-option label="å·²éå" value="4"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©æ¹æ¡" prop="solutionName"> |
| | | <el-input v-model="searchForm.solutionName" placeholder="请è¾å
¥" @keypress.enter.native="search"></el-input> |
| | | </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> |
| | | <ul class="toolbar" v-permissions="['business:insurance:create']"> |
| | | <li><el-button type="primary" @click="$refs.add_subtract_entrust.open('å åä¿ç³è¯·')" v-permissions="['business:insurance:create']">æäº¤ç³è¯·</el-button></li> |
| | | </ul> |
| | | <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 :class="'change-status'+row.status" v-if="row.status === 1">å¾
ç¾ç½²</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 2">å¾
åºå</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 3">å·²çæ</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status === 4">å·²éå</span> |
| | | </template> |
| | | </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="changeNum" 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> |
| | | <!-- æäº¤ç³è¯· --> |
| | | <add_subtract_entrust ref="add_subtract_entrust" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import add_subtract_entrust from '@/components/business/add_subtract_entrust' |
| | | export default { |
| | | name: 'unionChangeUnit', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, add_subtract_entrust }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | status: '', |
| | | type: '0', |
| | | solutionName: '', |
| | | queryStartTime: '', |
| | | queryEndTime: '', |
| | | time: [] |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'å åä¿æ¢ååå¹¶åä¿¡æ¯è¡¨', |
| | | api: '/business/unionChange', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | changeTime(e) { |
| | | if (e.length > 0) { |
| | | this.searchForm.queryStartTime = e[0] |
| | | this.searchForm.queryEndTime = e[1] |
| | | } else { |
| | | this.searchForm.queryStartTime = '' |
| | | this.searchForm.queryEndTime = '' |
| | | } |
| | | this.search() |
| | | }, |
| | | reset() { |
| | | this.searchForm.queryStartTime = '' |
| | | this.searchForm.queryEndTime = '' |
| | | this.searchForm.time = [] |
| | | this.$refs.searchForm.resetFields(); |
| | | this.search() |
| | | } |
| | | } |
| | | } |
| | | </script> |