Browse Source

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

zhoudw 7 years ago
parent
commit
734d40a411

+ 1 - 1
applications/sale/sale-server/src/main/resources/mapper/SaleMapper.xml

@@ -402,7 +402,7 @@
     and purchasedetail.companyid= #{companyid}
   </select>
   <select id="checkCustomer" parameterType="long" resultType="integer">
-    select count(1) from sale left join  customer on sa_custid=cu_id  where  cu_statuscode='CLOSE' and cu_statuscode='CLOSE'
+    select count(1) from sale left join  customer on sa_custid=cu_id  where  cu_statuscode='CLOSE' and sa_id=#{id}
   </select>
   
   <!-- 销售订单转采购单-->

+ 4 - 2
frontend/saas-web/app/Application.scss

@@ -230,6 +230,10 @@ body.launching {
 .x-column-header {
   background: #E5F7FF;
   border-right: 1px solid #ABDAFF;
+
+  &:last-child {
+    border: none;
+  }
 }
 
 .x-column-header-text-inner {
@@ -305,8 +309,6 @@ body.launching {
   background-color: #ffefbb;
 }
 
-
-
 /*滚动条样式*/
 div::-webkit-scrollbar {
   width: 10px;

+ 5 - 3
frontend/saas-web/app/view/core/query/QueryGridPanel.js

@@ -282,9 +282,11 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
             }
             if(c.xtype == 'datecolumn') {
                 Ext.applyIf(c, {
-                    exportStyle: {
-                        format: 'Medium Date'
-                    },
+                    format:'Y-m-d',
+                    //只导出年月日
+                    // exportStyle: {
+                    //     format: 'Medium Date'
+                    // },
                     exportRenderer: function (value) {
                         return Ext.Date.format(new Date(value), 'Y-m-d');
                     }

+ 17 - 0
frontend/saas-web/app/view/core/report/ReportPanel.js

@@ -92,6 +92,8 @@ Ext.define('saas.view.core.report.ReportPanel', {
                             }, {
                                 text: 'Excel xml (包含分组合计)',
                                 cfg: {
+                                    type: 'excel03',
+                                    ext: 'xml',
                                     includeGroups: true,
                                     includeSummary: true
                                 }
@@ -326,6 +328,10 @@ Ext.define('saas.view.core.report.ReportPanel', {
                     }],
                     exportRenderer: function (value) {
                         return Ext.Date.format(new Date(value), 'Y-m-d');
+                    },
+                    // 下面这个方法不写会造成日期列求和,原因不明- -!
+                    exportSummaryRenderer: function(v) {
+                        return v;
                     }
                 })
             }else if(c.xtype == 'numbercolumn') {
@@ -336,6 +342,13 @@ Ext.define('saas.view.core.report.ReportPanel', {
                         var xr = (new Array(arr[1].length)).fill('0');
                         var format = '0.' + xr.join();
                         return Ext.util.Format.number(v, format);
+                    },
+                    exportRenderer: function (value) {
+                        return value || 0;
+                    },
+                    // 下面这个方法不写会造成求和数据错误,原因不明- -!
+                    exportSummaryRenderer: function(v) {
+                        return v || 0;
                     }
                 });
             }
@@ -470,6 +483,8 @@ Ext.define('saas.view.core.report.ReportPanel', {
             type = 'number';
         }else if(me.isContainsAny(xtypes, ['datefield', 'condatefield'])) {
             type = 'date';
+        }else if(me.isContainsAny(xtypes, ['dbfindtrigger'])) {
+            type = 'string';
         }else if(me.isContainsAny(xtypes, ['combobox', 'multicombo', 'combo', 'radiofield', 'radio'])) {
             type = 'enum';
         }else {
@@ -524,6 +539,8 @@ Ext.define('saas.view.core.report.ReportPanel', {
             to = value.to;
 
             conditionValue = Ext.Date.format(new Date(from), 'Y-m-d 00:00:00') + ',' + Ext.Date.format(new Date(to), 'Y-m-d 23:59:59');
+        }else if(me.isContainsAny(xtypes, ['dbfindtrigger'])) {
+            conditionValue = value;
         }else if(me.isContainsAny(xtypes, ['combobox', 'combo'])) {
             conditionValue = '\'' + value + '\'';
         }else if(me.isContainsAny(xtypes, ['multicombo'])) {

+ 42 - 11
frontend/saas-web/app/view/core/report/ReportPanel.scss

@@ -1,3 +1,5 @@
+$border-color: #999;
+
 .x-report-panel {
     
     .x-report-grid {
@@ -5,14 +7,14 @@
         .x-panel-bodyWrap {
 
             .x-panel-default-outer-border-trl {
-                border-color: #999 !important;
+                border-color: $border-color !important;
             }
 
             .x-grid-header-ct {
-                border-color: #999 !important;
+                border-color: $border-color !important;
 
                 .x-column-header {
-                    border-color: #999 !important;
+                    border-color: $border-color !important;
 
                     .x-column-header-text-inner {
                         font-weight: bold;
@@ -21,25 +23,54 @@
             }
 
             .x-grid-body {
-                border-color: #999 !important;
+                border-color: $border-color !important;
                 border-width: 1px;
-                
-                .x-grid-cell-inner {
-                    border-right: 1px solid #999;
-                    border-bottom: 1px solid #999;
+
+                .x-grid-row {
+                    .x-grid-cell-inner {
+                        border-right: 1px solid $border-color;
+                        border-bottom: 1px solid $border-color;
+                    }
+
+                    .x-grid-cell {
+                        &:last-child {
+                            .x-grid-cell-inner {
+                                border-right: none;
+                            }
+                        }
+                    }
+                }
+
+                .x-grid-item {
+                    &:first-child {
+                        .x-grid-group-hd {
+                            border-top: none;
+                        }
+                    }
                 }
             }
 
             .x-toolbar-docked-bottom {
-                border-color: #999 !important;
+                border-color: $border-color !important;
                 border-width: 1px !important;
             }
             .x-panel-default-outer-border-rl {
-                border-right-color: #999 !important;
+                border-right-color: $border-color !important;
                 border-right-width: 1px !important;
-                border-left-color:  #999 !important;
+                border-left-color:  $border-color !important;
                 border-left-width: 1px !important;
             }
         }
+
+        .x-grid-group-hd {
+            border-top: 1px solid $border-color;
+            border-bottom: 1px solid $border-color;
+        }
+
+        .x-grid-row-summary {
+            .x-grid-cell {
+                border-top: none;
+            }
+        }
     }
 }

+ 10 - 3
frontend/saas-web/app/view/document/kind/ChildForm.js

@@ -631,12 +631,19 @@ Ext.define('KitchenSink.view.binding.ChildForm', {
         Ext.Array.each(names,function(name) {
             if(name){
                 var dataField = form.down('[name='+name+']');
-                if(dataField&&dataField.value){
-                    params[name] = dataField.value;
-                    params._value = dataField.value;
+                if(dataField){
+                    var value = dataField.getValue();
+    
+                    if(Ext.isDate(value)) {
+                        value = Ext.Date.format(value, 'Y-m-d H:i:s');
+                    }
+
+                    params[name] = value;
+                    params._value = value;
                 }
             }
         });
+
         var idField = form.down('[name='+belong.keyField+']');
         params[belong.keyField] = idField.value || 0;
         //保存接口

+ 1 - 1
frontend/saas-web/app/view/home/charts/PurchaseTrend.js

@@ -5,7 +5,7 @@ Ext.define('saas.view.home.charts.PurchaseTrend', {
     id: 'purchase_trend',
 
     bind: {
-        title: '近六月采购趋势图'
+        title: '近六月采购趋势图(万元)'
     },
 
     initComponent: function() {

+ 1 - 1
frontend/saas-web/app/view/home/charts/SaleTrend.js

@@ -5,7 +5,7 @@ Ext.define('saas.view.home.charts.SaleTrend', {
     id: 'sale_trend',
 
     bind: {
-        title: '近六月销售趋势图'
+        title: '近六月销售趋势图(万元)'
     },
 
     initComponent: function() {

+ 1 - 1
frontend/saas-web/app/view/home/charts/StockAmount.js

@@ -5,7 +5,7 @@ Ext.define('saas.view.home.charts.StockAmount', {
     id: 'stock_amount',
 
     bind: {
-        title: '近六月库存金额图'
+        title: '近六月库存金额图(万元)'
     },
 
     initComponent: function() {

+ 2 - 2
frontend/saas-web/app/view/money/report/PayDetail.js

@@ -59,7 +59,7 @@ Ext.define('saas.view.money.report.PayDetail', {
             xtype: 'numbercolumn',
             dataIndex: 've_beginapamount',
             xtype: 'numbercolumn',
-            width: 110,
+            width: 180,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
@@ -78,7 +78,7 @@ Ext.define('saas.view.money.report.PayDetail', {
             xtype: 'numbercolumn',
             dataIndex: 'pb_pdamount',
             xtype: 'numbercolumn',
-            width: 110,
+            width: 180,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');

+ 1 - 1
frontend/saas-web/app/view/money/report/RecDetail.js

@@ -82,7 +82,7 @@ Ext.define('saas.view.money.report.RecDetail', {
             xtype: 'numbercolumn',
             dataIndex:'rb_rdamount',
             xtype: 'numbercolumn',
-            width: 110,
+            width: 180,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');

+ 3 - 3
frontend/saas-web/app/view/sale/sale/QueryPanel.js

@@ -99,7 +99,7 @@ Ext.define('saas.view.sale.sale.QueryPanel', {
         }, {
             text: '客户编号',
             dataIndex: 'sa_custcode',
-            width: 0
+            hidden :true
         }, {
             text: '客户名称',
             dataIndex: 'sa_custname',
@@ -132,7 +132,7 @@ Ext.define('saas.view.sale.sale.QueryPanel', {
         }, {
             text: '录入人',
             dataIndex: 'creatorName',
-            width: 0
+            hidden :true
         }, {
             text: '审核人',
             dataIndex: 'sa_auditman',
@@ -140,7 +140,7 @@ Ext.define('saas.view.sale.sale.QueryPanel', {
         }, {
             text: '收货地址',
             dataIndex: 'sa_toplace',
-            width: 0
+            hidden :true
         }, {
             text: '备注',
             dataIndex: 'sa_remark',

+ 1 - 1
frontend/saas-web/app/view/sale/saleIn/QueryPanel.js

@@ -124,7 +124,7 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
         },{
             text: '单据类型',
             dataIndex: 'pi_class',
-            width: 0
+            hidden :true
         }],
         relativeColumn: [{
             text: 'id',

+ 1 - 1
frontend/saas-web/app/view/sale/saleOut/FormPanel.js

@@ -159,7 +159,7 @@ Ext.define('saas.view.sale.saleout.FormPanel', {
             }, {
                 text : "仓库ID", 
                 dataIndex : "pd_whid", 
-                width : 0
+                hidden :true
             }, {
                 text : "仓库", 
                 dataIndex : "pd_whcode", 

+ 2 - 2
frontend/saas-web/app/view/sale/saleOut/QueryPanel.js

@@ -121,11 +121,11 @@ Ext.define('saas.view.sale.saleout.QueryPanel', {
             text: '未含税金额',
             dataIndex: 'pi_nettotal',
             xtype:'numbercolumn',
-            width: 0
+            hidden :true
         },{
             text: '单据类型',
             dataIndex: 'pi_class',
-            width: 0
+            hidden :true
         }],
         relativeColumn: [{
             text: 'id',

+ 5 - 2
frontend/saas-web/app/view/stock/inventory/EditDataList.js

@@ -196,7 +196,9 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
     {
         text : "盘点库存", 
         dataIndex : "st_actqty", 
-        width : 110.0,
+        width : 110.0, 
+        // xtype : "numbercolumn",
+        align: 'right',
         editor : {
             xtype : "numberfield",
             decimalPrecision: 3,
@@ -223,7 +225,8 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
         text : "盘盈盘亏", 
         dataIndex : "st_num", 
         width : 110.0, 
-        xtype : "numbercolumn",
+        // xtype : "numbercolumn",
+        aligin: 'right',
         renderer : function(v) {
             var arr = (v + '.').split('.');
             var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');