|
|
@ -70,17 +70,38 @@ |
|
|
|
fromeWhere="putawayRequest" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:detailButtonIsShowAdd="false" |
|
|
|
:buttondataTable="buttondataTable" |
|
|
|
@tableFormButton="tableFormButton" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm ref="importFormRef" url="/wms/putaway-request-main/import" :importTemplateData="importTemplateData" |
|
|
|
@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> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
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 PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
@ -202,8 +223,6 @@ const butttondata = (row) => { |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'mainClose') { // 关闭 |
|
|
@ -223,6 +242,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
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() |
|
|
|
/** 详情操作 */ |
|
|
@ -322,6 +349,32 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
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) => { |
|
|
|
try { |
|
|
|