| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- Ext.define('saas.view.money.othspendings.FormPanel', {
- extend: 'saas.view.core.form.FormPanel',
- xtype: 'money-othspendings-formpanel',
- controller: 'money-othspendings-formpanel',
- viewModel: 'money-othspendings-formpanel',
- viewName: 'money-othspendings-formpanel',
- caller:'OthSpendings',
-
- //字段属性
- _title:'其它支出单',
- _idField: 'id',
- _codeField: 'os_code',
- _statusField: 'os_status',
- _statusCodeField: 'os_statuscode',
- _relationColumn: 'osd_orid',
- _readUrl:'/api/money/othspendings/read/',
- _saveUrl:'/api/money/othspendings/save',
- _deleteUrl:'/api/money/othspendings/delete/',
- initId:0,
- defaultItems: [{
- xtype: 'hidden',
- name: 'id',
- fieldLabel: 'id'
- }, {
- xtype : 'hidden',
- name : 'os_vendid',
- fieldLabel : '供应商ID'
- }, {
- xtype : 'hidden',
- name : 'os_vendcode',
- fieldLabel : '供应商编号'
- }, {
- xtype : "dbfindtrigger",
- name : "os_vendname",
- fieldLabel : "供应商名称"
- }, {
- xtype : 'hidden',
- name : 'os_bankid',
- fieldLabel : '结算账户ID'
- }, {
- xtype : 'hidden',
- name : 'os_bankcode',
- fieldLabel : '结算账户编号'
- }, {
- xtype : "dbfindtrigger",
- name : "os_bankname",
- fieldLabel : "结算账户名称"
- }, {
- name : "detailGridField",
- xtype : "detailGridField",
- storeModel:'saas.model.money.Othspendings',
- detnoColumn: 'osd_detno',
- deleteDetailUrl:'/api/money/othspendings/deleteDetail/',
- columnWidth : 1,
- columns : [
- {
- text : "id",
- dataIndex : "id",
- xtype : "numbercolumn",
- width:0
- }, {
- text : "期间",
- dataIndex : "osd_ym",
- editor : {
- xtype : "numberfield"
- },
- width : 120.0,
- xtype : "numbercolumn",
- items : null
- }, {
- text : "支出类别",
- width : 200.0,
- dataIndex : "osd_type",
- xtype : "",
- items : null,
- editor : {
- xtype : "remotecombo",
- storeUrl:'/api/document/fundinoutType/list',
- name : "osd_type",
- fieldLabel : "支出类别",
- allowBlank : true,
- queryMode: 'local',
- displayField: 'display',
- valueField: 'value',
- columnWidth : 0.25,
- etc:{
- inoutkind:{
- keyField:'id',
- dataField:'ft_name',
- reqUrl:'/api/document/fundinoutType/save',
- delUrl:'/api/document/fundinoutType/delete'
- }
- },
- addHandler:function(b){
- var form = this.ownerCmp.ownerCt.ownerCmp.ownerCt;
- this.dialog = form.getController().getView().add({
- xtype: 'document-kind-childwin',
- bind: {
- title: '新增收入类型'
- },
- dataKind:'inoutkind',
- belong:this.ownerCmp.etc['inoutkind'],
- _parent:form,
- record:null,
- session: true
- });
- this.dialog.show();
- }
- }
- }, {
- text : "金额",
- dataIndex : "osd_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 : "osd_remark",
- width : 120.0,
- items : null,
- editor : {
- xtype : ""
- },
- flex : 1.0,
- }
- ]
- }, {
- xtype : "textfield",
- name : "os_amount",
- fieldLabel : "收款金额",
- readOnly:true
- },{
- xtype : "textfield",
- name : "os_remark",
- fieldLabel : "备注",
- allowBlank : true,
- columnWidth : 0.75
- }, {
- xtype : "textfield",
- name : "os_recorder",
- fieldLabel : "录入人",
- readOnly:true
- }, {
- format : "Y-m-d",
- xtype : "datefield",
- name : "os_date",
- fieldLabel : "录入日期",
- readOnly:true
- }
- ]
- });
|