|
|
@@ -49,12 +49,10 @@ Ext.define('saas.view.money.verification.FormPanel', {
|
|
|
],
|
|
|
listeners:{
|
|
|
beforerender:function(f){
|
|
|
- f.firstLoad=true;
|
|
|
- },
|
|
|
- change:function(f){
|
|
|
- if(f.bindError){
|
|
|
- f.setValue(f.defaultValue);
|
|
|
- f.bindError = false
|
|
|
+ f.firstLoad = true;
|
|
|
+ if(f.ownerCt.initId!=0){
|
|
|
+ f.setReadOnly(true);
|
|
|
+ f.setDisabled(true);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -183,7 +181,7 @@ Ext.define('saas.view.money.verification.FormPanel', {
|
|
|
},
|
|
|
detail2: {
|
|
|
xtype: "detailGridField",
|
|
|
- storeModel: 'saas.model.money.Verification1',
|
|
|
+ storeModel: 'saas.model.money.Verification2',
|
|
|
detnoColumn: 'vcd_detno',
|
|
|
deleteDetailUrl: '/api/money/verification/deleteDetail2',
|
|
|
columnWidth: 1,
|
|
|
@@ -550,8 +548,10 @@ Ext.define('saas.view.money.verification.FormPanel', {
|
|
|
'ifnull(sl_vendid,0)={vc_vendid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0'],
|
|
|
receivable_offset_payable: ['ifnull(sl_custid,0)={vc_custid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0',
|
|
|
'ifnull(sl_vendid,0)={vc_vendid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0'],
|
|
|
- receivable_to_receivable: ['ifnull(sl_custid,0)={vc_outcustid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0'],
|
|
|
- payable_to_payable: ['ifnull(sl_vendtid,0)={vc_outvendid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0']
|
|
|
+ receivable_to_receivable: ['ifnull(sl_custid,0)={vc_outcustid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0 ' +
|
|
|
+ 'and sl_kind in (\'期初余额\',\'出货单\',\'销售退货单\')'],
|
|
|
+ payable_to_payable: ['ifnull(sl_vendtid,0)={vc_outvendid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0 ' +
|
|
|
+ 'and sl_kind in (\'期初余额\',\'采购验收单\',\'采购验退单\')']
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -605,7 +605,7 @@ Ext.define('saas.view.money.verification.FormPanel', {
|
|
|
FormUtil.loadData(me);
|
|
|
})
|
|
|
.catch(function(response) {
|
|
|
- saas.util.BaseUtil.showToast('错误:' + response.message);
|
|
|
+ saas.util.BaseUtil.showErrorToast('错误:' + response.message);
|
|
|
console.error(response);
|
|
|
});
|
|
|
}
|