|
@ -71,6 +71,7 @@ import { StockupMainJob,StockupMainJobRules,StockupDetailJob,StockupDetailJobRul |
|
|
import * as StockupJobMainApi from '@/api/wms/stockupMainJob' |
|
|
import * as StockupJobMainApi from '@/api/wms/stockupMainJob' |
|
|
import * as StockupJobDetailApi from '@/api/wms/stockupDetailJob' |
|
|
import * as StockupJobDetailApi from '@/api/wms/stockupDetailJob' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
|
|
|
|
|
// 备货任务主 |
|
|
// 备货任务主 |
|
|
defineOptions({ name: 'StockupJobMain' }) |
|
|
defineOptions({ name: 'StockupJobMain' }) |
|
@ -199,11 +200,14 @@ const buttonTableClick = async (val, row) => { |
|
|
StockupJobMainApi.acceptStockupMainJob(row.id) |
|
|
StockupJobMainApi.acceptStockupMainJob(row.id) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|
|
|
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) => { |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'jobStockupMain') |
|
|
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,'stockupMainJob') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const handleHandle = async (data) => { |
|
|
const handleHandle = async (data) => { |
|
|