init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!--[1.3.80]-->
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css" />
|
||||
</head>
|
||||
<body>
|
||||
<form class="layui-form" action="" id="info">
|
||||
<input type="hidden" name="id" id="id" value="{$printinfo['id']}">
|
||||
<div class="layui-form-item" style="margin-top: 100px;">
|
||||
<label class="layui-form-label" style="font-size: 20px">权限:</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="checkbox" name="print" title="收银机" <if condition="$printinfo['register'] eq 2">checked</if>>
|
||||
<input type="checkbox" name="online" title="线上" <if condition="$printinfo['online_status'] eq 2">checked</if>>
|
||||
<input type="checkbox" name="inventory_status" title="小助手进销存" <if condition="$printinfo['inventory_status'] eq 1">checked</if>>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="margin-left: 150px;margin-top: 60px">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" type="button" id="submit">立即提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
<script src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
|
||||
<script>
|
||||
layui.use(['form','upload','layer','laydate'], function() {
|
||||
var form = layui.form;
|
||||
var layer = layui.layer;
|
||||
$('#submit').click(function(){
|
||||
var id = $('#id').val();
|
||||
if(!id){
|
||||
layer.msg("参数错误",{time:1500},function(){})
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
url:"{:U('powersubmit')}",
|
||||
type:"post",
|
||||
data:$('#info').serialize(),
|
||||
success:function(res){
|
||||
if(res.status == 1){
|
||||
layer.msg(res.msg,{time:1500},function(){
|
||||
var index=parent.layer.getFrameIndex(window.name);
|
||||
parent.layer.close(index);
|
||||
})
|
||||
}else{
|
||||
layer.msg(res.msg,{time:1500},function(){})
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
});
|
||||
</script>
|
||||
在新工单中引用
屏蔽一个用户