Browse Source

HL-6039制品子件报废申请-清空来源库位的同时,清空来源工位代码

hella_online_20240919
yufei_wang 2 months ago
parent
commit
ad091b81b2
  1. 9
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  2. 35
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

9
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -44,6 +44,7 @@
ref="formRef" ref="formRef"
:isOpenSearchTable="true" :isOpenSearchTable="true"
fieldTableColumn="itemCode" fieldTableColumn="itemCode"
@clearInput="clearInput"
@success="getList" @success="getList"
:rules="ProductscrapRequestMainRules" :rules="ProductscrapRequestMainRules"
:formAllSchemas="ProductscrapRequestMain.allSchemas" :formAllSchemas="ProductscrapRequestMain.allSchemas"
@ -384,7 +385,13 @@ const tableFormButton = async (val , row) => {
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
const clearInput = (field, row, index) => {
if(field == 'fromLocationCode'){
row['workStationCode'] = ''
row.childList = []
console.log(row)
}
}
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) console.log('searchTableSuccess',formField, searchField, val, formRef, type, row)

35
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -923,13 +923,15 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
message: '请填写生产线代码!', message: '请填写生产线代码!',
isMainValue: true, isMainValue: true,
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
},{ },
key: 'itemCode', // {
value: 'itemCode', // key: 'itemCode',
message: '请选择物料代码', // value: 'itemCode',
isTableRowValue: true, //查询当前searchTable表中行数据的值 // message: '请选择物料代码',
isMainValue:false // isTableRowValue: true, //查询当前searchTable表中行数据的值
}], // isMainValue:false
// }
],
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法 verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true, isShowTableFormSearch: true,
verificationParams: [{ verificationParams: [{
@ -965,13 +967,15 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
message: '请填写生产线代码!', message: '请填写生产线代码!',
isMainValue: true, isMainValue: true,
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
},{ },
key: 'itemCode', // {
value: 'itemCode', // key: 'itemCode',
message: '请选择物料代码', // value: 'itemCode',
isTableRowValue: true, //查询当前searchTable表中行数据的值 // message: '请选择物料代码',
isMainValue:false // isTableRowValue: true, //查询当前searchTable表中行数据的值
}], // isMainValue:false
// }
],
verificationParams: [{ verificationParams: [{
key: 'code', key: 'code',
action: '==', action: '==',
@ -1386,6 +1390,9 @@ export const ProductscrapRequestDetailRules = reactive({
productionLineCode: [ productionLineCode: [
{ required: true, message: '请选择生产线代码', trigger: 'change' } { required: true, message: '请选择生产线代码', trigger: 'change' }
], ],
fromLocationCode: [
{ required: true, message: '请选择来源库位', trigger: 'change' }
],
workStationCode: [ workStationCode: [
{ required: true, message: '请选择来源工位代码', trigger: 'change' } { required: true, message: '请选择来源工位代码', trigger: 'change' }
], ],

Loading…
Cancel
Save