'use strict'; /** * * * @author lanjianrong * @date 2020/8/7 * @version */ $(document).ready(function () { autoFlashHeight() let oldVal = null let timer = null let oldSearchVal = null handleFileList(fileList) // 控制上报弹窗的文案 function checkModal(isHide) { $('#start-modal').empty() if (isHide) { // 隐藏上传按钮 $('#start-modal').append('
无法上报,请设置审批流程。
') $('#tm-submit').hide() } else { $('#start-modal').append(`确认上报第${advance.order}期${advance.type === 0 ? '开工' : '材料'}预付款?
`) $('#tm-submit').show() } } $('#gr-search').bind('input propertychange', function(e) { oldSearchVal = e.target.value timer && clearTimeout(timer) timer = setTimeout(() => { const newVal = $('#gr-search').val() let html = '' if (newVal && newVal === oldSearchVal) { accountList.filter(item => item && cur_uid !== item.id && (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 || ''}中交第一公路工程局有限公司国道311线满别公路施工一分部
const html = [] html.push('${data.company}