|
|
@@ -89,6 +89,7 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
|
|
|
xtype: "detailGridField",
|
|
|
storeModel: 'saas.model.money.PayBalance1',
|
|
|
detnoColumn: 'pd_detno',
|
|
|
+ allowEmpty: true,
|
|
|
deleteDetailUrl: '/api/money/paybalance/deleteDetail1/',
|
|
|
columns: [{
|
|
|
text: 'ID',
|
|
|
@@ -114,30 +115,30 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
|
|
|
text: '资金账户',
|
|
|
dataIndex: 'pd_bankname',
|
|
|
editable:false,
|
|
|
- // xtype : "remotecombo",
|
|
|
- // storeUrl:'/api/document/bankinformation/getCombo',
|
|
|
- // name : "bk_bankname",
|
|
|
- // fieldLabel : "资金账户",
|
|
|
- // allowBlank : false, //不能为空
|
|
|
- // columnWidth : 0.25,//布局
|
|
|
- // hiddenBtn:false,//true 则会关闭新增按钮功能
|
|
|
- // addHandler:function(b){
|
|
|
- // var document = Ext.create('saas.view.document.kind.Kind',{});
|
|
|
- // var form = this.ownerCmp.ownerCt;
|
|
|
- // this.dialog = form.getController().getView().add({
|
|
|
- // xtype: 'document-kind-childwin',
|
|
|
- // bind: {
|
|
|
- // title: '新增资金账户'
|
|
|
- // },
|
|
|
- // dataKind:'bankinformation',
|
|
|
- // belong:document.etc['bankinformation'],
|
|
|
- // _parent:form,
|
|
|
- // _combo:this.ownerCmp,
|
|
|
- // record:null,
|
|
|
- // session: true
|
|
|
- // });
|
|
|
- // this.dialog.show();
|
|
|
- // }
|
|
|
+ xtype : "remotecombo",
|
|
|
+ storeUrl:'/api/document/bankinformation/getCombo',
|
|
|
+ name : "bk_bankname",
|
|
|
+ fieldLabel : "资金账户",
|
|
|
+ allowBlank : false, //不能为空
|
|
|
+ columnWidth : 0.25,//布局
|
|
|
+ hiddenBtn:false,//true 则会关闭新增按钮功能
|
|
|
+ addHandler:function(b){
|
|
|
+ var document = Ext.create('saas.view.document.kind.Kind',{});
|
|
|
+ var form = this.ownerCmp.ownerCt;
|
|
|
+ this.dialog = form.getController().getView().add({
|
|
|
+ xtype: 'document-kind-childwin',
|
|
|
+ bind: {
|
|
|
+ title: '新增资金账户'
|
|
|
+ },
|
|
|
+ dataKind:'bankinformation',
|
|
|
+ belong:document.etc['bankinformation'],
|
|
|
+ _parent:form,
|
|
|
+ _combo:this.ownerCmp,
|
|
|
+ record:null,
|
|
|
+ session: true
|
|
|
+ });
|
|
|
+ this.dialog.show();
|
|
|
+ }
|
|
|
}, {
|
|
|
text: "付款金额",
|
|
|
dataIndex: "pd_amount",
|
|
|
@@ -190,14 +191,15 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
|
|
|
}
|
|
|
}]
|
|
|
}, {
|
|
|
- xtype:'button',
|
|
|
- text:'选择源单',
|
|
|
- width:100
|
|
|
-
|
|
|
+ xtype:'dbfindtrigger',
|
|
|
+ columnWidth: 1,
|
|
|
+ fieldLabel:'选择源单',
|
|
|
+ name: 'choseSource'
|
|
|
},{
|
|
|
xtype: "detailGridField",
|
|
|
storeModel: 'saas.model.money.PayBalance2',
|
|
|
detnoColumn: 'pbd_detno',
|
|
|
+ allowEmpty: true,
|
|
|
deleteDetailUrl: '/api/money/paybalance/deleteDetail2/',
|
|
|
columns: [{
|
|
|
text: 'ID',
|
|
|
@@ -255,7 +257,7 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
|
|
|
}
|
|
|
}, {
|
|
|
text: "已核销金额",
|
|
|
- dataIndex: "pb_remark",
|
|
|
+ dataIndex: "pb_havebalance",
|
|
|
// editor : {
|
|
|
// xtype : "numberfield",
|
|
|
// decimalPrecision: 2
|
|
|
@@ -275,7 +277,7 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
|
|
|
}
|
|
|
}, {
|
|
|
text: "未核销金额",
|
|
|
- dataIndex: "pb_remark",
|
|
|
+ dataIndex: "pb_pbdamount",
|
|
|
// editor : {
|
|
|
// xtype : "numberfield",
|
|
|
// decimalPrecision: 2
|