Commit a202339c authored by agping's avatar agping

优化

parent 1019f682
......@@ -62,7 +62,7 @@
}
#container_body_img_area>div,#container_body_img_area2>div{
float: left;
width: 216px;
width: 136px;
}
.active {
color:dodgerblue;
......@@ -73,7 +73,7 @@
.img-pre-ul>li {
list-style: no;
float: left;
width: 210px;
width: 110px;
height: 170px;
overflow: hidden;
margin-right: 10px;
......@@ -83,8 +83,8 @@
display: none !important;
}
.result>img,.result2>img{
width: 120px;
height: 120px;
width: 80px;
height: 80px;
margin-top: 8px;
}
#container_body{
......
......@@ -80,6 +80,15 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
$(document).on('click','#reset',function(e){
that.resetAll();
});
//新增报销图片删除
_doc.on('click', '.span-del', function(e) {
var _this = $(this);
e.preventDefault();
e.stopPropagation();
if(confirm('确认删除吗?')){
_this.parent().remove();
};
});
//点击新增报销
$(document).on('click','.new-cost',function(e){
//初始化新增 费用项目 隐藏费用项目 门店 办公室
......@@ -613,7 +622,8 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
that.agent_id_office="";
that.agent_id_store="";
that.agent_site_office="";
//图片置空
$('#container_body_img_area').html('');
},
//重置搜索条件
resetAll : function(){
......
......@@ -413,7 +413,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
};
params.id = cost.id;
params.img_arr = JSON.stringify(imgname);
if(img_arr){
if(imgname.length){
}else{
alert('请上传图片');
return;
......
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