Browse Source

代码提交

hy 7 years ago
parent
commit
9b970d65e0

+ 2 - 24
frontend/saas-web/app/view/document/kind/Kind.js

@@ -127,11 +127,11 @@ Ext.define('saas.view.document.kind.Kind', {
         },
         bankinformation:{
             columns: [{
-                text: '账户',
+                text: '账户编号',
                 dataIndex: 'bk_bankcode',
                 flex: 1
             },{
-                text: '名称',
+                text: '账户名称',
                 dataIndex: 'bk_bankname',
                 flex: 1
             },{
@@ -249,28 +249,6 @@ Ext.define('saas.view.document.kind.Kind', {
             reqUrl:'/api/account/role/save',
             updateUrl:'/api/account/role/update',
         },
-        accountinformation:{
-            columns: [{
-                text: '账户',
-                dataIndex: 'wh_code',
-                width: 200
-            },{
-                text: '账户',
-                dataIndex: 'wh_description',
-                width: 200
-            },{
-                text: '账户',
-                dataIndex: 'wh_type',
-                width: 200
-            },{  
-                text: '账户',
-                dataIndex: 'wh_status',
-                hidden:true,
-            }],
-            keyField:'id',
-            reqUrl: '/api/document/warehouse/save',
-            delUrl: '/api/document/warehouse/delete'
-        },
         warehouse:{
             columns: [{
                 text: '编号',

+ 22 - 2
frontend/saas-web/app/view/sale/sale/FormPanel.js

@@ -52,11 +52,31 @@ Ext.define('saas.view.sale.sale.FormPanel', {
         fieldLabel : "客户名称",
         allowBlank : false
     }, {
-        xtype : "textfield", 
         name : "sa_toplace", 
+        editable:false,
+        xtype : "remotecombo", 
+        storeUrl:'/api/document/address/getCombo',
         fieldLabel : "交货地址", 
+        allowBlank : false, 
         columnWidth : 0.5,
-        allowBlank : false
+        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:'address',
+                belong:document.etc['address'],
+                _parent:form,
+                _combo:this.ownerCmp,
+                record:null,
+                session: true
+            });
+            this.dialog.show();
+        }
     }, {
         name : "detailGridField", 
         xtype : "detailGridField",