Browse Source

修改采购模块

zhoudw 7 years ago
parent
commit
9d60f29652

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

@@ -194,7 +194,8 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
                 width : 120.0,
                 editor : {
                     xtype : "numberfield",
-                    decimalPrecision: 8
+                    decimalPrecision: 8,
+                    minValue:0
                 },
                 renderer : function(v) {
                     var arr = (v + '.').split('.');

+ 4 - 32
frontend/saas-web/app/view/purchase/purchaseIn/FormPanel.js

@@ -215,36 +215,6 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
                 dataIndex : "pd_whcode",
                 hidden:true
             },
-            // {
-            //     text : "仓库", 
-            //     dataIndex : "pd_whname", 
-            //     width : 120.0, 
-            //     items : null,
-            //     editor : {
-            //         editable:false,
-            //         xtype : "remotecombo", 
-            //         storeUrl:'/api/document/warehouse/getCombo',
-            //         name : "wh_name", 
-            //         hiddenBtn:false,//true 则会关闭新增按钮功能
-            //         addHandler:function(b){
-            //             var document = Ext.create('saas.view.document.kind.Kind',{});
-            //             var form =this.ownerCmp.ownerCt.ownerCmp.ownerCt;
-            //             this.dialog = form.getController().getView().add({
-            //                 xtype: 'document-kind-childwin',
-            //                 bind: {
-            //                     title: '新增供应商类型'
-            //                 },
-            //                 dataKind:'warehouse',
-            //                 belong:document.etc['warehouse'],
-            //                 _parent:form,
-            //                 _combo:this.ownerCmp,
-            //                 record:null,
-            //                 session: true
-            //             });
-            //             this.dialog.show();
-            //         }
-            //     }
-            // },
             {
                 text : "仓库", 
                 dataIndex : "pd_whname", 
@@ -267,8 +237,10 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
             {
                 text : "单价",
                 editor : {
-                    xtype : "numberfield"
-                }, 
+                    xtype : "numberfield",
+                    decimalPrecision: 8,
+                    minValue:0
+                },
                 dataIndex : "pd_orderprice", 
                 width : 120.0, 
                 xtype : "numbercolumn"

+ 1 - 1
frontend/saas-web/app/view/purchase/purchaseIn/FormPanelController.js

@@ -22,7 +22,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanelController', {
                         addTitle: '供应商资料',
                         defaultCondition:"ve_statuscode='OPEN'",
                         dbfinds:[{
-                            from:'ve_id',to:'pi_vendid'
+                            from:'id',to:'pi_vendid'
                         },{
                             from:'ve_code',to:'pi_vendcode'
                         },{

+ 3 - 1
frontend/saas-web/app/view/purchase/purchaseOut/FormPanel.js

@@ -205,7 +205,9 @@ Ext.define('saas.view.purchase.purchaseOut.FormPanel', {
             {
                 text : "单价",
                 editor : {
-                    xtype : "numberfield"
+                    xtype : "numberfield",
+                    decimalPrecision: 8,
+                    minValue:0
                 },  
                 dataIndex : "pd_orderprice", 
                 width : 120.0, 

+ 2 - 1
frontend/saas-web/app/view/stock/otherIn/FormPanel.js

@@ -212,7 +212,8 @@ Ext.define('saas.view.stock.otherIn.FormPanel', {
                 width : 120.0,
                 editor : {
                     xtype : "numberfield",
-                    decimalPrecision: 8
+                    decimalPrecision: 8,
+                    minValue:0
                 },
                 renderer : function(v) {
                     var arr = (v + '.').split('.');

+ 2 - 1
frontend/saas-web/app/view/stock/otherOut/FormPanel.js

@@ -207,7 +207,8 @@ Ext.define('saas.view.stock.otherOut.FormPanel', {
                 dataIndex: "pd_orderprice",
                 editor : {
                     xtype : "numberfield",
-                    decimalPrecision: 8
+                    decimalPrecision: 8,
+                    minValue:0
                 },
                 renderer : function(v) {
                     var arr = (v + '.').split('.');