PurchaseIn.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. width: 0,
  17. hidden: true
  18. }, {
  19. text: '采购单号',
  20. dataIndex: 'pu_code',
  21. width: 150
  22. }, {
  23. text: '单据日期',
  24. dataIndex: 'pu_date',
  25. xtype: 'datecolumn',
  26. width: 110
  27. }, {
  28. text: '供应商名称',
  29. dataIndex: 'pu_vendname',
  30. width: 200
  31. }, {
  32. text: '审核状态',
  33. align: 'center',
  34. dataIndex: 'pu_status',
  35. width: 80
  36. }, {
  37. text: '业务状态',
  38. align: 'center',
  39. dataIndex: 'pu_acceptstatus',
  40. width: 90
  41. }, {
  42. text: '序号',
  43. dataIndex: 'pd_detno',
  44. xtype: 'numbercolumn',
  45. width: 80,
  46. renderer: function (v) {
  47. return Ext.util.Format.number(v, '0');
  48. }
  49. }, {
  50. text: '物料编号',
  51. dataIndex: 'pd_prodcode',
  52. width: 150
  53. }, {
  54. text: '品牌',
  55. dataIndex: 'pr_brand',
  56. width: 200
  57. }, {
  58. text: '物料名称',
  59. dataIndex: 'pr_detail',
  60. width: 200
  61. }, {
  62. text: '型号',
  63. dataIndex: 'pr_orispeccode',
  64. width: 200
  65. }, {
  66. text: '规格',
  67. dataIndex: 'pr_spec',
  68. width: 150
  69. }, {
  70. text: '采购数量',
  71. dataIndex: 'pd_qty',
  72. xtype: 'numbercolumn',
  73. width: 110,
  74. renderer: function (v) {
  75. return saas.util.BaseUtil.numberFormat(v, 3, false);
  76. },
  77. }, {
  78. text: '单位',
  79. dataIndex: 'pr_unit',
  80. width: 80
  81. }, {
  82. text: '需求日期',
  83. dataIndex: 'pd_delivery',
  84. xtype: 'datecolumn',
  85. width: 110
  86. }, {
  87. text: '单价(元)',
  88. dataIndex: 'pd_price',
  89. xtype: 'numbercolumn',
  90. width: 110,
  91. renderer: function (v) {
  92. return saas.util.BaseUtil.numberFormat(v, 4, true);
  93. }
  94. }, {
  95. text: '税率',
  96. dataIndex: 'pd_taxrate',
  97. xtype: 'numbercolumn',
  98. width: 80,
  99. renderer: function (v) {
  100. return saas.util.BaseUtil.numberFormat(v, 2, false);
  101. },
  102. }, {
  103. text: '金额(元)',
  104. dataIndex: 'pd_total',
  105. xtype: 'numbercolumn',
  106. width: 110,
  107. renderer: function (v) {
  108. return saas.util.BaseUtil.numberFormat(v, 2, true);
  109. }
  110. }, {
  111. text: '备注',
  112. dataIndex: 'pd_remark',
  113. width: 250
  114. }]
  115. });