|
|
@ -127,6 +127,7 @@ import { |
|
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
import {getLabelDetailPage} from "@/api/wms/package"; |
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
// 装配收货记录主 |
|
|
|
defineOptions({ name: 'ProductreceiptRecordMainA' }) |
|
|
@ -238,7 +239,7 @@ const butttondata = (row,$index) => { |
|
|
|
} |
|
|
|
return [ |
|
|
|
// defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请 |
|
|
|
defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" || row.recoveryRequestFlag == "TRUE"}),// 生成采购上架申请 |
|
|
|
// defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" || row.recoveryRequestFlag == "TRUE"}),// 生成采购上架申请 |
|
|
|
defaultButtons.mainListPointBtn(null), // 标签打印 |
|
|
|
defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // 制品回收 //recoveryRequestFlag==TRUE不展示 |
|
|
|
] |
|
|
@ -318,17 +319,17 @@ const labelPrint = async (row) => { |
|
|
|
} |
|
|
|
} |
|
|
|
const defaultParams = { |
|
|
|
moduleName: 'productreceipt_assemble', |
|
|
|
tableName: 'record_productreceipt_main', |
|
|
|
recordNumber: row.number, |
|
|
|
number: row.number == null ? row.number : row.packingNumber, |
|
|
|
itemCode: row.itemCode, |
|
|
|
batch: row.batch |
|
|
|
} |
|
|
|
moduleName: 'productreceipt_assemble', |
|
|
|
// tableName: 'record_productreceipt_main', |
|
|
|
recordNumber: row.requestNumber, |
|
|
|
// number: row.number == null ? row.number : row.packingNumber, |
|
|
|
// itemCode: row.itemCode, |
|
|
|
// batch: row.batch |
|
|
|
} |
|
|
|
const {tableObject:tableObjectPrint ,tableMethods} = useTable({ |
|
|
|
defaultParams, |
|
|
|
// getListApi: PackageApi.getProductreceiptLabelDetailPage // 分页接口 |
|
|
|
getListApi: PackageApi.getLabelDetailPageByRecordId // 分页接口 |
|
|
|
getListApi: PackageApi.getLabelDetailPage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
|