|
|
@ -192,6 +192,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
newRow['toBatch'] = item['batch'] |
|
|
|
newRow['fromLocationCode'] = item['locationCode'] |
|
|
|
newRow['inventoryStatus'] = item['inventoryStatus'] |
|
|
|
newRow['packUnit'] = item['packUnit'] |
|
|
|
newRow['packQty'] = item['packQty'] |
|
|
|
tableData.value.push(newRow) |
|
|
|
}) |
|
|
|
let itemCodes = [] |
|
|
@ -229,10 +231,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
// console.log(row['itemCode']); |
|
|
|
// ItembasicApi.getItemListByCodes(row['itemCode']) |
|
|
|
row['downItemCode'] = val[0]['code'] |
|
|
|
} else if(formField == 'packUnit'){ |
|
|
|
row['packUnit'] = val[0]['packUnit'] |
|
|
|
row['packQty'] = val[0]['packQty'] |
|
|
|
}else if (formField == 'toLocationCode') { |
|
|
|
} else if (formField == 'toLocationCode') { |
|
|
|
row['toLocationCode'] = val[0]['code'] |
|
|
|
} else { |
|
|
|
row[formField] = val[0][searchField] |
|
|
@ -400,16 +399,17 @@ const butttondata = (row,$index) => { |
|
|
|
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:relegate-request-main:agree'}), // 审批通过 |
|
|
|
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:relegate-request-main:handle'}), // 处理 |
|
|
|
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:relegate-request-main:update'}), // 编辑 |
|
|
|
{ |
|
|
|
label: '创建标签', |
|
|
|
name: 'cjbq', |
|
|
|
hide: isShowMainButton(row,['3']), |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: '', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
},defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), // 标签打印 |
|
|
|
// { |
|
|
|
// label: '创建标签', |
|
|
|
// name: 'cjbq', |
|
|
|
// hide: isShowMainButton(row,['3']), |
|
|
|
// type: 'primary', |
|
|
|
// icon: '', |
|
|
|
// color: '', |
|
|
|
// hasPermi: '', |
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
// }, |
|
|
|
defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), // 标签打印 |
|
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:relegate-request-main:delete'}), // 删除 |
|
|
|
] |
|
|
|
} |
|
|
|