Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

hella_online_20240927
gaojs 2 months ago
parent
commit
658a54f798
  1. 19
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

19
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -62,6 +62,7 @@
@inputNumberChange="inputNumberChange"
@submitForm="submitForm"
@buttonOperationClick="buttonOperationClick"
@clearSearchInput="clearSearchInput"
/>
<!-- 详情 -->
@ -108,9 +109,8 @@
>
<template #TableFormHead>
<el-form inline>
<!-- @input="row[headerItem.field] = row[headerItem.field].replace(/[^\d\.-]/g, '')" -->
<el-form-item label="物料代码">
<el-input v-model="bomSearchData" clearable placeholder="请输入物料代码"/>
<el-input v-model="bomSearchData" @input="bomSearchData = bomSearchData.replace(/,/g, ',')" clearable placeholder="请输入物料代码"/>
</el-form-item>
<el-form-item>
<el-button type="info" plain @click="bomSearchClick"><Icon class="mr-5px" icon="ep:search" />{{ t('common.query') }}</el-button>
@ -272,7 +272,18 @@ const banchBomPage = async (fromLocationCode,item) => {
return obj
}
const clearSearchInput = (formField) => {
if(formField=='workshopCode'){
//
formRef.value.formRef.setValues({
productionLineCode:'',//线
})
tableData.value = []
}else if(formField=='productionLineCode'){
//线
tableData.value = []
}
}
// tableform
const buttonOperationClick = async (row, label, index,isSave = false)=> {
console.log('buttonOperationClick',row, label, index)
@ -342,6 +353,8 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> {
item.tableForm.disabled = false
}
})
bomSearchData.value = ''
bomTableList.value = detatableDataBom.tableList
detailBomRef.value.open('create', row, null,'viewDetail')//
}
}

Loading…
Cancel
Save