给报表增加列的显示和隐藏功能
This commit is contained in:
parent
bd697ce3d9
commit
9926cc18e1
@ -46,9 +46,35 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="showAccountInOutList(record)">{{record.id?'流水':''}}</a>
|
||||
</span>
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="showAccountInOutList(record)">{{record.id?'流水':''}}</a>
|
||||
</span>
|
||||
</a-table>
|
||||
<a-row :gutter="24" style="margin-top: 8px;text-align:right;">
|
||||
<a-col :md="24" :sm="24">
|
||||
@ -107,10 +133,13 @@
|
||||
allMonthAmount: '',
|
||||
allCurrentAmount: '',
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'accountReport',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','action','name','serialNo','initialAmount','thisMonthAmount','currentAmount'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:60, align:"center",
|
||||
dataIndex: 'rowIndex', width:60, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -132,6 +161,7 @@
|
||||
},
|
||||
created () {
|
||||
this.getAccountStatistics()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
getQueryParams() {
|
||||
|
||||
@ -107,6 +107,32 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
<span slot="numberCustomRender" slot-scope="text, record">
|
||||
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
||||
</span>
|
||||
@ -185,10 +211,13 @@
|
||||
operNumberTotalStr: '0',
|
||||
allPriceTotalStr: '0',
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'allocationDetail',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','number','barCode','mname','standard','model','mUnit','operNumber','unitPrice','allPrice','dname','sname','operTime','newRemark'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
dataIndex: 'rowIndex', width:40, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -219,6 +248,7 @@
|
||||
this.getDepotData()
|
||||
this.initSupplier()
|
||||
this.loadAllOrgaData()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
moment,
|
||||
|
||||
@ -89,6 +89,32 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
</a-table>
|
||||
<a-row :gutter="24" style="margin-top: 8px;text-align:right;">
|
||||
<a-col :md="24" :sm="24">
|
||||
@ -155,10 +181,14 @@
|
||||
orgaTree: [],
|
||||
realityPriceTotal: '',
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'buyInReport',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','barCode','materialName','materialStandard','materialModel','materialOther','materialUnit',
|
||||
'inSum','inSumPrice','outSum','outSumPrice','inOutSumPrice'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
dataIndex: 'rowIndex', width:40, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -184,6 +214,7 @@
|
||||
this.initSupplier()
|
||||
this.getDepotData()
|
||||
this.loadAllOrgaData()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
moment,
|
||||
|
||||
@ -71,10 +71,37 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" v-if="item.dataIndex!=='allNeed'" :length="10"></j-ellipsis>
|
||||
<j-ellipsis value="期末应收" v-if="item.dataIndex==='allNeed'" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="showDebtAccountList(record)">{{record.id?'详情':''}}</a>
|
||||
</span>
|
||||
<span slot="customTitle">
|
||||
<span slot="allNeedTitle">
|
||||
期末应收
|
||||
<a-tooltip title="期末应收=期初应收+本期欠款-本期收款">
|
||||
<a-icon type="question-circle" />
|
||||
@ -147,10 +174,13 @@
|
||||
firstTotal: '',
|
||||
lastTotal: '',
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'customerAccount',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','action','supplier','contacts','telephone','phoneNum','email','preNeed','debtMoney','backMoney','allNeed'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
dataIndex: 'rowIndex', width:40, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -167,7 +197,7 @@
|
||||
{title: '本期欠款', dataIndex: 'debtMoney', sorter: (a, b) => a.debtMoney - b.debtMoney, width: 80},
|
||||
{title: '本期收款', dataIndex: 'backMoney', sorter: (a, b) => a.backMoney - b.backMoney, width: 80},
|
||||
{dataIndex: 'allNeed', sorter: (a, b) => a.allNeed - b.allNeed, width: 80,
|
||||
slots: { title: 'customTitle' }
|
||||
slots: { title: 'allNeedTitle' }
|
||||
}
|
||||
],
|
||||
url: {
|
||||
@ -177,6 +207,7 @@
|
||||
},
|
||||
created () {
|
||||
this.initSupplier()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
getQueryParams() {
|
||||
|
||||
@ -112,10 +112,10 @@
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 500px">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="8">
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
|
||||
@ -88,6 +88,32 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
</a-table>
|
||||
<a-row :gutter="24" style="margin-top: 8px;text-align:right;">
|
||||
<a-col :md="24" :sm="24">
|
||||
@ -156,10 +182,13 @@
|
||||
numSumTotalStr: '0',
|
||||
priceSumTotalStr: '0',
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'inMaterialCount',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','barCode','mName','standard','model','categoryName','materialUnit','numSum','priceSum'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
dataIndex: 'rowIndex', width:40, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -182,6 +211,7 @@
|
||||
this.getDepotData()
|
||||
this.initSupplier()
|
||||
this.loadAllOrgaData()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
moment,
|
||||
|
||||
@ -79,6 +79,32 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
<template slot="customRenderStock" slot-scope="text, record">
|
||||
<a-tooltip :title="record.bigUnitStock">
|
||||
{{text}}
|
||||
@ -152,10 +178,14 @@
|
||||
categoryTree:[],
|
||||
totalStockStr: '0',
|
||||
totalCountMoneyStr: '0',
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'inOutStockReport',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','barCode','materialName','materialStandard','materialModel','materialOther','unitName',
|
||||
'unitPrice','prevSum','inSum','outSum','thisSum','thisAllPrice'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
dataIndex: 'rowIndex', width:40, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -186,6 +216,7 @@
|
||||
this.getDepotData()
|
||||
this.loadTreeData()
|
||||
this.getTotalCountMoney()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
moment,
|
||||
|
||||
@ -81,25 +81,51 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="showMaterialInOutList(record)">{{record.id?'流水':''}}</a>
|
||||
</span>
|
||||
<template slot="customBarCode" slot-scope="text, record">
|
||||
<div :style="record.imgName?'float:left;line-height:30px':'float:left;'">{{record.mBarCode}}</div>
|
||||
<a-popover placement="right" trigger="click">
|
||||
<template slot="content">
|
||||
<img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px" />
|
||||
</template>
|
||||
<div class="item-info" v-if="record.imgName">
|
||||
<img v-if="record.imgName" :src="getImgUrl(record.imgName, record.imgSmall)" class="item-img" title="查看大图" />
|
||||
</div>
|
||||
</a-popover>
|
||||
</template>
|
||||
<template slot="customRenderStock" slot-scope="text, record">
|
||||
<a-tooltip :title="record.bigUnitStock">
|
||||
{{text}}
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="showMaterialInOutList(record)">{{record.id?'流水':''}}</a>
|
||||
</span>
|
||||
<template slot="customBarCode" slot-scope="text, record">
|
||||
<div :style="record.imgName?'float:left;line-height:30px':'float:left;'">{{record.mBarCode}}</div>
|
||||
<a-popover placement="right" trigger="click">
|
||||
<template slot="content">
|
||||
<img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px" />
|
||||
</template>
|
||||
<div class="item-info" v-if="record.imgName">
|
||||
<img v-if="record.imgName" :src="getImgUrl(record.imgName, record.imgSmall)" class="item-img" title="查看大图" />
|
||||
</div>
|
||||
</a-popover>
|
||||
</template>
|
||||
<template slot="customRenderStock" slot-scope="text, record">
|
||||
<a-tooltip :title="record.bigUnitStock">
|
||||
{{text}}
|
||||
</a-tooltip>
|
||||
</template>
|
||||
</a-table>
|
||||
<a-row :gutter="24" style="margin-top: 8px;text-align:right;">
|
||||
<a-col :md="24" :sm="24">
|
||||
@ -168,10 +194,14 @@
|
||||
currentStock: '',
|
||||
currentStockPrice: '',
|
||||
currentWeight: '',
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'materialStock',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','action','mBarCode','name','standard','model','color','categoryName', 'position','unitName',
|
||||
'purchaseDecimal','initialStock','currentStock','currentStockPrice','currentWeight'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
dataIndex: 'rowIndex', width:40, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -205,6 +235,7 @@
|
||||
created() {
|
||||
this.getDepotData()
|
||||
this.loadTreeData()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
moment,
|
||||
|
||||
@ -112,10 +112,10 @@
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 500px">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="8">
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
|
||||
@ -88,6 +88,32 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
</a-table>
|
||||
<a-row :gutter="24" style="margin-top: 8px;text-align:right;">
|
||||
<a-col :md="24" :sm="24">
|
||||
@ -156,10 +182,13 @@
|
||||
numSumTotalStr: '0',
|
||||
priceSumTotalStr: '0',
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'outMaterialCount',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','barCode','mName','standard','model','categoryName','materialUnit','numSum','priceSum'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
dataIndex: 'rowIndex', width:40, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -182,6 +211,7 @@
|
||||
this.getDepotData()
|
||||
this.initSupplier()
|
||||
this.loadAllOrgaData()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
moment,
|
||||
|
||||
@ -89,6 +89,32 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
</a-table>
|
||||
<a-row :gutter="24" style="margin-top: 8px;text-align:right;">
|
||||
<a-col :md="24" :sm="24">
|
||||
@ -156,10 +182,14 @@
|
||||
orgaTree: [],
|
||||
realityPriceTotal: '',
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'retailOutReport',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','barCode','materialName','materialStandard','materialModel','materialOther','materialUnit',
|
||||
'outSum','outSumPrice','inSum','inSumPrice','outInSumPrice'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:60, align:"center",
|
||||
dataIndex: 'rowIndex', width:60, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -185,6 +215,7 @@
|
||||
this.initRetail()
|
||||
this.getDepotData()
|
||||
this.loadAllOrgaData()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
moment,
|
||||
|
||||
@ -89,6 +89,32 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
</a-table>
|
||||
<a-row :gutter="24" style="margin-top: 8px;text-align:right;">
|
||||
<a-col :md="24" :sm="24">
|
||||
@ -155,10 +181,14 @@
|
||||
orgaTree: [],
|
||||
realityPriceTotal: '',
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'saleOutReport',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','barCode','materialName','materialStandard','materialModel','materialOther','materialUnit',
|
||||
'outSum','outSumPrice','inSum','inSumPrice','outInSumPrice'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:60, align:"center",
|
||||
dataIndex: 'rowIndex', width:60, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -184,6 +214,7 @@
|
||||
this.initCustomer()
|
||||
this.getDepotData()
|
||||
this.loadAllOrgaData()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
moment,
|
||||
|
||||
@ -49,6 +49,32 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
</a-table>
|
||||
<a-row :gutter="24" style="margin-top: 8px;text-align:right;">
|
||||
<a-col :md="24" :sm="24">
|
||||
@ -106,10 +132,14 @@
|
||||
},
|
||||
depotList: [],
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'stockWarningReport',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','depotName','barCode','mname','mstandard','mmodel','materialOther','materialUnit','currentNumber',
|
||||
'lowSafeStock','highSafeStock','lowCritical','highCritical'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
dataIndex: 'rowIndex', width:40, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -134,6 +164,7 @@
|
||||
},
|
||||
created () {
|
||||
this.getDepotData()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
getQueryParams() {
|
||||
|
||||
@ -71,10 +71,37 @@
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="customTitle">
|
||||
<a-popover trigger="click" placement="right">
|
||||
<template slot="content">
|
||||
<a-checkbox-group @change="onColChange" v-model="settingDataIndex" :defaultValue="settingDataIndex">
|
||||
<a-row style="width: 600px">
|
||||
<template v-for="(item,index) in defColumns">
|
||||
<template>
|
||||
<a-col :span="6">
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex==='rowIndex'" disabled></a-checkbox>
|
||||
<a-checkbox :value="item.dataIndex" v-if="item.dataIndex!=='rowIndex'">
|
||||
<j-ellipsis :value="item.title" v-if="item.dataIndex!=='allNeed'" :length="10"></j-ellipsis>
|
||||
<j-ellipsis value="期末应付" v-if="item.dataIndex==='allNeed'" :length="10"></j-ellipsis>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</template>
|
||||
</template>
|
||||
</a-row>
|
||||
<a-row style="padding-top: 10px;">
|
||||
<a-col>
|
||||
恢复默认列配置:<a-button @click="handleRestDefault" type="link" size="small">恢复默认</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-icon type="setting" />
|
||||
</a-popover>
|
||||
</span>
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="showDebtAccountList(record)">{{record.id?'详情':''}}</a>
|
||||
</span>
|
||||
<span slot="customTitle">
|
||||
<span slot="allNeedTitle">
|
||||
期末应付
|
||||
<a-tooltip title="期末应付=期初应付+本期欠款-本期付款">
|
||||
<a-icon type="question-circle" />
|
||||
@ -147,10 +174,13 @@
|
||||
firstTotal: '',
|
||||
lastTotal: '',
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
pageName: 'vendorAccount',
|
||||
// 默认索引
|
||||
defDataIndex:['rowIndex','action','supplier','contacts','telephone','phoneNum','email','preNeed','debtMoney','backMoney','allNeed'],
|
||||
// 默认列
|
||||
defColumns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
dataIndex: 'rowIndex', width:40, align:"center", slots: { title: 'customTitle' },
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
@ -167,7 +197,7 @@
|
||||
{title: '本期欠款', dataIndex: 'debtMoney', sorter: (a, b) => a.debtMoney - b.debtMoney, width: 80},
|
||||
{title: '本期付款', dataIndex: 'backMoney', sorter: (a, b) => a.backMoney - b.backMoney, width: 80},
|
||||
{dataIndex: 'allNeed', sorter: (a, b) => a.allNeed - b.allNeed, width: 80,
|
||||
slots: { title: 'customTitle' }
|
||||
slots: { title: 'allNeedTitle' }
|
||||
}
|
||||
],
|
||||
url: {
|
||||
@ -177,6 +207,7 @@
|
||||
},
|
||||
created () {
|
||||
this.initSupplier()
|
||||
this.initColumnsSetting()
|
||||
},
|
||||
methods: {
|
||||
getQueryParams() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user