客户对账

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 btn-delete">删除费用字段</a-button>
</div>
<!-- <div style="position: relative">
<div style="position: relative">
<input
class="ds-tb-check"
type="checkbox"
v-model="allCheckL"
:indeterminate="someCheckL"
/>
<hot-table ref="hotTbL" :data="Llist" :settings="Lsettings"></hot-table>
</div> -->
<hot-table :data="Llist" :settings="Lsettings"> </hot-table>
</div>
</div>
<div class="BoxUnit">
<div class="model-botton-box">
<a-button class="btn" type="primary">新增字段</a-button>
<a-button class="btn btn-delete">删除字段</a-button>
</div>
<!-- <div style="position: relative">
<div style="position: relative">
<input
class="ds-tb-check"
type="checkbox"
v-model="allCheckR"
:indeterminate="someCheckR"
/>
<hot-table ref="hotTbR" :data="Rlist" :settings="Rsettings"></hot-table>
</div> -->
<hot-table :data="Rlist" :settings="Rsettings"></hot-table>
</div>
</div>
</div>
@ -224,7 +224,7 @@
]
const Lsettings = {
height: '400',
width: '100%',
// width: '100%',
autoWrapRow: true,
autoWrapCol: true,
//
@ -320,43 +320,36 @@
},
]
const Rsettings = {
height: '200',
width: '100%',
height: '400',
// width: '100%',
autoWrapRow: true,
autoWrapCol: true,
//
rowHeights: 32,
fixedColumnsLeft: 1,
//
enterMoves: 'row',
//
// hiddenColumns: {
// columns: [1],
// indicators: 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,
//
readOnly: true,
// ()
licenseKey: 'non-commercial-and-evaluation',
enterMoves: 'row',
//
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)
// })
// }
// }
},
afterChange(changes, source) {},
}
</script>
<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