Browse Source

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

hella_online_20240919
yufei_wang 2 months 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"
@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 () => {

Loading…
Cancel
Save