flowchart.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <meta http-equiv="Pragma" content="no-cache" />
  6. <meta http-equiv="Cache-Control" content="no-cache" />
  7. <meta http-equiv="Expires" content="0" />
  8. <title>流程管理</title>
  9. <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
  10. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  11. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  12. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  13. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  14. <script>document.write("<link href='css/flowchart.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  15. <style>
  16. .loading {
  17. background: url(../../AFrontEnd/css/icons/bgMask.png) center center repeat;
  18. position: fixed;
  19. top: 0;
  20. left: 0;
  21. z-index: 800;
  22. width: 100%;
  23. height: 100%;
  24. }
  25. .loading-msg {
  26. width: 400px;
  27. position: fixed;
  28. top: 40%;
  29. left: 50%;
  30. transform: translate(-50%,-50%);
  31. color: white;
  32. text-align: center;
  33. }
  34. .spinner {
  35. margin: 20px auto 0;
  36. width: 150px;
  37. text-align: center;
  38. }
  39. .spinner > div {
  40. width: 30px;
  41. height: 30px;
  42. background-color: white;
  43. border-radius: 100%;
  44. display: inline-block;
  45. animation: bouncedelay 1.4s infinite ease-in-out;
  46. animation-fill-mode: both;
  47. }
  48. .spinner .bounce1 {
  49. animation-delay: -0.32s;
  50. }
  51. .spinner .bounce2 {
  52. animation-delay: -0.16s;
  53. }
  54. @keyframes bouncedelay {
  55. 0%, 80%, 100% {
  56. transform: scale(0.0);
  57. }
  58. 40% {
  59. transform: scale(1.0);
  60. }
  61. }
  62. </style>
  63. </head>
  64. <body ng-controller="flowchartCtrl as ctl" ng-cloak>
  65. <div class="loading" ng-if="ctl.loading">
  66. <div class="loading-msg">
  67. <h3>数据加载中,请等待</h3>
  68. <div class="spinner">
  69. <div class="bounce1"></div>
  70. <div class="bounce2"></div>
  71. <div class="bounce3"></div>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="sp-page sp-mt-15">
  76. <div class="sp-col-20" style="width:220px;">
  77. <div class="sp-page-title">流程管理</div>
  78. </div>
  79. <div class="sp-col-50">
  80. <div class="sp-page-col sp-ml-30 sp-color-blue">
  81. <span class="sp-lh-26">
  82. <span ng-bind="ctl.active.CNAME"></span>(<span ng-bind="ctl.flowData.length"></span>项)
  83. </span>
  84. </div>
  85. <div class="sp-page-col sp-ml-30">
  86. <input type="text" class="sp-input" placeholder="请输入关键字" ng-model="ctl.search_keyword" />
  87. </div>
  88. <div class="sp-page-col sp-ml-10" style="margin-top:6px;">
  89. <span class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSearch()">搜索</span>
  90. </div>
  91. </div>
  92. <div class="sp-col-20 sp-pull-right sp-text-right">
  93. <span class="sp-btn-blue-outline sp-btn-radius" ng-click="ctl.openFlowLayer()"><i class="icon-plus-1 sp-mr-5"></i>新 建</span>
  94. <span class="sp-btn-blue-outline sp-btn-radius" ng-click="ctl.openSortFlow()"><i class="fa fa-sort-alpha-asc sp-mr-5"></i>排 序</span>
  95. </div>
  96. </div>
  97. <div class="sp-msg-left">
  98. <!-- <div class="sp-msg-left-top sp-color-black-dark">
  99. <i class="icon-flow-tree sp-mr-5"></i>流程管理
  100. </div> -->
  101. <div class="sp-page-pad">
  102. <div class="sp-msg-left-bottom">
  103. <div class="sp-page">
  104. <select ng-model="ctl.unit" ng-change="ctl.changeUnit()" class="sp-select">
  105. <option ng-repeat="item in ctl.unitList" ng-init="ctl.unit=ctl.unitList[0].CODE" value="{{item.CODE}}" ng-bind="item.SECTION"></option>
  106. </select>
  107. </div>
  108. <div class="sp-lh-20 sp-text-right sp-mt-10 sp-mb-10">
  109. <i class="icon-list-add" ng-click="ctl.openLayerFlowType()" title="新增类别" style="cursor: pointer; padding-right: 5px;"></i>
  110. <i class="fa fa-sort-alpha-asc" ng-click="ctl.openSortType()" title="排序" style="cursor: pointer;"></i>
  111. </div>
  112. <div class="sp-page" id="flowTypePart" style="overflow: auto;">
  113. <div class="sp-msg-left-lh" ng-click="ctl.getMsgData(0,0,'全部流程')">
  114. <div class="sp-col-80"><i class="fa fa-list-ul"></i>全部流程</div>
  115. <div class="sp-col-20"></div>
  116. </div>
  117. <div class="sp-msg-left-lh" ng-repeat="item in ctl.flowType_left" ng-click="ctl.getMsgData($index+1,item.PKID,item.CNAME)">
  118. <div class="sp-col-80">
  119. <i class="icon-folder" ng-if="item.PKID!='withDelete'"></i><i class="fa fa-trash sp-fs-15" ng-if="item.PKID=='withDelete'"></i>
  120. <span ng-bind="item.CNAME"></span>
  121. </div>
  122. <div class="sp-col-20" ng-if="item.PKID!='withDelete'"><i class="fa fa-edit" ng-click="ctl.editFlowType(item)"></i><i class="fa fa-trash" ng-click="ctl.delFlowType(item)" style="padding-right: 0;"></i></div>
  123. <div class="sp-col-20" ng-if="item.PKID=='withDelete'"></div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="sp-msg-right">
  130. <div class="sp-page-pad" style="padding: 0 10px;">
  131. <div class="row">
  132. <div class="col-lg-6" ng-repeat="item in ctl.flowData_search">
  133. <div class="ibox float-e-margins">
  134. <div class="ibox-content">
  135. <div class="row">
  136. <div class="flow-col-left sp-text-center">
  137. <div class="sp-page sp-mt-20">
  138. <div class="flow-radius" ng-style="{'background-color':item.color}" ng-bind="item.firstname"></div>
  139. </div>
  140. <div class="sp-lh-26" style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" title="{{item.CNAME}}" ng-bind="item.CNAME"></div>
  141. <div class="ng-hide warningIcon" ng-show="item.errorData.length!=0" title="流程存在问题"></div>
  142. </div>
  143. <div class="flow-col-right">
  144. <div class="flow-col-right-up">
  145. <div class="sp-page sp-mt-10">
  146. <div class="right-l">
  147. <span class="sp-lh-20">【编号】</span>
  148. </div>
  149. <div class="right-r" style="margin-top: 2px;">
  150. <div class="sp-lh-20">
  151. <span ng-if="item.CODETABLE!=''&&item.CODECOLUMN!=''">
  152. <span ng-bind="item.CODETABLECAPTION+' - '+item.CODECOLUMNCAPTION" ng-click="ctl.editFlow(item)"></span>
  153. </span>
  154. <span ng-if="item.CODETABLE==''||item.CODECOLUMN==''" ng-click="ctl.editFlow(item)" class="sp-color-gray">点击此处添加编号</span>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="sp-page">
  159. <div class="right-l">
  160. <span class="sp-lh-16">
  161. 【视图】
  162. <!-- <i class="fa fa-plus sp-color-gray sp-cursor-pointer" title="新建视图" ng-click="ctl.goTableFormDesign(item,'add')"></i>-->
  163. </span>
  164. </div>
  165. <div class="right-r">
  166. <div class="sp-lh-20" style="height: 50px;overflow: auto;">
  167. <span ng-if="item.FORMEDITS.length>0" ng-repeat="item2 in item.FORMEDITS" ng-bind="item2.CNAME" ng-click="ctl.goTableFormDesign(item2,'edit')"></span>
  168. <span ng-if="item.FORMEDITS.length==0" ng-click="ctl.goTableFormDesign(item,'add')" class="sp-color-gray">点击此处创建新视图</span>
  169. </div>
  170. </div>
  171. </div>
  172. <div class="sp-page">
  173. <div class="right-l" style="width:120px;">
  174. <span class="sp-lh-20">【流程 <span ng-bind="item.FLOWID"></span>】</span>
  175. </div>
  176. <div class="right-r" style="margin-top: 2px; width: calc(100% - 120px);">
  177. <div class="sp-lh-20">
  178. <span ng-if="item.FLOWS.length>0" ng-repeat="item2 in item.FLOWS" ng-bind="item.FLOWCNAME" ng-click="ctl.goFlowChartDesign(item2,'edit')"></span>
  179. <span ng-if="item.FLOWS.length==0" ng-click="ctl.goFlowChartDesign(item,'add')" class="sp-color-gray">点击此处创建新流程</span>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="flow-col-right-bottom">
  185. <i class="fa fa-copy sp-color-gray sp-cursor-pointer sp-pr-5" ng-if="ctl.active.TYPE!='withDelete'" ng-click="ctl.openCopyFlow(item)" title="另存流程"></i>
  186. <i class="fa fa-pencil sp-color-gray sp-cursor-pointer sp-pr-5" ng-if="ctl.active.TYPE!='withDelete'" ng-click="ctl.editFlow(item)" title="更新流程"></i>
  187. <i class="fa fa-trash sp-color-gray sp-cursor-pointer" ng-if="ctl.active.TYPE!='withDelete'" ng-click="ctl.delFlow(item)" title="删除流程"></i>
  188. <!--删除流程回收中的-->
  189. <i class="fa fa-rotate-left sp-color-gray sp-cursor-pointer sp-pr-5" ng-if="ctl.active.TYPE=='withDelete'" ng-click="ctl.restoreFlowWithDelete(item)" title="还原流程"></i>
  190. <i class="fa fa-trash sp-color-gray sp-cursor-pointer" ng-if="ctl.active.TYPE=='withDelete'" ng-click="ctl.delFlowWithDelete(item)" title="删除流程"></i>
  191. <!--删除流程回收中的-->
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="sp-layer" data-title="流程类别" id="layer_addFlowType" style="width: 500px;">
  202. <div class="sp-layer-body">
  203. <table class="sp-grid-job">
  204. <tbody>
  205. <tr>
  206. <td style="width: 100px;">类别名称</td>
  207. <td>
  208. <input type="text" class="sp-input" ng-model="ctl.addflow.cname" sp-required />
  209. </td>
  210. </tr>
  211. <tr>
  212. <td>有无关联项目</td>
  213. <td>
  214. <select ng-model="ctl.addflow.ctype">
  215. <option value="WITHNO">无关联项目</option>
  216. <option value="WITHPRJ">有关联项目</option>
  217. </select>
  218. </td>
  219. </tr>
  220. </tbody>
  221. </table>
  222. <div class="sp-page sp-text-center sp-mt-20">
  223. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSubmitFlowType()">
  224. <i class="fa fa-check sp-mr-5"></i>提 交</button>
  225. <button class="sp-btn-default sp-btn-radius" ng-click="ctl.btnCancelFlowType()">
  226. <i class="fa fa-close sp-mr-5"></i>取 消</button>
  227. </div>
  228. </div>
  229. </div>
  230. <div class="sp-layer" data-title="类别排序" id="layer_sortFlowType" style="width: 500px;">
  231. <div class="sp-layer-body" style=" height: 200px;">
  232. <div class="sp-lh-20" ng-repeat="item in ctl.flowType">
  233. <div class="sp-col-60"><i class="icon-folder sp-pr-5 sp-color-gray"></i><span ng-bind="item.CNAME"></span></div>
  234. <div class="sp-col-40 sp-text-right">
  235. <button class="sp-btn-gray-outline sp-btn-min sp-btn-radius" ng-click="ctl.itemSortup(item,$index)" ng-disabled="$index==0" title="上移">
  236. <i class="fa fa-arrow-up sp-color-gray sp-mr-5"></i>上 移
  237. </button>
  238. <button class="sp-btn-gray-outline sp-btn-min sp-btn-radius" ng-click="ctl.itemSortdown(item,$index)" ng-disabled="$index==ctl.flowType.length-1" title="下移">
  239. <i class="fa fa-arrow-down sp-color-gray sp-mr-5"></i>下 移
  240. </button>
  241. <!-- <i ng-click="ctl.itemSortup(item,$index)" ng-if="$index!=0" class="fa fa-arrow-up sp-color-blue" title="上移" style="cursor: pointer; width:20px;"></i>
  242. <i ng-click="ctl.itemSortdown(item,$index)" ng-if="$index!=ctl.flowType.length-1" class="fa fa-arrow-down sp-color-blue" title="下移" style="cursor: pointer; width:20px;"></i> -->
  243. </div>
  244. </div>
  245. </div>
  246. <div class="sp-layer-foot">
  247. <button class="sp-dialog-btnCancle" onclick="sp.layerhide()"><i class="fa fa-close sp-mr-5"></i>关 闭</button>
  248. </div>
  249. </div>
  250. <!-- 流程设置-具体的-start -->
  251. <div class="sp-layer" id="layer_addFlow" style="width: 500px;">
  252. <div class="sp-layer-head" style="background:#2176d6">
  253. <div class="sp-page sp-text-center sp-font16">
  254. <span ng-bind="ctl.info.layertitle"></span>
  255. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  256. ×
  257. </div>
  258. </div>
  259. </div>
  260. <div class="sp-layer-body">
  261. <table class="sp-grid-job">
  262. <tbody>
  263. <tr>
  264. <td colspan="2" style="width:100px;">流程类别</td>
  265. <td>
  266. <select ng-model="ctl.info.type">
  267. <option ng-repeat="item in ctl.flowType" value="{{item.PKID}}" ng-bind="item.CNAME"></option>
  268. </select>
  269. </td>
  270. </tr>
  271. <tr>
  272. <td colspan="2" style="width:100px;">流程标识</td>
  273. <td>
  274. <input type="text" class="sp-input" ng-model="ctl.info.ckey" sp-required />
  275. </td>
  276. </tr>
  277. <tr>
  278. <td colspan="2">流程名称</td>
  279. <td>
  280. <input type="text" class="sp-input" ng-model="ctl.info.cname" sp-required />
  281. </td>
  282. </tr>
  283. <tr>
  284. <td colspan="2">流程时限(天)</td>
  285. <td><input type="text" ng-model="ctl.info.timelimit" sp-required /></td>
  286. </tr>
  287. <tr>
  288. <td rowspan="2">编号设置</td>
  289. <td>关联表</td>
  290. <td>
  291. <select ng-model="ctl.info.codetable" ng-change="ctl.changeCodeTable()" >
  292. <option value="">[空]</option>
  293. <option ng-repeat="item in ctl.codeTableOption" value="{{item.BILLKEY}}" ng-selected="item.BILLKEY==ctl.info.codetable" ng-bind="item.CNAME"></option>
  294. </select>
  295. </td>
  296. </tr>
  297. <tr>
  298. <td>关联列</td>
  299. <td>
  300. <select ng-model="ctl.info.codecolumn">
  301. <option value="">[空]</option>
  302. <option ng-repeat="item in ctl.codeColumnOption" value="{{item.CODE}}" ng-selected="item.CODE==ctl.info.codecolumn" ng-bind="item.CNAME"></option>
  303. </select>
  304. </td>
  305. </tr>
  306. <tr>
  307. <td colspan="2">备注说明</td>
  308. <td>
  309. <textarea cols="4" ng-model="ctl.info.explain">
  310. </textarea>
  311. </td>
  312. </tr>
  313. </tbody>
  314. </table>
  315. <div class="sp-page sp-text-center sp-mt-20">
  316. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSubmitFlow()" ng-disabled="ctl.SubmitFlowFlag">
  317. <i class="fa fa-check sp-mr-5"></i>提 交</button>
  318. <button class="sp-btn-default sp-btn-radius" ng-click="ctl.btnCancelFlow()">
  319. <i class="fa fa-close sp-mr-5"></i>取 消</button>
  320. </div>
  321. </div>
  322. </div>
  323. <div class="sp-layer" data-title="流程排序" id="layer_sortFlow" style="width: 500px;">
  324. <div class="sp-layer-body" style=" height: 200px;">
  325. <div class="sp-lh-20" ng-repeat="item in ctl.flowData">
  326. <div class="sp-col-60"><i class="icon-folder sp-pr-5 sp-color-gray"></i><span ng-bind="item.CNAME"></span></div>
  327. <div class="sp-col-40 sp-text-right">
  328. <button class="sp-btn-gray-outline sp-btn-min sp-btn-radius" ng-click="ctl.flowSortup(item,$index)" ng-disabled="$index==0" title="上移">
  329. <i class="fa fa-arrow-up sp-color-gray sp-mr-5"></i>上 移
  330. </button>
  331. <button class="sp-btn-gray-outline sp-btn-min sp-btn-radius" ng-click="ctl.flowSortdown(item,$index)" ng-disabled="$index==ctl.flowData.length-1" title="下移">
  332. <i class="fa fa-arrow-down sp-color-gray sp-mr-5"></i>下 移
  333. </button>
  334. </div>
  335. </div>
  336. </div>
  337. <div class="sp-layer-foot">
  338. <button class="sp-dialog-btnCancle sp-btn-sm" onclick="sp.layerhide()"><i class="fa fa-close sp-mr-5"></i>关 闭</button>
  339. </div>
  340. </div>
  341. <!-- 流程设置-具体的-end -->
  342. <!--流程另存为-->
  343. <div class="sp-layer" id="layer_copyFlow" style="width: 500px;">
  344. <div class="sp-layer-head" style="background:#2176d6">
  345. <div class="sp-page sp-text-center sp-font16">
  346. <span ng-bind="ctl.copy.layertitle"></span>
  347. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  348. ×
  349. </div>
  350. </div>
  351. </div>
  352. <div class="sp-layer-body">
  353. <table class="sp-grid-job">
  354. <tbody>
  355. <tr>
  356. <td style="width:100px;">流程类别</td>
  357. <td>
  358. <select ng-model="ctl.copy.flowkinds">
  359. <option ng-repeat="item in ctl.flowType" value="{{item.PKID}}" ng-bind="item.CNAME"></option>
  360. </select>
  361. </td>
  362. </tr>
  363. <tr>
  364. <td>流程标识</td>
  365. <td>
  366. <input type="text" class="sp-input" ng-model="ctl.copy.ckey" sp-required />
  367. </td>
  368. </tr>
  369. <tr>
  370. <td>流程名称</td>
  371. <td>
  372. <input type="text" class="sp-input" ng-model="ctl.copy.cname" sp-required />
  373. </td>
  374. </tr>
  375. </tbody>
  376. </table>
  377. <div class="sp-page sp-text-center sp-mt-20">
  378. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnCopyFlow()">
  379. <i class="fa fa-check sp-mr-5"></i>提 交</button>
  380. <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide();">
  381. <i class="fa fa-close sp-mr-5"></i>取 消</button>
  382. </div>
  383. </div>
  384. </div>
  385. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  386. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  387. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  388. <script src="../../apiurljs.js"></script>
  389. <script src="../../js/sm4.js"></script>
  390. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');</script>
  391. <script>document.write('<scri' + 'pt src="js/flowchart.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');</script>
  392. <script src="../../AFrontEnd/js/special/spng.js"></script>
  393. <script src="../../AFrontEnd/js/special/spngvld.js"></script>
  394. </body>
  395. </html>