let auditUtils; $(function () { autoFlashHeight(); $('#tid_select').change(function () { const tid = parseInt($(this).val()) || 0; setSelectValue('tid', tid); }); $('#status_select .to-log-link').click(function () { const status = parseInt($(this).data('val')) || null; setSelectValue('status', status); }); $('#used_select .to-log-link').click(function () { const used = $(this).data('val') || null; setSelectValue('used', used); }); function setSelectValue(select, value) { const routes = []; const tid = select === 'tid' ? value : $('#tid_select').val(); if (tid) { routes.push('tid=' + tid); } const status = select === 'status' ? value : $('#status_selected').data('value'); if (status) { routes.push('status=' + status); } const used = select === 'used' ? value : $('#used_selected').data('value'); if (used) { routes.push('used=' + used); } window.location.href = '/financial/' + spid + '/pay' + (routes.length ? '?' + routes.join('&') : ''); } let timer = null let oldSearchVal = null $('#liucheng').on('input propertychange', '.gr-search', function(e) { oldSearchVal = e.target.value; timer && clearTimeout(timer); timer = setTimeout(() => { const newVal = $(this).val(); const code = $(this).attr('data-code'); let html = ''; if (newVal && newVal === oldSearchVal) { accountList.filter(item => item && (item.name.indexOf(newVal) !== -1 || (item.mobile && item.mobile.indexOf(newVal) !== -1))).forEach(item => { html += `
${item.name}${item.mobile || ''}
${item.role || ''}${item.name}${item.mobile || ''}
${item.role || ''}' + item.name + '' + item.mobile + '
\n' + ' ' + item.role + '\n' + '