@@ -18,7 +18,7 @@ Ext.define('saas.view.purchase.b2b.reconciliation.FormPanel', {
xtype: 'button',
text: '确认',
bind: {
- hidden: '{Hidden}'
+ hidden: '{!showButtons}'
},
handler: 'agree'
},{
@@ -26,7 +26,7 @@ Ext.define('saas.view.purchase.b2b.reconciliation.FormPanel', {
text: '不同意',
handler: 'disagree'
}],
@@ -17,13 +17,16 @@ Ext.define('saas.view.purchase.b2b.reconciliation.FormPanelController', {
sendUrl:function(url){
var me = this;
+ var view = me.getView();
var id = me.getViewModel().getData().id;
+ view.setLoading(true);
saas.util.BaseUtil.request({
url: url + id,
params: '',
method: 'POST',
})
.then(function() {
+ view.setLoading(false);
//解析参数
saas.util.BaseUtil.showSuccessToast('操作成功');
me.refresh()
@@ -24,10 +24,10 @@ Ext.define('saas.view.purchase.b2b.reconciliation.FormPanelModel', {
formulas:{
- Hidden:{
- bind:'{ac_confirmstatus}',
+ showButtons:{
+ bind:'{ac_confirmstatuscode}',
get:function(value){
- return !!value;
+ return value == 'UNCONFIRM';
}