|
|
@ -86,11 +86,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-tab-pane>
|
|
|
|
</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
|
|
|
|
<DsFile
|
|
|
|
ref="dsFile"
|
|
|
|
ref="dsFile"
|
|
|
|
fileType="infoclient"
|
|
|
|
fileType="infoclient"
|
|
|
|
|
|
|
|
:TriggerSave="true"
|
|
|
|
:id="rowId"
|
|
|
|
:id="rowId"
|
|
|
|
|
|
|
|
@FnTriggerSave="FnTriggerSave"
|
|
|
|
:SetSelect="{
|
|
|
|
:SetSelect="{
|
|
|
|
show: true,
|
|
|
|
show: true,
|
|
|
|
}"
|
|
|
|
}"
|
|
|
@ -286,6 +289,7 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function GetListDetail() {
|
|
|
|
function GetListDetail() {
|
|
|
|
ApiListDetail({
|
|
|
|
ApiListDetail({
|
|
|
|
queryCondition: `[{ FieldName: 'Pid', FieldValue: '${rowId.value}', ConditionalType: 1 }]`,
|
|
|
|
queryCondition: `[{ FieldName: 'Pid', FieldValue: '${rowId.value}', ConditionalType: 1 }]`,
|
|
|
@ -366,8 +370,16 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const dsFile = ref()
|
|
|
|
const dsFile = ref()
|
|
|
|
function DealExcel() {
|
|
|
|
async function FnTriggerSave() {
|
|
|
|
|
|
|
|
await handleSave(false)
|
|
|
|
if (rowId.value) {
|
|
|
|
if (rowId.value) {
|
|
|
|
|
|
|
|
dsFile.value.openFileModel()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async function DealExcel() {
|
|
|
|
|
|
|
|
if (!rowId.value) {
|
|
|
|
|
|
|
|
await handleSave(false)
|
|
|
|
|
|
|
|
}
|
|
|
|
if (dsFile.value.dsFileList.SelectId) {
|
|
|
|
if (dsFile.value.dsFileList.SelectId) {
|
|
|
|
let ApiData: any = {
|
|
|
|
let ApiData: any = {
|
|
|
|
id: unref(rowId),
|
|
|
|
id: unref(rowId),
|
|
|
@ -383,9 +395,6 @@
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })
|
|
|
|
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
|
|
|
|
notification.warning({ message: '请先保存', duration: 3 })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
async function handleSave(exit) {
|
|
|
|
async function handleSave(exit) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|