|
@ -70,17 +70,38 @@ |
|
|
fromeWhere="putawayRequest" |
|
|
fromeWhere="putawayRequest" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
:detailButtonIsShowAdd="false" |
|
|
:detailButtonIsShowAdd="false" |
|
|
|
|
|
:buttondataTable="buttondataTable" |
|
|
|
|
|
@tableFormButton="tableFormButton" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
|
<ImportForm ref="importFormRef" url="/wms/putaway-request-main/import" :importTemplateData="importTemplateData" |
|
|
<ImportForm ref="importFormRef" url="/wms/putaway-request-main/import" :importTemplateData="importTemplateData" |
|
|
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> |
|
|
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 子包装弹窗 --> |
|
|
|
|
|
<BasicForm |
|
|
|
|
|
ref="detailParenPackingRef" |
|
|
|
|
|
@success="getList" |
|
|
|
|
|
:tableAllSchemas="PutawayRequestDetailChildPackingNumber.allSchemas" |
|
|
|
|
|
:tableFormRules="PutawayRequestDetailRules" |
|
|
|
|
|
:tableData="packingDetatableData.tableList" |
|
|
|
|
|
:isBusiness="true" |
|
|
|
|
|
:isShowButton="false" |
|
|
|
|
|
:isShowReduceButton="false" |
|
|
|
|
|
:isShowFooterButtton="false" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<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 { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { PutawayRequestMain,PutawayRequestMainRules,PutawayRequestDetail,PutawayRequestDetailRules } from './putawayRequestMain.data' |
|
|
import { PutawayRequestMain, |
|
|
|
|
|
PutawayRequestMainRules, |
|
|
|
|
|
PutawayRequestDetail, |
|
|
|
|
|
PutawayRequestDetailRules, |
|
|
|
|
|
PutawayRequestDetailChildPackingNumber } from './putawayRequestMain.data' |
|
|
import * as PutawayRequestMainApi from '@/api/wms/putawayRequestMain' |
|
|
import * as PutawayRequestMainApi from '@/api/wms/putawayRequestMain' |
|
|
import * as PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail' |
|
|
import * as PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
@ -202,8 +223,6 @@ const butttondata = (row) => { |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'mainClose') { // 关闭 |
|
|
if (val == 'mainClose') { // 关闭 |
|
@ -223,6 +242,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const formRef = ref() |
|
|
const formRef = ref() |
|
|
const openForm =async (type: string, row?: number) => { |
|
|
const openForm =async (type: string, row?: number) => { |
|
@ -312,6 +332,13 @@ const handleSubmit = async (id: number) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 子包装数据 |
|
|
|
|
|
const detailParenPackingRef = ref() |
|
|
|
|
|
const { tableObject: packingDetatableData, tableMethods: packDetatableMethods } = useTable({ |
|
|
|
|
|
getListApi: PutawayRequestDetailApi.getPutawayRequestDetailPageChildPackingNumber |
|
|
|
|
|
}) |
|
|
|
|
|
const { getList:queryDetailList } = packDetatableMethods |
|
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
// 获取部门 用于详情 部门回显 |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
@ -322,6 +349,32 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'requestPutawayMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'requestPutawayMain') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 详情 table 操作扩展 按钮 |
|
|
|
|
|
const buttondataTable = ref([{ |
|
|
|
|
|
label: '查看其他包装规格', |
|
|
|
|
|
name: 'viewParentPickingNumber', |
|
|
|
|
|
hide: false, |
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
icon: '', |
|
|
|
|
|
color: '', |
|
|
|
|
|
hasPermi: '', |
|
|
|
|
|
link: true, // 文本展现按钮 |
|
|
|
|
|
}]) |
|
|
|
|
|
|
|
|
|
|
|
// 查看其他包装规格 |
|
|
|
|
|
const tableFormButton = async (val , row) => { |
|
|
|
|
|
if (val == 'viewParentPickingNumber') { //查看其他包装规格 |
|
|
|
|
|
packingDetatableData.params = { |
|
|
|
|
|
masterId:row.masterId, |
|
|
|
|
|
parentPackingNumber:row.packingNumber |
|
|
|
|
|
} |
|
|
|
|
|
await queryDetailList() |
|
|
|
|
|
detailParenPackingRef.value.open('create', row, null,'viewDetail')//查看明细数据 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
/** 删除按钮操作 */ |
|
|
const handleDelete = async (id: number) => { |
|
|
const handleDelete = async (id: number) => { |
|
|
try { |
|
|
try { |
|
|