|
@ -145,6 +145,7 @@ import * as BalanceApi from "@/api/wms/balance"; |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
import { getSwitchByCode } from '@/api/wms/switch' |
|
|
import { getSwitchByCode } from '@/api/wms/switch' |
|
|
|
|
|
import { cloneDeep } from 'lodash-es' |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
// 制品报废申请 |
|
|
// 制品报废申请 |
|
|
defineOptions({ name: 'ProductscrapRequestMain' }) |
|
|
defineOptions({ name: 'ProductscrapRequestMain' }) |
|
@ -156,7 +157,7 @@ const route = useRoute() // 路由信息 |
|
|
const routeName = ref() |
|
|
const routeName = ref() |
|
|
routeName.value = route.name |
|
|
routeName.value = route.name |
|
|
const tableColumns = ref([...ProductscrapRequestMain.allSchemas.tableColumns,...ProductscrapRequestDetail.allSchemas.tableMainColumns]) |
|
|
const tableColumns = ref([...ProductscrapRequestMain.allSchemas.tableColumns,...ProductscrapRequestDetail.allSchemas.tableMainColumns]) |
|
|
const ProductscrapRequestMainAllSchema =ref(JSON.parse(JSON.stringify(ProductscrapRequestMain))) |
|
|
const ProductscrapRequestMainAllSchema = ref(cloneDeep(ProductscrapRequestMain)) |
|
|
// 是否启用QMS开启显示q1q2q3 |
|
|
// 是否启用QMS开启显示q1q2q3 |
|
|
const EnableQms = ref(true) |
|
|
const EnableQms = ref(true) |
|
|
const updateKey = ref(0) |
|
|
const updateKey = ref(0) |
|
@ -166,7 +167,7 @@ const getSwitchByCode1 =async () => { |
|
|
if (EnableQms.value) { |
|
|
if (EnableQms.value) { |
|
|
ProductscrapRequestMain.allSchemas = ProductscrapRequestMainAllSchema.value.allSchemas |
|
|
ProductscrapRequestMain.allSchemas = ProductscrapRequestMainAllSchema.value.allSchemas |
|
|
} else { |
|
|
} else { |
|
|
ProductscrapRequestMain.allSchemas.formSchema = ProductscrapRequestMainAllSchema.value.allSchemas.formSchema.filter(item =>item.field != 'q3Number') |
|
|
ProductscrapRequestMain.allSchemas.formSchema = ProductscrapRequestMainAllSchema.value.allSchemas.formSchema.filter(item => item.field != 'q3Number') |
|
|
ProductscrapRequestMain.allSchemas.tableColumns = ProductscrapRequestMainAllSchema.value.allSchemas.tableColumns.filter(item => item.field != 'q3Number') |
|
|
ProductscrapRequestMain.allSchemas.tableColumns = ProductscrapRequestMainAllSchema.value.allSchemas.tableColumns.filter(item => item.field != 'q3Number') |
|
|
ProductscrapRequestMain.allSchemas.tableFormColumns = ProductscrapRequestMainAllSchema.value.allSchemas.tableFormColumns.filter(item => item.field != 'q3Number') |
|
|
ProductscrapRequestMain.allSchemas.tableFormColumns = ProductscrapRequestMainAllSchema.value.allSchemas.tableFormColumns.filter(item => item.field != 'q3Number') |
|
|
ProductscrapRequestMain.allSchemas.tableMainColumns = ProductscrapRequestMainAllSchema.value.allSchemas.tableMainColumns.filter(item => item.field != 'q3Number') |
|
|
ProductscrapRequestMain.allSchemas.tableMainColumns = ProductscrapRequestMainAllSchema.value.allSchemas.tableMainColumns.filter(item => item.field != 'q3Number') |
|
@ -541,6 +542,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
setV['costCenterType'] = val[0]['costcentreType'] |
|
|
setV['costCenterType'] = val[0]['costcentreType'] |
|
|
}else if(formField == 'productionLineCode'){ |
|
|
}else if(formField == 'productionLineCode'){ |
|
|
tableData.value = [] |
|
|
tableData.value = [] |
|
|
|
|
|
} else if(formField == 'workshopCode'){ |
|
|
|
|
|
tableData.value = [] |
|
|
} |
|
|
} |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
} |
|
|
} |
|
|