|
@ -86,7 +86,7 @@ |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
|
<SYMonthImportForm ref="importFormRef" :url="importUrl" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
<SYMonthImportForm ref="importFormRef" :url="importUrl" :importTemplateData="importTemplateData" @success="importSuccess" :key="key" /> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -98,14 +98,14 @@ import { |
|
|
MoldMilestone, |
|
|
MoldMilestone, |
|
|
MoldMilestoneRules |
|
|
MoldMilestoneRules |
|
|
} from './moldAccounts.data' |
|
|
} from './moldAccounts.data' |
|
|
import { Item } from '@/views/eam/basic/item/item.data' |
|
|
import {Item} from '@/views/eam/basic/item/item.data' |
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
import { createDeviceItemBatch, getDeviceItemPage } from '@/api/eam/basic/rel' |
|
|
import {createDeviceItemBatch, getDeviceItemPage} from '@/api/eam/basic/rel' |
|
|
import * as MoldAccountsApi from '@/api/eam/mold/moldAccounts' |
|
|
import * as MoldAccountsApi from '@/api/eam/mold/moldAccounts' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import { MoldLedgerTabsList } from '@/utils/disposition/tabsList' |
|
|
import {MoldLedgerTabsList} from '@/utils/disposition/tabsList' |
|
|
import { MoldRepair } from '@/views/eam/mold/moldRepair/moldRepair.data' |
|
|
import {MoldRepair} from '@/views/eam/mold/moldRepair/moldRepair.data' |
|
|
import { DeviceItem } from '@/views/eam/basic/deviceItem/deviceItem.data' |
|
|
import {DeviceItem} from '@/views/eam/basic/deviceItem/deviceItem.data' |
|
|
import * as moldRepairApi from '@/api/eam/mold/moldRepair' |
|
|
import * as moldRepairApi from '@/api/eam/mold/moldRepair' |
|
|
import * as uploadApi from '@/api/eam/upload' |
|
|
import * as uploadApi from '@/api/eam/upload' |
|
|
import * as MoldMaintainOrderMainApi from '@/api/eam/mold/moldMaintainOrderMain' |
|
|
import * as MoldMaintainOrderMainApi from '@/api/eam/mold/moldMaintainOrderMain' |
|
@ -113,25 +113,25 @@ import * as MoldMaintainOrderMainApi from '@/api/eam/mold/moldMaintainOrderMain' |
|
|
import * as MoldMaintenanceMainApi from '@/api/eam/mold/moldMaintenanceMain' |
|
|
import * as MoldMaintenanceMainApi from '@/api/eam/mold/moldMaintenanceMain' |
|
|
import * as moldMaintenanceDetailApi from '@/api/eam/mold/moldMaintenanceDetail' |
|
|
import * as moldMaintenanceDetailApi from '@/api/eam/mold/moldMaintenanceDetail' |
|
|
import * as MoldMilestoneApi from '@/api/eam/basic/moldMilestone' |
|
|
import * as MoldMilestoneApi from '@/api/eam/basic/moldMilestone' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
import {getAccessToken} from '@/utils/auth' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
import * as SupplierApi from '@/api/eam/basic/supplier' |
|
|
import * as SupplierApi from '@/api/eam/basic/supplier' |
|
|
import { selectAllFactoryArea,selectAllFactoryAreaDept } from '@/api/system/dept' |
|
|
import {selectAllFactoryAreaDept} from '@/api/system/dept' |
|
|
import { cloneDeep } from 'lodash-es' |
|
|
import {cloneDeep} from 'lodash-es' |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
MoldMaintainOrderMain, |
|
|
|
|
|
MoldMaintainOrderDetail, |
|
|
MoldMaintainOrderDetail, |
|
|
|
|
|
MoldMaintainOrderMain, |
|
|
} from '../moldmaintainjob/moldMaintainOrderMain.data' |
|
|
} from '../moldmaintainjob/moldMaintainOrderMain.data' |
|
|
import { |
|
|
import { |
|
|
MoldMaintenanceMain, |
|
|
MoldMaintenanceDetail, |
|
|
MoldMaintenanceDetail |
|
|
MoldMaintenanceMain |
|
|
} from '../moldmaintenancejob/moldMaintenanceMain.data' |
|
|
} from '../moldmaintenancejob/moldMaintenanceMain.data' |
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
import {DICT_TYPE, getStrDictOptions} from '@/utils/dict' |
|
|
import SYMonthImportForm from "@/components/ImportForm/src/SYMonthImportForm.vue"; |
|
|
import SYMonthImportForm from "@/components/ImportForm/src/SYMonthImportForm.vue"; |
|
|
|
|
|
|
|
|
defineOptions({ name: 'MoldAccounts' }) |
|
|
defineOptions({ name: 'MoldAccounts' }) |
|
|
const importUrl = ref(''); |
|
|
const importUrl = ref(''); |
|
|
|
|
|
const key = ref(0) |
|
|
const tableRef = ref(null); |
|
|
const tableRef = ref(null); |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const { t } = useI18n() // 国际化 |
|
|
const { t } = useI18n() // 国际化 |
|
@ -334,7 +334,7 @@ const importSuccess = () => { |
|
|
// 筛选提交 |
|
|
// 筛选提交 |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
let isHave = searchData?.filters?.some((item) => item.column == 'sourceType') |
|
|
let isHave = searchData?.filters?.some((item) => item.column == 'sourceType') |
|
|
if (!isHave) { |
|
|
if (!isHave) { |
|
|
if (route.name == 'withinMoldAccounts') { |
|
|
if (route.name == 'withinMoldAccounts') { |
|
|
searchData.filters.push( |
|
|
searchData.filters.push( |
|
|
{ |
|
|
{ |
|
@ -357,7 +357,7 @@ const searchFormClick = (searchData) => { |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
filters: searchData.filters |
|
|
filters: searchData.filters |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
getList() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -440,12 +440,10 @@ onMounted(async () => { |
|
|
|
|
|
|
|
|
if (route.name == 'withinMoldAccounts') { |
|
|
if (route.name == 'withinMoldAccounts') { |
|
|
importTemplateData.templateUrl = await MoldAccountsApi.importTemplate("0") |
|
|
importTemplateData.templateUrl = await MoldAccountsApi.importTemplate("0") |
|
|
importUrl.value = "/eam/mold-accounts/import/0" |
|
|
|
|
|
importTemplateData.templateTitle = '厂内模具台账导入模版.xlsx' |
|
|
importTemplateData.templateTitle = '厂内模具台账导入模版.xlsx' |
|
|
} |
|
|
} |
|
|
if (route.name == 'outsideMoldAccounts') { |
|
|
if (route.name == 'outsideMoldAccounts') { |
|
|
importTemplateData.templateUrl = await MoldAccountsApi.importTemplate("1") |
|
|
importTemplateData.templateUrl = await MoldAccountsApi.importTemplate("1") |
|
|
importUrl.value = "/eam/mold-accounts/import/1" |
|
|
|
|
|
importTemplateData.templateTitle = '厂外台账导入模版.xlsx' |
|
|
importTemplateData.templateTitle = '厂外台账导入模版.xlsx' |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -457,6 +455,8 @@ const init = () => { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
sourceType: "0", |
|
|
sourceType: "0", |
|
|
} |
|
|
} |
|
|
|
|
|
importUrl.value = "/eam/mold-accounts/import/0" |
|
|
|
|
|
key.value +=1 |
|
|
} else if (route.name == 'outsideMoldAccounts') { |
|
|
} else if (route.name == 'outsideMoldAccounts') { |
|
|
MoldAccountsSchema.value.allSchemas.formSchema = MoldAccounts.allSchemas.formSchema.filter(item => item.field !== 'factoryAreaNumber' ) |
|
|
MoldAccountsSchema.value.allSchemas.formSchema = MoldAccounts.allSchemas.formSchema.filter(item => item.field !== 'factoryAreaNumber' ) |
|
|
MoldAccountsSchema.value.allSchemas.tableColumns = MoldAccounts.allSchemas.tableColumns.filter(item => item.field !== 'factoryAreaNumber') |
|
|
MoldAccountsSchema.value.allSchemas.tableColumns = MoldAccounts.allSchemas.tableColumns.filter(item => item.field !== 'factoryAreaNumber') |
|
@ -466,6 +466,8 @@ const init = () => { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
sourceType: "1", |
|
|
sourceType: "1", |
|
|
} |
|
|
} |
|
|
|
|
|
importUrl.value = "/eam/mold-accounts/import/1" |
|
|
|
|
|
key.value +=1 |
|
|
} |
|
|
} |
|
|
count.value++ |
|
|
count.value++ |
|
|
} |
|
|
} |
|
|