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()
//
exportLoading.value = true
tableObject.params.detailDataType = 2
const data = await UnplannedissueRecordMainApi.exportUnplannedissueRecordMain(tableObject.params)
download.excel(data, '计划外出库记录主.xlsx')
} 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" />
</template>
@ -343,7 +343,7 @@ const openForm =async (type: string, row?: number) => {
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
}else{
if (item.field == 'costCenterCode') {
//
@ -393,6 +393,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
tableObject.params.detailDataType = 2
const data = await UnplannedissueRequestMainApi.exportUnplannedissueRequestMain(tableObject.params)
download.excel(data, '备件领用申请.xlsx')
} catch {
@ -426,7 +427,7 @@ const tableSelectionDelete = (selection) => {
}
//
const submitForm = async (formType, submitData) => {
let data = {...submitData}
if(data.masterId){
data.id = data.masterId

Loading…
Cancel
Save