|
|
@ -31,7 +31,7 @@ |
|
|
|
:tableAllSchemas="ItemApplyDetail.allSchemas" :tableFormRules="ItemApplyDetailRules" :tableData="tableData" |
|
|
|
:apiUpdate="ItemApplyMainApi.updateItemApplyMain" :apiCreate="ItemApplyMainApi.createItemApplyMain" |
|
|
|
:isBusiness="true" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" |
|
|
|
@searchTableSuccess="searchTableSuccess" @submitForm="submitForm" /> |
|
|
|
@searchTableSuccess="searchTableSuccess" @submitForm="submitForm" @formSelectChange='formSelectChange' /> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
|
<Detail ref="detailRef" :isBasic="false" :allSchemas="ItemApplyMain.allSchemas" |
|
|
@ -78,7 +78,6 @@ |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
|
nextTick(async () => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
console.log(formField); |
|
|
|
// 明细查询页赋值 |
|
|
|
if (formField == 'itemNumber') { |
|
|
|
let subList = tableData.value |
|
|
@ -126,6 +125,11 @@ |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|
const formSelectChange = (field, val, row) => { |
|
|
|
if (field == 'type') { |
|
|
|
row['deviceNumber'] = "" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 子表新增的时候选择表格之后需要会显得字段 |
|
|
|
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom'] |
|
|
@ -167,8 +171,6 @@ |
|
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
|
getList() |
|
|
|
} else if (val == 'filtrate') { // 筛选 |
|
|
|
} else { // 其他按钮 |
|
|
|
console.log('其他按钮', item) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|