workflow-templatecreate.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <ion-view view-title="{{titleName[activeIndex]}}" hide-back-button="true">
  2. <ion-nav-buttons side="left">
  3. <button class="button button-clear" ng-click="this[datatext.leftbtn[leftIndex].click](datatext.leftbtn[leftIndex].params)">{{datatext.leftbtn[leftIndex].text}}</button>
  4. </ion-nav-buttons>
  5. <ion-nav-buttons side="right">
  6. <button class="button button-clear" ng-click="this[datatext.rightbtn[rightIndex].click]()">{{datatext.rightbtn[rightIndex].text}}</button>
  7. </ion-nav-buttons>
  8. <ion-content>
  9. <div class="button-bar striped">
  10. <button class="button" ng-class="{true:'striped-color',false:'striped-hover'}[activeIndex==0?true:false]"></button>
  11. <button class="button" ng-class="{true:'striped-color',false:'striped-hover'}[activeIndex==1?true:false]"></button>
  12. <!-- <label class="striped-color">&nbsp;</label> -->
  13. <button class="button" ng-class="{true:'striped-color',false:'striped-hover'}[activeIndex==2?true:false]"></button>
  14. <!-- <label class="striped-color">&nbsp;</label> -->
  15. <button class="button" ng-class="{true:'striped-color',false:'striped-hover'}[activeIndex==3?true:false]"></button>
  16. </div>
  17. <ion-slide-box show-pager="false" ng-init="lockSlide()" active-slide="activeIndex">
  18. <ion-slide>
  19. <div class="item item-divider"></div>
  20. <div>
  21. <label class="item item-input">
  22. <input type="text" ng-model="template.name" placeholder="输入流程名称">
  23. </label>
  24. </div>
  25. </ion-slide>
  26. <ion-slide>
  27. <div class="row workflow-public workflow-moban">
  28. <div class="item col workflow-item" ng-class="{true:'bgColorClass',false:''}[customer_template.show]" ng-click="checktemplate(customer_template);"><i class="ion ion-social-wordpress-outline calm workflow-ion"></i>
  29. <i class="ion ion-ios-checkmark workflow-moban-checkbox calm" ng-if="customer_template.show"></i>
  30. <div class="row">
  31. <div class="col col-15" ng-if="customer_template.show"></div>
  32. <div class="col">标准模板</div>
  33. <div class="col positive" ng-click="toSetItem(customer_template.id)" ng-if="customer_template.show">设置选项</div>
  34. <div class="col col-15" ng-if="customer_template.show"></div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="row workflow-moban " ng-repeat="templates in templates_already">
  39. <div class="item col col-50 workflow-item item-text-wrap" ng-class="{true:'bgColorClass',false:''}[template.show]" ng-repeat="template in templates" ng-click="checktemplate(template);">
  40. <i class="ion workflow-ion" ng-class="template.icon +' '+template.icon_color"></i>
  41. <i class="ion ion-ios-checkmark workflow-moban-checkbox calm" ng-if="template.show"></i>
  42. <div class="row subitem">
  43. <div class="col">{{template.name}}</div>
  44. <div class="col positive" ng-click="toSetItem(template.id)" ng-if="template.show">设置选项</div>
  45. </div>
  46. </div>
  47. <div class="item col col-50 workflow-item item-text-wrap last-template-space" ng-if="templates.length<2"></div>
  48. </div>
  49. </ion-slide>
  50. <ion-slide>
  51. <div class="item item-divider" ng-if="auditsteps.length>0"></div>
  52. <ion-list>
  53. <ion-item ng-repeat="step in auditsteps" class="workflow-step item-icon-right item-text-wrap">
  54. <span class="workflow-number ">{{$index+1}}</span>
  55. <h2>{{step.name}}<i class="ion-ios-compose-outline"></i></h2>
  56. <p class="from-p">审批人:{{step.verifier==null?"未指定":step.verifier.username}}</p>
  57. <i class="icon ion-navicon-round icon-accessory"></i>
  58. </ion-item>
  59. </ion-list>
  60. <div class="item item-divider"></div>
  61. <ion-item class="positive" style="text-align:center" ng-click="toaddstep()">
  62. 添加审批步骤&nbsp;<i class="ion-plus"></i>
  63. </ion-item>
  64. </ion-slide>
  65. <ion-slide>
  66. <div class="item item-divider"></div>
  67. <textarea rows="6" class="workflow-desc" ng-model="template.description" placeholder="可以写一些该流程的介绍(选填)"></textarea>
  68. <div class="item item-divider"></div>
  69. <ion-item class="item item-icon-right item-text-wrap" ng-click="select_cc_or_permission('cc')">
  70. 抄送人
  71. <label class="label-right-text item-note">{{template.cc.length}}人</label>
  72. <i class="icon ion-chevron-right icon-accessory"></i>
  73. </ion-item>
  74. <div class="desctext ">当流程审批完时,抄送给他们。适用于人事或财务等,虽不参与审批,但须处理相关事项。<br/><br/><br/></div>
  75. <ion-item class="item item-icon-right item-text-wrap" ng-click="select_cc_or_permission('permission')">
  76. 谁能使用
  77. <span class=" item-note" ng-repeat="user in template.permission.users">{{user.username}}{{$last ? '' : '、'}}</span>
  78. <label class="label-right-text item-note" ng-if="template.permission.all">全部成员</label>
  79. <i class="icon ion-chevron-right icon-accessory"></i>
  80. </ion-item>
  81. <div class="desctext">公司哪些部门,可以申请该流程</div>
  82. </ion-slide>
  83. </ion-slide-box>
  84. <!-- <div style=" width:50px; height:50px; background-color:#F00; border-radius:25px;">
  85. <span style="height:50px; line-height:50px; display:block; color:#FFF; text-align:center">4</span>
  86. </div> -->
  87. </ion-content>
  88. </ion-view>