You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PrintView.js 3.3 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-04-11 10:31
  5. * 描 述:公文发送
  6. */
  7. var refreshGirdData;
  8. var keyValue = request('keyValue');
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var processId = '';
  12. var page = {
  13. init: function () {
  14. console.log(keyValue);
  15. page.bind();
  16. },
  17. bind: function () {
  18. $.get(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/PrintInfo?keyValue=' + keyValue,
  19. function(data) {
  20. var data = JSON.parse(data).data;
  21. var entityItem = data.entityItem;
  22. console.log(data);
  23. learun.clientdata.getAsync('department', {
  24. key: data.entity.RReceiveUnit,
  25. callback: function (_data) {
  26. console.log(_data);
  27. $('#RReceiveUnit').html(_data.name);
  28. }
  29. });
  30. $('#swz').html(data.entity.swz);
  31. $('#RReceiveTime').html(data.entity.RReceiveTime.substr(0,10));
  32. $('#RSourceUnit').html(data.entity.RSourceUnit);
  33. $('#lwz').html(data.entity.lwz);
  34. $('#RTitle').html(data.entity.RTitle);
  35. $('#yj1').html(entityItem[0].SpecifyReceiver);
  36. $('#yj2').html(entityItem[1].SpecifyReceiver);
  37. learun.clientdata.getAsync('user', {
  38. key: entityItem[1].ReceiverId,
  39. callback: function (_data) {
  40. console.log(_data);
  41. $('#xiaozhanginfo').html(_data.name + ' ' + (entityItem[1].ReadTime || '').substr(0, 10));
  42. }
  43. });
  44. learun.clientdata.getAsync('user', {
  45. key: data.entity.SenderId,
  46. callback: function (_data) {
  47. $('#SenderId').html(_data.name);
  48. }
  49. });
  50. var text = '';
  51. $.each(entityItem,
  52. function(i, item) {
  53. if (i < 2) {return true;}
  54. learun.clientdata.getAsync('user', {
  55. key: item.ReceiverId,
  56. callback: function (_data) {
  57. text += '<div class="tableTxt1">' +
  58. (item.SpecifyReceiver == '' ? '已阅' : item.SpecifyReceiver) +
  59. '</div> <div class="tableTxt2"> '+_data.name+' '+(item.ReadTime || '').substr(0,10)+'</div>';
  60. }
  61. });
  62. });
  63. $('#yj3').html(text);
  64. $('#overDate').html(data.entityItem[data.entityItem.length - 1].ReadTime.substr(0,10));
  65. });
  66. },
  67. };
  68. page.init();
  69. }