jQuery WfForm.bindDetailFieldChangeEvent 监听数据变化并添加偏差范围判断
jQuery(document).ready(function() { WfForm.bindDetailFieldChangeEvent('field27583,field27584', function(id, rowIndex, value) { console.log('WfForm.bindDetailFieldChangeEvent--', id, rowIndex, value); if (id == 'field27583' && value < 0.1) { alert('数据偏差范围太小,请重新填写'); } else if (id == 'field27584' && value > 100) { alert('数据偏差范围太大,请重新填写'); } else { alert('数据合格'); } }); });
原文地址: https://www.cveoy.top/t/topic/ocfD 著作权归作者所有。请勿转载和采集!