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

Loading…
Cancel
Save