客户对账

szh-new
张同海 6 months ago
parent 9d36c4079b
commit bd62a07a73

@ -16,30 +16,30 @@
<a-button class="btn" type="primary" @click="AddLlist"></a-button> <a-button class="btn" type="primary" @click="AddLlist"></a-button>
<a-button class="btn btn-delete">删除费用字段</a-button> <a-button class="btn btn-delete">删除费用字段</a-button>
</div> </div>
<!-- <div style="position: relative"> <div style="position: relative">
<input <input
class="ds-tb-check" class="ds-tb-check"
type="checkbox" type="checkbox"
v-model="allCheckL" v-model="allCheckL"
:indeterminate="someCheckL" :indeterminate="someCheckL"
/> />
<hot-table ref="hotTbL" :data="Llist" :settings="Lsettings"></hot-table> <hot-table :data="Llist" :settings="Lsettings"> </hot-table>
</div> --> </div>
</div> </div>
<div class="BoxUnit"> <div class="BoxUnit">
<div class="model-botton-box"> <div class="model-botton-box">
<a-button class="btn" type="primary">新增字段</a-button> <a-button class="btn" type="primary">新增字段</a-button>
<a-button class="btn btn-delete">删除字段</a-button> <a-button class="btn btn-delete">删除字段</a-button>
</div> </div>
<!-- <div style="position: relative"> <div style="position: relative">
<input <input
class="ds-tb-check" class="ds-tb-check"
type="checkbox" type="checkbox"
v-model="allCheckR" v-model="allCheckR"
:indeterminate="someCheckR" :indeterminate="someCheckR"
/> />
<hot-table ref="hotTbR" :data="Rlist" :settings="Rsettings"></hot-table> <hot-table :data="Rlist" :settings="Rsettings"></hot-table>
</div> --> </div>
</div> </div>
</div> </div>
@ -224,7 +224,7 @@
] ]
const Lsettings = { const Lsettings = {
height: '400', height: '400',
width: '100%', // width: '100%',
autoWrapRow: true, autoWrapRow: true,
autoWrapCol: true, autoWrapCol: true,
// //
@ -320,43 +320,36 @@
}, },
] ]
const Rsettings = { const Rsettings = {
height: '200', height: '400',
width: '100%', // width: '100%',
autoWrapRow: true, autoWrapRow: true,
autoWrapCol: true, autoWrapCol: true,
// //
rowHeights: 32, rowHeights: 32,
fixedColumnsLeft: 1, fixedColumnsLeft: 1,
//
// // hiddenColumns: {
enterMoves: 'row', // columns: [1],
// indicators: true,
// },
columnSorting: true, columnSorting: true,
//
// columnSorting: {
// column: 2, //
// sortOrder: ['asc', 'desc'] //
// },
//
// afterValidate: function (isValid, value, row, prop, source) {
// if (!isValid) {
// hotTb.value.hotInstance.setDataAtRowProp(row, prop, '')
// }
// },
columns: RColumns, columns: RColumns,
//
readOnly: true,
// () // ()
licenseKey: 'non-commercial-and-evaluation', licenseKey: 'non-commercial-and-evaluation',
enterMoves: 'row',
// //
afterChange(changes, source) { afterChange(changes, source) {},
// if (source === 'edit' || source === 'Autofill.fill' || source === 'CopyPaste.paste') {
// //
// if (changes[0][1] == 'selected' && changes[0][3]) {
// let Arr: any = []
// moreTList.value.forEach((e, i) => {
// if (i !== changes[0][0]) {
// Arr.push({ ...e, selected: false })
// } else {
// moreSelectNum.value = i
// Arr.push({ ...e, selected: true })
// }
// })
// moreTList.value.splice(0)
// Arr.forEach((e) => {
// moreTList.value.push(e)
// })
// }
// }
},
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>

@ -0,0 +1,28 @@
<template>
<div id="example1">
<hot-table :data="Llist" :settings="Lsettings"> </hot-table>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { HotTable } from '@handsontable/vue3'
import { registerAllModules } from 'handsontable/registry'
import 'handsontable/dist/handsontable.full.min.css'
registerAllModules()
const LColumns = [
{
title: '箱型代码',
width: 120,
data: 'ctnCode',
},
]
const Llist = ref([
{
ctnCode: '1',
},
])
const Lsettings = {
columns: LColumns,
licenseKey: 'non-commercial-and-evaluation',
}
</script>
Loading…
Cancel
Save