|
@ -136,7 +136,8 @@ defineOptions({ name: 'MoldAccounts' }) |
|
|
const tableRef = ref(null); |
|
|
const tableRef = ref(null); |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const { t } = useI18n() // 国际化 |
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
// sourceType 厂内:0 厂外:1 init方法赋值 |
|
|
|
|
|
const sourceType = ref("") |
|
|
const route = useRoute() // 路由信息 |
|
|
const route = useRoute() // 路由信息 |
|
|
const routeName = ref() |
|
|
const routeName = ref() |
|
|
const MoldAccountsSchema = ref(cloneDeep(MoldAccounts)) |
|
|
const MoldAccountsSchema = ref(cloneDeep(MoldAccounts)) |
|
@ -416,17 +417,19 @@ const changeTabs = (item) => { |
|
|
const count = ref(0) |
|
|
const count = ref(0) |
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
|
|
|
init() |
|
|
getList() |
|
|
getList() |
|
|
importTemplateData.templateUrl = await MoldAccountsApi.importTemplate() |
|
|
importTemplateData.templateUrl = await MoldAccountsApi.importTemplate() |
|
|
init() |
|
|
|
|
|
}) |
|
|
}) |
|
|
const init = () => { |
|
|
const init = () => { |
|
|
console.log(90,route.name) |
|
|
console.log(90,route.name) |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
if (route.name == 'withinMoldAccounts') { |
|
|
if (route.name == 'withinMoldAccounts') { |
|
|
|
|
|
sourceType.value = "0"; |
|
|
MoldAccountsSchema.value.allSchemas.formSchema = MoldAccounts.allSchemas.formSchema.filter(item => item.field !== 'outsourcedSuppliers') |
|
|
MoldAccountsSchema.value.allSchemas.formSchema = MoldAccounts.allSchemas.formSchema.filter(item => item.field !== 'outsourcedSuppliers') |
|
|
console.log( MoldAccountsSchema.value.allSchemas.formSchema) |
|
|
MoldAccountsSchema.value.allSchemas.tableColumns = MoldAccounts.allSchemas.tableColumns.filter(item => item.field !== 'outsourcedSuppliers') |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
sourceType.value = "1"; |
|
|
MoldAccountsSchema.value= cloneDeep(MoldAccounts) |
|
|
MoldAccountsSchema.value= cloneDeep(MoldAccounts) |
|
|
} |
|
|
} |
|
|
count.value++ |
|
|
count.value++ |
|
@ -498,5 +501,4 @@ const qrCodeBatch = async (val,item) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|