|
|
@ -86,12 +86,26 @@
|
|
|
|
</div> -->
|
|
|
|
</div> -->
|
|
|
|
</a-tab-pane>
|
|
|
|
</a-tab-pane>
|
|
|
|
<a-tab-pane key="2" tab="电子文档">
|
|
|
|
<a-tab-pane key="2" tab="电子文档">
|
|
|
|
|
|
|
|
<!-- <DsFile
|
|
|
|
|
|
|
|
ref="dsFile"
|
|
|
|
|
|
|
|
fileType="infoclient"
|
|
|
|
|
|
|
|
:TriggerSave="true"
|
|
|
|
|
|
|
|
:id="rowId"
|
|
|
|
|
|
|
|
@FnTriggerSave="FnTriggerSave"
|
|
|
|
|
|
|
|
:SetSelect="{
|
|
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
|
|
}"
|
|
|
|
|
|
|
|
/> -->
|
|
|
|
<DsFile
|
|
|
|
<DsFile
|
|
|
|
ref="dsFile"
|
|
|
|
ref="dsFile"
|
|
|
|
fileType="infoclient"
|
|
|
|
fileType="infoclient"
|
|
|
|
|
|
|
|
:dynamicDisabled="3"
|
|
|
|
:TriggerSave="true"
|
|
|
|
:TriggerSave="true"
|
|
|
|
|
|
|
|
:succinct="true"
|
|
|
|
:id="rowId"
|
|
|
|
:id="rowId"
|
|
|
|
@FnTriggerSave="FnTriggerSave"
|
|
|
|
@FnTriggerSave="FnTriggerSave"
|
|
|
|
|
|
|
|
@FnUpload="FnUpload"
|
|
|
|
|
|
|
|
@handleSuccess="handleSuccess"
|
|
|
|
:SetSelect="{
|
|
|
|
:SetSelect="{
|
|
|
|
show: true,
|
|
|
|
show: true,
|
|
|
|
}"
|
|
|
|
}"
|
|
|
@ -356,12 +370,34 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const dsFile = ref()
|
|
|
|
const dsFile = ref()
|
|
|
|
|
|
|
|
async function FnUpload(FnUp) {
|
|
|
|
|
|
|
|
if (!rowId.value) {
|
|
|
|
|
|
|
|
await handleSave(false)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
FnUp(rowId.value)
|
|
|
|
|
|
|
|
}
|
|
|
|
async function FnTriggerSave() {
|
|
|
|
async function FnTriggerSave() {
|
|
|
|
await handleSave(false, true)
|
|
|
|
await handleSave(false, true)
|
|
|
|
if (rowId.value) {
|
|
|
|
if (rowId.value) {
|
|
|
|
dsFile.value.openFileModel()
|
|
|
|
dsFile.value.openFileModel()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleSuccess(data) {
|
|
|
|
|
|
|
|
const id = data.id.split('.')[0]
|
|
|
|
|
|
|
|
let ApiData: any = {
|
|
|
|
|
|
|
|
id: unref(rowId),
|
|
|
|
|
|
|
|
formName: 'CM_BuyCtn',
|
|
|
|
|
|
|
|
tableName: '',
|
|
|
|
|
|
|
|
fileId: id,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ApiDealExcel(ApiData).then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
activeKey.value = '1'
|
|
|
|
|
|
|
|
refresh()
|
|
|
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
async function DealExcel() {
|
|
|
|
async function DealExcel() {
|
|
|
|
if (!rowId.value) {
|
|
|
|
if (!rowId.value) {
|
|
|
|
await handleSave(false, false)
|
|
|
|
await handleSave(false, false)
|
|
|
@ -374,9 +410,11 @@
|
|
|
|
fileId: dsFile.value.dsFileList.SelectId,
|
|
|
|
fileId: dsFile.value.dsFileList.SelectId,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ApiDealExcel(ApiData).then((res) => {
|
|
|
|
ApiDealExcel(ApiData).then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
activeKey.value = '1'
|
|
|
|
activeKey.value = '1'
|
|
|
|
refresh()
|
|
|
|
refresh()
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })
|
|
|
|
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })
|
|
|
|