master
xhj 5 months ago
parent 68d4ffe5fc
commit 1b58efe168

@ -93,7 +93,7 @@ export default {
}, },
created() { created() {
console.log(this.sljhPrintData) console.log(this.sljhPrintData)
console.log(sljhPrintData) // console.log(sljhPrintData)
console.log(11111) console.log(11111)
}, },

@ -303,11 +303,15 @@
highlight-current-row highlight-current-row
@current-change="rowClick" @current-change="rowClick"
:header-cell-style="{'text-align':'center'}" :header-cell-style="{'text-align':'center'}"
show-footer
:footer-method="footerMethod"
> >
<!-- <template #operation="{ row }">--> <!-- <template #operation="{ row }">-->
<!-- <vxe-button type="text" icon="vxe-icon&#45;&#45;check" @click="tjClcik(row)" />--> <!-- <vxe-button type="text" icon="vxe-icon&#45;&#45;check" @click="tjClcik(row)" />-->
<!-- </template>--> <!-- </template>-->
<template #numMx="{ items, _columnIndex }">
<span style="color: red">{{ items[_columnIndex] }}</span>
</template>
</vxe-grid> </vxe-grid>
</div> </div>
@ -373,7 +377,7 @@ import {
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import XEUtils from 'xe-utils' import XEUtils from 'xe-utils'
import SljhPrint from "@/views/jhzxgl/components/SljhPrint"; import SljhPrint from "@/views/jhzxgl/components/SljhPrint";
import {exportByExcel, null2str} from "@/utils/rpkj"; import {exportByExcel, getSumAddDicByName, null2str} from "@/utils/rpkj";
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { startLoading, endLoading } from '@/utils' import { startLoading, endLoading } from '@/utils'
import { Message } from 'element-ui' import { Message } from 'element-ui'
@ -783,7 +787,7 @@ export default {
title: '车号', title: '车号',
width: "70px", width: "70px",
field: 'dcTpbh', field: 'dcTpbh',
slots: { footer: 'numMx' },
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }, filterRender: { name: 'FilterCombination' },
}, },
@ -1030,8 +1034,8 @@ export default {
const pwwz = this.$refs.xGrid.getColumnByField('pwwz') const pwwz = this.$refs.xGrid.getColumnByField('pwwz')
pwwz.editRender.options = this.dictData.pwwz pwwz.editRender.options = this.dictData.pwwz
const slycldw = this.$refs.xGrid1.getColumnByField('slycldw') // const slycldw = this.$refs.xGrid1.getColumnByField('slycldw')
slycldw.editRender.options = this.dictData.ycldws // slycldw.editRender.options = this.dictData.ycldws
@ -1300,7 +1304,20 @@ export default {
}, },
footerMethod ({ columns, data }) {
return [
columns.map((column, columnIndex) => {
if (['dcTpbh'].includes(column.property)) {
console.log(1)
return getSumAddDicByName(data, column.property)
}
if (columnIndex === 1) {
return '合计'
}
return null
})
]
},
async hd (){ async hd (){
await kcAdnSlBd({ await kcAdnSlBd({
// "data1":this.$refs.xGrid.getTableData().visibleData, // "data1":this.$refs.xGrid.getTableData().visibleData,

Loading…
Cancel
Save