|
@ -371,6 +371,20 @@ const isASNShowMainButton = (row,val) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
|
|
const isASNShowMainButtonCreateLabel = (row,val) => { |
|
|
|
|
|
if (val.indexOf(row.status) > -1) { |
|
|
|
|
|
if(row.sourceType == 'ASN_ExternalReceipt' && row.asnOutLabel == '2'){ |
|
|
|
|
|
return true; |
|
|
|
|
|
}else{ |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row,$index) => { |
|
|
const butttondata = (row,$index) => { |
|
|
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 |
|
|
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 |
|
@ -386,7 +400,7 @@ const butttondata = (row,$index) => { |
|
|
{ |
|
|
{ |
|
|
label: '生成标签', |
|
|
label: '生成标签', |
|
|
name: 'ssbq', |
|
|
name: 'ssbq', |
|
|
hide: isASNShowMainButton(row, ['3']), |
|
|
hide: isASNShowMainButtonCreateLabel(row, ['3']), |
|
|
type: 'primary', |
|
|
type: 'primary', |
|
|
icon: '', |
|
|
icon: '', |
|
|
color: '', |
|
|
color: '', |
|
|