listDone

注入覆盖用:oa.mengtiandairy.com:7070

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/475243/1271567/listDone.js

  1. console.log.apply(void 0, [
  2. '%c[@inject] %coverride http://oa.mengtiandairy.com:7070/seeyon/apps_res/collaboration/js/listDone.js',
  3. 'color: green',
  4. 'color: gray'
  5. ])
  6.  
  7. var toolbar;
  8. var dataType;//数据类型,0:当前数据;1:转储数据
  9. function showFlowChartAJax(_affairId, _contextCaseId, _contextProcessId, _templateId, _contextActivityId, bodyType, showHastenButton) {
  10. //显示流程图
  11. showFlowChart(_contextCaseId, _contextProcessId, _templateId, _contextActivityId, bodyType, showHastenButton);
  12. //发送点击计数ajax请求
  13. callBackendMethod("colManager", "showWFCDiagram", _affairId, "listDone");
  14. }
  15. //显示流程图
  16. function showFlowChart(_contextCaseId, _contextProcessId, _templateId, _contextActivityId, bodyType, showHastenButton) {
  17. var supervisorsId = "";
  18. var isTemplate = false;
  19. var operationId = "";
  20. var senderName = "";
  21. var openType = getA8Top();
  22. if (_templateId && "undefined" != _templateId && "null" != _templateId) {
  23. isTemplate = true;
  24. }
  25. var showHisWorkflow = false;
  26. if (dataType == '1') {
  27. showHisWorkflow = true;
  28. }
  29.  
  30. var options = {
  31. targetWin: getA8Top(),
  32. caseId: _contextCaseId,
  33. processId: _contextProcessId,
  34. isTemplate: isTemplate,
  35. showHastenButton: showHastenButton,
  36. appName: "collaboration",
  37. currentNodeId: _contextActivityId,
  38. isHistoryFlag: showHisWorkflow,
  39. scene: 3,
  40. SPK: 'freeFlow',
  41. NPS: 'default',
  42. canExePrediction: bodyType === '20' && $.ctx.hasPlugin("workflowAdvanced")
  43. }
  44. showDiagram(options);
  45. }
  46.  
  47. function rend(txt, data, r, c, col) {
  48.  
  49.  
  50. var hasDueTime = (data.deadLineDate != null && data.deadLineDate != "" && data.deadLineDate != "0")
  51. || (data.expectedProcessTime != null && data.expectedProcessTime != "" && data.expectedProcessTime != "0");
  52. var isOverdue = data.isCoverTime;
  53.  
  54.  
  55.  
  56. if (col.name === "subject") {
  57. // 标题列加深
  58. txt = "<span class='grid_black titleText'>" + txt + "</span>";
  59. // 如果是代理 ,颜色变成蓝色
  60. if (data.proxy) {
  61. txt = "<span class='color_blue'>" + txt + "</span>";
  62. }
  63. // 加图标
  64. // 重要程度
  65. if (data.importantLevel != "" && data.importantLevel != 1) {
  66. txt = "<span style='float: left;' class='ico16 important" + data.importantLevel + "_16 '></span>" + txt;
  67. }
  68. // 附件
  69. if (data.hasAttsFlag == true) {
  70. txt = txt + "<span class='ico16 affix_16'></span>";
  71. }
  72. // 协同类型
  73. if (data.bodyType != "" && data.bodyType != null && data.bodyType != "10" && data.bodyType != "30" && data.bodyType !== "90") {
  74. txt = txt + "<span class='ico16 office" + data.bodyType + "_16'></span>";
  75. }
  76. // 流程状态
  77. if (data.state != null && data.state != "" && data.state != "0") {
  78. txt = "<span style='float: left;' class='ico16 flow" + data.state + "_16 '></span>" + txt;
  79. }
  80. // 如果设置了处理期限(节点期限),添加超期图标
  81. if (hasDueTime) {
  82. if (isOverdue) {
  83. // 超期图标
  84. txt = txt + "<span class='ico16 extended_red_16'></span>";
  85. } else {
  86. // 未超期图标
  87. txt = txt + "<span class='ico16 extended_blue_16'></span>";
  88. }
  89. }
  90. return txt;
  91. } else if (col.name === "currentNodesInfo") {
  92. if (txt == null) {
  93. txt = "";
  94. }
  95. var showHastenButton = false;
  96. if (data.startMemberId == data.memberId) {
  97. showHastenButton = true;
  98. }
  99. return "<a href='javascript:void(0)' title='" + txt + "' class='noClick' onclick='showFlowChartAJax(\""
  100. + data.affairId + "\",\"" + data.caseId + "\",\"" + data.processId + "\",\"" + data.templeteId + "\",\"" + data.activityId
  101. + "\", \"" + data.bodyType + "\", \"" + showHastenButton + "\")'>" + txt + "</a>";
  102. } else if (col.name === "nodeDeadLineName") {
  103. if (hasDueTime) {
  104. if (isOverdue) {
  105. // 节点超期
  106. var title = $.i18n('collaboration.listDone.nodeIsCoverTime');
  107. txt = "<span class='color_red' title='" + title + "'>" + txt + "</span>";
  108. } else {
  109. // 节点未超期
  110. var title = $.i18n('collaboration.listDone.nodeNotCoverTime');
  111. txt = "<span title='" + title + "'>" + txt + "</span>";
  112. }
  113. }
  114. return txt;
  115. } else if (col.name === 'affairArchiveId') {
  116. if (txt != null) {
  117. return $.i18n('common.yes');
  118. } else {
  119. return $.i18n('common.no');
  120. }
  121. } else if (col.name === "isTrack") {
  122. var v_onclick = "onclick='setTrack(this)'";
  123. var v_style = "";
  124. if (dataType == '1') {// 切换转储数据
  125. v_onclick = "";
  126. v_style = " style=\"color:black;\"";
  127. }
  128. // 添加跟踪的代码
  129. if (txt === null || txt === false) {
  130. return "<a href='javascript:void(0)' class='noClick' " + v_onclick + " objState=" + data.state
  131. + " affairId=" + data.affairId + " summaryId=" + data.summaryId + " trackType=" + data.track
  132. + " senderId=" + data.startMemberId + v_style + ">" + $.i18n('common.no') + "</a>";
  133. } else {
  134. return "<a href='javascript:void(0)' class='noClick' " + v_onclick + " objState=" + data.state
  135. + " affairId=" + data.affairId + " summaryId=" + data.summaryId + " trackType=" + data.track
  136. + " senderId=" + data.startMemberId + v_style + ">" + $.i18n('common.yes') + "</a>";
  137. }
  138. } else if (col.name === "processId") {
  139. return "<a class='ico16 view_log_16 noClick' href='javascript:void(0)' onclick='tempShowDetailLogDialog(\""
  140. + data.summaryId + "\",\"" + data.processId + "\",2)'></a>";
  141. } else if (col.name === "print") {
  142. if (data.print > 0) {
  143. txt = "<span class='font_bold'>" + $.i18n('common.yes') + "</span>";
  144. } else {
  145. txt = "<span class='font_bold'>" + $.i18n('common.no') + "</span>";
  146. }
  147.  
  148. } else {
  149. return txt;
  150. }
  151. return txt;
  152. }
  153.  
  154. function tempShowDetailLogDialog(summaryId, processId, showFlag) {
  155.  
  156. if (dataType == '1') {//转储数据
  157. showDetailLogDialog(summaryId, processId, showFlag, true);
  158. } else {
  159. showDetailLogDialog(summaryId, processId, showFlag, false);
  160. }
  161. }
  162.  
  163. //删除
  164. function deleteCol() {
  165. deleteItems('finish', grid, 'listDone', paramMethod);
  166. }
  167.  
  168. function transmitCol() {
  169. transmitColFromGrid(grid);
  170. }
  171.  
  172. //ajax
  173. function getAffairState(affairId) {
  174. var _state = callBackendMethod("colManager", "getAffairState", affairId);
  175. return _state;
  176. }
  177.  
  178.  
  179. //取回
  180. function takeBack() {
  181. var rows = grid.grid.getSelectRows();
  182. if (rows.length === 0) {
  183. //请选择要取回的协同!
  184. $.alert($.i18n('collaboration.listDone.selectBack'));
  185. return;
  186. }
  187. if (rows.length > 1) {
  188. //只能选择一项协同进行取回!
  189. $.alert($.i18n('collaboration.listDone.selectOneBack'));
  190. return;
  191. }
  192.  
  193.  
  194. if (getAffairState(rows[0].affairId) != '4') {
  195. $.alert($.i18n('collaboration.listDone.tabkeback.state.js'));
  196. $("#listDone").ajaxgridLoad();
  197. return;
  198. }
  199. /**
  200. * 是否允许取回
  201. * 返回值是一个js对象,有以下属性
  202. * canTakeBack 是否允许取回
  203. * state:
  204. * -1表示程序或数据发生异常,不可以取回
  205. * 0表示正常状态,可以取回
  206. * 1表示当前流程已经结束,不可以取回
  207. * 2表示后面节点任务事项已处理完成,不可以取回
  208. * 3表示当前节点触发的子流程已经结束,不可以取回
  209. * 4表示当前节点触发的子流程中已核定通过,不可以取回
  210. * 5表示当前节点是知会节点,不可以取回
  211. * 6表示当前节点为核定节点,不可以取回
  212. * 7表示当前节点为封发节点,不可以取回
  213. * 9表示当前节点触发的子流程中已审核通过,不可以取回
  214. */
  215. var workitemId = rows[0].workitemId;
  216. var processId = rows[0].processId;
  217. var caseId = rows[0].caseId;
  218. var appName = "collaboration";
  219. var nodeId = rows[0].activityId;
  220. var isForm = rows[0].bodyType == '20';
  221.  
  222. //调用工作流接口校验是否能够取回
  223. var validateResult = onBeforeWorkflowOperationValidate(processId, workitemId, nodeId, caseId, "", "collaboration", "takeBack");
  224.  
  225. if (validateResult && !validateResult.pass) {
  226. $.alert(validateResult.msg);
  227. return;
  228. }
  229.  
  230. if (isForm) {
  231. appName = "form";
  232. }
  233.  
  234.  
  235. var isClick = false;//是否点击
  236. var dialog = $.dialog({
  237. url: _ctxPath + "/collaboration/collaboration.do?method=showTakebackConfirm",
  238. width: 400,
  239. height: 160,
  240. targetWindow: getCtpTop(),
  241. title: $.i18n('common.system.hint.label'),
  242. buttons: [{
  243. text: $.i18n('common.button.ok.label'),
  244. handler: function () {
  245. if (!isClick) {
  246. isClick = true;
  247. var rv = dialog.getReturnValue();
  248. if (rv) {
  249.  
  250. var ajaxSubmitFunc = function () {
  251. var saveOpinion = (rv != "1");
  252. var takeBackBean = new Object();
  253. takeBackBean["affairId"] = rows[0].affairId;
  254. takeBackBean["isSaveOpinion"] = saveOpinion;
  255. callBackendMethod("colManager", "transTakeBack", takeBackBean, {
  256.  
  257. success: function (msg) {
  258. if (msg == null || msg == "") {
  259. $("#summary").attr("src", "");
  260. $(".slideDownBtn").trigger("click");
  261. $("#listDone").ajaxgridLoad();
  262. //回退成功后,打开该回退协同处理页面
  263. var _url = _ctxPath + "/collaboration/collaboration.do?method=summary&openFrom=listPending&affairId=" + rows[0].affairId + (window.CsrfGuard ? CsrfGuard.getUrlSurffix() : "");
  264. window.open(_url);
  265. } else {
  266. $.alert(msg);
  267. }
  268. //撤销后关闭,子页面
  269. try { closeOpenMultyWindow(rows[0].affairId); } catch (e) { };
  270. dialog.close();
  271. }
  272.  
  273. });
  274. }
  275.  
  276. //js事件接口
  277. var idMap = {
  278. "summaryID": rows[0].summaryId,
  279. "affairID": rows[0].affairId
  280. }
  281. var sendDevelop = $.ctp.trigger('beforeDoneTakeBack', idMap);
  282. if (!sendDevelop) {
  283. //$.alert($.i18n('collaboration.page.js.third.error.alert.js'));
  284. return;
  285. }
  286.  
  287. if (!executeWorkflowBeforeEvent("BeforeTakeBack", rows[0].summaryId, rows[0].affairId, processId, processId, nodeId, rows[0].formRecordid, appName)) {
  288. releaseWorkflowByAction(processId, $.ctx.CurrentUser.id, 13);
  289. dialog.close();
  290. return;
  291. }
  292. //V50_SP2_NC业务集成插件_001_表单开发高级
  293. beforeSubmit(rows[0].affairId, "takeback", "", dialog, ajaxSubmitFunc, function () {
  294. releaseWorkflowByAction(processId, $.ctx.CurrentUser.id, 13);
  295. dialog.close();
  296. });
  297.  
  298. }
  299.  
  300. }
  301.  
  302. }
  303. }, {
  304. text: $.i18n('common.button.cancel.label'),
  305. handler: function () {
  306. releaseWorkflowByAction(processId, $.ctx.CurrentUser.id, 13);
  307. dialog.close();
  308. }
  309. }],
  310. closeParam: {
  311. show: true,
  312. handler: function () {
  313. releaseWorkflowByAction(processId, $.ctx.CurrentUser.id, 13);
  314. }
  315. }
  316. });
  317. }
  318.  
  319. //点击事件
  320. function dbclickRow(data, rowIndex, colIndex) {
  321. if (!isAffairValid(data.affairId)) {
  322. $("#listDone").ajaxgridLoad();
  323. return;
  324. }
  325. var url = _ctxPath + "/collaboration/collaboration.do?method=summary&openFrom=listDone&affairId=" + data.affairId + "&dumpData=" + dataType;
  326. var title = data.subject;
  327. doubleClick(url, escapeStringToHTML(title));
  328. grid.grid.resizeGridUpDown('down');
  329. //页面底部说明加载
  330. $('#summary').attr("src", "listDesc.do?method=listDesc&type=listDone&size=" + grid.p.total + "&r=" + Math.random() + CsrfGuard.getUrlSurffix());
  331. }
  332.  
  333.  
  334. var zzGzr = '';
  335. var grid = '';
  336. var isFirstClickRow = true;
  337. var searchobj;
  338. var showPigonholeBtn = false;
  339. var layoutObj = null;
  340. $(document).ready(function () {
  341. layoutObj = new MxtLayout({
  342. 'id': 'layout',
  343. 'northArea': {
  344. 'id': 'north',
  345. 'height': 40,
  346. 'sprit': false,
  347. 'border': false
  348. },
  349. 'centerArea': {
  350. 'id': 'center',
  351. 'border': false,
  352. 'minHeight': 20
  353. }
  354. });
  355. var submenu = new Array();
  356. //判断是否有新建协同的资源权限,如果没有则屏蔽转发协同
  357. if ($.ctx.resources.contains('F01_newColl')) {
  358. //协同
  359. submenu.push({ name: $.i18n('common.toolbar.transmit.col.label'), click: transmitCol });
  360. };
  361. //判断是否有转发邮件的资源权限,如果没有则屏蔽转发协同
  362. if ($.ctx.resources.contains('F12_mailcreate')) {
  363. //邮件
  364. if (emailShow) {
  365. submenu.push({ name: $.i18n('common.toolbar.transmit.mail.label'), click: transmitMail });
  366. }
  367. };
  368. var toolbarArray = new Array();
  369. //转发
  370. toolbarArray.push({ id: "transmit", name: $.i18n('common.toolbar.transmit.label'), className: "ico16 forwarding_16", subMenu: submenu });
  371. //归档
  372. if (isPigeonholeBtn() && hasDoc == "true") {
  373. showPigonholeBtn = true;
  374. toolbarArray.push({ id: "pigeonhole", name: $.i18n('common.toolbar.pigeonhole.label'), className: "ico16 filing_16", click: function () { doPigeonhole("done", grid, "listDone"); } });
  375. }
  376. //删除
  377. if (canDel == "true") {
  378. toolbarArray.push({ id: "delete", name: $.i18n('common.toolbar.delete.label'), className: "ico16 del_16", click: deleteCol });
  379. }
  380. //取回
  381. toolbarArray.push({ id: "takeBack", name: $.i18n('common.toolbar.takeBack.label'), className: "ico16 retrieve_16", click: takeBack });
  382.  
  383. //撤销回退记录 collaboration.workflow.label.stepback
  384. toolbarArray.push({ id: "stepbackRecord", name: $.i18n('collaboration.workflow.label.repealStepback'), className: "ico16 toback_16", click: function () { listSBRecord(showPigonholeBtn, hasDumpData); } });
  385.  
  386. //批量打印
  387. //toolbarArray.push({id: "batchPrint", name: $.i18n('common.toolbar.batch.print.label'), className:"ico16 print_16", click:batchPrint});
  388. //工作交接
  389. if (showHandoverButton == "true") {
  390. var submenu = new Array();
  391. //协同
  392. submenu.push({ name: $.i18n("handover.button.to.js"), click: handoverToMe });
  393. submenu.push({ name: $.i18n("handover.button.from.js"), click: handoverFromMe });
  394. submenu.push({ name: $.i18n("collaboration.other.grab"), click: otherGrab });
  395. if (isV5Member) {
  396. toolbarArray.push({ id: "handover", name: $.i18n("collaboration.other.label"), subMenu: submenu });
  397. }
  398. }
  399. if (isVJMember) {//他人事项,VJOIN屏蔽交接相关的2个,保留竞争的一个
  400. var submenu = new Array();
  401. submenu.push({ name: $.i18n("collaboration.other.grab"), click: otherGrab });
  402. toolbarArray.push({ id: "handover", name: $.i18n("collaboration.other.label"), subMenu: submenu });
  403. }
  404.  
  405. //"只列出智能处理"
  406. if (hasAIPlugin == "true") {
  407. var isCheckAI = false;
  408. if ("true" == showAIProcessing) {
  409. isCheckAI = true;
  410. }
  411. toolbarArray.push({ id: "aiProcessingRecord", type: "checkbox", checked: isCheckAI, text: $.i18n('collaboration.portal.listDone.aiProcessingRecord'), value: "1", click: aiProcessing });
  412. }
  413.  
  414. //同一流程只显示最后一条
  415. toolbarArray.push({ id: "deduplication", type: "checkbox", checked: false, text: $.i18n('collaboration.portal.listDone.isDeduplication'), value: "1", click: debupCol });
  416. if (hasDumpData == "true") {
  417. //当前数据
  418. toolbarArray.push({ id: "currentData", name: $.i18n('collaboration.portal.listDone.currentData.js'), className: "ico16 view_switch_16", click: currentData });
  419. //转储数据
  420. toolbarArray.push({ id: "dumpData", name: $.i18n('collaboration.portal.listDone.dumpData.js'), className: "ico16 view_switch_16", click: dumpData });
  421. }
  422. //toolbar扩展
  423. for (var i = 0; i < addinMenus.length; i++) {
  424. toolbarArray.push(addinMenus[i]);
  425. }
  426.  
  427. //工具栏
  428. toolbar = $("#toolbars").toolbar({
  429. toolbar: toolbarArray
  430. });
  431.  
  432. if (hasDumpData == "true") {
  433. //设置按钮样式
  434. document.getElementById("currentData_a").style.display = "none";
  435. }
  436. //搜索框
  437. var topSearchSize = 7;
  438. if ($.browser.msie && $.browser.version == '6.0') {
  439. topSearchSize = 10;
  440. }
  441.  
  442. //查询条件
  443. var condition = new Array();
  444. //标题
  445. condition.push({ id: 'title', name: 'title', type: 'input', text: $.i18n("common.subject.label"), value: 'subject', maxLength: 100 });
  446. //模板名称
  447. condition.push({ id: 'templateNameSearch', name: 'templateName', type: 'input', text: $.i18n("common.template.label"), value: 'templateName' });
  448. //重要程度
  449. condition.push({
  450. id: 'importent', name: 'importent', type: 'select', text: $.i18n("common.importance.label"), value: 'importantLevel',
  451. items: [{
  452. text: $.i18n("common.importance.putong"),//普通
  453. value: '1'
  454. }, {
  455. text: $.i18n("common.importance.zhongyao"),//重要
  456. value: '2'
  457. }, {
  458. text: $.i18n("common.importance.feichangzhongyao"),//非常重要
  459. value: '3'
  460. }]
  461. });
  462. //发起人
  463. condition.push({ id: 'spender', name: 'spender', type: 'input', text: $.i18n("common.sender.label"), value: 'startMemberName' });
  464. //addby libing 上一处理人
  465. condition.push({ id: 'preApproverNameSearch', name: 'preApproverName', type: 'input', text: $.i18n("cannel.display.column.preApprover.label"), value: 'preApproverName' });
  466. //发起时间
  467. condition.push({ id: 'datetime', name: 'datetime', type: 'datemulti', text: $.i18n("common.date.sendtime.label"), value: 'createDate', ifFormat: '%Y-%m-%d', dateTime: false });
  468. //处理时间
  469. condition.push({ id: 'dealtime', name: 'dealtime', type: 'datemulti', text: $.i18n("common.date.donedate.label"), value: 'dealDate', ifFormat: '%Y-%m-%d', dateTime: false });
  470. //流程状态
  471. condition.push({
  472. id: 'status', name: 'status', type: 'select', text: $.i18n("common.flow.state.label"), value: 'workflowState',
  473. items: [{
  474. text: $.i18n("common.unend.label"),//未结束
  475. value: '0'
  476. }, {
  477. text: $.i18n("common.finish.label"),//已结束
  478. value: '1'
  479. }, {
  480. text: $.i18n("collaboration.eventsource.category.terminate"),//已终止
  481. value: '2'
  482. }]
  483. });
  484.  
  485. //是否超期:节点超期都查询出来。
  486. condition.push({
  487. id: 'isOverdueSearch',
  488. name: 'isOverdue',
  489. type: 'select',
  490. text: $.i18n('collaboration.condition.affairOverdue'), //节点超期
  491. value: 'isOverdue',
  492. items: [{
  493. text: $.i18n('common.yes'),
  494. value: '1'
  495. }, {
  496. text: $.i18n('common.no'),
  497. value: '0'
  498. }]
  499. });
  500. if (hasDoc == "true") {
  501. //是否归档
  502. condition.push({
  503. id: 'affairArchiveId',
  504. name: 'affairArchiveId',
  505. type: 'select',
  506. text: $.i18n("common.pigeonhole.trueOrNot"), //是否归档
  507. value: 'affairArchiveId',
  508. items: [{
  509. text: $.i18n('common.yes'),
  510. value: '1'
  511. }, {
  512. text: $.i18n('common.no'),
  513. value: '0'
  514. }]
  515. });
  516. }
  517.  
  518. var right = 85;
  519. //国际化下 查询区域的位置需要进行动态设置
  520. if (typeof (__getCurSysLang) !== "undefined") {
  521. var lang = __getCurSysLang();
  522. if (lang !== "zh_CN" && lang != "zh_TW") {
  523. right = 110;
  524. }
  525. }
  526. searchobj = $.searchCondition({
  527. top: topSearchSize,
  528. right: right,
  529. searchHandler: function () {//chenxd
  530.  
  531. var val = searchobj.g.getReturnValue();
  532. if (val !== null) {
  533. $("#listDone").ajaxgridLoad(advanceQueryObj());
  534. var _summarySrc = $('#summary').attr("src");
  535. if (_summarySrc.indexOf("listDesc") != -1) {
  536. setTimeout(function () {
  537. $('#summary').attr("src", "listDesc.do?method=listDesc&type=listDone&size=" + grid.p.total + "&r=" + Math.random() + CsrfGuard.getUrlSurffix());
  538. }, 1000);
  539. }
  540. }
  541. },
  542. conditions: condition
  543. });
  544. if (hasAIPlugin == "true" && openFrom == "aiProcess") {
  545. searchobj.g.setCondition('dealtime', beginTime, endTime);
  546. }
  547. var _colModel = [{
  548. display: 'id',
  549. name: 'id',
  550. width: 'smallest',
  551. type: 'checkbox',
  552. align: 'center'
  553. }, {
  554. display: $.i18n("common.subject.label"),//标题
  555. name: 'subject',
  556. sortable: true,
  557. width: 'big'
  558. }, {
  559. display: $.i18n("common.sender.label"),//发起人
  560. name: 'startMemberName',
  561. sortable: true,
  562. width: 'small',
  563. align: 'center'
  564. }, {
  565. display: $.i18n("cannel.display.column.preApprover.label"), // 上一处理人
  566. name: 'preApproverName',
  567. sortable: true,
  568. width: 'small',
  569. align: 'center'
  570. }, {
  571. display: $.i18n("common.date.sendtime.label"),//发起时间
  572. name: 'createDate',
  573. sortable: true,
  574. width: 'medium'
  575. }, {
  576. display: $.i18n("common.date.donedate.label"),//处理时间
  577. name: 'dealTime',
  578. sortable: true,
  579. width: 'medium'
  580. }, {
  581. display: $.i18n("collaboration.list.currentNodesInfo.label"),//当前处理人
  582. name: 'currentNodesInfo',
  583. sortable: true,
  584. width: 'medium',
  585. align: 'center'
  586. }, {
  587. display: $.i18n("common.workflow.deadline.date"),//处理期限(节点期限)
  588. name: 'nodeDeadLineName',
  589. sortable: true,
  590. width: 'medium'
  591. }/*,{
  592. display: $.i18n("cannel.display.column.print.label"),//是否打印
  593. name: 'print',
  594. sortable : true,
  595. width: 'medium'
  596. }*/, {
  597. display: $.i18n("collaboration.track.state"),//跟踪状态
  598. name: 'isTrack',
  599. sortable: true,
  600. width: 'small'
  601. }, {
  602. display: $.i18n("common.workflow.log.label"),//流程日志
  603. name: 'processId',
  604. width: 'small'
  605. }];
  606. if (hasDoc == "true") {
  607. _colModel.splice(8, 0, {
  608. display: $.i18n("common.pigeonhole.trueOrNot"),//是否归档
  609. name: 'affairArchiveId',
  610. sortable: true,
  611. width: 'small',
  612. align: 'center'
  613. });
  614. }
  615. // @inject-start: 添加列
  616. _colModel.splice(2, 0, ...window.colappend)
  617. //表格加载
  618. grid = $('#listDone').ajaxgrid({
  619. colModel: _colModel,
  620. click: dbclickRow,
  621. render: rend,
  622. height: 200,
  623. noTotal: isShowTotal == "0" ? true : false,
  624. gridType: 'autoGrid',
  625. showTableToggleBtn: true,
  626. parentId: 'center',
  627. vChange: true,
  628. vChangeParam: {
  629. overflow: "hidden",
  630. autoResize: false //表格下方是否自动显示
  631. },
  632. isHaveIframe: true,
  633. slideToggleBtn: true,
  634. managerName: "colManager",
  635. managerMethod: "getDoneList"
  636. });
  637. //页面底部说明加载
  638. $('#summary').attr("src", "listDesc.do?method=listDesc&type=listDone&size=" + grid.p.total + "&r=" + Math.random() + CsrfGuard.getUrlSurffix());
  639.  
  640.  
  641. //跟踪弹出框js
  642. $("#gz").change(function () {
  643. var value = $(this).val();
  644. var _gz_ren = $("#gz_ren");
  645. switch (value) {
  646. case "0":
  647. _gz_ren.hide();
  648. break;
  649. case "1":
  650. _gz_ren.show();
  651. break;
  652. }
  653. });
  654.  
  655. $("#radio4").bind('click', function () {
  656. $.selectPeople({
  657. type: 'selectPeople'
  658. , panels: 'Department,Team,Post,Level,Role,Outworker,FormField'
  659. , selectType: 'FormField,Department,Team,Post,Level,Role,Member'
  660. , text: $.i18n('common.default.selectPeople.value')
  661. , showFlowTypeRadio: true
  662. , returnValueNeedType: false
  663. , params: {
  664. value: zzGzr
  665. }
  666. , targetWindow: getCtpTop()
  667. , callback: function (res) {
  668. if (res && res.obj && res.obj.length > 0) {
  669. $("#zdgzry").val(res.value);
  670. } else {
  671.  
  672. }
  673. }
  674. });
  675. });
  676. });
  677.  
  678. //智能处理记录
  679. function aiProcessing() {
  680. $("#listDone").ajaxgridLoad(advanceQueryObj());
  681. }
  682. //撤销记录
  683. function listRepealRecord(showPigonHoleBtn, hasDumpData) {
  684. var url = _ctxPath
  685. + "/collaboration/collaboration.do?method=listRecord&app=1&record=repealRecord&listDone=listDone&showPigonHoleBtn=" + showPigonHoleBtn + "&hasDumpData=" + hasDumpData + (window.CsrfGuard ? CsrfGuard.getUrlSurffix() : "");
  686. if (_srcFrom == "bizconfig") {
  687. url += "&srcFrom=bizconfig" + "&paramTemplateIds=" + _paramTemplateIds;
  688. }
  689. window.location.href = url;
  690. }
  691. //回退记录
  692. function listSBRecord(showPigonHoleBtn, hasDumpData) {
  693. var url = _ctxPath
  694. + "/collaboration/collaboration.do?method=listRecord&app=1&record=stepBackRecord&listDone=listDone&showPigonHoleBtn=" + showPigonHoleBtn + "&hasDumpData=" + hasDumpData + (window.CsrfGuard ? CsrfGuard.getUrlSurffix() : "");
  695. if (_srcFrom == "bizconfig") {
  696. url += "&srcFrom=bizconfig" + "&paramTemplateIds=" + _paramTemplateIds;
  697. }
  698. window.location.href = url;
  699. }
  700.  
  701. function advanceQueryObj() {
  702. var param = new Object();
  703. var choose = $('#' + searchobj.p.id).find("option:selected").val();
  704. if (_paramTemplateIds) {
  705. param.templeteIds = $.trim(_paramTemplateIds);
  706. }
  707. // 应该没有走这个逻辑的机会,先注释
  708. if (advanceSearchFlag) {
  709. param.subject = $("#subject").val();
  710. param.importantLevel = $("#importantLevel").val();
  711. var createDate = getDates($("#from_createDate").val(), $("#to_createDate").val());
  712. if (createDate != 'false') {
  713. param.createDate = createDate;
  714. }
  715. param.affairArchiveId = $("#affairArchiveIdTd").val();
  716. param.templateName = $("#templateName").val();
  717.  
  718. var dealDate = getDates($("#from_dealDate").val(), $("#to_dealDate").val());
  719. if (dealDate != 'false') {
  720. param.dealDate = dealDate;
  721. }
  722. param.startMemberName = $('#startMemberName').val();
  723. param.preApproverName = $('#preApproverName').val();
  724. param.isOverdue = $('#isOverdue').val();
  725. param.workflowState = $('#workflowState').val();
  726. } else {
  727. if (choose === 'subject') {
  728. param.subject = $('#title').val();
  729. } else if (choose === 'templateName') {
  730. param.templateName = $('#templateNameSearch').val();
  731. } else if (choose === 'importantLevel') {
  732. param.importantLevel = $('#importent').val();
  733. } else if (choose === 'startMemberName') {
  734. param.startMemberName = $('#spender').val();
  735. } else if (choose == 'preApproverName') {
  736. param.preApproverName = $('#preApproverNameSearch').val();
  737. } else if (choose === 'createDate') {
  738. var fromDate = $('#from_datetime').val();
  739. var toDate = $('#to_datetime').val();
  740. if (fromDate != "" && toDate != "" && fromDate > toDate) {
  741. $.alert($.i18n('collaboration.rule.date'));//开始时间不能早于结束时间
  742. return;
  743. }
  744. var date = fromDate + '#' + toDate;
  745. param.createDate = date;
  746. } else if (choose === 'dealDate') {
  747. var fromDate = $('#from_dealtime').val();
  748. var toDate = $('#to_dealtime').val();
  749. if (fromDate != "" && toDate != "" && fromDate > toDate) {
  750. $.alert($.i18n('collaboration.rule.date'));//开始时间不能早于结束时间
  751. return;
  752. }
  753. var date = fromDate + '#' + toDate;
  754. param.dealDate = date;
  755. //当按照处理时间查询时候,查询所有的信息
  756. //param.deduplication = "false";
  757. } else if (choose === 'workflowState') {
  758. param.workflowState = $('#status').val();
  759. } else if (choose == 'isOverdue') {
  760. param.isOverdue = $("#isOverdueSearch").val();
  761. } else if (choose == 'affairArchiveId') {
  762. param.affairArchiveId = $("#affairArchiveId").val();
  763. }
  764. }
  765.  
  766. //同一流程只显示最后一条
  767. param.deduplication = "false";
  768. var isDedupCheck = $("#deduplication").attr("checked");
  769. if (isDedupCheck) {
  770. param.deduplication = "true";
  771. }
  772. //判断获取主库数据还是分库数据
  773. if (dataType == '1') {
  774. param.dumpData = 'true';
  775. } else {
  776. param.dumpData = 'false';
  777. }
  778.  
  779. var selectVal = $("#aiProcessingRecord").attr("checked");
  780. if (selectVal) {
  781. param.aiProcessing = "true";
  782. } else {
  783. param.aiProcessing = "false";
  784. }
  785.  
  786. param = addURLPara(param);
  787. return param;
  788. }
  789.  
  790. function getSearchValueObj() {
  791. o = new Object();
  792.  
  793. var choose = $('#' + searchobj.p.id).find("option:selected").val();
  794. //使用高级查询条件查询之后,再使用普通查询时,查询条件不生效
  795. if (advanceObj && !choose) {
  796. o = advanceObj;
  797. } else {
  798. var templeteIds = $.trim(_paramTemplateIds);
  799. if (templeteIds != "") {
  800. o.templeteIds = templeteIds;
  801. }
  802. if (choose === 'subject') {
  803. o.subject = $('#title').val();
  804. } else if (choose === 'templateName') {
  805. o.templateName = $('#templateNameSearch').val();
  806. } else if (choose === 'importantLevel') {
  807. o.importantLevel = $('#importent').val();
  808. } else if (choose === 'startMemberName') {
  809. o.startMemberName = $('#spender').val();
  810. } else if (choose == 'preApproverName') {
  811. o.preApproverName = $('#preApproverName').val();
  812. } else if (choose === 'createDate') {
  813. var fromDate = $('#from_datetime').val();
  814. var toDate = $('#to_datetime').val();
  815. if (fromDate != "" && toDate != "" && fromDate > toDate) {
  816. $.alert($.i18n('collaboration.rule.date'));//开始时间不能早于结束时间
  817. return;
  818. }
  819. var date = fromDate + '#' + toDate;
  820. o.createDate = date;
  821. } else if (choose === 'dealDate') {
  822. var fromDate = $('#from_dealtime').val();
  823. var toDate = $('#to_dealtime').val();
  824. if (fromDate != "" && toDate != "" && fromDate > toDate) {
  825. $.alert($.i18n('collaboration.rule.date'));//开始时间不能早于结束时间
  826. return;
  827. }
  828. var date = fromDate + '#' + toDate;
  829. o.dealDate = date;
  830. //当按照处理时间查询时候,查询所有的信息
  831. //o.deduplication = "false";
  832. } else if (choose === 'workflowState') {
  833. o.workflowState = $('#status').val();
  834. } else if (choose == 'isOverdue') {
  835. o.isOverdue = $("#isOverdue").val();
  836. } else if (choose == 'affairArchiveId') {
  837. o.affairArchiveId = $("#affairArchiveId").val();
  838. } else if (choose == 'memberName') {
  839. o.memberName = $("#memberNameSearch").val();
  840. } else if (choose == 'sendeeName') {
  841. o.sendeeName = $("#sendeeNameSearch").val();
  842. }
  843. }
  844. //同一流程只显示最后一条
  845. o.deduplication = "false";
  846. var isDedupCheck = $("#deduplication").attr("checked");
  847. if (isDedupCheck) {
  848. o.deduplication = "true";
  849. }
  850.  
  851. //判断获取主库数据还是分库数据
  852. if (dataType == '1') {
  853. o.dumpData = 'true';
  854. } else {
  855. o.dumpData = 'false';
  856. }
  857.  
  858. var selectVal = $("#aiProcessingRecord").attr("checked");
  859. if (selectVal) {
  860. o.aiProcessing = "true";
  861. } else {
  862. o.aiProcessing = "false";
  863. }
  864.  
  865. o = addURLPara(o);
  866. return o;
  867. }
  868. //二维码传参
  869. function precodeCallback() {
  870. var obj = advanceQueryObj();
  871. obj.openFrom = "listDone";
  872. return obj;
  873. }
  874.  
  875. function debupCol() {
  876. $("#listDone").ajaxgridLoad(advanceQueryObj());
  877. }
  878.  
  879. function currentData() {
  880. //控制其他按钮样式
  881. toolbar.enabled("pigeonhole");
  882. toolbar.enabled("delete");
  883. toolbar.enabled("takeBack");
  884. toolbar.enabled("stepbackRecord");
  885. //toolbar.enabled("batchPrint");
  886. toolbar.enabled("handover");
  887. document.getElementById("deduplication").disabled = "";
  888. document.getElementById("deduplication").parentNode.style.opacity = "";
  889.  
  890. if (hasAIPlugin == "true") {
  891. document.getElementById("aiProcessingRecord").disabled = "";
  892. document.getElementById("aiProcessingRecord").parentNode.style.opacity = "";
  893. }
  894.  
  895. document.getElementById("currentData_a").style.display = "none";
  896. document.getElementById("dumpData_a").style.display = "";
  897.  
  898. //控制是否展示无法查询的条件
  899. document.getElementById("preApproverNameDiv").style.display = "";
  900. document.getElementById("startMemberNameDiv").style.display = "";
  901. if (searchobj) {
  902. searchobj.g.showItem("spender");
  903. searchobj.g.showItem("preApproverNameSearch");
  904. }
  905.  
  906. dataType = '0'; //当前数据
  907.  
  908. debupCol();
  909. }
  910.  
  911. //转储数据
  912. function dumpData() {
  913. //控制其他按钮样式
  914. toolbar.disabled("pigeonhole");
  915. toolbar.disabled("delete");
  916. toolbar.disabled("takeBack");
  917. toolbar.disabled("stepbackRecord");
  918. //toolbar.disabled("batchPrint");
  919. toolbar.disabled("handover");
  920. document.getElementById("deduplication").disabled = "disabled";
  921. document.getElementById("deduplication").checked = false;
  922. document.getElementById("deduplication").parentNode.style.opacity = "0.5";
  923.  
  924. if (hasAIPlugin == "true") {
  925. document.getElementById("aiProcessingRecord").disabled = "disabled";
  926. document.getElementById("aiProcessingRecord").checked = false;
  927. document.getElementById("aiProcessingRecord").parentNode.style.opacity = "0.5";
  928. }
  929.  
  930. document.getElementById("dumpData_a").style.display = "none";
  931. document.getElementById("currentData_a").style.display = "";
  932.  
  933. //控制是否展示无法查询的条件
  934. document.getElementById("preApproverNameDiv").style.display = "none";
  935. document.getElementById("startMemberNameDiv").style.display = "none";
  936. if (searchobj) {
  937. searchobj.g.hideItem("spender");
  938. searchobj.g.hideItem("preApproverNameSearch");
  939. }
  940.  
  941. dataType = '1'; //转储数据
  942.  
  943. debupCol();
  944. }
  945.  
  946. function showAdvanceSearch() {
  947. if (showHandoverList) {
  948. showOrHideInput();
  949. }
  950.  
  951. openQueryViews('listDone', !advanceSearchFlag);
  952.  
  953. }
  954.  
  955. var showHandoverList = false;
  956. var handoverType;
  957. //交接给我的事项
  958. function handoverToMe() {
  959. $("#combinedQuery").enable();
  960. showHandoverList = true;
  961. disabledAllToolbar();
  962. handoverType = "toMe";
  963. var params = {
  964. state: "4",
  965. type: "toMe"
  966. }
  967. loadHandoverGrid(params);
  968. loadHandoverSearch(params);
  969. showOrHideInput();
  970. openQueryViews('listDone', advanceSearchFlag);
  971. }
  972.  
  973. //交接给他人的事项
  974. function handoverFromMe() {
  975. $("#combinedQuery").enable();
  976. showHandoverList = true;
  977. disabledAllToolbar();
  978. handoverType = "fromMe";
  979. var params = {
  980. state: "4",
  981. type: "fromMe"
  982. }
  983. loadHandoverGrid(params);
  984. loadHandoverSearch(params);
  985. showOrHideInput();
  986. openQueryViews('listDone', advanceSearchFlag);
  987. }
  988. //他人竞争处理事项
  989. function otherGrab() {
  990. $("#combinedQuery").disable();
  991. disabledAllToolbar();
  992. initOtherGrabData();
  993. initGrabSearch();
  994. toolbar.enabled("transmit");
  995. if (advanceSearchFlag) {
  996. openQueryViews('listDone', false);
  997. }
  998. }
  999.  
  1000. /**
  1001. * 他人竞争处理事项搜索框
  1002. * @param params
  1003. */
  1004. function initGrabSearch(params) {
  1005. if (searchobj) {
  1006. searchobj.g.destroySearch();
  1007. }
  1008. //搜索框
  1009. var topSearchSize = 7;
  1010. if ($.browser.msie && $.browser.version == '6.0') {
  1011. topSearchSize = 10;
  1012. }
  1013. //查询条件
  1014. var condition = new Array();
  1015. condition.push({
  1016. id: 'title',
  1017. name: 'title',
  1018. type: 'input',
  1019. text: $.i18n("common.subject.label"),//标题
  1020. value: 'subject',
  1021. maxLength: 100
  1022. });
  1023. condition.push({
  1024. id: 'sender',
  1025. name: 'sender',
  1026. type: 'input',
  1027. text: $.i18n("common.sender.label"),//发起人
  1028. value: 'senderName'
  1029. });
  1030. condition.push({
  1031. id: 'sendDate',
  1032. name: 'sendDate',
  1033. type: 'datemulti',
  1034. text: $.i18n("common.date.sendtime.label"),//发起时间
  1035. value: 'sendDate',
  1036. ifFormat: '%Y-%m-%d',
  1037. dateTime: false
  1038. });
  1039. condition.push({
  1040. id: 'grabTime',
  1041. name: 'grabTime',
  1042. type: 'datemulti',
  1043. text: $.i18n("common.bgrab.time"),//处理时间
  1044. value: 'grabTime',
  1045. ifFormat: '%Y-%m-%d',
  1046. dateTime: false
  1047. });
  1048.  
  1049. searchobj = $.searchCondition({
  1050. top: topSearchSize,
  1051. right: 85,
  1052. searchHandler: function () {
  1053. var params = searchobj.g.getReturnValue();
  1054. if (params !== null) {
  1055. params.app = 1;
  1056. $("#listDone").ajaxgridLoad(params);
  1057. }
  1058. },
  1059. conditions: condition
  1060. });
  1061. }
  1062. /**
  1063. * 加载他人竞争处理事项
  1064. */
  1065. function initOtherGrabData() {
  1066. if (grid) {
  1067. grid.grid.destroyGrid();
  1068. grid.grid = null;
  1069. }
  1070.  
  1071. var colModel = new Array();
  1072. colModel.push({
  1073. display: 'affairId',
  1074. name: 'affairId',
  1075. width: 'smallest',
  1076. type: 'checkbox',
  1077. align: 'center'
  1078. });
  1079. colModel.push({
  1080. display: $.i18n("common.subject.label"), //标题
  1081. name: 'subject',
  1082. width: "38%"
  1083. });
  1084. colModel.push({
  1085. display: $.i18n("common.sender.label"), //发起人
  1086. name: 'sender',
  1087. width: "20%"
  1088. });
  1089. colModel.push({
  1090. display: $.i18n("common.date.sendtime.label"), //发起时间
  1091. name: 'createDate',
  1092. width: "20%"
  1093. });
  1094. colModel.push({
  1095. display: $.i18n("common.bgrab.time"),//被竞争时间
  1096. name: 'grabTime',
  1097. sortable: true,
  1098. width: "20%"
  1099. });
  1100. //表格加载
  1101. grid = $('#listDone').ajaxgrid({
  1102. colModel: colModel,
  1103. click: dbclickRow,
  1104. parentId: $('.layout_center').eq(0).attr('id'),
  1105. managerName: "affairManager",
  1106. managerMethod: "findOtherGrabData",
  1107. customId: "otherGrab" // 定义自己独有customId,防止表列顺序互相影响
  1108. });
  1109.  
  1110. $("#listDone").ajaxgridLoad({ app: 1 });
  1111. }
  1112.  
  1113. function showOrHideInput() {
  1114. document.getElementById("dealDateDiv").style.display = "none";
  1115. document.getElementById("preApproverNameDiv").style.display = "none";
  1116. document.getElementById("workflowStateDiv").style.display = "none";
  1117. document.getElementById("isOverdueDiv").style.display = "none";
  1118. if (document.getElementById("affairArchiveIdTdDiv")) {
  1119. document.getElementById("affairArchiveIdTdDiv").style.display = "none";
  1120. }
  1121. if (handoverType == "toMe") {
  1122. document.getElementById("memberNameDiv").style.display = "";
  1123. document.getElementById("sendeeNameDiv").style.display = "none";
  1124. } else {
  1125. document.getElementById("memberNameDiv").style.display = "none";
  1126. document.getElementById("sendeeNameDiv").style.display = "";
  1127. }
  1128. }
  1129.  
  1130. function loadHandoverGrid(params) {
  1131. if (grid) {
  1132. grid.grid.destroyGrid();
  1133. grid.grid = null;
  1134. }
  1135.  
  1136. var colModel = new Array();
  1137. if (params.type == "toMe") {
  1138. colModel.push({
  1139. display: $.i18n("handover.grid.member.js"),//交接人
  1140. name: 'memberName',
  1141. width: "3%"
  1142. });
  1143. } else {
  1144. colModel.push({
  1145. display: $.i18n("common.receiving.member.label"),//接收人
  1146. name: 'sendeeName',
  1147. width: "3%"
  1148. });
  1149. }
  1150. colModel.push({
  1151. display: $.i18n("common.sender.label"),//发起人
  1152. name: 'startMemberName',
  1153. sortable: true,
  1154. width: "3%"
  1155. });
  1156. colModel.push({
  1157. display: $.i18n("common.subject.label"), //标题
  1158. name: 'subject',
  1159. width: "25%"
  1160. });
  1161. colModel.push({
  1162. display: $.i18n("common.date.sendtime.label"), //创建时间
  1163. name: 'createDate',
  1164. width: "5%"
  1165. });
  1166. // @inject-start: 添加列
  1167. colModel.splice(2, 0, ...window.colappend)
  1168. // @inject-end
  1169.  
  1170. //表格加载
  1171. grid = $('#listDone').ajaxgrid({
  1172. colModel: colModel,
  1173. click: dbclickRow,
  1174. render: handoverRend,
  1175. parentId: $('.layout_center').eq(0).attr('id'),
  1176. managerName: "handoverManager",
  1177. managerMethod: "listAffairs",
  1178. customId: "collaboration_collaboration_listDone_handover_" + params.type // 定义自己独有customId,防止表列顺序互相影响
  1179. });
  1180.  
  1181. $("#listDone").ajaxgridLoad(params);
  1182. }
  1183.  
  1184. function loadHandoverSearch(params) {
  1185. if (searchobj) {
  1186. searchobj.g.destroySearch();
  1187. }
  1188. //搜索框
  1189. var topSearchSize = 7;
  1190. if ($.browser.msie && $.browser.version == '6.0') {
  1191. topSearchSize = 10;
  1192. }
  1193. //查询条件
  1194. var condition = new Array();
  1195. if (params.type == "toMe") {
  1196. condition.push({
  1197. id: 'memberNameSearch',
  1198. name: 'memberName',
  1199. type: 'input',
  1200. text: $.i18n("handover.grid.member.js"),//交接人
  1201. value: 'memberName',
  1202. maxLength: 100
  1203. });
  1204. } else {
  1205. condition.push({
  1206. id: 'sendeeNameSearch',
  1207. name: 'sendeeName',
  1208. type: 'input',
  1209. text: $.i18n("common.receiving.member.label"),//接收人
  1210. value: 'sendeeName',
  1211. maxLength: 100
  1212. });
  1213. }
  1214. condition.push({
  1215. id: 'title',
  1216. name: 'title',
  1217. type: 'input',
  1218. text: $.i18n("common.subject.label"),//标题
  1219. value: 'subject',
  1220. maxLength: 100
  1221. });
  1222. condition.push({
  1223. id: 'templateNameSearch',
  1224. name: 'templateName',
  1225. type: 'input',
  1226. text: $.i18n("common.template.label"),//模板名称
  1227. value: 'templateName'
  1228. });
  1229. condition.push({
  1230. id: 'importent',
  1231. name: 'importent',
  1232. type: 'select',
  1233. text: $.i18n("common.importance.label"),//重要程度
  1234. value: 'importantLevel',
  1235. items: [{
  1236. text: $.i18n("common.importance.putong"),//普通
  1237. value: '1'
  1238. }, {
  1239. text: $.i18n("common.importance.zhongyao"),//重要
  1240. value: '2'
  1241. }, {
  1242. text: $.i18n("common.importance.feichangzhongyao"),//非常重要
  1243. value: '3'
  1244. }]
  1245. });
  1246. condition.push({
  1247. id: 'spender',
  1248. name: 'spender',
  1249. type: 'input',
  1250. text: $.i18n("common.sender.label"),//发起人
  1251. value: 'startMemberName'
  1252. });
  1253. condition.push({
  1254. id: 'datetime',
  1255. name: 'datetime',
  1256. type: 'datemulti',
  1257. text: $.i18n("common.date.sendtime.label"),//发起时间
  1258. value: 'createDate',
  1259. ifFormat: '%Y-%m-%d',
  1260. dateTime: false
  1261. });
  1262.  
  1263. searchobj = $.searchCondition({
  1264. top: topSearchSize,
  1265. right: 85,
  1266. searchHandler: function () {
  1267. var val = searchobj.g.getReturnValue();
  1268. if (val !== null) {
  1269. var conditionObj = getSearchValueObj();
  1270. conditionObj.state = "4";
  1271. conditionObj.type = handoverType;
  1272. $("#listDone").ajaxgridLoad(conditionObj);
  1273. }
  1274. },
  1275. conditions: condition
  1276. });
  1277. }
  1278.  
  1279. function handoverRend(txt, data, r, c, col) {
  1280. return txt;
  1281. }
  1282.  
  1283. //置灰所有ToolBar
  1284. function disabledAllToolbar() {
  1285. toolbar.disabled("transmit");
  1286. toolbar.disabled("pigeonhole");
  1287. toolbar.disabled("delete");
  1288. toolbar.disabled("takeBack");
  1289. toolbar.disabled("resend");
  1290. toolbar.disabled("delete");
  1291. toolbar.disabled("stepbackRecord");
  1292. toolbar.disabled("currentData");
  1293. toolbar.disabled("dumpData");
  1294. toolbar.disabled("batchPrint");
  1295.  
  1296. document.getElementById("deduplication").disabled = "disabled";
  1297. document.getElementById("deduplication").checked = false;
  1298. document.getElementById("deduplication").parentNode.style.opacity = "0.5";
  1299.  
  1300. if (hasAIPlugin == "true") {
  1301. document.getElementById("aiProcessingRecord").disabled = "disabled";
  1302. document.getElementById("aiProcessingRecord").checked = false;
  1303. document.getElementById("aiProcessingRecord").parentNode.style.opacity = "0.5";
  1304. }
  1305. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址