审查视图

public/themes/simpleboot3/portal/order_salesman/get_all.html 62.2 KB
1 2 3
<!DOCTYPE html>
<html lang="en">
王晓刚 authored
4 5 6 7 8 9 10 11 12
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
    <title>学考无忧-订单管理</title>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.min.css"/>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.picker.min.css"/>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css"/>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/log.css"/>
王晓刚 authored
13 14 15 16 17 18 19 20 21
    <style>
        .tx_masktwo {
            display: none;
            z-index: 2;
            width: 100%;
            height: 100%;
            position: fixed;
            background-color: rgba(0, 0, 0, 0.5);
        }
22 23

        .take_one {
王晓刚 authored
24 25 26 27 28 29 30 31 32 33 34 35 36 37
            margin-top: 0.3rem;
            width: 1.6rem;
            height: 0.48rem;
            background: linear-gradient(328deg, rgba(255, 78, 0, 1) 0%, rgba(255, 157, 45, 1) 100%);
            box-shadow: 0 0.06rem 0.12rem rgba(255, 128, 0, 0.24);
            opacity: 1;
            border-radius: 0.08rem;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.26rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 1);
        }
anyv authored
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

        .tx_mask_class {
            display: none;
            z-index: 3;
            width: 100%;
            height: 100%;
            position: fixed;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .tx_maskCon_class {
            width: 100%;
            height: 5.16rem;
            background: #fff;
            position: fixed;
            bottom: 0;
        }

        .three_model_class_name {
            height: 0.36rem;
            margin: 0.08rem;
            font-size: 0.24rem;
            font-weight: 400;
            color: #666666;
            opacity: 1;
            padding: 0.2rem 0;
            line-height: 0;
            border-left: none;
            border-right: none
        }
68 69

        .get_Go {
anyv authored
70 71 72 73 74 75 76 77 78 79 80 81
            height: 0.36rem;
            margin: 0.08rem;
            font-size: 0.24rem;
            font-weight: 400;
            cursor: pointer;
            color: #666666;
            opacity: 1;
            padding: 0.2rem 0;
            line-height: 0;
            border-left: none;
            border-right: none;
        }
82
4  
anyv authored
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
        .mui-poppicker-header,
        .mui-picker {
            background-color: white;
        }

        .mui-btn-blue,
        .mui-btn-primary,
        input[type=submit] {
            background-color: #FF7700;
            border: 0;
        }

        .mui-pciker-list li.highlight {
            color: #FF7700;
        }
98 99

        .mui-dtpicker-header, .mui-dtpicker-title h5 {
4  
anyv authored
100 101
            background-color: white;
        }
102 103

        .dingdan_lianxi_ren {
1  
anyv authored
104 105 106 107 108 109 110
            font-size: 0.28rem;
            cursor: pointer;
            font-family: PingFang SC;
            font-weight: 400;
            color: rgba(102, 102, 102, 1);
            opacity: 1;
        }
111 112

        /*.dingdan_detail {*/
113
        /*padding-top: 0.22rem;*/
114 115 116
        /*}*/

        .dingdan_detail_hao {
1  
anyv authored
117 118 119 120 121 122
            font-size: 0.28rem;
            cursor: pointer;
            font-family: PingFang SC;
            font-weight: 400;
            color: rgba(102, 102, 102, 1);
            opacity: 1;
123
            margin-top: 0.2rem;
1  
anyv authored
124
        }
125 126

        .right_dingdan {
1  
anyv authored
127 128 129
            width: 5.6rem;
            margin-left: 0.2rem;
        }
130 131

        .right_dingdan_top {
1  
anyv authored
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
            display: flex;
            justify-content: space-between;
            display: -webkit-box; /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */
            display: -moz-box; /* Firefox 17- */
            display: -webkit-flex; /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */
            display: -moz-flex; /* Firefox 18+ */
            display: -ms-flexbox; /* IE 10 */
            display: flex; /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */
            justify-content: space-between;
            -webkit-flex-justify-content: space-between;
            -moz-box-justify-content: space-between;
            -ms-flexbox-justify-content: space-between;
            -webkit-flexalign-align-items: center;
            -moz-box-align-items: center;
            -ms-flexbox-align-items: center;
        }
148 149

        .right_dingdan_center {
1  
anyv authored
150 151
            text-align: right;
        }
152 153

        .right_dingdan_one {
1  
anyv authored
154 155 156 157 158 159
            font-size: 0.26rem;
            cursor: pointer;
            font-weight: 400;
            color: rgba(51, 51, 51, 1);
            opacity: 1;
        }
160 161

        .right_dingdan_two {
1  
anyv authored
162 163 164 165 166 167 168
            font-size: 0.34rem;
            font-weight: 400;
            cursor: pointer;
            line-height: 25px;
            color: rgba(51, 51, 51, 1);
            opacity: 1;
        }
169 170

        .shuju_zongshu {
1  
anyv authored
171 172 173 174 175 176
            padding-left: 0.4rem;
            font-size: 0.28rem;
            font-weight: 600;
            color: #333;
            border-radius: 0.08rem;
        }
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
        .log_three_bottom2{
            margin-top: 0.3rem;
            cursor: pointer;
            width: 1.6rem;
            height: 0.48rem;
            background: linear-gradient(328deg, rgba(255, 78, 0, 1) 0%, rgba(255, 157, 45, 1) 100%);
            box-shadow: 0 0.06rem 0.12rem rgba(255, 128, 0, 0.24);
            opacity: 1;
            border-radius: 0.08rem;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.26rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 1);
        }
王晓刚 authored
193
    </style>
王晓刚 authored
194
</head>
195
4  
anyv authored
196
<body style="cursor:pointer;">
anyv authored
197 198 199 200 201 202 203 204 205 206


<!--学校弹窗-->
<div class="tx_mask_school" onclick="$(this).hide()">
    <div class="tx_maskCon_school" onclick="zZFun(this)">
        <div class="three_model_school">
            <div class="three_model_school_title">
                选择学校
            </div>
            <div class="three_model_school_data there_university" style="display: block;">
4  
anyv authored
207
anyv authored
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
            </div>
        </div>
    </div>
</div>
<!--班级弹窗-->
<div class="tx_mask_class" onclick="$(this).hide()">
    <div class="tx_maskCon_class" onclick="zZFun(this)">
        <div class="three_model_school">
            <div class="three_model_school_title">
                选择班级
            </div>
            <div class="three_model_school_data there_university grade" style="display: block;">
            </div>
        </div>
    </div>
</div>
225
王晓刚 authored
226
<!--统一配送-->
2  
anyv authored
227 228
<div class="tx_mask_tongyi" onclick="$(this).hide()">
    <div class="tx_maskCon_tongyi" onclick="zZFun(this)">
王晓刚 authored
229 230
        <div class="three_model_school">
            <div class="three_model_school_data" style="display: block;">
anyv authored
231 232
                <div class="three_modal_kuaidi_name there_unActive" data-id="1">统一配送</div>
                <div class="three_modal_kuaidi_name" data-id="2">快递配送</div>
王晓刚 authored
233
            </div>
王晓刚 authored
234
        </div>
王晓刚 authored
235 236 237 238 239 240 241 242 243 244 245
    </div>
</div>
<!--选择快递-->
<div class="tx_mask_kuaidi">
    <div class="tx_maskCon_school">
        <div class="three_model_school">
            <div class="three_model_school_title">
                选择快递
            </div>
            <div>
                <div class="three_model_school_data" style="display: block;">
anyv authored
246 247 248 249 250 251 252 253 254 255 256 257
                    <div class="get_Go" data-name="SF">顺丰快递</div>
                    <div class="get_Go" data-name="YTO">圆通快递</div>
                    <div class="get_Go" data-name="ZTO">中通快递</div>
                    <div class="get_Go there_unActive" data-name="STO">申通快递</div>
                    <div class="get_Go" data-name="YD">韵达快递</div>
                    <div class="get_Go" data-name="HHTT">天天快递</div>
                    <div class="get_Go" data-name="HTKY">百世快递</div>
                    <div class="get_Go" data-name="YZPY">邮政快递包裹</div>
                    <div class="get_Go" data-name="EMS">EMS</div>
                    <div class="get_Go" data-name="DBL">德邦快递</div>
                    <div class="get_Go" data-name="ZJS">宅急送</div>
                    <div class="get_Go" data-name="TNT">TNT快递</div>
王晓刚 authored
258 259 260 261 262
                </div>
            </div>
        </div>
    </div>
</div>
王晓刚 authored
263 264 265 266 267 268 269 270 271
<div class="tx_masktwo" style="display: none;">
    <div class="tx_maskCon">
        <div class="tx_maskConImg">
            <img src="__TMPL__/public/assets/images/91.png" alt=""/>
        </div>
        <div class="tx_maskCon2">
            <div class="log_three_model">
                <div class="log_three_model_one time">
                    <div class="log_three_model_left">配送时间</div>
272 273
                    <div class="log_psong tongyi_start_time2" style="color: #CCCCCC;">
                        请选择配送到达时间
王晓刚 authored
274
                    </div>
275
                    <input type="hidden" id="start_time2" value="" placeholder="请输入开配送时间"/>
王晓刚 authored
276
                </div>
277 278 279 280 281 282
                <!--<div class="log_three_model_one time">-->
                    <!--<div class="log_three_model_left">配送时间</div>-->
                    <!--<div class="log_psong">-->
                        <!--<input type="text" id="end_time2" value="" placeholder="请输入结束配送时间"/>-->
                    <!--</div>-->
                <!--</div>-->
王晓刚 authored
283 284 285 286 287 288
            </div>
            <!-- 确定 -->
            <div class="tx_maskOk confirm2" data-is_courier="" data-id="" data-indent-id="">确定</div>
        </div>
    </div>
</div>
2  
anyv authored
289 290
<div class="tx_maskone" onclick="$(this).hide()">
    <div class="tx_maskCon" onclick="zZFun(this)">
王晓刚 authored
291 292 293 294 295
        <div class="tx_maskConImg">
            <img src="__TMPL__/public/assets/images/91.png" alt=""/>
        </div>
        <div class="tx_maskCon2">
            <div class="log_three_model">
王晓刚 authored
296
                <div class="log_three_model_one time">
王晓刚 authored
297
                    <div class="log_three_model_left">配送时间</div>
298 299
                    <div class="log_psong tongyi_start_time" style="color: #CCCCCC;">
                        请选择配送到达时间
王晓刚 authored
300
                    </div>
301
                    <input type="hidden" id="start_time" value="" placeholder="请输入开配送时间"/>
王晓刚 authored
302
                </div>
303
                <!--<div class="log_three_model_one time">
王晓刚 authored
304 305
                    <div class="log_three_model_left">配送时间</div>
                    <div class="log_psong">
王晓刚 authored
306 307
                        <input type="text" id="end_time" value="" placeholder="请输入结束配送时间"/>
                    </div>
308
                </div>-->
309
                <div class="log_three_model_one logistic">
王晓刚 authored
310 311
                    <div class="log_three_model_left">选择快递</div>
                    <div class="log_psong log_psong_select">
anyv authored
312
                        <div class="log_ps_title2 get_Gofo">请选择快递公司</div>
王晓刚 authored
313
                        <div class="log_ps_img">
王晓刚 authored
314
                            <img src="__TMPL__/public/assets/images/29.png"/>
315
                            <input type="hidden" id="logistic_name" placeholder="请选择快递公司"/>
王晓刚 authored
316 317 318 319 320 321 322
                        </div>
                    </div>
                </div>
                <div class="log_three_model_one logistic" style="padding-bottom: 0;">
                    <div class="log_three_model_left" style="margin-top: -0.3rem;">快递单号</div>
                    <div class="log_three_model_right">
                        <input type="text" id="logistic_code" placeholder="请输入快递单号"/>
王晓刚 authored
323 324 325 326
                    </div>
                </div>
            </div>
            <!-- 确定 -->
王晓刚 authored
327
            <div class="tx_maskOk confirm" data-is_courier="" data-id="" data-indent-id="">确定</div>
王晓刚 authored
328 329 330 331 332 333
        </div>
    </div>
</div>
<div class="log_top_co">
    <!-- 顶部 -->
    <div class=" order_top log_top_co">
anyv authored
334
        <a href="javascript:history.back(-1)">
王晓刚 authored
335 336 337 338 339 340 341
            <img src="__TMPL__/public/assets/images/left.png" alt=""/>
        </a>
        <p>订单管理</p>
    </div>
</div>
<!-- tab切换 -->
<div class="log_three_tab log_three_tab_top">
4  
anyv authored
342 343 344
    <div class="log_three_tab_one log_three_tab_two word_color aaa" data-state="2" style="cursor: pointer">未发货</div>
    <div class="log_three_tab_one" data-state="5" style="cursor: pointer">已发货</div>
    <div class="log_three_tab_one" data-state="3" style="cursor: pointer">已完成</div>
王晓刚 authored
345 346 347
</div>
<!-- 下拉框  -->
<div class="log_three_select">
348 349 350 351 352 353 354 355
    <!-- <div class="log_three_select_one log_three_select_school" style="cursor: pointer">
         <div class="log_three_select_title log_three_select_school2">
             请选择学校/班级
         </div>
         <div class="log_three_select_img">
             <img src="__TMPL__/public/assets/images/75.png" alt=""/>
         </div>
     </div>-->
anyv authored
356 357 358 359 360 361 362


    <div class="log_three_select_one log_three_select_school">
        <div class="log_three_select_title log_three_select_school2">
            请选择学校
        </div>
        <!--<div class="log_three_select_img">-->
363
        <!--<img src="__TMPL__/public/assets/images/75.png" alt="" />-->
anyv authored
364 365 366 367 368 369 370
        <!--</div>-->
    </div>
    <div class="log_three_select_one log_three_select_school">
        <div class="log_three_select_title log_three_select_class2">
            请选择班级
        </div>
        <!--<div class="log_three_select_img">-->
371
        <!--<img src="__TMPL__/public/assets/images/75.png" alt="" />-->
anyv authored
372
        <!--</div>-->
王晓刚 authored
373
    </div>
anyv authored
374 375

4  
anyv authored
376
    <div class="log_three_select_one log_three_select_peisong log_three_select_tongyi" style="cursor: pointer">
王晓刚 authored
377
        <div class="log_three_select_title log_three_select_contant">
378
            统一配送
王晓刚 authored
379
        </div>
anyv authored
380
        <!--<div class="log_three_select_img">-->
381
        <!--<img src="__TMPL__/public/assets/images/75.png" alt=""/>-->
anyv authored
382
        <!--</div>-->
王晓刚 authored
383 384 385 386 387 388
    </div>
    <div class="log_three_select_one log_three_select_btn search">
        搜索
    </div>
    <input type="hidden" id="school" value=""/>
    <input type="hidden" id="grade" value=""/>
389
    <input type="hidden" id="is_courier" value="1"/>
王晓刚 authored
390
</div>
391 392 393 394
<php>$arr2 = [];</php>
<foreach name="$data" item="vo">
    <if condition="$vo.state eq 2">
        <php>$arr2[] = $vo;</php>
395
        <elseif condition="$vo.state eq 5"/>
396
        <php>$arr5[] = $vo;</php>
397
        <elseif condition="$vo.state eq 3"/>
398 399 400 401
        <php>$arr3[] = $vo;</php>
    </if>
</foreach>
<div class="shuju_zongshu">搜索结果为<span class="count">{:count($arr2)}</span></div>
王晓刚 authored
402 403 404 405 406 407
<!-- 列表内容 -->
<div>
    <!--未发货-->
    <div class="log_three_list_contant" style="display: block;">
        <foreach name="$data" item="vo">
            <if condition="$vo.state eq 2">
408
                <php>$arr1[] = $vo;</php>
409
                <div class="log_three_list order_{$vo.id}">
王晓刚 authored
410 411
                    <div class="log_three_list_top">
                        <div class="log_three_list_top_left">
412 413
                            <if condition="$vo.is_courier eq 1">
                                <div class="log_three_list_top_lo">
王晓刚 authored
414 415
                                    <img src="__TMPL__/public/assets/images/fangkuang.png"
                                         data-indent-id="{$vo['id']}" alt=""/>
416 417
                                </div>
                            </if>
王晓刚 authored
418 419 420 421 422
                            <div class="log_three_list_top_lt">
                                <div class="log_three_zhongbiao">
                                    <img src="__TMPL__/public/assets/images/52.png" alt=""/>
                                </div>
                                <div class="log_three_shijian">
王晓刚 authored
423
                                    {$vo['pay_time']}
王晓刚 authored
424 425 426 427 428 429 430 431 432 433 434 435 436
                                </div>
                            </div>
                        </div>
                        <div class="log_three_list_top_right">
                            <if condition="$vo.state eq 2">
                                待发货
                                <elseif condition="$vo.state eq 5"/>
                                已发货
                                <elseif condition="$vo.state eq 3"/>
                                已完成
                            </if>
                        </div>
                    </div>
王晓刚 authored
437
                    <a href="{:url('get_one',array('id'=>$vo['id']))}">
438 439 440
                        <div class="dingdan_detail_top">
                            <div class="dingdan_detail_hao">订单号:{$vo.order_number}</div>
                        </div>
王晓刚 authored
441
                        <foreach name="$vo.indent_goods" item="i_g">
1  
anyv authored
442 443 444
                            <div class="dingdan_detail">
                                <div class="log_three_list_center" style="display: flex;justify-content: flex-start;">
                                    <div class="log_three_list_center_left" style="width: 1.44rem;height:1.44rem">
445 446
                                        <img src="{:cmf_get_image_url($i_g.thumbnail)}" alt=""
                                             style="width: 100%;height: 100%;"/>
王晓刚 authored
447
                                    </div>
1  
anyv authored
448
                                    <!--<div class="log_three_list_center_right" style="margin-left: 0.16rem;width: 5.6rem">-->
449 450 451 452 453 454 455
                                    <!--<div class="log_three_center_one">-->
                                    <!--{$i_g.book_name}-->
                                    <!--</div>-->
                                    <!--<div class="right_dingdan_money">-->
                                    <!--<div class="log_three_center_three"><span>¥</span>{$i_g.price}</div>-->
                                    <!--<div class="log_three_center_two">×{$i_g.number}</div>-->
                                    <!--</div>-->
1  
anyv authored
456 457 458 459 460 461
                                    <!--</div>-->
                                    <div class="right_dingdan">
                                        <div class="right_dingdan_top">
                                            <div class="right_dingdan_one">{$i_g.book_name}</div>
                                            <div class="right_dingdan_two">¥{$i_g.price}</div>
                                        </div>
462 463 464
                                        <div class="right_dingdan_center">
                                            <div class="right_dindan_three right_dingdan_one">x{$i_g.number}</div>
                                        </div>
4  
anyv authored
465
466 467 468 469
                                        <div class="right_dingdan_four right_dingdan_one">地址:{$vo.school} {$vo.grade}
                                            {$vo.class}
                                        </div>
                                        <div class="right_dingdan_four right_dingdan_one" style="margin-top: -0.05rem;">
anyv authored
470
                                            {$vo.name}:{$vo.phone}
471 472
                                        </div>
                                    </div>
王晓刚 authored
473 474
                                </div>
                            </div>
王晓刚 authored
475 476
                        </foreach>
                    </a>
王晓刚 authored
477 478 479
                    <!-- 立即发货 -->
                    <div class="log_three_bottom_btn">
                        <if condition="$vo.state eq 2">
王晓刚 authored
480 481
                            <div class="log_three_bottom send" data-indent-id="{$vo.id}"
                                 data-is_courier="{$vo.is_courier}">
王晓刚 authored
482 483 484 485
                                立即发货
                            </div>
                            <elseif condition="$vo.state eq 5"/>
                            <if condition="$vo.is_courier eq 2">
王晓刚 authored
486
                                <a href="{:url('logistics/index',array('indent_id'=>$vo['id']))}">
487
                                    <div class="log_three_bottom2" data-indent-id="{$vo.id}">
王晓刚 authored
488 489 490
                                        查看物流
                                    </div>
                                </a>
491 492 493
                                <div class="log_three_bottom" data-indent-id="{$vo.id}">
                                    完成
                                </div>
王晓刚 authored
494 495
                            </if>
                            <elseif condition="$vo.state eq 3"/>
王晓刚 authored
496
                            <!--<div class="log_three_bottom" data-indent-id="{$vo.id}">-->
497
                            <!--已完成啦-->
王晓刚 authored
498
                            <!--</div>-->
王晓刚 authored
499 500 501 502 503
                        </if>
                    </div>
                </div>
            </if>
        </foreach>
504 505 506
        <empty name="$arr1">
            <div style="text-align: center;width: 100%;height:100%;margin:0 auto;">暂无数据</div>
        </empty>
王晓刚 authored
507
    </div>
1  
anyv authored
508
王晓刚 authored
509 510 511 512
    <!--已发货-->
    <div class="log_three_list_contant">
        <foreach name="$data" item="vo">
            <if condition="$vo.state eq 5">
513
                <php>$arr2[] = $vo;</php>
514
                <div class="log_three_list order_{$vo.id}">
王晓刚 authored
515 516
                    <div class="log_three_list_top">
                        <div class="log_three_list_top_left">
517 518
                            <if condition="$vo.is_courier eq 1">
                                <div class="log_three_list_top_lo">
王晓刚 authored
519 520
                                    <img src="__TMPL__/public/assets/images/fangkuang.png"
                                         data-indent-id="{$vo['id']}" alt=""/>
521 522
                                </div>
                            </if>
王晓刚 authored
523 524 525 526 527
                            <div class="log_three_list_top_lt">
                                <div class="log_three_zhongbiao">
                                    <img src="__TMPL__/public/assets/images/52.png" alt=""/>
                                </div>
                                <div class="log_three_shijian">
528
                                    {$vo['pay_time']}
王晓刚 authored
529 530 531 532 533 534 535 536 537 538 539 540 541
                                </div>
                            </div>
                        </div>
                        <div class="log_three_list_top_right">
                            <if condition="$vo.state eq 2">
                                代发货
                                <elseif condition="$vo.state eq 5"/>
                                已发货
                                <elseif condition="$vo.state eq 3"/>
                                已完成
                            </if>
                        </div>
                    </div>
王晓刚 authored
542 543
                    <a href="{:url('get_one',array('id'=>$vo['id']))}">
                        <foreach name="$vo.indent_goods" item="i_g">
5  
anyv authored
544
                            <div class="log_three_list_center" style="display: flex;justify-content: flex-start;">
545 546 547
                                <div class="log_three_list_center_left" style="width: 1.44rem;height:1.44rem">
                                    <img src="{:cmf_get_image_url($i_g.thumbnail)}" alt=""
                                         style="width: 100%;height: 100%;"/>
王晓刚 authored
548
                                </div>
5  
anyv authored
549
                                <div class="log_three_list_center_right" style="margin-left: 0.16rem;">
王晓刚 authored
550 551 552 553
                                    <div class="log_three_center_one">
                                        {$i_g.book_name}
                                    </div>
                                    <div class="log_three_center_two">×{$i_g.number}</div>
554
                                    <div class="log_three_center_three"><span></span>{$i_g.price}</div>
王晓刚 authored
555 556
                                </div>
                            </div>
王晓刚 authored
557 558
                        </foreach>
                    </a>
王晓刚 authored
559 560 561 562 563 564 565 566
                    <!-- 立即发货 -->
                    <div class="log_three_bottom_btn">
                        <if condition="$vo.state eq 2">
                            <div class="log_three_bottom" data-indent-id="{$vo.id}" data-is_courier="{$vo.is_courier}">
                                立即发货
                            </div>
                            <elseif condition="$vo.state eq 5"/>
                            <if condition="$vo.is_courier eq 2">
王晓刚 authored
567 568 569 570 571
                                <a href="{:url('logistics/index',array('indent_id'=>$vo['id']))}">
                                    <div class="log_three_bottom" data-indent-id="{$vo.id}">
                                        查看物流
                                    </div>
                                </a>
572
                                <else/>
573 574 575 576 577
                                <a href="{:url('logistics/index',array('indent_id'=>$vo['id']))}">
                                    <div class="log_three_bottom2" data-indent-id="{$vo.id}">
                                        查看物流
                                    </div>
                                </a>
王晓刚 authored
578 579 580
                                <div class="take_one" data-indent-id="{$vo.id}">
                                    完成
                                </div>
王晓刚 authored
581 582
                            </if>
                            <elseif condition="$vo.state eq 3"/>
王晓刚 authored
583
                            <!--<div class="log_three_bottom" data-indent-id="{$vo.id}">-->
584
                            <!--已完成啦-->
王晓刚 authored
585
                            <!--</div>-->
王晓刚 authored
586 587 588 589 590
                        </if>
                    </div>
                </div>
            </if>
        </foreach>
591 592 593
        <empty name="$arr2">
            <div style="text-align: center;width: 100%;height:100%;margin:0 auto;">暂无数据</div>
        </empty>
王晓刚 authored
594 595 596 597 598
    </div>
    <!--已完成-->
    <div class="log_three_list_contant">
        <foreach name="$data" item="vo">
            <if condition="$vo.state eq 3">
599
                <php>$arr3 = $vo;</php>
600
                <div class="log_three_list order_{$vo.id}">
王晓刚 authored
601 602
                    <div class="log_three_list_top">
                        <div class="log_three_list_top_left">
603 604
                            <if condition="$vo.is_courier eq 1">
                                <div class="log_three_list_top_lo">
王晓刚 authored
605 606
                                    <img src="__TMPL__/public/assets/images/fangkuang.png"
                                         data-indent-id="{$vo['id']}" alt=""/>
607 608
                                </div>
                            </if>
王晓刚 authored
609 610 611 612 613
                            <div class="log_three_list_top_lt">
                                <div class="log_three_zhongbiao">
                                    <img src="__TMPL__/public/assets/images/52.png" alt=""/>
                                </div>
                                <div class="log_three_shijian">
614
                                    {$vo['pay_time']}
王晓刚 authored
615 616 617 618 619 620 621 622 623 624 625 626 627
                                </div>
                            </div>
                        </div>
                        <div class="log_three_list_top_right">
                            <if condition="$vo.state eq 2">
                                代发货
                                <elseif condition="$vo.state eq 5"/>
                                已发货
                                <elseif condition="$vo.state eq 3"/>
                                已完成
                            </if>
                        </div>
                    </div>
王晓刚 authored
628 629
                    <a href="{:url('get_one',array('id'=>$vo['id']))}">
                        <foreach name="$vo.indent_goods" item="i_g">
5  
anyv authored
630 631
                            <div class="log_three_list_center" style="display: flex;justify-content: flex-start;">
                                <div class="log_three_list_center_left" style="width: 1.44rem;height:1.44rem">
632 633
                                    <img src="{:cmf_get_image_url($i_g.thumbnail)}" alt=""
                                         style="width: 100%;height: 100%;"/>
王晓刚 authored
634
                                </div>
5  
anyv authored
635
                                <div class="log_three_list_center_right" style="margin-left: 0.16rem;">
王晓刚 authored
636 637 638 639
                                    <div class="log_three_center_one">
                                        {$i_g.book_name}
                                    </div>
                                    <div class="log_three_center_two">×{$i_g.number}</div>
640
                                    <div class="log_three_center_three"><span></span>{$i_g.price}</div>
王晓刚 authored
641 642
                                </div>
                            </div>
王晓刚 authored
643 644
                        </foreach>
                    </a>
王晓刚 authored
645 646 647 648 649 650 651 652
                    <!-- 立即发货 -->
                    <div class="log_three_bottom_btn">
                        <if condition="$vo.state eq 2">
                            <div class="log_three_bottom" data-indent-id="{$vo.id}" data-is_courier="{$vo.is_courier}">
                                立即发货
                            </div>
                            <elseif condition="$vo.state eq 5"/>
                            <if condition="$vo.is_courier eq 2">
王晓刚 authored
653
                                <a href="{:url('logistics/index',array('indent_id'=>$vo['id']))}">
654
                                    <div class="log_three_bottom2" data-indent-id="{$vo.id}">
王晓刚 authored
655 656 657
                                        查看物流
                                    </div>
                                </a>
王晓刚 authored
658 659 660
                                <div class="log_three_bottom" data-indent-id="{$vo.id}">
                                    已完成
                                </div>
王晓刚 authored
661 662
                            </if>
                            <elseif condition="$vo.state eq 3"/>
王晓刚 authored
663
                            <!--<div class="log_three_bottom" data-indent-id="{$vo.id}">-->
664
                            <!--已完成啦-->
王晓刚 authored
665
                            <!--</div>-->
王晓刚 authored
666 667 668 669 670
                        </if>
                    </div>
                </div>
            </if>
        </foreach>
671 672 673
        <empty name="$arr3">
            <div style="text-align: center;width: 100%;height:100%;margin:0 auto;">暂无数据</div>
        </empty>
王晓刚 authored
674 675 676
    </div>
</div>
<!-- 底部按钮 -->
677 678 679
<div style="position: fixed;bottom:0;width: 100%;">
    <div class="log_three_list_fixed">
        <div class="log_three_fixed_left">
4  
anyv authored
680
            <div class="log_three_fixed_left_one" style="cursor: pointer">
681 682 683 684 685
                <img src="__TMPL__/public/assets/images/fangkuang.png" alt=""/>
            </div>
            <div class="log_three_fixed_left_two">
                全选
            </div>
王晓刚 authored
686
        </div>
687 688
        <div class="log_three_fixed_right unify_all">
            统一发货
王晓刚 authored
689 690 691 692 693 694 695 696 697
        </div>
    </div>
</div>
<script src="__TMPL__/public/assets/js/jquery.js"></script>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="__TMPL__/public/assets/js/mui.min.js"></script>
<script src="__TMPL__/public/assets/js/mui.picker.min.js"></script>
<script src="__TMPL__/public/assets/js/city.data-3.js"></script>
<script>
4  
anyv authored
698 699 700 701
    var schoolpicker = new mui.PopPicker();
    var classpicker = new mui.PopPicker();
    var class_arr = '';
    zujian();
702 703 704

    function zujian(data_class_arr) {
        (function ($, doc) {
4  
anyv authored
705 706
            $.init();
            school_arr = {$school};
707 708
            console.log(data_class_arr, 'dfdfds');
            $.ready(function () {
4  
anyv authored
709 710 711 712 713
                schoolpicker.setData(school_arr);
                classpicker.setData(data_class_arr);
            });
        })(mui, document);
    }
714
4  
anyv authored
715
    var school_name;
716 717
    $(".log_three_select_school2").click(function () {
        schoolpicker.show(function (e) {
4  
anyv authored
718 719
            school_name = e[0].value;
            school_names = e[0].text;
6  
anyv authored
720
            $('#school').val(school_names);
4  
anyv authored
721 722
            $(".log_three_select_school2").text(e[0].text);
            $('.log_three_select_school2').css('color', '#333333');
723 724
            $.post("{:url('Personalcenter/get_grade_class')}", {id: school_name}, function (data) {
                if (data) {
4  
anyv authored
725 726 727 728 729 730 731 732
                    data = JSON.parse(data);
                    zujian(data);
                }

            });
        });

    })
733 734 735 736
    $(".log_three_select_class2").click(function () {
        if (school_name != undefined) {
            classpicker.show(function (e) {
                class_name = e[0].text;
6  
anyv authored
737
                $('#grade').val(class_name);
4  
anyv authored
738 739 740 741 742 743
                $(".log_three_select_class2").text(e[0].text);
                $('.log_three_select_class2').css('color', '#333333');
            });
        } else {
            alert("请先选择学校")
        }
anyv authored
744 745 746
    })
</script>
<script>
2  
anyv authored
747 748 749
    function zZFun(e) {
        window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
    }
750
王晓刚 authored
751
    // 选择学校
752 753 754 755
    //    $(".three_model_school_left").click(function () {
    //        var indexs = $(this).index();
    //        $(".three_model_school_data").eq(indexs).css("display", "block").siblings().css("display", "none");
    //    });
756
王晓刚 authored
757 758 759 760
    $(".log_three_tab_one").click(function () {
        var tabIndex = $(this).index();
        $(this).addClass("log_three_tab_two").addClass("word_color").addClass('aaa').siblings().removeClass("log_three_tab_two").removeClass("word_color").removeClass("aaa");
        $('.log_three_list_contant').eq(tabIndex).css('display', 'block').siblings().css('display', 'none');
王晓刚 authored
761
        search();
762
        $('.log_three_fixed_left_one img').attr('src', "__TMPL__/public/assets/images/fangkuang.png")
王晓刚 authored
763 764 765 766
    });
    $(".three_model_school_tab>div").click(function () {
        $(this).addClass("three_model_school_hover").addClass("word_color").addClass('aaa').siblings().removeClass("three_model_school_hover").removeClass("word_color").removeClass("aaa");
    });
767
王晓刚 authored
768
    $("body").on('click', '.log_three_list_top_lo', function () {
王晓刚 authored
769 770 771 772 773
        if ($(this).find("img").attr("src") == "__TMPL__/public/assets/images/fangkuang.png") {
            $(this).find("img").attr("src", "__TMPL__/public/assets/images/xuanzhong (1).png");
        } else {
            $(this).find("img").attr("src", "__TMPL__/public/assets/images/fangkuang.png");
        }
774 775
        //判断订单是否全选了
        check();
王晓刚 authored
776
    });
777 778

    function check() {
779 780 781
        var index = $(".log_three_tab_top .log_three_tab_one").index($('.aaa'));
        var length = $(".log_three_list_contant").eq(index).find('.log_three_list_top_lo img').length;
        var l = 0;
782
        for (var n = 0; n < length; n++) {
783
            console.log($(".log_three_list_contant").eq(index).find('.log_three_list_top_lo img').eq(n).attr('src'));
784
            if ($(".log_three_list_contant").eq(index).find('.log_three_list_top_lo img').eq(n).attr('src') == "__TMPL__/public/assets/images/xuanzhong (1).png") {
785 786 787
                l++
            }
        }
788 789 790 791 792
        console.log('@@@@@' + l + '@@@@@' + length);
        if (l == length) {
            $('.log_three_fixed_left_one img').attr('src', "__TMPL__/public/assets/images/xuanzhong (1).png")
        } else {
            $('.log_three_fixed_left_one img').attr('src', "__TMPL__/public/assets/images/fangkuang.png")
793 794
        }
    }
795
王晓刚 authored
796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816
    $(".log_three_fixed_left_one").click(function () {
        if (
            $(this)
                .find("img")
                .attr("src") == "__TMPL__/public/assets/images/fangkuang.png"
        ) {
            $(this)
                .find("img")
                .attr("src", "__TMPL__/public/assets/images/xuanzhong (1).png");
            $(".log_three_list_top_lo")
                .find("img")
                .attr("src", "__TMPL__/public/assets/images/xuanzhong (1).png");
        } else {
            $(this)
                .find("img")
                .attr("src", "__TMPL__/public/assets/images/fangkuang.png");
            $(".log_three_list_top_lo")
                .find("img")
                .attr("src", "__TMPL__/public/assets/images/fangkuang.png");
        }
    });
817
王晓刚 authored
818 819 820 821 822
    $(".log_three_select_peisong").click(function () {
        $(".tx_mask").css({
            display: "block"
        });
    });
王晓刚 authored
823 824

    //统一配送
王晓刚 authored
825
    $(".log_three_select_tongyi").click(function () {
王晓刚 authored
826 827 828 829
        $(".tx_mask_tongyi").css({
            display: "block"
        });
    })
anyv authored
830
    $(".tx_mask_tongyi .three_modal_kuaidi_name").click(function () {
王晓刚 authored
831 832 833 834 835 836 837
        var index = $(this).index();
        $(this).addClass('there_unActive').siblings().removeClass('there_unActive');
        $('.log_three_select_contant').text($(this).text()).css("color", "#333");
        $(".tx_mask_tongyi").hide();
        $("#is_courier").val($(this).attr('data-id'))
    })
    //选择快递方式
王晓刚 authored
838
    $(".log_psong_select").click(function () {
王晓刚 authored
839 840 841 842
        $(".tx_mask_kuaidi").css({
            display: "block"
        });
    });
anyv authored
843
    $(".tx_mask_kuaidi .get_Go").click(function () {
王晓刚 authored
844
        var index = $(this).index();
anyv authored
845
        console.log($(this).text());
846
        $(this).addClass('there_unActive').siblings().removeClass('there_unActive');
anyv authored
847
        $('.get_Gofo').text($(this).text()).css("color", "#333");
王晓刚 authored
848
        $(".tx_mask_kuaidi").hide();
849
       $('#logistic_name').val($(this).attr('data-name'))
王晓刚 authored
850
    });
王晓刚 authored
851
    var index = $(".log_three_bottom").index();
王晓刚 authored
852
    $("body").on('click', '.log_three_bottom', function () {
王晓刚 authored
853 854 855 856 857 858 859 860 861 862 863
        $(".tx_maskone").css({
            display: "block"
        });
    });
    $('body').on('click', ".there_class div", function () {
        var index2 = $(this).index();
        $(this).addClass("there_unActive").siblings().removeClass("there_unActive");
        if ($xuexiao == undefined) {
            alert('请选择学校')
        } else if ($(this).hasClass("there_unActive")) {
            var banji = $(this).text();
王晓刚 authored
864
            $('.log_three_select_school2').text($xuexiao + ' ' + "-" + ' ' + banji);
王晓刚 authored
865 866 867 868 869 870 871 872 873 874 875 876
            $(".log_three_select_school2").css("color", "#333")
            $(".tx_mask_school").hide();
            $('#school').val($xuexiao);
            $('#grade').val(banji);
        }
    })
    // 关闭弹窗
    $(document).mouseup(function (e) {
        var _con = $('.tx_maskCon_school');
        if (!_con.is(e.target) && _con.has(e.target).length === 0) {
            $('.tx_mask_school').hide()
        }
王晓刚 authored
877
    });
王晓刚 authored
878 879

    function search() {
王晓刚 authored
880 881 882
        var school = $('#school').val();
        var grade = $('#grade').val();
        var state = $('.log_three_tab_top .aaa').attr('data-state');
883
        var is_courier = $('#is_courier').val();
4  
anyv authored
884
王晓刚 authored
885 886 887 888 889 890
        $.ajax({
            'url': "{:url('order_salesman/getOrderSalesman')}",
            'type': "GET",
            'data': {'school': school, 'grade': grade, 'state': state, 'is_courier': is_courier},
            'success': (function (data) {
                var index = $('.log_three_tab_top div').index($('.aaa'));
王晓刚 authored
891 892
                console.log(3333);
                console.log(data);
王晓刚 authored
893 894
                if (data.code == 1) {
                    var result = data.data;
895 896
                    console.log(result);
                    if (result == 0) {
897
                        var html = "<div style=\"text-align: center;width: 100%;height:100%;margin:0 auto;\">暂无数据</div>";
898
                    } else {
899 900
                        var html = '';
                    }
王晓刚 authored
901 902 903 904 905 906 907
                    for (var i = 0; i < result.length; i++) {
                        if (result[i]['state'] == 2) {
                            var state = '待发货';
                            if (result[i]['is_courier'] == 1) {
                                var html_bottom = "<div class=\"log_three_bottom_btn\"><div class=\"log_three_bottom send\" data-indent-id=\"" + result[i].id + "\" data-is_courier=\"" + result[i].is_courier + "\">\n" +
                                    "\t\t\t\t\t\t\t\t\t\t立即发货\n" +
                                    "\t\t\t\t\t\t\t\t\t</div></div>";
王晓刚 authored
908
                            } else {
王晓刚 authored
909 910 911
                                var html_bottom = "<div class=\"log_three_bottom_btn\"><div class=\"log_three_bottom send\" data-indent-id=\"" + result[i].id + "\" data-is_courier=\"" + result[i].is_courier + "\">\n" +
                                    "\t\t\t\t\t\t\t\t\t\t立即发货\n" +
                                    "\t\t\t\t\t\t\t\t\t</div></div>";
王晓刚 authored
912
                            }
王晓刚 authored
913 914 915 916
                        } else if (result[i]['state'] == 5) {
                            var state = '已发货';
                            if (result[i]['is_courier'] == 2) {
                                var html_bottom = "<a href=\"{:url('logistics/index','',false,true)}/indent_id/" + result[i].id + "\">\n" +
917
                                    "\t\t\t\t\t\t\t\t\t\t\t<div class=\"log_three_bottom_btn\"><div class=\"log_three_bottom2\" data-indent-id=\"" + result[i].id + "\">\n" +
王晓刚 authored
918 919 920 921
                                    "\t\t\t\t\t\t\t\t\t\t\t\t查看物流\n" +
                                    "\t\t\t\t\t\t\t\t\t\t\t</div></div>\n" +
                                    "\t\t\t\t\t\t\t\t\t\t</a>";
                            } else {
922 923 924 925 926
                                var html_bottom = "<a href=\"{:url('logistics/index','',false,true)}/indent_id/"+ result[i].id +"\">\n" +
                                    "                                    <div class=\"log_three_bottom2\" data-indent-id=\"{$vo.id}\"  style='margin-right: 15px;'>\n" +
                                    "                                        查看物流\n" +
                                    "                                    </div>\n" +
                                    "                                </a><div class=\"take_one\" data-indent-id=\"" + result[i].id + "\">\n" +
王晓刚 authored
927 928
                                    "                                    完成\n" +
                                    "                                </div>";
929
                            }
王晓刚 authored
930 931
                        } else {
                            var state = '已完成';
王晓刚 authored
932
                            var html_bottom = "";
王晓刚 authored
933 934 935 936
                        }
                        var indent_goods_data = result[i].indent_goods;
                        var indent_goods_html = '';
                        for (var i3 = 0; i3 < indent_goods_data.length; i3++) {
937 938 939 940 941 942 943 944 945 946 947 948
                            // indent_goods_html += "<div class=\"log_three_list_center\" style=\"display: flex;justify-content: flex-start;\">\n" +
                            //     "                            <div class=\"log_three_list_center_left\" style=\"width: 1.44rem;height:1.44rem\">\n" +
                            //     "                                <img src=\"" + indent_goods_data[i3].thumbnail + "\" alt=\"\" style=\"width: 100%;height: 100%;\"/>\n" +
                            //     "                            </div>\n" +
                            //     "                            <div class=\"log_three_list_center_right\" style=\"margin-left: 0.16rem;\">\n" +
                            //     "                                <div class=\"log_three_center_one\">\n" +
                            //     "                                    " + indent_goods_data[i3].book_name + "\n" +
                            //     "                                </div>\n" +
                            //     "                                <div class=\"log_three_center_two\">×" + indent_goods_data[i3].number + "</div>\n" +
                            //     "                                <div class=\"log_three_center_three\"><span>¥</span>" + indent_goods_data[i3].price + "</div>\n" +
                            //     "                            </div>\n" +
                            //     "                        </div>";
949
                            if (result[i].is_courier == 2) {
950 951 952
                                indent_goods_html += "<div class=\"dingdan_detail\">\n" +
                                    "                                <div class=\"log_three_list_center\" style=\"display: flex;justify-content: flex-start;\">\n" +
                                    "                                    <div class=\"log_three_list_center_left\" style=\"width: 1.44rem;height:1.44rem\">\n" +
953
                                    "                                        <img src=\"" + indent_goods_data[i3].thumbnail + "\" alt=\"\"\n" +
954 955 956 957
                                    "                                             style=\"width: 100%;height: 100%;\"/>\n" +
                                    "                                    </div>\n" +
                                    "                                    <div class=\"right_dingdan\">\n" +
                                    "                                        <div class=\"right_dingdan_top\">\n" +
958 959
                                    "                                            <div class=\"right_dingdan_one\">" + indent_goods_data[i3].book_name + "</div>\n" +
                                    "                                            <div class=\"right_dingdan_two\">¥" + indent_goods_data[i3].price + "</div>\n" +
960 961
                                    "                                        </div>\n" +
                                    "                                        <div class=\"right_dingdan_center\">\n" +
962
                                    "                                            <div class=\"right_dindan_three right_dingdan_one\">x" + indent_goods_data[i3].number + "</div>\n" +
963 964
                                    "                                        </div>\n" +
                                    "\n" +
965
                                    "                                        <div class=\"right_dingdan_four right_dingdan_one\">地址:" + result[i].region + " " + result[i].detailed + "\n" +
966 967
                                    "                                        </div>\n" +
                                    "                                        <div class=\"right_dingdan_four right_dingdan_one\" style=\"margin-top: -0.05rem;\">\n" +
968
                                    "                                            " + result[i].name + ":" + result[i].phone + "\n" +
969 970 971 972
                                    "                                        </div>\n" +
                                    "                                    </div>\n" +
                                    "                                </div>\n" +
                                    "                            </div>";
973
                            } else {
974 975 976
                                indent_goods_html += "<div class=\"dingdan_detail\">\n" +
                                    "                                <div class=\"log_three_list_center\" style=\"display: flex;justify-content: flex-start;\">\n" +
                                    "                                    <div class=\"log_three_list_center_left\" style=\"width: 1.44rem;height:1.44rem\">\n" +
977
                                    "                                        <img src=\"" + indent_goods_data[i3].thumbnail + "\" alt=\"\"\n" +
978 979 980 981
                                    "                                             style=\"width: 100%;height: 100%;\"/>\n" +
                                    "                                    </div>\n" +
                                    "                                    <div class=\"right_dingdan\">\n" +
                                    "                                        <div class=\"right_dingdan_top\">\n" +
982 983
                                    "                                            <div class=\"right_dingdan_one\">" + indent_goods_data[i3].book_name + "</div>\n" +
                                    "                                            <div class=\"right_dingdan_two\">¥" + indent_goods_data[i3].price + "</div>\n" +
984 985
                                    "                                        </div>\n" +
                                    "                                        <div class=\"right_dingdan_center\">\n" +
986
                                    "                                            <div class=\"right_dindan_three right_dingdan_one\">x" + indent_goods_data[i3].number + "</div>\n" +
987 988
                                    "                                        </div>\n" +
                                    "\n" +
989 990
                                    "                                        <div class=\"right_dingdan_four right_dingdan_one\">地址:" + result[i].school + " " + result[i].grade + "\n" +
                                    "                                            " + result[i].class + "\n" +
991 992
                                    "                                        </div>\n" +
                                    "                                        <div class=\"right_dingdan_four right_dingdan_one\" style=\"margin-top: -0.05rem;\">\n" +
993
                                    "                                            " + result[i].name + ":" + result[i].phone + "\n" +
994 995 996 997 998
                                    "                                        </div>\n" +
                                    "                                    </div>\n" +
                                    "                                </div>\n" +
                                    "                            </div>";
                            }
王晓刚 authored
999 1000 1001 1002 1003 1004
                        }
                        if (is_courier == 1) {
                            html += "<div class=\"log_three_list order_" + result[i].id + "\">\n" +
                                "\t\t\t\t\t\t\t<div class=\"log_three_list_top\">\n" +
                                "\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_left\">\n" +
                                "\t\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_lo\">\n" +
1005
                                "\t\t\t\t\t\t\t\t\t\t<img src=\"__TMPL__/public/assets/images/fangkuang.png\" data-indent-id=\"" + result[i].id + "\" alt=\"\" />\n" +
王晓刚 authored
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018
                                "\t\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_lt\">\n" +
                                "\t\t\t\t\t\t\t\t\t\t<div class=\"log_three_zhongbiao\">\n" +
                                "\t\t\t\t\t\t\t\t\t\t\t<img src=\"__TMPL__/public/assets/images/52.png\" alt=\"\" />\n" +
                                "\t\t\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t\t\t<div class=\"log_three_shijian\">\n" +
                                "\t\t\t\t\t\t\t\t\t\t\t" + result[i].pay_time + "\n" +
                                "\t\t\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_right\">\n" +
                                "\t\t\t\t\t\t\t\t\t\t" + state + "\n" +
                                "\t\t\t\t\t\t\t\t</div>\n" +
1019
                                "\t\t\t\t\t\t\t</div><a href=\"{:url('get_one','',false,true)}/id/" + result[i].id + "\"><div class=\"dingdan_detail_top\">\n" +
1020
                                "                            <div class=\"dingdan_detail_hao\">订单号:" + result[i].order_number + "</div>\n" +
1021
                                "                        </div>\n" + indent_goods_html + "</a>" +
王晓刚 authored
1022
                                "\t\t\t\t\t\t<div class=\"log_three_bottom_btn\">" + html_bottom + "</div></div>";
王晓刚 authored
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041
                        } else if (is_courier == 2) {
                            html += "<div class=\"log_three_list order_" + result[i].id + "\">\n" +
                                "\t\t\t\t\t\t\t<div class=\"log_three_list_top\">\n" +
                                "\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_left\">\n" +
                                // "\t\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_lo\">\n" +
                                // "\t\t\t\t\t\t\t\t\t\t<img src=\"__TMPL__/public/assets/images/fangkuang.png\" alt=\"\" />\n" +
                                // "\t\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_lt\">\n" +
                                "\t\t\t\t\t\t\t\t\t\t<div class=\"log_three_zhongbiao\">\n" +
                                "\t\t\t\t\t\t\t\t\t\t\t<img src=\"__TMPL__/public/assets/images/52.png\" alt=\"\" />\n" +
                                "\t\t\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t\t\t<div class=\"log_three_shijian\">\n" +
                                "\t\t\t\t\t\t\t\t\t\t\t" + result[i].pay_time + "\n" +
                                "\t\t\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t</div>\n" +
                                "\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_right\">\n" +
                                "\t\t\t\t\t\t\t\t\t\t" + state + "\n" +
                                "\t\t\t\t\t\t\t\t</div>\n" +
1042
                                "\t\t\t\t\t\t\t</div><a href=\"{:url('get_one','',false,true)}/id/" + result[i].id + "\"><div class=\"dingdan_detail_top\">\n" +
1043
                                "                            <div class=\"dingdan_detail_hao\">订单号:" + result[i].order_number + "</div>\n" +
1044
                                "                        </div>\n" + indent_goods_html + "</a>" +
王晓刚 authored
1045
                                "\t\t\t\t\t\t<div class=\"log_three_bottom_btn\">" + html_bottom + "</div></div>";
王晓刚 authored
1046 1047
                        }
                    }
1048
                    $('.count').html(i);
王晓刚 authored
1049 1050 1051 1052 1053 1054 1055 1056
                    $('.log_three_list_contant').eq(index).html(html);
                    update();
                } else {
                    alert('未知错误');
                }
            }),
            'error': (function () {
                alert('与服务器断开连接');
王晓刚 authored
1057
            })
王晓刚 authored
1058
        })
王晓刚 authored
1059 1060
        // }
    }
王晓刚 authored
1061
王晓刚 authored
1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079
    $(function () {
        $('.school').click(function () {
            var school_id = $(this).attr('data-id');
            $.ajax({
                url: "{:url('order_salesman/getGradeClass')}",
                type: 'GET',
                data: {'school_id': school_id},
                success: (function (data) {
                    if (data.code == 1) {
                        var result = data.data;
                        var html = '';
                        for (var i = 0; i < result.length; i++) {
                            var i2 = Number(result[i].start);
                            var j = Number(result[i].end);
                            for (i2; i2 <= j; i2++) {
                                // if(i == 0){
                                //     html += "<div class=\"three_model_school_name there_unActive\" data-id=\""+result[i].id+"\">"+result[i].grade+"—"+i2+"</div>";
                                // }
anyv authored
1080
                                html += "<div class=\"three_model_class_name\" data-id=\"" + result[i].id + "\">" + result[i].grade + "-" + i2 + "班</div>";
王晓刚 authored
1081 1082 1083 1084 1085 1086 1087 1088 1089 1090
                            }
                        }
                        $('.grade').html(html);
                    } else {
                        alert(data.msg);
                    }
                })
            })
        })
        $('.search').click(function () {
王晓刚 authored
1091
            search();
王晓刚 authored
1092 1093
        });
        //发货
王晓刚 authored
1094
        $("body").on('click', '.send', function () {
王晓刚 authored
1095 1096
            var indent_id = $(this).attr('data-indent-id');
            var is_courier = $(this).attr('data-is_courier');
王晓刚 authored
1097
            if (is_courier == 1) {
王晓刚 authored
1098 1099 1100
                //统一配送
                $('.time').show();
                $('.logistic').hide();
王晓刚 authored
1101
            } else if (is_courier == 2) {
王晓刚 authored
1102 1103 1104
                //快递
                $('.time').hide();
                $('.logistic').show();
王晓刚 authored
1105
            }
王晓刚 authored
1106 1107 1108
            $('.confirm').attr('data-is_courier', is_courier);
            $('.confirm').attr('data-indent-id', indent_id);
            $('.confirm').attr('data-is_courier', is_courier);
王晓刚 authored
1109
        });
王晓刚 authored
1110
        //点击确认
1111
        $('.confirm').click(function () {
王晓刚 authored
1112 1113
            var is_courier = $(this).attr('data-is_courier');
            var start_time = $('#start_time').val();
1114
            // var end_time = $('#end_time').val();
王晓刚 authored
1115 1116 1117
            var logistic_name = $('#logistic_name').val();
            var logistic_code = $('#logistic_code').val();
            var indent_id = $(this).attr('data-indent-id');
王晓刚 authored
1118 1119 1120
            if (is_courier == 1) {
                if (start_time == '') {
                    alert('请填写配送时间');
1121
                    return false;
王晓刚 authored
1122
                }
1123 1124 1125 1126
                // else if (end_time == '') {
                //     alert('请填写配送时间');
                //     return false;
                // }
王晓刚 authored
1127 1128 1129
            } else if (is_courier == 2) {
                if (logistic_name == '') {
                    alert('请填写快递公司');
1130
                    return false;
王晓刚 authored
1131 1132
                } else if (logistic_code == '') {
                    alert('请填写快递单号');
1133
                    return false;
王晓刚 authored
1134
                }
王晓刚 authored
1135 1136
            } else if (is_courier == '') {
                alert('未知错误');
1137
                return false;
王晓刚 authored
1138 1139
            }
            $.ajax({
王晓刚 authored
1140 1141 1142 1143
                url: "{:url('order_salesman/send')}",
                type: "GET",
                data: {
                    'start_time': start_time,
1144
                    // 'end_time': end_time,
王晓刚 authored
1145 1146 1147 1148 1149 1150 1151 1152
                    'logistic_name': logistic_name,
                    'logistic_code': logistic_code,
                    'is_courier': is_courier,
                    'indent_id': indent_id
                },
                success: function (res) {
                    if (res.code == 1) {
                        $('.order_' + indent_id).remove();
1153 1154 1155 1156 1157 1158 1159
                        $(".tx_maskone").css({
                            display: "none"
                        });
                        $(".tx_mask").css({
                            display: "none"
                        });
                    }
王晓刚 authored
1160 1161
                    alert(res.msg)
                },
王晓刚 authored
1162
                error: function (res) {
王晓刚 authored
1163 1164 1165 1166
                    alert('与服务器断开连接')
                }
            })
        });
王晓刚 authored
1167
        $('body').on('click', '.unify_all', function () {
1168
            var index = $(".log_three_tab_top .log_three_tab_one").index($('.aaa'));
1169
            var length = $(".log_three_list_contant").eq(index).find('.log_three_list_top_lo img').length - 1;
王晓刚 authored
1170
            var arr = [];
王晓刚 authored
1171 1172
            for (var i = 0; i <= length; i++) {
                if ($('.log_three_list_top_lo img').eq(i).attr('src') == "__TMPL__/public/assets/images/xuanzhong (1).png") {
王晓刚 authored
1173 1174 1175 1176
                    arr.push($('.log_three_list_top_lo img').eq(i).attr('data-indent-id'));
                }
            }
            $('.confirm2').attr('data-indent-id', arr.join(","));
王晓刚 authored
1177
            var type = $('.unify_all').attr('data-type');
王晓刚 authored
1178
            if (arr.length != 0) {
1179
                if (type == 1) {
王晓刚 authored
1180
                    $.ajax({
1181 1182 1183 1184
                        url: "{:url('take_all')}",
                        type: "GET",
                        data: {'indent_ids': arr.join(",")},
                        success: function (res) {
王晓刚 authored
1185
                            if (res.code == 1) {
1186 1187
                                $(arr).each(function (i, vo) {
                                    $('.order_' + vo).remove();
王晓刚 authored
1188 1189 1190 1191 1192 1193 1194
                                })
                                alert('操作成功')
                            } else {
                                alert(res.msg);
                            }
                        }
                    })
1195
                } else {
王晓刚 authored
1196 1197
                    $('.tx_masktwo').show();
                }
王晓刚 authored
1198 1199 1200 1201 1202 1203
            } else {
                alert('请至少选择一个订单');
            }
        });
        $('.confirm2').click(function () {
            var start_time2 = $('#start_time2').val();
1204
            // var end_time2 = $('#end_time2').val();
王晓刚 authored
1205 1206 1207 1208 1209
            var indent_ids = $(this).attr('data-indent-id');
            if (indent_ids == '') {
                alert('请至少选择一个订单');
            } else if (start_time2 == '') {
                alert('请选择配送时间')
1210 1211 1212 1213 1214
            }
            // else if (end_time2 == '') {
            //     alert('请选择配送时间')
            // }
            else {
王晓刚 authored
1215 1216 1217
                $.ajax({
                    url: "{:url('order_salesman/send_all')}",
                    type: "GET",
1218 1219 1220 1221
                    data: {
                        'start_time2': start_time2,
                        // 'end_time2': end_time2,
                        'indent_ids': indent_ids},
王晓刚 authored
1222
                    success: function (res) {
1223 1224 1225
                        console.log(indent_ids);
                        indent_ids=indent_ids.split(",");
                        console.log(indent_ids)
王晓刚 authored
1226
                        if (res.code == 1) {
1227 1228 1229 1230 1231 1232 1233
                            $.each(indent_ids,function(key,indent_id){
                                $('.order_' + indent_id).remove();
                            });
                            $(".tx_masktwo").css({
                                display: "none"
                            });
                            alert(res.msg)
王晓刚 authored
1234 1235 1236 1237 1238 1239 1240
                        } else {
                            alert(res.msg);
                        }
                    }
                })
            }
        });
1241 1242
        update();
1243
        $('body').on('click', '.take_one', function () {
王晓刚 authored
1244 1245
            var indent_id = $(this).attr('data-indent-id');
            $.ajax({
1246 1247 1248 1249 1250 1251
                url: "{:url('take_one')}",
                type: "GET",
                data: {'indent_id': indent_id},
                success: function (res) {
                    if (res.code == 1) {
                        $('.order_' + indent_id).remove();
王晓刚 authored
1252
                        alert('操作成功')
1253
                    } else {
王晓刚 authored
1254 1255 1256 1257 1258
                        alert(res.msg)
                    }
                }
            })
        })
王晓刚 authored
1259
    })
王晓刚 authored
1260 1261

    function update() {
1262
        var is_courier = $('#is_courier').val();
王晓刚 authored
1263
        var index = $('.log_three_tab_top').children('.aaa').index();
王晓刚 authored
1264
        if (is_courier == 1 && index == 0) {
1265
            $('.log_three_list_fixed').show();
王晓刚 authored
1266
            $('.unify_all').text('统一发货');
1267
            $('.unify_all').attr('data-type', '')
王晓刚 authored
1268
        } else if (is_courier == 2 || (index != 0 && index != 1)) {
1269
            $('.log_three_list_fixed').hide();
1270
        } else if (index == 1) {
王晓刚 authored
1271
            $('.unify_all').text('统一完成');
1272
            $('.unify_all').attr('data-type', 1)
1273 1274
        }
    }
王晓刚 authored
1275
</script>
1276 1277 1278 1279 1280 1281 1282
<script type="text/javascript">
    var dtpicker = new mui.DtPicker({
        type: "datetime", //设置日历初始视图模式
        beginDate: new Date(), //设置开始日期
        labels: ['年', '月', '日', '时', '分', '秒'], //设置默认标签区域提示语
    })
    //统一配送选择时间
1283 1284
    $(".tongyi_start_time").click(function () {
        dtpicker.show(function (e) {
1285 1286 1287 1288 1289 1290
            console.log(e);
            $('.tongyi_start_time').text(e.text);
            $('#start_time').val(e.text);
            $('.tongyi_start_time').css('color', '#333333');
        });
    });
1291 1292 1293 1294 1295 1296 1297 1298 1299 1300

    $(".tongyi_start_time2").click(function () {
        dtpicker.show(function (e) {
            console.log(e);
            $('.tongyi_start_time2').text(e.text);
            $('#start_time2').val(e.text);
            $('.tongyi_start_time2').css('color', '#333333');
        });
    });
1301 1302 1303 1304
    function zZFun(e) {
        window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
    }
</script>
王晓刚 authored
1305
</body>
1306 1307

</html>