| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- /**
- * 待入库采购
- */
- Ext.define('saas.view.home.infoCardList.PurchaseIn', {
- extend: 'saas.view.home.infoCardList.InfoList',
- xtype: 'home-infocardlist-purchasein',
- listUrl: '/api/purchase/purchase/list',
- idField: 'pu_id',
- codeField: 'pu_code',
- detailTitle: '采购订单',
- detailXType: 'purchase-purchase-formpanel',
- 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,\' \') <> \'已入库\')',
- listColumns: [{
- text: 'id',
- dataIndex: 'pu_id',
- hidden: true
- }, {
- text: '采购单号',
- dataIndex: 'pu_code',
- width: 150
- }, {
- text: '单据日期',
- dataIndex: 'pu_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '供应商名称',
- dataIndex: 'pu_vendname',
- width: 200
- }, {
- text: '审核状态',
- align: 'center',
- dataIndex: 'pu_status',
- width: 80
- }, {
- text: '业务状态',
- align: 'center',
- dataIndex: 'pu_acceptstatus',
- width: 90
- }, {
- text: '序号',
- dataIndex: 'pd_detno',
- xtype: 'numbercolumn',
- width: 80,
- renderer: function(v, m, r) {
- return Ext.util.Format.number(v, '0');
- }
- }, {
- text: '物料编号',
- dataIndex: 'pd_prodcode',
- width: 150
- }, {
- text: '品牌',
- dataIndex: 'pr_brand',
- width: 200
- }, {
- text: '物料名称',
- dataIndex: 'pr_detail',
- width: 200
- }, {
- text: '型号',
- dataIndex: 'pr_orispeccode',
- width: 200
- }, {
- text: '规格',
- dataIndex: 'pr_spec',
- width: 150
- }, {
- text: '采购数量',
- dataIndex: 'pd_qty',
- xtype: 'numbercolumn',
- width: 110,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 3, false);
- },
- }, {
- text: '单位',
- dataIndex: 'pr_unit',
- width: 80
- }, {
- text: '需求日期',
- dataIndex: 'pd_delivery',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '单价(元)',
- dataIndex: 'pd_price',
- xtype: 'numbercolumn',
- width: 110,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 4, true);
- }
- }, {
- text: '税率',
- dataIndex: 'pd_taxrate',
- xtype: 'numbercolumn',
- width: 80,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, false);
- },
- }, {
- text: '金额(元)',
- dataIndex: 'pd_total',
- xtype: 'numbercolumn',
- width: 110,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '备注',
- dataIndex: 'pd_remark',
- width: 250
- }]
- });
|