Browse Source

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

jinsy 7 years ago
parent
commit
2c7f58f663
25 changed files with 139 additions and 62 deletions
  1. 6 6
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/mapper/EmployeeMapper.java
  2. 5 4
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/EmployeeServiceImpl.java
  3. 3 2
      applications/document/document-server/src/main/resources/mapper/EmployeeMapper.xml
  4. 8 2
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/impl/PurchaseServiceImpl.java
  5. 1 1
      applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutMapper.xml
  6. 1 1
      applications/sale/sale-server/src/main/resources/mapper/SaleMapper.xml
  7. 1 1
      applications/storage/storage-server/src/main/resources/mapper/ProdInOutMapper.xml
  8. 4 2
      frontend/saas-web/app/Application.scss
  9. 5 3
      frontend/saas-web/app/view/core/query/QueryGridPanel.js
  10. 27 2
      frontend/saas-web/app/view/core/report/ReportPanel.js
  11. 42 11
      frontend/saas-web/app/view/core/report/ReportPanel.scss
  12. 0 1
      frontend/saas-web/app/view/document/customer/FormPanel.js
  13. 11 4
      frontend/saas-web/app/view/document/kind/ChildForm.js
  14. 1 1
      frontend/saas-web/app/view/home/charts/PurchaseTrend.js
  15. 1 1
      frontend/saas-web/app/view/home/charts/SaleTrend.js
  16. 1 1
      frontend/saas-web/app/view/home/charts/StockAmount.js
  17. 1 0
      frontend/saas-web/app/view/main/Main.js
  18. 2 2
      frontend/saas-web/app/view/money/report/PayDetail.js
  19. 1 1
      frontend/saas-web/app/view/money/report/RecDetail.js
  20. 3 3
      frontend/saas-web/app/view/sale/sale/QueryPanel.js
  21. 1 1
      frontend/saas-web/app/view/sale/saleIn/QueryPanel.js
  22. 1 1
      frontend/saas-web/app/view/sale/saleOut/FormPanel.js
  23. 2 2
      frontend/saas-web/app/view/sale/saleOut/QueryPanel.js
  24. 7 7
      frontend/saas-web/app/view/stock/appropriationInOut/QueryPanel.js
  25. 4 2
      frontend/saas-web/app/view/stock/inventory/EditDataList.js

+ 6 - 6
applications/document/document-server/src/main/java/com/usoftchina/saas/document/mapper/EmployeeMapper.java

@@ -20,16 +20,16 @@ public interface EmployeeMapper extends CommonBaseMapper<Employee> {
 
 
     List<EmployeeDTO> selectEmployeeListByCondition(@Param("con") String con,@Param("companyId") Long companyId);
     List<EmployeeDTO> selectEmployeeListByCondition(@Param("con") String con,@Param("companyId") Long companyId);
 
 
-    Integer validateCodeWhenInsert(@Param("code") String code, @Param("companyId") Long companyId);
+    int validateCodeWhenInsert(@Param("code") String code, @Param("companyId") Long companyId);
 
 
-    Integer validateCodeWhenUpdate(@Param("code") String code, @Param("id") Long id, @Param("companyId") Long company);
+    int validateCodeWhenUpdate(@Param("code") String code, @Param("id") Long id, @Param("companyId") Long company);
 
 
-    Integer validatePhoneWhenInsert(@Param("phone") String phone, @Param("companyId") Long companyId);
+    int validatePhoneWhenInsert(@Param("phone") String phone, @Param("companyId") Long companyId);
 
 
-    Integer validatePhoneWhenUpdate(@Param("phone") String phone, @Param("id") Long id, @Param("companyId") Long company);
+    int validatePhoneWhenUpdate(@Param("phone") String phone, @Param("id") Long id, @Param("companyId") Long company);
 
 
 
 
-    Integer validateNameAndCodeWhenInsert(@Param("code") String code,@Param("name") String em_name,@Param("companyId") Long companyId);
+    int validateNameAndCodeWhenInsert(@Param("code") String code,@Param("name") String em_name,@Param("companyId") Long companyId);
 
 
-    Integer validateNameAndCodeWhenUpdate(@Param("code") String code,@Param("name") String em_name,@Param("id") Long em_id,@Param("companyId") Long id);
+    int validateNameAndCodeWhenUpdate(@Param("code") String code,@Param("name") String em_name,@Param("id") Long id,@Param("companyId") Long companyId);
 }
 }

+ 5 - 4
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/EmployeeServiceImpl.java

@@ -65,10 +65,12 @@ public class EmployeeServiceImpl extends CommonBaseServiceImpl<EmployeeMapper, E
     @Override
     @Override
     public DocBaseDTO saveFormData(Employee employee) {
     public DocBaseDTO saveFormData(Employee employee) {
         DocBaseDTO docBaseDTO = null;
         DocBaseDTO docBaseDTO = null;
-        String code = pushMaxnubmer(employee.getEm_code(), employee.getId());
+        Long companyId = BaseContextHolder.getCompanyId();
+        employee.setCompanyId(companyId);
         if(employee.getId() == 0){
         if(employee.getId() == 0){
+            String code = pushMaxnubmer(employee.getEm_code(), employee.getId());
             //检查名称和编号
             //检查名称和编号
-            int count = getMapper().validateNameAndCodeWhenInsert(code,employee.getEm_name(),BaseContextHolder.getCompanyId());
+            int count = getMapper().validateNameAndCodeWhenInsert(code,employee.getEm_name(),companyId);
             if (count>0) {
             if (count>0) {
                 throw new BizException(BizExceptionCode.REPEAT_EMNAMECODE);
                 throw new BizException(BizExceptionCode.REPEAT_EMNAMECODE);
             }
             }
@@ -77,7 +79,6 @@ public class EmployeeServiceImpl extends CommonBaseServiceImpl<EmployeeMapper, E
             if (count>0) {
             if (count>0) {
                 throw new BizException(BizExceptionCode.REPEAT_TEL);
                 throw new BizException(BizExceptionCode.REPEAT_TEL);
             }
             }
-            employee.setCompanyId(BaseContextHolder.getCompanyId());
             employee.setCreatorId(BaseContextHolder.getUserId());
             employee.setCreatorId(BaseContextHolder.getUserId());
             employee.setCreateTime(new Date());
             employee.setCreateTime(new Date());
             employee.setCreatorName(BaseContextHolder.getUserName());
             employee.setCreatorName(BaseContextHolder.getUserName());
@@ -87,7 +88,7 @@ public class EmployeeServiceImpl extends CommonBaseServiceImpl<EmployeeMapper, E
             messageLogService.save(docBaseDTO);
             messageLogService.save(docBaseDTO);
         }else{
         }else{
             //检查名称和编号
             //检查名称和编号
-            int count = getMapper().validateNameAndCodeWhenUpdate(code,employee.getEm_name(),employee.getId(),BaseContextHolder.getCompanyId());
+            int count = getMapper().validateNameAndCodeWhenUpdate(employee.getEm_code(),employee.getEm_name(),employee.getId(),companyId);
             if (count>0) {
             if (count>0) {
                 throw new BizException(BizExceptionCode.REPEAT_EMNAMECODE);
                 throw new BizException(BizExceptionCode.REPEAT_EMNAMECODE);
             }
             }

+ 3 - 2
applications/document/document-server/src/main/resources/mapper/EmployeeMapper.xml

@@ -239,8 +239,9 @@
   <select id="validateNameAndCodeWhenInsert" resultType="int">
   <select id="validateNameAndCodeWhenInsert" resultType="int">
     select count(*) from Employee where (em_code = #{code} or em_name = #{name}) and companyId =#{companyId}
     select count(*) from Employee where (em_code = #{code} or em_name = #{name}) and companyId =#{companyId}
   </select>
   </select>
-  <select id="validateNameAndCodeWhenUpdate" resultType="int" >
-    select count(*) from Employee where (em_code = #{code} or em_name = #{name}) and em_id !=#{id} and companyId =#{companyId}
+  
+  <select id="validateNameAndCodeWhenUpdate" resultType="int">
+    select count(*) from Employee where (em_code = #{code} or em_name = #{name}) and em_id !=#{id}  and companyId =#{companyId}
   </select>
   </select>
 
 
 
 

+ 8 - 2
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/impl/PurchaseServiceImpl.java

@@ -404,7 +404,6 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
         double pdQty=0, pdYqty=0;
         double pdQty=0, pdYqty=0;
         //检查转单状态
         //检查转单状态
         String acceptstatus = purchase.getPu_acceptstatuscode();
         String acceptstatus = purchase.getPu_acceptstatuscode();
-
         if (Status.CLOSE.name().equals(acceptstatus)){
         if (Status.CLOSE.name().equals(acceptstatus)){
             return Result.error(ExceptionCode.CLOSED_EXIST);
             return Result.error(ExceptionCode.CLOSED_EXIST);
         }
         }
@@ -530,12 +529,19 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
 
 
     @Transactional
     @Transactional
     public void singleUnAudit(Long id) {
     public void singleUnAudit(Long id) {
-        Purchase purchase = new Purchase();
+        //校验关闭状态
+        Purchase purchase = getMapper().selectByPrimaryKey(id);
+        //检查转单状态
+        String acceptstatus = purchase.getPu_acceptstatuscode();
+        if (Status.CLOSE.name().equals(acceptstatus)){
+            throw new  BizException(ExceptionCode.CLOSED_EXIST);
+        }
         //检查是否已转验收单
         //检查是否已转验收单
         Integer num = getMapper().checkTurnInstatus(id);
         Integer num = getMapper().checkTurnInstatus(id);
         if (num > 0) {
         if (num > 0) {
             throw new BizException(BizExceptionCode.PURCHASE_UNAUDIT_ERROR);
             throw new BizException(BizExceptionCode.PURCHASE_UNAUDIT_ERROR);
         }
         }
+        purchase = new Purchase();
         //生成更新对象
         //生成更新对象
         purchase.setId(id);
         purchase.setId(id);
         purchase.setPu_status(Status.UNAUDITED.getDisplay());
         purchase.setPu_status(Status.UNAUDITED.getDisplay());

+ 1 - 1
applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutMapper.xml

@@ -415,7 +415,7 @@
     select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and companyid = #{companyId}
     select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and companyid = #{companyId}
   </select>
   </select>
   <select id="validateCodeWhenUpdate" resultType="int" >
   <select id="validateCodeWhenUpdate" resultType="int" >
-    select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and pi_id != #{id} and companyid != #{companyId}
+    select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and pi_id != #{id} and companyid = #{companyId}
   </select>
   </select>
 
 
   <select id="selectCodeById" resultType="string" parameterType="long">
   <select id="selectCodeById" resultType="string" parameterType="long">

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

@@ -402,7 +402,7 @@
     and purchasedetail.companyid= #{companyid}
     and purchasedetail.companyid= #{companyid}
   </select>
   </select>
   <select id="checkCustomer" parameterType="long" resultType="integer">
   <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>
   </select>
   
   
   <!-- 销售订单转采购单-->
   <!-- 销售订单转采购单-->

+ 1 - 1
applications/storage/storage-server/src/main/resources/mapper/ProdInOutMapper.xml

@@ -403,7 +403,7 @@
     select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and companyid = #{companyId}
     select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and companyid = #{companyId}
   </select>
   </select>
   <select id="validateCodeWhenUpdate" resultType="int" >
   <select id="validateCodeWhenUpdate" resultType="int" >
-    select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and pi_id != #{id} and companyid != #{companyId}
+    select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and pi_id != #{id} and companyid = #{companyId}
   </select>
   </select>
 
 
   <select id="selectCodeById" resultType="string" parameterType="long">
   <select id="selectCodeById" resultType="string" parameterType="long">

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

@@ -230,6 +230,10 @@ body.launching {
 .x-column-header {
 .x-column-header {
   background: #E5F7FF;
   background: #E5F7FF;
   border-right: 1px solid #ABDAFF;
   border-right: 1px solid #ABDAFF;
+
+  &:last-child {
+    border: none;
+  }
 }
 }
 
 
 .x-column-header-text-inner {
 .x-column-header-text-inner {
@@ -305,8 +309,6 @@ body.launching {
   background-color: #ffefbb;
   background-color: #ffefbb;
 }
 }
 
 
-
-
 /*滚动条样式*/
 /*滚动条样式*/
 div::-webkit-scrollbar {
 div::-webkit-scrollbar {
   width: 10px;
   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') {
             if(c.xtype == 'datecolumn') {
                 Ext.applyIf(c, {
                 Ext.applyIf(c, {
-                    exportStyle: {
-                        format: 'Medium Date'
-                    },
+                    format:'Y-m-d',
+                    //只导出年月日
+                    // exportStyle: {
+                    //     format: 'Medium Date'
+                    // },
                     exportRenderer: function (value) {
                     exportRenderer: function (value) {
                         return Ext.Date.format(new Date(value), 'Y-m-d');
                         return Ext.Date.format(new Date(value), 'Y-m-d');
                     }
                     }

+ 27 - 2
frontend/saas-web/app/view/core/report/ReportPanel.js

@@ -92,6 +92,8 @@ Ext.define('saas.view.core.report.ReportPanel', {
                             }, {
                             }, {
                                 text: 'Excel xml (包含分组合计)',
                                 text: 'Excel xml (包含分组合计)',
                                 cfg: {
                                 cfg: {
+                                    type: 'excel03',
+                                    ext: 'xml',
                                     includeGroups: true,
                                     includeGroups: true,
                                     includeSummary: true
                                     includeSummary: true
                                 }
                                 }
@@ -319,6 +321,7 @@ Ext.define('saas.view.core.report.ReportPanel', {
 
 
             if(c.xtype == 'datecolumn') {
             if(c.xtype == 'datecolumn') {
                 Ext.applyIf(c, {
                 Ext.applyIf(c, {
+                    // 这两个都要写上,才能控制到不同类型的导出格式,原因不明- -!
                     format: 'Y-m-d',
                     format: 'Y-m-d',
                     exportStyle: [{
                     exportStyle: [{
                         type: 'csv',
                         type: 'csv',
@@ -326,6 +329,10 @@ Ext.define('saas.view.core.report.ReportPanel', {
                     }],
                     }],
                     exportRenderer: function (value) {
                     exportRenderer: function (value) {
                         return Ext.Date.format(new Date(value), 'Y-m-d');
                         return Ext.Date.format(new Date(value), 'Y-m-d');
+                    },
+                    // 下面这个方法不写会造成日期列求和,原因不明- -!
+                    exportSummaryRenderer: function(v) {
+                        return v;
                     }
                     }
                 })
                 })
             }else if(c.xtype == 'numbercolumn') {
             }else if(c.xtype == 'numbercolumn') {
@@ -336,14 +343,15 @@ Ext.define('saas.view.core.report.ReportPanel', {
                         var xr = (new Array(arr[1].length)).fill('0');
                         var xr = (new Array(arr[1].length)).fill('0');
                         var format = '0.' + xr.join();
                         var format = '0.' + xr.join();
                         return Ext.util.Format.number(v, format);
                         return Ext.util.Format.number(v, format);
-                    }
+                    },
                 });
                 });
             }
             }
 
 
             if(c.summaryType) {
             if(c.summaryType) {
+                me.initSummaryType(c);
                 summarys.push({
                 summarys.push({
                     field: c.dataIndex,
                     field: c.dataIndex,
-                    operation: c.summaryType,
+                    operation: c.summaryTypeName,
                 });
                 });
             }
             }
         })
         })
@@ -353,6 +361,19 @@ Ext.define('saas.view.core.report.ReportPanel', {
         return columns;
         return columns;
     },
     },
 
 
+    initSummaryType: function(column) {
+        var summaryType = column.summaryType;
+        if(Ext.isString(summaryType)) {
+            column.summaryTypeName = summaryType;
+        }
+        if(summaryType == 'sum') {
+            // 原生的求和方法使用的是Store.sum,在数据存在null时计算结果为NaN,这里重写一下
+            column.summaryType = function(records, values) {
+                return Ext.Array.sum(values);
+            }
+        }
+    },
+
     initSearchItems: function() {
     initSearchItems: function() {
         var me = this,
         var me = this,
         items = me.searchItems,
         items = me.searchItems,
@@ -470,6 +491,8 @@ Ext.define('saas.view.core.report.ReportPanel', {
             type = 'number';
             type = 'number';
         }else if(me.isContainsAny(xtypes, ['datefield', 'condatefield'])) {
         }else if(me.isContainsAny(xtypes, ['datefield', 'condatefield'])) {
             type = 'date';
             type = 'date';
+        }else if(me.isContainsAny(xtypes, ['dbfindtrigger'])) {
+            type = 'string';
         }else if(me.isContainsAny(xtypes, ['combobox', 'multicombo', 'combo', 'radiofield', 'radio'])) {
         }else if(me.isContainsAny(xtypes, ['combobox', 'multicombo', 'combo', 'radiofield', 'radio'])) {
             type = 'enum';
             type = 'enum';
         }else {
         }else {
@@ -524,6 +547,8 @@ Ext.define('saas.view.core.report.ReportPanel', {
             to = value.to;
             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');
             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'])) {
         }else if(me.isContainsAny(xtypes, ['combobox', 'combo'])) {
             conditionValue = '\'' + value + '\'';
             conditionValue = '\'' + value + '\'';
         }else if(me.isContainsAny(xtypes, ['multicombo'])) {
         }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-panel {
     
     
     .x-report-grid {
     .x-report-grid {
@@ -5,14 +7,14 @@
         .x-panel-bodyWrap {
         .x-panel-bodyWrap {
 
 
             .x-panel-default-outer-border-trl {
             .x-panel-default-outer-border-trl {
-                border-color: #999 !important;
+                border-color: $border-color !important;
             }
             }
 
 
             .x-grid-header-ct {
             .x-grid-header-ct {
-                border-color: #999 !important;
+                border-color: $border-color !important;
 
 
                 .x-column-header {
                 .x-column-header {
-                    border-color: #999 !important;
+                    border-color: $border-color !important;
 
 
                     .x-column-header-text-inner {
                     .x-column-header-text-inner {
                         font-weight: bold;
                         font-weight: bold;
@@ -21,25 +23,54 @@
             }
             }
 
 
             .x-grid-body {
             .x-grid-body {
-                border-color: #999 !important;
+                border-color: $border-color !important;
                 border-width: 1px;
                 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 {
             .x-toolbar-docked-bottom {
-                border-color: #999 !important;
+                border-color: $border-color !important;
                 border-width: 1px !important;
                 border-width: 1px !important;
             }
             }
             .x-panel-default-outer-border-rl {
             .x-panel-default-outer-border-rl {
-                border-right-color: #999 !important;
+                border-right-color: $border-color !important;
                 border-right-width: 1px !important;
                 border-right-width: 1px !important;
-                border-left-color:  #999 !important;
+                border-left-color:  $border-color !important;
                 border-left-width: 1px !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;
+            }
+        }
     }
     }
 }
 }

+ 0 - 1
frontend/saas-web/app/view/document/customer/FormPanel.js

@@ -158,7 +158,6 @@ Ext.define('saas.view.document.customer.FormPanel', {
         xtype : "employeeDbfindTrigger", 
         xtype : "employeeDbfindTrigger", 
         name : "cu_sellername", 
         name : "cu_sellername", 
         fieldLabel : "业务员", 
         fieldLabel : "业务员", 
-        editable:false,
         allowBlank : false, 
         allowBlank : false, 
         columnWidth : 0.25
         columnWidth : 0.25
     },{
     },{

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

@@ -183,7 +183,7 @@ Ext.define('KitchenSink.view.binding.ChildForm', {
                 xtype:'datefield',
                 xtype:'datefield',
                 name:'bk_date',
                 name:'bk_date',
                 fieldLabel:'建账日期',
                 fieldLabel:'建账日期',
-                format:'Y-m-d H:i:s',
+                format:'Y-m-d',
                 listeners:{
                 listeners:{
                     beforerender:function(d){
                     beforerender:function(d){
                         d.setValue(new Date())
                         d.setValue(new Date())
@@ -631,12 +631,19 @@ Ext.define('KitchenSink.view.binding.ChildForm', {
         Ext.Array.each(names,function(name) {
         Ext.Array.each(names,function(name) {
             if(name){
             if(name){
                 var dataField = form.down('[name='+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+']');
         var idField = form.down('[name='+belong.keyField+']');
         params[belong.keyField] = idField.value || 0;
         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',
     id: 'purchase_trend',
 
 
     bind: {
     bind: {
-        title: '近六月采购趋势图'
+        title: '近六月采购趋势图(万元)'
     },
     },
 
 
     initComponent: function() {
     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',
     id: 'sale_trend',
 
 
     bind: {
     bind: {
-        title: '近六月销售趋势图'
+        title: '近六月销售趋势图(万元)'
     },
     },
 
 
     initComponent: function() {
     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',
     id: 'stock_amount',
 
 
     bind: {
     bind: {
-        title: '近六月库存金额图'
+        title: '近六月库存金额图(万元)'
     },
     },
 
 
     initComponent: function() {
     initComponent: function() {

+ 1 - 0
frontend/saas-web/app/view/main/Main.js

@@ -85,6 +85,7 @@ Ext.define('saas.view.main.Main', {
                             }
                             }
                         },{
                         },{
                             text: '用户手册',
                             text: '用户手册',
+                            hidden:true,
                             //fa-address-book-o sa-userBook
                             //fa-address-book-o sa-userBook
                             iconCls:'x-fa sa-navicon  fa-address-book-o',
                             iconCls:'x-fa sa-navicon  fa-address-book-o',
                             handler:function(){
                             handler: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',
             xtype: 'numbercolumn',
             dataIndex: 've_beginapamount',
             dataIndex: 've_beginapamount',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
-            width: 110,
+            width: 180,
             renderer : function(v) {
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
                 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',
             xtype: 'numbercolumn',
             dataIndex: 'pb_pdamount',
             dataIndex: 'pb_pdamount',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
-            width: 110,
+            width: 180,
             renderer : function(v) {
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
                 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',
             xtype: 'numbercolumn',
             dataIndex:'rb_rdamount',
             dataIndex:'rb_rdamount',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
-            width: 110,
+            width: 180,
             renderer : function(v) {
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
                 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: '客户编号',
             text: '客户编号',
             dataIndex: 'sa_custcode',
             dataIndex: 'sa_custcode',
-            width: 0
+            hidden :true
         }, {
         }, {
             text: '客户名称',
             text: '客户名称',
             dataIndex: 'sa_custname',
             dataIndex: 'sa_custname',
@@ -132,7 +132,7 @@ Ext.define('saas.view.sale.sale.QueryPanel', {
         }, {
         }, {
             text: '录入人',
             text: '录入人',
             dataIndex: 'creatorName',
             dataIndex: 'creatorName',
-            width: 0
+            hidden :true
         }, {
         }, {
             text: '审核人',
             text: '审核人',
             dataIndex: 'sa_auditman',
             dataIndex: 'sa_auditman',
@@ -140,7 +140,7 @@ Ext.define('saas.view.sale.sale.QueryPanel', {
         }, {
         }, {
             text: '收货地址',
             text: '收货地址',
             dataIndex: 'sa_toplace',
             dataIndex: 'sa_toplace',
-            width: 0
+            hidden :true
         }, {
         }, {
             text: '备注',
             text: '备注',
             dataIndex: 'sa_remark',
             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: '单据类型',
             text: '单据类型',
             dataIndex: 'pi_class',
             dataIndex: 'pi_class',
-            width: 0
+            hidden :true
         }],
         }],
         relativeColumn: [{
         relativeColumn: [{
             text: 'id',
             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", 
                 text : "仓库ID", 
                 dataIndex : "pd_whid", 
                 dataIndex : "pd_whid", 
-                width : 0
+                hidden :true
             }, {
             }, {
                 text : "仓库", 
                 text : "仓库", 
                 dataIndex : "pd_whcode", 
                 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: '未含税金额',
             text: '未含税金额',
             dataIndex: 'pi_nettotal',
             dataIndex: 'pi_nettotal',
             xtype:'numbercolumn',
             xtype:'numbercolumn',
-            width: 0
+            hidden :true
         },{
         },{
             text: '单据类型',
             text: '单据类型',
             dataIndex: 'pi_class',
             dataIndex: 'pi_class',
-            width: 0
+            hidden :true
         }],
         }],
         relativeColumn: [{
         relativeColumn: [{
             text: 'id',
             text: 'id',

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

@@ -19,10 +19,10 @@ Ext.define('saas.view.stock.appropriationInOut.QueryPanel', {
         emptyText:'请输入单号或物料',
         emptyText:'请输入单号或物料',
         showDetail: true,
         showDetail: true,
         getCondition: function(value) {
         getCondition: function(value) {
-            if(value != '') {
-                return  ' (pi_inoutno like\'%' + value + '%\' or pd_prodcode like \'%'+value+'%\' ) ';
-            }else {
+            if(value == ''|| value ==null) {
                 return '1=1';
                 return '1=1';
+            }else {
+                return  ' (pi_inoutno like\'%' + value + '%\' or pd_prodcode like \'%'+value+'%\' ) ';
             }
             }
         }
         }
     }, {
     }, {
@@ -66,10 +66,10 @@ Ext.define('saas.view.stock.appropriationInOut.QueryPanel', {
         emptyText :'请输入仓库名或仓库编号',
         emptyText :'请输入仓库名或仓库编号',
         showDetail: true,
         showDetail: true,
         getCondition: function(value) {
         getCondition: function(value) {
-            if(value != '') {
-                return  ' (pd_whcode like\'%' + value + '%\' or pd_whname like \'%'+value+'%\' or pd_inwhcode like\'%' + value + '%\' or pd_inwhname like \'%'+value+'%\') ';
-            }else {
+            if(value == '' || value == null) {
                 return '1=1';
                 return '1=1';
+            }else {
+                return  ' (pd_whcode like\'%' + value + '%\' or pd_whname like \'%'+value+'%\' or pd_inwhcode like\'%' + value + '%\' or pd_inwhname like \'%'+value+'%\') ';                
             }
             }
         }
         }
     }],
     }],
@@ -167,7 +167,7 @@ Ext.define('saas.view.stock.appropriationInOut.QueryPanel', {
                 width: 80
                 width: 80
             },{
             },{
                 text: '数量',
                 text: '数量',
-                dataIndex: 'pd_inqty',
+                dataIndex: 'pd_outqty',
                 xtype:'numbercolumn',
                 xtype:'numbercolumn',
                 width: 110
                 width: 110
             },{
             },{

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

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