diff --git a/README.md b/README.md index 83a2e251b..a51323c2d 100644 --- a/README.md +++ b/README.md @@ -34,5 +34,12 @@ tableForm:{ key: 'available', // 查询列表中字段 value: 'TRUE', // 指查询具体值 isMainValue: false // 表示查询条件不是主表的字段的值 + }, + { + key: 'available', // 查询列表中字段 + value: 'TRUE', // 指查询具体值 + action: '==', // 查询拼接条件 + isSearch: true, // 使用自定义拼接条件 + isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 }] }, \ No newline at end of file diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue index aab0303db..13d4717c2 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue @@ -135,7 +135,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['qty'] = val[0]['qty'] // 修改 tableform 属性 数量最大值设置为库存余额中数量 ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => { - if(item.field == 'qty') { + if(item.field == 'qty' && val[0]['qty'] > 0) { item.tableForm.max = val[0]['qty'] } }) @@ -165,7 +165,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { setV['qty'] = val[0]['qty'] // 修改 tableform 属性 数量最大值设置为库存余额中数量 ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => { - if(item.field == 'qty') { + if(item.field == 'qty' && val[0]['qty'] > 0) { item.tableForm.max = val[0]['qty'] } })