|
@@ -113,6 +113,9 @@
|
|
|
<!-- <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" onclick="$eb.createModalFrame('商品','{:Url('admin/auction.auction_product/appoint')}?id={{d.id}}',{h:500,w:500})">-->
|
|
|
<!-- 指定-->
|
|
|
<!-- </button>-->
|
|
|
+ <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='off'>
|
|
|
+ 核销
|
|
|
+ </button>
|
|
|
<button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='edit'>
|
|
|
编辑
|
|
|
</button>
|
|
@@ -169,6 +172,22 @@
|
|
|
});
|
|
|
},code)
|
|
|
break;
|
|
|
+ case 'off':
|
|
|
+ var url=layList.U({c:'auction.auction_products',a:'off',q:{id:data.id}});
|
|
|
+ var code = {title:"操作提示",text:"确定将该商品核销?",type:'info',confirm:'是的'};
|
|
|
+ $eb.$swal('delete',function(){
|
|
|
+ $eb.axios.get(url).then(function(res){
|
|
|
+ if(res.status == 200 && res.data.code == 200) {
|
|
|
+ $eb.$swal('success',res.data.msg);
|
|
|
+ obj.del();
|
|
|
+ location.reload();
|
|
|
+ }else
|
|
|
+ return Promise.reject(res.data.msg || '删除失败')
|
|
|
+ }).catch(function(err){
|
|
|
+ $eb.$swal('error',err);
|
|
|
+ });
|
|
|
+ },code)
|
|
|
+ break;
|
|
|
case 'open_image':
|
|
|
$eb.openImage(data.image);
|
|
|
break;
|