|
|
@ -136,8 +136,6 @@ defineOptions({ name: 'MoldAccounts' }) |
|
|
|
const tableRef = ref(null); |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
// sourceType 厂内:0 厂外:1 init方法赋值 |
|
|
|
const sourceType = ref("") |
|
|
|
const route = useRoute() // 路由信息 |
|
|
|
const routeName = ref() |
|
|
|
const MoldAccountsSchema = ref(cloneDeep(MoldAccounts)) |
|
|
@ -251,10 +249,10 @@ const openForm = (type: string, row?: any) => { |
|
|
|
|
|
|
|
// form表单提交 |
|
|
|
const formsSuccess = async (formType, data) => { |
|
|
|
|
|
|
|
data.sourceType = route.name == 'withinMoldAccounts'?"0":"1" |
|
|
|
if (formType === 'create') { |
|
|
|
const param = { |
|
|
|
number : data.number |
|
|
|
number : data.number, |
|
|
|
} |
|
|
|
// 判断模具编号是否存在 |
|
|
|
let flag = false |
|
|
@ -444,14 +442,12 @@ onMounted(async () => { |
|
|
|
}) |
|
|
|
const init = () => { |
|
|
|
if (route.name == 'withinMoldAccounts') { |
|
|
|
// sourceType.value = "0"; |
|
|
|
MoldAccountsSchema.value.allSchemas.formSchema = MoldAccounts.allSchemas.formSchema.filter(item => item.field !== 'outsourcedSuppliers') |
|
|
|
MoldAccountsSchema.value.allSchemas.tableColumns = MoldAccounts.allSchemas.tableColumns.filter(item => item.field !== 'outsourcedSuppliers') |
|
|
|
tableObject.params = { |
|
|
|
sourceType: "0", |
|
|
|
} |
|
|
|
} else { |
|
|
|
// sourceType.value = "1"; |
|
|
|
MoldAccountsSchema.value = cloneDeep(MoldAccounts) |
|
|
|
tableObject.params = { |
|
|
|
sourceType: "1", |
|
|
|