|
|
@ -59,12 +59,32 @@ |
|
|
|
:apiPage="apiPage" |
|
|
|
:tabs="PurchasereceiptRequestTabsList" |
|
|
|
@changeTabs="changeTabs" |
|
|
|
:buttondataTable="buttondataTable" |
|
|
|
@tableFormButton="tableFormButton" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 子包装弹窗 --> |
|
|
|
<BasicForm |
|
|
|
ref="detailParenPackingRef" |
|
|
|
@success="getList" |
|
|
|
:tableAllSchemas="PurchasereceiptRecordDetailPackingNumber.allSchemas" |
|
|
|
:tableFormRules="PurchasereceiptRecordDetailRules" |
|
|
|
:tableData="packingDetatableData.tableList" |
|
|
|
:isBusiness="true" |
|
|
|
:isShowButton="false" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowFooterButtton="false" |
|
|
|
/> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
import { PurchasereceiptRecordMain,PurchasereceiptRecordMainRules,PurchasereceiptRecordDetail,PurchasereceiptRecordDetailRules } from './purchasereceiptRecordMain.data' |
|
|
|
import { PurchasereceiptRecordMain, |
|
|
|
PurchasereceiptRecordMainRules, |
|
|
|
PurchasereceiptRecordDetail, |
|
|
|
PurchasereceiptRecordDetailRules, |
|
|
|
PurchasereceiptRecordDetailPackingNumber } from './purchasereceiptRecordMain.data' |
|
|
|
import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain' |
|
|
|
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
@ -139,7 +159,6 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 生成采购上架申请按钮操作 */ |
|
|
|
const handleCreatePutawayRequest = async (number:string) => { |
|
|
|
try{ |
|
|
@ -166,12 +185,43 @@ const handleCreateInspectRequest = async (number:string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 子包装数据 |
|
|
|
const detailParenPackingRef = ref() |
|
|
|
const { tableObject: packingDetatableData, tableMethods: packDetatableMethods } = useTable({ |
|
|
|
getListApi: PurchasereceiptRecordDetailApi.queryPurchaseceiptChildPackingNumber |
|
|
|
}) |
|
|
|
const { getList:queryDetailList } = packDetatableMethods |
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
|
const detailRef = ref() |
|
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue,'recordPurchasereceiptMain') |
|
|
|
} |
|
|
|
|
|
|
|
// 详情 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 exportLoading = ref(false) // 导出的加载中 |
|
|
|
const handleExport = async () => { |
|
|
|