|
@ -133,8 +133,35 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
formRef.setValues(setV) |
|
|
if(formField == 'deliverPlanNumber') { |
|
|
|
|
|
setV['deliverPlanNumber'] = val[0]['number'] |
|
|
|
|
|
if(setV['deliverPlanNumber'] != null){ |
|
|
|
|
|
isShowButton.value = false |
|
|
} |
|
|
} |
|
|
|
|
|
setV['customerCode'] = val[0]['customerCode'] |
|
|
|
|
|
// 获取子表数据 getBomDisassemble |
|
|
|
|
|
DeliverPlanDetailApi.selectDetailByMasterID(val[0]['id']) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
res.forEach(item => { |
|
|
|
|
|
item.qty = item.planQty |
|
|
|
|
|
}) |
|
|
|
|
|
if (res) tableData.value = res |
|
|
|
|
|
// 修改 tableform 属性 |
|
|
|
|
|
DeliverRequestDetail.allSchemas.tableFormColumns.map(item => { |
|
|
|
|
|
if(item.field == 'itemCode') { |
|
|
|
|
|
item.isInpuFocusShow = false |
|
|
|
|
|
item.tableForm.isInpuFocusShow = false |
|
|
|
|
|
item.tableForm.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
if(item.field == 'uom') { |
|
|
|
|
|
item.tableForm.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
|
|
formRef.setValues(setV) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
// 查询页面返回——详情 |
|
|
// 查询页面返回——详情 |
|
|