productView.html 11.8 KB
<div>

  <div class="animated fadeInRight">
    <div class="productBox">
      <div class="serchBox">
        <div class="form-group fl">
          <select class="form-control a_select mt3" ng-model="fieldName" style="width:120px;">
            <option value="idStr" selected>编号</option>
            <option value="productCode">产品编号</option>
            <option value="productName">产品名称</option>
            <option value="supplierCode">供应商SAP代码</option>
            <option value="supplierName">供应商SAP名称</option>
          </select>
          <input type="text" class="form-control a_ipt mt3" ng-model="fieldText" style="width:120px;" />
        </div>
        <div class="form-group fl">
          <label class="name control-label fl" style="margin-left: 20px">类目代码:</label>
          <input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.categoryCode"
            style="width:150px">
        </div>
        <div class="form-group fl">
          <label class="name control-label fl" style="margin-left: 20px">产品生产型号:</label>
          <input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.procuctModel"
            style="width:150px;">
        </div>
        <div class="form-group fl">
          <label class="name control-label fl" style="margin-left: 20px">品牌:</label>
          <input type="text" class="form-control a_ipt mt3" maxlength="50" ng-model="serchInfo.brandName"
            style="width:150px;">
        </div>
        <div class="form-group fl">
          <label class="name control-label fl">产地:</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:150px;">
            <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:150px;">
            <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 fl">
          <label class="name control-label fl" style="margin-left: 20px">产品分类:</label>
          <ui-select class="a_select pd0" ng-model="$parent.serchInfo.bizCategoryCode"
            ng-change="changeCategory(1,$select.selected.categoryCode)" theme="select2" style="width:150px;">
            <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:150px;">
            <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:150px;">
            <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:150px;">
            <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 fl">
          <label class="name control-label fl">车型:</label>
          <ui-select class="a_select pd0" ng-model="$parent.serchInfo.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.serchInfo.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.serchInfo.carSeries" 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>
        </div>
        <div class="form-group fl">
          <label class="name control-label fl" style="margin-left: 20px">投诉情况:</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 fl">
          <label class="name control-label fl" style="margin-left: 20px">收藏状态:</label>
          <ui-select class="a_select pd0" ng-model="$parent.serchInfo.collectStatus" theme="select2"
            style="width:150px;">
            <ui-select-match placeholder="全部">{{$select.selected.name}}</ui-select-match>
            <ui-select-choices repeat="item in collectOptions | filter: $select.search">
              <span ng-bind="item.name"></span>
            </ui-select-choices>
          </ui-select>
        </div>
      </div>
      <div class="form-group" style="margin-top: 20px;">
        <button class="btn btn-primary btn-search" ng-click="getProductList()"><img
            src="images/searchBtn.png" /><i>查询</i></button>
        <!-- <button class="btn btn-default btn-search" ng-click=""><img
                        src="images/resetBtn.png" /><i>重置</i></button> -->
      </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="ibox-content table-container">
      <div id="productView" style="margin: 5px;" process-datatable dt-options="dtOptions" dt-instance="dtInstance"
        dt-columns="dtColumns" condition="condition" ng-dis />
    </div>
  </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="row">
      <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: 280px;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>

<style>
  .productBox {
    background-color: #FFFFFF;
    margin: 10px 0;
    padding: 20px;
  }
</style>