|
@ -118,15 +118,17 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
setV['shift'] = val[0]['shift'] |
|
|
setV['shift'] = val[0]['shift'] |
|
|
setV['team'] = val[0]['team'] |
|
|
setV['team'] = val[0]['team'] |
|
|
isShowButton.value = false |
|
|
isShowButton.value = false |
|
|
// 获取子表数据 |
|
|
// 获取子表数据 getBomDisassemble |
|
|
ProductionDetailApi.getProductionDetailPage({ |
|
|
// ProductionDetailApi.getProductionDetailPage({ |
|
|
masterId: val[0]['id'], |
|
|
// masterId: val[0]['id'], |
|
|
pageSize: 100, |
|
|
// pageSize: 100, |
|
|
pageNo: 1, |
|
|
// pageNo: 1, |
|
|
sort: '', |
|
|
// sort: '', |
|
|
by: 'ASC' |
|
|
// by: 'ASC' |
|
|
}).then(res => { |
|
|
// }) |
|
|
if (res) tableData.value = res.list |
|
|
PreparetoissueMainApi.getBomDisassemble(val[0]['id']) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res) tableData.value = res |
|
|
// 根据子表物品代码 和主表生产线 查询生产线物品关系 获取 原料库位赋值目标库位 |
|
|
// 根据子表物品代码 和主表生产线 查询生产线物品关系 获取 原料库位赋值目标库位 |
|
|
tableData.value.map(item => { |
|
|
tableData.value.map(item => { |
|
|
ProductionlineitemApi.getProductionlineitemPage({ |
|
|
ProductionlineitemApi.getProductionlineitemPage({ |
|
@ -230,15 +232,15 @@ const isShowMainButton = (row,val) => { |
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListPlanOpeBtn({hide:isShowMainButton(row,['5'])}), // 打开 |
|
|
defaultButtons.mainListPlanOpeBtn({hide:isShowMainButton(row,['5']),hasPermi:'wms:preparetoissue-main:open'}), // 打开 |
|
|
defaultButtons.mainListPlanCloBtn({hide:isShowMainButton(row,['1','2','3','4'])}), // 关闭 |
|
|
defaultButtons.mainListPlanCloBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:'wms:preparetoissue-main:close'}), // 关闭 |
|
|
defaultButtons.mainListPlanSubBtn({hide:isShowMainButton(row,['1'])}), // 提交审批 |
|
|
defaultButtons.mainListPlanSubBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:preparetoissue-main:submit'}), // 提交审批 |
|
|
defaultButtons.mainListPlanTurBtn({hide:isShowMainButton(row,['2'])}), // 驳回 |
|
|
defaultButtons.mainListPlanTurBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:preparetoissue-main:reject'}), // 驳回 |
|
|
defaultButtons.mainListPlanAppBtn({hide:isShowMainButton(row,['2'])}), // 审批通过 |
|
|
defaultButtons.mainListPlanAppBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:preparetoissue-main:agree'}), // 审批通过 |
|
|
defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['3'])}), // 发布 |
|
|
defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:preparetoissue-main:publish'}), // 发布 |
|
|
defaultButtons.mainListPlanResBtn({hide:isShowMainButton(row,['4'])}), // 重置 |
|
|
defaultButtons.mainListPlanResBtn({hide:isShowMainButton(row,['4']),hasPermi:'wms:preparetoissue-main:resetting'}), // 重置 |
|
|
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:production-main:update'}), // 编辑 |
|
|
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:preparetoissue-main:update'}), // 编辑 |
|
|
// defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:production-main:delete'}), // 删除 |
|
|
// defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:preparetoissue-main:delete'}), // 删除 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|