|
@ -73,6 +73,7 @@ |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
@tableFormSelectOnBlur="tableFormSelectOnBlur" |
|
|
@tableFormSelectOnBlur="tableFormSelectOnBlur" |
|
|
@clearSearchInput="clearSearchInput" |
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
|
|
:key="updateKey" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
@ -118,6 +119,7 @@ import * as ScrapRequestMainApi from '@/api/wms/scrapRequestMain' |
|
|
import * as ScrapRequestDetailApi from '@/api/wms/scrapRequestDetail' |
|
|
import * as ScrapRequestDetailApi from '@/api/wms/scrapRequestDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as StdcostpriceApi from '@/api/wms/stdcostprice' |
|
|
import * as StdcostpriceApi from '@/api/wms/stdcostprice' |
|
|
|
|
|
import { getSwitchByCode } from '@/api/wms/switch' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
@ -134,7 +136,27 @@ const tableColumns = ref([ |
|
|
...ScrapRequestMain.allSchemas.tableColumns, |
|
|
...ScrapRequestMain.allSchemas.tableColumns, |
|
|
...ScrapRequestDetail.allSchemas.tableMainColumns |
|
|
...ScrapRequestDetail.allSchemas.tableMainColumns |
|
|
]) |
|
|
]) |
|
|
|
|
|
const ScrapRequestMainAllSchema =ref(JSON.parse(JSON.stringify(ScrapRequestMain))) |
|
|
|
|
|
// 是否启用QMS开启显示q1q2q3 |
|
|
|
|
|
const EnableQms = ref(true) |
|
|
|
|
|
const updateKey = ref(0) |
|
|
|
|
|
const getSwitchByCode1 =async () => { |
|
|
|
|
|
await getSwitchByCode("EnableQms").then((res) => { |
|
|
|
|
|
EnableQms.value = res == 'TRUE' ? true : false |
|
|
|
|
|
if (EnableQms.value) { |
|
|
|
|
|
ScrapRequestMain.allSchemas = ScrapRequestMainAllSchema.value.allSchemas |
|
|
|
|
|
} else { |
|
|
|
|
|
ScrapRequestMain.allSchemas.formSchema = ScrapRequestMainAllSchema.value.allSchemas.formSchema.filter(item => item.field != 'q1Number'&&item.field != 'q2Number'&&item.field != 'q3Number') |
|
|
|
|
|
ScrapRequestMain.allSchemas.tableColumns = ScrapRequestMainAllSchema.value.allSchemas.tableColumns.filter(item => item.field != 'q1Number'&&item.field != 'q2Number'&&item.field != 'q3Number') |
|
|
|
|
|
ScrapRequestMain.allSchemas.tableFormColumns = ScrapRequestMainAllSchema.value.allSchemas.tableFormColumns.filter(item => item.field != 'q1Number'&&item.field != 'q2Number'&&item.field != 'q3Number') |
|
|
|
|
|
ScrapRequestMain.allSchemas.tableMainColumns = ScrapRequestMainAllSchema.value.allSchemas.tableMainColumns.filter(item => item.field != 'q1Number'&&item.field != 'q2Number'&&item.field != 'q3Number') |
|
|
|
|
|
ScrapRequestMain.allSchemas.detailSchema = ScrapRequestMainAllSchema.value.allSchemas.detailSchema.filter(item => item.field != 'q1Number'&&item.field != 'q2Number'&&item.field != 'q3Number') |
|
|
|
|
|
ScrapRequestMain.allSchemas.searchSchema = ScrapRequestMainAllSchema.value.allSchemas.searchSchema.filter(item => item.field != 'q1Number'&&item.field != 'q2Number'&&item.field != 'q3Number') |
|
|
|
|
|
} |
|
|
|
|
|
updateKey.value++ |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
getSwitchByCode1() |
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|