|
|
|
@ -303,11 +303,15 @@
|
|
|
|
|
highlight-current-row
|
|
|
|
|
@current-change="rowClick"
|
|
|
|
|
:header-cell-style="{'text-align':'center'}"
|
|
|
|
|
|
|
|
|
|
show-footer
|
|
|
|
|
:footer-method="footerMethod"
|
|
|
|
|
>
|
|
|
|
|
<!-- <template #operation="{ row }">-->
|
|
|
|
|
<!-- <vxe-button type="text" icon="vxe-icon--check" @click="tjClcik(row)" />-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<template #numMx="{ items, _columnIndex }">
|
|
|
|
|
<span style="color: red">{{ items[_columnIndex] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-grid>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@ -373,7 +377,7 @@ import {
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
import XEUtils from 'xe-utils'
|
|
|
|
|
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 { startLoading, endLoading } from '@/utils'
|
|
|
|
|
import { Message } from 'element-ui'
|
|
|
|
@ -783,7 +787,7 @@ export default {
|
|
|
|
|
title: '车号',
|
|
|
|
|
width: "70px",
|
|
|
|
|
field: 'dcTpbh',
|
|
|
|
|
|
|
|
|
|
slots: { footer: 'numMx' },
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination' },
|
|
|
|
|
},
|
|
|
|
@ -1030,8 +1034,8 @@ export default {
|
|
|
|
|
const pwwz = this.$refs.xGrid.getColumnByField('pwwz')
|
|
|
|
|
pwwz.editRender.options = this.dictData.pwwz
|
|
|
|
|
|
|
|
|
|
const slycldw = this.$refs.xGrid1.getColumnByField('slycldw')
|
|
|
|
|
slycldw.editRender.options = this.dictData.ycldws
|
|
|
|
|
// const slycldw = this.$refs.xGrid1.getColumnByField('slycldw')
|
|
|
|
|
// 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 (){
|
|
|
|
|
await kcAdnSlBd({
|
|
|
|
|
// "data1":this.$refs.xGrid.getTableData().visibleData,
|
|
|
|
|