wanglizhong
2025-05-05 2876dd05c0528ec665791a0844f643f566f7c31b
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
<?php include "./inc/odbc.php"; ?>
<?php include "./inc/function.php"; ?>
<?php 
$ServiceOrdID=empty($_REQUEST['ServiceOrdID'])!=false ? "" : addslashes($_REQUEST['ServiceOrdID']);
$DispatchOrdID=empty($_REQUEST['DispatchOrdID'])!=false ? "0" : addslashes($_REQUEST['DispatchOrdID']);
$SMT=empty($_REQUEST['SMT'])!=false ? "" : addslashes($_REQUEST['SMT']);
$s=empty($_REQUEST['s'])!=false ? "" : $_REQUEST['s'];
 
//$ServiceOrdID=empty($_REQUEST['ServiceOrdID'])!=false ? "" : $_REQUEST['ServiceOrdID'];
//$DispatchOrdID=empty($_REQUEST['DispatchOrdID'])!=false ? "0" : $_REQUEST['DispatchOrdID'];
$sign=empty($_REQUEST['sign'])!=false ? "" : $_REQUEST['sign'];
if (($ServiceOrdID=="" and $DispatchOrdID=="0") or $sign==""){header("Location: /OrdEvaluateError.asp");exit;}
 
//验签
$signA="";
if ($ServiceOrdID!=""){$signA=$signA.$ServiceOrdID;}
if ($DispatchOrdID!="0"){$signA=$signA.$DispatchOrdID;}
if ($sign!=MD5($signA.$GPSKey) and $sign!="vicgame"){header("Location: /OrdEvaluateError.asp");exit;}
 
 
$openid=empty($_REQUEST['openid'])!=false ? "" : $_REQUEST['openid'];
if (isset($_COOKIE["openid"])){$openid=$_COOKIE["openid"];}
//include "./inc/OAuth2.php";
 
//微信JS
require_once "./inc/jssdk.php";
$jssdk = new JSSDK($APPID, $APPSECRET);
$signPackage = $jssdk->GetSignPackage();
$ShareURL="https://wx.966120.com.cn/MyOrder.php?ServiceOrdID=$ServiceOrdID&DispatchOrdID=$DispatchOrdID&s=1&sign=$sign";
?>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>民航医疗快线</title>
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/bootstrap-theme.min.css">
<script src="/js/jquery-1.10.2.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/app.js?v=1.8"></script>
<link rel="stylesheet" href="/css/webtyle.css?v=1.9">
<link rel="stylesheet" href="/css/webmedia.css?v=2.0">
</head>
<body class="ds_body">
<div  style="text-align:center;margin-top:20px"><img src="img/top.png" width="90%" height="" border="0" alt=""></div>
<hr style="text-align:center;width:90%"></hr>
<style>
header .headbrand {
    margin-top: -4px;
    position: absolute;
    right: 10px;
    top: 10px;
}
header {
    padding: 1em 5%;
    height: auto;
}
header .headico {
    margin-top: 0;
    display: inline-block;
    vertical-align: top;
}
.info{
    padding-left: 0px;padding-bottom: 5px;display: inline-block;vertical-align: top;width: 65%;
}
.rating-small .fa {
    color: #ffcc33;
}
.sign{
    color: #545454;clear: both;font-size: 14px;
}
#point_star span{
    background-image: url("/img/start2_09.png");
}
#point_star .empty {
    background-image: url("/img/start2_10.png");
}
.showlabel ul li img{
    width: 13px;
    height: 13px;
    margin-left: 3px;
}
.imgs{text-align: left;margin: 10px 0;}
.imgs img{width: 60px;height: 60px;margin: 5px;}
    @media screen and (max-width: 320px) {
        .info{width: 50%;}
    }
.label3 {
    color: #fff;
     background:transparent; 
    border: 1px solid #ffa732;
    cursor: pointer;
    color: #ffa732;
}
</style>
 
<?php 
$ServiceOrdState=0;
$DispatchOrdState=0;
$Guest_Point=0;
$ServiceOrdTraPrePayment=0;
$ServiceOrdTraPaidPrice=0;
$ServiceOrdTraTxnPrice=0;
 
//调度单数据
if ($DispatchOrdID!="0" or $ServiceOrdID!=""){
    $sql=empty($ServiceOrdID)!=false ? "" : " or ServiceOrdIDDt=".$ServiceOrdID;
    $sql="select * from DispatchOrd where DispatchOrdState>0 and DispatchOrdID=".$DispatchOrdID.$sql;
    //echo $sql;
    $data = sqlsrv_query($conn,$sql);
    if($data == true){
        if (sqlsrv_rows_affected($data)!=0) {
            while($rs = sqlsrv_fetch_array($data) ) {
                $DispatchOrdID            = $rs['DispatchOrdID'];            //调度单号
                $DispatchOrdClass        = $rs['DispatchOrdClass'];        //单据类型
                $ServiceOrdID            = $rs['ServiceOrdIDDt'];        //对应受理单号
                $DispatchOrdState        = $rs['DispatchOrdState'];        //调度单状态
                $DispatchOrd_AP_Check    = $rs['DispatchOrd_AP_Check'];    //是否审核(0否,1是)
                $DispatchOrd_AP_Reason    = $rs['DispatchOrd_AP_Reason'];    //审核原因
                $DispatchOrdCarID        = $rs['DispatchOrdCarID'];        //派遣车辆ID
                $DispatchOrdTraDistance    = $rs['DispatchOrdTraDistance'];    //实际距离
                $DispatchOrdTraStreet    = $rs['DispatchOrdTraStreet'];    //实际出发地
                $DispatchOrdTraEnd        = $rs['DispatchOrdTraEnd'];        //实际目的地
                $DispatchOrdTraVia        = $rs['DispatchOrdTraVia'];        //实际途经地
                $DispatchOrdCoName        = $rs['DispatchOrdCoName'];        //调度联系人
                $DispatchOrdCoPhone        = $rs['DispatchOrdCoPhone'];        //调度联系电话
                $DispatchOrdTraStreetMileage= $rs['DispatchOrdTraStreetMileage'];//开始里程数
                $DispatchOrdTraEndMileage= $rs['DispatchOrdTraEndMileage'];//结束里程数
                $DispatchOrdMileage        = $rs['DispatchOrdMileage'];        //实际里程数
                $DispatchOrdGasoline    = $rs['DispatchOrdGasoline'];        //油耗
                $DispatchOrdRemarks        = $rs['DispatchOrdRemarks'];        //行驶备注记录
                $EntourageName_aid1        = $rs['EntourageName_aid1'];        //外援人员1
                $EntourageName_aid2        = $rs['EntourageName_aid2'];        //外援人员2
                $DispatchOrdPerfomance    = $rs['DispatchOrdPerfomance'];
                $RecommendedCar            = $rs['RecommendedCar'];            //指定车型
                $CarStItm_OAId            = $rs['CarStItm_OAId'];            //物品清单检查人ID
                $StretcherMoney            = $rs['StretcherMoney'];            //担架费
            }
        }else{
            $DispatchOrdID        = "";
        }
    }
}
 
//服务单数据
if ($ServiceOrdID!=""){
    $sql="select *,OrdStartDate=convert(char,ServiceOrdStartDate,120),OrdApptDate=convert(char,ServiceOrdApptDate,120) from ServiceOrder where ServiceOrdID=".$ServiceOrdID;
    $data = sqlsrv_query($conn,$sql);
    if($data == true){
        if (sqlsrv_rows_affected($data)!=0) {
            while($rs = sqlsrv_fetch_array($data) ) {
                $ServiceOrdID            = $rs['ServiceOrdID'];            //服务单号
                $ServiceOrdClass        = $rs['ServiceOrdClass'];            //单据类型
                $ServiceOrdType        = $rs['ServiceOrdType'];            //服务单类型
                $ServiceOrdState        = $rs['ServiceOrdState'];            //服务单状态
                $ServiceOrdStartDate    = $rs['OrdStartDate'];        //开单日期
                $ServiceOrdApptDate    = $rs['OrdApptDate'];        //预约日期
                //If year(ServiceOrdApptDate)<2010 then ServiceOrdApptDate=""
                $ServiceOrdCoName        = $rs['ServiceOrdCoName'];        //联系人姓名
                $ServiceOrdCoPhone        = $rs['ServiceOrdCoPhone'];        //联系人电话
                $ServiceOrdCoTies        = $rs['ServiceOrdCoTies'];        //联系人与患者关系
                $ServiceOrdPtName        = $rs['ServiceOrdPtName'];        //患者姓名
                $ServiceOrdPtAge        = $rs['ServiceOrdPtAge'];            //患者年龄
                $ServiceOrdPtSex        = $rs['ServiceOrdPtSex'];            //患者性别
                $ServiceOrdPtNat        = $rs['ServiceOrdPtNat'];            //患者国籍
                $ServiceOrdPtOutHosp    = $rs['ServiceOrdPtOutHosp'];        //转出医院
                $ServiceOrdPtServicesID    = $rs['ServiceOrdPtServicesID'];        //科室ID
                $ServiceOrdPtServices    = $rs['ServiceOrdPtServices'];    //科室
                $ServiceOrdPtDiagnosis    = $rs['ServiceOrdPtDiagnosis'];    //诊断
                $ServiceOrdPtCondition    = $rs['ServiceOrdPtCondition'];    //备注
                $ServiceOrdPtDoctor    = $rs['ServiceOrdPtDoctor'];        //患者医生
                $ServiceOrdPtDoctorPhone=$rs['ServiceOrdPtDoctorPhone'];    //患者医生电话
                $ServiceOrdTraProvince    = $rs['ServiceOrdTraProvince'];    //出发地省份
                $ServiceOrdTraCity        = $rs['ServiceOrdTraCity'];        //出发地城市
                $ServiceOrdTraStreet    = $rs['ServiceOrdTraStreet'];        //出发地
                $ServiceOrdTraStreetCoo= $rs['ServiceOrdTraStreetCoo'];    //出发地坐标
                $ServiceOrdTraEnd        = $rs['ServiceOrdTraEnd'];        //目的地
                $ServiceOrdTraEndCoo    = $rs['ServiceOrdTraEndCoo'];        //目的地坐标
                $ServiceOrdTraDistance    = $rs['ServiceOrdTraDistance'];    //距离(公里)
                $ServiceOrdTraDuration    = $rs['ServiceOrdTraDuration'];    //预计行程时间
                $ServiceOrdTraUnitPrice= $rs['ServiceOrdTraUnitPrice'];    //单价/公里
                $ServiceOrdTraOfferPrice=$rs['ServiceOrdTraOfferPrice'];    //标准报价
                $ServiceOrdTraTxnPrice    = $rs['ServiceOrdTraTxnPrice'];    //成交价
                $ServiceOrdTraPrePayment= $rs['ServiceOrdTraPrePayment'];    //需预付款金额
                $ServiceOrdTraPaidPrice= $rs['ServiceOrdTraPaidPrice'];    //已支付金额
                $ServiceOrdTraPriceReason=$rs['ServiceOrdTraPriceReason'];//差价原因
                $Guest_Point            = $rs['Guest_Point'];            //评价情况
 
                $ServiceOrdTraVia    = $rs['ServiceOrdTraVia'];    //客人出发地
                $ServiceOrdTraEnd    = $rs['ServiceOrdTraEnd'];    //客人目的地
            }
        }else{
            $ServiceOrdID        = "";
        }
    }
}
 
//发票信息数据
if ($ServiceOrdID!=""){
    $sql="select *,ApplicationTime=convert(char,ApplicationTime,120),AuditTime=convert(char,AuditTime,120) from InvoiceData where AuditStatus<>4 and ServiceOrderIDPK=".$ServiceOrdID;
    $data = sqlsrv_query($conn,$sql);
    if($data == true){
        if (sqlsrv_rows_affected($data)!=0) {
            while($rs = sqlsrv_fetch_array($data) ) {
                $InvoiceID            = $rs['InvoiceID'];            //开票信息ID
                $InvoiceType        = $rs['InvoiceType'];        //开票类型
                $InvoiceName        = $rs['InvoiceName'];        //发票抬头
                $InvoiceMakeout        = $rs['InvoiceMakeout'];    //发票备注
                $InvoiceCompanyPhone= $rs['InvoiceCompanyPhone'];//企业电话
                $InvoiceCompanyID    = $rs['InvoiceCompanyID'];    //纳税识别号
                $InvoiceCompanyAdd    = $rs['InvoiceCompanyAdd'];    //企业注册地址
                $InvoiceCompanyBank    = $rs['InvoiceCompanyBank'];//企业开户银行
                $InvoiceCompanyBankNo=$rs['InvoiceCompanyBankNo'];//企业银行账号
                $InvoiceZipCode        = $rs['InvoiceZipCode'];    //邮编
                $Invoice_strAdd        = $rs['Invoice_strAdd'];    //邮寄地址
                $Invoice_strName    = $rs['Invoice_strName'];    //联系人
                $Invoice_strPhone    = $rs['Invoice_strPhone'];    //联系电话
                $ApplicationTime    = $rs['ApplicationTime'];    //申请时间
                $AuditTime            = $rs['AuditTime'];            //处理时间
                $AuditStatus        = $rs['AuditStatus'];        //处理状态
                $AuditOAID            = $rs['AuditOAID'];            //处理人
                $AuditMakeout        = $rs['AuditMakeout'];        //处理备注
                $InvoiceMoney        = $rs['InvoiceMoney'];        //发票金额
                $InvoiceNo            = $rs['InvoiceNo'];            //发票编号
                $InvoiceURL            = $rs['InvoiceURL'];        //发票链接
            }
        }else{
            $InvoiceID=0;
            $InvoiceType        = 2;        //开票类型
            $InvoiceName        = "";        //发票抬头
            $InvoiceMakeout        = "";    //发票备注
            $InvoiceCompanyPhone= "";//企业电话
            $InvoiceCompanyID    = "";    //纳税识别号
            $InvoiceCompanyAdd    = "";    //企业注册地址
            $InvoiceCompanyBank    = "";//企业开户银行
            $InvoiceCompanyBankNo="";//企业银行账号
            $InvoiceZipCode        = "";    //邮编
            $Invoice_strAdd        = "";    //邮寄地址
            $Invoice_strName    = "";    //联系人
            $Invoice_strPhone    = "";    //联系电话
            $ApplicationTime    = "";    //申请时间
            $AuditTime            = "";            //处理时间
            $AuditStatus        = "";        //处理状态
            $AuditOAID            = "";            //处理人
            $AuditMakeout        = "";        //处理备注
            $InvoiceMoney        = "";        //发票金额
            $InvoiceNo            = "";            //发票编号
            $InvoiceURL            = "";        //发票链接
        }
    }
}
 
if(empty($ServiceOrdID)!=false){header("Location: /MyCenter.php");exit;}
 
 
?>
 
<header class="text-left dasang">
    <?php if ($SMT=="3"){?>
    <p class="text-center" style="margin-top: 10px;"><img width="100%" src="/img/success2.png"/></p>
    <p class="text-center" style="color: #656565;font-size: 18px;">保存完成</p>
    <div class="ds_form text-center">
        <div class="col-xs-12">
            <div class="anniu" onClick="javascript:location.href='/MyOrder.php?ServiceOrdID=<?php echo $ServiceOrdID?>&DispatchOrdID=<?php echo $DispatchOrdID?>&sign=<?php echo MD5($ServiceOrdID.$DispatchOrdID.$GPSKey);?>';" style="position: initial;">
                <input class="SiteGo SiteGo1" type="button" value="返回我的订单" />
            </div>
        </div>
    </div>
    <?php }else{?>
    <div class="AddSiteUL">
        <form method="post" action="MyPhoneSave.php">
        <input name="MySave" type="hidden" value="2">
        <input name="ServiceOrdID" type="hidden" value="<?php echo $ServiceOrdID?>">
        <input name="DispatchOrdID" type="hidden" value="<?php echo $DispatchOrdID?>">
        <input name="InvoiceID" type="hidden" value="<?php echo $InvoiceID?>">
                <li>
                    <span class="AddSiteSpan">发票类型:</span>
                    <select id="InvoiceType" name="InvoiceType" onchange="JS_InvoiceType();">
                        <option value="1"<?php if ($InvoiceType=="1"){echo " selected";};?>>不开发票</option>
                        <option value="2"<?php if ($InvoiceType=="2"){echo " selected";};?>>电子发票</option>
                        <option value="3"<?php if ($InvoiceType=="3"){echo " selected";};?>>增值税普票</option>
                        <!--<option value="4"<?php if ($InvoiceType=="4"){echo " selected";};?>>增值税专票</option>-->
                    </select>
                </li>
                <li id="Invoice_1" style="display:none;">
                    <span class="AddSiteSpan">发票抬头:</span>
                    <input class="SiteText" type="text" name="InvoiceName" value="<?php echo $InvoiceName?>" style="width: 65%;"/>
                </li>
                <li id="Invoice_2" style="display:none;">
                    <span class="AddSiteSpan">发票备注:</span>
                    <input class="SiteText" type="text" name="InvoiceMakeout" value="<?php echo $InvoiceMakeout?>" placeholder="(选填)" style="width: 65%;"/>
                </li>
                <li id="Invoice_3" style="display:none;">
                    <span class="AddSiteSpan">企业电话:</span>
                    <input class="SiteText" type="text" name="InvoiceCompanyPhone" value="<?php echo $InvoiceCompanyPhone?>" placeholder="企业电话请加区号" style="width: 65%;"/>
                </li>
                <li id="Invoice_4" style="display:none;">
                    <span class="AddSiteSpan">纳税识别号:</span>
                    <input class="SiteText" type="text" name="InvoiceCompanyID" value="<?php echo $InvoiceCompanyID?>" placeholder="(单位必填)"  style="width: 65%;"/>
                </li>
                <li id="Invoice_5" style="display:none;">
                    <span class="AddSiteSpan">企业注册地址:</span>
                    <input class="SiteText" type="text" name="InvoiceCompanyAdd" value="<?php echo $InvoiceCompanyAdd?>" placeholder="与税务登记证一致" style="width: 65%;"/>
                </li>
                <li id="Invoice_6" style="display:none;">
                    <span class="AddSiteSpan">企业开户银行:</span>
                    <input class="SiteText" type="text" name="InvoiceCompanyBank" value="<?php echo $InvoiceCompanyBank?>" placeholder="与银行开户证明一致" style="width: 65%;"/>
                </li>
                <li id="Invoice_7" style="display:none;">
                    <span class="AddSiteSpan">企业银行账号:</span>
                    <input class="SiteText" type="text" name="InvoiceCompanyBankNo" value="<?php echo $InvoiceCompanyBankNo?>" placeholder="与银行开户证明一致" style="width: 65%;"/>
                </li>
                <li id="Invoice_8" style="display:none;">
                    <span class="AddSiteSpan">邮编:</span>
                    <input class="SiteText" type="text" name="InvoiceZipCode" value="<?php echo $InvoiceZipCode?>" style="width: 65%;"/>
                </li>
                <li id="Invoice_9" style="display:none;">
                    <span class="AddSiteSpan">邮寄地址:</span>
                    <input class="SiteText" type="text" name="Invoice_strAdd" value="<?php echo $Invoice_strAdd?>" style="width: 65%;"/>
                </li>
                
                <li id="Invoice_10" style="display:none;">
                    <span class="AddSiteSpan">联系人:</span>
                    <input class="SiteText" type="text" name="Invoice_strName" value="<?php echo $Invoice_strName?>" style="width: 65%;"/>
                </li>
                <li id="Invoice_11" style="display:none;">
                    <span class="AddSiteSpan">联系电话:</span>
                    <input class="SiteText" type="text" name="Invoice_strPhone" value="<?php echo $Invoice_strPhone?>" style="width: 65%;"/>
                </li>
            </ul>
                
            <input class="SiteGo SiteGo1 tj6" type="submit" value="保存" />
            
        </form>
    </div>
    <div>
        <div class="waitername"  style="font-size: 10px;"><br>
        1. <span  style="color: #F44336;">从2020年1月8日起施行 新版增值税电子普通发票,新版电子发票采用电子签名代替发票专用章(即发票票面无发票章),其法律效力与增值税普通发票相同。<br></span>
        2. 发票审核完成后不可修改,若因填写错误导致开具、寄送问题,将无法重开。<br>
        3. 因三证合一等问题导致税务变更,请先和公司财务确认清楚,税号确认错误将无法重开。<br>
        4. 电子发票和增值税专票抬头均为认证申请机构全称。<br>
        5. 审核完成后,电子发票将在3个工作日内开具,纸质发票将在30个工作日内开具并寄出。可先查看各类发票样式,避免无法报销。
        </div>     
    </div>
    <script>
    $(function(){
    var reg = /^(((13[0-9]{1})|(14[0-9]{1})|(17[0]{1})|(15[0-3]{1})|(15[5-9]{1})|(18[0-9]{1}))+\d{8})$/;
 
        $(".tj6").click(function(){
            var InvoiceType=document.getElementById("InvoiceType").value;
            var InvoiceName = $.trim($('input[name="InvoiceName"]').val());
            var InvoiceCompanyPhone = $.trim($('input[name="InvoiceCompanyPhone"]').val());
            var InvoiceCompanyID = $.trim($('input[name="InvoiceCompanyID"]').val());
            var InvoiceCompanyAdd = $.trim($('input[name="InvoiceCompanyAdd"]').val());
            var InvoiceCompanyBank = $.trim($('input[name="InvoiceCompanyBank"]').val());
            var InvoiceCompanyBankNo = $.trim($('input[name="InvoiceCompanyBankNo"]').val());
            var InvoiceZipCode = $.trim($('input[name="InvoiceZipCode"]').val());
            var Invoice_strAdd = $.trim($('input[name="Invoice_strAdd"]').val());
            var Invoice_strName = $.trim($('input[name="Invoice_strName"]').val());
            var Invoice_strPhone = $.trim($('input[name="Invoice_strPhone"]').val());
            if (InvoiceType=="2")
            {
                if(InvoiceName == ""){alert('请填写发票抬头!');return false;}
                //else if(InvoiceCompanyID == ""){alert('请填写纳税识别号!');return false;}
                else if(Invoice_strName == ""){alert('请填写联系人姓名!');return false;}
                else if(Invoice_strPhone == ""){alert('请填写手机号码!');return false;}
                else if(Invoice_strPhone.search(reg) < 0){alert('请输入正确手机号!');return false;}
            }
            else if (InvoiceType=="3")
            {
                if(InvoiceName == ""){alert('请填写发票抬头!');return false;}
                else if(Invoice_strAdd == ""){alert('请填写邮寄地址!');return false;}
                else if(Invoice_strName == ""){alert('请填写联系人姓名!');return false;}
                else if(Invoice_strPhone == ""){alert('请填写手机号码!');return false;}
                else if(Invoice_strPhone.search(reg) < 0){alert('请输入正确手机号!');return false;}
            }
            else if (InvoiceType=="4")
            {
                if(InvoiceName == ""){alert('请填写发票抬头!');return false;}
                else if(InvoiceCompanyPhone == "" || InvoiceCompanyID == "" || InvoiceCompanyAdd == "" || InvoiceCompanyBank == "" || InvoiceCompanyBankNo == ""){alert('请填写企业信息!');return false;}
                else if(Invoice_strAdd == ""){alert('请填写邮寄地址!');return false;}
                else if(Invoice_strName == ""){alert('请填写联系人姓名!');return false;}
                else if(Invoice_strPhone == ""){alert('请填写手机号码!');return false;}
                else if(Invoice_strPhone.search(reg) < 0){alert('请输入正确手机号!');return false;}
            }
        });
    })
 
    function JS_InvoiceType()
    {
        var InvoiceType=document.getElementById("InvoiceType").value;
        if (InvoiceType=="1")
        {
            document.getElementById("Invoice_1").style.display="none";
            document.getElementById("Invoice_2").style.display="none";
            document.getElementById("Invoice_3").style.display="none";
            document.getElementById("Invoice_4").style.display="none";
            document.getElementById("Invoice_5").style.display="none";
            document.getElementById("Invoice_6").style.display="none";
            document.getElementById("Invoice_7").style.display="none";
            document.getElementById("Invoice_8").style.display="none";
            document.getElementById("Invoice_9").style.display="none";
            document.getElementById("Invoice_10").style.display="none";
            document.getElementById("Invoice_11").style.display="none";
        }else if (InvoiceType=="2")
        {
            document.getElementById("Invoice_1").style.display="block";
            document.getElementById("Invoice_2").style.display="block";
            document.getElementById("Invoice_3").style.display="none";
            document.getElementById("Invoice_4").style.display="block";
            document.getElementById("Invoice_5").style.display="none";
            document.getElementById("Invoice_6").style.display="none";
            document.getElementById("Invoice_7").style.display="none";
            document.getElementById("Invoice_8").style.display="none";
            document.getElementById("Invoice_9").style.display="none";
            document.getElementById("Invoice_10").style.display="block";
            document.getElementById("Invoice_11").style.display="block";
        }else if (InvoiceType=="3")
        {
            document.getElementById("Invoice_1").style.display="block";
            document.getElementById("Invoice_2").style.display="none";
            document.getElementById("Invoice_3").style.display="none";
            document.getElementById("Invoice_4").style.display="block";
            document.getElementById("Invoice_5").style.display="none";
            document.getElementById("Invoice_6").style.display="none";
            document.getElementById("Invoice_7").style.display="none";
            document.getElementById("Invoice_8").style.display="none";
            document.getElementById("Invoice_9").style.display="block";
            document.getElementById("Invoice_10").style.display="block";
            document.getElementById("Invoice_11").style.display="block";
        }else if (InvoiceType=="4")
        {
            document.getElementById("Invoice_1").style.display="block";
            document.getElementById("Invoice_2").style.display="block";
            document.getElementById("Invoice_3").style.display="block";
            document.getElementById("Invoice_4").style.display="block";
            document.getElementById("Invoice_5").style.display="block";
            document.getElementById("Invoice_6").style.display="block";
            document.getElementById("Invoice_7").style.display="block";
            document.getElementById("Invoice_8").style.display="block";
            document.getElementById("Invoice_9").style.display="block";
            document.getElementById("Invoice_10").style.display="block";
            document.getElementById("Invoice_11").style.display="block";
        }
        
    }
    JS_InvoiceType();
    </script>
    <?php }?>
</header>
 
<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script>
  wx.config({
    //debug: true,
    appId: '<?php echo $signPackage["appId"];?>',
    timestamp: <?php echo $signPackage["timestamp"];?>,
    nonceStr: '<?php echo $signPackage["nonceStr"];?>',
    signature: '<?php echo $signPackage["signature"];?>',
    jsApiList: [
      // 所有要调用的 API 都要加到这个列表中
        'checkJsApi',
        'updateAppMessageShareData',
        'updateTimelineShareData'
    ]
  });
  wx.ready(function () {
    // 在这里调用 API
    //自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
    wx.updateAppMessageShareData({ 
        title: '966120医疗快线', // 分享标题
        desc: '966120医疗快线', // 分享描述
        link: '<?php echo $ShareURL?>', // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
        imgUrl: 'https://wx.966120.com.cn/img/20181102151700.png', // 分享图标
        success: function () {
          // 设置成功
        }
    });
    //自定义“分享到朋友圈”及“分享到QQ空间”按钮的分享内容(1.4.0)
    wx.updateTimelineShareData({ 
        title: '966120医疗快线', // 分享标题
        link: '<?php echo $ShareURL?>', // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
        imgUrl: 'https://wx.966120.com.cn/img/20181102151700.png', // 分享图标
        success: function () {
          // 设置成功
        }
    });
  });
 window.addEventListener('pageshow', function(e) {
    // 通过persisted属性判断是否存在 BF Cache
    if (e.persisted) {
        location.reload();
    }
});
</script>
 
</body>
</html>