Commit 19b3244e authored by agping's avatar agping

1

parent 23d41d7b
......@@ -104,7 +104,8 @@
</select>
<span class="btn btn-info btn3 ld-Marheight" id="search" style="float:left">搜索</span>
<span class="btn btn-info btn3 ld-Marheight" id="reset" style="float:left">重置</span>
<span class="btn btn-info btn3 ld-Marheight" id="" style="float: left;">批量上传</span>
<!--<span class="btn btn-info btn3 ld-Marheight" id="" style="float: left;">批量上传</span>-->
<input type="file" id="file_input" style="float:left;width: 80px;" class="ld-Marheight"/>
<span class="fore-span ld-Marheight" style="font-size:700;font-size:16px;float:left;line-height:20px;margin-top:15px;margin-left:30px" id="dataStr">2019-06</span>
<span class="btn btn-info btn3 ld-Marheight checked" data-index="1" style="float: left;">考勤 核对无误</span>
<span class="btn btn-info btn3 ld-Marheight checked" data-index="2" style="float: left;">社保 核对无误</span>
......
......@@ -104,7 +104,46 @@ define(['doT', 'text!temp/attendance_template_tpl.html', 'css!style/home.css', '
$(document).on('click','.checked',function(e){
that.checkFinish(e.target.dataset.index)
})
//附件上传处理事件
$("#file_input").change(function() {
var _this = $(this);
var formData = new FormData();
formData.append('type', 'excel_import');
formData.append('file', _this[0].files[0]);
$.ajax({
type: 'post',
url: ServerHostImageLiu + '/index/importStoreFee',
data: formData,
dataType: 'json',
contentType: false,
cache: false,
processData: false,
beforeSend: function() {},
success: function(_data) {
if(_data.code == 200) {
// var _url = _data.data.internet_img_name;
// _this.parent().next().prepend('<li class="pdf-pre-li"><a data-filename="{3}" class="pdf-pre-a pdf-pre-a-new" href="javascript:;" title="保存之后才可以点击下载">{4}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
// '0': _url,
// '1': decodeURI(_url.slice(_url.lastIndexOf('/') + 1)),
// '2': dealFileName(decodeURI(_url.slice(_url.lastIndexOf('/') + 1))),//dealFileName不要忘记
// '3': _data.data.img_path,
// '4': _data.data.imgformer_name
// }));
} else {
alert(_data.msg);
};
},
error: function() {
alert('enter error');
},
complete: function(xhr, textStatus) {
if(textStatus === 'timeout') {
//处理超时的逻辑
alert('请求超时,请重试');
};
}
});
});
//部门门店二级联动
that.getDistrictPanFang(function(){//有了列表 点击 调用门店列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment