Browse Source

导出功能查缺补漏

hella_online_20240823
wangyufei 3 months ago
parent
commit
a1c5bc3574
  1. 5
      src/views/eam/SparePartsOutLocationRecord/index.vue
  2. 5
      src/views/eam/adjustRecord/index.vue
  3. 5
      src/views/eam/countRecord/index.vue
  4. 5
      src/views/eam/countadjustWork/index.vue
  5. 5
      src/views/eam/sparePartsApplyMain/index.vue
  6. 5
      src/views/eam/sparepartsoutlocation/index.vue
  7. 3
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue
  8. 7
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  9. 3
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
  10. 10
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  11. 3
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts
  12. 10
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  13. 3
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts
  14. 10
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue
  15. 3
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/productionMainPredictSparePart.data.ts
  16. 8
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/index.vue

5
src/views/eam/SparePartsOutLocationRecord/index.vue

@ -259,18 +259,17 @@ const handleDelete = async (id: number) => {
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id: number) => { const handleMainExport = async (id: number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsOutLocationRecordMainApi.exportSparePartsOutLocationRecordMain(id) const data = await SparePartsOutLocationRecordMainApi.exportSparePartsOutLocationRecordMain(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

5
src/views/eam/adjustRecord/index.vue

@ -209,18 +209,17 @@
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id : number) => { const handleMainExport = async (id : number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await AdjustRecordMainApi.exportAdjustRecordMain(id) const data = await AdjustRecordMainApi.exportAdjustRecordMain(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

5
src/views/eam/countRecord/index.vue

@ -225,18 +225,17 @@
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id : number) => { const handleMainExport = async (id : number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await CountRecordMainApi.handleMainExport(id) const data = await CountRecordMainApi.handleMainExport(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

5
src/views/eam/countadjustWork/index.vue

@ -260,18 +260,17 @@ const handleDelete = async (id: number) => {
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id: number) => { const handleMainExport = async (id: number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await CountJobMainApi.handleMainExport(id) const data = await CountJobMainApi.handleMainExport(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

5
src/views/eam/sparePartsApplyMain/index.vue

@ -316,18 +316,17 @@ const handleDelete = async (id: number) => {
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id: number) => { const handleMainExport = async (id: number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsApplyMainApi.exportSparePartsApplyMain(id) const data = await SparePartsApplyMainApi.exportSparePartsApplyMain(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

5
src/views/eam/sparepartsoutlocation/index.vue

@ -284,18 +284,17 @@ const handleDelete = async (id: number) => {
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id: number) => { const handleMainExport = async (id: number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsOutLocationMainApi.exportSparePartsOutLocationMain(id) const data = await SparePartsOutLocationMainApi.exportSparePartsOutLocationMain(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

3
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue

@ -224,7 +224,6 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
@ -236,7 +235,7 @@ const handleExport = async () => {
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

7
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -106,6 +106,8 @@ import * as InventorychangeRequestMainApi from '@/api/wms/inventorychangeRequest
import * as InventorychangeRequestDetailApi from '@/api/wms/inventorychangeRequestDetail' import * as InventorychangeRequestDetailApi from '@/api/wms/inventorychangeRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
const message = useMessage() // const message = useMessage() //
@ -398,19 +400,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await InventorychangeRequestMainApi.exportInventorychangeRequestMain(tableObject.params) const data = await InventorychangeRequestMainApi.exportInventorychangeRequestMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

3
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -743,6 +743,9 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps:{ componentProps:{
disabled: true disabled: true
} }
},
tableForm:{
disabled: true
} }
}, },
{ {

10
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -90,7 +90,8 @@ import * as ItemBasicApi from '@/api/wms/itembasic'
import * as BomApi from "@/api/wms/bom"; import * as BomApi from "@/api/wms/bom";
import * as SwitchApi from '@/api/wms/switch' import * as SwitchApi from '@/api/wms/switch'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'ProductionMainAssemble' }) defineOptions({ name: 'ProductionMainAssemble' })
@ -131,6 +132,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]
newRow['uom'] = item['uom'] newRow['uom'] = item['uom']
newRow['itemName'] = item['itemName']
// BOM // BOM
const param1 = { const param1 = {
productItemCode: item['itemCode'], productItemCode: item['itemCode'],
@ -505,19 +508,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await ProductionMainApi.exportProductionMainAssemble(tableObject.params) const data = await ProductionMainApi.exportProductionMainAssemble(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

3
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -743,6 +743,9 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
}, },
tableForm:{
disabled: true
}
}, },
{ {
label: 'Bom版本', label: 'Bom版本',

10
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -90,7 +90,8 @@ import * as ItemBasicApi from '@/api/wms/itembasic'
import * as BomApi from "@/api/wms/bom"; import * as BomApi from "@/api/wms/bom";
import * as SwitchApi from '@/api/wms/switch' import * as SwitchApi from '@/api/wms/switch'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'ProductionMainASparePart' }) defineOptions({ name: 'ProductionMainASparePart' })
@ -124,6 +125,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]
newRow['uom'] = item['uom'] newRow['uom'] = item['uom']
newRow['itemName'] = item['itemName']
// BOM // BOM
const param1 = { const param1 = {
productItemCode: item['itemCode'], productItemCode: item['itemCode'],
@ -493,18 +496,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await ProductionMainApi.exportProductionMainAssembleSparePart(tableObject.params) const data = await ProductionMainApi.exportProductionMainAssembleSparePart(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

3
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts

@ -742,6 +742,9 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
tableForm:{
disabled: true
}
}, },
{ {
label: 'Bom版本', label: 'Bom版本',

10
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

@ -90,7 +90,8 @@ import * as ItemBasicApi from '@/api/wms/itembasic'
import * as BomApi from "@/api/wms/bom"; import * as BomApi from "@/api/wms/bom";
import * as SwitchApi from '@/api/wms/switch' import * as SwitchApi from '@/api/wms/switch'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'ProductionMainPredictSparePart' }) defineOptions({ name: 'ProductionMainPredictSparePart' })
@ -124,6 +125,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]
newRow['uom'] = item['uom'] newRow['uom'] = item['uom']
newRow['itemName'] = item['itemName']
// BOM // BOM
const param1 = { const param1 = {
productItemCode: item['itemCode'], productItemCode: item['itemCode'],
@ -495,19 +498,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await ProductionMainApi.exportProductionMainPredictSparePart(tableObject.params) const data = await ProductionMainApi.exportProductionMainPredictSparePart(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

3
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/productionMainPredictSparePart.data.ts

@ -730,6 +730,9 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
tableForm:{
disabled: true
}
}, },
{ {
label: 'Bom版本', label: 'Bom版本',

8
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/index.vue

@ -101,7 +101,8 @@
import * as ItembasicApi from '@/api/wms/itembasic' import * as ItembasicApi from '@/api/wms/itembasic'
import TableDetail from '@/components/TableDetail/src/TableDetail.vue' import TableDetail from '@/components/TableDetail/src/TableDetail.vue'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'PurchaseMain' }) defineOptions({ name: 'PurchaseMain' })
@ -487,19 +488,18 @@ console.log('PurchaseMain.allSchemas.searchSchema',PurchaseMain.allSchemas.searc
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await PurchaseMainApi.exportPurchaseMain(tableObject.params) const data = await PurchaseMainApi.exportPurchaseMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

Loading…
Cancel
Save