|
@ -66,7 +66,7 @@ |
|
|
ref="detailRef" |
|
|
ref="detailRef" |
|
|
:isBasic="false" |
|
|
:isBasic="false" |
|
|
:allSchemas="CountJobMain.allSchemas" |
|
|
:allSchemas="CountJobMain.allSchemas" |
|
|
:detailAllSchemas="countJobDetailTableColumns" |
|
|
:detailAllSchemas="countJobDetailTableColumns.allSchemas" |
|
|
:detailAllSchemasRules="CountJobDetailRules" |
|
|
:detailAllSchemasRules="CountJobDetailRules" |
|
|
:searchTableParams="searchTableParams" |
|
|
:searchTableParams="searchTableParams" |
|
|
:apiPage="CountJobDetailApi.getCountJobDetailPage" |
|
|
:apiPage="CountJobDetailApi.getCountJobDetailPage" |
|
@ -88,6 +88,7 @@ |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
|
|
|
import { cloneDeep } from 'lodash-es' |
|
|
import { |
|
|
import { |
|
|
CountJobMain, |
|
|
CountJobMain, |
|
|
CountJobMainRules, |
|
|
CountJobMainRules, |
|
@ -319,7 +320,7 @@ const handleDone = async (id: number) => { |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const countJobDetailTableColumns = ref({}) |
|
|
const countJobDetailTableColumns = cloneDeep(CountJobDetail) |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const departmentCode = wsCache |
|
|
const departmentCode = wsCache |
|
|
.get(CACHE_KEY.DEPT) |
|
|
.get(CACHE_KEY.DEPT) |
|
@ -339,9 +340,9 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
// ) |
|
|
// ) |
|
|
// }w |
|
|
// }w |
|
|
if (row.isOpenCount == "FALSE") { |
|
|
if (row.isOpenCount == "FALSE") { |
|
|
countJobDetailTableColumns.value.tableColumns = CountJobDetail.allSchemas.tableColumns.filter(item=>item.field != 'qty') |
|
|
countJobDetailTableColumns.allSchemas.tableColumns = CountJobDetail.allSchemas.tableColumns.filter(item=>item.field != 'qty') |
|
|
}else{ |
|
|
}else{ |
|
|
countJobDetailTableColumns.value.tableColumns = CountJobDetail.allSchemas.tableColumns.filter(item=>item.field) |
|
|
countJobDetailTableColumns.allSchemas.tableColumns = CountJobDetail.allSchemas.tableColumns.filter(item=>item.field) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'jobCountMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'jobCountMain') |
|
|