hy 7 anni fa
parent
commit
b14249ca20

+ 8 - 6
frontend/saas-web/app/view/core/dbfind/DbfindTrigger.js

@@ -67,11 +67,13 @@ Ext.define('saas.view.core.dbfind.DbfindTrigger', {
                     }
                 }
                 //加载数据
-                var data;
-                var dbCondition = [{
-                    type: 'condition',
-                    value:this.dbtplcondition,
-                }];
+                var data,dbCondition=[];
+                if(me.dbtplcondition){
+                    dbCondition = [{
+                        type: 'condition',
+                        value:me.dbtplcondition,
+                    }];
+                }
                 //添加默认条件
                 if(me.defaultCondition) {
                     dbCondition.push({
@@ -195,7 +197,7 @@ Ext.define('saas.view.core.dbfind.DbfindTrigger', {
                         }
                     }
                 }
-            }else{
+            }else if(count==0){
                 if(dbfinds&&dbfinds.length>0){
                     if(me.belong=='grid'){
                         for (let index = 0; index < dbfinds.length; index++) {

+ 2 - 6
frontend/saas-web/app/view/document/bom/FormPanel.js

@@ -62,13 +62,13 @@ Ext.define('saas.view.document.bom.FormPanel', {
             {
                 text : "ID", 
                 dataIndex : "id", 
-                width : 0, 
+                hidden : true, 
                 xtype : "numbercolumn"
             },
             {
                 text : "关联ID", 
                 dataIndex : "bd_bomid", 
-                width : 120, 
+                hidden : true,  
                 xtype : "numbercolumn"
             },
             {
@@ -77,7 +77,6 @@ Ext.define('saas.view.document.bom.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "bd_soncode", 
-                width : 120.0
             },
             {
                 text : "单位", 
@@ -85,7 +84,6 @@ Ext.define('saas.view.document.bom.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "bd_unit", 
-                width : 120.0
             },
             {
                 text : "单位用量", 
@@ -93,7 +91,6 @@ Ext.define('saas.view.document.bom.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "bd_baseqty", 
-                width : 120.0
             },
             {
                 text : "替代料", 
@@ -101,7 +98,6 @@ Ext.define('saas.view.document.bom.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "bd_replace", 
-                width : 120.0
             }]
     }],
 

+ 6 - 13
frontend/saas-web/app/view/document/customer/FormPanel.js

@@ -144,13 +144,13 @@ Ext.define('saas.view.document.customer.FormPanel', {
             {
                 text : "ID", 
                 dataIndex : "id", 
-                width : 0, 
+                hidden : true,  
                 xtype : "numbercolumn"
             },
             {
                 text : "关联ID", 
                 dataIndex : "cc_cuid", 
-                width : 0, 
+                hidden : true,  
                 xtype : "numbercolumn"
             },
             {
@@ -159,17 +159,16 @@ Ext.define('saas.view.document.customer.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "cc_name", 
-                width : 120.0, 
                 xtype : "", 
                 items : null
             },
             {
                 text : "电话", 
                 editor : {
-                    xtype : "textfield"
+                    hideTrigger:true,
+                    xtype : "numberfield"
                 },
                 dataIndex : "cc_tel", 
-                width : 120.0, 
                 xtype : "", 
                 items : null
             },
@@ -179,7 +178,6 @@ Ext.define('saas.view.document.customer.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "cc_qq", 
-                width : 120.0, 
                 xtype : "", 
                 items : null
             },
@@ -189,7 +187,6 @@ Ext.define('saas.view.document.customer.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "cc_email", 
-                width : 120.0, 
                 xtype : "", 
                 items : null
             },
@@ -235,13 +232,13 @@ Ext.define('saas.view.document.customer.FormPanel', {
             {
                 text : "ID", 
                 dataIndex : "id", 
-                width : 0, 
+                hidden : true, 
                 xtype : "numbercolumn"
             },
             {
                 text : "关联ID", 
                 dataIndex : "ca_cuid", 
-                width : 0, 
+                hidden : true,  
                 xtype : "numbercolumn"
             },
             {
@@ -250,7 +247,6 @@ Ext.define('saas.view.document.customer.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "ca_address", 
-                width : 120.0, 
                 xtype : "", 
                 items : null
             },  
@@ -260,7 +256,6 @@ Ext.define('saas.view.document.customer.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "ca_person", 
-                width : 120.0, 
                 xtype : "", 
                 items : null   
             },
@@ -270,7 +265,6 @@ Ext.define('saas.view.document.customer.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "ca_phone", 
-                width : 120.0, 
                 xtype : "", 
                 items : null   
             },
@@ -302,7 +296,6 @@ Ext.define('saas.view.document.customer.FormPanel', {
                     }
                 }, 
                 text : "是否默认地址", 
-                width : 200.0, 
                 dataIndex : "ca_default", 
                 xtype : "",
                 renderer: function (v, m, r) {

+ 11 - 4
frontend/saas-web/app/view/document/kind/ChildForm.js

@@ -143,12 +143,17 @@ Ext.define('KitchenSink.view.binding.ChildForm', {
                 xtype:'textfield',
                 fieldLabel: '仓库名称',
                 name: 'wh_description',
-                allowBlank:false
+                allowBlank:false    
+            },{
+                xtype:'textfield',
+                fieldLabel: '仓库类型',
+                name: 'wh_type',
+                allowBlank:false    
             },{
                 readOnly:true,
                 xtype:'textfield',
                 fieldLabel: '仓库状态',
-                name: 'wh_status',
+                name: 'wh_status',   
                 value:'已开启'
             },{
                 xtype:'hidden',
@@ -163,9 +168,11 @@ Ext.define('KitchenSink.view.binding.ChildForm', {
                 name:'id'
             },{
                 xtype:'textfield',
-                fieldLabel: '单据Caller',
+                fieldLabel: '单据名称',
                 name: 'mn_caller',
-                allowBlank:false
+                allowBlank:false,
+                editable:false,
+                readOnly:true
             },{
                 xtype:'textfield',
                 fieldLabel: '单据前缀',

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

@@ -173,7 +173,7 @@ Ext.define('saas.view.document.kind.Kind', {
         },
         maxnumbers:{
             columns: [{
-                text : "单据caller", 
+                text : "单据名称", 
                 width : 200.0, 
                 dataIndex : "mn_caller", 
                 xtype : "", 
@@ -196,7 +196,7 @@ Ext.define('saas.view.document.kind.Kind', {
                 xtype : "", 
             }],
             keyField:'id',
-            reqUrl:'http://192.168.253.31:8920/number/save'
+            reqUrl:'/api/commons/number/save'
         },
         warehouse:{
             columns: [{
@@ -208,9 +208,13 @@ Ext.define('saas.view.document.kind.Kind', {
                 dataIndex: 'wh_description',
                 width: 200
             },{
+                text: '仓库类型',
+                dataIndex: 'wh_type',
+                width: 200
+            },{  
                 text: '仓库状态码',
                 dataIndex: 'wh_status',
-                width: 0
+                hidden:true,
             },{
                 text: '仓库状态',
                 dataIndex: 'wh_statuscode',

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

@@ -180,6 +180,7 @@ Ext.define('saas.view.document.kind.KindModel', {
             fields:[
                 {name: 'id', type: 'int'},
                 {name: 'wh_code',  type: 'string'},
+                {name: 'wh_type',  type: 'string'},
                 {name: 'wh_description',  type: 'string'},
                 {name: 'wh_statuscode',  type: 'string'},
                 {name: 'wh_status',  type: 'string'}

+ 2 - 7
frontend/saas-web/app/view/document/vendor/FormPanel.js

@@ -142,13 +142,13 @@ Ext.define('saas.view.document.vendor.FormPanel', {
             {
                 text : "ID", 
                 dataIndex : "id", 
-                width : 0, 
+                hidden : true, 
                 xtype : "numbercolumn"
             },
             {
                 text : "关联ID", 
                 dataIndex : "vc_veid", 
-                width : 0, 
+                hidden : true, 
                 xtype : "numbercolumn"
             },
             {
@@ -157,7 +157,6 @@ Ext.define('saas.view.document.vendor.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "vc_name", 
-                width : 120.0, 
                 xtype : "", 
             },
             {
@@ -166,7 +165,6 @@ Ext.define('saas.view.document.vendor.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "vc_tel", 
-                width : 120.0, 
                 xtype : "", 
             },
             {
@@ -175,7 +173,6 @@ Ext.define('saas.view.document.vendor.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "vc_qq", 
-                width : 120.0, 
                 xtype : "", 
             },
             {
@@ -184,7 +181,6 @@ Ext.define('saas.view.document.vendor.FormPanel', {
                     xtype : "textfield"
                 },
                 dataIndex : "vc_email", 
-                width : 120.0, 
                 xtype : "", 
             },
             {
@@ -208,7 +204,6 @@ Ext.define('saas.view.document.vendor.FormPanel', {
                     }
                 }, 
                 text : "是否默认联系人", 
-                width : 200.0, 
                 dataIndex : "vc_default", 
                 xtype : "",
                 renderer: function (v, m, r) {

+ 5 - 10
frontend/saas-web/app/view/sys/maxnumbers/DataList.js

@@ -12,14 +12,14 @@ Ext.define('saas.view.sys.maxnumbers.DataList', {
     //工具类
     FormUtil: Ext.create('saas.util.FormUtil'),
     BaseUtil: Ext.create('saas.util.BaseUtil'),
-    dataUrl:'http://192.168.253.31:8920/number/list',
-    deleteUrl:'http://192.168.253.31:8920/number/delete/',
+    dataUrl:'/api/commons/number/list',                 
+    deleteUrl:'/api/commons/number/delete/',
 
     tbar: [{
         width: 150,
         name: 'mn_caller',
         xtype: 'textfield',
-        emptyText : '单据Caller'
+        emptyText : '单据名称'
     },{
         width: 150,
         name: 'mn_leadcode',
@@ -79,7 +79,7 @@ Ext.define('saas.view.sys.maxnumbers.DataList', {
         dataIndex : "id", 
         xtype : "numbercolumn", 
     },{
-        text : "单据caller", 
+        text : "单据名称", 
         width : 200.0, 
         dataIndex : "mn_caller", 
         xtype : "", 
@@ -231,18 +231,13 @@ Ext.define('saas.view.sys.maxnumbers.DataList', {
         if(columns.length>0 && columns[0].xtype!='actioncolumn'){
             return Ext.Array.insert(columns,0,[{
                 xtype:'actioncolumn',
-                width:70,
+                width:50,
                 dataIndex:'actioncolumn',
                 text:'操作',
                 items: [{
                     tooltip: '编辑',
                     iconCls: 'x-fa fa-pencil fa-fw',
                     scope:this
-                },{
-                    text:'删除',
-                    iconCls:'x-fa fa-trash-o fa-fw',
-                    tooltip: '删除',
-                    scope:this
                 }]
             }]);
         }

+ 2 - 2
frontend/saas-web/ext/packages/modern-locale/overrides/zh_CN/field/Field.js

@@ -3,10 +3,10 @@
  * 2017年10月12日
  */
 Ext.define('Ext.locale.zh_CN.field.Field', {
-    override: 'Ext.field.Field',
+    override: 'Ext.form.field.Text',
 
     config: {
-        requiredMessage: '必填项',
+        blankText: '该项未填写',
         validationMessage: '格式错误'
     }
 });