Browse Source

HL-6288WMS 备料计划新增时, 1.生产线代码应该根据选择的车间进行筛选,重选或者清空车间时,生产线和班次也要被同时清空。2.班组信息也要根据产线代码进行筛选

hella_online_20241024
yufei_wang 1 month ago
parent
commit
2ba0679db5
  1. 27
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  2. 20
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

27
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -59,6 +59,7 @@
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@clearSearchInput="clearSearchInput"
@submitForm="submitForm"
/>
@ -108,7 +109,23 @@ const isShowButton = ref(true)
const updataTableColumns = (val) => {
tableColumns.value = val
}
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshop' == field){
//
formRef.value.formRef.setValues({
prodLine: '',
team:''
})
tableData.value = []
}else if('prodLine' == field){
// 线
formRef.value.formRef.setValues({
team:''
})
tableData.value = []
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => {
@ -191,6 +208,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
console.log(err)
message.error('错误')
})
}else if(formField == 'workshop'){
setV['prodLine'] = ''
setV['team'] = ''
tableData.value = []
} else if(formField == 'prodLine'){
// 线
setV['team'] = ''
tableData.value = []
}
formRef.setValues(setV)
}

20
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

@ -119,6 +119,16 @@ export const PreparetoissueMain = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '生产线信息', // 查询弹窗标题
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'workshopCode',
value: 'workshop',
message: '请填写车间代码!',
isMainValue: true
}, {
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
@ -147,6 +157,16 @@ export const PreparetoissueMain = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '班组信息', // 查询弹窗标题
searchAllSchemas: Team.allSchemas, // 查询弹窗所需类
searchPage: TeamApi.getTeamPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'productionLineCode',
value: 'prodLine',
message: '请填写生产线代码!',
isMainValue: true
},{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',

Loading…
Cancel
Save