Browse Source

HL-57862.选择生产线代码、添加明细后,去掉生产线代码,明细应也清空,现明细没有清空

hella_online_20240919
yufei_wang 1 day ago
parent
commit
7e959db1c9
  1. 14
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

14
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -60,6 +60,7 @@
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
@inputNumberChange="inputNumberChange" @inputNumberChange="inputNumberChange"
@clearSearchInput="clearSearchInput"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -202,6 +203,19 @@ const inputNumberChange = (field, index, row, val) => {
row.amount = Number(Number(row.qty * row.singlePrice).toFixed(2)) 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 ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(async () => { nextTick(async () => {

Loading…
Cancel
Save