<template>
|
<GlobalWindow
|
:title="title"
|
width="100%"
|
:visible.sync="visible"
|
:confirm-working="isWorking"
|
@confirm="confirm"
|
>
|
<div style="width: 100%; display: flex; align-items: center; margin-bottom: 20px;">
|
保险方案:{{form.solutionsName}} <div style="width: 20px;"></div> 保单号:{{form.code || '-'}}
|
</div>
|
<el-table
|
:data="list"
|
border
|
ref="table"
|
style="width: 100%">
|
<el-table-column label="序号" width="80px">
|
<template slot-scope="scope">
|
<span>{{scope.$index + 1}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="solutionName"
|
label="申请开票时间">
|
</el-table-column>
|
<el-table-column
|
prop="bdCode"
|
label="开票状态">
|
</el-table-column>
|
<el-table-column
|
prop="applyChangeId"
|
label="开票金额(元)">
|
</el-table-column>
|
<el-table-column
|
prop="duName"
|
label="接收方式">
|
</el-table-column>
|
<el-table-column
|
label="操作">
|
<template slot-scope="{row}">
|
<el-button type="text">申请详情</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
</GlobalWindow>
|
</template>
|
|
<script>
|
import BaseOpera from '@/components/base/BaseOpera'
|
import GlobalWindow from '@/components/common/GlobalWindow'
|
import { list } from '@/api/business/taxes'
|
export default {
|
name: 'entrustmentHistory',
|
extends: BaseOpera,
|
components: { GlobalWindow },
|
data () {
|
return {
|
form: {
|
id: null,
|
solutionsName: '',
|
code: ''
|
},
|
list: []
|
}
|
},
|
created () {
|
this.config({
|
api: '/business/dispatchUnit',
|
'field.id': 'id'
|
})
|
},
|
methods: {
|
open (title, target) {
|
this.title = title
|
this.visible = true
|
// 编辑
|
this.$nextTick(() => {
|
for (const key in this.form) {
|
this.form[key] = target[key]
|
}
|
this.getList()
|
})
|
},
|
getList() {
|
list({ insuranceApplyId: this.form.id })
|
.then(res => {
|
console.log(res)
|
this.list = res
|
})
|
}
|
}
|
}
|
</script>
|