| | |
| | | <el-form-item label="保险方案" prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请输入" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="签署状态" prop="signStatus"> |
| | | <el-select v-model="searchForm.signStatus" placeholder="请选择"> |
| | | <el-option label="待签署" :value="0"></el-option> |
| | | <el-option label="已签署" :value="1"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | | <el-button @click="reset">重置</el-button> |
| | |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="子方案名称" min-width="150px"></el-table-column> |
| | | <el-table-column prop="solutionBaseName" label="主方案" min-width="100px"></el-table-column> |
| | | <el-table-column prop="name" label="子方案名称" min-width="150px" v-if="userInfo.type === 0"></el-table-column> |
| | | <el-table-column prop="name" label="方案名称" min-width="150px" v-if="userInfo.type === 1"></el-table-column> |
| | | <el-table-column prop="solutionBaseName" label="主方案" min-width="100px" v-if="userInfo.type === 0"></el-table-column> |
| | | <el-table-column label="投保类型" min-width="120px" align="center"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.type === 0">直保</span> |
| | |
| | | <span v-if="row.timeUnit === 5">年</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="retrial" label="需要复审"> |
| | | <el-table-column prop="retrial" label="需要复审" v-if="userInfo.type === 0"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.retrial === 0">不需要</span> |
| | | <span v-if="row.retrial === 1">需要</span> |
| | |
| | | <el-table-column prop="status" label="启用状态" min-width="100px" v-if="userInfo.type !== 1"> |
| | | <template slot-scope="{row}"> |
| | | <el-switch |
| | | @change="changeStatus($event, row)" |
| | | v-model="row.status" |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949" |
| | | :active-value="0" |
| | | :inactive-value="1"> |
| | | @change="changeStatus($event, row)" |
| | | v-model="row.status" |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949" |
| | | :active-value="0" |
| | | :inactive-value="1"> |
| | | </el-switch> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="signDate" label="签署时间" min-width="100px"></el-table-column> |
| | | <el-table-column prop="signUserName" label="签署人" min-width="100px"></el-table-column> |
| | | <el-table-column label="签署状态" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.signStatus === 0">待签章</span> |
| | | <span v-else-if="!row.signStatus">待签章</span> |
| | | <span v-else-if="row.signStatus === 1">已签章</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | v-if="containPermissions(['business:solutions:update', 'business:solutions:delete'])" |
| | | label="操作" |
| | | min-width="150" |
| | | min-width="230" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaSolutionsDescWindow.open('子方案详情', { id: row.id })" icon="el-icon-edit" v-permissions="['business:solutions:update']">查看详情</el-button> |
| | | <template v-if="userInfo.type !== 1"> |
| | | <el-button type="text" @click="$refs.operaSolutionsWindow.open('编辑子方案', { id: row.id })" icon="el-icon-edit" v-permissions="['business:solutions:update']">修改</el-button> |
| | | </template> |
| | | <template v-if="userInfo.type === 1 && (!row.signStatus || row.signStatus === 0)"> |
| | | <el-button type="text" icon="el-icon-tickets" @click="sign(row.companySolutionId)">签署</el-button> |
| | | </template> |
| | | <template v-if="userInfo.type === 1 && row.signStatus === 1"> |
| | | <el-button type="text" icon="el-icon-tickets" @click="seeFleSignUrl(row.fileSignUrl)">查看方案确认书</el-button> |
| | | </template> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | import OperaSolutionsWindow from '@/components/business/OperaSolutionsWindow' |
| | | import OperaSolutionsDescWindow from '@/components/business/OperaSolutionsDescWindow' |
| | | import { updateStatus } from '@/api/business/solutions' |
| | | import { getSignLink } from '@/api/business/company' |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | name: 'Solutions', |
| | |
| | | searchForm: { |
| | | name: '', |
| | | status: '', |
| | | type: '' |
| | | type: '', |
| | | signStatus: '' |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | seeFleSignUrl(url) { |
| | | window.open(url) |
| | | }, |
| | | sign(id) { |
| | | getSignLink(id) |
| | | .then(res => { |
| | | window.open(res) |
| | | }) |
| | | }, |
| | | // 修改状态 |
| | | changeStatus (status, row) { |
| | | updateStatus({ id: row.id, status }) |