|
|
@ -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> |
|
|
|
|
|
|
@ -114,24 +114,24 @@ import * as MoldMaintenanceMainApi from '@/api/eam/mold/moldMaintenanceMain' |
|
|
|
import * as moldMaintenanceDetailApi from '@/api/eam/mold/moldMaintenanceDetail' |
|
|
|
import * as MoldMilestoneApi from '@/api/eam/basic/moldMilestone' |
|
|
|
import {getAccessToken} from '@/utils/auth' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
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 { |
|
|
|
MoldMaintainOrderMain, |
|
|
|
MoldMaintainOrderDetail, |
|
|
|
MoldMaintainOrderMain, |
|
|
|
} from '../moldmaintainjob/moldMaintainOrderMain.data' |
|
|
|
import { |
|
|
|
MoldMaintenanceMain, |
|
|
|
MoldMaintenanceDetail |
|
|
|
MoldMaintenanceDetail, |
|
|
|
MoldMaintenanceMain |
|
|
|
} from '../moldmaintenancejob/moldMaintenanceMain.data' |
|
|
|
import {DICT_TYPE, getStrDictOptions} from '@/utils/dict' |
|
|
|
import SYMonthImportForm from "@/components/ImportForm/src/SYMonthImportForm.vue"; |
|
|
|
|
|
|
|
defineOptions({ name: 'MoldAccounts' }) |
|
|
|
const importUrl = ref(''); |
|
|
|
const key = ref(0) |
|
|
|
const tableRef = ref(null); |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
@ -440,12 +440,10 @@ onMounted(async () => { |
|
|
|
|
|
|
|
if (route.name == 'withinMoldAccounts') { |
|
|
|
importTemplateData.templateUrl = await MoldAccountsApi.importTemplate("0") |
|
|
|
importUrl.value = "/eam/mold-accounts/import/0" |
|
|
|
importTemplateData.templateTitle = '厂内模具台账导入模版.xlsx' |
|
|
|
} |
|
|
|
if (route.name == 'outsideMoldAccounts') { |
|
|
|
importTemplateData.templateUrl = await MoldAccountsApi.importTemplate("1") |
|
|
|
importUrl.value = "/eam/mold-accounts/import/1" |
|
|
|
importTemplateData.templateTitle = '厂外台账导入模版.xlsx' |
|
|
|
} |
|
|
|
}) |
|
|
@ -457,6 +455,8 @@ const init = () => { |
|
|
|
tableObject.params = { |
|
|
|
sourceType: "0", |
|
|
|
} |
|
|
|
importUrl.value = "/eam/mold-accounts/import/0" |
|
|
|
key.value +=1 |
|
|
|
} else if (route.name == 'outsideMoldAccounts') { |
|
|
|
MoldAccountsSchema.value.allSchemas.formSchema = MoldAccounts.allSchemas.formSchema.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 = { |
|
|
|
sourceType: "1", |
|
|
|
} |
|
|
|
importUrl.value = "/eam/mold-accounts/import/1" |
|
|
|
key.value +=1 |
|
|
|
} |
|
|
|
count.value++ |
|
|
|
} |
|
|
|