Browse Source

导出增加默认参数

master_hella_20240701
TengXF 4 months ago
parent
commit
0e8ae183ef
  1. 1
      src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRecordMain/index.vue
  2. 7
      src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue

1
src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRecordMain/index.vue

@ -155,6 +155,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
tableObject.params.detailDataType = 2
const data = await UnplannedissueRecordMainApi.exportUnplannedissueRecordMain(tableObject.params) const data = await UnplannedissueRecordMainApi.exportUnplannedissueRecordMain(tableObject.params)
download.excel(data, '计划外出库记录主.xlsx') download.excel(data, '计划外出库记录主.xlsx')
} catch { } catch {

7
src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue

@ -80,7 +80,7 @@
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/unplannedissue-request-main/importSpare" :importTemplateData="importTemplateData" <ImportForm ref="importFormRef" url="/wms/unplannedissue-request-main/importSpare" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> @success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" />
</template> </template>
@ -343,7 +343,7 @@ const openForm =async (type: string, row?: number) => {
item.componentProps.isSearchList = false item.componentProps.isSearchList = false
item.componentProps.disabled = true item.componentProps.disabled = true
} }
}else{ }else{
if (item.field == 'costCenterCode') { if (item.field == 'costCenterCode') {
// //
@ -393,6 +393,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
tableObject.params.detailDataType = 2
const data = await UnplannedissueRequestMainApi.exportUnplannedissueRequestMain(tableObject.params) const data = await UnplannedissueRequestMainApi.exportUnplannedissueRequestMain(tableObject.params)
download.excel(data, '备件领用申请.xlsx') download.excel(data, '备件领用申请.xlsx')
} catch { } catch {
@ -426,7 +427,7 @@ const tableSelectionDelete = (selection) => {
} }
// //
const submitForm = async (formType, submitData) => { const submitForm = async (formType, submitData) => {
let data = {...submitData} let data = {...submitData}
if(data.masterId){ if(data.masterId){
data.id = data.masterId data.id = data.masterId

Loading…
Cancel
Save