Browse Source

库存移动记录新--打印

linshi20240813
wangyufei 3 months ago
parent
commit
580bebb1b7
  1. 25
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

25
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

@ -216,18 +216,23 @@ const getLabelType = async (row,useToPackingNumber)=>{
getLabelType(row,true)
}
}
const labelPrint = async (row) => {
tableObject.loading = true
//
await getLabelType(row,false)
const defaultParams = {'moduleName':'productreceipt_predict','tableName':'record_productreceipt_main','recordNumber':row.number}
const getLabelDetailPage = async (row,useToPackingNumber)=>{
let defaultParams = {'moduleName':'productreceipt_predict','recordNumber':row.number}
if(useToPackingNumber){
defaultParams = {'moduleName':'productreceipt_predict','number':row.toPackingNumber}
}
const {tableObject:tableObjectPrint ,tableMethods} = useTable({
defaultParams,
getListApi: PackageApi.getLabelDetailPage //
})
//
const { getList:getListPrint } = tableMethods
getListPrint()
await getListPrint()
if(!tableObjectPrint || !tableObjectPrint.tableList || tableObjectPrint.tableList.length==0){
getLabelDetailPage(row,true)
return
}
console.log('tableObjectPrint',tableObjectPrint)
tableObject.loading = false
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns
tableColumns.forEach((item) => {
@ -235,6 +240,14 @@ const labelPrint = async (row) => {
})
searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true)
}
const labelPrint = async (row) => {
tableObject.loading = true
//
await getLabelType(row,false)
await getLabelDetailPage(row,false)
}
// --
const searchTableSuccessLabel = async (formField, searchField, val, formRef, type, row) => {
console.log('批量打印',val)

Loading…
Cancel
Save