优化欠款详情界面,增加合计行
This commit is contained in:
@@ -400,9 +400,10 @@ export const JeecgListMixin = {
|
|||||||
let numKey = 'rowIndex'
|
let numKey = 'rowIndex'
|
||||||
let totalRow = { [numKey]: '合计' }
|
let totalRow = { [numKey]: '合计' }
|
||||||
//需要合计的列
|
//需要合计的列
|
||||||
let parseCols = 'initialStock,currentStock,currentStockPrice,initialAmount,thisMonthAmount,currentAmount,inSum,inSumPrice,inOutSumPrice,' +
|
let parseCols = 'initialStock,currentStock,currentStockPrice,initialAmount,thisMonthAmount,currentAmount,inSum,inSumPrice,' +
|
||||||
'outSum,outSumPrice,outInSumPrice,operNumber,allPrice,numSum,priceSum,prevSum,thisSum,thisAllPrice,changeAmount,' +
|
'inOutSumPrice,outSum,outSumPrice,outInSumPrice,operNumber,allPrice,numSum,priceSum,prevSum,thisSum,thisAllPrice,changeAmount,' +
|
||||||
'allPrice,taxMoney,currentNumber,lowSafeStock,highSafeStock,lowCritical,highCritical,preNeed,debtMoney,backMoney,allNeed'
|
'allPrice,taxMoney,currentNumber,lowSafeStock,highSafeStock,lowCritical,highCritical,preNeed,debtMoney,backMoney,allNeed,' +
|
||||||
|
'needDebt,finishDebt,debt'
|
||||||
columns.forEach(column => {
|
columns.forEach(column => {
|
||||||
let { key, dataIndex } = column
|
let { key, dataIndex } = column
|
||||||
if (![key, dataIndex].includes(numKey)) {
|
if (![key, dataIndex].includes(numKey)) {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
:title="title"
|
:title="title"
|
||||||
:width="1250"
|
:width="1250"
|
||||||
:visible="visible"
|
:visible="visible"
|
||||||
@ok="handleOk"
|
|
||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
cancelText="关闭"
|
cancelText="关闭"
|
||||||
wrapClassName="ant-modal-cust-warp"
|
wrapClassName="ant-modal-cust-warp"
|
||||||
@@ -43,7 +42,7 @@
|
|||||||
rowKey="id"
|
rowKey="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="false"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="numberCustomRender" slot-scope="text, record">
|
<span slot="numberCustomRender" slot-scope="text, record">
|
||||||
@@ -81,6 +80,9 @@
|
|||||||
roleType: Vue.ls.get('roleType'),
|
roleType: Vue.ls.get('roleType'),
|
||||||
status: ""
|
status: ""
|
||||||
},
|
},
|
||||||
|
ipagination:{
|
||||||
|
pageSize: 10001
|
||||||
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 8 },
|
sm: { span: 8 },
|
||||||
@@ -92,13 +94,9 @@
|
|||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: '#',
|
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||||
dataIndex: '',
|
|
||||||
key:'rowIndex',
|
|
||||||
width:40,
|
|
||||||
align:"center",
|
|
||||||
customRender:function (t,r,index) {
|
customRender:function (t,r,index) {
|
||||||
return parseInt(index)+1;
|
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -115,17 +113,9 @@
|
|||||||
},
|
},
|
||||||
{ title: '单据日期', dataIndex: 'operTimeStr',width:130},
|
{ title: '单据日期', dataIndex: 'operTimeStr',width:130},
|
||||||
{ title: '操作员', dataIndex: 'userName',width:60},
|
{ title: '操作员', dataIndex: 'userName',width:60},
|
||||||
{ title: '欠款', dataIndex: 'needDebt',width:70,
|
{ title: '欠款', dataIndex: 'needDebt',width:70},
|
||||||
customRender:function (text,record,index) {
|
{ title: '已收欠款', dataIndex: 'finishDebt',width:70},
|
||||||
return (record.discountLastMoney + record.otherMoney - (record.deposit + record.changeAmount)).toFixed(2);
|
{ title: '待收欠款', dataIndex: 'debt',width:70}
|
||||||
}
|
|
||||||
},
|
|
||||||
{ title: '已收欠款', dataIndex: 'finishDebt',width:70 },
|
|
||||||
{ title: '待收欠款', dataIndex: 'debt',width:70,
|
|
||||||
customRender:function (text,record,index) {
|
|
||||||
return (record.discountLastMoney + record.otherMoney - (record.deposit + record.changeAmount + record.finishDebt)).toFixed(2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
url: {
|
url: {
|
||||||
list: "/depotHead/debtList"
|
list: "/depotHead/debtList"
|
||||||
@@ -157,8 +147,6 @@
|
|||||||
}
|
}
|
||||||
this.model = Object.assign({}, {});
|
this.model = Object.assign({}, {});
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.ipagination.pageSize = 100
|
|
||||||
this.ipagination.pageSizeOptions = ['100', '200', '300']
|
|
||||||
this.loadData(1)
|
this.loadData(1)
|
||||||
},
|
},
|
||||||
myHandleDetail(record) {
|
myHandleDetail(record) {
|
||||||
|
|||||||
Reference in New Issue
Block a user