218 lines
7.3 KiB
Vue
218 lines
7.3 KiB
Vue
<template>
|
|
<a-card :bordered="false">
|
|
<!-- 查询区域-start -->
|
|
<div class="table-page-search-wrapper">
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
<a-row>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="来款项目" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<a-input placeholder="请输入来款项目" v-model="queryParam.chargeProject"></a-input>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="来款单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<a-input placeholder="请输入来款单位" v-model="queryParam.chargeCompanyName"></a-input>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="负责人" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<select-principal placeholder="请选择负责人" v-model="queryParam.principalId"></select-principal>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="来款用途" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<j-dict-select-tag v-model="queryParam.chargeUse" placeholder="请选择来款用途" dictCode="payment_charge_use"/>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="联系人" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<a-input placeholder="请输入来款项目" v-model="queryParam.businessName"></a-input>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="来款年份" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<j-year-date style="width:100%" placeholder="请选择来款年份" v-model="queryParam.paymentDate"></j-year-date>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<a-form-item label="运行年份" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
<j-year-date style="width:100%" placeholder="请选择运行年份" v-model="queryParam.year"></j-year-date>
|
|
</a-form-item>
|
|
</a-col>
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
<span class="table-page-search-submitButtons">
|
|
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
|
<a-button icon="reload" @click="searchReset">重置</a-button>
|
|
</span>
|
|
</a-col>
|
|
</a-row>
|
|
</a-form>
|
|
</div>
|
|
<!-- 查询区域-end-->
|
|
|
|
<!-- 操作按钮区域-->
|
|
<div class="table-operator">
|
|
<a-button type="primary" icon="plus" @click="handleAdd">新增</a-button>
|
|
<a-button type="danger" icon="delete" @click="batchDel">批量删除</a-button>
|
|
</div>
|
|
<!-- 操作按钮区域-end-->
|
|
|
|
<!-- table表格区域-->
|
|
<div>
|
|
<a-table
|
|
ref="table"
|
|
size="middle"
|
|
bordered
|
|
rowKey="id"
|
|
:columns="columns"
|
|
:scroll="{x: 1000}"
|
|
:dataSource="dataSource"
|
|
:pagination="ipagination"
|
|
:loading="loading"
|
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
|
@change="handleTableChange"
|
|
class="j-table-force-nowrap">
|
|
|
|
<template slot="text" slot-scope="text,record">
|
|
<j-ellipsis :value="text" :length="18"></j-ellipsis>
|
|
</template>
|
|
|
|
<!-- 打包、需要发票、到账、开票、邮寄状态-->
|
|
<template slot="icon" slot-scope="text,record">
|
|
<!-- <img v-if="text === 1">-->
|
|
<!-- <img v-if="text === 2">-->
|
|
</template>
|
|
|
|
<span slot="action" class="action-span-cell" slot-scope="text, record">
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
<a @click="handleDelete(record.id)">删除</a>
|
|
</span>
|
|
</a-table>
|
|
</div>
|
|
<general-project-module ref="modalForm" @ok="modalFormOk"></general-project-module>
|
|
</a-card>
|
|
</template>
|
|
|
|
<script>
|
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
|
import JYearDate from '@comp/jero/JYearDate'
|
|
import GeneralProjectModule from './modules/GeneralProjectModule'
|
|
import SelectPrincipal from '@comp/company/SelectPrincipal'
|
|
|
|
export default {
|
|
name: 'GeneralProjectManagement',
|
|
components: { JYearDate, GeneralProjectModule, SelectPrincipal },
|
|
mixins: [JeroListMixin],
|
|
computed: {
|
|
importExcelUrl: function(){
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
labelCol: {
|
|
xs: { span: 24 },
|
|
sm: { span: 5 }
|
|
},
|
|
wrapperCol: {
|
|
xs: { span: 24 },
|
|
sm: { span: 10 }
|
|
},
|
|
columns: [
|
|
{
|
|
title: '序号',
|
|
dataIndex: '',
|
|
key: 'rowIndex',
|
|
width: 60,
|
|
align: 'center',
|
|
customRender: function (t, r, index) {
|
|
return parseInt(index) + 1
|
|
}
|
|
}, {
|
|
title: '来款项目',
|
|
align: 'center',
|
|
width: 200,
|
|
dataIndex: 'chargeProject',
|
|
scopedSlots: { customRender: 'text' }
|
|
}, {
|
|
title: '来款用途',
|
|
align: 'center',
|
|
width: 180,
|
|
dataIndex: 'chargeUse',
|
|
scopedSlots: { customRender: 'text' }
|
|
}, {
|
|
title: '来款单位',
|
|
align: 'center',
|
|
width: 200,
|
|
dataIndex: 'chargeCompanyName',
|
|
scopedSlots: { customRender: 'text' }
|
|
}, {
|
|
title: '应收金额',
|
|
align: 'center',
|
|
width: 100,
|
|
dataIndex: 'receivableAmount'
|
|
}, {
|
|
title: '实收金额',
|
|
align: 'center',
|
|
width: 100,
|
|
dataIndex: 'paidAmount'
|
|
}, {
|
|
title: '负责人',
|
|
align: 'center',
|
|
width: 140,
|
|
dataIndex: 'principalName',
|
|
scopedSlots: { customRender: 'text' }
|
|
}, {
|
|
title: '企业联系人',
|
|
align: 'center',
|
|
width: 140,
|
|
dataIndex: 'contactsName',
|
|
scopedSlots: { customRender: 'text' }
|
|
}, {
|
|
title: '打包',
|
|
align: 'center',
|
|
width: 80,
|
|
dataIndex: 'packaging'
|
|
}, {
|
|
title: '需要发票',
|
|
align: 'center',
|
|
width: 80,
|
|
dataIndex: 'invoice',
|
|
// scopedSlots: { customRender: 'icon' }
|
|
}, {
|
|
title: '到账',
|
|
align: 'center',
|
|
width: 80,
|
|
dataIndex: 'inAccount'
|
|
}, {
|
|
title: '开票',
|
|
align: 'center',
|
|
width: 80,
|
|
dataIndex: 'makeInvoice'
|
|
}, {
|
|
title: '邮寄',
|
|
align: 'center',
|
|
width: 80,
|
|
dataIndex: 'mail'
|
|
}, {
|
|
title: '操作',
|
|
dataIndex: 'action',
|
|
align: 'center',
|
|
fixed: 'right',
|
|
width: 160,
|
|
scopedSlots: { customRender: 'action' }
|
|
}
|
|
],
|
|
url: {
|
|
list: '/project/payCommonProject/list',
|
|
delete: '/project/payCommonProject/delete',
|
|
deleteBatch: '/project/payCommonProject/deleteBatch'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
@import '~@assets/less/common.less';
|
|
</style> |