|
|
@ -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 })
|
|
|
|
}
|
|
|
|
}
|
|
|
|