| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- /**
- * 未审核验收
- */
- Ext.define('saas.view.home.infoCardList.UnauditCheckIn', {
- extend: 'saas.view.home.infoCardList.InfoList',
- xtype: 'home-infocardlist-unauditcheckin',
- listUrl: '/api/purchase/prodinout/homepageList',
- idField: 'id',
- codeField: 'pi_inoutno',
- // detailTitle: '采购验收单',
- // detailXType: 'purchase-purchasein-formpanel',
- condition: 'pi_statuscode<>\'AUDITED\' and pi_class in (\'采购验收单\',\'采购验退单\') and prodinout.companyId=#{companyId}',
- listColumns: [{
- text: 'id',
- dataIndex: 'pu_id',
- xtype: 'numbercolumn',
- hidden: true
- }, {
- text: '单据编号',
- dataIndex: 'pi_inoutno',
- width: 150
- }, {
- text: '单据类型',
- dataIndex: 'pd_piclass',
- hidden: true
- }, {
- text: '单据日期',
- dataIndex: 'pi_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '供应商编号',
- dataIndex: 'pi_vendcode',
- hidden: true
- }, {
- text: '供应商名称',
- dataIndex: 'pi_vendname',
- width: 200
- }, {
- text: '审核状态',
- align: 'center',
- dataIndex: 'pi_status',
- width: 80
- },{
- text: '关联单号',
- dataIndex: 'pi_pucode',
- width: 110
- },{
- text: '总额(元)',
- dataIndex: 'pi_total',
- width: 80,
- renderer: function(v, m, r) {
- 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',
- hidden: true,
- width: 80
- }, {
- text: '相关单号',
- dataIndex: 'pd_ordercode',
- hidden: true,
- width: 150
- }, {
- text: '物料编号',
- dataIndex: 'pd_prodcode',
- hidden: true,
- width: 150
- }, {
- text: '物料名称',
- dataIndex: 'pr_detail',
- hidden: true,
- width: 200
- }, {
- text: '物料规格',
- dataIndex: 'pr_spec',
- hidden: true,
- width: 150
- }, {
- text: '单位',
- dataIndex: 'pr_unit',
- hidden: true,
- width: 80
- }, {
- text: '数量',
- // dataIndex: 'pd_inqty',
- dataIndex: 'qty',
- xtype: 'numbercolumn',
- width: 110,
- hidden: true,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 3, false);
- },
- }, {
- text: '仓库',
- dataIndex: 'pd_whname',
- hidden: true,
- width: 120
- }, {
- text: '单价(元)',
- dataIndex: 'pd_orderprice',
- hidden: true,
- xtype: 'numbercolumn',
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 4, true);
- },
- width: 110
- }, {
- text: '税率',
- dataIndex: 'pd_taxrate',
- xtype: 'numbercolumn',
- hidden: true,
- width: 80,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, false);
- },
- }, {
- text: '金额(元)',
- dataIndex: 'pd_total',
- xtype: 'numbercolumn',
- hidden: true,
- width: 110,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- }],
- listeners: {
- beforeopendetail: function(grid, record) {
- var pi_class = record.get('pi_class'),
- detailTitle = '采购验收单',
- detailXType = 'purchase-purchasein-formpanel';
- if(pi_class == '采购验退单') {
- detailTitle = '采购验退单';
- detailXType = 'purchase-purchaseout-formpanel';
- }
- grid.detailTitle = detailTitle;
- grid.detailXType = detailXType;
- return true;
- }
- }
- });
|