审查视图

public/themes/simpleboot3/portal/order_salesman/get_all.html 65.5 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;
        }
5  
anyv authored
177 178

        .log_three_bottom2 {
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
            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
194
    </style>
王晓刚 authored
195
</head>
196
4  
anyv authored
197
<body style="cursor:pointer;">
anyv authored
198 199 200 201 202 203 204 205 206 207


<!--学校弹窗-->
<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
208
anyv authored
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
            </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>
226
王晓刚 authored
227
<!--统一配送-->
1  
anyv authored
228
<!--<div class="tx_mask_tongyi" onclick="$(this).hide()">-->
5  
anyv authored
229 230 231 232 233 234 235 236
<!--<div class="tx_maskCon_tongyi" onclick="zZFun(this)">-->
<!--<div class="three_model_school">-->
<!--<div class="three_model_school_data" style="display: block;">-->
<!--<div class="three_modal_kuaidi_name there_unActive" data-id="1">统一配送</div>-->
<!--<div class="three_modal_kuaidi_name" data-id="2">快递配送</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
1  
anyv authored
237
<!--</div>-->
王晓刚 authored
238
<!--选择快递-->
1  
anyv authored
239
<!--<div class="tx_mask_kuaidi" onclick="$(this).hide()">-->
5  
anyv authored
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
<!--<div class="tx_maskCon_school" onclick="zZFun(this)">-->
<!--<div class="three_model_school">-->
<!--<div class="three_model_school_title">-->
<!--选择快递-->
<!--</div>-->
<!--<div>-->
<!--<div class="three_model_school_data" style="display: block;">-->
<!--<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>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
1  
anyv authored
263
<!--</div>-->
4  
anyv authored
264 265
<div class="tx_masktwo" style="display: none;" onclick="$(this).hide()">
    <div class="tx_maskCon" onclick="zZFun(this)">
王晓刚 authored
266 267 268 269 270 271 272
        <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>
273 274
                    <div class="log_psong tongyi_start_time2" style="color: #CCCCCC;">
                        请选择配送到达时间
王晓刚 authored
275
                    </div>
276
                    <input type="hidden" id="start_time2" value="" placeholder="请输入开配送时间"/>
王晓刚 authored
277
                </div>
278
                <!--<div class="log_three_model_one time">-->
5  
anyv authored
279 280 281 282
                <!--<div class="log_three_model_left">配送时间</div>-->
                <!--<div class="log_psong">-->
                <!--<input type="text" id="end_time2" value="" placeholder="请输入结束配送时间"/>-->
                <!--</div>-->
283
                <!--</div>-->
王晓刚 authored
284 285 286 287 288 289
            </div>
            <!-- 确定 -->
            <div class="tx_maskOk confirm2" data-is_courier="" data-id="" data-indent-id="">确定</div>
        </div>
    </div>
</div>
2  
anyv authored
290 291
<div class="tx_maskone" onclick="$(this).hide()">
    <div class="tx_maskCon" onclick="zZFun(this)">
王晓刚 authored
292 293 294 295 296
        <div class="tx_maskConImg">
            <img src="__TMPL__/public/assets/images/91.png" alt=""/>
        </div>
        <div class="tx_maskCon2">
            <div class="log_three_model">
王晓刚 authored
297
                <div class="log_three_model_one time">
王晓刚 authored
298
                    <div class="log_three_model_left">配送时间</div>
299 300
                    <div class="log_psong tongyi_start_time" style="color: #CCCCCC;">
                        请选择配送到达时间
王晓刚 authored
301
                    </div>
302
                    <input type="hidden" id="start_time" value="" placeholder="请输入开配送时间"/>
王晓刚 authored
303
                </div>
304
                <!--<div class="log_three_model_one time">
王晓刚 authored
305 306
                    <div class="log_three_model_left">配送时间</div>
                    <div class="log_psong">
王晓刚 authored
307 308
                        <input type="text" id="end_time" value="" placeholder="请输入结束配送时间"/>
                    </div>
309
                </div>-->
1  
anyv authored
310
                <!--<div class="log_three_model_one logistic">-->
5  
anyv authored
311 312 313 314 315 316 317 318
                <!--<div class="log_three_model_left">选择快递</div>-->
                <!--<div class="log_psong log_psong_select">-->
                <!--<div class="log_ps_title2 get_Gofo">请选择快递公司</div>-->
                <!--<div class="log_ps_img">-->
                <!--<img src="__TMPL__/public/assets/images/29.png"/>-->
                <input type="hidden" id="logistic_name" value="" placeholder="请选择快递公司"/>
                <!--</div>-->
                <!--</div>-->
1  
anyv authored
319 320
                <!--</div>-->
                <div class="log_three_model_one excompany logistic">
王晓刚 authored
321 322
                    <div class="log_three_model_left">选择快递</div>
                    <div class="log_psong log_psong_select">
1  
anyv authored
323
                        <div class="log_ps_title excompany_word">请选择</div>
王晓刚 authored
324
                        <div class="log_ps_img">
5  
anyv authored
325
                            <img src="__TMPL__/public/assets/images/29.png"/>
王晓刚 authored
326 327 328 329 330 331 332
                        </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
333 334 335 336
                    </div>
                </div>
            </div>
            <!-- 确定 -->
王晓刚 authored
337
            <div class="tx_maskOk confirm" data-is_courier="" data-id="" data-indent-id="">确定</div>
王晓刚 authored
338 339 340 341 342 343
        </div>
    </div>
</div>
<div class="log_top_co">
    <!-- 顶部 -->
    <div class=" order_top log_top_co">
anyv authored
344
        <a href="javascript:history.back(-1)">
王晓刚 authored
345 346 347 348 349 350 351
            <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
352 353 354
    <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
355 356 357
</div>
<!-- 下拉框  -->
<div class="log_three_select">
358 359 360 361 362 363 364 365
    <!-- <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
366 367

1  
anyv authored
368 369
    <div class="log_three_select_one log_three_select_school2">
        <div class="log_three_select_title schools_word">
anyv authored
370 371 372
            请选择学校
        </div>
        <!--<div class="log_three_select_img">-->
373
        <!--<img src="__TMPL__/public/assets/images/75.png" alt="" />-->
anyv authored
374 375
        <!--</div>-->
    </div>
1  
anyv authored
376 377
    <div class="log_three_select_one log_three_select_class2">
        <div class="log_three_select_title class_word">
anyv authored
378 379 380
            请选择班级
        </div>
        <!--<div class="log_three_select_img">-->
381
        <!--<img src="__TMPL__/public/assets/images/75.png" alt="" />-->
anyv authored
382
        <!--</div>-->
王晓刚 authored
383
    </div>
anyv authored
384 385

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

1  
anyv authored
715 716 717
    $(".clear").click(function () {
        window.location.reload();
    })
4  
anyv authored
718 719 720 721
    var schoolpicker = new mui.PopPicker();
    var classpicker = new mui.PopPicker();
    var class_arr = '';
    zujian();
722 723 724

    function zujian(data_class_arr) {
        (function ($, doc) {
4  
anyv authored
725 726
            $.init();
            school_arr = {$school};
727 728
            console.log(data_class_arr, 'dfdfds');
            $.ready(function () {
4  
anyv authored
729 730
                schoolpicker.setData(school_arr);
                classpicker.setData(data_class_arr);
1  
anyv authored
731
                expresspicker.setData([{
1  
anyv authored
732
                    value: '2',
1  
anyv authored
733 734
                    text: '快递配送'
                }, {
1  
anyv authored
735
                    value: '1',
1  
anyv authored
736 737
                    text: '统一配送'
                }]);
4  
anyv authored
738 739 740
            });
        })(mui, document);
    }
5  
anyv authored
741
1  
anyv authored
742
    var express_word
5  
anyv authored
743 744
    $(".log_three_select_tongyi").click(function () {
        expresspicker.show(function (e) {
1  
anyv authored
745 746 747 748
            console.log(e, '3333')
            console.log(e[0].value);
            console.log(e[0].text);
            express_word = e[0].value;
5  
anyv authored
749
            console.log(express_word, "experss_word")
1  
anyv authored
750 751 752 753
            $(".express_word").text(e[0].text);
            $('.express_word').css('color', '#333333');
        });
    })
4  
anyv authored
754
    var school_name;
755
    $(".log_three_select_school2").click(function () {
5  
anyv authored
756
        $(".log_three_select_class2").text("请选择班级").css("color", "rgba(153, 153, 153, 1)");
1  
anyv authored
757
        $("#grade").val("");
758
        schoolpicker.show(function (e) {
4  
anyv authored
759 760
            school_name = e[0].value;
            school_names = e[0].text;
6  
anyv authored
761
            $('#school').val(school_names);
1  
anyv authored
762 763
            $(".schools_word").text(e[0].text);
            $('.schools_word').css('color', '#333333');
764 765
            $.post("{:url('Personalcenter/get_grade_class')}", {id: school_name}, function (data) {
                if (data) {
4  
anyv authored
766 767 768 769 770 771 772 773
                    data = JSON.parse(data);
                    zujian(data);
                }

            });
        });

    })
774 775 776 777
    $(".log_three_select_class2").click(function () {
        if (school_name != undefined) {
            classpicker.show(function (e) {
                class_name = e[0].text;
6  
anyv authored
778
                $('#grade').val(class_name);
4  
anyv authored
779 780 781 782 783 784
                $(".log_three_select_class2").text(e[0].text);
                $('.log_three_select_class2').css('color', '#333333');
            });
        } else {
            alert("请先选择学校")
        }
anyv authored
785
    })
1  
anyv authored
786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824
    var excompanypicker = new mui.PopPicker();
    excompanypicker.setData([{
        value: 'SF',
        text: '顺丰快递'
    }, {
        value: 'YTO',
        text: '圆通快递'
    }, {
        value: 'ZTO',
        text: '中通快递'
    }, {
        value: 'STO',
        text: '申通快递'
    }, {
        value: 'YD',
        text: '韵达快递'
    }, {
        value: 'HHTT',
        text: '天天快递'
    }, {
        value: 'HTKY',
        text: '百世快递'
    }, {
        value: 'YZPY',
        text: '邮政快递包裹'
    }, {
        value: 'EMS',
        text: 'EMS'
    }, {
        value: 'DBL',
        text: '德邦快递'
    }, {
        value: 'ZJS',
        text: '宅急送'
    }, {
        value: 'TNT',
        text: 'TNT快递'
    }]);
    var excompany_word
5  
anyv authored
825 826
    $(".excompany").click(function () {
        excompanypicker.show(function (e) {
1  
anyv authored
827 828 829 830 831 832 833 834 835
            console.log(e, '3333')
            console.log(e[0].value);
            console.log(e[0].text);
            school_name = e[0].value
            $(".excompany_word").text(e[0].text);
            $("#logistic_name").val(e[0].value);
            $('.excompany_word').css('color', '#333333');
        });
    })
anyv authored
836 837
</script>
<script>
2  
anyv authored
838 839 840
    function zZFun(e) {
        window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
    }
841
王晓刚 authored
842
    // 选择学校
843 844 845 846
    //    $(".three_model_school_left").click(function () {
    //        var indexs = $(this).index();
    //        $(".three_model_school_data").eq(indexs).css("display", "block").siblings().css("display", "none");
    //    });
847
王晓刚 authored
848 849 850 851
    $(".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
852
        search();
853
        $('.log_three_fixed_left_one img').attr('src', "__TMPL__/public/assets/images/fangkuang.png")
王晓刚 authored
854 855 856 857
    });
    $(".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");
    });
858
王晓刚 authored
859
    $("body").on('click', '.log_three_list_top_lo', function () {
王晓刚 authored
860 861 862 863 864
        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");
        }
865 866
        //判断订单是否全选了
        check();
王晓刚 authored
867
    });
868 869

    function check() {
870 871 872
        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;
873
        for (var n = 0; n < length; n++) {
874
            console.log($(".log_three_list_contant").eq(index).find('.log_three_list_top_lo img').eq(n).attr('src'));
875
            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") {
876 877 878
                l++
            }
        }
879 880 881 882 883
        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")
884 885
        }
    }
886
王晓刚 authored
887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907
    $(".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");
        }
    });
908
王晓刚 authored
909 910 911 912 913
    $(".log_three_select_peisong").click(function () {
        $(".tx_mask").css({
            display: "block"
        });
    });
王晓刚 authored
914 915

    //统一配送
5  
anyv authored
916 917 918 919 920 921 922 923 924 925 926 927
    //    $(".log_three_select_tongyi").click(function () {
    //        $(".tx_mask_tongyi").css({
    //            display: "block"
    //        });
    //    })
    //    $(".tx_mask_tongyi .three_modal_kuaidi_name").click(function () {
    //        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
928
    //选择快递方式
王晓刚 authored
929
    $(".log_psong_select").click(function () {
王晓刚 authored
930 931 932 933
        $(".tx_mask_kuaidi").css({
            display: "block"
        });
    });
anyv authored
934
    $(".tx_mask_kuaidi .get_Go").click(function () {
王晓刚 authored
935
        var index = $(this).index();
anyv authored
936
        console.log($(this).text());
937
        $(this).addClass('there_unActive').siblings().removeClass('there_unActive');
anyv authored
938
        $('.get_Gofo').text($(this).text()).css("color", "#333");
王晓刚 authored
939
        $(".tx_mask_kuaidi").hide();
5  
anyv authored
940
        $('#logistic_name').val($(this).attr('data-name'))
王晓刚 authored
941
    });
王晓刚 authored
942
    var index = $(".log_three_bottom").index();
王晓刚 authored
943
    $("body").on('click', '.log_three_bottom', function () {
王晓刚 authored
944 945 946 947 948 949 950 951 952 953 954
        $(".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
955
            $('.log_three_select_school2').text($xuexiao + ' ' + "-" + ' ' + banji);
王晓刚 authored
956 957 958 959 960 961 962 963 964 965 966 967
            $(".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
968
    });
王晓刚 authored
969 970

    function search() {
王晓刚 authored
971 972 973
        var school = $('#school').val();
        var grade = $('#grade').val();
        var state = $('.log_three_tab_top .aaa').attr('data-state');
1  
anyv authored
974
        var is_courier = express_word
4  
anyv authored
975
王晓刚 authored
976 977 978 979 980 981 982 983
        $.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'));
                if (data.code == 1) {
                    var result = data.data;
5  
anyv authored
984 985
                    console.log("**********" + result.length);
                    if (result.length == 0) {
986
                        var html = "<div style=\"text-align: center;width: 100%;height:100%;margin:0 auto;\">暂无数据</div>";
987
                    } else {
988 989
                        var html = '';
                    }
王晓刚 authored
990 991 992 993 994 995 996
                    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
997
                            } else {
王晓刚 authored
998 999 1000
                                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
1001
                            }
王晓刚 authored
1002 1003 1004 1005
                        } 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" +
1006
                                    "\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
1007 1008 1009 1010
                                    "\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 {
5  
anyv authored
1011
                                var html_bottom = "<a href=\"{:url('logistics/index','',false,true)}/indent_id/" + result[i].id + "\">\n" +
anyv authored
1012
                                    "                                    <div class=\"log_three_bottom2\" data-indent-id=\""+ result[i].id +"\"  style='margin-right: 15px;'>\n" +
1013 1014 1015
                                    "                                        查看物流\n" +
                                    "                                    </div>\n" +
                                    "                                </a><div class=\"take_one\" data-indent-id=\"" + result[i].id + "\">\n" +
王晓刚 authored
1016 1017
                                    "                                    完成\n" +
                                    "                                </div>";
1018
                            }
王晓刚 authored
1019 1020
                        } else {
                            var state = '已完成';
王晓刚 authored
1021
                            var html_bottom = "";
王晓刚 authored
1022 1023 1024 1025
                        }
                        var indent_goods_data = result[i].indent_goods;
                        var indent_goods_html = '';
                        for (var i3 = 0; i3 < indent_goods_data.length; i3++) {
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037
                            // 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>";
1038
                            if (result[i].is_courier == 2) {
1039 1040 1041
                                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" +
1042
                                    "                                        <img src=\"" + indent_goods_data[i3].thumbnail + "\" alt=\"\"\n" +
1043 1044 1045 1046
                                    "                                             style=\"width: 100%;height: 100%;\"/>\n" +
                                    "                                    </div>\n" +
                                    "                                    <div class=\"right_dingdan\">\n" +
                                    "                                        <div class=\"right_dingdan_top\">\n" +
1047 1048
                                    "                                            <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" +
1049 1050
                                    "                                        </div>\n" +
                                    "                                        <div class=\"right_dingdan_center\">\n" +
1051
                                    "                                            <div class=\"right_dindan_three right_dingdan_one\">x" + indent_goods_data[i3].number + "</div>\n" +
1052 1053
                                    "                                        </div>\n" +
                                    "\n" +
4  
anyv authored
1054
                                    "                                        <div class=\"right_dingdan_four right_dingdan_one\">" + result[i].region + " " + result[i].detailed + "\n" +
1055 1056
                                    "                                        </div>\n" +
                                    "                                        <div class=\"right_dingdan_four right_dingdan_one\" style=\"margin-top: -0.05rem;\">\n" +
4  
anyv authored
1057
                                    "                                            " + result[i].name + "&nbsp;&nbsp;" + result[i].phone + "\n" +
1058 1059 1060 1061
                                    "                                        </div>\n" +
                                    "                                    </div>\n" +
                                    "                                </div>\n" +
                                    "                            </div>";
1062
                            } else {
1063 1064 1065
                                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" +
1066
                                    "                                        <img src=\"" + indent_goods_data[i3].thumbnail + "\" alt=\"\"\n" +
1067 1068 1069 1070
                                    "                                             style=\"width: 100%;height: 100%;\"/>\n" +
                                    "                                    </div>\n" +
                                    "                                    <div class=\"right_dingdan\">\n" +
                                    "                                        <div class=\"right_dingdan_top\">\n" +
1071 1072
                                    "                                            <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" +
1073 1074
                                    "                                        </div>\n" +
                                    "                                        <div class=\"right_dingdan_center\">\n" +
1075
                                    "                                            <div class=\"right_dindan_three right_dingdan_one\">x" + indent_goods_data[i3].number + "</div>\n" +
1076 1077
                                    "                                        </div>\n" +
                                    "\n" +
4  
anyv authored
1078
                                    "                                        <div class=\"right_dingdan_four right_dingdan_one\">" + result[i].school + " " + result[i].grade + "\n" +
1079
                                    "                                            " + result[i].class + "\n" +
1080 1081
                                    "                                        </div>\n" +
                                    "                                        <div class=\"right_dingdan_four right_dingdan_one\" style=\"margin-top: -0.05rem;\">\n" +
4  
anyv authored
1082
                                    "                                            " + result[i].name + "&nbsp;&nbsp;" + result[i].phone + "\n" +
1083 1084 1085 1086 1087
                                    "                                        </div>\n" +
                                    "                                    </div>\n" +
                                    "                                </div>\n" +
                                    "                            </div>";
                            }
王晓刚 authored
1088
                        }
5  
anyv authored
1089
                        if (result[i].is_courier == 1) {
王晓刚 authored
1090 1091 1092 1093
                            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" +
1094
                                "\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
1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107
                                "\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" +
1108
                                "\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" +
1109
                                "                            <div class=\"dingdan_detail_hao\">订单号:" + result[i].order_number + "</div>\n" +
1110
                                "                        </div>\n" + indent_goods_html + "</a>" +
王晓刚 authored
1111
                                "\t\t\t\t\t\t<div class=\"log_three_bottom_btn\">" + html_bottom + "</div></div>";
5  
anyv authored
1112 1113
                        } else if (result[i].is_courier == 2) {
                            console.log("++"+html);
王晓刚 authored
1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131
                            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" +
1132
                                "\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" +
1133
                                "                            <div class=\"dingdan_detail_hao\">订单号:" + result[i].order_number + "</div>\n" +
1134
                                "                        </div>\n" + indent_goods_html + "</a>" +
王晓刚 authored
1135
                                "\t\t\t\t\t\t<div class=\"log_three_bottom_btn\">" + html_bottom + "</div></div>";
王晓刚 authored
1136 1137
                        }
                    }
5  
anyv authored
1138
                    console.log(html);
1139
                    $('.count').html(i);
5  
anyv authored
1140
                    console.log('@@@@@@@@@@' + index);
王晓刚 authored
1141 1142 1143 1144 1145 1146 1147 1148
                    $('.log_three_list_contant').eq(index).html(html);
                    update();
                } else {
                    alert('未知错误');
                }
            }),
            'error': (function () {
                alert('与服务器断开连接');
王晓刚 authored
1149
            })
王晓刚 authored
1150
        })
王晓刚 authored
1151 1152
        // }
    }
王晓刚 authored
1153
王晓刚 authored
1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171
    $(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
1172
                                html += "<div class=\"three_model_class_name\" data-id=\"" + result[i].id + "\">" + result[i].grade + "-" + i2 + "班</div>";
王晓刚 authored
1173 1174 1175 1176 1177 1178 1179 1180 1181 1182
                            }
                        }
                        $('.grade').html(html);
                    } else {
                        alert(data.msg);
                    }
                })
            })
        })
        $('.search').click(function () {
王晓刚 authored
1183
            search();
王晓刚 authored
1184 1185
        });
        //发货
王晓刚 authored
1186
        $("body").on('click', '.send', function () {
王晓刚 authored
1187 1188
            var indent_id = $(this).attr('data-indent-id');
            var is_courier = $(this).attr('data-is_courier');
王晓刚 authored
1189
            if (is_courier == 1) {
王晓刚 authored
1190 1191 1192
                //统一配送
                $('.time').show();
                $('.logistic').hide();
王晓刚 authored
1193
            } else if (is_courier == 2) {
王晓刚 authored
1194 1195 1196
                //快递
                $('.time').hide();
                $('.logistic').show();
王晓刚 authored
1197
            }
王晓刚 authored
1198 1199 1200
            $('.confirm').attr('data-is_courier', is_courier);
            $('.confirm').attr('data-indent-id', indent_id);
            $('.confirm').attr('data-is_courier', is_courier);
王晓刚 authored
1201
        });
王晓刚 authored
1202
        //点击确认
1203
        $('.confirm').click(function () {
王晓刚 authored
1204 1205
            var is_courier = $(this).attr('data-is_courier');
            var start_time = $('#start_time').val();
1206
            // var end_time = $('#end_time').val();
王晓刚 authored
1207
            var logistic_name = $('#logistic_name').val();
1  
anyv authored
1208
            console.log(logistic_name);
王晓刚 authored
1209 1210
            var logistic_code = $('#logistic_code').val();
            var indent_id = $(this).attr('data-indent-id');
王晓刚 authored
1211 1212 1213
            if (is_courier == 1) {
                if (start_time == '') {
                    alert('请填写配送时间');
1214
                    return false;
王晓刚 authored
1215
                }
1216 1217 1218 1219
                // else if (end_time == '') {
                //     alert('请填写配送时间');
                //     return false;
                // }
王晓刚 authored
1220 1221 1222
            } else if (is_courier == 2) {
                if (logistic_name == '') {
                    alert('请填写快递公司');
1223
                    return false;
王晓刚 authored
1224 1225
                } else if (logistic_code == '') {
                    alert('请填写快递单号');
1226
                    return false;
王晓刚 authored
1227
                }
王晓刚 authored
1228 1229
            } else if (is_courier == '') {
                alert('未知错误');
1230
                return false;
王晓刚 authored
1231 1232
            }
            $.ajax({
王晓刚 authored
1233 1234 1235 1236
                url: "{:url('order_salesman/send')}",
                type: "GET",
                data: {
                    'start_time': start_time,
1237
                    // 'end_time': end_time,
王晓刚 authored
1238 1239 1240 1241 1242 1243 1244 1245
                    '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();
1246 1247 1248 1249 1250 1251 1252
                        $(".tx_maskone").css({
                            display: "none"
                        });
                        $(".tx_mask").css({
                            display: "none"
                        });
                    }
1  
anyv authored
1253
                    var count = Number($('.count').text());
5  
anyv authored
1254
                    if (count > 0) {
1  
anyv authored
1255 1256 1257
                        count--;
                    }
                    $(".count").text(count);
王晓刚 authored
1258 1259
                    alert(res.msg)
                },
王晓刚 authored
1260
                error: function (res) {
王晓刚 authored
1261 1262 1263 1264
                    alert('与服务器断开连接')
                }
            })
        });
王晓刚 authored
1265
        $('body').on('click', '.unify_all', function () {
1266
            var index = $(".log_three_tab_top .log_three_tab_one").index($('.aaa'));
1267
            var length = $(".log_three_list_contant").eq(index).find('.log_three_list_top_lo img').length - 1;
王晓刚 authored
1268
            var arr = [];
王晓刚 authored
1269 1270
            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
1271 1272 1273 1274
                    arr.push($('.log_three_list_top_lo img').eq(i).attr('data-indent-id'));
                }
            }
            $('.confirm2').attr('data-indent-id', arr.join(","));
王晓刚 authored
1275
            var type = $('.unify_all').attr('data-type');
王晓刚 authored
1276
            if (arr.length != 0) {
1277
                if (type == 1) {
王晓刚 authored
1278
                    $.ajax({
1279 1280 1281 1282
                        url: "{:url('take_all')}",
                        type: "GET",
                        data: {'indent_ids': arr.join(",")},
                        success: function (res) {
王晓刚 authored
1283
                            if (res.code == 1) {
1  
anyv authored
1284
                                var count = Number($('.count').text());
1285
                                $(arr).each(function (i, vo) {
5  
anyv authored
1286
                                    if (count > 0) {
1  
anyv authored
1287 1288
                                        count--;
                                    }
1289
                                    $('.order_' + vo).remove();
1  
anyv authored
1290 1291
                                });
                                $(".count").text(count);
王晓刚 authored
1292 1293 1294 1295 1296 1297
                                alert('操作成功')
                            } else {
                                alert(res.msg);
                            }
                        }
                    })
1298
                } else {
王晓刚 authored
1299 1300
                    $('.tx_masktwo').show();
                }
王晓刚 authored
1301 1302 1303 1304 1305 1306
            } else {
                alert('请至少选择一个订单');
            }
        });
        $('.confirm2').click(function () {
            var start_time2 = $('#start_time2').val();
1307
            // var end_time2 = $('#end_time2').val();
王晓刚 authored
1308 1309 1310 1311 1312
            var indent_ids = $(this).attr('data-indent-id');
            if (indent_ids == '') {
                alert('请至少选择一个订单');
            } else if (start_time2 == '') {
                alert('请选择配送时间')
1313 1314 1315 1316 1317
            }
            // else if (end_time2 == '') {
            //     alert('请选择配送时间')
            // }
            else {
王晓刚 authored
1318 1319 1320
                $.ajax({
                    url: "{:url('order_salesman/send_all')}",
                    type: "GET",
1321 1322 1323
                    data: {
                        'start_time2': start_time2,
                        // 'end_time2': end_time2,
5  
anyv authored
1324 1325
                        'indent_ids': indent_ids
                    },
王晓刚 authored
1326
                    success: function (res) {
1327
                        console.log(indent_ids);
5  
anyv authored
1328
                        indent_ids = indent_ids.split(",");
1329
                        console.log(indent_ids)
王晓刚 authored
1330
                        if (res.code == 1) {
5  
anyv authored
1331
                            $.each(indent_ids, function (key, indent_id) {
1332 1333 1334 1335 1336 1337
                                $('.order_' + indent_id).remove();
                            });
                            $(".tx_masktwo").css({
                                display: "none"
                            });
                            alert(res.msg)
王晓刚 authored
1338 1339 1340 1341 1342 1343 1344
                        } else {
                            alert(res.msg);
                        }
                    }
                })
            }
        });
1345 1346
        update();
1347
        $('body').on('click', '.take_one', function () {
王晓刚 authored
1348 1349
            var indent_id = $(this).attr('data-indent-id');
            $.ajax({
1350 1351 1352 1353 1354 1355
                url: "{:url('take_one')}",
                type: "GET",
                data: {'indent_id': indent_id},
                success: function (res) {
                    if (res.code == 1) {
                        $('.order_' + indent_id).remove();
王晓刚 authored
1356
                        alert('操作成功')
1357
                    } else {
王晓刚 authored
1358 1359 1360 1361 1362
                        alert(res.msg)
                    }
                }
            })
        })
王晓刚 authored
1363
    })
王晓刚 authored
1364 1365

    function update() {
1366
        var is_courier = $('#is_courier').val();
王晓刚 authored
1367
        var index = $('.log_three_tab_top').children('.aaa').index();
王晓刚 authored
1368
        if (is_courier == 1 && index == 0) {
1369
            $('.log_three_list_fixed').show();
王晓刚 authored
1370
            $('.unify_all').text('统一发货');
1371
            $('.unify_all').attr('data-type', '')
王晓刚 authored
1372
        } else if (is_courier == 2 || (index != 0 && index != 1)) {
1373
            $('.log_three_list_fixed').hide();
1374
        } else if (index == 1) {
王晓刚 authored
1375
            $('.unify_all').text('统一完成');
1376
            $('.unify_all').attr('data-type', 1)
1377 1378
        }
    }
王晓刚 authored
1379
</script>
1380 1381
<script type="text/javascript">
    var dtpicker = new mui.DtPicker({
1  
anyv authored
1382 1383 1384
        type: "date", //设置日历初始视图模式
        beginDate: new Date(2015, 04, 25), //设置开始日期
        labels: ['年', '月', '日'], //设置默认标签区域提示语
1385 1386
    })
    //统一配送选择时间
1387 1388
    $(".tongyi_start_time").click(function () {
        dtpicker.show(function (e) {
1389 1390 1391 1392 1393 1394
            console.log(e);
            $('.tongyi_start_time').text(e.text);
            $('#start_time').val(e.text);
            $('.tongyi_start_time').css('color', '#333333');
        });
    });
1395 1396 1397 1398 1399 1400 1401 1402 1403 1404

    $(".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');
        });
    });
1405 1406 1407 1408
    function zZFun(e) {
        window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
    }
</script>
王晓刚 authored
1409
</body>
1410 1411

</html>