listDone

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

当前为 2023-09-13 提交的版本,查看 最新版本

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

QingJ © 2025

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