diff --git a/src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue b/src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue index 45065f6eb..1404bc0d4 100644 --- a/src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue @@ -134,7 +134,7 @@ const { tableObject, tableMethods } = useTable({ businessType.value = 'MoveContainerManage' importFileName.value = '器具转移申请' } else if ( routeName.value == 'deliverContainerMainRequest') { - tableObject.params = {InitialContainerManage + tableObject.params = { type: 'DELIVER', } // fromLocationCode.value = null @@ -278,6 +278,15 @@ const buttonBaseClick = (val, item) => { } } +// 根据状态返回该按钮是否显示 +const isShowMainButton = (row,val) => { + if (val.indexOf(row.status) > -1) { + return false + } else { + return true + } +} + // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue b/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue index 13b18bc25..43462be56 100644 --- a/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue @@ -113,7 +113,7 @@ const { tableObject, tableMethods } = useTable({ tableObject.params = { type:'INITIAL' } - businessType.value = 'InitialContainerManage' + businessType.value = 'InitialContainerManageRequest' importFileName.value = '器具初始化申请' } @@ -374,7 +374,7 @@ const submitForm = async (formType,data) => { if (formType === 'create') { data.businessType = businessType.value console.log(data.businessType,999); - + await ContainerMainRequestApi.createContainerMainRequest(data) message.success(t('common.createSuccess')) } else {