| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- Ext.define('saas.view.money.othreceipts.FormPanel', {
- extend: 'saas.view.core.form.FormPanel',
- xtype: 'money-othreceipts-formpanel',
- controller: 'money-othreceipts-formpanel',
- viewModel: 'money-othreceipts-formpanel',
- viewName: 'money-othreceipts-formpanel',
- caller:'OthReceipts',
-
- //字段属性
- _title:'其它收入单',
- _idField: 'id',
- _codeField: 'or_code',
- _statusField: 'or_status',
- _statusCodeField: 'or_statuscode',
- _relationColumn: 'ord_orid',
- _readUrl:'/api/money/othreceipts/read/',
- _saveUrl:'/api/money/othreceipts/save/',
- _auditUrl:'/api/money/othreceipts/audit/',
- _unAuditUrl: '/api/money/othreceipts/unAudit/',
- _deleteUrl:'/api/money/othreceipts/delete/',
- initId:0,
- defaultItems: [{
- xtype: 'hidden',
- name: 'id',
- fieldLabel: 'id'
- }, {
- xtype : 'hidden',
- name : 'or_custid',
- fieldLabel : '客户ID'
- }, {
- xtype : 'hidden',
- name : 'or_custcode',
- fieldLabel : '客户编号'
- }, {
- xtype : "dbfindtrigger",
- name : "or_custname",
- fieldLabel : "客户名称"
- }, {
- xtype : 'hidden',
- name : 'or_bankid',
- fieldLabel : '账户ID'
- }, {
- xtype : 'hidden',
- name : 'or_bankcode',
- fieldLabel : '账户编号'
- }, {
- xtype : "dbfindtrigger",
- name : "or_bankname",
- fieldLabel : "账户名称"
- }, {
- name : "detailGridField",
- xtype : "detailGridField",
- storeModel:'saas.model.money.Othreceipts',
- detnoColumn: 'ord_detno',
- deleteDetailUrl:'/api/money/othreceipts/deleteDetail/',
- columnWidth : 1,
- columns : [
- {
- text : "id",
- dataIndex : "id",
- xtype : "numbercolumn",
- width:0
- }, {
- text : "期间",
- dataIndex : "ord_ym",
- editor : {
- xtype : "numberfield"
- },
- width : 120.0,
- xtype : "numbercolumn",
- items : null
- }, {
- text : "收入类别",
- width : 200.0,
- dataIndex : "ord_type",
- xtype : "",
- items : null,
- editor : {
- xtype : "remotecombo",
- storeUrl:'/api/document/inoutkind/getCombo',
- addHandler:function(b){
- var document = Ext.create('saas.view.document.kind.Kind',{});
- var form =this.ownerCmp.ownerCt.ownerCmp.ownerCt;
- this.dialog = form.getController().getView().add({
- xtype: 'document-kind-childwin',
- bind: {
- title: '新增收入类别类型'
- },
- dataKind:'inoutkind',
- belong:document.etc['inoutkind'],
- _parent:form,
- _combo:this.ownerCmp,
- record:null,
- session: true
- });
- this.dialog.show();
- }
- }
- }, {
- text : "金额",
- dataIndex : "ord_nowbalance",
- editor : {
- xtype : "numberfield"
- },
- width : 120.0,
- xtype : "numbercolumn",
- format:'0',
- items : null,
- summaryType: 'sum'
- }, {
- text : "单价",
- editor : {
- xtype : "numberfield"
- },
- format:'0,000.00',
- dataIndex : "sd_price",
- width : 120.0,
- xtype : "numbercolumn",
- items : null,
- summaryType: 'sum'
- }, {
- text : "备注",
- dataIndex : "ord_remark",
- width : 120.0,
- items : null,
- flex : 1.0,
- editor : {
- xtype : ""
- }
- }
- ]
- }, {
- xtype : "textfield",
- name : "or_amount",
- fieldLabel : "收款金额",
- readOnly:true
- },{
- xtype : "textfield",
- name : "or_remark",
- fieldLabel : "备注",
- allowBlank : true,
- columnWidth : 0.75
- }, {
- xtype : "textfield",
- name : "or_recorder",
- fieldLabel : "录入人",
- readOnly:true
- }, {
- xtype : "datefield",
- name : "or_date",
- fieldLabel : "录入日期",
- readOnly:true
- }
- ]
- });
|