PurchaseIn.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /**
  2. * 待入库采购
  3. */
  4. Ext.define('saas.view.home.infoCardList.PurchaseIn', {
  5. extend: 'saas.view.home.infoCardList.InfoList',
  6. xtype: 'home-infocardlist-purchasein',
  7. listUrl: '/api/purchase/purchase/list',
  8. idField: 'pu_id',
  9. codeField: 'pu_code',
  10. detailTitle: '采购订单',
  11. detailXType: 'purchase-purchase-formpanel',
  12. condition: 'purchase.companyId=#{companyId} and pu_statuscode=\'AUDITED\' and exists (select 1 from purchasedetail detail where pd_id=purchasedetail.pd_id and IFNULL(pu_acceptstatus,\' \') <> \'已入库\')',
  13. listColumns: [{
  14. text: 'id',
  15. dataIndex: 'pu_id',
  16. hidden: true
  17. }, {
  18. text: '采购单号',
  19. dataIndex: 'pu_code',
  20. width: 150
  21. }, {
  22. text: '单据日期',
  23. dataIndex: 'pu_date',
  24. xtype: 'datecolumn',
  25. width: 110
  26. }, {
  27. text: '供应商名称',
  28. dataIndex: 'pu_vendname',
  29. width: 200
  30. }, {
  31. text: '审核状态',
  32. align: 'center',
  33. dataIndex: 'pu_status',
  34. width: 80
  35. }, {
  36. text: '业务状态',
  37. align: 'center',
  38. dataIndex: 'pu_acceptstatus',
  39. width: 90
  40. }, {
  41. text: '序号',
  42. dataIndex: 'pd_detno',
  43. xtype: 'numbercolumn',
  44. width: 80,
  45. renderer: function(v, m, r) {
  46. return Ext.util.Format.number(v, '0');
  47. }
  48. }, {
  49. text: '物料编号',
  50. dataIndex: 'pd_prodcode',
  51. width: 150
  52. }, {
  53. text: '品牌',
  54. dataIndex: 'pr_brand',
  55. width: 200
  56. }, {
  57. text: '物料名称',
  58. dataIndex: 'pr_detail',
  59. width: 200
  60. }, {
  61. text: '型号',
  62. dataIndex: 'pr_orispeccode',
  63. width: 200
  64. }, {
  65. text: '规格',
  66. dataIndex: 'pr_spec',
  67. width: 150
  68. }, {
  69. text: '采购数量',
  70. dataIndex: 'pd_qty',
  71. xtype: 'numbercolumn',
  72. width: 110,
  73. renderer: function(v, m, r) {
  74. return saas.util.BaseUtil.numberFormat(v, 3, false);
  75. },
  76. }, {
  77. text: '单位',
  78. dataIndex: 'pr_unit',
  79. width: 80
  80. }, {
  81. text: '需求日期',
  82. dataIndex: 'pd_delivery',
  83. xtype: 'datecolumn',
  84. width: 110
  85. }, {
  86. text: '单价(元)',
  87. dataIndex: 'pd_price',
  88. xtype: 'numbercolumn',
  89. width: 110,
  90. renderer: function(v, m, r) {
  91. return saas.util.BaseUtil.numberFormat(v, 4, true);
  92. }
  93. }, {
  94. text: '税率',
  95. dataIndex: 'pd_taxrate',
  96. xtype: 'numbercolumn',
  97. width: 80,
  98. renderer: function(v, m, r) {
  99. return saas.util.BaseUtil.numberFormat(v, 2, false);
  100. },
  101. }, {
  102. text: '金额(元)',
  103. dataIndex: 'pd_total',
  104. xtype: 'numbercolumn',
  105. width: 110,
  106. renderer: function(v, m, r) {
  107. return saas.util.BaseUtil.numberFormat(v, 2, true);
  108. }
  109. }, {
  110. text: '备注',
  111. dataIndex: 'pd_remark',
  112. width: 250
  113. }]
  114. });