04ddcfe40deb4582652a4d0032514b7b83e38baa.svn-base 33.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603
<div class="lg-nav">
    <!--next-->
    <div class="btn-group btn-group-sm btn-mgr-10">
        <!-- 本地库地址添加 -->
       <!--  <button type="button" class="btn btn-default btn-mgr-10 active" local="0" local-address  lgclick="/es/plan/planadd">
        <i class="fa fa-plus"></i> 本地库地址</button>  -->
        <!-- <div ng-if="userType == 1">
        	<button type="button" class="btn btn-default btn-mgr-10 active" ng-click="getlocal(0)" lgclick="/es/plan/planadd">
        	<i class="fa fa-plus"></i> 本地库地址</button>
        </div> -->
        <!-- CRM库地址添加 -->
      	<!-- <button type="button" class="btn btn-default btn-mgr-10" crm="1" crm-address lgclick="/es/plan/planadd">
        <i class="fa fa-plus"></i> CRM库地址</button>  -->
       <div ng-if="userType == 0">
	       <!--  <button style="float: left; type="button" class="btn btn-default btn-mgr-10 active" ng-click="getcrm(1)" lgclick="/es/plan/planadd">
	        <i class="fa fa-plus"></i> 客户分类</button> -->
	        <div style="float: left;margin-top: 5px;padding-left: 7px;">
	            <input type="radio" name="cus-classify-1" value="1" checked planclassify> 客户分类&nbsp;&nbsp;
	            <input type="radio" name="cus-classify-1" value="3" planclassify> 客户状态&nbsp;&nbsp;
	            <input type="radio" name="cus-classify-1" value="5" planclassify> 客户来源&nbsp;&nbsp;
	           	<input type="radio" name="cus-classify-1" value="7" planclassify> 关联产品&nbsp;&nbsp;
	           	<input type="radio" name="cus-classify-1" value="9" planclassify> 采购偏好&nbsp;&nbsp;
	           	<input type="radio" name="cus-classify-1" value="11" planclassify> 个性营销
	        </div>
       </div>
       
        
        
    </div>
</div>
 <div>
    <div class="lg-con">
        <div class="lg-wrap" scroller-all="100">
            <div class="list-wrap">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th width="5%"><label allcheck="0" class="checkall"></label></th>
                        <th width="360">{{tableTitle}}</th>
                        <th width="100">地址总数</th>
                        <th width="150">营销计划</th>
                    </tr>
                    </thead>
                    <tbody>
                     <!-- 本地库地址加載 -->
                    <span ng-if="typeitems!=null">
                    <tr ng-repeat="ty in typeitems">
                    	<td width="5%"><label datafilecheck="0" class="lg-checkbox"></label></td>
                        <td width="360">
                            {{ty.folder_name}}
                        </td>
                        <td width="100">{{ty.emailnun}}</td>
                        <td width="150">
                            <addplan planid="ty.folder_id" mailnum="ty.emailnun" planname="ty.folder_name" style="width:60px;display: inline-block;"></addplan>
                            <button type="button" class="btn btn-success" style="margin-left:10px;padding: 1px 5px;font-size:12px;" ng-click="localRunNow(ty.folder_id)">立即执行</button>
                        </td>
                    </tr>
                    <!-- CRM库地址加載 -->
                    </span>
                    <span ng-if="typeitemscrm!=null">
                     <tr ng-repeat="crm in typeitemscrm">
                     <td width="5%"><label datafilecheck="0" class="lg-checkbox"></label></td>
                     <td width="360">{{crm.name}}</td>
                     <td width="100">{{crm.counts}}</td>
                     <td width="150">
                       	<addplan planid="crm.id" mailnum="crm.counts" planname="crm.name" style="width:60px;display: inline-block;"></addplan>
                       	<button type="button" class="btn btn-success" style="margin-left:10px;padding: 1px 5px;font-size:12px;" ng-click="crmRunNow(crm.id,crm.name)">立即执行</button>
                      </td>
                    </tr>
                  </span>
                 </tbody>
                </table>
            </div>
             <span ng-if="typeitems!=null">
        		<div style="line-height: 60px; text-align: center;" ng-show="typeitems.length==0">暂无本地库邮件地址分类</div>
        	</span>
	        <span ng-if="typeitemscrm!=null">
	        	<div style="line-height: 60px; text-align: center;" ng-show="typeitemscrm.length==0">暂无客户库邮件地址分类</div>
	        </span>
        </div>
    </div>
</div> 


<div id="dialog-addressplan" style="display: none;" title="营销计划">
    <div class="panel-body lg-mail">

        <table class="table table-mtb-0 lg-table-border-bottom addplantable">
            <tbody>
            <tr>
                <td width="100" style="font-weight: bold;">计划类型</td>
                <td><input type="radio" name="plan-1" value="0" checked planradio1> 提醒计划 &nbsp;&nbsp;
                <input type="radio" name="plan-1" value="1" planradio1>执行计划
                </td>
            </tr>
            <tr>
                <td width="100" style="font-weight: bold;">计划主题</td>
                <td><input type="text" id="plantitle" class="form-control"></td>
            </tr>
            <tr>
                <td style="font-weight: bold;">计划周期</td>
                <td><input type="radio" name="plan-2" value="2" planradio2> 一周内 
                	<input type="radio" name="plan-2" value="3" planradio2> 30天内 
                	<input type="radio" name="plan-2" value="4" planradio2> 指定时间内 
                	<input type="radio" name="plan-2" value="5" planradio2> 特殊节假日&nbsp;
                	<i title="特殊节假日,邮件将提前3天发送" 
                	style="font-size: 14px;cursor:pointer;" class="fa fa-question-circle" ng-click="clicktag()"></i>&nbsp;
                	<input type="radio" name="plan-2" value="6" planradio2> 指定具体日期
                </td>
            </tr>
            <tr>
                <td><span ng-show="planshow==5">国际节日</span></td>
                <td>
                    <div ng-show="planshow==2" class="weekday">
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-week" weekdate="1" plancheckmon></label>
                        <span class="choose-time">周一</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-week" weekdate="2" plancheckmon></label>
                        <span class="choose-time">周二</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-week" weekdate="3" plancheckmon></label>
                        <span class="choose-time">周三</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-week" weekdate="4" plancheckmon></label>
                        <span class="choose-time">周四</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-week" weekdate="5" plancheckmon></label>
                        <span class="choose-time">周五</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-week" weekdate="6" plancheckmon></label>
                        <span class="choose-time">周六</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-week" weekdate="7" plancheckmon></label>
                       	<span class="choose-time">周日</span>
                    </div>
                    <div ng-show="planshow==3">
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-30day" weekdate="1"
                               plancheckmon></label> <span class="choose-time">每周一</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-30day" weekdate="2"
                               plancheckmon></label> <span class="choose-time">每周二</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-30day" weekdate="3"
                               plancheckmon></label> <span class="choose-time">每周三</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-30day" weekdate="4"
                               plancheckmon></label> <span class="choose-time">每周四</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-30day" weekdate="5"
                               plancheckmon></label> <span class="choose-time">每周五</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-30day" weekdate="6"
                               plancheckmon></label> <span class="choose-time">每周六</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-30day" weekdate="7"
                               plancheckmon></label> <span class="choose-time">每周日</span>
                    </div>
                    <div ng-show="planshow==4">
                        <div class="input-group input-group-sm lg-input-group lg-w-150 btn-mgr-10">
                            <div style="position: relative;" >
                                <input type="text" id="begintime" class="lg-w-150" placeholder="开始时间" time-single-picker >
                                <span class="add-on lg-calendar">
                                  <i class="fa fa-calendar" data-date-icon="icon-calendar"></i>
                                </span>
                            </div>
                        </div>
                        <!-- /input-group -->
                        <div class="input-group input-group-sm lg-input-group lg-w-150">
                            <div style="position: relative;" >
                                <input type="text" id="endtime" class="lg-w-150" placeholder="结束时间" time-single-picker >
            <span class="add-on lg-calendar">
              <i class="fa fa-calendar" data-date-icon="icon-calendar"></i>
            </span>
                            </div>
                        </div>
                        <!-- /input-group -->
                        <div class="clear lg-lh-30">
                            <label datasinglecheck="0" class="lg-checkbox-n lg-plan-times" weekdate="1"
                                   plancheckmon></label> <span class="choose-time">每周一</span>
                            <label datasinglecheck="0" class="lg-checkbox-n lg-plan-times" weekdate="2"
                                   plancheckmon></label> <span class="choose-time">每周二</span>
                            <label datasinglecheck="0" class="lg-checkbox-n lg-plan-times" weekdate="3"
                                   plancheckmon></label> <span class="choose-time">每周三</span>
                            <label datasinglecheck="0" class="lg-checkbox-n lg-plan-times" weekdate="4"
                                   plancheckmon></label> <span class="choose-time">每周四</span>
                            <label datasinglecheck="0" class="lg-checkbox-n lg-plan-times" weekdate="5"
                                   plancheckmon></label> <span class="choose-time">每周五</span>
                            <label datasinglecheck="0" class="lg-checkbox-n lg-plan-times" weekdate="6"
                                   plancheckmon></label> <span class="choose-time">每周六</span>
                            <label datasinglecheck="0" class="lg-checkbox-n lg-plan-times" weekdate="7"
                                   plancheckmon></label> <span class="choose-time">每周日</span>
                        </div>
                    </div>
                     <div ng-show="planshow==5" class="holiday">
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="9"
                               plancheckmon title="新历{{hcalendar[0]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[0]}}" hdate="9">妇女节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="10"
                               plancheckmon title="新历{{hcalendar[1]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[1]}}" hdate="10">劳动节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="11"
                               plancheckmon title="新历{{hcalendar[2]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[2]}}" hdate="11">圣诞节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="8"
                               plancheckmon title="新历{{hcalendar[3]}}" disabled="disabled"></label> 
                               <span class="choose-time" title="新历{{hcalendar[3]}}" hdate="8">元 旦 </span>
             		</div>
                     <div ng-show="planshow==6">
                     <div id="specifiedtime" style="width: 100%;"></div>
                    </div>
                </td>
            </tr>
            <tr ng-show="planshow==5">
            <td>中国节日</td>
            <td>
                 <div ng-show="planshow==5" class="holiday">
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="12"
                               plancheckmon title="农历1月1号 ,新历{{hcalendar[4]}}"></label> 
                               <span class="choose-time" title="农历1月1号 ,新历{{hcalendar[4]}}" hdate="12">春&nbsp;&nbsp;&nbsp;节 </span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="13"
                               plancheckmon title="农历1月15号,新历{{hcalendar[5]}}"></label> 
                               <span class="choose-time" title="农历1月15号,新历{{hcalendar[5]}}" hdate="13">元宵节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="14"
                               plancheckmon title="新历{{hcalendar[6]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[6]}}" hdate="14">清明节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="15"
                               plancheckmon title="农历5月5号 ,新历{{hcalendar[7]}}"></label> 
                               <span class="choose-time" title="农历5月5号 ,新历{{hcalendar[7]}}" hdate="15">端午节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="16"
                               plancheckmon title="农历8月15号 ,新历{{hcalendar[8]}}"></label> 
                               <span class="choose-time" title="农历8月15号,新历{{hcalendar[8]}}" hdate="16">中秋节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="17"
                               plancheckmon title="新历{{hcalendar[9]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[9]}}" hdate="17">国庆节</span>
                    </div>
            </td>
            </tr>
             <tr ng-show="planshow==5">
            <td>亲情节日</td>
            <td>
            <div ng-show="planshow==5" class="holiday">
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="18"
                               plancheckmon title="新历{{hcalendar[10]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[10]}}" hdate="18">儿童节 </span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="19"
                               plancheckmon title="新历{{hcalendar[11]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[11]}}" hdate="19">父亲节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="20"
                               plancheckmon title="新历{{hcalendar[12]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[12]}}" hdate="20">母亲节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="21"
                               plancheckmon title="新历{{hcalendar[13]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[13]}}" hdate="21">感恩节</span>
                    </div>
            </td>
            </tr>
             <tr ng-show="planshow==5">
            <td>其它节日</td>
            <td>
           <div ng-show="planshow==5" class="holiday">
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="22"
                               plancheckmon title="新历{{hcalendar[14]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[14]}}" hdate="22">印度排灯节 </span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="23"
                               plancheckmon title="新历{{hcalendar[15]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[15]}}" hdate="23">俄罗斯新年</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="24"
                               plancheckmon title="新历{{hcalendar[16]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[16]}}" hdate="24">伊斯兰开斋节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="25"
                               plancheckmon title="新历{{hcalendar[17]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[17]}}" hdate="25">耶稣复活节</span>
                        <label datasinglecheck="0" class="lg-checkbox-n lg-plan-holiday" weekdate="26"
                               plancheckmon title="新历{{hcalendar[18]}}"></label> 
                               <span class="choose-time" title="新历{{hcalendar[18]}}" hdate="26">欧美万圣节</span>
                    </div>
            </td>
            </tr>
            <tr>
                <td style="font-weight: bold;">执行时间</td>
                <td>
                    <div class="input-group input-group-sm lg-mtp-10 lg-w-40 lg-bottom-mg0">
                        <div style="position: relative;" >
                            <input time-picker type="text" id="runtime" placeholder="设置时间">
              <span class="add-on lg-calendar">
                <i class="fa fa-clock-o" data-date-icon="icon-calendar"></i>
              </span>
                        </div>
                    </div>

                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

<!--删除类别提示-->
<div id="dialog-deltype" title="删除分组" style="display: none;">
    <div class="panel-body lg-mail">
        删除分组类别下的邮件是否保留(选择保留则移动到默认分组里)
    </div>
</div>

<!--保存提醒计划-->
<div id="dialog-contipform" title="确认提醒计划" style="display: none;">
    <div class="panel-body lg-mail">
        <table class="table lg-table-border-bottom table-mtb-0 conformtipplan">
            <tbody>

            </tbody>
        </table>
    </div>
</div>
<!--保存执行计划-->
<div id="dialog-conform" title="确认执行计划" style="display: none;">
    <div class="panel-body lg-mail">
        <table class="table lg-table-border-bottom table-mtb-0 conformrunplan">
            <tbody>

            </tbody>
        </table>
    </div>
</div>
    <!-- 验证CRM库发信判断量是否超标的弹窗 -->
<div id="dialog-planOverweightDay" title="单次发信量超标" style="display: none;">
    <div class="panel-body plandaylimit">
    	<span>
    	
    	</span>
    </div>
</div>
<div id="dialog-planOverweightMonth" title="月发信量超标" style="display: none;">
    <div class="panel-body plandaylimit">
    	<span>
    	
    	</span>
    </div>
</div>
<!--选择模板-->
<div id="dialog-choosetemp" title="选择模板" style="display: none">
    <div>
        <div class="btn-group btn-group-sm">
         <button type="button" class="btn btn-default lg-single-btn btn-info" single-click ng-click="usertemp()"><i
                    class="fa fa-newspaper-o"></i> 个人模板
            </button>
            <button type="button" class="btn btn-default lg-single-btn" ng-show="isnotdomain" single-click ng-click="comtemp()"><i
                    class="fa fa-newspaper-o"></i> 公司模板
            </button>
        </div>
        <div class="btn-group btn-group-sm btn-mgl-10">
            <select class="form-control lg-w-120" tname="{{tempname}}"   temp-home-click>
                <option value="0">{{tempname}}</option>
                <option ng-repeat="usertype in usertypes" value="{{usertype.typeid}}" >{{usertype.typename}}</option>
            </select>
        </div>
        <div style="margin-top: 10px;" class="lg-con" scrolleraddresslist>
            <div class="photo-view modeltype">
                <div class="photo-view-list lg-home-model" photoaddlist photoclick="0"
                     ng-repeat="listitem in templistitems" photoid="{{listitem.stencil_id}}" modeltitle="{{listitem.stencil_name}}">
                    <a href="javascript:;" class="photo-addview-list-link" title="{{listitem.stencil_name}}">
                        <img src="app/images/90.jpg" ng-src="{{listitem.temp_thumbnail}}">
                        <!-- <span class="photo-view-list-checkbox"></span> -->
                        <span class="photo-addview-list-mask"></span>
                         <span class="photo-addview-list-mask2">
                       		<p class="photo-view-handle" view-model-click2 tid="{{listitem.stencil_id}}">预览</p>
                       		<p class="photo-view-handle" usring-model-click2 tid="{{listitem.stencil_id}}" modeltitle="{{listitem.stencil_name}}">使用</p>
                        </span>
                    </a>
                </div>
            </div>
             <div style="line-height: 40px; text-align: center;border-top:1px solid #ddd;" ng-show="templistitems.length==0">暂无模板</div>
        </div>
    </div>
    <!-- START 分页-->
	    <div class="panel panel-default" ng-show="templistitems.length!=0" style="width: 690px;height: 70px;">
	        <div>
	            <!-- START row-->
	            <div class="row">
	                <div class="col-lg-7  col-lg-offset-5 col-sm-10 col-sm-offset-2">
	                    <pagination total-items="TotalItems" ng-model="CurrentPage" max-size="maxSize" boundary-links="true" rotate="false" num-pages="numPages" class="pagination-sm" ng-click="pageChanged()"></pagination>
	                </div>
	            </div>
	            <!-- END row-->
	        </div>
	    </div>
    <!-- END 分页-->
</div>

<div id="dialog-edittype" title="编辑分组" style="display: none;">
    <div class="panel-body">
        <input type="text" class="form-control" id="edittypename" placeholder="分组名">
    </div>
</div>
<!-- 个性营销查询数据-->
<div id="dialog-personality" title="个性营销" style="display: none;">
    <div class="panel-body lg-mail">
		
        <table class="table table-mtb-0 lg-table-border-bottom addplantable">
            <tbody>
            <tr>
            	<td style="font-weight: bold;width:100px;">客户类型</td>
                <td>
                	<input type="radio" name="cusSea" value="0" ng-click="radioChecked(0)" checked> 私海客户 <span style="color:red;">({{mySeaCount}})</span>&nbsp;&nbsp;
        			<input ng-if="is_yunying==1" type="radio" name="cusSea" value="1"  ng-click="radioChecked(1)" > <span ng-if="is_yunying==1">公海客户</span><span ng-if="is_yunying==1" style="color:red;">({{publicSeaCount}})</span>
                </td>
            </tr>
            <tr>
            	<td style="font-weight: bold;width:100px;">客户分类</td>
                <td>
                	<span ng-repeat="classify in classifylist">
                		<input type="checkbox" name="cusClassify-1" value="{{classify.id}}">&nbsp;&nbsp;{{classify.name}}&nbsp;&nbsp;&nbsp;
                	</span>
                </td>
            </tr>
            <tr>
            	<td style="font-weight: bold;width:100px;">客户状态</td>
                <td>
                	<span ng-repeat="state in statelist">
                		<input type="checkbox" name="cusState-1" value="{{state.id}}">&nbsp;&nbsp;{{state.name}}&nbsp;&nbsp;&nbsp;
                	</span>
                </td>
            </tr>
            <tr>
            	<td style="font-weight: bold;width:100px;">客户来源</td>
                <td>
                	<span ng-repeat="from in fromlist">
                		<input type="checkbox" name="cusFrom-1" value="{{from.id}}">&nbsp;&nbsp;{{from.name}}&nbsp;&nbsp;&nbsp;
                	</span>
                </td>
            </tr>
            <tr>
            	<td style="font-weight: bold;width:100px;">客户星级</td>
                <td>
                	<input type="checkbox" name="cusStar-1" value="0">&nbsp;&nbsp;无星级&nbsp;&nbsp;&nbsp;
                	<input type="checkbox" name="cusStar-1" value="1">&nbsp;&nbsp;一星&nbsp;&nbsp;&nbsp;
                	<input type="checkbox" name="cusStar-1" value="2">&nbsp;&nbsp;二星&nbsp;&nbsp;&nbsp;
                	<input type="checkbox" name="cusStar-1" value="3">&nbsp;&nbsp;三星 &nbsp;&nbsp;&nbsp;
                	<input type="checkbox" name="cusStar-1" value="4">&nbsp;&nbsp;四星 &nbsp;&nbsp;&nbsp;
                	<input type="checkbox" name="cusStar-1" value="5">&nbsp;&nbsp;五星
                </td>
            </tr>
             <tr>
            	<td style="font-weight: bold;width:100px;">关联产品</td>
                <td>
                	<span ng-repeat="pro in prolist">
                		<input type="checkbox" name="cusPro-1" value="{{pro.id}}">&nbsp;&nbsp;{{pro.name}}&nbsp;&nbsp;&nbsp;
                	</span>
                	<button type="button" ng-if="allProlist.length > 5" class="btn btn-info" style="margin-left:10px;padding: 1px 5px;font-size:12px;" ng-click="loadProductMore()" id="moreTitle2">更多</button>
                </td>
            </tr>
            <tr>
            	<td style="font-weight: bold;width:100px;">采购偏好</td>
                <td>
                	<span ng-if="purchaselist2.length == 0">无</span>
                	<span ng-repeat="pur in purchaselist2">
                		<input type="checkbox" name="personality-1" value="{{pur.name}}">&nbsp;&nbsp;{{pur.name}}&nbsp;&nbsp;&nbsp;
                	</span>
                    <button type="button" ng-if="purchaselist2.length >= 5" class="btn btn-info" style="margin-left:10px;padding: 1px 5px;font-size:12px;" ng-click="loadPurchaseMore()" id="moreTitle">更多</button>
                </td>
            </tr>
            <tr>
            	<td style="font-weight: bold;width:100px;">入库时间</td>
                <td>
                   <div class="input-group input-group-sm lg-input-group lg-w-150 btn-mgr-10">
                            <div style="position: relative;" >
                                <input type="text" id="beginentrytime" class="lg-w-150" placeholder="开始时间" time-single-picker >
                                <span class="add-on lg-calendar">
                                  <i class="fa fa-calendar" data-date-icon="icon-calendar"></i>
                                </span>
                            </div>
                        </div>
                        <div class="input-group input-group-sm lg-input-group lg-w-150">
                            <div style="position: relative;" >
                                <input type="text" id="endentrytime" class="lg-w-150" placeholder="结束时间" time-single-picker >
					            <span class="add-on lg-calendar">
					              <i class="fa fa-calendar" data-date-icon="icon-calendar"></i>
					            </span>
                            </div>
                       </div>
                </td>
            </tr>
            <tr>
            	<td style="font-weight: bold;width:100px;">联系时间</td>
                <td>
                   <div class="input-group input-group-sm lg-input-group lg-w-150 btn-mgr-10">
                       <div style="position: relative;" >
                           <input type="text" id="beginlinktime" class="lg-w-150" placeholder="开始时间" time-single-picker >
                           <span class="add-on lg-calendar">
                             <i class="fa fa-calendar" data-date-icon="icon-calendar"></i>
                           </span>
                       </div>
                  </div>
                  <div class="input-group input-group-sm lg-input-group lg-w-150">
                        <div style="position: relative;" >
                            <input type="text" id="endlinktime" class="lg-w-150" placeholder="结束时间" time-single-picker >
				            <span class="add-on lg-calendar">
				              <i class="fa fa-calendar" data-date-icon="icon-calendar"></i>
				            </span>
                        </div>
                   </div>
                </td>
            </tr>
            <tr>
            	<td style="font-weight: bold;width:100px;">未跟进时间</td>
                <td>
               		<div style="float:left;">
	               		<input type="radio" name="nofollow-1" value="7">&nbsp;&nbsp;7天内  &nbsp;&nbsp;&nbsp;
	                	<input type="radio" name="nofollow-1" value="30">&nbsp;&nbsp;30天内 &nbsp;&nbsp;&nbsp;
	                	<input type="radio" name="nofollow-1" value="-1">自定义&nbsp;&nbsp;
               		</div>
               		<div>
	                	<div class="input-group input-group-sm lg-input-group lg-w-150 btn-mgr-10" style="margin-left: 10px;">
	                       <div style="position: relative;" >
	                           <input type="text" id="beginfollowtime" class="lg-w-150" placeholder="开始时间" time-single-picker >
	                           <span class="add-on lg-calendar">
	                             <i class="fa fa-calendar" data-date-icon="icon-calendar"></i>
	                           </span>
	                       </div>
	                  </div>
	                  <div class="input-group input-group-sm lg-input-group lg-w-150">
	                        <div style="position: relative;" >
	                            <input type="text" id="endfollowtime" class="lg-w-150" placeholder="结束时间" time-single-picker >
					            <span class="add-on lg-calendar">
					              <i class="fa fa-calendar" data-date-icon="icon-calendar"></i>
					            </span>
	                        </div>
	                   </div>
               		</div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

<!-- 关联产品更多-->
<div id="dialog-mainProduct" title="关联产品" style="display: none;">
    <div class="panel-body lg-mail">
 		<div id="selectshow2" style="padding-top: 3px;"></div>
        <table class="table table-mtb-0 lg-table-border-bottom addplantable">
	       	<thead>
	          <tr>
	              <th width="10%">序号</th>
	              <th width="360">关联产品</th>
	              <th width="150">选择</th>
	          </tr>
	         </thead>
            <tbody>
             <tr ng-repeat="pur in allProlist track by $index">
            	<td>{{$index+1}}</td>
            	<td>{{pur.name}}</td>
            	<td><input type="checkbox" name="mainPro-1" proname="{{pur.name}}" value="{{pur.id}}"></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>


<!-- 采购偏好更多-->
<div id="dialog-purchaseHobby" title="使用偏好" style="display: none;">
    <div class="panel-body lg-mail">
    <div class="input-group input-group-sm lg-input-group lg-w-250 lg-input-group-right btn-mgr-10" style="float: left;width:270px;">
        <input type="search" class="form-control" id="purchasehobby" placeholder="查询采购偏好..." style="width:180px;">
        <span class="input-group-btn">
        	<button class="btn btn-default" type="button" ng-click="purchaseBtn()"><i class="fa fa-search"></i></button>
        </span>
        <span class="input-group-btn" style="padding-left: 10px;">
        	<button type="button" class="btn btn-info" ng-click="purchaseReset()">重置</button>&nbsp;&nbsp;
        </span>
        <span class="input-group-btn" style="padding-left: 10px;font-size: 12px;">
	   		<input type="checkbox" name="isSure" value="0">&nbsp;精准
        </span>
 	</div>
 	<div id="selectshow" style="padding-top: 3px;"></div>
        <table class="table table-mtb-0 lg-table-border-bottom addplantable">
	       	<thead>
	          <tr>
	              <th width="10%">序号</th>
	              <th width="360">采购偏好</th>
	              <th width="150">选择</th>
	          </tr>
	         </thead>
            <tbody>
             <tr ng-repeat="pur in purchaselist track by $index">
            	<td>{{$index+1}}</td>
            	<td>{{pur.name}}</td>
            	<td><input type="checkbox" name="purchase-1" value="{{pur.name}}"></td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- START 分页-->
    <div class="panel panel-default" ng-show="filteraddresslists.length!=0" style="width: 665px;height: 70px;">
        <div>
            <!-- START row-->
            <div class="row">
                <div class="col-lg-7 col-lg-offset-5" style="padding-left: 140px;">
                    <pagination total-items="TotalItems" ng-model="CurrentPage" max-size="maxSize" boundary-links="true" rotate="false" num-pages="numPages" class="pagination-sm" ng-click="pageChanged2()"></pagination>
                </div>
            </div>
            <!-- END row-->
        </div>
    </div>
    <!-- END 分页-->
</div>