箱管 识别excel 调整

szh-new
张同海 2 months ago
parent edff9a4d66
commit 217d5ded31

@ -85,11 +85,13 @@
</div>
</div> -->
</a-tab-pane>
<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,
}"
@ -352,25 +354,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_BuyCtn',
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_BuyCtn',
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) {

@ -86,11 +86,13 @@
</div>
</div>
</a-tab-pane>
<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,
}"
@ -364,25 +366,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_CtnScrap',
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_CtnScrap',
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) {

@ -86,11 +86,13 @@
</div>
</div>
</a-tab-pane>
<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,
}"
@ -353,25 +355,31 @@
}
}
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_RentOneWay',
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_RentOneWay',
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) {

@ -51,11 +51,13 @@
</div>
</div>
</a-tab-pane>
<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,
}"
@ -299,25 +301,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_RentOneWay',
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_RentOneWay',
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) {

@ -88,11 +88,13 @@
</div>
</div>
</a-tab-pane>
<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,
}"
@ -384,25 +386,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_RentOut',
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_RentOut',
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) {

@ -86,11 +86,13 @@
</div>
</div>
</a-tab-pane>
<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,
}"
@ -364,25 +366,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_SellCtn',
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_SellCtn',
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) {

@ -51,11 +51,13 @@
</div>
</div>
</a-tab-pane>
<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,
}"
@ -205,27 +207,32 @@
}
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_State_Change_TemplatImport',
tableName: '',
fileId: dsFile.value.dsFileList.SelectId,
}
ApiDealExcel(ApiData).then((res) => {
if (res.succeeded) {
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_State_Change_TemplatImport',
tableName: '',
fileId: dsFile.value.dsFileList.SelectId,
}
ApiDealExcel(ApiData).then((res) => {
if (res.succeeded) {
activeKey.value = '1'
refresh()
notification.success({ message: res.message, duration: 3 })
}
})
} else {
notification.warning({ message: '请先保存', duration: 3 })
notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })
}
}
async function Confirm() {

Loading…
Cancel
Save