Browse Source

平台对账单

zhuth 7 years ago
parent
commit
15a0f548cd

+ 2 - 2
frontend/saas-web/app/view/purchase/b2b/reconciliation/FormPanel.js

@@ -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', {
         xtype: 'button',
         text: '不同意',
         bind: {
-           hidden: '{Hidden}'
+           hidden: '{!showButtons}'
         },
         handler: 'disagree'
     }],

+ 3 - 0
frontend/saas-web/app/view/purchase/b2b/reconciliation/FormPanelController.js

@@ -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()

+ 3 - 3
frontend/saas-web/app/view/purchase/b2b/reconciliation/FormPanelModel.js

@@ -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';
             }
         }
     }