szh-new
张同海 5 months ago
parent f6d6ef9a87
commit 9bf71b4e50

@ -26,13 +26,15 @@
<!-- <a-button class="btn btn-delete" @click="Dellist"></a-button> --> <!-- <a-button class="btn btn-delete" @click="Dellist"></a-button> -->
</div> </div>
<div style="position: relative"> <div style="position: relative">
<input <a-spin :spinning="TableSpinning">
class="ds-tb-check" <input
type="checkbox" class="ds-tb-check"
v-model="allCheck" type="checkbox"
:indeterminate="someCheck" v-model="allCheck"
/> :indeterminate="someCheck"
<hot-table ref="hotTb" :data="list" :settings="Lsettings"> </hot-table> />
<hot-table ref="hotTb" :data="list" :settings="Lsettings"> </hot-table>
</a-spin>
</div> </div>
</div> </div>
</div> </div>
@ -99,24 +101,7 @@
setFieldsValue({ setFieldsValue({
...res.data, ...res.data,
}) })
let ApiData = { await GetTableData()
queryCondition: JSON.stringify({
FieldName: 'checkId',
FieldValue: rowId.value,
ConditionalType: 1,
}),
pageCondition: {
pageIndex: 1,
pageSize: 9999,
sortConditions: [],
},
}
const e: API.DataResult = await ApiBasicsList(ApiData)
if (e.succeeded) {
list.value.push(...e.data)
} else {
setModalProps({ confirmLoading: false })
}
} }
setModalProps({ confirmLoading: false }) setModalProps({ confirmLoading: false })
} else { } else {
@ -134,6 +119,32 @@
list.value.push(...res.data) list.value.push(...res.data)
} }
} }
const TableSpinning = ref(false)
async function GetTableData() {
TableSpinning.value = true
let ApiData = {
queryCondition: JSON.stringify([
{
FieldName: 'checkId',
FieldValue: rowId.value,
ConditionalType: 1,
},
]),
pageCondition: {
pageIndex: 1,
pageSize: 9999,
sortConditions: [],
},
}
const res: API.DataResult = await ApiBasicsList(ApiData)
if (res.succeeded) {
list.value.splice(0)
list.value.push(...res.data)
} else {
setModalProps({ confirmLoading: false })
}
TableSpinning.value = false
}
// //
async function handleSave(exit) { async function handleSave(exit) {
try { try {
@ -497,9 +508,9 @@
ApiImport({ ApiImport({
data: formData, data: formData,
// parameter: { LinkId: Did, TypeCode: 'other', TypeName: '' }, // parameter: { LinkId: Did, TypeCode: 'other', TypeName: '' },
}).then((res) => { }).then(async (res) => {
if (res.succeeded) { if (res.succeeded) {
list.value.push(...res.data) await GetTableData()
} else { } else {
notification.error({ message: res.message, duration: 3 }) notification.error({ message: res.message, duration: 3 })
} }

@ -87,17 +87,17 @@ export const searchFormSchema: FormSchema[] = [
}, },
] ]
let businessTypeData = [ let businessTypeData = [
{ label: '全部', value: '0' }, { label: '全部', value: 0 },
{ label: '海运出口', value: '1' }, { label: '海运出口', value: 1 },
] ]
let checkTypeData = [ let checkTypeData = [
{ label: 'Excel导入', value: '1' }, { label: 'Excel导入', value: 1 },
{ label: '区间统计', value: '2' }, { label: '区间统计', value: 2 },
] ]
let billTypeData = [ let billTypeData = [
{ label: '全部', value: '0' }, { label: '全部', value: 0 },
{ label: '应收', value: '1' }, { label: '应收', value: 1 },
{ label: '应付', value: '2' }, { label: '应付', value: 2 },
] ]
export const formSchema: FormSchema[] = [ export const formSchema: FormSchema[] = [
{ {

Loading…
Cancel
Save