Browse Source

HL-6285WMS 预生产计划、装配计划、装配收货、装配备件计划、预生产备件计划、预生产收货 申请新增时,1. 重新选择车间代码后,班组信息应该清空 2.班组信息要根据生产线的选择进行筛选

hella_online_20241024
yufei_wang 1 month ago
parent
commit
49b36a8ebb
  1. 35
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  2. 7
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
  3. 35
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  4. 7
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts
  5. 35
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  6. 5
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts
  7. 35
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue
  8. 5
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/productionMainPredictSparePart.data.ts

35
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -58,6 +58,7 @@
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@clearSearchInput="clearSearchInput"
@submitForm="submitForm"
/>
@ -108,7 +109,23 @@ const tableColumns = ref([...ProductionMain.allSchemas.tableColumns,...Productio
const updataTableColumns = (val) => {
tableColumns.value = val
}
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshop' == field){
//
formRef.value.formRef.setValues({
productionLine: '',
team:''
})
tableData.value = []
}else if('productionLine' == field){
// 线
formRef.value.formRef.setValues({
team:''
})
tableData.value = []
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(async() => {
@ -158,18 +175,16 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
} else {
const setV = {}
setV[formField] = val[0][searchField]
if(formField == 'workshop'){
setV['workshop'] = val[0]['code']
setV['productionLine'] = ''
if(tableData.value){
tableData.value.forEach(item => {
item.itemCode =''
item.bomVersion = ''
item.uom = ''
})
}
}else{
setV[formField] = val[0][searchField]
setV['team'] = ''
tableData.value = []
} else if(formField == 'productionLine'){
// 线
setV['team'] = ''
tableData.value = []
}
formRef.setValues(setV)
}

7
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -187,7 +187,12 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}],
},{
key: 'productionLineCode',
value: 'productionLine',
message: '请填写生产线代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',
action: '==',

35
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -58,6 +58,7 @@
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@clearSearchInput="clearSearchInput"
@submitForm="submitForm"
/>
@ -107,7 +108,23 @@ const tableColumns = ref([...ProductionMain.allSchemas.tableColumns,...Productio
const updataTableColumns = (val) => {
tableColumns.value = val
}
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshop' == field){
//
formRef.value.formRef.setValues({
productionLine: '',
team:''
})
tableData.value = []
}else if('productionLine' == field){
// 线
formRef.value.formRef.setValues({
team:''
})
tableData.value = []
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(async() => {
@ -157,18 +174,16 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else {
const setV = {}
setV[formField] = val[0][searchField]
if(formField == 'workshop'){
setV['workshop'] = val[0]['code']
setV['productionLine'] = ''
if(tableData.value){
tableData.value.forEach(item => {
item.itemCode =''
item.bomVersion = ''
item.uom = ''
})
}
}else{
setV[formField] = val[0][searchField]
setV['team'] = ''
tableData.value = []
} else if(formField == 'productionLine'){
// 线
setV['team'] = ''
tableData.value = []
}
formRef.setValues(setV)
}

7
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -186,7 +186,12 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}],
},{
key: 'productionLineCode',
value: 'productionLine',
message: '请填生产线代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',
action: '==',

35
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -58,6 +58,7 @@
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@clearSearchInput="clearSearchInput"
@submitForm="submitForm"
/>
@ -107,7 +108,23 @@ const tableColumns = ref([...ProductionMain.allSchemas.tableColumns,...Productio
const updataTableColumns = (val) => {
tableColumns.value = val
}
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshop' == field){
//
formRef.value.formRef.setValues({
productionLine: '',
team:''
})
tableData.value = []
}else if('productionLine' == field){
// 线
formRef.value.formRef.setValues({
team:''
})
tableData.value = []
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(async() => {
@ -149,18 +166,16 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
} else {
const setV = {}
setV[formField] = val[0][searchField]
if(formField == 'workshop'){
setV['workshop'] = val[0]['code']
setV['productionLine'] = ''
if(tableData.value){
tableData.value.forEach(item => {
item.itemCode =''
item.bomVersion = ''
item.uom = ''
})
}
}else{
setV[formField] = val[0][searchField]
setV['team'] = ''
tableData.value = []
} else if(formField == 'productionLine'){
// 线
setV['team'] = ''
tableData.value = []
}
formRef.setValues(setV)
}

5
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts

@ -190,6 +190,11 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'productionLineCode',
value: 'productionLine',
message: '请填生产线代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',

35
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

@ -58,6 +58,7 @@
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@clearSearchInput="clearSearchInput"
@submitForm="submitForm"
/>
@ -107,7 +108,23 @@ const tableColumns = ref([...ProductionMain.allSchemas.tableColumns,...Productio
const updataTableColumns = (val) => {
tableColumns.value = val
}
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshop' == field){
//
formRef.value.formRef.setValues({
productionLine: '',
team:''
})
tableData.value = []
}else if('productionLine' == field){
// 线
formRef.value.formRef.setValues({
team:''
})
tableData.value = []
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(async() => {
@ -149,18 +166,16 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
} else {
const setV = {}
setV[formField] = val[0][searchField]
if(formField == 'workshop'){
setV['workshop'] = val[0]['code']
setV['productionLine'] = ''
if(tableData.value){
tableData.value.forEach(item => {
item.itemCode =''
item.bomVersion = ''
item.uom = ''
})
}
}else{
setV[formField] = val[0][searchField]
setV['team'] = ''
tableData.value = []
} else if(formField == 'productionLine'){
// 线
setV['team'] = ''
tableData.value = []
}
formRef.setValues(setV)
}

5
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/productionMainPredictSparePart.data.ts

@ -186,6 +186,11 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'productionLineCode',
value: 'productionLine',
message: '请填生产线代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',

Loading…
Cancel
Save