|
|
@ -60,6 +60,7 @@ |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" |
|
|
|
@inputNumberChange="inputNumberChange" |
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
@ -202,6 +203,19 @@ const inputNumberChange = (field, index, row, val) => { |
|
|
|
row.amount = Number(Number(row.qty * row.singlePrice).toFixed(2)) |
|
|
|
} |
|
|
|
} |
|
|
|
const clearSearchInput = (field)=>{ |
|
|
|
console.log('field',field) |
|
|
|
if('workshopCode'==field){ |
|
|
|
//车间 |
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
productionLineCode: '' |
|
|
|
}) |
|
|
|
tableData.value = [] |
|
|
|
}else if('productionLineCode'==field){ |
|
|
|
//生产线 |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(async () => { |
|
|
|