productManager.html 15.2 KB
<div>

  <div class="row wrapper wrapper-content animated fadeInRight" style="padding: 0;">
    <!-- <div class="serchBox form-right"> -->
    <div class="ibox relative" style="margin-bottom: 0">
      <div class="ibox-title clearfix" style="border: none">
        <div class="row">
          <form class="form-inline col-lg-12 form-right" role="form">
            <div class="form-group">
              <select class="form-control a_select mt3" ng-model="fieldName" style="width:100px;">
                <option value="productCode">产品编号</option>
                <option value="productName">产品名称</option>
                <option value="supplierCode">供应商SAP代码</option>
                <option value="supplierName">供应商SAP名称</option>
                <option value="idStr" selected>编号</option>
              </select>
              <input type="text" class="form-control a_ipt mt3" ng-model="fieldText" style="width:150px;" />
            </div>
            <div class="form-group">
              <label class="name control-label">类目代码:</label>
              <input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.categoryCode"
                style="width:150px;">
            </div>
            <div class="form-group">
              <label class="name control-label">产品生产型号:</label>
              <input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.procuctModel"
                style="width:150px;">
            </div>
            <div class="form-group">
              <label class="name control-label">品牌:</label>
              <input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.brandName"
                style="width:150px;">
            </div>
            <div class="form-group">
              <label class="name control-label">当前状态:</label>
              <ui-select class="a_select pd0" ng-model="$parent.serchInfo.status" theme="select2" style="width:190px;">
                <ui-select-match placeholder="全部">{{$select.selected.name}}</ui-select-match>
                <ui-select-choices repeat="item in statusArrays | filter: $select.search">
                  <span ng-bind="item.name"></span>
                </ui-select-choices>
              </ui-select>
            </div>
            <div class="form-group">
              <label class="name control-label text-right" style="width: 60px;">备注:</label>
              <ui-select class="a_select pd0" ng-model="$parent.serchInfo.hasRemark" theme="select2"
                style="width:150px;">
                <ui-select-match placeholder="全部">{{$select.selected.name}}</ui-select-match>
                <ui-select-choices repeat="item in remarkOptions | filter: $select.search">
                  <span ng-bind="item.name"></span>
                </ui-select-choices>
              </ui-select>
            </div>
            <div class="form-group">
              <label class="name control-label text-right" style="width: 60px;">产地:</label>
              <ui-select class="a_select pd0" ng-model="$parent.serchInfo.countryId" 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 (countryOptions | filter: $select.search) track by item.id">
                  <span ng-bind="item.name"></span>
                </ui-select-choices>
              </ui-select>
              <ui-select ng-show="serchInfo.countryId.id == 37" class="a_select pd0"
                ng-model="$parent.serchInfo.provinceId" ng-change="changeProvince($select.selected.pid)" theme="select2"
                style="width:100px;">
                <ui-select-match placeholder="请选择省份">
                  <span ng-bind="$select.selected.province"></span>
                </ui-select-match>
                <ui-select-choices repeat="item in (provinceOptions | filter: $select.search) track by item.pid">
                  <span ng-bind="item.province"></span>
                </ui-select-choices>
              </ui-select>

              <ui-select ng-show="serchInfo.countryId.id == 37" class="a_select pd0" ng-model="$parent.serchInfo.cityId"
                theme="select2" style="width:100px;">
                <ui-select-match placeholder="请选择城市">
                  <span ng-bind="$select.selected.city"></span>
                </ui-select-match>
                <ui-select-choices repeat="item in (cityOptions | filter: $select.search) track by item.cid">
                  <span ng-bind="item.city"></span>
                </ui-select-choices>
              </ui-select>
            </div>
            <div class="form-group">
              <label class="name control-label">产品分类:</label>
              <ui-select class="a_select pd0" ng-model="$parent.serchInfo.bizCategoryCode"
                ng-change="changeCategory(1,$select.selected.categoryCode)" theme="select2" style="width:120px;">
                <ui-select-match placeholder="请选择">
                  <span ng-bind="$select.selected.categoryName"></span>
                </ui-select-match>
                <ui-select-choices
                  repeat="item in (bizCategoryOptions | filter: $select.search) track by item.categoryCode">
                  <span ng-bind="item.categoryName"></span>
                </ui-select-choices>
              </ui-select>
              <ui-select class="a_select pd0" ng-model="$parent.serchInfo.bigCategoryCode"
                ng-change="changeCategory(2,$select.selected.categoryCode)" theme="select2" style="width:120px;">
                <ui-select-match placeholder="选择分类">
                  <span ng-bind="$select.selected.categoryName"></span>
                </ui-select-match>
                <ui-select-choices
                  repeat="item in (bigCategoryOptions | filter: $select.search) track by item.categoryCode">
                  <span ng-bind="item.categoryName"></span>
                </ui-select-choices>
              </ui-select>
              <ui-select class="a_select pd0" ng-model="$parent.serchInfo.productCategoryCode"
                ng-change="changeCategory(3,$select.selected.categoryCode)" theme="select2" style="width:120px;">
                <ui-select-match placeholder="选择分类">
                  <span ng-bind="$select.selected.categoryName"></span>
                </ui-select-match>
                <ui-select-choices
                  repeat="item in (productCategoryOptions | filter: $select.search) track by item.categoryCode">
                  <span ng-bind="item.categoryName"></span>
                </ui-select-choices>
              </ui-select>
              <ui-select class="a_select pd0" ng-model="$parent.serchInfo.subCategoryCode"
                ng-change="changeCategory(4,$select.selected.categoryCode)" theme="select2" style="width:120px;">
                <ui-select-match placeholder="选择分类">
                  <span ng-bind="$select.selected.categoryName"></span>
                </ui-select-match>
                <ui-select-choices
                  repeat="item in (subCategoryOptions | filter: $select.search) track by item.categoryCode">
                  <span ng-bind="item.categoryName"></span>
                </ui-select-choices>
              </ui-select>
            </div>
            <div class="form-group">
              <label class="name control-label">车型:</label>
              <ui-select class="a_select pd0" ng-model="$parent.serchInfo.carBrand"
                ng-change="changeCarBrand($select.selected.id)" theme="select2" style="width:120px;">
                <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.serchInfo.carSmallBrand"
                ng-change="changeCarSmallBrand($select.selected.id)" theme="select2" style="width:120px;">
                <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.serchInfo.carSeries" theme="select2"
                style="width:120px;">
                <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>
            </div>
            <div class="form-group">
              <label class="name control-label">投诉情况:</label>
              <ui-select class="a_select pd0" ng-model="$parent.serchInfo.hasComplain" theme="select2"
                style="width:150px;">
                <ui-select-match placeholder="全部">{{$select.selected.name}}</ui-select-match>
                <ui-select-choices repeat="item in complainOptions | filter: $select.search">
                  <span ng-bind="item.name"></span>
                </ui-select-choices>
              </ui-select>
            </div>
            <div class="form-group">
              <label class="name control-label">编号:</label>
              <input type="text" class="form-control a_ipt mt3" ng-model="serchInfo.minId" style="width:120px;"
                ng-blur="checkIdRange(1,1);" maxlength="11" ng-change="checkIdRange(2,1);">
              <span class="name control-label">--&nbsp;&nbsp;</span>
              <input type="text" class="form-control a_ipt mt3" ng-model="serchInfo.maxId" style="width:120px;"
                ng-blur="checkIdRange(1,2);" maxlength="11" ng-change="checkIdRange(2,2);">
            </div>
            <!-- <div class="form-group form-btn">
							<button type="submit" class="btn btn-primary aButton" ng-click="getProductList()">查询</button>
						</div> -->
          </form>
          <div class="form-group" style="margin-left: 15px;">
            <button class="btn btn-primary btn-search" ng-click="getProductList()"><img
                src="images/searchBtn.png" /><i>查询</i></button>
          </div>
        </div>
      </div>

    </div>
    <!-- 搜索区域 end -->
    <!--操作按钮区域  开始-->
    <div class="form-group">
      <div class="leftBox">
        <div class="dt-buttons btn-group" ng-repeat="attr in userDefinedOptions"
          style="min-width: 800px;margin-top: 10px;">
          <div style="float: left;padding: 5px 12px;color:#353535;font-weight: bold;font-size: 14px;">
            {{attr.outAttrName}}
          </div>
          <a href="javascript:void(0)" style="margin-right: 5px;"
            class="btn btn-default {{userDefinedOptions[$parent.$index].attrValList[$index].selected ?'active':''}}"
            ng-repeat="attrVal in attr.attrValList"
            ng-click="selectUserDefinedVal($parent.$index,$index)">{{attrVal.attrValName}}</a>
        </div>
      </div>
    </div>
    <!--操作按钮区域  end-->
    <!-- <div class="form-group">
			<div class="leftBox">
				<div style="color:#F00">
					待发送供应商:{{count.waitSendCount}}个;
					待供应商完善:{{count.waitImprovedCount}}个;
					待总部审核:{{count.waitAuditCount}}个;
					审核不通过:{{count.auditNotPassCount}}个;
					待上架:{{count.waitShelvesCount}}个;
					已上架:{{count.shelvesCount}}个;
					已下架:{{count.offShelvesCount}}个;<br />
					有备注:{{count.hasResultCount}}个;
				</div>
			</div>
		</div> -->
    <div class="ibox-content table-container" style="margin: 10px">
      <div class="icon-tips icon-green" style="width: 100%;display: inline-block; margin-bottom: 20px">
        <img src="images/comment.png" />
        <span>待发送供应商<i>{{count.waitSendCount || 0}}</i></span>
        <span>待供应商完善<i>{{count.waitImprovedCount || 0}}</i></span>
        <span>待总部审核<i>{{count.waitAuditCount || 0}}</i></span>
        <span>审核不通过<i>{{count.auditNotPassCount || 0}}</i></span>
        <span>待上架<i>{{count.waitShelvesCount || 0}}</i></span>
        <span>已上架<i>{{count.shelvesCount || 0}}</i></span>
        <span>已下架<i>{{count.offShelvesCount || 0}}</i></span><br>
        <span>有备注<i>{{count.hasResultCount || 0}}</i></span>
      </div>
      <div id="productManager" process-datatable dt-options="dtOptions" dt-instance="dtInstance" dt-columns="dtColumns"
        condition="condition" ng-dis />
    </div>
  </div>
</div>

<script type="text/ng-template" id="productManagerOperateModal">
  <div class="modal-header">
    <button type="button" class="close" ng-click="cancel()" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <h3 class="modal-title" id="modal-title">{{message}}</h3>
  </div>
  <div class="modal-body">
    <div class="form-group" ng-show="status == 3">
      <label class="name control-label fl">原  因:</label>
      <textarea name="remarks" class="textarea form-control" rows="5" autocomplete="off" ng-model="auditReason" placeholder="100字符以内" style="width: 400px;height: 80px" maxlength="100" ></textarea>
    </div>
    <div class="row" ng-show="status != 3">
      <p>是否确认{{message}}?</p>
    </div>
  </div>
  <div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="confirm()">确认<i class="fa fa-spinner fa-spin" ng-show="isWorking"></i></button>
    <button class="btn" type="button" ng-click="cancel()">取消</button>
  </div>
</script>
<!-- 审核 -->
<script type="text/ng-template" id="productManagerAuditModal">
  <div class="modal-header">
    <h3 class="modal-title">审核</h3>
  </div>
  <div class="modal-body">
    <div class="clearfix">
      <div class="form-group">
        <label class="name control-label fl">审核结果:</label>
        <select class="form-control a_select mt3" ng-model="auditSelect" style="width:120px;">
					<option value="4">审核通过</option>
					<option value="3">审核不通过</option>
				</select>
      </div>
      <div class="form-group" ng-show="auditSelect == 3">
        <label class="name control-label fl">原  因:</label>
        <textarea name="remarks" class="textarea form-control" rows="5" autocomplete="off" ng-model="auditReason" placeholder="100字符以内" style="width: 400px;height: 80px" maxlength="100" ></textarea>
      </div>
    </div>
    <div class="btnGroup m-t-md">
      <a href="javascript:void(0)" class="btn btn-success aButton" ng-click="confirm()" ng-disabled="isWorking">确定</a>
      <a href="javascript:void(0)" class="btn btn-default aButton" ng-click="cancel()">取消</a>
    </div>
  </div>
</script>