Browse Source

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

hella_online_20241011
gaojs 2 months ago
parent
commit
d3c4a345dc
  1. 12
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  2. 6
      src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

12
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -60,6 +60,7 @@
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
@tableFormSelectOnBlur="tableFormSelectOnBlur" @tableFormSelectOnBlur="tableFormSelectOnBlur"
@clearSearchInput="clearSearchInput"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -109,7 +110,16 @@ const tableColumns = ref([...UnplannedissueRequestMain.allSchemas.tableColumns,.
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
const clearSearchInput = (field)=>{
console.log('field',field)
if('costCenterCode' == field){
//
formRef.value.formRef.setValues({
reasonCodeRequisition: '',
costCenterType: ''
})
}
}
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {

6
src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

@ -176,6 +176,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}else if('productionLineCode'==formField){ }else if('productionLineCode'==formField){
//线 //线
setV['workStationCode'] = '' setV['workStationCode'] = ''
}else if('workStationCode'==formField){
//
setV['productionLineCode1'] = val[0]['productionLineCode']//线
} }
formRef.setValues(setV) formRef.setValues(setV)
} }
@ -446,6 +449,9 @@ const submitForm = async (formType, submitData) => {
if(data.masterId){ if(data.masterId){
data.id = data.masterId data.id = data.masterId
} }
if(!data.productionLineCode){
data.productionLineCode = data.productionLineCode1
}
data.subList = tableData.value // data.subList = tableData.value //
data.subList.forEach(item=>{ data.subList.forEach(item=>{
item['workStationCode'] = data['workStationCode'] item['workStationCode'] = data['workStationCode']

Loading…
Cancel
Save