提交 090530dc 编写于 作者: Skyeye云's avatar Skyeye云

保养订单新增核销功能

上级 28560414
...@@ -84,6 +84,8 @@ layui.config({ ...@@ -84,6 +84,8 @@ layui.config({
select(data) select(data)
}else if(layEvent == 'complatePay'){ // 完成支付 }else if(layEvent == 'complatePay'){ // 完成支付
complatePay(data) complatePay(data)
}else if(layEvent == 'verification'){ // 核销
verification(data)
} }
}); });
...@@ -102,6 +104,21 @@ layui.config({ ...@@ -102,6 +104,21 @@ layui.config({
}); });
} }
// 核销
function verification(data){
layer.confirm("确认对该单据进行核销吗?", {icon: 3, title: "核销操作"}, function(index){
layer.close(index);
AjaxPostUtil.request({url: shopBasePath + "verificationKeepFitOrder", params: {id: data.id}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
winui.window.msg('核销成功', {icon: 1, time: 2000});
loadTable();
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
});
}
// 详情 // 详情
function select(data){ function select(data){
rowId = data.id; rowId = data.id;
......
...@@ -64,6 +64,9 @@ ...@@ -64,6 +64,9 @@
{{# if(d.state == 1 && auth('1644317746790')){ }} {{# if(d.state == 1 && auth('1644317746790')){ }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="complatePay">完成支付</a> <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="complatePay">完成支付</a>
{{# } }} {{# } }}
{{# if(d.state == 2 && auth('1644378387049')){ }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="verification">核销</a>
{{# } }}
</script> </script>
</div> </div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册