|
|
|
@ -86,11 +86,14 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-tab-pane>
|
|
|
|
|
<a-tab-pane key="2" tab="电子文档" :disabled="!rowId">
|
|
|
|
|
<!-- <a-tab-pane key="2" tab="电子文档" :disabled="!rowId"> -->
|
|
|
|
|
<a-tab-pane key="2" tab="电子文档">
|
|
|
|
|
<DsFile
|
|
|
|
|
ref="dsFile"
|
|
|
|
|
fileType="infoclient"
|
|
|
|
|
:TriggerSave="true"
|
|
|
|
|
:id="rowId"
|
|
|
|
|
@FnTriggerSave="FnTriggerSave"
|
|
|
|
|
:SetSelect="{
|
|
|
|
|
show: true,
|
|
|
|
|
}"
|
|
|
|
@ -286,6 +289,7 @@
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function GetListDetail() {
|
|
|
|
|
ApiListDetail({
|
|
|
|
|
queryCondition: `[{ FieldName: 'Pid', FieldValue: '${rowId.value}', ConditionalType: 1 }]`,
|
|
|
|
@ -366,25 +370,30 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const dsFile = ref()
|
|
|
|
|
function DealExcel() {
|
|
|
|
|
async function FnTriggerSave() {
|
|
|
|
|
await handleSave(false)
|
|
|
|
|
if (rowId.value) {
|
|
|
|
|
if (dsFile.value.dsFileList.SelectId) {
|
|
|
|
|
let ApiData: any = {
|
|
|
|
|
id: unref(rowId),
|
|
|
|
|
formName: 'CM_RentIn',
|
|
|
|
|
tableName: '',
|
|
|
|
|
fileId: dsFile.value.dsFileList.SelectId,
|
|
|
|
|
}
|
|
|
|
|
ApiDealExcel(ApiData).then((res) => {
|
|
|
|
|
activeKey.value = '1'
|
|
|
|
|
refresh()
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })
|
|
|
|
|
dsFile.value.openFileModel()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async function DealExcel() {
|
|
|
|
|
if (!rowId.value) {
|
|
|
|
|
await handleSave(false)
|
|
|
|
|
}
|
|
|
|
|
if (dsFile.value.dsFileList.SelectId) {
|
|
|
|
|
let ApiData: any = {
|
|
|
|
|
id: unref(rowId),
|
|
|
|
|
formName: 'CM_RentIn',
|
|
|
|
|
tableName: '',
|
|
|
|
|
fileId: dsFile.value.dsFileList.SelectId,
|
|
|
|
|
}
|
|
|
|
|
ApiDealExcel(ApiData).then((res) => {
|
|
|
|
|
activeKey.value = '1'
|
|
|
|
|
refresh()
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
notification.warning({ message: '请先保存', duration: 3 })
|
|
|
|
|
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async function handleSave(exit) {
|
|
|
|
|