|
@@ -0,0 +1,328 @@
|
|
|
+<template>
|
|
|
+ <a-card :bordered="false" class="u-dialog-card">
|
|
|
+ <!-- 操作按钮区域 -->
|
|
|
+ <!-- <div class="table-operator">
|
|
|
+ <a-button type="primary" icon="download" @click="handleExport">导出</a-button>
|
|
|
+ </div> -->
|
|
|
+ <!-- 时间范围选择 -->
|
|
|
+ <div style="float: right;margin-top: -25px;">
|
|
|
+ <div>总金额:{{ (Number(totalAmount)/10000).toFixed(2) + '万元' }}</div>
|
|
|
+ </div>
|
|
|
+ <!-- table区域-begin -->
|
|
|
+ <div style="margin-top: 8px;">
|
|
|
+ <a-table
|
|
|
+ ref="table"
|
|
|
+ size="middle"
|
|
|
+ :scroll="{x:true}"
|
|
|
+ bordered
|
|
|
+ rowKey="id"
|
|
|
+ :columns="columns"
|
|
|
+ :dataSource="dataSource"
|
|
|
+ :pagination="ipagination"
|
|
|
+ :loading="loading"
|
|
|
+ class="j-table-force-nowrap"
|
|
|
+ @change="handleTableChange">
|
|
|
+ </a-table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </a-card>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+ import '@/assets/less/TableExpand.less'
|
|
|
+ import { mixinDevice } from '@/utils/mixin'
|
|
|
+ import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
+ import { getAction } from '@/api/manage'
|
|
|
+
|
|
|
+ export default {
|
|
|
+ name: 'ContractDetailList',
|
|
|
+ mixins:[JeecgListMixin, mixinDevice],
|
|
|
+ props: {
|
|
|
+ taskno: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
+ // dateRange: {
|
|
|
+ // type: Array,
|
|
|
+ // default: function(){
|
|
|
+ // return []
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ description: '合同信息存储表管理页面',
|
|
|
+ // 表头
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ dataIndex: '',
|
|
|
+ key:'rowIndex',
|
|
|
+ width:60,
|
|
|
+ align:"center",
|
|
|
+ customRender:function (t,r,index) {
|
|
|
+ return parseInt(index)+1;
|
|
|
+ },
|
|
|
+ fixed: 'left',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'任务编号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'rwbh',
|
|
|
+ width: 120,
|
|
|
+ fixed: 'left',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'任务名称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'rwname',
|
|
|
+ width: 120,
|
|
|
+ fixed: 'left',
|
|
|
+ },
|
|
|
+ // 所属型号
|
|
|
+ {
|
|
|
+ title:'收款单号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'skdh'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'执行状态',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'zxzt'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'付款方名称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'fkfmc'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'用户简称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'yhjc'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'合同编号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'htbh'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'合同名称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'htname'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'合同类型',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'httype'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'型号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'xh'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'阶段',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'jd'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'数量',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'sl'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'部门',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'bm'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'到款日期', // /汇票到期日期
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'dkhpdqrq',
|
|
|
+ customRender:function (text) {
|
|
|
+ return !text?"":(text.length>10?text.substr(0,10):text)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'收款类型',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'sktype'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'收款科目代码',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'skkmdm'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'凭证号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'pzh'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'业务员',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'ywy'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'业务部门',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'ywbm'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'录入人', // 、申请人
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'lrr'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'录入日期', // 起草日期、 、申请日期
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'lrrq',
|
|
|
+ customRender:function (text) {
|
|
|
+ return !text?"":(text.length>10?text.substr(0,10):text)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'交易流水号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'jylsh'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'交易ID',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'jyid'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'汇票号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'hph'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'汇票ID',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'hpid'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'收款单位',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'skdw'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'收款总金额(元)', // 金额(元)、 、开票金额
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'skzje',
|
|
|
+ width: 120,
|
|
|
+ fixed: 'right',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title:'任务收款金额(元)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'rwskje',
|
|
|
+ width: 120,
|
|
|
+ fixed: 'right',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ url: {
|
|
|
+ list: "/comContractInfoExchangeNew/comContractInfoExchangeNew/getNewCrmYskDetailByTasknoYs",
|
|
|
+ totalAmount: '/comContractInfoExchangeNew/comContractInfoExchangeNew/getNewCrmSumYskByTasknoYs',
|
|
|
+ exportXlsUrl: '',
|
|
|
+ // exportXlsUrl: "/comContractInfoExchangeNew/comContractInfoExchangeNew/exportNewYskDetail",
|
|
|
+ },
|
|
|
+ dictOptions:{},
|
|
|
+ totalAmount: '',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ dateRange() {
|
|
|
+ return this.$store.getters.pcDateRange
|
|
|
+ },
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ dateRange: {
|
|
|
+ handler(newValue, oldValue){
|
|
|
+ console.log(newValue, oldValue)
|
|
|
+ this.loadData()
|
|
|
+ this.getTotalAmount()
|
|
|
+ },
|
|
|
+ deep: true,
|
|
|
+ immediate: true,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ loadData(arg) {
|
|
|
+ //加载数据 若传入参数1则加载第一页的内容
|
|
|
+ if (arg === 1) {
|
|
|
+ this.ipagination.current = 1;
|
|
|
+ }
|
|
|
+ // var params = this.getQueryParams();//查询条件
|
|
|
+ var params = this.queryParam
|
|
|
+ params.field = this.getQueryField();
|
|
|
+ params.pageNo = this.ipagination.current;
|
|
|
+ params.pageSize = this.ipagination.pageSize;
|
|
|
+ params.taskno = this.taskno;
|
|
|
+ params.beginDate = this.dateRange[0];
|
|
|
+ params.endDate = this.dateRange[1];
|
|
|
+ this.loading = true;
|
|
|
+ getAction(this.url.list, params).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ this.dataSource = res.result.records||res.result;
|
|
|
+ if(res.result.total)
|
|
|
+ {
|
|
|
+ this.ipagination.total = res.result.total;
|
|
|
+ }else{
|
|
|
+ this.ipagination.total = 0;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getTotalAmount(){
|
|
|
+ this.loading = true
|
|
|
+ var params = {
|
|
|
+ beginDate: this.dateRange[0],
|
|
|
+ endDate: this.dateRange[1],
|
|
|
+ taskno: this.taskno,
|
|
|
+ }
|
|
|
+ getAction(this.url.totalAmount, params).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.totalAmount = res.result
|
|
|
+ }else{
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 日期范围选择
|
|
|
+ onChange(date, dateString) {
|
|
|
+ console.log(date, dateString);
|
|
|
+ this.queryParam.beginDate = dateString[0]
|
|
|
+ this.queryParam.endDate = dateString[1]
|
|
|
+ this.loadData()
|
|
|
+ this.getTotalAmount()
|
|
|
+ },
|
|
|
+ // handleExport(){
|
|
|
+ // this.url.exportXlsUrl = this.cengji === 2 ? '/comContractInfoExchangeNew/comContractInfoExchangeNew/exportNewYskDetail' : '/comContractInfoExchangeNew/comContractInfoExchangeNew/exportNewYskDetailByTasknos'
|
|
|
+ // this.handleExportXls('已收款明细')
|
|
|
+ // // this.handleExportXls(taskno+'已收款明细')
|
|
|
+ // },
|
|
|
+ initDictConfig(){
|
|
|
+ },
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+<style scoped>
|
|
|
+ @import '~@assets/less/common.less';
|
|
|
+</style>
|
|
|
+<style lang="less" scoped>
|
|
|
+ .u-dialog-card{
|
|
|
+ /deep/.ant-card-body{
|
|
|
+ padding: 0 !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|