/** * 未审核出货 */ Ext.define('saas.view.home.infoCardList.UnauditSaleOut', { extend: 'saas.view.home.infoCardList.InfoList', xtype: 'home-infocardlist-unauditsaleout', listUrl: '/api/sale/prodinout/homepageList', idField: 'id', codeField: 'pi_inoutno', // detailTitle: '出货单', // detailXType: 'sale-saleout-formpanel', condition: 'pi_statuscode<>\'AUDITED\' and pi_class in (\'出货单\',\'销售退货单\') and prodinout.companyId=#{companyId}', listColumns: [{ text: 'id', dataIndex: 'id', hidden:true, xtype: 'numbercolumn' }, { text: '出货单号', dataIndex: 'pi_inoutno', width: 150 }, { text: '单据日期', dataIndex: 'pi_date', xtype:'datecolumn', width: 110 },{ text: '客户名称', dataIndex: 'pi_custname', width: 200 }, { text: '单据状态', align: 'center', dataIndex: 'pi_status', width: 90 },{ text: '关联单号', dataIndex: 'pi_sacode', width: 150 },{ text: '总金额(元)', dataIndex: 'pi_total', xtype:'numbercolumn', width: 110, renderer : function(v) { return saas.util.BaseUtil.numberFormat(v, 2, true); }, },{ text: '收款状态', align: 'center', dataIndex: 'pi_prstatus', width: 90 }, { text: '备注', dataIndex: 'pi_remark', width: 250 },{ text: '明细序号', dataIndex: 'pd_pdno', xtype: 'numbercolumn', width: 100, hidden:true, renderer : function(v) { var format = '0' return Ext.util.Format.number(v, format); } }, { text: '关联销售单号', dataIndex: 'pd_ordercode', hidden:true, width: 150 }, { text: '订单序号', dataIndex: 'pd_orderdetno', xtype:'numbercolumn', width: 100, hidden:true, renderer : function(v) { var format = '0' return Ext.util.Format.number(v, format); } }, { text: '物料编号', dataIndex: 'pd_prodcode', hidden:true, width: 150 }, { text: '物料名称', dataIndex: 'pr_detail', hidden:true, width: 150 }, { text: '数量', // dataIndex: 'pd_outqty', dataIndex: 'qty', xtype:'numbercolumn', width: 110, hidden:true, renderer : function(v) { return saas.util.BaseUtil.numberFormat(v, 3, false); } }, { text: '销售单价(元)', dataIndex: 'pd_sendprice', xtype:'numbercolumn', width: 140, hidden:true, renderer : function(v) { return saas.util.BaseUtil.numberFormat(v, 4, true); } }, { text: '金额(元)', dataIndex: 'pd_ordertotal', xtype:'numbercolumn', width: 110, hidden:true, renderer : function(v) { return saas.util.BaseUtil.numberFormat(v, 2, true); } }, { text: '税率', dataIndex: 'pd_taxrate', xtype:'numbercolumn', width: 80, hidden:true, renderer : function(v) { return saas.util.BaseUtil.numberFormat(v, 2, false); } }, { text: '成本单价(元)', dataIndex: 'pd_price', xtype:'numbercolumn', width: 140, hidden:true, renderer : function(v) { return saas.util.BaseUtil.numberFormat(v, 4, true); } }, { text: '备注', dataIndex: 'pd_remark', hidden:true, width: 250 }], listeners: { beforeopendetail: function(grid, record) { var pi_class = record.get('pi_class'), detailTitle = '出货单', detailXType = 'sale-saleout-formpanel'; if(pi_class == '销售退货单') { detailTitle = '销售退货单'; detailXType = 'sale-salein-formpanel'; } grid.detailTitle = detailTitle; grid.detailXType = detailXType; return true; } } });