Browse Source

HL-6284WMS 制品返修申请新增时,1选择完车间和返修生产线后,重新选择车间,返修区生产线信息应该清空。同时明细内容也要进行清空。 2. 明细中的工序信息也要根据车间代码进行筛选 3.班组要根据返修生产线进行筛选

hella_online_20241024
yufei_wang 1 month ago
parent
commit
c702f92634
  1. 17
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  2. 17
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

17
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -56,6 +56,7 @@
@handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess"
@clearSearchInput="clearSearchInput"
@submitForm="submitForm"
@buttonOperationClick="buttonOperationClick"
:isShowReduceButtonSelection="true"
@ -233,7 +234,16 @@ const buttonOperationClick = async (row, label, index)=> {
const updataTableColumns = (val) => {
tableColumns.value = val
}
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshopCode' == field){
//
formRef.value.formRef.setValues({
productionLineCode: '',
})
tableData.value = []
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => {
@ -285,6 +295,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else {
const setV = {}
setV[formField] = val[0][searchField]
if('workshopCode' == formField){
//
setV['productionLineCode'] = ''
tableData.value = []
}
formRef.setValues(setV)
}
})

17
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -205,7 +205,12 @@ export const ProductrepairRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}],
},{
key: 'productionLineCode',
value: 'productionLineCode',
message: '请填写返修生产线!',
isMainValue: true
}],
verificationParams: [{
key: 'code',
action: '==',
@ -694,6 +699,11 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key:'workshopCode',
value:'workshopCode',
message: '请填写车间代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',
@ -718,6 +728,11 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key:'workshopCode',
value:'workshopCode',
message: '请填写车间代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',

Loading…
Cancel
Save