SaleOut.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /**
  2. * 待出货销售
  3. */
  4. Ext.define('saas.view.home.infoCardList.SaleOut', {
  5. extend: 'saas.view.home.infoCardList.InfoList',
  6. xtype: 'home-infocardlist-saleout',
  7. listUrl: '/api/sale/sale/list',
  8. idField: 'sa_id',
  9. codeField: 'sa_code',
  10. detailTitle: '销售订单',
  11. detailXType: 'sale-sale-formpanel',
  12. condition: 'sale.companyid=#{companyId} and sa_statuscode=\'AUDITED\' and exists (select 1 from saledetail detail where sd_id=saledetail.sd_id and IFNULL(sd_sendqty,0)<ifnull(sd_qty,0) and TO_DAYS(sd_delivery)-TO_DAYS(now())<= 7)',
  13. listColumns: [{
  14. text: 'id',
  15. dataIndex: 'sa_id',
  16. hidden: true,
  17. xtype: 'numbercolumn'
  18. }, {
  19. text: '单据编号',
  20. dataIndex: 'sa_code',
  21. width: 150
  22. }, {
  23. text: '单据状态',
  24. align: 'center',
  25. dataIndex: 'sa_status',
  26. width: 90
  27. }, {
  28. text: '业务状态',
  29. align: 'center',
  30. dataIndex: 'sa_sendstatus',
  31. width: 90
  32. }, {
  33. text: '单据日期',
  34. dataIndex: 'sa_date',
  35. xtype: 'datecolumn',
  36. width: 110
  37. }, {
  38. text: '客户名称',
  39. dataIndex: 'sa_custname',
  40. width: 200
  41. }, {
  42. text: '明细序号',
  43. dataIndex: 'sd_detno',
  44. xtype: 'numbercolumn',
  45. width: 100,
  46. renderer: function(v, m, r) {
  47. return Ext.util.Format.number(v, '0');
  48. }
  49. }, {
  50. text: '物料编号',
  51. dataIndex: 'sd_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: 'pr_spec',
  72. width: 150
  73. }, {
  74. text: '数量',
  75. dataIndex: 'sd_qty',
  76. xtype: 'numbercolumn',
  77. width: 110,
  78. renderer: function(v, m, r) {
  79. return saas.util.BaseUtil.numberFormat(v, 3, false);
  80. },
  81. }, {
  82. text: '单位',
  83. dataIndex: 'pr_unit',
  84. width: 80
  85. }, {
  86. text: '单价(元)',
  87. dataIndex: 'sd_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: 'sd_sendqty',
  96. xtype: 'numbercolumn',
  97. width: 110,
  98. renderer: function(v, m, r) {
  99. return saas.util.BaseUtil.numberFormat(v, 3, false);
  100. },
  101. }, {
  102. text: '备注',
  103. dataIndex: 'sd_remark',
  104. width: 250
  105. }],
  106. });