Merge branch 'zth' into dev

feature-JimuReport-1106-yjl
张同海 3 weeks ago
commit 987f21e86f

@ -224,7 +224,6 @@
} }
async function ChangeUpload() { async function ChangeUpload() {
let FnUp = (id) => { let FnUp = (id) => {
console.log('FnUp', 1111111111)
const postData = new FormData() const postData = new FormData()
const list = unref(upFileList) const list = unref(upFileList)
// list.forEach((item) => { // list.forEach((item) => {

@ -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) => {
activeKey.value = '1' if (res.succeeded) {
refresh() activeKey.value = '1'
notification.success({ message: res.message, duration: 3 }) refresh()
notification.success({ message: res.message, duration: 3 })
}
}) })
} else { } else {
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })

@ -91,9 +91,13 @@
<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,
}" }"
@ -418,12 +422,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_RentIn',
tableName: '',
fileId: id,
}
ApiDealExcel(ApiData).then((res) => {
if (res.succeeded) {
activeKey.value = '1'
refresh(true)
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)
@ -436,9 +462,11 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1' if (res.succeeded) {
refresh() activeKey.value = '1'
notification.success({ message: res.message, duration: 3 }) refresh()
notification.success({ message: res.message, duration: 3 })
}
}) })
} else { } else {
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })

@ -90,9 +90,13 @@
<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,
}" }"
@ -355,12 +359,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) await handleSave(false)
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_RentOneWay',
tableName: '',
fileId: id,
}
ApiDealExcel(ApiData).then((res) => {
if (res.succeeded) {
activeKey.value = '1'
refresh(true)
notification.success({ message: res.message, duration: 3 })
}
})
}
async function DealExcel() { async function DealExcel() {
if (!rowId.value) { if (!rowId.value) {
await handleSave(false) await handleSave(false)
@ -374,9 +400,11 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1' if (res.succeeded) {
refresh() activeKey.value = '1'
notification.success({ message: res.message, duration: 3 }) refresh()
notification.success({ message: res.message, duration: 3 })
}
}) })
} else { } else {
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })

@ -55,9 +55,13 @@
<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,
}" }"
@ -301,12 +305,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) await handleSave(false)
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_RentOneWay',
tableName: '',
fileId: id,
}
ApiDealExcel(ApiData).then((res) => {
if (res.succeeded) {
activeKey.value = '1'
refresh(true)
notification.success({ message: res.message, duration: 3 })
}
})
}
async function DealExcel() { async function DealExcel() {
if (!rowId.value) { if (!rowId.value) {
await handleSave(false) await handleSave(false)
@ -319,9 +345,11 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1' if (res.succeeded) {
refresh() activeKey.value = '1'
notification.success({ message: res.message, duration: 3 }) refresh()
notification.success({ message: res.message, duration: 3 })
}
}) })
} else { } else {
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })

@ -92,9 +92,13 @@
<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,
}" }"
@ -430,12 +434,34 @@
} }
} }
const dsFile = ref() const dsFile = ref()
async function FnUpload(FnUp) {
if (!rowId.value) {
await handleSave(false, true)
}
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_RentOut',
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)
@ -448,9 +474,11 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1' if (res.succeeded) {
refresh() activeKey.value = '1'
notification.success({ message: res.message, duration: 3 }) refresh()
notification.success({ message: res.message, duration: 3 })
}
}) })
} else { } else {
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })

@ -90,9 +90,13 @@
<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,
}" }"
@ -406,12 +410,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_SellCtn',
tableName: '',
fileId: id,
}
ApiDealExcel(ApiData).then((res) => {
if (res.succeeded) {
activeKey.value = '1'
refresh(true)
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)
@ -424,9 +450,11 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1' if (res.succeeded) {
refresh() activeKey.value = '1'
notification.success({ message: res.message, duration: 3 }) refresh()
notification.success({ message: res.message, duration: 3 })
}
}) })
} else { } else {
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })

Loading…
Cancel
Save