cusAdd.html 21.4 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
<!--  第一部分:菜单导航 start -->
<div class="backTo"><a href="javascript:;" ng-click="backTo()"><i class="fa fa-reply"
            aria-hidden="true"></i> 返回</a></div>
<div class="wrapper wrapper-content wo-wrap cus-add">
    <form name="cusAddForm" class="woForm" novalidate>
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>关联门店信息</h5>
            </div>
            <div class="ibox-content">
                <div class="row wo-row" ng-if="isSuper">
                    <div class="form-group col-lg-6">
                        <label class="control-label"><span class="required"></span>园区店:</label>
                        <div class="wo-span">
                            <select class="form-control" style="width: 200px;" ng-model="model.sellerMerchant" name="sellerMerchant" ng-disabled="operStatus > 1" ng-change="changeSellerMerchant()" required>
                                <option value="">请选择</option>
                                <option ng-repeat="item in sellerMerchantList" value="{{item.merchantId}}">{{item.merchantName}}</option>
                            </select>
                         <p ng-show="cusAddForm.sellerMerchant.$invalid && submitted" class="text-danger form-text">请选择园区店</p>
                        </div>
                    </div>
                </div>
                <!-- <div class="row wo-row checkbox-user" ng-if="isSuper">
                    <div class="form-group col-lg-12" style="height: auto;">
                        <label class="control-label col-lg-2 col-sm-2"><span class="required"></span>预录员:</label>
                        <span style="display: inline-block;" class="col-lg-10 col-sm-10">
                            <span ng-repeat="item in prerecordedUserList">
                                <label class="checkbox-inline p-l-none" ng-class="{'is-checked': model.prerecorded === item.userId}">
                                    <input type="radio" icheck ng-model="model.prerecorded" ng-value="item.userId" name="prerecorded" />
                                <span class="radio-label">{{item.name}}</span>
                                </label>
                            </span>
                        </span>
                        <div class="error_message col-lg-2 col-sm-2" ng-show="prerecordedTips.show">{{prerecordedTips.message}}</div>
                    </div>
                </div> -->
                <div class="row wo-row">
                    <div class="form-group col-lg-6">
                        <label class="control-label"><span class="required"></span>流量来源:</label>
                        <div class="wo-span">
                            <select class="form-control" style="width: 200px;" ng-model="model.merchant" name="merchant" ng-disabled="!isSuper || (operStatus > 1)" ng-change="getGoodsAndEmployee()" required>
                                <option value="">请选择</option>
                                <option ng-repeat="item in merchantList" value="{{item.merchantId}}">{{item.merchantName}}</option>
                            </select>
                         <p ng-show="cusAddForm.merchant.$invalid && submitted" class="text-danger form-text">请选择流量来源</p>
                        </div>
                    </div>
                </div>
                <div class="row wo-row checkbox-user">
                    <div class="form-group col-lg-12" style="height: auto;">
                        <label class="control-label col-lg-2 col-sm-2"><span class="required"></span>推荐人:</label>
                        <span style="display: inline-block; padding-left: 0;" class="col-lg-10 col-sm-10">
                            <span >
                                <span ng-repeat="item in sellerUserList">
                                    <label class="checkbox-inline p-l-none" ng-class="{'is-checked': model.employee === item.userId}">
                                        <input type="radio" icheck ng-model="model.employee" ng-value="item.userId" name="employee" ng-change="changeEmployee(item)" />
                                    <span class="radio-label">{{item.name}}</span>
                                    </label>
                                </span>
                            </span>
                            <div class="error_message" ng-show="labelTips.show">{{labelTips.message}}</div>
                        </span>
                    </div>
                </div>
            </div>
        </div>
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>客户基本信息</h5>
            </div>
            <div class="ibox-content">
                <div class="row wo-row">
                    <div class="form-group col-lg-6">
                        <label class="control-label"><span class="required"></span>客户姓名:</label>
                        <div class="wo-span">
                            <input type="text" class="form-control lg" ng-model="model.cusName" name="cusName" ng-maxlength="16" required>
                            <p ng-show="cusAddForm.cusName.$invalid && submitted" class="text-danger form-text">姓名不超过16个汉字或字符</p>
                        </div>
                    </div>
                    <div class="form-group col-lg-6">
                        <label class="control-label">性别:</label>
                        <div class="wo-span">
                            <select class="form-control a_select mt3" ng-model="model.sexType" style="width: 150px;">
                                <option value="">请选择</option>
                                <option value="1">男</option>
                                <option value="2">女</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-6">
                        <label class="control-label "><span class="required"></span>手机号码:</label>
                        <div class="wo-span">
                            <input type="text" class="form-control lg" ng-pattern="/^[1][3,4,5,6,7,8,9][0-9]{9}$/"
                                ng-model="model.mobile" name="mobile" maxlength="11" required>
                                <span>*已为客户启用隐私号码保护功能!</span>
                            <p ng-show="cusAddForm.mobile.$invalid && submitted"
                                class="text-danger form-text">请输入正确的手机号码</p>
                        </div>
                    </div>
                </div>
                <br>
                <div class="row wo-row">
                    <div class="form-group col-lg-6">
                        <label class="control-label ">客户类型:</label>
                        <div class="wo-span">
                            <select class="form-control a_select mt3" ng-model="model.customerType" style="width: 150px;">
                                <option value="">请选择</option>
                                <option value="1">价格敏感型</option>
                                <option value="2">价格不敏感型</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="row wo-row">
                    <div class="form-group col-lg-6">
                        <label class="control-label">客户职业:</label>
                        <div class="wo-span">
                            <input type="text" class="form-control lg" ng-model="model.customerProfession" maxlength="20">
                        </div>
                    </div>
                </div>
                <div class="row wo-row">
                    <div class="form-group col-lg-10 u-for-disabled">
                        <label class="control-label">品牌车型:</label>
                        <div class="wo-span">
                            <ui-select class="a_select pd0" ng-model="$parent.model.carBrand"
                                ng-change="changeCarBrand($select.selected.id)" theme="select2" style="width:150px;">
                                <ui-select-match placeholder="请选择">
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices
                                    repeat="item in (carBrandOptions | filter: $select.search) track by item.id">
                                    <span ng-bind="item.name"></span>
                                </ui-select-choices>
                            </ui-select>

                            <ui-select class="a_select pd0" ng-model="$parent.model.carSmallBrand"
                                ng-change="changeCarSmallBrand($select.selected.id)" theme="select2"
                                style="width:150px;">
                                <ui-select-match placeholder="请选择">
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices
                                    repeat="item in (carSmallBrandOptions | filter: $select.search) track by item.id">
                                    <span ng-bind="item.name"></span>
                                </ui-select-choices>
                            </ui-select>

                            <ui-select class="a_select pd0" ng-model="$parent.model.carSeries"
                                ng-change="changeCarSeries($select.selected.id)" theme="select2" style="width:150px;">
                                <ui-select-match placeholder="请选择">
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices
                                    repeat="item in (carSeriesOptions | filter: $select.search) track by item.id">
                                    <span ng-bind="item.name"></span>
                                </ui-select-choices>
                            </ui-select>
                            <!-- <ui-select class="a_select pd0" ng-model="$parent.model.carType" theme="select2"
                                style="width:300px;">
                                <ui-select-match placeholder="请选择">
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices
                                    repeat="item in (carTypes | filter: $select.search) track by item.id">
                                    <span ng-bind="item.name"></span>
                                </ui-select-choices>
                            </ui-select> -->
                            <!-- <p ng-show="(!model.carSeries || !model.carSeries.id) && !isSaveDraft && clicked"
                                class="text-danger form-text">请将品牌车型填充完整(最后一栏可不填)</p> -->
                        </div>
                    </div>
                </div>
                <div class="row wo-row">
                    <div class="form-group col-lg-6" style="height: 52px;">
                        <label class="control-label"><span class="required"></span>车架号:</label>
                        <div class="wo-span">
                            <input type="text" class="form-control lg" ng-pattern="/^[0-9A-Za-z]/"
                                ng-model="model.standNo" name="standNo" id="standNo" maxlength="17" required/>
                                <span>*完整的车架号是17位的车辆识别代码(VIN码)</span>
                            <div class="m-t-xs" ng-show="cusAddForm.standNo.$invalid && submitted">
                                <p class="text-danger" ng-show="cusAddForm.standNo.$error.required">请输入车架号码</p>
                                <p class="text-danger" ng-show="cusAddForm.standNo.$error.pattern">车架号为17位数字或者字母</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row wo-row">
                    <div class="form-group col-lg-6">
                        <label class="control-label">钥匙号:</label>
                        <div class="wo-span">
                            <input type="text" class="form-control lg" ng-model="model.carKeyNo" maxlength="20">
                        </div>
                    </div>
                </div>
                <div class="row wo-row">
                    <div class="form-group col-lg-6">
                        <label class="control-label">交车日期:</label>
                        <div class="wo-span">
                            <div style="position: relative">
                                <input id="effectDate" date-range-picker options="takeeffectTimeOptions"
                                    class="form-control lg date-picker readonlyInput" type="text"
                                    ng-model="model.effectDate" ng-keydown="keydownDisable($event)"/>
                            </div>
                            <label for="fixTime">
                                <i class="fa fa-calendar" style="position: absolute;top:8px;right: 172px;"></i>
                            </label>
                            <span>预估用户提车的日期,预约专员将根据日期联系客户</span>
                        </div>
                    </div>
                </div>
                <div class="row wo-row">
                    <div class="form-group col-lg-6">
                        <label class="control-label">新车首购:</label>
                        <div class="wo-span">
                            <span>
                                <label class="checkbox-inline p-l-none">
                                    <input type="radio" icheck ng-model="model.newCarFlag" value="Y" name="newCarFlag" ng-checked="true"/>
                                  <span class="m-l-8">是</span>
                                </label>
                                <label class="checkbox-inline p-l-none">
                                    <input type="radio" icheck ng-model="model.newCarFlag" value="N" name="newCarFlag"/>
                                  <span class="m-l-8">否</span>
                                </label>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="ibox float-e-margins">
            <a id="DDcar_flag"></a>
            <div class="ibox-title">
                <h5>商品预装信息</h5>
            </div>
            <div class="ibox-content">
                <div class="row wo-row">
                    <div class="form-group col-lg-12" style="height: auto;">
                        <label class="control-label col-lg-2 col-sm-2"><span class="required"></span>基础商品:</label>
                        <div style="display: inline-block;" class="col-lg-10 col-sm-10">
                            <div class="base-pro-block base-pro-block-wh" ng-class="{'is-checked': selected.indexOf(item.id) !== -1}" ng-repeat="item in baseGoodsList" ng-click="updateSelection(item.id)">
                                <span class="pro-icon"></span>
                                <img class="base-pro-block-wh" ng-src="{{item.goodsInfo.thumbUrl}}"/>
                                <!-- <input type="checkbox"  ng-value="item.id" /> -->
                                <p class="ellipsis" ng-attr-title="{{item.goodsInfo.goodsName}}">{{item.goodsInfo.goodsName}}</p>
                                <p class="ellipsis" ng-attr-title="{{item.goodsInfo.goodsCode}}">{{item.goodsInfo.goodsCode}}</p>
                                <p class="ellipsis">{{item.goodsInfo.goodsTypeName}}</p>
                            </div>
                            <p class="error_message" ng-show="goodsTips.show">{{goodsTips.message}}</p>
                            <p class="error_message" ng-show="goodsErrTips.show">{{goodsErrTips.message}}</p>
                        </div>
                    </div>
                </div>
                <div class="row wo-row">
                    <div class="form-group col-lg-6 lg">
                        <label class="control-label">客户备注:</label>
                        <div class="wo-span">
                            <textarea class="form-control specialContent lg" ng-model="model.remark" maxlength="64">
                            </textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="fixed-footer">
    <button type="button" class="btn btn-primary" ng-click="handleConfirm()" ladda="submiting"
      data-style="expand-right">提交</button>
    <button type="button" class="btn btn-default" ng-click="backTo()">取消</button>
</div>
<style>
    .policy-title {
        font-size: 16px;
    }

    .policy-upload {
        position: relative;
        display: inline-block;
        width: 350px;
        height: 200px;
        vertical-align: top;
        margin-bottom: 30px;
    }
    .policy-error {
        position: absolute;
        bottom: -20px;
    }
    .policy-img,
    .policy-upload img {
        width: 350px;
        height: 200px;
        cursor: pointer;
    }
    .policy-add {
        position: absolute;
        top: 0;
        left: 50%;
        width: 350px;
        height: 200px;
        /* border: 1px dashed #cecece; */
        text-align: center;
        transform: translateX(-50%);
        font-size: 120px;
        cursor: pointer;
    }

    .policy-file {
        position: relative;
        text-align: center;
    }
    .policy-file input {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 54px;
        height: 34px;
        opacity: 0;
    }

    .v_tag {
        padding: 4px 20px 4px 8px;
        border: 1px solid #ccc;
        border-radius: 2px;
        margin: 0 10px 0 0;
        color: #666;
        position:relative;
    }

    .v_tag span{
        position:absolute;
        right:4px;
    }

    .tags_list {
        display: flex;
        align-items: center;
    }

    .tags_list .active{
        background: rgba(5, 186, 160, 0.1);
        color: #05BAA0;
        border:1px solid #00a77b;
    }

    .fixed-footer {
    position: fixed;
    left: 220px;
    bottom: 0;
    width: calc(100% - 220px);
    height: 73px;
    text-align: center;
    transition: all 0.4s;
    box-shadow: 0 0 6px 0 rgba(102, 102, 102, 0.20);
    border-radius: 0 0 4px 4px;
    background: #fff;
    box-sizing: border-box;
    padding: 20px 0 0;
  }

  .fixed-footer .btn {
    width: 90px;
    height: 34px;
    margin: 0 10px;
  }

  /* .portrait p {
    margin-bottom: 0px;
  } */

  .checkbox-inline {
    margin: 0 20px 10px 0;
  }

  .checkbox-inline {
    padding-left: 0;
  }

  .checkbox-inline .checkBox {
    margin-top: 2px;
    margin-left: -14px;
  }

  .m-l-8 {
    margin-left: 8px;
  }

  .error_message {
        color: #f00;
        /* position: absolute; */
        padding: 6px 0;
  }
  
  .cus-add .checkbox-user .iradio_square-green {
      display: none;
  }

  .cus-add .radio-label {
    height: 20px;
    line-height: 35px;
    color: #A1A1A1;
    padding: 5px 10px;
    border: 1px solid #A1A1A1;
    border-radius: 2px;
  }
  .cus-add .is-checked .radio-label {
    /* border: 1px solid #0947c6; */
    color: #f1f1f1;
    background-color: #00956E;
    border: 1px solid;
  }

  .base-pro-block-wh {
  width: 160px;
  height: 262px;
  margin-bottom: 20px;
}
.base-pro-block {
  position: relative;
  display: inline-block;
  margin-right: 20px;
  border: 1px solid #e5e6e7;
  box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.1);
}
/* .base-pro-block .base-pro-block-wh {
  
} */
.base-pro-block .base-pro-block-wh.is-checked {
  /* box-shadow: 5px 5px 2px #999999; */
  border: 1px solid #0947c6;
}
.base-pro-block .el-checkbox__label {
  padding: 0 0;
}
.base-pro-block .el-checkbox__input {
  display: none;
}
.base-pro-block .pro-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: url('images/uncheck.png');
  background-size: 24px 24px;
  margin: 0 0;
}
.base-pro-block.is-checked .pro-icon {
  background: url('images/check.png');
  background-size: 24px 24px;
}
/* .base-pro-block .pro-icon img {
  width: 24px;
  height: 24px;
} */
.base-pro-block img {
  vertical-align: top;
  width: 160px;
  height: 160px;
}
.base-pro-block .pro-block-txt {
  font-size: 12px;
  color: #a1a1a1;
  padding: 22px 12px;
}
.base-pro-block .block-title {
  color: #6c6f71;
  font-weight: bold;
}
.base-pro-block .ellipsis {
  width: 110px;
  height: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 10px;
  margin: 0 0;
  /* vertical-align: bottom; */
}

  /* .base-pro-block-wh {
        width: 120px;
        height: 120px;
    }
  .base-pro-block {
        display: inline-block;
        margin-right: 20px;
    }
  .base-pro-block img {
        vertical-align: top;
    }
  .base-pro-block .ellipsis {
        display: inline-block;
        width: 100px;
        height: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }  */
</style>