Kaynağa Gözat

Merge branch 'dev' of ssh://10.10.100.21/source/saas-platform into dev

jinsy 7 yıl önce
ebeveyn
işleme
0aa0fbbe7a
22 değiştirilmiş dosya ile 287 ekleme ve 135 silme
  1. 1 1
      applications/document/document-dto/src/main/java/com.usoftchina.saas.document.dto/ProductDTO.java
  2. 1 1
      applications/document/document-server/src/main/resources/mapper/ProductMapper.xml
  3. 5 5
      frontend/saas-web/app/view/document/product/FormPanel.js
  4. 5 6
      frontend/saas-web/app/view/purchase/purchase/FormPanel.js
  5. 8 2
      frontend/saas-web/app/view/purchase/purchase/FormPanelController.js
  6. 8 1
      frontend/saas-web/app/view/purchase/purchase/QueryPanelController.js
  7. 7 0
      frontend/saas-web/app/view/purchase/purchaseIn/FormPanelController.js
  8. 8 1
      frontend/saas-web/app/view/purchase/purchaseIn/QueryPanelController.js
  9. 7 0
      frontend/saas-web/app/view/purchase/purchaseOut/FormPanelController.js
  10. 8 1
      frontend/saas-web/app/view/purchase/purchaseOut/QueryPanelController.js
  11. 13 5
      frontend/saas-web/app/view/sale/sale/FormPanel.js
  12. 66 0
      frontend/saas-web/app/view/sale/sale/FormPanelController.js
  13. 7 0
      frontend/saas-web/app/view/stock/appropriationInOut/FormPanelController.js
  14. 8 1
      frontend/saas-web/app/view/stock/appropriationInOut/QueryPanelController.js
  15. 4 4
      frontend/saas-web/app/view/stock/make/FormPanel.js
  16. 8 100
      frontend/saas-web/app/view/stock/make/FormPanelController.js
  17. 23 3
      frontend/saas-web/app/view/stock/make/QueryPanel.js
  18. 69 1
      frontend/saas-web/app/view/stock/make/QueryPanelController.js
  19. 8 1
      frontend/saas-web/app/view/stock/otherIn/FormPanelController.js
  20. 8 1
      frontend/saas-web/app/view/stock/otherIn/QueryPanelController.js
  21. 7 0
      frontend/saas-web/app/view/stock/otherOut/FormPanelController.js
  22. 8 1
      frontend/saas-web/app/view/stock/otherOut/QueryPanelController.js

+ 1 - 1
applications/document/document-dto/src/main/java/com.usoftchina.saas.document.dto/ProductDTO.java

@@ -40,7 +40,7 @@ public class ProductDTO implements Serializable {
     protected Date updateTime;
     protected String updaterName;
     //productonhand
-    private Long po_onhand;
+    private Double po_onhand;
 
 
 

+ 1 - 1
applications/document/document-server/src/main/resources/mapper/ProductMapper.xml

@@ -45,7 +45,7 @@
         <result column="pr_whcode" property="pr_whcode" jdbcType="VARCHAR" />
         <result column="pr_whname" property="pr_whname" jdbcType="VARCHAR" />
         <!--productonhand-->
-        <result column="po_onhand" property="po_onhand" jdbcType="INTEGER" />
+        <result column="po_onhand" property="po_onhand" jdbcType="DOUBLE" />
         <!--productonhand-->
         <result column="pr_kind" property="pr_kind" jdbcType="VARCHAR" />
         <result column="pr_orispeccode" property="pr_orispeccode" jdbcType="VARCHAR" />

+ 5 - 5
frontend/saas-web/app/view/document/product/FormPanel.js

@@ -13,12 +13,12 @@ Ext.define('saas.view.document.product.FormPanel', {
     _codeField: 'pr_code',
     _statusField: 'pr_status',
     _statusCodeField: 'pr_statuscode',
-    _readUrl:'http://192.168.253.31:8560/api/document/product/read/',
+    _readUrl:'/api/document/product/read/',
     //_saveUrl:'/api/document/product/save',
-    _saveUrl:'http://192.168.253.31:8560/api/document/product/save',
-    _openUrl:'http://192.168.253.31:8560/api/document/product/open',
-    _closeUrl:'http://192.168.253.31:8560/api/document/product/close',
-    _deleteUrl:'http://192.168.253.31:8560/api/document/product/delete/',
+    _saveUrl:'/api/document/product/save',
+    _openUrl:'/api/document/product/open',
+    _closeUrl:'/api/document/product/close',
+    _deleteUrl:'/api/document/product/delete/',
     _deleteMsg:'删除的物料将不能恢复,请确认是否删除?',
     initId:0,
 

+ 5 - 6
frontend/saas-web/app/view/purchase/purchase/FormPanel.js

@@ -305,6 +305,11 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
                 width : 120.0
             }
         ]
+    }, {
+        xtype : "textfield", 
+        name : "pu_remark", 
+        fieldLabel : "备注", 
+        columnWidth : 1
     }, {
         xtype : "datefield", 
         name : "pu_date", 
@@ -331,12 +336,6 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
         name : "pu_buyerid", 
         fieldLabel : "采购员ID"
     },
-    {
-        xtype : "textfield", 
-        name : "pu_remark", 
-        fieldLabel : "备注", 
-        columnWidth : 1
-    },
     {
         xtype : "textfield", 
         name : "pu_recorder", 

+ 8 - 2
frontend/saas-web/app/view/purchase/purchase/FormPanelController.js

@@ -91,14 +91,13 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
                 }
             },
             // 主表-采购员名称
-            'dbfindtrigger[name=pu_buyername]':{
+            'dbfindtrigger[name=pu_buyercode]':{
                 beforerender:function(f){
                     Ext.apply(f,{
                         //数据接口
                         dataUrl:'/api/document/employee/list',
                         addXtype: 'document-vendor-formpanel',
                         addTitle: '供应商资料',
-                        defaultCondition:"ve_statuscode='OPEN'",
                         //赋值 
                         dbfinds:[{
                             from:'id',to:'pu_buyerid',ignore:true
@@ -239,11 +238,18 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
                             align:'end'
                         },{
                             "text": "类型",

+ 8 - 1
frontend/saas-web/app/view/purchase/purchase/QueryPanelController.js

@@ -144,12 +144,19 @@ Ext.define('saas.view.purchase.purchase.QueryPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
-                            align: 'end'
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
+                            align:'end'
                         },{
                             "text": "类型",
                             "dataIndex": "pr_kind",

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

@@ -172,11 +172,18 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
                             align:'end'
                         },{
                             "text": "类型",

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

@@ -148,12 +148,19 @@ Ext.define('saas.view.purchase.purchaseIn.QueryPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
-                            align: 'end'
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
+                            align:'end'
                         },{
                             "text": "类型",
                             "dataIndex": "pr_kind",

+ 7 - 0
frontend/saas-web/app/view/purchase/purchaseOut/FormPanelController.js

@@ -171,11 +171,18 @@ Ext.define('saas.view.purchase.purchaseOut.FormPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
                             align:'end'
                         },{
                             "text": "类型",

+ 8 - 1
frontend/saas-web/app/view/purchase/purchaseOut/QueryPanelController.js

@@ -144,12 +144,19 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
-                            align: 'end'
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
+                            align:'end'
                         },{
                             "text": "类型",
                             "dataIndex": "pr_kind",

+ 13 - 5
frontend/saas-web/app/view/sale/sale/FormPanel.js

@@ -255,22 +255,30 @@ Ext.define('saas.view.sale.sale.FormPanel', {
                 },
             }
         ]
+    }, {
+        xtype : "textfield", 
+        name : "sa_remark", 
+        fieldLabel : "备注", 
+        columnWidth : 1
     }, {
         xtype : "datefield", 
         name : "sa_date", 
         fieldLabel : "单据日期", 
-        allowBlank : false, 
         defaultValue: new Date()
     }, {
         xtype : "textfield", 
         name : "sa_total", 
         fieldLabel : "单据金额",
         readOnly:true
-    }, {
+    },{
+        xtype : "dbfindtrigger", 
+        name : "sa_sellercode", 
+        fieldLabel : "业务员编号",
+    },{
         xtype : "textfield", 
-        name : "sa_remark", 
-        fieldLabel : "备注", 
-        columnWidth : 1
+        name : "sa_seller", 
+        fieldLabel : "业务员",
+        readOnly:true
     }, {
         xtype : 'textfield', 
         name : 'sa_sendstatus', 

+ 66 - 0
frontend/saas-web/app/view/sale/sale/FormPanelController.js

@@ -112,6 +112,72 @@ Ext.define('saas.view.sale.sale.FormPanelController', {
                     }) ;   
 
                 }
+            },// 主表-采购员名称
+            'dbfindtrigger[name=sa_sellercode]':{
+                beforerender:function(f){
+                    Ext.apply(f,{
+                        //数据接口
+                        dataUrl:'/api/document/employee/list',
+                        addXtype: 'document-vendor-formpanel',
+                        addTitle: '供应商资料',
+                        //赋值 
+                        dbfinds:[{
+                            from:'id',to:'id',ignore:true
+                        },{
+                            from:'em_code',to:'sa_sellercode'
+                        },{
+                            from:'em_name',to:'sa_seller'
+                        }],
+                        //联想设置
+                        dbtpls:[{
+                            field:'em_code',width:100
+                        },{
+                            field:'em_name',width:100
+                        }],
+                        defaultCondition: "em_class='正式'",
+                        dbSearchFields:[{
+                            emptyText:'输入人员编号或名称',
+                            xtype : "textfield", 
+                            name : "search", 
+                            getCondition: function(v) {
+                                return "(upper(em_code) like '%"+v.toUpperCase()+"%' or upper(em_name) like '%"+v.toUpperCase()+"%')";
+                            },
+                            allowBlank : true, 
+                            columnWidth : 0.25
+                        }],
+                        //放大镜窗口列表
+                        dbColumns:[{
+                            "text": "人员ID",
+                            "hidden": true,
+                            "dataIndex": "id",
+                            "width": 0,
+                            "xtype": "numbercolumn"
+                        },{
+                            "text": "人员编号",
+                            "dataIndex": "em_code",
+                            "width": 200
+                        }, {
+                            "text": "人员名称",
+                            "dataIndex": "em_name",
+                            "width": 200
+                        }, {
+                            "text": "类型",
+                            "dataIndex": "em_class",
+                            "width": 180,
+                            "items": null
+                        }, {
+                            "text": "手机",
+                            "dataIndex": "em_mobile",
+                            "width": 180,
+                            "items": null
+                        }, {
+                            "text": "邮箱",
+                            "dataIndex": "em_email",
+                            "width": 180,
+                            "items": null
+                        }]
+                    }) ;   
+                }
             },
             //放大镜赋值关系 以及 tpl模板
             'multidbfindtrigger[name=sd_prodcode]':{

+ 7 - 0
frontend/saas-web/app/view/stock/appropriationInOut/FormPanelController.js

@@ -251,11 +251,18 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
                             align:'end'
                         },{
                             "text": "类型",

+ 8 - 1
frontend/saas-web/app/view/stock/appropriationInOut/QueryPanelController.js

@@ -148,12 +148,19 @@ Ext.define('saas.view.stock.appropriationInOut.QueryPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
-                            align: 'end'
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
+                            align:'end'
                         },{
                             "text": "类型",
                             "dataIndex": "pr_kind",

+ 4 - 4
frontend/saas-web/app/view/stock/make/FormPanel.js

@@ -109,7 +109,7 @@ Ext.define('saas.view.stock.make.FormPanel', {
     },{
         xtype : "numberfield", 
         name : "ma_price", 
-        fieldLabel : "单位成本",
+        fieldLabel : "单",
         readOnly:true,
         editable:false,
         decimals:8,
@@ -119,7 +119,7 @@ Ext.define('saas.view.stock.make.FormPanel', {
         name : "ma_total",
         readOnly:true,
         editable:false, 
-        fieldLabel : "总成本",
+        fieldLabel : "金额",
         decimals:2,
         columnWidth: 0.25
     },
@@ -284,7 +284,7 @@ Ext.define('saas.view.stock.make.FormPanel', {
                     xtype : "dbfindtrigger"
                 }
             },{
-                text : "出库单位成本", 
+                text : "成本单价", 
                 dataIndex : "mm_price", 
                 xtype: 'numbercolumn',
                 width : 120.0,
@@ -303,7 +303,7 @@ Ext.define('saas.view.stock.make.FormPanel', {
                     return Ext.util.Format.number(v, format);
                 }
             },            {
-                text : "出库成本", 
+                text : "成本金额", 
                 xtype: 'numbercolumn',
                 dataIndex : "mm_amount", 
                 width : 120.0, 

+ 8 - 100
frontend/saas-web/app/view/stock/make/FormPanelController.js

@@ -145,7 +145,7 @@ Ext.define('saas.view.stock.make.FormPanelController', {
                         },{
                             from:'pr_spec',to:'pr_spec'
                         },{
-                            from:'pr_unit',to:'pr_spec'
+                            from:'pr_unit',to:'pr_unit'
                         }],
                         //联想设置
                         dbtpls:[{
@@ -201,11 +201,18 @@ Ext.define('saas.view.stock.make.FormPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
                             align:'end'
                         },{
                             "text": "类型",
@@ -359,106 +366,7 @@ Ext.define('saas.view.stock.make.FormPanelController', {
                 }
             },
             //从表多选放大镜赋值关系 以及 tpl模板
-            'multidbfindtrigger[name=pd_prodcode]':{
-                beforerender:function(f){
-                    Ext.apply(f,{
-                        //数据接口
-                        dataUrl:'/api/document/product/list',
-                        addXtype: 'document-product-formpanel',
-                        addTitle: '物料资料',
-                        //放大镜赋值设置
-                        dbfinds:[{
-                            from:'pr_code',to:'pd_prodcode'
-                        },{
-                            from:'pr_unit',to:'pd_unit'
-                        }],
-                        //联想设置
-                        dbtpls:[{
-                            field:'pr_code',width:100
-                        },{
-                            field:'pr_detail',width:100
-                        }],
-                        defaultCondition:"pr_statuscode='OPEN'",
-                        //窗口字段设置
-                        dbSearchFields:[{
-                            emptyText:'输入物料编号、名称或规格',
-                            xtype : "textfield", 
-                            name : "search", 
-                            width: 200,
-                            getCondition: function(v) {
-                                return "(upper(pr_spec) like '%" + v.toUpperCase()+"%' or upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%')";
-                            },
-                            allowBlank : true, 
-                            columnWidth : 0.25
-                        }],
-                        //窗口列设置
-                        dbColumns:[{
-                            "text": "物料ID",
-                            "hidden": true,
-                            "dataIndex": "id",
-                        }, {
-                            "text": "物料编号",       
-                            "dataIndex": "pr_code",
-                            "width": 200,
-                        }, {
-                            "text": "物料名称",
-                            "width": 200,
-                            "dataIndex": "pr_detail",
-                        }, {
-                            "text": "规格",
-                            "dataIndex": "pr_spec",
-                            "width": 100,
-                        }, {
-                            "text": "单位",
-                            "dataIndex": "pr_unit",
-                            "width": 100,
-                        },{
-                            "text": "仓库id",
-                            "dataIndex": "pr_whid",
-                            "hidden": true,
-                        },{
-                            "text": "仓库编号",
-                            "dataIndex": "pr_whcode",
-                            "hidden": true,
-                        },{
-                            "text": "仓库",
-                            "dataIndex": "pr_whname",
-                            "width": 200,
-                        },{
-                            "text": "总库存数",
-                            "dataIndex": "po_onhand",
-                            "width": 100,
-                            align: 'end'
-                        },{
-                            "text": "类型",
-                            "dataIndex": "pr_kind",
-                            "width": 100,
-                        },{
-                            "text": "型号",
-                            "dataIndex": "pr_orispeccode",
-                            "width": 100,
-                        },{
-                            "text": "品牌",
-                            "dataIndex": "pr_brand",
-                            "width": 100,
-                        },{
-                            "text": "供应商",
-                            "dataIndex": "pr_vendname",
-                            "width": 100,
-                        },{
-                            "text": "最小包装",
-                            "dataIndex": "pr_zxbzs",
-                            "width": 100,
-                            align: 'end'
-                        },{
-                            "text": "L/T",
-                            "dataIndex": "pr_leadtime",
-                            "width": 100,
-                        }]
-                    }) ;   
 
-                }
-            }
         });
     },
 

+ 23 - 3
frontend/saas-web/app/view/stock/make/QueryPanel.js

@@ -20,11 +20,31 @@ Ext.define('saas.view.stock.make.QueryPanel', {
         name: 'ma_code',
         fieldLabel: '单据编号'
     },{
-        xtype: 'textfield',
+        xtype: 'combobox',
         name: 'ma_type',
-        fieldLabel: '类型'
+        fieldLabel: '类型',
+        allowBlank: true,
+        editable:false,
+        columnWidth: 0.25,
+        queryMode: 'local',
+        displayField: 'name',
+        valueField: 'value',
+        store: Ext.create('Ext.data.ArrayStore', {
+            fields: ['name', 'value'],
+            data: [
+                ["组装", "组装"],
+                ["拆件", "拆件"]
+            ]
+        }),
+        getCondition: function(value) {
+            if(value == 'ALL') {
+                return '1=1';
+            }else {
+                return 'ma_type=\'' + value + '\'';
+            }
+        }
     },{
-        xtype: 'textfield',
+        xtype: 'dbfindtrigger',
         name: 'ma_prodcode',
         fieldLabel: '产品编号'
     }],

+ 69 - 1
frontend/saas-web/app/view/stock/make/QueryPanelController.js

@@ -182,7 +182,75 @@ Ext.define('saas.view.stock.make.QueryPanelController', {
                     }) ;   
 
                 }
-            }
+            },
+            'dbfindtrigger[name=ma_prodcode]':{
+                beforerender:function(f){
+                    Ext.apply(f,{
+                        //数据接口
+                        dataUrl:'/api/document/bom/list',
+                        addXtype: 'document-bom-formpanel',
+                        addTitle: 'BOM资料',
+                        //放大镜赋值设置
+                        dbfinds:[{
+                            from:'bo_motherid',to:'ma_prodid'
+                        },{
+                            from:'bo_mothercode',to:'ma_prodcode'
+                        },{
+                            from:'bo_mothername',to:'ma_proddetail'
+                        },{
+                            from:'pr_spec',to:'ma_prodspec'
+                        },{
+                            from:'bo_version',to:'ma_version'
+                        }],
+                        //联想设置
+                        dbtpls:[{
+                            field:'bo_mothercode',width:100
+                        },{
+                            field:'bo_mothername',width:100
+                        }],
+                        aftertrigger:function(f,record){
+                            me.getBomData(record.data.id)
+                        },
+                        defaultCondition:"bo_statuscode='OPEN'",
+                        //窗口字段设置
+                        dbSearchFields:[{
+                            emptyText:'输入BOM编号或名称',
+                            xtype : "textfield", 
+                            name : "search", 
+                            width: 200,
+                            getCondition: function(v) {
+                                return "(upper(bo_mothercode) like '%"+v.toUpperCase()+"%' or upper(bo_mothername) like '%"+v.toUpperCase()+"%')";
+                            },
+                            allowBlank : true, 
+                            columnWidth : 0.25
+                        }],
+                        //窗口列设置
+                        dbColumns:[{
+                            "text": "物料ID",
+                            "hidden": true,
+                            "dataIndex": "id",
+                        }, {
+                            "text": "产品编号",       
+                            "dataIndex": "bo_mothercode",
+                            "width": 200,
+                        }, {
+                            "text": "产品名称",
+                            "width": 200,
+                            "dataIndex": "bo_mothername",
+                        }, {
+                            "text": "产品规格",
+                            "width": 200,
+                            "dataIndex": "pr_spec",
+                        }, {
+                            "text": "版本",
+                            "width": 200,
+                            "dataIndex": "bo_version",
+                        }]
+                    }) ;   
+
+                }
+            },
+
         });
 
     }

+ 8 - 1
frontend/saas-web/app/view/stock/otherIn/FormPanelController.js

@@ -251,12 +251,19 @@ Ext.define('saas.view.stock.otherIn.FormPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
-                            align: 'end'
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
+                            align:'end'
                         },{
                             "text": "类型",
                             "dataIndex": "pr_kind",

+ 8 - 1
frontend/saas-web/app/view/stock/otherIn/QueryPanelController.js

@@ -148,12 +148,19 @@ Ext.define('saas.view.stock.otherIn.QueryPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
-                            align: 'end'
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
+                            align:'end'
                         },{
                             "text": "类型",
                             "dataIndex": "pr_kind",

+ 7 - 0
frontend/saas-web/app/view/stock/otherOut/FormPanelController.js

@@ -242,11 +242,18 @@ Ext.define('saas.view.stock.otherOut.FormPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
                             align:'end'
                         },{
                             "text": "类型",

+ 8 - 1
frontend/saas-web/app/view/stock/otherOut/QueryPanelController.js

@@ -148,12 +148,19 @@ Ext.define('saas.view.stock.otherOut.QueryPanelController', {
                             "text": "仓库",
                             "dataIndex": "pr_whname",
                             "width": 200,
+                            "hidden": true
                         },{
                             "text": "总库存数",
                             "dataIndex": "po_onhand",
                             "width": 100,
                             xtype: 'numbercolumn',
-                            align: 'end'
+                            renderer : function(v) {
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length)).fill('0');
+                                var format = '0,000.' + xr.join();
+                                return Ext.util.Format.number(v, format);
+                            },                            
+                            align:'end'
                         },{
                             "text": "类型",
                             "dataIndex": "pr_kind",