Browse Source

装配记录打印标签 扩展参数

hella_online_20240829
陈薪名 4 months ago
parent
commit
08665bfd83
  1. 5
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

5
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -261,10 +261,11 @@ const handleCreateInspectRequest = async (number:string) => {
const searchTableRef = ref() const searchTableRef = ref()
const labelType = ref('') // const labelType = ref('') //
const labelPrint = async (row) => { const labelPrint = async (row) => {
tableObject.loading = true tableObject.loading = true
// //
let resType = await PackageApi.getPackagePage({ let resType = await PackageApi.getPackagePage({
requestNumber: row.requestNumber requestNumber: row.requestNumber==null?row.number:row.requestNumber
}) })
if(resType.list.length > 0) { if(resType.list.length > 0) {
if (resType.list[0].productionLineCode != null) { if (resType.list[0].productionLineCode != null) {
@ -273,7 +274,7 @@ const labelPrint = async (row) => {
labelType.value = 'cg' labelType.value = 'cg'
} }
} }
const defaultParams = {'moduleName':'productreceipt_assemble','recordNumber':row.requestNumber} const defaultParams = {'moduleName':'productreceipt_assemble','recordNumber':row.requestNumber==null?row.number:row.requestNumber}
const {tableObject:tableObjectPrint ,tableMethods} = useTable({ const {tableObject:tableObjectPrint ,tableMethods} = useTable({
defaultParams, defaultParams,
getListApi: PackageApi.getLabelDetailPage // getListApi: PackageApi.getLabelDetailPage //

Loading…
Cancel
Save