| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- <template>
- <a-modal
- :title="title"
- :width="modelStyle.width"
- :bodyStyle="bodyStyle"
- :visible="visible"
- :confirmLoading="confirmLoading"
- :maskClosable="false"
- @ok="handleOk"
- @cancel="handleCancel"
- cancelText="关闭">
- <a-card :bordered="false">
- <!-- table区域-begin -->
- <div>
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :columns="columns"
- :dataSource="dataSource"
- :pagination="ipagination"
- :loading="loading"
- @change="handleTableChange">
- <span slot="action1" slot-scope="text, record">
- <a @click="viewTaxPayment(record)" >查看</a>
- </span>
- <span slot="action" slot-scope="text, record">
- <a @click="viewTaxPaymentDetail(record)" >业务明细</a>
- </span>
- </a-table>
- </div>
- <hw-picture-modal ref="hwViewPictureForm" @ok="modalFormOk"></hw-picture-modal>
- <hw-tax-payment-details-list ref="hwTaxPaymentDetailForm" @ok="modalFormOk"></hw-tax-payment-details-list>
- </a-card>
- </a-modal>
- </template>
- <script>
- import { JeecgListMixin } from '@/mixins/JeecgListMixin'
- import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
- import HwPictureModal from '../tools/HwPictureModal'
- import HwTaxPaymentDetailsList from './HwTaxPaymentDetailsList'
- export default {
- name: 'HwTaxPaymentList',
- mixins: [JeecgListMixin],
- components: {
- HwTaxPaymentDetailsList,
- HwPictureModal
- },
- data() {
- return {
- description: 'hw_enrollment管理页面',
- headers: {},
- fileList: [],
- form: this.$form.createForm(this),
- title: '操作',
- bodyStyle: {
- padding: '0',
- height: (window.innerHeight * 0.66) + 'px',
- 'overflow-y': 'auto'
- },
- modelStyle: {
- width: '80%',
- style: { top: '20px' },
- fullScreen: false
- },
- visible: false,
- model: {},
- labelCol: {
- xs: { span: 24 },
- sm: { span: 5 }
- },
- wrapperCol: {
- xs: { span: 24 },
- sm: { span: 16 }
- },
- accept: '.pdf',
- confirmLoading: false,
- validatorRules: {},
- // 表头
- columns: [
- {
- title: '完税时间',
- align: 'center',
- dataIndex: 'uploadTime'
- },
- {
- title: '收入金额(不含税)',
- align: 'center',
- dataIndex: 'sumNetPayment'
- },
- {
- title: '纳税金额',
- align: 'center',
- dataIndex: 'sumTaxFee'
- },
- {
- title: '完税记录',
- align: 'center',
- dataIndex: 'taxPaymentReceipt',
- scopedSlots: { customRender: 'action1' }
- },
- {
- title: '发票号',
- align: 'center',
- dataIndex: 'receiptNumber'
- },
- {
- title: '操作',
- dataIndex: 'action',
- align: 'center',
- scopedSlots: { customRender: 'action' }
- }
- ],
- url: {
- list: '/hwsupervise/hwTaxPayment/list',
- imgerver: window._CONFIG['imgDomainOssURL']
- },
- dictOptions: {}
- }
- },
- computed: {},
- methods: {
- close() {
- this.visible = false
- },
- edit(record) {
- this.form.resetFields()
- this.model = Object.assign({}, record);
- this.visible = true
- this.loadData(this.model.id,this.model.paymentResultTime_begin,this.model.paymentResultTime_end)
- },
- handleOk() {
- this.close()
- this.visible = false
- },
- handleCancel() {
- this.close()
- },
- loadData(userId,paymentResultTime_begin,paymentResultTime_end) {
- if (!this.url.list) {
- this.$message.error('请设置url.list属性!')
- return
- }
- var params ={}//查询条件
- params.userId = userId
- params.paymentResultTime_begin=paymentResultTime_begin
- params.paymentResultTime_end=paymentResultTime_end
- this.loading = true
- getAction(this.url.list, params).then((res) => {
- if (res.success) {
- this.dataSource = res.result.records
- this.ipagination.total = res.result.total
- }
- if (res.code === 510) {
- this.$message.warning(res.message)
- }
- this.loading = false
- })
- },
- viewTaxPayment(record){
- var taxPaymentReceipt=record.taxPaymentReceipt;
- console.log(1111,taxPaymentReceipt)
- var idcard = [];
- if(taxPaymentReceipt){
- if( taxPaymentReceipt.indexOf("http")!=-1){
- idcard.push(taxPaymentReceipt)
- }else{
- idcard.push(this.url.imgerver +taxPaymentReceipt)
- }
- this.$refs.hwViewPictureForm.edit(idcard);
- this.$refs.hwViewPictureForm.title = '完税凭证'
- this.$refs.hwViewPictureForm.disableSubmit = false
- }else{
- this.$message.warning('未上传')
- }
- },
- viewTaxPaymentDetail(record){
- this.$refs.hwTaxPaymentDetailForm.edit(record.id,this.model.id);
- this.$refs.hwTaxPaymentDetailForm.title = '业务明细'
- this.$refs.hwTaxPaymentDetailForm.disableSubmit = false
- }
- }
- }
- </script>
- <style scoped>
- @import '~@assets/less/common.less';
- </style>
- <style lang="scss" scoped>
- </style>
|