|
|
@ -1,6 +1,7 @@ |
|
|
|
// 打印功能数据整合
|
|
|
|
import { Enum } from "@/utils/index" |
|
|
|
import store from '@/store/index' |
|
|
|
import { getDepartByUserId }from '@/api/wms-api' |
|
|
|
/**/ |
|
|
|
// 打印【箱标签-单个】 (xiangbq.rdlx)
|
|
|
|
// 使用位置:补打标签 (RepairLabels.vue)
|
|
|
@ -218,7 +219,7 @@ const printEnumOption = { |
|
|
|
* @returns |
|
|
|
*/ |
|
|
|
//
|
|
|
|
export function initPrintAllData(propsData,name,enumOption,options,deptInfo,url){ |
|
|
|
export async function initPrintAllData(propsData,name,enumOption,options,deptInfo,url){ |
|
|
|
if(!propsData || propsData.details.length <= 0)return false |
|
|
|
let _printData = {details:[]} |
|
|
|
let _outData = {} |
|
|
@ -252,9 +253,12 @@ const printEnumOption = { |
|
|
|
// 部门相关信息获取
|
|
|
|
if(deptInfo && _printData.details[0] && _printData.details[0].creatorId && _printData.details[0].creatorId != 'null'){ |
|
|
|
// todo获取接口
|
|
|
|
await getDepartByUserId(_printData.details[0].creatorId) |
|
|
|
.then(res=>{ |
|
|
|
_printData.details.forEach(item=>{ |
|
|
|
item.deptCode = '111' |
|
|
|
item.deptName = '222' |
|
|
|
item.deptCode = res.code |
|
|
|
item.deptName = res.name |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
let data = { |
|
|
|