ljlong_2630 9 months ago
parent
commit
d745baa2ea
  1. 4
      src/views/eam/basic/deviceMaintenance/index.vue
  2. 2
      src/views/eam/basic/inspection/index.vue
  3. 2
      src/views/eam/basic/locationArea/index.vue
  4. 6
      src/views/eam/basic/locationArea/locationArea.data.ts
  5. 2
      src/views/eam/basic/moldMaintenance/index.vue

4
src/views/eam/basic/deviceMaintenance/index.vue

@ -196,8 +196,10 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
tableObject.params.type="DEVICE"
tableObject.params.status="MAINTAIN"
const data = await DeviceMaintenanceApi.exportDeviceMoldItems(tableObject.params) const data = await DeviceMaintenanceApi.exportDeviceMoldItems(tableObject.params)
download.excel(data, '项记录表(设备 模具 保养 维修 巡检点检).xlsx') download.excel(data, '设备保养项配置.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

2
src/views/eam/basic/inspection/index.vue

@ -197,6 +197,8 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
tableObject.params.type="DEVICE"
tableObject.params.status="INSPECTION"
const data = await DeviceMoldItemsApi.exportDeviceMoldItems(tableObject.params) const data = await DeviceMoldItemsApi.exportDeviceMoldItems(tableObject.params)
download.excel(data, '项记录表(设备 模具 保养 维修 巡检点检).xlsx') download.excel(data, '项记录表(设备 模具 保养 维修 巡检点检).xlsx')
} catch { } catch {

2
src/views/eam/basic/locationArea/index.vue

@ -190,7 +190,7 @@
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await LocationAreaApi.exportLocationArea(setSearchParams) const data = await LocationAreaApi.exportLocationArea(tableObject.params)
download.excel(data, '库区.xls') download.excel(data, '库区.xls')
} catch { } catch {
} finally { } finally {

6
src/views/eam/basic/locationArea/locationArea.data.ts

@ -34,17 +34,17 @@ export const LocationArea = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.LOCATION_AREA_TYPE, dictType: DICT_TYPE.LOCATION_AREA_TYPE,
dictClass: 'string', dictClass: 'string',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
form: { form: {
component: 'Select' component: 'Select'
}, },
}, },
{ {
label: '状态', label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: false,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {

2
src/views/eam/basic/moldMaintenance/index.vue

@ -196,6 +196,8 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
tableObject.params.type="MOLD"
tableObject.params.status="MAINTAIN"
const data = await MoldMaintenanceApi.exportDeviceMoldItems(tableObject.params) const data = await MoldMaintenanceApi.exportDeviceMoldItems(tableObject.params)
download.excel(data, '项记录表(设备 模具 保养 维修 巡检点检).xlsx') download.excel(data, '项记录表(设备 模具 保养 维修 巡检点检).xlsx')
} catch { } catch {

Loading…
Cancel
Save