【调度系统】广东民航医疗快线调度系统源代码
wlzboy
2025-08-14 b3f8789cf8bf0d934f8431b1d7b564a756576b4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<?php require '/weixin/OAuth2.php';?>
<?php require '/inc/function.php';?>
<?php
$WEB_Name="新建优惠券";
?>
<!DOCTYPE html>
<html>
 
<head>
    <?php require '/inc/New_ccs.php';?>
    <title><?php echo $WEB_Name;?></title>
 
    <!--Begin  Page Level  CSS -->
    <link href="/css/assets/plugins/morris-chart/morris.css" rel="stylesheet">
    <link href="/css/assets/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet"/>
     <!--End  Page Level  CSS -->
 
     <!-- BEGIN PAGE LEVEL STYLES -->
    <link href="/css/assets/plugins/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
    <link href="/css/assets/plugins/dropzone/dropzone.css" rel="stylesheet" type="text/css" />
    <link href="/css/assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet">
    <!-- END PAGE LEVEL STYLES -->
</head>
<?php 
$memu='CouponAdmin';
?>
<body class="sticky-header">
    <!--Start left side Menu-->
    <?php require 'New_menu_left.php';?>
    <!--End left side menu-->
    
    <!-- main content start-->
    <div class="main-content" >
 
        <!-- header section start-->
        <?php require 'New_menu_header.php';?>
        <!-- header section end-->
 
 
        <!--body wrapper start-->
        <div class="wrapper">
              
              <!--Start Page Title-->
               <div class="page-title-box">
                    <h4 class="page-title"></h4>
                    <ol class="breadcrumb">
                        <li>
                            <a href="CouponAdminList.php">优惠券</a>
                        </li>
                        <li>
                            <a href="CouponAdminApp.php">新建优惠券</a>
                        </li>
                    </ol>
                    <div class="clearfix"></div>
                 </div>
                  <!--End Page Title-->          
 
             <!--Start row-->
             <div class="row">
                 <div class="col-md-12">
                   <div class="white-box">
                     <h2 class="header-title">优惠券信息&nbsp;&nbsp;
                       
                        <form class="js-validation-bootstrap form-horizontal" action="#" name="ServiceOrdForm" method="post">
                          <input type="hidden" name="UnitIntroducerID" id="UnitIntroducerID" value="">
 
                          <div class="form-group">
                            <label class="col-md-2 control-label" for="PtName">优惠券名称 <span class="text-danger">*</span></label>
                            <div class="col-md-3">
                              <input class="form-control" name="CouponName" id="CouponName" value="" placeholder="请输入优惠券名称" type="text">
                            </div>
                          </div>
 
                          <div class="form-group">
                            <label class="col-md-2 control-label" for="PtName">优惠券金额 <span class="text-danger">*</span></label>
                            <div class="col-md-3">
                              <input class="form-control" name="CouponMoney" id="CouponMoney" value="" placeholder="请输入优惠券金额" type="number">
                            </div>
                          </div>
 
 
                          <div class="form-group">
                            <label class="col-md-2 control-label">优惠券有效期 <span class="text-danger">*</span></label>
                            <div class="col-md-3">
                              <input type="text" name="CouponDate_Ent" class="form-control" placeholder="mm/dd/yyyy" value="<?php echo date("Y-m-t",strtotime("+6 month"));?>" id="CouponDate_Ent">
                            </div>
                          </div>
 
                          <div class="form-group">
                            <label class="col-md-2 control-label">生成数量 <span class="text-danger">*</span></label>
                            <div class="col-md-3">
                              <input class="form-control" name="CouponInt" id="CouponInt" value="1" type="number">
                            </div>
                          </div>
 
                          <div class="form-group">
                            <label class="col-md-2 control-label" for="PtName">优惠券使用说明</label>
                            <div class="col-md-3">
                              <input class="form-control" name="CouponExplain" id="CouponExplain" value="" placeholder="请输入优惠券使用说明(选填)" type="text">
                            </div>
                          </div>
 
                          <div class="form-group m-b-0">
                            <div class="col-sm-offset-3 col-sm-9">
                              <button type="button" id="CouponApp" class="btn btn-primary">新建优惠券</button>
 
                            </div>
                          </div>
                        </form>
 
                        
                   </div>
                  </div>
              </div>
             <!--End row-->
 
               
                </div>
        <!-- End Wrapper-->
 
       </div>
      <!--End main content -->
    
    <?php require 'New_vicgame.php';?>
    <!-- BEGIN PAGE LEVEL SCRIPTS -->
    <script src="/css/assets/plugins/jquery-validation/jquery.validate.min.js"></script>
    <script src="/css/assets/plugins/sweetalert/sweet-alert.js"></script>
    <script src="/css/assets/plugins/dropzone/dz.js"></script>
 
    <script src="/css/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
    <script src="/css/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.zh-CN.js"></script>
 
    <script>
            // Date Picker
            jQuery('#CouponDate_Ent').datepicker({
                format: "yyyy-mm-dd",
                language: "zh-CN",
                autoclose: true,
                todayHighlight: true
            });
    </script>
    <!-- BEGIN PAGE LEVEL SCRIPTS -->
 
    <script>
 
// Initialize when page loads
 
    //--按钮操作--BEGIN
    //新建任务单
    //var CouponApp = function(){
    $('#CouponApp').click(function(){
        swal({   
            title: "确定新建优惠券?",   
            text: "",   
            type: "warning",   
            showCancelButton: true,   
            confirmButtonColor: "#DD6B55",
            cancelButtonText: "取消",
            confirmButtonText: "确认",   
            closeOnConfirm: false 
        }, function(){   
            $.ajax({  
                type: "POST",  
                url: "admin_save_ajax.php",//需要跳转到的界面 the page you want to post data  
                data: {  
                    //要传给后台的数据 the data you should send to background  
                    admin_save:1,
                    CouponName:$('#CouponName').val(),
                    CouponMoney:$('#CouponMoney').val(),
                    CouponDate_Ent:$('#CouponDate_Ent').val(),
                    CouponExplain:$('#CouponExplain').val(),
                    CouponInt:$('#CouponInt').val()
                },
                dataType:'json',
                beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send  
                success: function(data) {
                    console.log(data);
                    if (data!='')
                    {
                        if (data.result==1)
                        {
                            swal({
                                title : "新建成功",
                                text : "",
                                type : "success",
                            }, function() {
                                window.location.href="CouponAdminList.php";
                            });
                        }else{
                            swal("保存失败", data.errcode, "error");
                        }
                    }else{swal("操作失败", "网络通信失败,请重试", "error");}
                }
            })
        });
    });
    
 
    //--按钮操作--End
 
</script>
</body>
 
</html>