Browse Source

HL-6283WMS 制品拆解申请新增时。 1,主表中班组应该根据选择完的车间代码进行筛选,同时如果选完车间代码和班组,再次选择车间代码时,班组信息应该清空 2.明细中的工序代码也要根据车间代码进行筛选

hella_online_20241024
yufei_wang 1 month ago
parent
commit
2e38a6db08
  1. 16
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  2. 15
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

16
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -57,6 +57,7 @@
@handleDeleteTable="handleDeleteTable"
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@clearSearchInput="clearSearchInput"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
@buttonOperationClick="buttonOperationClick"
@ -255,6 +256,16 @@ const updataTableColumns = (val) => {
tableColumns.value = val
}
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshopCode' == field){
//
formRef.value.formRef.setValues({
team: '',
})
tableData.value = []
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => {
@ -301,6 +312,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else {
const setV = {}
setV[formField] = val[0][searchField]
if('workshopCode' == formField){
//
setV['team'] = ''
tableData.value = []
}
formRef.setValues(setV)
}
})

15
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

@ -116,6 +116,11 @@ export const ProductdismantleRequestMain = useCrudSchemas(reactive<CrudSchema[]>
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key:'workshopCode',
value:'workshopCode',
message: '请填写车间代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',
@ -654,6 +659,11 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key:'workshopCode',
value:'workshopCode',
message: '请填写车间代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',
@ -678,6 +688,11 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key:'workshopCode',
value:'workshopCode',
message: '请填写车间代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',

Loading…
Cancel
Save