seek_salesman.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <style>
  2. .row {
  3. margin-bottom: 10px;
  4. }
  5. </style>
  6. <div>
  7. <div class="box-header well">
  8. 求购-业务员分配
  9. </div>
  10. <div class="box-content">
  11. <div class="row">
  12. <div class="col-sm-1">
  13. </div>
  14. <div class="col-sm-7">
  15. </div>
  16. <div class="col-sm-4">
  17. <div class="input-group">
  18. <input placeholder="请输入品牌/型号" class="form-control ng-pristine ng-untouched ng-valid" ng-model="keyword" ng-search="onSearchKeyWord()"type="text">
  19. <span class="input-group-btn">
  20. <button class="btn btn-primary" type="button" ng-click="onSearchKeyWord()">搜索</button>
  21. </span>
  22. </div>
  23. </div>
  24. </div>
  25. <table ng-table="seekSalesmanTableParams"
  26. class="table table-bordered table-striped table-hover" style="word-break:break-all; word-wrap:break-all;">
  27. <thead>
  28. <tr class="tr-default">
  29. <th width="10%;" class="text-center">编号</th>
  30. <th width="7%;" class="text-center">求购来源</th>
  31. <th width="10%" class="text-center">询价单号</th>
  32. <th width="10%" class="text-center">发布时间</th>
  33. <th width="10%" class="text-center">买家</th>
  34. <th width="10%" class="text-center">产品信息</th>
  35. <th width="10%" class="text-center">截止日期</th>
  36. <th width="10%" class="text-center">报价条数</th>
  37. <th width="10%" class="text-center"><select ng-change="onSearchStatus(seek_status)" ng-model="seek_status">
  38. <option value="0">求购状态</option>
  39. <option value="2">已报价</option>
  40. <option value="1">待报价</option>
  41. <option value="3">已采纳</option>
  42. </select></th>
  43. <th width="10%" class="text-center">
  44. <select ng-change="onSearchSalesman(seek_salesman)" ng-model="seek_salesman">
  45. <option value="0">业务员</option>
  46. <option ng-repeat="me in members" value="{{me.name}}">{{me.name}}</option>
  47. </select>
  48. </th>
  49. <th width="10%" class="text-center">操作</th>
  50. </tr>
  51. </thead>
  52. <tbody ng-repeat="seek in $data">
  53. <tr class="text-center">
  54. <td><span ng-bind="seek.id"></span></td>
  55. <td><span ng-bind="seek.source"></span></td>
  56. <td><span ng-bind="seek.code"></span></td>
  57. <td><span ng-bind="seek.publicDate | date : 'yyyy-MM-dd HH:mm:ss'"></span></td>
  58. <td><p ng-bind="seek.enterprise.enName"></p><p ng-bind="seek.user.userName"></p></td>
  59. <td><p ng-bind="'型号:'+seek.cmpCode"></p>
  60. <p ng-bind="'品牌:'+seek.brand"></p>
  61. <p ng-bind="'规格:'+seek.spec"></p>
  62. </td>
  63. <td><span ng-bind="seek.endDate | date : 'yyyy-MM-dd HH:mm:ss'"></span></td>
  64. <td><span ng-bind="seek.offerAmount"></span></td>
  65. <td><span ng-if="seek.status && seek.status == 1 && seek.offerAmount > 0">已采纳</span>
  66. <span ng-if="(!seek.status || seek.status == 0) && seek.offerAmount > 0">已报价</span>
  67. <span ng-if="!seek.offerAmount || seek.offerAmount == 0">待报价</span>
  68. </td>
  69. <td><span ng-bind="seek.salesman"></span></td>
  70. <td>
  71. <button ng-if="!seek.salesman" class="btn btn-sm btn-warning" ng-click="orders(seek.id)">我来接单</button>
  72. <a target="_blank" ng-href="#/seekSalesman/{{seek.id}}/{{seek.salesman}}">
  73. 查看详情
  74. </a>
  75. </td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. </div>
  80. </div>