Browse Source

HL-6291WMS 隔离收货申请,新增时1.班组信息应该根据生产线带出 2.重选车间代码时,应该清空班组

hella_online_20241024
yufei_wang 1 month ago
parent
commit
4722df8827
  1. 21
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  2. 5
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts

21
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -58,6 +58,7 @@
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@clearSearchInput="clearSearchInput"
@submitForm="submitForm"
>
<template v-slot="{ row }">
@ -210,7 +211,23 @@ const { getList:getDetailListBom } = detatableMethodsBom
const updataTableColumns = (val) => {
tableColumns.value = val
}
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshopCode' == field){
//
formRef.value.formRef.setValues({
productionLineCode: '',
team:''
})
tableData.value = []
}else if('productionLineCode' == field){
// 线
formRef.value.formRef.setValues({
team:''
})
tableData.value = []
}
}
//
const searchTableSuccess = async (formField, searchField, val, formRef, type, row ) => {
console.log(formField, searchField, val, formRef, type, row)
@ -264,8 +281,10 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro
const setV = {}
if('workshopCode'==formField){
setV['productionLineCode'] = ''
setV['team'] = ''
tableData.value = []
}else if('productionLineCode'==formField){
setV['team'] = ''
tableData.value = []
}
setV[formField] = val[0][searchField]

5
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts

@ -221,6 +221,11 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchAllSchemas: Team.allSchemas,
searchPage: TeamApi.getTeamPage,
searchCondition: [{
key: 'productionLineCode',
value: 'productionLineCode',
message: '请填写生产线代码!',
isMainValue: true
},{
key: 'available',
value: 'TRUE',
isMainValue: false

Loading…
Cancel
Save