UnauditCheckIn.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /**
  2. * 未审核验收
  3. */
  4. Ext.define('saas.view.home.infoCardList.UnauditCheckIn', {
  5. extend: 'saas.view.home.infoCardList.InfoList',
  6. xtype: 'home-infocardlist-unauditcheckin',
  7. listUrl: '/api/purchase/prodinout/homepageList',
  8. idField: 'id',
  9. codeField: 'pi_inoutno',
  10. // detailTitle: '采购验收单',
  11. // detailXType: 'purchase-purchasein-formpanel',
  12. condition: 'pi_statuscode<>\'AUDITED\' and pi_class in (\'采购验收单\',\'采购验退单\') and prodinout.companyId=#{companyId}',
  13. listColumns: [{
  14. text: 'id',
  15. dataIndex: 'pu_id',
  16. xtype: 'numbercolumn',
  17. hidden: true
  18. }, {
  19. text: '单据编号',
  20. dataIndex: 'pi_inoutno',
  21. width: 150
  22. }, {
  23. text: '单据类型',
  24. dataIndex: 'pd_piclass',
  25. hidden: true
  26. }, {
  27. text: '单据日期',
  28. dataIndex: 'pi_date',
  29. xtype: 'datecolumn',
  30. width: 110
  31. }, {
  32. text: '供应商编号',
  33. dataIndex: 'pi_vendcode',
  34. hidden: true
  35. }, {
  36. text: '供应商名称',
  37. dataIndex: 'pi_vendname',
  38. width: 200
  39. }, {
  40. text: '审核状态',
  41. align: 'center',
  42. dataIndex: 'pi_status',
  43. width: 80
  44. },{
  45. text: '关联单号',
  46. dataIndex: 'pi_pucode',
  47. width: 110
  48. },{
  49. text: '总额(元)',
  50. dataIndex: 'pi_total',
  51. width: 80,
  52. renderer: function(v, m, r) {
  53. return saas.util.BaseUtil.numberFormat(v, 2, true);
  54. },
  55. },{
  56. text: '付款状态',
  57. align: 'center',
  58. dataIndex: 'pi_prstatus',
  59. width: 90
  60. },{
  61. text: '备注',
  62. dataIndex: 'pi_remark',
  63. width: 250
  64. },{
  65. text: '序号',
  66. dataIndex: 'pd_pdno',
  67. hidden: true,
  68. width: 80
  69. }, {
  70. text: '相关单号',
  71. dataIndex: 'pd_ordercode',
  72. hidden: true,
  73. width: 150
  74. }, {
  75. text: '物料编号',
  76. dataIndex: 'pd_prodcode',
  77. hidden: true,
  78. width: 150
  79. }, {
  80. text: '物料名称',
  81. dataIndex: 'pr_detail',
  82. hidden: true,
  83. width: 200
  84. }, {
  85. text: '物料规格',
  86. dataIndex: 'pr_spec',
  87. hidden: true,
  88. width: 150
  89. }, {
  90. text: '单位',
  91. dataIndex: 'pr_unit',
  92. hidden: true,
  93. width: 80
  94. }, {
  95. text: '数量',
  96. // dataIndex: 'pd_inqty',
  97. dataIndex: 'qty',
  98. xtype: 'numbercolumn',
  99. width: 110,
  100. hidden: true,
  101. renderer: function(v, m, r) {
  102. return saas.util.BaseUtil.numberFormat(v, 3, false);
  103. },
  104. }, {
  105. text: '仓库',
  106. dataIndex: 'pd_whname',
  107. hidden: true,
  108. width: 120
  109. }, {
  110. text: '单价(元)',
  111. dataIndex: 'pd_orderprice',
  112. hidden: true,
  113. xtype: 'numbercolumn',
  114. renderer: function(v, m, r) {
  115. return saas.util.BaseUtil.numberFormat(v, 4, true);
  116. },
  117. width: 110
  118. }, {
  119. text: '税率',
  120. dataIndex: 'pd_taxrate',
  121. xtype: 'numbercolumn',
  122. hidden: true,
  123. width: 80,
  124. renderer: function(v, m, r) {
  125. return saas.util.BaseUtil.numberFormat(v, 2, false);
  126. },
  127. }, {
  128. text: '金额(元)',
  129. dataIndex: 'pd_total',
  130. xtype: 'numbercolumn',
  131. hidden: true,
  132. width: 110,
  133. renderer: function(v, m, r) {
  134. return saas.util.BaseUtil.numberFormat(v, 2, true);
  135. },
  136. }],
  137. listeners: {
  138. beforeopendetail: function(grid, record) {
  139. var pi_class = record.get('pi_class'),
  140. detailTitle = '采购验收单',
  141. detailXType = 'purchase-purchasein-formpanel';
  142. if(pi_class == '采购验退单') {
  143. detailTitle = '采购验退单';
  144. detailXType = 'purchase-purchaseout-formpanel';
  145. }
  146. grid.detailTitle = detailTitle;
  147. grid.detailXType = detailXType;
  148. return true;
  149. }
  150. }
  151. });