|
|
@ -215,16 +215,16 @@ const butttondata = (row) => { |
|
|
|
defaultButtons.mainListPlanResBtn({hide:isShowMainButton(row,['4']),hasPermi:'wms:production-main:resetting'}), // 重置 |
|
|
|
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:production-main:update'}), // 编辑 |
|
|
|
// defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:production-main:delete'}), // 删除 |
|
|
|
{ |
|
|
|
label: '生成备料计划/收货申请', |
|
|
|
name: 'scbljh', |
|
|
|
hide: isShowMainButton(row,['6']), |
|
|
|
type: 'primary', |
|
|
|
icon: 'Select', |
|
|
|
hasPermi:'wms:production-main:publish', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
color: '' |
|
|
|
}, |
|
|
|
// { |
|
|
|
// label: '生成备料计划/收货申请', |
|
|
|
// name: 'scbljh', |
|
|
|
// hide: isShowMainButton(row,['6']), |
|
|
|
// type: 'primary', |
|
|
|
// icon: 'Select', |
|
|
|
// hasPermi:'wms:production-main:publish', |
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
// color: '' |
|
|
|
// }, |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -325,19 +325,21 @@ const buttonTableClick = async (val, row) => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else if(val == 'scbljh') { |
|
|
|
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') |
|
|
|
await message.confirm('确认要生成备料计划/收货申请吗?') |
|
|
|
tableObject.loading = true |
|
|
|
await ProductionMainApi.generateRequest(row.number).then(() => { |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
|
}).catch(err => { |
|
|
|
tableObject.loading = false |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else if (val == 'edit') { // 编辑 |
|
|
|
} |
|
|
|
// else if(val == 'scbljh') { |
|
|
|
// if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') |
|
|
|
// await message.confirm('确认要生成备料计划/收货申请吗?') |
|
|
|
// tableObject.loading = true |
|
|
|
// await ProductionMainApi.generateRequest(row.number).then(() => { |
|
|
|
// message.success(t('common.createSuccess')) |
|
|
|
// tableObject.loading = false |
|
|
|
// getList() |
|
|
|
// }).catch(err => { |
|
|
|
// tableObject.loading = false |
|
|
|
// console.log(err) |
|
|
|
// }) |
|
|
|
// } |
|
|
|
else if (val == 'edit') { // 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|