|
@ -99,6 +99,7 @@ |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { ProductdismantleRequestMain,ProductdismantleRequestMainRules,ProductdismantleRequestDetaila,ProductdismantleRequestDetailaRules,BomDismantle } from './productdismantleRequestMain.data' |
|
|
import { ProductdismantleRequestMain,ProductdismantleRequestMainRules,ProductdismantleRequestDetaila,ProductdismantleRequestDetailaRules,BomDismantle } from './productdismantleRequestMain.data' |
|
|
import * as ProductdismantleRequestMainApi from '@/api/wms/productdismantleRequestMain' |
|
|
import * as ProductdismantleRequestMainApi from '@/api/wms/productdismantleRequestMain' |
|
|
import * as ProductdismantleRequestDetailApi from '@/api/wms/productdismantleRequestDetaila' |
|
|
import * as ProductdismantleRequestDetailApi from '@/api/wms/productdismantleRequestDetaila' |
|
@ -463,6 +464,8 @@ const openForm =async (type: string, row?: number) => { |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|
|
|
const { wsCache } = useCache() |
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
@ -473,6 +476,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 |
|
|
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 |
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
] |
|
|
] |
|
|
|
|
|
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name |
|
|
|
|
|
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'requestProductdismantleMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'requestProductdismantleMain') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|