|
@ -62,12 +62,34 @@ |
|
|
:detailAllSchemasRules="PurchasereceiptJobDetailRules" |
|
|
:detailAllSchemasRules="PurchasereceiptJobDetailRules" |
|
|
:searchTableParams="searchTableParams" |
|
|
:searchTableParams="searchTableParams" |
|
|
:apiPage="PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPage" |
|
|
:apiPage="PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPage" |
|
|
|
|
|
:buttondataTable="buttondataTable" |
|
|
|
|
|
@tableFormButton="tableFormButton" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 子包装弹窗 --> |
|
|
|
|
|
<BasicForm |
|
|
|
|
|
ref="detailParenPackingRef" |
|
|
|
|
|
@success="getList" |
|
|
|
|
|
:tableAllSchemas="PurchasereceiptJobDetailPackingNumber.allSchemas" |
|
|
|
|
|
:tableFormRules="PurchasereceiptJobDetailRules" |
|
|
|
|
|
: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 { PurchasereceiptJobMain,PurchasereceiptJobMainRules,PurchasereceiptJobDetail,PurchasereceiptJobDetailRules } from './purchasereceiptJobMain.data' |
|
|
import { PurchasereceiptJobMain, |
|
|
|
|
|
PurchasereceiptJobMainRules, |
|
|
|
|
|
PurchasereceiptJobDetail, |
|
|
|
|
|
PurchasereceiptJobDetailRules, |
|
|
|
|
|
PurchasereceiptJobDetailPackingNumber } from './purchasereceiptJobMain.data' |
|
|
import * as PurchasereceiptJobMainApi from '@/api/wms/purchasereceiptJobMain' |
|
|
import * as PurchasereceiptJobMainApi from '@/api/wms/purchasereceiptJobMain' |
|
|
import * as PurchasereceiptJobDetailApi from '@/api/wms/purchasereceiptJobDetail' |
|
|
import * as PurchasereceiptJobDetailApi from '@/api/wms/purchasereceiptJobDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
@ -202,12 +224,44 @@ const handleClose = async (id: number) => { |
|
|
} catch {} |
|
|
} catch {} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 子包装数据 |
|
|
|
|
|
const detailParenPackingRef = ref() |
|
|
|
|
|
const { tableObject: packingDetatableData, tableMethods: packDetatableMethods } = useTable({ |
|
|
|
|
|
getListApi: PurchasereceiptJobDetailApi.queryPurchaseceiptChildPackingNumber |
|
|
|
|
|
}) |
|
|
|
|
|
const { getList:queryDetailList } = packDetatableMethods |
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
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,'jobPurchasereceiptMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'jobPurchasereceiptMain') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 详情 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 exportLoading = ref(false) // 导出的加载中 |
|
|
const handleExport = async () => { |
|
|
const handleExport = async () => { |
|
|