Browse Source

资金账户修改

hy 7 years ago
parent
commit
86a9860ac7

+ 13 - 1
frontend/saas-web/app/view/document/kind/ChildForm.js

@@ -89,6 +89,18 @@ Ext.define('KitchenSink.view.binding.ChildForm', {
                 name:'bk_thisamount',
                 allowBlank:false,
                 fieldLabel:'当前金额',
+            },{
+                xtype:'textfield',
+                name:'bk_type',
+                allowBlank:false,
+                fieldLabel:'账户类别',
+            },{
+                xtype:'datefield',
+                name:'bk_date',
+                readOnly:true,
+                fieldLabel:'建账日期',
+                format:'Y-m-d H:i:s',
+                value:new Date()
             }]
         },
         productbrand:{
@@ -274,7 +286,7 @@ Ext.define('KitchenSink.view.binding.ChildForm', {
         this.BaseUtil.request({
             url: belong.reqUrl,
             params: JSON.stringify(params),
-            method: 'POST',
+            method: 'POST'
         })
         .then(function(localJson) {
             me.setLoading(false);

+ 3 - 4
frontend/saas-web/app/view/document/kind/Kind.js

@@ -130,14 +130,13 @@ Ext.define('saas.view.document.kind.Kind', {
                 dataIndex: 'bk_bankname',
                 flex: 1
             },{
-                hidden:true,
                 xtype:'datecolumn',
-                text: '日期',
+                text: '建账日期',
+                format:'Y-m-d H:i:s',
                 dataIndex: 'bk_date',
                 flex: 1
             },{
-                hidden:true,
-                text: '账户类型',
+                text: '账户类别',
                 dataIndex: 'bk_type',
                 flex: 1
             },{

+ 2 - 1
frontend/saas-web/app/view/document/kind/KindModel.js

@@ -124,7 +124,8 @@ Ext.define('saas.view.document.kind.KindModel', {
                 {name: 'bk_type',  type: 'string'},
                 {name: 'bk_beginamount',  type: 'float'},
                 {name: 'bk_thisamount',  type: 'float'},
-                {name: 'bk_date',  type: 'date'}
+                {name: 'bk_date',  type: 'date'},
+                {name: 'updateTime', type: 'date'}
             ],
             proxy: {
                 type: 'ajax',