Browse Source

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

huangx 7 years ago
parent
commit
d13dab1982
98 changed files with 877 additions and 282 deletions
  1. 2 3
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/AddressController.java
  2. 2 3
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/FundinouttypeController.java
  3. 2 3
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/ProductbrandController.java
  4. 2 3
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/ProducttypeController.java
  5. 2 3
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/ProductunitController.java
  6. 2 3
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/VendorkindController.java
  7. 3 0
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/AddressService.java
  8. 3 0
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/FundinouttypeService.java
  9. 3 0
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/ProductbrandService.java
  10. 3 0
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/ProducttypeService.java
  11. 3 0
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/ProductunitService.java
  12. 3 0
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/VendorkindService.java
  13. 7 4
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/AddressServiceImpl.java
  14. 7 4
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/FundinouttypeServiceImpl.java
  15. 5 4
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/ProductbrandServiceImpl.java
  16. 8 4
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/ProducttypeServiceImpl.java
  17. 7 4
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/ProductunitServiceImpl.java
  18. 1 1
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/VendorServiceImpl.java
  19. 8 4
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/VendorkindServiceImpl.java
  20. 1 1
      applications/document/document-server/src/main/resources/mapper/BomMapper.xml
  21. 2 2
      applications/document/document-server/src/main/resources/mapper/CustomerListMapper.xml
  22. 1 0
      applications/document/document-server/src/main/resources/mapper/ProductMapper.xml
  23. 1 1
      applications/document/document-server/src/main/resources/mapper/VendorMapper.xml
  24. 1 1
      applications/document/document-server/src/main/resources/mapper/WarehouseMapper.xml
  25. 10 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtransferdetail.java
  26. 9 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Othreceiptsdetail.java
  27. 10 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Othspendingsdetail.java
  28. 7 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/FundtransferServiceImpl.java
  29. 11 2
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthreceiptsServiceImpl.java
  30. 14 3
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthspendingsServiceImpl.java
  31. 1 5
      applications/money/money-server/src/main/resources/mapper/FundtransferMapper.xml
  32. 4 5
      applications/money/money-server/src/main/resources/mapper/FundtransferdetailMapper.xml
  33. 1 3
      applications/money/money-server/src/main/resources/mapper/OthreceiptsMapper.xml
  34. 3 2
      applications/money/money-server/src/main/resources/mapper/OthreceiptsdetailMapper.xml
  35. 1 3
      applications/money/money-server/src/main/resources/mapper/OthspendingsMapper.xml
  36. 3 2
      applications/money/money-server/src/main/resources/mapper/OthspendingsdetailMapper.xml
  37. 1 3
      applications/money/money-server/src/main/resources/mapper/PaybalanceMapper.xml
  38. 1 3
      applications/money/money-server/src/main/resources/mapper/RecbalanceMapper.xml
  39. 4 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/mapper/ProdInOutMapper.java
  40. 24 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/impl/ProdInOutServiceImpl.java
  41. 10 2
      applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutMapper.xml
  42. 3 3
      applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/controller/MakeController.java
  43. 3 0
      applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/mapper/ProdIODetailMapper.java
  44. 8 0
      applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/mapper/ProdInOutMapper.java
  45. 2 2
      applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/service/MakeService.java
  46. 56 30
      applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/service/impl/MakeServiceImpl.java
  47. 1 1
      applications/storage/storage-server/src/main/resources/mapper/MakeMapper.xml
  48. 1 0
      applications/storage/storage-server/src/main/resources/mapper/MakematerialMapper.xml
  49. 3 0
      applications/storage/storage-server/src/main/resources/mapper/ProdIODetailMapper.xml
  50. 16 3
      applications/storage/storage-server/src/main/resources/mapper/ProdInOutMapper.xml
  51. 10 4
      frontend/saas-web/app/view/core/base/GridPanel.js
  52. 1 1
      frontend/saas-web/app/view/core/dbfind/DbfindTrigger.js
  53. 15 18
      frontend/saas-web/app/view/core/form/FormPanel.js
  54. 10 4
      frontend/saas-web/app/view/core/form/FormPanel.scss
  55. 2 3
      frontend/saas-web/app/view/core/report/ReportPanel.js
  56. 16 1
      frontend/saas-web/app/view/document/bom/BasePanel.js
  57. 21 3
      frontend/saas-web/app/view/document/product/FormPanel.js
  58. 4 2
      frontend/saas-web/app/view/main/Main.js
  59. 24 5
      frontend/saas-web/app/view/main/Main.scss
  60. 4 2
      frontend/saas-web/app/view/main/MainContainerWrap.js
  61. 61 4
      frontend/saas-web/app/view/main/MainController.js
  62. 2 0
      frontend/saas-web/app/view/main/MainModel.js
  63. 33 17
      frontend/saas-web/app/view/main/Navigation.scss
  64. 3 2
      frontend/saas-web/app/view/money/fundtransfer/QueryPanel.js
  65. 4 2
      frontend/saas-web/app/view/money/fundtransfer/QueryPanelModel.js
  66. 4 2
      frontend/saas-web/app/view/money/othreceipts/QueryPanelModel.js
  67. 4 2
      frontend/saas-web/app/view/money/othspendings/QueryPanelModel.js
  68. 1 1
      frontend/saas-web/app/view/money/payBalance/FormPanelController.js
  69. 4 2
      frontend/saas-web/app/view/money/payBalance/QueryPanelModel.js
  70. 4 2
      frontend/saas-web/app/view/money/recBalance/QueryPanelModel.js
  71. 1 1
      frontend/saas-web/app/view/purchase/purchase/FormPanel.js
  72. 1 1
      frontend/saas-web/app/view/purchase/purchase/QueryPanel.js
  73. 3 0
      frontend/saas-web/app/view/purchase/purchaseIn/QueryPanelController.js
  74. 2 2
      frontend/saas-web/app/view/purchase/purchaseOut/QueryPanelController.js
  75. 20 3
      frontend/saas-web/app/view/purchase/report/Purchase.js
  76. 76 1
      frontend/saas-web/app/view/purchase/report/PurchaseController.js
  77. 5 7
      frontend/saas-web/app/view/purchase/report/PurchasePay.js
  78. 77 1
      frontend/saas-web/app/view/purchase/report/PurchasePayController.js
  79. 21 20
      frontend/saas-web/app/view/sale/report/Sale.js
  80. 7 2
      frontend/saas-web/app/view/sale/report/SaleIn.js
  81. 19 24
      frontend/saas-web/app/view/sale/report/SaleProfit.js
  82. 99 0
      frontend/saas-web/app/view/sale/report/SaleProfitController.js
  83. 4 1
      frontend/saas-web/app/view/sale/sale/FormPanel.js
  84. 2 2
      frontend/saas-web/app/view/sale/sale/FormPanelController.js
  85. 3 3
      frontend/saas-web/app/view/sale/sale/QueryPanel.js
  86. 7 7
      frontend/saas-web/app/view/sale/saleIn/QueryPanel.js
  87. 4 1
      frontend/saas-web/app/view/sale/saleIn/QueryPanelModel.js
  88. 4 1
      frontend/saas-web/app/view/sale/saleOut/QueryPanelModel.js
  89. 3 3
      frontend/saas-web/app/view/stock/stockamount/DataList.js
  90. BIN
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.eot
  91. 0 0
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.js
  92. 0 0
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.svg
  93. BIN
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.ttf
  94. BIN
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.woff
  95. 4 0
      frontend/saas-web/packages/font-saas/sass/etc/icons.scss
  96. 0 2
      frontend/saas-web/packages/font-saas/sass/src/all.scss
  97. BIN
      frontend/saas-web/resources/images/default/logo-default.png
  98. 2 2
      frontend/saas-web/resources/json/navigation.json

+ 2 - 3
applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/AddressController.java

@@ -18,8 +18,7 @@ public class AddressController {
 
 
     @PostMapping("/save")
     @PostMapping("/save")
     public Result save(@RequestBody Address address){
     public Result save(@RequestBody Address address){
-        addressService.save(address);
-        return Result.success();
+        return Result.success(addressService.saveData(address));
     }
     }
 
 
     @PostMapping("/delete/{id}")
     @PostMapping("/delete/{id}")
@@ -36,7 +35,7 @@ public class AddressController {
 
 
     @GetMapping("/list")
     @GetMapping("/list")
     public Result<List<Address>> getAll(){
     public Result<List<Address>> getAll(){
-        List<Address> addresseList = addressService.findAll();
+        List<Address> addresseList = addressService.selectAll();
         return Result.success(addresseList);
         return Result.success(addresseList);
     }
     }
 
 

+ 2 - 3
applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/FundinouttypeController.java

@@ -18,8 +18,7 @@ public class FundinouttypeController {
 
 
     @PostMapping("/save")
     @PostMapping("/save")
     public Result save(@RequestBody Fundinouttype fundinouttype){
     public Result save(@RequestBody Fundinouttype fundinouttype){
-        fundinouttypeService.save(fundinouttype);
-        return Result.success();
+        return Result.success(fundinouttypeService.saveData(fundinouttype));
     }
     }
 
 
     @PostMapping("/delete/{id}")
     @PostMapping("/delete/{id}")
@@ -30,7 +29,7 @@ public class FundinouttypeController {
 
 
     @GetMapping("/list")
     @GetMapping("/list")
     public Result getAll(){
     public Result getAll(){
-        List<Fundinouttype> fundinouttypeList = fundinouttypeService.findAll();
+        List<Fundinouttype> fundinouttypeList = fundinouttypeService.selectAll();
         return Result.success(fundinouttypeList);
         return Result.success(fundinouttypeList);
     }
     }
 
 

+ 2 - 3
applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/ProductbrandController.java

@@ -22,8 +22,7 @@ public class ProductbrandController {
      */
      */
     @PostMapping("/save")
     @PostMapping("/save")
     public Result save(@RequestBody Productbrand productbrand){
     public Result save(@RequestBody Productbrand productbrand){
-        productbrandService.save(productbrand);
-        return Result.success();
+        return Result.success(productbrandService.saveData(productbrand));
     }
     }
 
 
     /**
     /**
@@ -43,7 +42,7 @@ public class ProductbrandController {
      */
      */
     @GetMapping("/list")
     @GetMapping("/list")
     public Result getAll(){
     public Result getAll(){
-        List<Productbrand> productbrandList = productbrandService.findAll();
+        List<Productbrand> productbrandList = productbrandService.selectAll();
         return Result.success(productbrandList);
         return Result.success(productbrandList);
     }
     }
 
 

+ 2 - 3
applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/ProducttypeController.java

@@ -18,14 +18,13 @@ public class ProducttypeController {
 
 
     @GetMapping("/list")
     @GetMapping("/list")
     public Result<List<Producttype>> getAll(){
     public Result<List<Producttype>> getAll(){
-        List<Producttype> producttypeList = producttypeService.findAll();
+        List<Producttype> producttypeList = producttypeService.selectAll();
         return Result.success(producttypeList);
         return Result.success(producttypeList);
     }
     }
 
 
     @PostMapping("/save")
     @PostMapping("/save")
     public Result save(@RequestBody Producttype producttype){
     public Result save(@RequestBody Producttype producttype){
-        producttypeService.save(producttype);
-        return Result.success();
+        return Result.success(producttypeService.saveData(producttype));
     }
     }
 
 
     @PostMapping("/delete/{id}")
     @PostMapping("/delete/{id}")

+ 2 - 3
applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/ProductunitController.java

@@ -19,8 +19,7 @@ public class ProductunitController {
 
 
     @PostMapping("/save")
     @PostMapping("/save")
     public Result save(@RequestBody Productunit productunit){
     public Result save(@RequestBody Productunit productunit){
-        productunitService.save(productunit);
-        return Result.success();
+        return Result.success(productunitService.saveData(productunit));
     }
     }
 
 
     @PostMapping("/delete/{id}")
     @PostMapping("/delete/{id}")
@@ -31,7 +30,7 @@ public class ProductunitController {
 
 
     @GetMapping("/list")
     @GetMapping("/list")
     public Result getAll(){
     public Result getAll(){
-        List<Productunit> productunitList = productunitService.findAll();
+        List<Productunit> productunitList = productunitService.selectAll();
         return Result.success(productunitList);
         return Result.success(productunitList);
     }
     }
 
 

+ 2 - 3
applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/VendorkindController.java

@@ -17,8 +17,7 @@ public class VendorkindController {
 
 
     @PostMapping("/save")
     @PostMapping("/save")
     public Result save(@RequestBody Vendorkind vendorkind){
     public Result save(@RequestBody Vendorkind vendorkind){
-        vendorkindService.save(vendorkind);
-        return Result.success();
+        return Result.success(vendorkindService.saveData(vendorkind));
     }
     }
 
 
     @PostMapping("/delete/{id}")
     @PostMapping("/delete/{id}")
@@ -29,7 +28,7 @@ public class VendorkindController {
 
 
     @GetMapping("/list")
     @GetMapping("/list")
     public Result<Vendorkind> getAll(){
     public Result<Vendorkind> getAll(){
-        List<Vendorkind> vendorkindList = vendorkindService.findAll();
+        List<Vendorkind> vendorkindList = vendorkindService.selectAll();
         return Result.success(vendorkindList);
         return Result.success(vendorkindList);
     }
     }
 
 

+ 3 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/AddressService.java

@@ -2,6 +2,7 @@ package com.usoftchina.saas.document.service;
 
 
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.commons.dto.ComboDTO;
 import com.usoftchina.saas.commons.dto.ComboDTO;
+import com.usoftchina.saas.commons.dto.DocBaseDTO;
 import com.usoftchina.saas.document.entities.Address;
 import com.usoftchina.saas.document.entities.Address;
 import com.usoftchina.saas.document.mapper.AddressMapper;
 import com.usoftchina.saas.document.mapper.AddressMapper;
 
 
@@ -14,4 +15,6 @@ public interface AddressService extends CommonBaseService<AddressMapper, Address
     List<ComboDTO> getCombo();
     List<ComboDTO> getCombo();
 
 
     List<Address> selectAll();
     List<Address> selectAll();
+
+    DocBaseDTO saveData(Address address);
 }
 }

+ 3 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/FundinouttypeService.java

@@ -2,6 +2,7 @@ package com.usoftchina.saas.document.service;
 
 
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.commons.dto.ComboDTO;
 import com.usoftchina.saas.commons.dto.ComboDTO;
+import com.usoftchina.saas.commons.dto.DocBaseDTO;
 import com.usoftchina.saas.document.entities.Fundinouttype;
 import com.usoftchina.saas.document.entities.Fundinouttype;
 import com.usoftchina.saas.document.mapper.FundinouttypeMapper;
 import com.usoftchina.saas.document.mapper.FundinouttypeMapper;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Param;
@@ -13,4 +14,6 @@ public interface FundinouttypeService extends CommonBaseService<FundinouttypeMap
     List<ComboDTO> getCombo();
     List<ComboDTO> getCombo();
 
 
     List<Fundinouttype> selectAll();
     List<Fundinouttype> selectAll();
+
+    DocBaseDTO saveData(Fundinouttype fundinouttype);
 }
 }

+ 3 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/ProductbrandService.java

@@ -2,6 +2,7 @@ package com.usoftchina.saas.document.service;
 
 
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.commons.dto.ComboDTO;
 import com.usoftchina.saas.commons.dto.ComboDTO;
+import com.usoftchina.saas.commons.dto.DocBaseDTO;
 import com.usoftchina.saas.document.entities.Productbrand;
 import com.usoftchina.saas.document.entities.Productbrand;
 import com.usoftchina.saas.document.mapper.ProductbrandMapper;
 import com.usoftchina.saas.document.mapper.ProductbrandMapper;
 
 
@@ -12,4 +13,6 @@ public interface ProductbrandService extends CommonBaseService<ProductbrandMappe
     List<ComboDTO> getCombo();
     List<ComboDTO> getCombo();
 
 
     List<Productbrand> selectAll();
     List<Productbrand> selectAll();
+
+    DocBaseDTO saveData(Productbrand productbrand);
 }
 }

+ 3 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/ProducttypeService.java

@@ -2,6 +2,7 @@ package com.usoftchina.saas.document.service;
 
 
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.commons.dto.ComboDTO;
 import com.usoftchina.saas.commons.dto.ComboDTO;
+import com.usoftchina.saas.commons.dto.DocBaseDTO;
 import com.usoftchina.saas.document.entities.Producttype;
 import com.usoftchina.saas.document.entities.Producttype;
 import com.usoftchina.saas.document.mapper.ProducttypeMapper;
 import com.usoftchina.saas.document.mapper.ProducttypeMapper;
 
 
@@ -12,4 +13,6 @@ public interface ProducttypeService extends CommonBaseService<ProducttypeMapper,
     List<ComboDTO> getCombo();
     List<ComboDTO> getCombo();
 
 
     List<Producttype> selectAll();
     List<Producttype> selectAll();
+
+    DocBaseDTO saveData(Producttype producttype);
 }
 }

+ 3 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/ProductunitService.java

@@ -2,6 +2,7 @@ package com.usoftchina.saas.document.service;
 
 
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.commons.dto.ComboDTO;
 import com.usoftchina.saas.commons.dto.ComboDTO;
+import com.usoftchina.saas.commons.dto.DocBaseDTO;
 import com.usoftchina.saas.document.entities.Productunit;
 import com.usoftchina.saas.document.entities.Productunit;
 import com.usoftchina.saas.document.mapper.ProductunitMapper;
 import com.usoftchina.saas.document.mapper.ProductunitMapper;
 
 
@@ -12,4 +13,6 @@ public interface ProductunitService extends CommonBaseService<ProductunitMapper,
     List<ComboDTO> getCombo();
     List<ComboDTO> getCombo();
 
 
     List<Productunit> selectAll();
     List<Productunit> selectAll();
+
+    DocBaseDTO saveData(Productunit productunit);
 }
 }

+ 3 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/VendorkindService.java

@@ -2,6 +2,7 @@ package com.usoftchina.saas.document.service;
 
 
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.base.service.CommonBaseService;
 import com.usoftchina.saas.commons.dto.ComboDTO;
 import com.usoftchina.saas.commons.dto.ComboDTO;
+import com.usoftchina.saas.commons.dto.DocBaseDTO;
 import com.usoftchina.saas.document.entities.Vendorkind;
 import com.usoftchina.saas.document.entities.Vendorkind;
 import com.usoftchina.saas.document.mapper.VendorkindMapper;
 import com.usoftchina.saas.document.mapper.VendorkindMapper;
 
 
@@ -12,4 +13,6 @@ public interface VendorkindService extends CommonBaseService<VendorkindMapper, V
     List<ComboDTO> getCombo();
     List<ComboDTO> getCombo();
 
 
     List<Vendorkind> selectAll();
     List<Vendorkind> selectAll();
+
+    DocBaseDTO saveData(Vendorkind vendorkind);
 }
 }

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

@@ -32,7 +32,8 @@ public class AddressServiceImpl extends CommonBaseServiceImpl<AddressMapper, Add
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public boolean save(Address address){
+    public DocBaseDTO saveData(Address address){
+        DocBaseDTO docBaseDTO = new DocBaseDTO();
         if(address.getId() == 0){
         if(address.getId() == 0){
             address.setCompanyId(BaseContextHolder.getCompanyId());
             address.setCompanyId(BaseContextHolder.getCompanyId());
             address.setCreateTime(new Date());
             address.setCreateTime(new Date());
@@ -41,7 +42,8 @@ public class AddressServiceImpl extends CommonBaseServiceImpl<AddressMapper, Add
             validName(address.getAd_address(), address.getId());
             validName(address.getAd_address(), address.getId());
             addressMapper.insertSelective(address);
             addressMapper.insertSelective(address);
             //记录LOG
             //记录LOG
-            messageLogService.save(generateMsgObj(address.getId()));
+            docBaseDTO = generateMsgObj(address.getId());
+            messageLogService.save(docBaseDTO);
         }else{
         }else{
             address.setUpdaterId(BaseContextHolder.getUserId());
             address.setUpdaterId(BaseContextHolder.getUserId());
             address.setUpdateTime(new Date());
             address.setUpdateTime(new Date());
@@ -49,9 +51,10 @@ public class AddressServiceImpl extends CommonBaseServiceImpl<AddressMapper, Add
             validName(address.getAd_address(), address.getId());
             validName(address.getAd_address(), address.getId());
             addressMapper.updateByPrimaryKeySelective(address);
             addressMapper.updateByPrimaryKeySelective(address);
             //记录LOG
             //记录LOG
-            messageLogService.update(generateMsgObj(address.getId()));
+            docBaseDTO = generateMsgObj(address.getId());
+            messageLogService.update(docBaseDTO);
         }
         }
-        return true;
+        return docBaseDTO;
     }
     }
 
 
     /**
     /**

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

@@ -29,7 +29,8 @@ public class FundinouttypeServiceImpl extends CommonBaseServiceImpl<Fundinouttyp
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public boolean save(Fundinouttype fundinouttype){
+    public DocBaseDTO saveData(Fundinouttype fundinouttype){
+        DocBaseDTO docBaseDTO = new DocBaseDTO();
         if(fundinouttype.getId() == 0){
         if(fundinouttype.getId() == 0){
             fundinouttype.setCompanyId(BaseContextHolder.getCompanyId());
             fundinouttype.setCompanyId(BaseContextHolder.getCompanyId());
             fundinouttype.setCreatorId(BaseContextHolder.getUserId());
             fundinouttype.setCreatorId(BaseContextHolder.getUserId());
@@ -39,7 +40,8 @@ public class FundinouttypeServiceImpl extends CommonBaseServiceImpl<Fundinouttyp
 
 
             getMapper().insertSelective(fundinouttype);
             getMapper().insertSelective(fundinouttype);
             //记录LOG
             //记录LOG
-            messageLogService.save(generateMsgObj(fundinouttype.getId()));
+            docBaseDTO = generateMsgObj(fundinouttype.getId());
+            messageLogService.save(docBaseDTO);
         }else{
         }else{
             fundinouttype.setUpdaterId(BaseContextHolder.getUserId());
             fundinouttype.setUpdaterId(BaseContextHolder.getUserId());
             fundinouttype.setUpdateTime(new Date());
             fundinouttype.setUpdateTime(new Date());
@@ -48,9 +50,10 @@ public class FundinouttypeServiceImpl extends CommonBaseServiceImpl<Fundinouttyp
 
 
             getMapper().updateByPrimaryKeySelective(fundinouttype);
             getMapper().updateByPrimaryKeySelective(fundinouttype);
             //记录LOG
             //记录LOG
-            messageLogService.update(generateMsgObj(fundinouttype.getId()));
+            docBaseDTO = generateMsgObj(fundinouttype.getId());
+            messageLogService.update(docBaseDTO);
         }
         }
-        return true;
+        return docBaseDTO;
     }
     }
 
 
     /**
     /**

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

@@ -27,7 +27,8 @@ public class ProductbrandServiceImpl extends CommonBaseServiceImpl<ProductbrandM
     private final String LOG_NAME = "ProductBrand";
     private final String LOG_NAME = "ProductBrand";
 
 
     @Override
     @Override
-    public boolean save(Productbrand productbrand){
+    public DocBaseDTO saveData(Productbrand productbrand){
+        DocBaseDTO docBaseDTO = null;
         productbrand.setCompanyId(BaseContextHolder.getCompanyId());
         productbrand.setCompanyId(BaseContextHolder.getCompanyId());
         if(productbrand.getId() == 0){
         if(productbrand.getId() == 0){
             productbrand.setCompanyId(BaseContextHolder.getCompanyId());
             productbrand.setCompanyId(BaseContextHolder.getCompanyId());
@@ -38,7 +39,7 @@ public class ProductbrandServiceImpl extends CommonBaseServiceImpl<ProductbrandM
 
 
             productbrandMapper.insertSelective(productbrand);
             productbrandMapper.insertSelective(productbrand);
             //记录日志
             //记录日志
-            DocBaseDTO docBaseDTO = new DocBaseDTO(productbrand.getId(), null, LOG_NAME);
+            docBaseDTO = new DocBaseDTO(productbrand.getId(), null, LOG_NAME);
             messageLogService.save(docBaseDTO);
             messageLogService.save(docBaseDTO);
         }else{
         }else{
             productbrand.setUpdaterId(BaseContextHolder.getUserId());
             productbrand.setUpdaterId(BaseContextHolder.getUserId());
@@ -47,10 +48,10 @@ public class ProductbrandServiceImpl extends CommonBaseServiceImpl<ProductbrandM
             validName(productbrand.getPb_name(), productbrand.getId());
             validName(productbrand.getPb_name(), productbrand.getId());
             productbrandMapper.updateByPrimaryKeySelective(productbrand);
             productbrandMapper.updateByPrimaryKeySelective(productbrand);
             //记录日志
             //记录日志
-            DocBaseDTO docBaseDTO = new DocBaseDTO(productbrand.getId(), null, LOG_NAME);
+            docBaseDTO = new DocBaseDTO(productbrand.getId(), null, LOG_NAME);
             messageLogService.update(docBaseDTO);
             messageLogService.update(docBaseDTO);
         }
         }
-        return true;
+        return docBaseDTO;
     }
     }
 
 
     @Override
     @Override

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

@@ -13,6 +13,7 @@ import com.usoftchina.saas.exception.BizException;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 
 
+import javax.print.Doc;
 import java.util.Date;
 import java.util.Date;
 import java.util.List;
 import java.util.List;
 
 
@@ -30,7 +31,8 @@ public class ProducttypeServiceImpl extends CommonBaseServiceImpl<ProducttypeMap
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public boolean save(Producttype producttype){
+    public DocBaseDTO saveData(Producttype producttype){
+        DocBaseDTO docBaseDTO = null;
         if(producttype.getId() == 0){
         if(producttype.getId() == 0){
             producttype.setCompanyId(BaseContextHolder.getCompanyId());
             producttype.setCompanyId(BaseContextHolder.getCompanyId());
             producttype.setCreatorId(BaseContextHolder.getUserId());
             producttype.setCreatorId(BaseContextHolder.getUserId());
@@ -39,7 +41,8 @@ public class ProducttypeServiceImpl extends CommonBaseServiceImpl<ProducttypeMap
             validName(producttype.getPt_name(), producttype.getId());
             validName(producttype.getPt_name(), producttype.getId());
             producttypeMapper.insertSelective(producttype);
             producttypeMapper.insertSelective(producttype);
             //记录LOG
             //记录LOG
-            messageLogService.save(generateMsgObj(producttype.getId()));
+            docBaseDTO = generateMsgObj(producttype.getId());
+            messageLogService.save(docBaseDTO);
         }else{
         }else{
             producttype.setUpdaterId(BaseContextHolder.getUserId());
             producttype.setUpdaterId(BaseContextHolder.getUserId());
             producttype.setUpdateTime(new Date());
             producttype.setUpdateTime(new Date());
@@ -47,9 +50,10 @@ public class ProducttypeServiceImpl extends CommonBaseServiceImpl<ProducttypeMap
             validName(producttype.getPt_name(), producttype.getId());
             validName(producttype.getPt_name(), producttype.getId());
             producttypeMapper.updateByPrimaryKeySelective(producttype);
             producttypeMapper.updateByPrimaryKeySelective(producttype);
             //记录LOG
             //记录LOG
-            messageLogService.update(generateMsgObj(producttype.getId()));
+            docBaseDTO = generateMsgObj(producttype.getId());
+            messageLogService.update(docBaseDTO);
         }
         }
-        return true;
+        return docBaseDTO;
     }
     }
 
 
     /**
     /**

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

@@ -23,7 +23,8 @@ public class ProductunitServiceImpl extends CommonBaseServiceImpl<ProductunitMap
     private MessageLogService messageLogService;
     private MessageLogService messageLogService;
 
 
     @Override
     @Override
-    public boolean save(Productunit productunit){
+    public DocBaseDTO saveData(Productunit productunit){
+        DocBaseDTO docBaseDTO = null;
         if(productunit.getId() == 0){
         if(productunit.getId() == 0){
             productunit.setCompanyId(BaseContextHolder.getCompanyId());
             productunit.setCompanyId(BaseContextHolder.getCompanyId());
             productunit.setCreatorId(BaseContextHolder.getUserId());
             productunit.setCreatorId(BaseContextHolder.getUserId());
@@ -33,7 +34,8 @@ public class ProductunitServiceImpl extends CommonBaseServiceImpl<ProductunitMap
 
 
             getMapper().insertSelective(productunit);
             getMapper().insertSelective(productunit);
             //记录LOG
             //记录LOG
-            messageLogService.save(generateMsgObj(productunit.getId()));
+            docBaseDTO = generateMsgObj(productunit.getId());
+            messageLogService.save(docBaseDTO);
         }else{
         }else{
             productunit.setUpdaterId(BaseContextHolder.getUserId());
             productunit.setUpdaterId(BaseContextHolder.getUserId());
             productunit.setUpdateTime(new Date());
             productunit.setUpdateTime(new Date());
@@ -41,9 +43,10 @@ public class ProductunitServiceImpl extends CommonBaseServiceImpl<ProductunitMap
             validName(productunit.getPu_name(), productunit.getId());
             validName(productunit.getPu_name(), productunit.getId());
             getMapper().updateByPrimaryKeySelective(productunit);
             getMapper().updateByPrimaryKeySelective(productunit);
             //记录LOG
             //记录LOG
-            messageLogService.update(generateMsgObj(productunit.getId()));
+            docBaseDTO = generateMsgObj(productunit.getId());
+            messageLogService.update(docBaseDTO);
         }
         }
-        return true;
+        return docBaseDTO;
     }
     }
 
 
     @Override
     @Override

+ 1 - 1
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/VendorServiceImpl.java

@@ -260,9 +260,9 @@ public class VendorServiceImpl extends CommonBaseServiceImpl<VendorMapper, Vendo
 
 
     @Override
     @Override
     public boolean deleteContact(Long id) {
     public boolean deleteContact(Long id) {
-        vendorcontactMapper.deleteByPrimaryKey(id);
         Long ve_id = vendorcontactMapper.selectByPrimaryKey(id).getVc_veid();
         Long ve_id = vendorcontactMapper.selectByPrimaryKey(id).getVc_veid();
         String code = getMapper().getCodeById(ve_id, BaseContextHolder.getCompanyId());
         String code = getMapper().getCodeById(ve_id, BaseContextHolder.getCompanyId());
+        vendorcontactMapper.deleteByPrimaryKey(id);
         //记录LOG
         //记录LOG
         messageLogService.deleteDetail(generateMsgObj(id, code));
         messageLogService.deleteDetail(generateMsgObj(id, code));
         return true;
         return true;

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

@@ -13,6 +13,7 @@ import com.usoftchina.saas.exception.BizException;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 
 
+import javax.print.Doc;
 import java.util.Date;
 import java.util.Date;
 import java.util.List;
 import java.util.List;
 
 
@@ -25,7 +26,8 @@ public class VendorkindServiceImpl extends CommonBaseServiceImpl<VendorkindMappe
     private MessageLogService messageLogService;
     private MessageLogService messageLogService;
 
 
     @Override
     @Override
-    public boolean save(Vendorkind vendorkind){
+    public DocBaseDTO saveData(Vendorkind vendorkind){
+        DocBaseDTO docBaseDTO = null;
         if(vendorkind.getId() == 0){
         if(vendorkind.getId() == 0){
             vendorkind.setCompanyId(BaseContextHolder.getCompanyId());
             vendorkind.setCompanyId(BaseContextHolder.getCompanyId());
             vendorkind.setCreatorId(BaseContextHolder.getUserId());
             vendorkind.setCreatorId(BaseContextHolder.getUserId());
@@ -34,7 +36,8 @@ public class VendorkindServiceImpl extends CommonBaseServiceImpl<VendorkindMappe
             validName(vendorkind.getVk_name(), vendorkind.getId());
             validName(vendorkind.getVk_name(), vendorkind.getId());
             vendorkindMapper.insertSelective(vendorkind);
             vendorkindMapper.insertSelective(vendorkind);
             //记录LOG
             //记录LOG
-            messageLogService.save(generateMsgObj(vendorkind.getId()));
+            docBaseDTO = generateMsgObj(vendorkind.getId());
+            messageLogService.save(docBaseDTO);
         }else{
         }else{
             vendorkind.setUpdaterId(BaseContextHolder.getUserId());
             vendorkind.setUpdaterId(BaseContextHolder.getUserId());
             vendorkind.setUpdateTime(new Date());
             vendorkind.setUpdateTime(new Date());
@@ -42,9 +45,10 @@ public class VendorkindServiceImpl extends CommonBaseServiceImpl<VendorkindMappe
             validName(vendorkind.getVk_name(), vendorkind.getId());
             validName(vendorkind.getVk_name(), vendorkind.getId());
             vendorkindMapper.updateByPrimaryKeySelective(vendorkind);
             vendorkindMapper.updateByPrimaryKeySelective(vendorkind);
             //记录LOG
             //记录LOG
-            messageLogService.update(generateMsgObj(vendorkind.getId()));
+            docBaseDTO = generateMsgObj(vendorkind.getId());
+            messageLogService.update(docBaseDTO);
         }
         }
-        return true;
+        return docBaseDTO;
     }
     }
 
 
     @Override
     @Override

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

@@ -267,6 +267,6 @@
         AND companyId = #{companyId}
         AND companyId = #{companyId}
       </if>
       </if>
     </where>
     </where>
-    ORDER BY BO_ID
+    ORDER BY BO_ID DESC
   </select>
   </select>
 </mapper>
 </mapper>

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

@@ -50,7 +50,7 @@
       <if test="companyId != null">
       <if test="companyId != null">
         and   customer.companyid = #{companyId}
         and   customer.companyid = #{companyId}
       </if>
       </if>
-    </where>  order by cu_id
+    </where>  order by cu_id DESC
   </select>
   </select>
 
 
   <select id="selectDbFind" resultMap="BaseResultMap">
   <select id="selectDbFind" resultMap="BaseResultMap">
@@ -76,7 +76,7 @@
         and  companyid = #{companyId}
         and  companyid = #{companyId}
       </if>
       </if>
     </where>
     </where>
-    order by cu_id
+    order by cu_id DESC
   </select>
   </select>
 
 
 
 

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

@@ -70,6 +70,7 @@
                 and  PRODUCT.companyid = #{companyId}
                 and  PRODUCT.companyid = #{companyId}
             </if>
             </if>
         </where>
         </where>
+        ORDER BY PR_ID DESC
     </select>
     </select>
 
 
     <select id="getProdUnit" resultType="com.usoftchina.saas.commons.dto.ComboDTO">
     <select id="getProdUnit" resultType="com.usoftchina.saas.commons.dto.ComboDTO">

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

@@ -51,7 +51,7 @@
                 AND companyId = #{companyId}
                 AND companyId = #{companyId}
             </if>
             </if>
         </where>
         </where>
-        ORDER BY VE_ID
+        ORDER BY VE_ID DESC
     </select>
     </select>
 
 
     <resultMap id="VendorListResultMapper" type="com.usoftchina.saas.document.entities.VendorList">
     <resultMap id="VendorListResultMapper" type="com.usoftchina.saas.document.entities.VendorList">

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

@@ -326,7 +326,7 @@
                 and  companyid = #{companyId}
                 and  companyid = #{companyId}
             </if>
             </if>
         </where>
         </where>
-        order by wh_id
+        order by wh_id DESC
     </select>
     </select>
 
 
     <select id="selectCountByName" resultType="int">
     <select id="selectCountByName" resultType="int">

+ 10 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtransferdetail.java

@@ -13,6 +13,8 @@ public class Fundtransferdetail extends CommonBaseEntity implements Serializable
 
 
     private Integer ftd_ym;
     private Integer ftd_ym;
 
 
+    private Date ft_date;
+
     private Integer ftd_bankid;
     private Integer ftd_bankid;
 
 
     private String ftd_bankcode;
     private String ftd_bankcode;
@@ -45,6 +47,14 @@ public class Fundtransferdetail extends CommonBaseEntity implements Serializable
 
 
     private String ftd_text5;
     private String ftd_text5;
 
 
+    public Date getFt_date() {
+        return ft_date;
+    }
+
+    public void setFt_date(Date ft_date) {
+        this.ft_date = ft_date;
+    }
+
     public Integer getFtd_ftid() {
     public Integer getFtd_ftid() {
         return ftd_ftid;
         return ftd_ftid;
     }
     }

+ 9 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Othreceiptsdetail.java

@@ -12,6 +12,7 @@ public class Othreceiptsdetail extends CommonBaseEntity implements Serializable
     private Integer ord_detno;
     private Integer ord_detno;
 
 
     private Integer ord_ym;
     private Integer ord_ym;
+    private Date or_date;
 
 
     private String ord_type;
     private String ord_type;
 
 
@@ -31,6 +32,14 @@ public class Othreceiptsdetail extends CommonBaseEntity implements Serializable
 
 
     private String ord_text5;
     private String ord_text5;
 
 
+    public Date getOr_date() {
+        return or_date;
+    }
+
+    public void setOr_date(Date or_date) {
+        this.or_date = or_date;
+    }
+
     public Integer getOrd_orid() {
     public Integer getOrd_orid() {
         return ord_orid;
         return ord_orid;
     }
     }

+ 10 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Othspendingsdetail.java

@@ -13,6 +13,8 @@ public class Othspendingsdetail extends CommonBaseEntity implements Serializable
 
 
     private Integer osd_ym;
     private Integer osd_ym;
 
 
+    private Date os_date;
+
     private String osd_type;
     private String osd_type;
 
 
     private Double osd_nowbalance;
     private Double osd_nowbalance;
@@ -31,6 +33,14 @@ public class Othspendingsdetail extends CommonBaseEntity implements Serializable
 
 
     private String osd_text5;
     private String osd_text5;
 
 
+    public Date getOs_date() {
+        return os_date;
+    }
+
+    public void setOs_date(Date os_date) {
+        this.os_date = os_date;
+    }
+
     public Integer getOsd_orid() {
     public Integer getOsd_orid() {
         return osd_orid;
         return osd_orid;
     }
     }

+ 7 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/FundtransferServiceImpl.java

@@ -92,9 +92,15 @@ public class FundtransferServiceImpl implements FundtransferService {
             this.insert(fundtran);
             this.insert(fundtran);
         }else {
         }else {
             fundtransferMapper.updateByPrimaryKeySelective(fundtransfer);
             fundtransferMapper.updateByPrimaryKeySelective(fundtransfer);
+            List<Fundtransferdetail> fundtransferdetailList = fundtran.getItems();
+            Iterator isList = fundtransferdetailList.iterator();
+            while (isList.hasNext()){
+                Fundtransferdetail fundtransferdetail = (Fundtransferdetail) isList.next();
+                fundtransferdetail.setFt_date(fundtransfer.getFt_date());
+                fundtransferdetailMapper.updateByPrimaryKeySelective(fundtransferdetail);
+            }
         }
         }
 
 
-
         //取从表金额
         //取从表金额
         List<Fundtransferdetail> fundtransferdetailList = fundtran.getItems();
         List<Fundtransferdetail> fundtransferdetailList = fundtran.getItems();
         Iterator isList = fundtransferdetailList.iterator();
         Iterator isList = fundtransferdetailList.iterator();

+ 11 - 2
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthreceiptsServiceImpl.java

@@ -10,12 +10,14 @@ import com.usoftchina.saas.commons.exception.BizExceptionCode;
 import com.usoftchina.saas.commons.po.BillCodeSeq;
 import com.usoftchina.saas.commons.po.BillCodeSeq;
 import com.usoftchina.saas.commons.po.Status;
 import com.usoftchina.saas.commons.po.Status;
 import com.usoftchina.saas.context.BaseContextHolder;
 import com.usoftchina.saas.context.BaseContextHolder;
-import com.usoftchina.saas.document.mapper.BankinformationMapper;
 import com.usoftchina.saas.exception.BizException;
 import com.usoftchina.saas.exception.BizException;
 import com.usoftchina.saas.money.mapper.BanksubledgerMapper;
 import com.usoftchina.saas.money.mapper.BanksubledgerMapper;
 import com.usoftchina.saas.money.mapper.OthreceiptsMapper;
 import com.usoftchina.saas.money.mapper.OthreceiptsMapper;
 import com.usoftchina.saas.money.mapper.OthreceiptsdetailMapper;
 import com.usoftchina.saas.money.mapper.OthreceiptsdetailMapper;
-import com.usoftchina.saas.money.po.*;
+import com.usoftchina.saas.money.po.Banksubledger;
+import com.usoftchina.saas.money.po.Othreceipts;
+import com.usoftchina.saas.money.po.Othreceiptsdetail;
+import com.usoftchina.saas.money.po.Othte;
 import com.usoftchina.saas.money.service.OthreceiptsService;
 import com.usoftchina.saas.money.service.OthreceiptsService;
 import com.usoftchina.saas.page.PageRequest;
 import com.usoftchina.saas.page.PageRequest;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -94,6 +96,13 @@ public class OthreceiptsServiceImpl implements OthreceiptsService {
             this.insert(othte);
             this.insert(othte);
         }else {
         }else {
             othreceiptsMapper.updateByPrimaryKeySelective(othreceipts);
             othreceiptsMapper.updateByPrimaryKeySelective(othreceipts);
+            List<Othreceiptsdetail> othreceiptsdetailList = othte.getItems();
+            Iterator isList = othreceiptsdetailList.iterator();
+            while (isList.hasNext()){
+                Othreceiptsdetail fundtransferdetail = (Othreceiptsdetail) isList.next();
+                fundtransferdetail.setOr_date(othreceipts.getOr_date());
+                othreceiptsdetailMapper.updateByPrimaryKeySelective(fundtransferdetail);
+            }
         }
         }
 
 
         Double amount = banksubledgerMapper.selectThisamount(othreceipts.getOr_bankcode());
         Double amount = banksubledgerMapper.selectThisamount(othreceipts.getOr_bankcode());

+ 14 - 3
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthspendingsServiceImpl.java

@@ -10,10 +10,14 @@ import com.usoftchina.saas.commons.exception.BizExceptionCode;
 import com.usoftchina.saas.commons.po.BillCodeSeq;
 import com.usoftchina.saas.commons.po.BillCodeSeq;
 import com.usoftchina.saas.commons.po.Status;
 import com.usoftchina.saas.commons.po.Status;
 import com.usoftchina.saas.context.BaseContextHolder;
 import com.usoftchina.saas.context.BaseContextHolder;
-import com.usoftchina.saas.document.mapper.BankinformationMapper;
 import com.usoftchina.saas.exception.BizException;
 import com.usoftchina.saas.exception.BizException;
-import com.usoftchina.saas.money.mapper.*;
-import com.usoftchina.saas.money.po.*;
+import com.usoftchina.saas.money.mapper.BanksubledgerMapper;
+import com.usoftchina.saas.money.mapper.OthspendingsMapper;
+import com.usoftchina.saas.money.mapper.OthspendingsdetailMapper;
+import com.usoftchina.saas.money.po.Banksubledger;
+import com.usoftchina.saas.money.po.Othsp;
+import com.usoftchina.saas.money.po.Othspendings;
+import com.usoftchina.saas.money.po.Othspendingsdetail;
 import com.usoftchina.saas.money.service.OthspendingsService;
 import com.usoftchina.saas.money.service.OthspendingsService;
 import com.usoftchina.saas.page.PageRequest;
 import com.usoftchina.saas.page.PageRequest;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -122,6 +126,13 @@ public class OthspendingsServiceImpl implements OthspendingsService {
             this.insert(othsp);
             this.insert(othsp);
         }else {
         }else {
             othspendingsMapper.updateByPrimaryKeySelective(othspendings);
             othspendingsMapper.updateByPrimaryKeySelective(othspendings);
+            List<Othspendingsdetail> othspendingsdetailList = othsp.getItems();
+            Iterator isList = othspendingsdetailList.iterator();
+            while (isList.hasNext()){
+                Othspendingsdetail othspendingsdetail = (Othspendingsdetail) isList.next();
+                othspendingsdetail.setOs_date(othspendings.getOs_date());
+                othspendingsdetailMapper.updateByPrimaryKeySelective(othspendingsdetail);
+            }
         }
         }
 
 
         Double amount = banksubledgerMapper.selectThisamount(othspendings.getOs_bankcode());
         Double amount = banksubledgerMapper.selectThisamount(othspendings.getOs_bankcode());

+ 1 - 5
applications/money/money-server/src/main/resources/mapper/FundtransferMapper.xml

@@ -88,7 +88,6 @@
       <if test="updaterId != null" >
       <if test="updaterId != null" >
         updaterId,
         updaterId,
       </if>
       </if>
-        updatedate,
       <if test="ft_text1 != null" >
       <if test="ft_text1 != null" >
         ft_text1,
         ft_text1,
       </if>
       </if>
@@ -136,7 +135,6 @@
       <if test="updaterId != null" >
       <if test="updaterId != null" >
         #{updaterId,jdbcType=INTEGER},
         #{updaterId,jdbcType=INTEGER},
       </if>
       </if>
-        #{now(),jdbcType=TIMESTAMP},
       <if test="ft_text1 != null" >
       <if test="ft_text1 != null" >
         #{ft_text1,jdbcType=VARCHAR},
         #{ft_text1,jdbcType=VARCHAR},
       </if>
       </if>
@@ -190,9 +188,7 @@
       <if test="updaterId != null" >
       <if test="updaterId != null" >
         updaterId = #{updaterId,jdbcType=INTEGER},
         updaterId = #{updaterId,jdbcType=INTEGER},
       </if>
       </if>
-      <if test="updatedate != null" >
-        updatedate = #{updatedate,jdbcType=TIMESTAMP},
-      </if>
+      updatedate = now(),
       <if test="ft_text1 != null" >
       <if test="ft_text1 != null" >
         ft_text1 = #{ft_text1,jdbcType=VARCHAR},
         ft_text1 = #{ft_text1,jdbcType=VARCHAR},
       </if>
       </if>

+ 4 - 5
applications/money/money-server/src/main/resources/mapper/FundtransferdetailMapper.xml

@@ -6,6 +6,7 @@
     <result column="ftd_ftid" property="ftd_ftid" jdbcType="INTEGER" />
     <result column="ftd_ftid" property="ftd_ftid" jdbcType="INTEGER" />
     <result column="ftd_detno" property="ftd_detno" jdbcType="INTEGER" />
     <result column="ftd_detno" property="ftd_detno" jdbcType="INTEGER" />
     <result column="ftd_ym" property="ftd_ym" jdbcType="INTEGER" />
     <result column="ftd_ym" property="ftd_ym" jdbcType="INTEGER" />
+      <result column="ft_date" property="ft_date" jdbcType="TIMESTAMP" />
     <result column="ftd_bankid" property="ftd_bankid" jdbcType="INTEGER" />
     <result column="ftd_bankid" property="ftd_bankid" jdbcType="INTEGER" />
     <result column="ftd_bankcode" property="ftd_bankcode" jdbcType="VARCHAR" />
     <result column="ftd_bankcode" property="ftd_bankcode" jdbcType="VARCHAR" />
     <result column="ftd_bankname" property="ftd_bankname" jdbcType="VARCHAR" />
     <result column="ftd_bankname" property="ftd_bankname" jdbcType="VARCHAR" />
@@ -207,8 +208,8 @@
       <if test="ftd_detno != null" >
       <if test="ftd_detno != null" >
         ftd_detno = #{ftd_detno,jdbcType=INTEGER},
         ftd_detno = #{ftd_detno,jdbcType=INTEGER},
       </if>
       </if>
-      <if test="ftd_ym != null" >
-        ftd_ym = to_char(#{ftd_ym,jdbcType=INTEGER},'yyyymm'),
+      <if test="ft_date != null" >
+        ftd_ym = CONVERT(date_format(#{ft_date,jdbcType=TIMESTAMP},'%Y%m'),SIGNED),
       </if>
       </if>
       <if test="ftd_bankid != null" >
       <if test="ftd_bankid != null" >
         ftd_bankid = #{ftd_bankid,jdbcType=INTEGER},
         ftd_bankid = #{ftd_bankid,jdbcType=INTEGER},
@@ -246,9 +247,7 @@
       <if test="updaterId != null" >
       <if test="updaterId != null" >
         updaterId = #{updaterId,jdbcType=INTEGER},
         updaterId = #{updaterId,jdbcType=INTEGER},
       </if>
       </if>
-      <if test="updatedate != null" >
-        updatedate = #{updatedate,jdbcType=TIMESTAMP},
-      </if>
+        updatedate = now(),
       <if test="ftd_text1 != null" >
       <if test="ftd_text1 != null" >
         ftd_text1 = #{ftd_text1,jdbcType=VARCHAR},
         ftd_text1 = #{ftd_text1,jdbcType=VARCHAR},
       </if>
       </if>

+ 1 - 3
applications/money/money-server/src/main/resources/mapper/OthreceiptsMapper.xml

@@ -272,9 +272,7 @@
       <if test="updaterId != null" >
       <if test="updaterId != null" >
         updaterId = #{updaterId,jdbcType=INTEGER},
         updaterId = #{updaterId,jdbcType=INTEGER},
       </if>
       </if>
-      <if test="updatedate != null" >
-        updatedate = #{updatedate,jdbcType=TIMESTAMP},
-      </if>
+      updatedate = now(),
       <if test="or_text1 != null" >
       <if test="or_text1 != null" >
         or_text1 = #{or_text1,jdbcType=VARCHAR},
         or_text1 = #{or_text1,jdbcType=VARCHAR},
       </if>
       </if>

+ 3 - 2
applications/money/money-server/src/main/resources/mapper/OthreceiptsdetailMapper.xml

@@ -6,6 +6,7 @@
     <result column="ord_orid" property="ord_orid" jdbcType="INTEGER" />
     <result column="ord_orid" property="ord_orid" jdbcType="INTEGER" />
     <result column="ord_detno" property="ord_detno" jdbcType="INTEGER" />
     <result column="ord_detno" property="ord_detno" jdbcType="INTEGER" />
     <result column="ord_ym" property="ord_ym" jdbcType="INTEGER" />
     <result column="ord_ym" property="ord_ym" jdbcType="INTEGER" />
+    <result column="or_date" property="or_date" jdbcType="TIMESTAMP" />
     <result column="ord_type" property="ord_type" jdbcType="VARCHAR" />
     <result column="ord_type" property="ord_type" jdbcType="VARCHAR" />
     <result column="ord_nowbalance" property="ord_nowbalance" jdbcType="DOUBLE" />
     <result column="ord_nowbalance" property="ord_nowbalance" jdbcType="DOUBLE" />
     <result column="ord_remark" property="ord_remark" jdbcType="VARCHAR" />
     <result column="ord_remark" property="ord_remark" jdbcType="VARCHAR" />
@@ -149,8 +150,8 @@
       <if test="ord_detno != null" >
       <if test="ord_detno != null" >
         ord_detno = #{ord_detno,jdbcType=INTEGER},
         ord_detno = #{ord_detno,jdbcType=INTEGER},
       </if>
       </if>
-      <if test="ord_ym != null" >
-        ord_ym = to_char(#{ord_ym,jdbcType=INTEGER},'yyyymm'),
+      <if test="or_date != null" >
+        ord_ym = CONVERT(date_format(#{or_date,jdbcType=TIMESTAMP},'%Y%m'),SIGNED),
       </if>
       </if>
       <if test="ord_type != null" >
       <if test="ord_type != null" >
         ord_type = #{ord_type,jdbcType=VARCHAR},
         ord_type = #{ord_type,jdbcType=VARCHAR},

+ 1 - 3
applications/money/money-server/src/main/resources/mapper/OthspendingsMapper.xml

@@ -266,9 +266,7 @@
       <if test="updaterId != null" >
       <if test="updaterId != null" >
         updaterId = #{updaterId,jdbcType=INTEGER},
         updaterId = #{updaterId,jdbcType=INTEGER},
       </if>
       </if>
-      <if test="updatedate != null" >
-        updatedate = #{updatedate,jdbcType=TIMESTAMP},
-      </if>
+      updatedate = now(),
       <if test="os_text1 != null" >
       <if test="os_text1 != null" >
         os_text1 = #{os_text1,jdbcType=VARCHAR},
         os_text1 = #{os_text1,jdbcType=VARCHAR},
       </if>
       </if>

+ 3 - 2
applications/money/money-server/src/main/resources/mapper/OthspendingsdetailMapper.xml

@@ -6,6 +6,7 @@
     <result column="osd_orid" property="osd_orid" jdbcType="INTEGER" />
     <result column="osd_orid" property="osd_orid" jdbcType="INTEGER" />
     <result column="osd_detno" property="osd_detno" jdbcType="INTEGER" />
     <result column="osd_detno" property="osd_detno" jdbcType="INTEGER" />
     <result column="osd_ym" property="osd_ym" jdbcType="INTEGER" />
     <result column="osd_ym" property="osd_ym" jdbcType="INTEGER" />
+    <result column="os_date" property="os_date" jdbcType="TIMESTAMP" />
     <result column="osd_type" property="osd_type" jdbcType="VARCHAR" />
     <result column="osd_type" property="osd_type" jdbcType="VARCHAR" />
     <result column="osd_nowbalance" property="osd_nowbalance" jdbcType="DOUBLE" />
     <result column="osd_nowbalance" property="osd_nowbalance" jdbcType="DOUBLE" />
     <result column="osd_remark" property="osd_remark" jdbcType="VARCHAR" />
     <result column="osd_remark" property="osd_remark" jdbcType="VARCHAR" />
@@ -155,8 +156,8 @@
       <if test="osd_detno != null" >
       <if test="osd_detno != null" >
         osd_detno = #{osd_detno,jdbcType=INTEGER},
         osd_detno = #{osd_detno,jdbcType=INTEGER},
       </if>
       </if>
-      <if test="osd_ym != null" >
-        osd_ym = to_char(#{osd_ym,jdbcType=INTEGER}, 'yyyymm'),
+      <if test="os_date != null" >
+        osd_ym = CONVERT(date_format(#{os_date,jdbcType=TIMESTAMP},'%Y%m'),SIGNED),
       </if>
       </if>
       <if test="osd_type != null" >
       <if test="osd_type != null" >
         osd_type = #{osd_type,jdbcType=VARCHAR},
         osd_type = #{osd_type,jdbcType=VARCHAR},

+ 1 - 3
applications/money/money-server/src/main/resources/mapper/PaybalanceMapper.xml

@@ -374,9 +374,7 @@
       <if test="updaterId != null">
       <if test="updaterId != null">
         updaterId = #{updaterId,jdbcType=INTEGER},
         updaterId = #{updaterId,jdbcType=INTEGER},
       </if>
       </if>
-      <if test="updateTime != null">
-        updatedate = #{updateTime,jdbcType=TIMESTAMP},
-      </if>
+      updatedate = now(),
       <if test="pb_text1 != null">
       <if test="pb_text1 != null">
         pb_text1 = #{pb_text1,jdbcType=VARCHAR},
         pb_text1 = #{pb_text1,jdbcType=VARCHAR},
       </if>
       </if>

+ 1 - 3
applications/money/money-server/src/main/resources/mapper/RecbalanceMapper.xml

@@ -536,9 +536,7 @@
       <if test="updaterId != null">
       <if test="updaterId != null">
         updaterId = #{updaterId,jdbcType=INTEGER},
         updaterId = #{updaterId,jdbcType=INTEGER},
       </if>
       </if>
-      <if test="updateTime != null">
-        updatedate = #{updateTime,jdbcType=TIMESTAMP},
-      </if>
+      updatedate = now(),
       <if test="rb_text1 != null">
       <if test="rb_text1 != null">
         rb_text1 = #{rb_text1,jdbcType=VARCHAR},
         rb_text1 = #{rb_text1,jdbcType=VARCHAR},
       </if>
       </if>

+ 4 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/mapper/ProdInOutMapper.java

@@ -24,4 +24,8 @@ public interface ProdInOutMapper extends CommonBaseMapper<ProdInOut> {
     Integer validateCodeWhenUpdate(@Param("pi_inoutno") String pi_inoutno, @Param("id") Long id,@Param("companyId") Long companyId);
     Integer validateCodeWhenUpdate(@Param("pi_inoutno") String pi_inoutno, @Param("id") Long id,@Param("companyId") Long companyId);
 
 
     String selectCodeById(Long id);
     String selectCodeById(Long id);
+
+    int checkQtyFromPurchase(String pu_code);
+
+    int checkQtyFromProdIn(String pu_code);
 }
 }

+ 24 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/impl/ProdInOutServiceImpl.java

@@ -192,6 +192,13 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
         if (updateDetails.size()>0) {
         if (updateDetails.size()>0) {
             prodIODetailMapper.batchUpdate(updateDetails);
             prodIODetailMapper.batchUpdate(updateDetails);
         }
         }
+
+        //检查更新后数据是否
+        String pu_code = prodInOut.getPi_pucode();
+        if (!StringUtils.isEmpty(pu_code)){
+            checkUpdateQty(pu_code,pi_class);
+        }
+
         baseDTO = getBaseDTOById(pi_id,pi_class,pi_inoutno);
         baseDTO = getBaseDTOById(pi_id,pi_class,pi_inoutno);
         //计算金额,未税单价,未税金额等
         //计算金额,未税单价,未税金额等
         calcProdInout(pi_id,pi_class);
         calcProdInout(pi_id,pi_class);
@@ -202,6 +209,7 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
         return baseDTO;
         return baseDTO;
     }
     }
 
 
+
     @Override
     @Override
     @Transactional
     @Transactional
     public void delete(Long id) {
     public void delete(Long id) {
@@ -358,6 +366,22 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
         }
         }
     }
     }
 
 
+    private void checkUpdateQty(String pu_code, String pi_class) {
+        int count = 0;
+        if ("采购验收单".equals(pi_class)) {
+            count = getMapper().checkQtyFromPurchase(pu_code);
+            if (count>0){
+                throw new BizException(500, "明细行数量超过来源采购单明细行数量");
+            }
+        } else if ("采购验退单".equals(pi_class)) {
+            count = getMapper().checkQtyFromProdIn(pu_code);
+            if (count>0){
+                throw new BizException(500, "明细行数量超过来源采购验收单明细行数量");
+            }
+        }
+
+    }
+
 
 
 
 
     public void updateYqty(ProdInOut prodInOut) {
     public void updateYqty(ProdInOut prodInOut) {

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

@@ -435,8 +435,16 @@
     select pi_inoutno from prodinout where pi_id=#{id}
     select pi_inoutno from prodinout where pi_id=#{id}
   </select>
   </select>
 
 
+  <select id="checkQtyFromPurchase" resultType="int" parameterType="string">
+  select count(1) from(
+  select sum(pd_inqty) nowqty,(select pd_qty from purchasedetail where pd_id = pd_orderid) totalqty   from prodiodetail   where pd_ordercode=#{pu_code}
+  GROUP BY pd_orderid) t  where t.nowqty>t.totalqty
+  </select>
 
 
-
-
+  <select id="checkQtyFromProdIn" resultType="int" parameterType="string">
+  select count(1) from(
+  select sum(b.pd_outqty) nowqty,(select a.pd_inqty from prodiodetail a where a.pd_id = b.pd_ioid and a.pd_piclass='采购验收单') totalqty from prodiodetail b where b.pd_ordercode=#{pu_code} and b.pd_piclass='采购验退单'
+  GROUP BY b.pd_ioid) t where t.nowqty>t.totalqty
+  </select>
 
 
 </mapper>
 </mapper>

+ 3 - 3
applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/controller/MakeController.java

@@ -28,9 +28,9 @@ public class MakeController {
         return Result.success(makeListDTO);
         return Result.success(makeListDTO);
     }
     }
 
 
-    @PostMapping("/audit/{id}")
-    public Result audit(@PathVariable("id") Long id){
-        DocBaseDTO docBaseDTO = makeService.audit(id);
+    @PostMapping("/audit")
+    public Result audit(@RequestBody MakeListDTO makeListDTO){
+        DocBaseDTO docBaseDTO = makeService.audit(makeListDTO);
         return Result.success(docBaseDTO);
         return Result.success(docBaseDTO);
     }
     }
 
 

+ 3 - 0
applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/mapper/ProdIODetailMapper.java

@@ -3,6 +3,7 @@ package com.usoftchina.saas.storage.mapper;
 
 
 import com.usoftchina.saas.base.mapper.CommonBaseMapper;
 import com.usoftchina.saas.base.mapper.CommonBaseMapper;
 import com.usoftchina.saas.storage.po.ProdIODetail;
 import com.usoftchina.saas.storage.po.ProdIODetail;
+import org.apache.ibatis.annotations.Param;
 
 
 import java.util.List;
 import java.util.List;
 
 
@@ -34,4 +35,6 @@ public interface ProdIODetailMapper extends CommonBaseMapper<ProdIODetail> {
     void calcProdIn(Long pi_id);
     void calcProdIn(Long pi_id);
 
 
     void calcProdOut(Long pi_id);
     void calcProdOut(Long pi_id);
+
+    boolean deleteByInOutNo(@Param("code") String code, @Param("type") String type, @Param("companyId") Long companyId);
 }
 }

+ 8 - 0
applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/mapper/ProdInOutMapper.java

@@ -5,6 +5,8 @@ import com.usoftchina.saas.base.mapper.CommonBaseMapper;
 import com.usoftchina.saas.storage.po.ProdInOut;
 import com.usoftchina.saas.storage.po.ProdInOut;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Param;
 
 
+import java.util.Map;
+
 public interface ProdInOutMapper extends CommonBaseMapper<ProdInOut> {
 public interface ProdInOutMapper extends CommonBaseMapper<ProdInOut> {
 
 
 
 
@@ -25,4 +27,10 @@ public interface ProdInOutMapper extends CommonBaseMapper<ProdInOut> {
     Integer validateCodeWhenUpdate(@Param("pi_inoutno") String pi_inoutno, @Param("id") Long id, @Param("companyId") Long companyId);
     Integer validateCodeWhenUpdate(@Param("pi_inoutno") String pi_inoutno, @Param("id") Long id, @Param("companyId") Long companyId);
 
 
     String selectCodeById(Long id);
     String selectCodeById(Long id);
+
+    boolean deleteByInOutNo(@Param("code") String code, @Param("type") String type, @Param("companyId") Long companyId);
+
+    void post(Map<String, Object> map);
+
+    void unPost(Map<String, Object> map);
 }
 }

+ 2 - 2
applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/service/MakeService.java

@@ -68,10 +68,10 @@ public interface MakeService extends CommonBaseService<MakeMapper, Make> {
 
 
     /**
     /**
      * 审核
      * 审核
-     * @param id
+     * @param makeListDTO
      * @return
      * @return
      */
      */
-    DocBaseDTO audit(Long id);
+    DocBaseDTO audit(MakeListDTO makeListDTO);
 
 
     /**
     /**
      * 反审核
      * 反审核

+ 56 - 30
applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/service/impl/MakeServiceImpl.java

@@ -28,6 +28,7 @@ import com.usoftchina.saas.storage.po.ProdInOut;
 import com.usoftchina.saas.storage.service.MakeService;
 import com.usoftchina.saas.storage.service.MakeService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Isolation;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.StringUtils;
 import org.springframework.util.StringUtils;
 
 
@@ -87,7 +88,8 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             String code = pushMaxnubmer(make.getMa_code(), make.getId());
             String code = pushMaxnubmer(make.getMa_code(), make.getId());
             make.setMa_code(code);
             make.setMa_code(code);
             make.setCompanyId(BaseContextHolder.getCompanyId());
             make.setCompanyId(BaseContextHolder.getCompanyId());
-            make.setCreateTime(new Date());
+            //make.setCreateTime(new Date());
+            make.setMa_recorddate(make.getCreateTime());
             make.setCreatorId(BaseContextHolder.getUserId());
             make.setCreatorId(BaseContextHolder.getUserId());
 
 
             getMapper().insertSelective(make);
             getMapper().insertSelective(make);
@@ -164,7 +166,12 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             }
             }
         }else if ("拆件".equals(make.getMa_type())){
         }else if ("拆件".equals(make.getMa_type())){
             double qty = make.getMa_qty();
             double qty = make.getMa_qty();
-            double onHand = getMapper().getOnHand(make.getMa_prodcode(),make.getMa_whcode(),BaseContextHolder.getCompanyId());
+            double onHand = 0;
+            try {
+                onHand = getMapper().getOnHand(make.getMa_prodcode(), make.getMa_whcode(), BaseContextHolder.getCompanyId());
+            }catch (Exception e){
+                throw new BizException(79402, make.getMa_prodcode() + ":库存不足");
+            }
             if(onHand < qty){
             if(onHand < qty){
                 throw new BizException(79402, make.getMa_prodcode() + ":库存不足");
                 throw new BizException(79402, make.getMa_prodcode() + ":库存不足");
             }
             }
@@ -215,24 +222,36 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
 
 
     @Override
     @Override
     public boolean delete(Long id) {
     public boolean delete(Long id) {
+        DocBaseDTO docBaseDTO = generateMsgObj(id, getMapper().selectByPrimaryKey(id).getMa_code());
         getMapper().deleteByPrimaryKey(id);
         getMapper().deleteByPrimaryKey(id);
         makeMaterialMapper.deleteByFK(id, BaseContextHolder.getCompanyId());
         makeMaterialMapper.deleteByFK(id, BaseContextHolder.getCompanyId());
+        //记录LOG
+        messageLogService.delete(docBaseDTO);
         return true;
         return true;
     }
     }
 
 
     @Override
     @Override
     public boolean deleteDetail(Long id) {
     public boolean deleteDetail(Long id) {
-        makeMaterialMapper.deleteByFK(id, BaseContextHolder.getCompanyId());
+        Long ma_id = makeMaterialMapper.selectByPrimaryKey(id).getMm_maid();
+        String code = getMapper().selectByPrimaryKey(ma_id).getMa_code();
+        makeMaterialMapper.deleteByPrimaryKey(id);
+        DocBaseDTO docBaseDTO = generateMsgObj(id, code);
+        //记录LOG
+        messageLogService.deleteDetail(docBaseDTO);
         return true;
         return true;
     }
     }
 
 
     @Override
     @Override
-    @Transactional
-    public DocBaseDTO audit(Long id) {
+    @Transactional(rollbackFor = Exception.class)
+    public DocBaseDTO audit(MakeListDTO makeListDTO) {
         //1.获取主从表数据
         //1.获取主从表数据
-        Make make = getMapper().selectByPrimaryKey(id);
-        List<MakeMaterial> items = makeMaterialMapper.selectByFK(id, BaseContextHolder.getCompanyId());
-        MakeListDTO makeListDTO = new MakeListDTO(make, items);
+        Make make = makeListDTO.getMain();
+        List<MakeMaterial> items = makeListDTO.getItems();
+        //如果ID为0,先执行保存
+        if (makeListDTO.getMain().getId() == 0){
+            DocBaseDTO docBaseDTO = saveOrUpdate(makeListDTO);
+            make.setId(docBaseDTO.getId());
+        }
         //2.校验库存是否足够
         //2.校验库存是否足够
         validStorage(makeListDTO);
         validStorage(makeListDTO);
         //3.生成  完工入库单和领料单 并 过账
         //3.生成  完工入库单和领料单 并 过账
@@ -243,7 +262,8 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
         make.setMa_statuscode(Status.AUDITED.name());
         make.setMa_statuscode(Status.AUDITED.name());
         make.setUpdateTime(new Date());
         make.setUpdateTime(new Date());
         make.setUpdaterId(BaseContextHolder.getUserId());
         make.setUpdaterId(BaseContextHolder.getUserId());
-        DocBaseDTO docBaseDTO = generateMsgObj(id, make.getMa_code());
+        getMapper().updateByPrimaryKeySelective(make);
+        DocBaseDTO docBaseDTO = generateMsgObj(make.getId(), make.getMa_code());
         //5.记录LOG
         //5.记录LOG
         messageLogService.audit(docBaseDTO);
         messageLogService.audit(docBaseDTO);
         return docBaseDTO;
         return docBaseDTO;
@@ -311,9 +331,9 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             map.put("commitid", BaseContextHolder.getUserId());
             map.put("commitid", BaseContextHolder.getUserId());
             map.put("companyId", BaseContextHolder.getCompanyId());
             map.put("companyId", BaseContextHolder.getCompanyId());
             map.put("result", null);
             map.put("result", null);
-            Result result = warehouseApi.post(map);
-            if (!StringUtils.isEmpty(result.getData())){
-                throw new BizException(76201, result.getData().toString());
+            prodInOutMapper.post(map);
+            if (!StringUtils.isEmpty(map.get("result"))){
+                throw new BizException(76201, map.get("result").toString());
             }
             }
             /** 2.完工入库单 **/
             /** 2.完工入库单 **/
             //a.主表
             //a.主表
@@ -360,9 +380,9 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             map.put("commitid", BaseContextHolder.getUserId());
             map.put("commitid", BaseContextHolder.getUserId());
             map.put("companyId", BaseContextHolder.getCompanyId());
             map.put("companyId", BaseContextHolder.getCompanyId());
             map.put("result", null);
             map.put("result", null);
-            result = warehouseApi.post(map);
-            if (!StringUtils.isEmpty(result.getData())){
-                throw new BizException(76202, result.getData().toString());
+            prodInOutMapper.post(map);
+            if (!StringUtils.isEmpty(map.get("result"))){
+                throw new BizException(76201, map.get("result").toString());
             }
             }
         }else if ("拆件".equals(make.getMa_type())){
         }else if ("拆件".equals(make.getMa_type())){
             /** 1.生产领料单 **/
             /** 1.生产领料单 **/
@@ -412,9 +432,9 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             map.put("commitid", BaseContextHolder.getUserId());
             map.put("commitid", BaseContextHolder.getUserId());
             map.put("companyId", BaseContextHolder.getCompanyId());
             map.put("companyId", BaseContextHolder.getCompanyId());
             map.put("result", null);
             map.put("result", null);
-            Result result = warehouseApi.post(map);
-            if (!StringUtils.isEmpty(result.getData())){
-                throw new BizException(76201, result.getData().toString());
+            prodInOutMapper.post(map);
+            if (!StringUtils.isEmpty(map.get("result"))){
+                throw new BizException(76201, map.get("result").toString());
             }
             }
             /** 2.完工入库单 **/
             /** 2.完工入库单 **/
             //a.主表
             //a.主表
@@ -467,15 +487,15 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             map.put("commitid", BaseContextHolder.getUserId());
             map.put("commitid", BaseContextHolder.getUserId());
             map.put("companyId", BaseContextHolder.getCompanyId());
             map.put("companyId", BaseContextHolder.getCompanyId());
             map.put("result", null);
             map.put("result", null);
-            result = warehouseApi.post(map);
-            if (!StringUtils.isEmpty(result.getData())){
-                throw new BizException(76202, result.getData().toString());
+            prodInOutMapper.post(map);
+            if (!StringUtils.isEmpty(map.get("result"))){
+                throw new BizException(76202, map.get("result").toString());
             }
             }
         }
         }
     }
     }
 
 
     @Override
     @Override
-    @Transactional
+    @Transactional(rollbackFor = Exception.class)
     public DocBaseDTO resAudit(Long id) {
     public DocBaseDTO resAudit(Long id) {
         //1.获取主从表数据
         //1.获取主从表数据
         Make make = getMapper().selectByPrimaryKey(id);
         Make make = getMapper().selectByPrimaryKey(id);
@@ -492,6 +512,7 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
         make.setMa_statuscode(Status.UNAUDITED.name());
         make.setMa_statuscode(Status.UNAUDITED.name());
         make.setUpdateTime(new Date());
         make.setUpdateTime(new Date());
         make.setUpdaterId(BaseContextHolder.getUserId());
         make.setUpdaterId(BaseContextHolder.getUserId());
+        getMapper().updateByPrimaryKeySelective(make);
         DocBaseDTO docBaseDTO = generateMsgObj(id, make.getMa_code());
         DocBaseDTO docBaseDTO = generateMsgObj(id, make.getMa_code());
         //6.记录LOG
         //6.记录LOG
         messageLogService.unAudit(docBaseDTO);
         messageLogService.unAudit(docBaseDTO);
@@ -544,26 +565,31 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
     private void selectProdIO(Make make) {
     private void selectProdIO(Make make) {
         String code = make.getMa_code();
         String code = make.getMa_code();
         Long companyId = BaseContextHolder.getCompanyId();
         Long companyId = BaseContextHolder.getCompanyId();
-        String InCode = getMapper().selectMakeInOutCode(code, companyId, "完工入库单");
+        String inCode = getMapper().selectMakeInOutCode(code, companyId, "完工入库单");
         String outCode = getMapper().selectMakeInOutCode(code, companyId, "生产领料单");
         String outCode = getMapper().selectMakeInOutCode(code, companyId, "生产领料单");
         Map<String, Object> map = new HashMap<String, Object>();
         Map<String, Object> map = new HashMap<String, Object>();
-        map.put("inoutNo", InCode);
+        map.put("inoutNo", inCode);
         map.put("class", "完工入库单");
         map.put("class", "完工入库单");
         map.put("commitid", BaseContextHolder.getUserId());
         map.put("commitid", BaseContextHolder.getUserId());
         map.put("companyId", companyId);
         map.put("companyId", companyId);
         map.put("result", null);
         map.put("result", null);
         //完工入库单反过账
         //完工入库单反过账
-        Result result = warehouseApi.unPost(map);
-        if(!StringUtils.isEmpty(result)){
-            throw new BizException(76203, result.getData().toString());
+        prodInOutMapper.unPost(map);
+        if(!StringUtils.isEmpty(map.get("result"))){
+            throw new BizException(76203, map.get("result").toString());
         }
         }
+        prodInOutMapper.deleteByInOutNo(inCode, "完工入库单", BaseContextHolder.getCompanyId());
+        prodIODetailMapper.deleteByInOutNo(inCode, "完工入库单", BaseContextHolder.getCompanyId());
+
         map.put("inoutNo", outCode);
         map.put("inoutNo", outCode);
         map.put("class", "生产领料单");
         map.put("class", "生产领料单");
         //生产领料单反过账
         //生产领料单反过账
-        result = warehouseApi.unPost(map);
-        if(!StringUtils.isEmpty(result)){
-            throw new BizException(76204, result.getData().toString());
+        prodInOutMapper.unPost(map);
+        if(!StringUtils.isEmpty(map.get("result"))){
+            throw new BizException(76204, map.get("result").toString());
         }
         }
+        prodInOutMapper.deleteByInOutNo(outCode, "生产领料单", BaseContextHolder.getCompanyId());
+        prodIODetailMapper.deleteByInOutNo(outCode, "生产领料单", BaseContextHolder.getCompanyId());
     }
     }
 
 
     /**
     /**

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

@@ -380,7 +380,7 @@
   </select>
   </select>
 
 
     <select id="getOnHand" resultType="double">
     <select id="getOnHand" resultType="double">
-        SELECT PW_ONHAND FROM PRODUCTWH WHERE PW_PRODCODE=#{prodcode} AND PW_WHCODE=#{whcode} and COMPANYID=#{companyId}
+        SELECT IFNULL(PW_ONHAND,0) FROM PRODUCTWH WHERE PW_PRODCODE=#{prodcode} AND PW_WHCODE=#{whcode} and COMPANYID=#{companyId}
     </select>
     </select>
 
 
     <select id="selectMakeInOutCode" resultType="string">
     <select id="selectMakeInOutCode" resultType="string">

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

@@ -334,6 +334,7 @@
           updateTime = #{item.updateTime,jdbcType=TIMESTAMP},
           updateTime = #{item.updateTime,jdbcType=TIMESTAMP},
         </if>
         </if>
       </set>
       </set>
+        where mm_id=#{item.id}
     </foreach>
     </foreach>
   </update>
   </update>
 </mapper>
 </mapper>

+ 3 - 0
applications/storage/storage-server/src/main/resources/mapper/ProdIODetailMapper.xml

@@ -752,4 +752,7 @@
     update prodinout set pi_nettotal = (select sum(pd_nettotal) from prodiodetail where pd_piid = #{pi_id,jdbcType=INTEGER} ) where pi_id = #{pi_id,jdbcType=INTEGER};
     update prodinout set pi_nettotal = (select sum(pd_nettotal) from prodiodetail where pd_piid = #{pi_id,jdbcType=INTEGER} ) where pi_id = #{pi_id,jdbcType=INTEGER};
   </update>
   </update>
 
 
+  <delete id="deleteByInOutNo" >
+      DELETE FROM prodiodetail WHERE PD_INOUTNO=#{code} AND PD_PICLASS=#{type} AND COMPANYID=#{companyId}
+  </delete>
 </mapper>
 </mapper>

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

@@ -435,8 +435,21 @@
     select pi_inoutno from prodinout where pi_id=#{id}
     select pi_inoutno from prodinout where pi_id=#{id}
   </select>
   </select>
 
 
+  <delete id="deleteByInOutNo" >
+      DELETE FROM prodinout WHERE PI_CLASS=#{type} AND PI_INOUTNO=#{code} AND COMPANYID=#{companyId}
+  </delete>
 
 
-
-
-
+    <select id="post" parameterMap="postParamMap" statementType="CALLABLE">
+        CALL SP_COMMITPRODINOUT(?, ?, ?, ?, ?)
+    </select>
+    <select id="unPost" parameterMap="postParamMap" statementType="CALLABLE">
+        CALL SP_UNCOMMITPRODINOUT(?, ?, ?, ?, ?)
+    </select>
+    <parameterMap id="postParamMap" type="java.util.Map">
+        <parameter property="inoutNo" jdbcType="VARCHAR" mode="IN" />
+        <parameter property="class" jdbcType="VARCHAR" mode="IN" />
+        <parameter property="commitid" jdbcType="INTEGER" mode="IN" />
+        <parameter property="companyId" jdbcType="INTEGER" mode="IN" />
+        <parameter property="result" jdbcType="VARCHAR" mode="OUT" />
+    </parameterMap>
 </mapper>
 </mapper>

+ 10 - 4
frontend/saas-web/app/view/core/base/GridPanel.js

@@ -137,6 +137,10 @@ Ext.define('saas.view.core.base.GridPanel', {
         me.callParent(arguments);
         me.callParent(arguments);
     },
     },
 
 
+    onLoad:function(){
+        this.ownerCt.ownerCt.store.load();
+    },
+
     onVastDeal:function(url,type){
     onVastDeal:function(url,type){
         var form = this.ownerCt;
         var form = this.ownerCt;
         var grid = this;
         var grid = this;
@@ -157,8 +161,9 @@ Ext.define('saas.view.core.base.GridPanel', {
                     showToast('操作成功');
                     showToast('操作成功');
                     grid.store.load();
                     grid.store.load();
                 })
                 })
-                .catch(function(response) {
-                    showToast('操作失败');
+                .catch(function(res) {
+                    console.error(res);
+                    showToast('操作失败: ' + res.message);
                 });
                 });
         }else{
         }else{
             showToast('请勾选至少一条明细。');
             showToast('请勾选至少一条明细。');
@@ -188,8 +193,9 @@ Ext.define('saas.view.core.base.GridPanel', {
                             view.ownerCt.store.load();
                             view.ownerCt.store.load();
                         }
                         }
                     })
                     })
-                    .catch(function() {
-                        showToast('删除失败');
+                    .catch(function(res) {
+                        console.error(res);
+                        showToast('删除失败: ' + res.message);
                     });
                     });
                 }
                 }
             }
             }

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

@@ -164,7 +164,7 @@ Ext.define('saas.view.core.dbfind.DbfindTrigger', {
         if(f.ownerCt.xtype.trim().toUpperCase().indexOf('QUERYFORMPANEL')>-1){
         if(f.ownerCt.xtype.trim().toUpperCase().indexOf('QUERYFORMPANEL')>-1){
             f.belong = 'form';
             f.belong = 'form';
             return f.ownerCt.ownerCt
             return f.ownerCt.ownerCt
-        }else if(f.ownerCt.xtype.trim().toUpperCase().indexOf('FORMPANEL')>-1){
+        }else if(f.ownerCt.xtype.trim().toUpperCase().indexOf('FORM')>-1){
             f.belong = 'form';
             f.belong = 'form';
             return f.ownerCt
             return f.ownerCt
         }else if(f.column){
         }else if(f.column){

+ 15 - 18
frontend/saas-web/app/view/core/form/FormPanel.js

@@ -21,7 +21,6 @@ Ext.define('saas.view.core.form.FormPanel', {
     initId: 0,
     initId: 0,
     layout: 'column',
     layout: 'column',
     autoScroll: true,
     autoScroll: true,
-    border: 1,
     bodyPadding: 5,
     bodyPadding: 5,
 
 
     fieldDefaults: {
     fieldDefaults: {
@@ -94,9 +93,6 @@ Ext.define('saas.view.core.form.FormPanel', {
             dockedItems: [{
             dockedItems: [{
                 xtype: 'toolbar',
                 xtype: 'toolbar',
                 dock: 'top',
                 dock: 'top',
-                style: {
-                    'border-bottom': '1px solid #35baf6 !important'
-                },
                 items: me.getToolBarItems(),
                 items: me.getToolBarItems(),
             }],
             }],
             listeners: {
             listeners: {
@@ -331,23 +327,24 @@ Ext.define('saas.view.core.form.FormPanel', {
                 return;
                 return;
             }
             }
 
 
-            // 设置model绑定
-            if (!ignore) {
-                if (bind) {
-                    if (!Ext.isString(bind)) {
-                        Ext.apply(bind, {
-                            value: '{' + name + '}'
-                        });
-                    } else {
-                        item.bind = '{' + name + '}';
-                    }
+            if (bind) {
+                if (!Ext.isString(bind)) {
+                    Ext.apply(bind, {
+                        value: '{' + name + '}'
+                    });
                 } else {
                 } else {
                     item.bind = '{' + name + '}';
                     item.bind = '{' + name + '}';
                 }
                 }
-                // 设置默认值
-                if (defaultValue) {
-                    viewModel.set(name, defaultValue);
-                }
+            } else {
+                item.bind = '{' + name + '}';
+            }
+            // 设置默认值
+            if (defaultValue) {
+                viewModel.set(name, defaultValue);
+            }
+
+            // 设置model绑定
+            if (!ignore) {
                 if(!Ext.Array.contains(bindFields, name)) {
                 if(!Ext.Array.contains(bindFields, name)) {
                     bindFields.push(name);
                     bindFields.push(name);
                 }
                 }

+ 10 - 4
frontend/saas-web/app/view/core/form/FormPanel.scss

@@ -1,17 +1,19 @@
 .x-core-form {
 .x-core-form {
+    padding: 10px;
 
 
     .x-tb {
     .x-tb {
-        color: #AEB1B5;
+        color: #A2A2A2;
+        // letter-spacing: 0.72px;
+        // text-align: left;
+        font-size: 16px;
     }
     }
     .x-no {
     .x-no {
-        font-size: 18px;
     }
     }
     .x-code {
     .x-code {
-        font-size: 16px;
     }
     }
     .x-codeeditor {
     .x-codeeditor {
         top: 0px !important;
         top: 0px !important;
-        left: 43px !important;
+        left: 39px !important;
 
 
         .x-form-trigger-wrap {
         .x-form-trigger-wrap {
             border-top: none;
             border-top: none;
@@ -36,6 +38,10 @@
             color: #52C41A;
             color: #52C41A;
         }
         }
 
 
+        .fa-edit {
+            color: #A2A2A2;
+        }
+
         &:hover {
         &:hover {
             .fa-edit {
             .fa-edit {
                 color: black;
                 color: black;

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

@@ -24,9 +24,8 @@ Ext.define('saas.view.core.report.ReportPanel', {
 
 
     initComponent: function() {
     initComponent: function() {
         var me = this;
         var me = this;
-
         var store = me.initStore();
         var store = me.initStore();
-
+        columnWidth: 0.25,
         Ext.apply(me, {
         Ext.apply(me, {
             items: [{
             items: [{
                 xtype: 'form',
                 xtype: 'form',
@@ -40,7 +39,7 @@ Ext.define('saas.view.core.report.ReportPanel', {
                 },
                 },
                 items: me.initSearchItems().concat([{
                 items: me.initSearchItems().concat([{
                     xtype: 'container',
                     xtype: 'container',
-                    columnWidth: 0.5,
+                    columnWidth: me.QueryWidth || 0.5,
                     items: [{
                     items: [{
                         xtype: 'button',
                         xtype: 'button',
                         text: '查询',
                         text: '查询',

+ 16 - 1
frontend/saas-web/app/view/document/bom/BasePanel.js

@@ -5,7 +5,22 @@ Ext.define('saas.view.document.bom.BasePanel', {
     controller: 'document-bom-basepanel',
     controller: 'document-bom-basepanel',
     viewModel: 'document-bom-basepanel',
     viewModel: 'document-bom-basepanel',
 
 
-    searchField:[],
+    searchField:[{ 
+        xtype : "textfield", 
+        name : "bo_mothercode", 
+        emptyText : "母件编号", 
+        width:120
+    },{
+        xtype : "textfield", 
+        name : "bo_mothername", 
+        emptyText : "母件名称", 
+        width:120
+    },{
+        xtype : "textfield", 
+        name : "bo_status", 
+        emptyText : "BOM状态",    
+        width:100
+    }],
 
 
     //字段属性
     //字段属性
     _formXtype:'document-bom-formpanel',
     _formXtype:'document-bom-formpanel',

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

@@ -175,7 +175,7 @@ Ext.define('saas.view.document.product.FormPanel', {
         name : "pr_whcode", 
         name : "pr_whcode", 
         bind : "{pr_whcode}", 
         bind : "{pr_whcode}", 
         fieldLabel : "仓库编号", 
         fieldLabel : "仓库编号", 
-        allowBlank : false, 
+        allowBlank : true, 
         columnWidth : 0.25, 
         columnWidth : 0.25, 
     }, {
     }, {
         xtype : "textfield", 
         xtype : "textfield", 
@@ -206,7 +206,15 @@ Ext.define('saas.view.document.product.FormPanel', {
         name : "pr_purcprice", 
         name : "pr_purcprice", 
         fieldLabel : "最新采购单价", 
         fieldLabel : "最新采购单价", 
         allowBlank : true, 
         allowBlank : true, 
-        columnWidth : 0.25
+        columnWidth : 0.25,
+        decimalPrecision: 8,
+        minValue:0,
+        renderer : function(v) {
+            var arr = (v + '.').split('.');
+            var xr = (new Array(arr[1].length)).fill('0');
+            var format = '0.' + xr.join();
+            return Ext.util.Format.number(v, format);
+        },
     },{
     },{
         ignore:true,
         ignore:true,
         readOnly:true,
         readOnly:true,
@@ -214,11 +222,21 @@ Ext.define('saas.view.document.product.FormPanel', {
         name : "pr_saleprice", 
         name : "pr_saleprice", 
         fieldLabel : "最新出货单价", 
         fieldLabel : "最新出货单价", 
         allowBlank : true, 
         allowBlank : true, 
-        columnWidth : 0.25
+        columnWidth : 0.25,
+        decimalPrecision: 8,
+        minValue:0,
+        renderer : function(v) {
+            var arr = (v + '.').split('.');
+            var xr = (new Array(arr[1].length)).fill('0');
+            var format = '0.' + xr.join();
+            return Ext.util.Format.number(v, format);
+        },
     },{
     },{
         xtype : "numberfield", 
         xtype : "numberfield", 
         name : "pr_zxbzs", 
         name : "pr_zxbzs", 
         fieldLabel : "最小包装数", 
         fieldLabel : "最小包装数", 
+        minValue:0,
+        decimalPrecision: 0,
         allowBlank : true, 
         allowBlank : true, 
         columnWidth : 0.25
         columnWidth : 0.25
     },{  
     },{  

+ 4 - 2
frontend/saas-web/app/view/main/Main.js

@@ -30,8 +30,10 @@ Ext.define('saas.view.main.Main', {
                     xtype: 'component',
                     xtype: 'component',
                     reference: 'mainLogo',
                     reference: 'mainLogo',
                     cls: 'main-logo-wrap',
                     cls: 'main-logo-wrap',
-                    html: '<div class="main-logo"><img src="resources/images/default/logo-default.png">优企云服</div>',
-                    width: 160
+                    html: '<div class="main-logo"><img src="resources/images/default/logo-default.png"/><div class="logo-text">优企云服</div></div>',
+                    bind: {
+                        width: '{navWidth}'
+                    }
                 },
                 },
                 {
                 {
                     margin: '0 0 0 8',
                     margin: '0 0 0 8',

+ 24 - 5
frontend/saas-web/app/view/main/Main.scss

@@ -41,9 +41,19 @@ $treelist-nav-ui: (
     padding-left: 10px;
     padding-left: 10px;
 }
 }
 
 
+.main-right-tabpanel {
+    
+    .x-panel-bodyWrap {
+
+        #main-tab-panel-body {
+            background: #EEF4F9;
+        }
+    }
+}
+
 .main-logo-wrap {
 .main-logo-wrap {
     background-color: $base-color;
     background-color: $base-color;
-    height: 65px;
+    height: 70px;
 
 
     font-size: 16px;
     font-size: 16px;
     font-weight: $font-weight-bold;
     font-weight: $font-weight-bold;
@@ -51,14 +61,23 @@ $treelist-nav-ui: (
     margin-left: 17px;
     margin-left: 17px;
 
 
     .main-logo {
     .main-logo {
-        line-height: 65px;
+        background: #34BAF6;
 
 
         img {
         img {
-            margin-left: 15px;
-            margin-right: 15px;
-            top: 10px;
+            width: 64px;
+            top: 0px;
+            left: 20px;
             position: relative;
             position: relative;
         }
         }
+
+        .logo-text {
+            font-size: 18px;
+            color: #FFFFFF;
+            text-align: left;
+            top: 23px;
+            position: absolute;
+            right: 28px;
+        }
     }
     }
 }
 }
 
 

+ 4 - 2
frontend/saas-web/app/view/main/MainContainerWrap.js

@@ -15,7 +15,9 @@ Ext.define('saas.view.main.MainContainerWrap', {
         {
         {
             xtype: 'main-navigation',
             xtype: 'main-navigation',
             region: 'west',
             region: 'west',
-            width: 160,
+            bind: {
+                width: '{navWidth}'
+            }
         },
         },
         {
         {
             xtype: 'tabpanel',
             xtype: 'tabpanel',
@@ -27,7 +29,7 @@ Ext.define('saas.view.main.MainContainerWrap', {
             itemId: 'contentPanel',
             itemId: 'contentPanel',
             defaults: {
             defaults: {
                 closable: true,
                 closable: true,
-                margin: 10
+                margin: 20
             },
             },
             plugins: [new Ext.ux.TabCloseMenu({
             plugins: [new Ext.ux.TabCloseMenu({
                 closeTabText: '关闭当前页',
                 closeTabText: '关闭当前页',

+ 61 - 4
frontend/saas-web/app/view/main/MainController.js

@@ -30,19 +30,76 @@ Ext.define('saas.view.main.MainController', {
 
 
     onToggleNavigationSize: function () {
     onToggleNavigationSize: function () {
         var me = this,
         var me = this,
+        viewModel = me.getViewModel(),
         refs = me.getReferences(),
         refs = me.getReferences(),
         navigationList = refs.navigationTreeList,
         navigationList = refs.navigationTreeList,
         navCollapsed = !navigationList.navCollapsed,
         navCollapsed = !navigationList.navCollapsed,
-        new_width = navCollapsed ? 64 : 160,
+        new_width = navCollapsed ? viewModel.get('smallNavWidth') : viewModel.get('navWidth'),
+        newLogoImgStyle = navCollapsed ? {
+            width: 50,
+            top: 7,
+            left: 6
+        } : {
+            width: 64,
+            top: 0,
+            left: 20
+        },
+        newLogoTextStyle = navCollapsed ? {
+            10: {
+                opacity: 0.7
+            },
+            30: {
+                opacity: 0
+            },
+            100: {
+                opacity: 0
+            }
+        } : {
+            25: {
+                opacity: 0 
+            },
+            50: {
+                opacity: 1
+            }
+        },
+        newNavIconStyle = navCollapsed ? {
+            marginLeft: 6,
+            fontSize: 28
+        } : {
+            marginLeft: 40,
+            fontSize: 24
+        },
+        newNavTextStyle = navCollapsed ? {
+            opacity: 0
+        } : {
+            opacity: 1
+        },
         ope = navCollapsed ? 'addCls' : 'removeCls';
         ope = navCollapsed ? 'addCls' : 'removeCls';
         
         
-        refs.mainLogo.animate({dynamic: true, to: {width: new_width}});
-        navigationList.body.animate({dynamic: true, to: {width: new_width}});
-        navigationList.animate({dynamic: true, to: {width: new_width}});
+        var mainLogo = refs.mainLogo;
+        var logoImg = mainLogo.el.dom.getElementsByTagName('img')[0];
+        var logoText = mainLogo.el.dom.getElementsByClassName('logo-text')[0];
+        var navItems = navigationList.el.dom.getElementsByClassName('x-navitem');
+
+        mainLogo.animate({dynamic: true, duration: 500, to: {width: new_width}});
+        Ext.fly(logoImg).animate({dynamic: true, duration: 500, to: newLogoImgStyle});
+        Ext.fly(logoText).animate({dynamic: true, duration: 500, keyframes: newLogoTextStyle});
+        navigationList.body.animate({dynamic: true, duration: 500, to: {width: new_width}});
+        navigationList.animate({dynamic: true, duration: 500, to: {width: new_width}});
+
+        for(var i = 0; i < navItems.length; i++) {
+            var item = navItems[i];
+            var icon = item.getElementsByClassName('nav-inner-icon')[0];
+            var text = item.getElementsByClassName('nav-inner-text')[0];
+
+            Ext.fly(icon).animate({dynamic: true, duration: 500, to: newNavIconStyle});
+            Ext.fly(text).animate({dynamic: true, duration: 500, to: newNavTextStyle});
+        }
 
 
         navigationList.el[ope]('nav-collapsed');
         navigationList.el[ope]('nav-collapsed');
 
 
         navigationList.navCollapsed = navCollapsed;
         navigationList.navCollapsed = navCollapsed;
+
     },
     },
 
 
     selectCompany: function(item) {
     selectCompany: function(item) {

+ 2 - 0
frontend/saas-web/app/view/main/MainModel.js

@@ -7,5 +7,7 @@ Ext.define('saas.view.main.MainModel', {
     alias: 'viewmodel.main',
     alias: 'viewmodel.main',
 
 
     data: {
     data: {
+        navWidth: 200,
+        smallNavWidth: 64,
     }
     }
 });
 });

+ 33 - 17
frontend/saas-web/app/view/main/Navigation.scss

@@ -1,3 +1,6 @@
+$nav-font-size: 16px;
+$nav-font-color: #FFFFFF;
+
 .x-navpanel {
 .x-navpanel {
     overflow: visible;
     overflow: visible;
 
 
@@ -14,7 +17,7 @@
             overflow: visible;
             overflow: visible;
     
     
             .x-autocontainer-outerCt {
             .x-autocontainer-outerCt {
-                background-color: #3C4A57;
+                background-color: #484A69;
     
     
                 .x-autocontainer-innerCt {
                 .x-autocontainer-innerCt {
     
     
@@ -34,45 +37,58 @@
                             outline: none !important;
                             outline: none !important;
                             
                             
                             .x-navitem-body {
                             .x-navitem-body {
-                                background-color: #3C4A57;
+                                background: #505275;
     
     
                                 .nav-inner-wrap {
                                 .nav-inner-wrap {
-                                    position: relative;
                                     position: relative;
                                     position: relative;
                                     overflow: hidden;
                                     overflow: hidden;
                                     list-style: none;
                                     list-style: none;
-                                    max-height: 64px;
+                                    max-height: 60px;
                                     padding: 0 10px;
                                     padding: 0 10px;
     
     
                                     .nav-inner-icon {
                                     .nav-inner-icon {
-                                        color: #adb3b8;
-                                        font-size: 18px;
+                                        opacity: 0.4;
+
+                                        color: $nav-font-color;
+                                        font-size: 24px;
                                         text-align: center;
                                         text-align: center;
-                                        background-repeat: no-repeat;
-                                        background-position: 0 center;
-                                        margin-left: 10px;
+                                        margin-left: 40px;
                                         display: inline;
                                         display: inline;
+                                        margin-right: 42px;
     
     
                                         &:before {
                                         &:before {
-                                            line-height: 64px;
+                                            line-height: 60px;
                                         }
                                         }
                                     }
                                     }
     
     
                                     .nav-inner-text {
                                     .nav-inner-text {
-                                        cursor: default;
-                                        color: #adb3b8;
-                                        margin-left: 20px;
-                                        margin-right: 24px;
-                                        font-size: 14px;
-                                        line-height: 64px;
+                                        font-size: $nav-font-size;
+                                        color: $nav-font-color;
+                                        letter-spacing: 0.64px;
+                                        text-align: left;
+                                        opacity: 0.46;
                                         display: inline;
                                         display: inline;
+                                        line-height: 60px;
+
                                     }
                                     }
                                 }
                                 }
                             }
                             }
                         }
                         }
                         .x-navitem-over {
                         .x-navitem-over {
                             .x-navitem-body {
                             .x-navitem-body {
-                                background-color: #475360;
+                                background: #474968;
+                                box-shadow: inset 0 1px 4px 0 rgba(0,0,0,0.50);
+
+                                .nav-inner-wrap {
+
+                                    .nav-inner-icon {
+                                        opacity: 1;
+                                    }
+
+                                    .nav-inner-text {
+                                        opacity: 1;
+                                    }
+                                }
                             }
                             }
                         }
                         }
                     }
                     }

+ 3 - 2
frontend/saas-web/app/view/money/fundtransfer/QueryPanel.js

@@ -8,9 +8,10 @@ Ext.define('saas.view.money.fundtransfer.QueryPanel', {
     viewName: 'money-fundtransfer-querypanel',
     viewName: 'money-fundtransfer-querypanel',
     
     
     queryFormItems: [{
     queryFormItems: [{
-        xtype : "datefield", 
+        xtype : "condatefield", 
         name : "ft_date", 
         name : "ft_date", 
-        fieldLabel : "单据日期"
+        fieldLabel : "单据日期",
+        columnWidth: 0.5
     }],
     }],
     moreQueryFormItems: [],
     moreQueryFormItems: [],
     queryGridConfig: {
     queryGridConfig: {

+ 4 - 2
frontend/saas-web/app/view/money/fundtransfer/QueryPanelModel.js

@@ -1,5 +1,7 @@
 Ext.define('saas.view.money.fundtransfer.QueryPanelModel', {
 Ext.define('saas.view.money.fundtransfer.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
     extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.money-fundtransfer-querypanel'
-
+    alias: 'viewmodel.money-fundtransfer-querypanel',
+    data: {
+        closeEnable:false
+    }
 });
 });

+ 4 - 2
frontend/saas-web/app/view/money/othreceipts/QueryPanelModel.js

@@ -1,5 +1,7 @@
 Ext.define('saas.view.money.othreceipts.QueryPanelModel', {
 Ext.define('saas.view.money.othreceipts.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
     extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.money-othreceipts-querypanel'
-
+    alias: 'viewmodel.money-othreceipts-querypanel',
+    data: {
+        closeEnable:false
+    }
 });
 });

+ 4 - 2
frontend/saas-web/app/view/money/othspendings/QueryPanelModel.js

@@ -1,5 +1,7 @@
 Ext.define('saas.view.money.othspendings.QueryPanelModel', {
 Ext.define('saas.view.money.othspendings.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
     extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.money-othspendings-querypanel'
-
+    alias: 'viewmodel.money-othspendings-querypanel',
+    data: {
+        closeEnable:false
+    }
 });
 });

+ 1 - 1
frontend/saas-web/app/view/money/payBalance/FormPanelController.js

@@ -164,7 +164,7 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
                 beforerender: function (f) {
                 beforerender: function (f) {
                     Ext.apply(f, {
                     Ext.apply(f, {
                         dataUrl: '/api/document/bankinformation/list',
                         dataUrl: '/api/document/bankinformation/list',
-                        // addXtype: 'document-banksubledger-formpanel',
+                        addXtype: 'other-bankinformation',
                         addTitle: '账户资料',
                         addTitle: '账户资料',
                         dbfinds: [{
                         dbfinds: [{
                             from: 'id',
                             from: 'id',

+ 4 - 2
frontend/saas-web/app/view/money/payBalance/QueryPanelModel.js

@@ -1,5 +1,7 @@
 Ext.define('saas.view.money.paybalance.QueryPanelModel', {
 Ext.define('saas.view.money.paybalance.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
     extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.money-paybalance-querypanel'
-
+    alias: 'viewmodel.money-paybalance-querypanel',
+    data: {
+        closeEnable:false
+    }
 });
 });

+ 4 - 2
frontend/saas-web/app/view/money/recBalance/QueryPanelModel.js

@@ -1,5 +1,7 @@
 Ext.define('saas.view.money.recBalance.QueryPanelModel', {
 Ext.define('saas.view.money.recBalance.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
     extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.money-recbalance-querypanel'
-
+    alias: 'viewmodel.money-recbalance-querypanel',
+    data: {
+        closeEnable:false
+    }
 });
 });

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

@@ -275,7 +275,7 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
         ]
         ]
     },
     },
     {
     {
-        xtype : "textareafield", 
+        xtype : "textfield", 
         name : "PU_REMARK", 
         name : "PU_REMARK", 
         fieldLabel : "备注", 
         fieldLabel : "备注", 
         columnWidth : 1
         columnWidth : 1

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

@@ -69,7 +69,7 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
     }, {
     }, {
         xtype: 'multicombo',
         xtype: 'multicombo',
         name: 'pu_acceptstatuscode',
         name: 'pu_acceptstatuscode',
-        fieldLabel: '入库状态',
+        fieldLabel: '业务状态',
         datas: [
         datas: [
             ["TURNIN", "已入库"],
             ["TURNIN", "已入库"],
             ["UNTURNIN", "未入库"],
             ["UNTURNIN", "未入库"],

+ 3 - 0
frontend/saas-web/app/view/purchase/purchaseIn/QueryPanelController.js

@@ -86,7 +86,10 @@ Ext.define('saas.view.purchase.purchaseIn.QueryPanelController', {
                         addXtype: 'document-product-formpanel',
                         addXtype: 'document-product-formpanel',
                         addTitle: '物料资料',
                         addTitle: '物料资料',
                         dbfinds:[{
                         dbfinds:[{
+                            from:'pr_detail',to:'pr_detail',
+                        },{
                             from:'pr_code',to:'pd_prodcode',
                             from:'pr_code',to:'pd_prodcode',
+                        },{
                             from:'pr_unit',to:'pd_unit'
                             from:'pr_unit',to:'pd_unit'
                         }],
                         }],
                         dbtpls:[{
                         dbtpls:[{

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

@@ -81,12 +81,12 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanelController', {
             'dbfindtrigger[name=pd_prodcode]':{
             'dbfindtrigger[name=pd_prodcode]':{
                 beforerender:function(f){
                 beforerender:function(f){
                     Ext.apply(f,{
                     Ext.apply(f,{
-                        conditionCode:'pr_code',
                         dataUrl:'/api/document/product/list',
                         dataUrl:'/api/document/product/list',
                         addXtype: 'document-product-formpanel',
                         addXtype: 'document-product-formpanel',
                         addTitle: '物料资料',
                         addTitle: '物料资料',
                         dbfinds:[{
                         dbfinds:[{
-                            from:'pr_code',to:'pd_prodcode',
+                            from:'pr_code',to:'pd_prodcode'
+                        },{
                             from:'pr_unit',to:'pd_unit'
                             from:'pr_unit',to:'pd_unit'
                         }],
                         }],
                         dbtpls:[{
                         dbtpls:[{

+ 20 - 3
frontend/saas-web/app/view/purchase/report/Purchase.js

@@ -11,12 +11,29 @@ Ext.define('saas.view.purchase.report.Purchase', {
     listUrl: '/api/purchase/purchase/list',
     listUrl: '/api/purchase/purchase/list',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '采购明细报表',
     reportTitle: '采购明细报表',
-
-    searchItems: [{
+    QueryWidth:0.1,
+    //筛选:供应商、日期(必填)、业务状态			
+    searchItems: [ {
+        xtype: 'dbfindtrigger',
+        name: 'pu_vendname',
+        fieldLabel: '供应商名称',
+        columnWidth: 0.2
+    }, {
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'pu_date',
         name: 'pu_date',
         fieldLabel: '单据日期',
         fieldLabel: '单据日期',
         columnWidth: 0.5
         columnWidth: 0.5
+    }, {
+        xtype: 'multicombo',
+        name: 'pu_acceptstatuscode',
+        fieldLabel: '业务状态',
+        columnWidth: 0.2,
+        datas: [
+            ["TURNIN", "已入库"],
+            ["UNTURNIN", "未入库"],
+            ["PART2IN", "部分入库"],
+            ["CLOSE", "已关闭"]
+        ]
     }],
     }],
 
 
     reportColumns: [
     reportColumns: [
@@ -38,7 +55,7 @@ Ext.define('saas.view.purchase.report.Purchase', {
         width: 200
         width: 200
     }, {
     }, {
         text: '业务状态',
         text: '业务状态',
-        dataIndex: 'pu_status'
+        dataIndex: 'pu_acceptstatus'
     }, {
     }, {
         text: '采购员',
         text: '采购员',
         dataIndex: 'pu_buyername'
         dataIndex: 'pu_buyername'

+ 76 - 1
frontend/saas-web/app/view/purchase/report/PurchaseController.js

@@ -1,4 +1,79 @@
 Ext.define('saas.view.purchase.report.PurchaseController', {
 Ext.define('saas.view.purchase.report.PurchaseController', {
     extend: 'saas.view.core.report.ReportPanelController',
     extend: 'saas.view.core.report.ReportPanelController',
-    alias: 'controller.purchase-report-purchase'
+    alias: 'controller.purchase-report-purchase',
+    init: function (form) {
+        this.control({
+            // 供应商编号
+            'dbfindtrigger[name=pu_vendname]':{
+                beforerender:function(f){
+                    Ext.apply(f,{
+                        dataUrl:'/api/document/vendor/list',
+                        addXtype: 'document-vendor-formpanel',
+                        addTitle: '供应商资料',
+                        dbfinds:[{
+                            from:'ve_name',to:'pu_vendname'
+                        }],
+                        dbtpls:[{
+                            field:'ve_code',width:100
+                        },{
+                            field:'ve_name',width:100
+                        }],
+                        defaultCondition: "ve_statuscode='OPEN'",
+                        dbSearchFields:[{
+                            emptyText:'输入供应商编号或名称',
+                            xtype : "textfield", 
+                            name : "search", 
+                            getCondition: function(v) {
+                                return "(upper(ve_code) like '%"+v.toUpperCase()+"%' or upper(ve_name) like '%"+v.toUpperCase()+"%')";
+                            },
+                            allowBlank : true, 
+                            columnWidth : 0.25
+                        }],
+                        dbColumns:[
+                        {
+                            "text": "供应商ID",
+                            "hidden": true,
+                            "dataIndex": "id",
+                            "width": 100,
+                            "xtype": "numbercolumn"
+                        },{
+                            "text": "供应商编号",
+                            "dataIndex": "ve_code",
+                            "width": 200
+                        }, {
+                            "text": "供应商名称",
+                            "dataIndex": "ve_name",
+                            "width": 200
+                        }, {
+                            "text": "供应商类型",
+                            "dataIndex": "ve_type",
+                            "width": 180,
+                            "items": null
+                        }, {
+                            "text": "税率",
+                            "dataIndex": "ve_taxrate",
+                            "width": 100
+                        }, {
+                            "text": "承付天数",
+                            "dataIndex": "ve_promisedays",
+                            "width": 100
+                        }, {
+                            "text": "纳税人识别号",
+                            "dataIndex": "ve_bankaccount",
+                            "width": 150
+                        }, {
+                            "text": "开户银行",
+                            "dataIndex": "ve_bankaccount",
+                            "width": 100
+                        }, {
+                            "text": "银行账户",
+                            "dataIndex": "ve_bankcode",
+                            "width": 100
+                        }]
+                    }) ;   
+
+                }
+            }
+        });
+    }
 });
 });

+ 5 - 7
frontend/saas-web/app/view/purchase/report/PurchasePay.js

@@ -11,15 +11,13 @@ Ext.define('saas.view.purchase.report.PurchasePay', {
     listUrl: '/api/money/paybalance/list',
     listUrl: '/api/money/paybalance/list',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '采购付款一览表',
     reportTitle: '采购付款一览表',
-
-    searchItems: [{
+    QueryWidth:0.25,
+    searchItems: [
+    {
         xtype: 'dbfindtrigger',
         xtype: 'dbfindtrigger',
-        name: 'pu_vendcode',
-        fieldLabel: '供应商编号'
-    }, {
-        xtype: 'textfield',
         name: 'pu_vendname',
         name: 'pu_vendname',
-        fieldLabel: '供应商名称'
+        fieldLabel: '供应商名称',
+        columnWidth: 0.25
     }, {
     }, {
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'pu_date',
         name: 'pu_date',

+ 77 - 1
frontend/saas-web/app/view/purchase/report/PurchasePayController.js

@@ -1,4 +1,80 @@
 Ext.define('saas.view.purchase.report.PurchasePayController', {
 Ext.define('saas.view.purchase.report.PurchasePayController', {
     extend: 'saas.view.core.report.ReportPanelController',
     extend: 'saas.view.core.report.ReportPanelController',
-    alias: 'controller.purchase-report-purchasepay'
+    alias: 'controller.purchase-report-purchasepay',
+    init: function (form) {
+        this.control({
+            // 供应商编号
+            'dbfindtrigger[name=pu_vendname]':{
+                beforerender:function(f){
+                    Ext.apply(f,{
+                        dataUrl:'/api/document/vendor/list',
+                        addXtype: 'document-vendor-formpanel',
+                        addTitle: '供应商资料',
+                        dbfinds:[{
+                            from:'ve_code',to:'pu_vendcode'
+                        },{
+                            from:'ve_name',to:'pu_vendname'
+                        }],
+                        dbtpls:[{
+                            field:'ve_code',width:100
+                        },{
+                            field:'ve_name',width:100
+                        }],
+                        defaultCondition: "ve_statuscode='OPEN'",
+                        dbSearchFields:[{
+                            emptyText:'输入供应商编号或名称',
+                            xtype : "textfield", 
+                            name : "search", 
+                            getCondition: function(v) {
+                                return "(upper(ve_code) like '%"+v.toUpperCase()+"%' or upper(ve_name) like '%"+v.toUpperCase()+"%')";
+                            },
+                            allowBlank : true, 
+                            columnWidth : 0.25
+                        }],
+                        dbColumns:[{
+                            "text": "供应商ID",
+                            "hidden": true,
+                            "dataIndex": "id",
+                            "width": 100,
+                            "xtype": "numbercolumn"
+                        },{
+                            "text": "供应商编号",
+                            "dataIndex": "ve_code",
+                            "width": 200
+                        }, {
+                            "text": "供应商名称",
+                            "dataIndex": "ve_name",
+                            "width": 200
+                        }, {
+                            "text": "供应商类型",
+                            "dataIndex": "ve_type",
+                            "width": 180,
+                            "items": null
+                        }, {
+                            "text": "税率",
+                            "dataIndex": "ve_taxrate",
+                            "width": 100
+                        }, {
+                            "text": "承付天数",
+                            "dataIndex": "ve_promisedays",
+                            "width": 100
+                        }, {
+                            "text": "纳税人识别号",
+                            "dataIndex": "ve_bankaccount",
+                            "width": 150
+                        }, {
+                            "text": "开户银行",
+                            "dataIndex": "ve_bankaccount",
+                            "width": 100
+                        }, {
+                            "text": "银行账户",
+                            "dataIndex": "ve_bankcode",
+                            "width": 100
+                        }]
+                    }) ;   
+
+                }
+            }
+        });
+    }
 });
 });

+ 21 - 20
frontend/saas-web/app/view/sale/report/Sale.js

@@ -1,35 +1,34 @@
 Ext.define('saas.view.sale.report.Sale', {
 Ext.define('saas.view.sale.report.Sale', {
     extend: 'saas.view.core.report.ReportPanel',
     extend: 'saas.view.core.report.ReportPanel',
-    xtype: 'purchase-report-sale',
+    xtype: 'sale-report-sale',
 
 
     controller: 'sale-report-sale',
     controller: 'sale-report-sale',
     viewModel: 'sale-report-sale',
     viewModel: 'sale-report-sale',
 
 
     viewName: 'sale-report-sale',
     viewName: 'sale-report-sale',
 
 
-    groupField: null,
+    groupField: 'sa_custcode',
     listUrl: '/api/sale/sale/list',
     listUrl: '/api/sale/sale/list',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '销售明细报表',
     reportTitle: '销售明细报表',
-
-    searchItems: [{
-        xtype: 'dbfindtrigger',
-        name: 'pu_vendcode',
-        fieldLabel: '供应商编号'
-    }, {
-        xtype: 'hidden',
-        name: 'sa_custcode',
-        fieldLabel: '客户编号'
-    }, {
+    QueryWidth:0.1,
+    searchItems: [
+    {
         xtype: 'dbfindtrigger',
         xtype: 'dbfindtrigger',
         name: 'sa_custname',
         name: 'sa_custname',
-        fieldLabel: '客户名称'
+        fieldLabel: '客户名称',
+        columnWidth: 0.2
+    }, {
+        xtype: 'condatefield',
+        name: 'sa_date',
+        fieldLabel: '单据日期',
+        columnWidth: 0.5
     }, {
     }, {
         xtype: 'multicombo',
         xtype: 'multicombo',
         name: 'sa_sendstatuscode',
         name: 'sa_sendstatuscode',
         fieldLabel: '业务状态',
         fieldLabel: '业务状态',
         allowBlank: true,
         allowBlank: true,
-        columnWidth: 0.25,
+        columnWidth: 0.2,
         datas: [
         datas: [
             ["TURNOUT", "已出库"],
             ["TURNOUT", "已出库"],
             ["UNTURNOUT", "未出库"],
             ["UNTURNOUT", "未出库"],
@@ -74,10 +73,12 @@ Ext.define('saas.view.sale.report.Sale', {
         dataIndex: 'sd_detno'
         dataIndex: 'sd_detno'
     }, {
     }, {
         text: '物料编号',
         text: '物料编号',
-        dataIndex: 'sd_prodcode'
+        dataIndex: 'sd_prodcode',
+        width: 200
     }, {
     }, {
         text: '物料名称',
         text: '物料名称',
-        dataIndex: 'pr_detail'
+        dataIndex: 'pr_detail',
+        width: 200
     }, {
     }, {
         text: '物料规格',
         text: '物料规格',
         dataIndex: 'pr_spec'
         dataIndex: 'pr_spec'
@@ -114,10 +115,10 @@ Ext.define('saas.view.sale.report.Sale', {
         }
         }
     }, {
     }, {
         text: '税率',
         text: '税率',
-        dataIndex: 'pd_taxrate'
+        dataIndex: 'sd_taxrate'
     }, {//∑金额
     }, {//∑金额
         text: '金额',
         text: '金额',
-        dataIndex: 'pd_total',
+        dataIndex: 'sd_total',
         renderer : function(v) {
         renderer : function(v) {
             var arr = (v + '.').split('.');
             var arr = (v + '.').split('.');
             var xr = (new Array(arr[1].length)).fill('0');
             var xr = (new Array(arr[1].length)).fill('0');
@@ -133,7 +134,7 @@ Ext.define('saas.view.sale.report.Sale', {
         }
         }
     }, {//∑不含税金额
     }, {//∑不含税金额
         text: '不含税金额',
         text: '不含税金额',
-        dataIndex: 'pd_taxprice',
+        dataIndex: 'sd_nettotal',
         renderer : function(v) {
         renderer : function(v) {
             var arr = (v + '.').split('.');
             var arr = (v + '.').split('.');
             var xr = (new Array(arr[1].length)).fill('0');
             var xr = (new Array(arr[1].length)).fill('0');
@@ -158,7 +159,7 @@ Ext.define('saas.view.sale.report.Sale', {
         }
         }
     }, {
     }, {
         text : "备注", 
         text : "备注", 
-        dataIndex : "sd_text1",
+        dataIndex : "sd_remark",
         width : 250 
         width : 250 
     }]
     }]
 
 

+ 7 - 2
frontend/saas-web/app/view/sale/report/SaleIn.js

@@ -11,8 +11,13 @@ Ext.define('saas.view.sale.report.SaleIn', {
     listUrl: '/api/money/recbalance/list',
     listUrl: '/api/money/recbalance/list',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '销售收款报表',
     reportTitle: '销售收款报表',
-
-    searchItems: [{
+    QueryWidth:0.25,
+    searchItems: [{//筛选:客户、日期	
+        xtype: 'dbfindtrigger',
+        name: 'sa_custname',
+        fieldLabel: '客户',
+        columnWidth: 0.25
+    }, {
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'rb_date',
         name: 'rb_date',
         fieldLabel: '日期',
         fieldLabel: '日期',

+ 19 - 24
frontend/saas-web/app/view/sale/report/SaleProfit.js

@@ -1,6 +1,6 @@
 Ext.define('saas.view.sale.report.SaleProfit', {
 Ext.define('saas.view.sale.report.SaleProfit', {
     extend: 'saas.view.core.report.ReportPanel',
     extend: 'saas.view.core.report.ReportPanel',
-    xtype: 'purchase-report-saleprofit',
+    xtype: 'sale-report-saleprofit',
 
 
     controller: 'sale-report-saleprofit',
     controller: 'sale-report-saleprofit',
     viewModel: 'sale-report-saleprofit',
     viewModel: 'sale-report-saleprofit',
@@ -11,31 +11,23 @@ Ext.define('saas.view.sale.report.SaleProfit', {
     listUrl: '/api/sale/sale/list',
     listUrl: '/api/sale/sale/list',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '销售毛利润表',
     reportTitle: '销售毛利润表',
-//筛选:客户、物料、时间		
+//筛选:客户、物料、时间	
+    QueryWidth:0.1, 	
     searchItems: [{
     searchItems: [{
         xtype: 'dbfindtrigger',
         xtype: 'dbfindtrigger',
-        name: 'pu_vendcode',
-        fieldLabel: '供应商编号'
-    }, {
-        xtype: 'hidden',
-        name: 'sa_custcode',
-        fieldLabel: '客户编号'
+        name: 'sa_custname',
+        fieldLabel: '客户',
+        columnWidth: 0.2
     }, {
     }, {
         xtype: 'dbfindtrigger',
         xtype: 'dbfindtrigger',
+        name: 'sd_prodcode',
+        fieldLabel: '物料',
+        columnWidth: 0.2
+    }, {
+        xtype: 'condatefield',
         name: 'sa_custname',
         name: 'sa_custname',
-        fieldLabel: '客户名称'
-    }, {
-        xtype: 'multicombo',
-        name: 'sa_sendstatuscode',
-        fieldLabel: '业务状态',
-        allowBlank: true,
-        columnWidth: 0.25,
-        datas: [
-            ["TURNOUT", "已出库"],
-            ["UNTURNOUT", "未出库"],
-            ["PARTOUT", "部分出库"],
-            ["CLOSE", "已关闭"]
-        ]
+        fieldLabel: '时间',
+        columnWidth: 0.5
     }],
     }],
 
 
     reportColumns: [
     reportColumns: [
@@ -64,7 +56,8 @@ Ext.define('saas.view.sale.report.SaleProfit', {
         dataIndex: 'sa_date'
         dataIndex: 'sa_date'
     }, {
     }, {
         text: '单据编号',
         text: '单据编号',
-        dataIndex: 'pd_inoutno'
+        dataIndex: 'pd_inoutno',
+        width: 200
     }, {
     }, {
         text: '单据类型',
         text: '单据类型',
         dataIndex: 'pd_piclass'
         dataIndex: 'pd_piclass'
@@ -73,10 +66,12 @@ Ext.define('saas.view.sale.report.SaleProfit', {
         dataIndex: 'pr_kind'
         dataIndex: 'pr_kind'
     }, {
     }, {
         text: '物料编号',
         text: '物料编号',
-        dataIndex: 'pr_code'
+        dataIndex: 'pr_code',
+        width: 200
     }, {
     }, {
         text: '物料名称',
         text: '物料名称',
-        dataIndex: 'pr_detail'
+        dataIndex: 'pr_detail',
+        width: 200
     }, {
     }, {
         text: '物料规格',
         text: '物料规格',
         dataIndex: 'pr_spec'
         dataIndex: 'pr_spec'

+ 99 - 0
frontend/saas-web/app/view/sale/report/SaleProfitController.js

@@ -101,6 +101,105 @@ Ext.define('saas.view.sale.report.SaleProfitController', {
                             }]
                             }]
                     }) ;   
                     }) ;   
                 }
                 }
+            },
+            //放大镜赋值关系 以及 tpl模板
+            'dbfindtrigger[name=sd_prodcode]':{
+                beforerender:function(f){
+                    Ext.apply(f,{
+                        dataUrl:'/api/document/product/list',
+                        addXtype: 'document-product-formpanel',
+                        addTitle: '物料资料',
+                        dbfinds:[
+                        {
+                            from:'pr_code',to:'sd_prodcode'
+                        }, {
+                            from:'pr_detail',to:'pr_detail'
+                        }, {
+                            from:'pr_spec',to:'pr_spec'
+                        }],
+                        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:'right'
+                        },{
+                            "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:'right'
+                        },{
+                            "text": "L/T",
+                            "dataIndex": "pr_leadtime",
+                            "width": 100,
+                        }]
+                    }) ;   
+
+                }
             }
             }
         });
         });
     }
     }

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

@@ -51,7 +51,10 @@ Ext.define('saas.view.sale.sale.FormPanel', {
         name : "sa_custname", 
         name : "sa_custname", 
         fieldLabel : "客户名称",
         fieldLabel : "客户名称",
         allowBlank : false
         allowBlank : false
-
+    }, {
+        xtype : "datefield", 
+        name : "sa_date", 
+        fieldLabel : "单据日期"
     }, {
     }, {
         xtype : "textfield", 
         xtype : "textfield", 
         name : "sa_toplace", 
         name : "sa_toplace", 

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

@@ -116,13 +116,13 @@ Ext.define('saas.view.sale.sale.FormPanelController', {
                         addTitle: '物料资料',
                         addTitle: '物料资料',
                         dbfinds:[
                         dbfinds:[
                         {
                         {
-                            from:'pr_code',to:'sd_prodcode',ignore:true
+                            from:'pr_code',to:'sd_prodcode'
                         }, {
                         }, {
                             from:'pr_detail',to:'pr_detail'
                             from:'pr_detail',to:'pr_detail'
                         }, {
                         }, {
                             from:'pr_spec',to:'pr_spec'
                             from:'pr_spec',to:'pr_spec'
                         }, {
                         }, {
-                            from:'id',to:'sd_prodid'
+                            from:'id',to:'sd_prodid',ignore:true
                         }],
                         }],
                         dbtpls:[{
                         dbtpls:[{
                             field:'pr_code',width:100
                             field:'pr_code',width:100

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

@@ -18,7 +18,7 @@ Ext.define('saas.view.sale.sale.QueryPanel', {
         fieldLabel: '销售编号'
         fieldLabel: '销售编号'
     }, {
     }, {
         xtype: 'condatefield',
         xtype: 'condatefield',
-        name: 'sa_recorddate',
+        name: 'sa_date',
         fieldLabel: '单据日期',
         fieldLabel: '单据日期',
         columnWidth: 0.5
         columnWidth: 0.5
     }, {
     }, {
@@ -110,7 +110,7 @@ Ext.define('saas.view.sale.sale.QueryPanel', {
             width: 120
             width: 120
         }, {
         }, {
             text: '单据日期',
             text: '单据日期',
-            dataIndex: 'sa_recorddate',
+            dataIndex: 'sa_date',
             xtype: 'datecolumn',
             xtype: 'datecolumn',
             width: 200
             width: 200
         }, {
         }, {
@@ -151,7 +151,7 @@ Ext.define('saas.view.sale.sale.QueryPanel', {
             width: 120
             width: 120
         }, {
         }, {
             text: '单据日期',
             text: '单据日期',
-            dataIndex: 'sa_recorddate',
+            dataIndex: 'sa_date',
             xtype: 'datecolumn',
             xtype: 'datecolumn',
             width: 200
             width: 200
         }, {
         }, {

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

@@ -95,16 +95,16 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
             width: 200
             width: 200
         },{
         },{
             text: '销售单号',
             text: '销售单号',
-            dataIndex: 'pi_pucode',
+            dataIndex: 'pd_ordercode',
             width: 200
             width: 200
         }, {
         }, {
-            xtype: 'hidden',
-            name: 'pi_custcode',
-            fieldLabel: '客户编号'
+            text: '客户编号',
+            dataIndex: 'pi_custcode',
+            width: 200
         }, {
         }, {
-            xtype: 'dbfindtrigger',
-            name: 'pi_custname',
-            fieldLabel: '客户名称'
+            text: '客户名称',
+            dataIndex: 'pi_custname',
+            width: 200
         },{
         },{
             text: '含税金额',
             text: '含税金额',
             dataIndex: 'pi_total',
             dataIndex: 'pi_total',

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

@@ -1,5 +1,8 @@
 Ext.define('saas.view.sale.saleIn.QueryPanelModel', {
 Ext.define('saas.view.sale.saleIn.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
     extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.sale-salein-querypanel'
+    alias: 'viewmodel.sale-salein-querypanel',
+    data: {
+        closeEnable:false
+    }
 
 
 });
 });

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

@@ -1,4 +1,7 @@
 Ext.define('saas.view.sale.saleout.QueryPanelModel', {
 Ext.define('saas.view.sale.saleout.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
     extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.sale-saleout-querypanel'
+    alias: 'viewmodel.sale-saleout-querypanel',
+    data: {
+        closeEnable:false
+    }
 });
 });

+ 3 - 3
frontend/saas-web/app/view/stock/stockamount/DataList.js

@@ -64,7 +64,7 @@ Ext.define('saas.view.stock.stockamount.DataList', {
         xtype : "", 
         xtype : "", 
     },{
     },{
         text : "物料名称", 
         text : "物料名称", 
-        width : 200.0, 
+        width : 150.0, 
         dataIndex : "rc_prodDetail", 
         dataIndex : "rc_prodDetail", 
     }, 
     }, 
     {
     {
@@ -75,12 +75,12 @@ Ext.define('saas.view.stock.stockamount.DataList', {
     {
     {
         text : "单位", 
         text : "单位", 
         dataIndex : "rc_prodUnit", 
         dataIndex : "rc_prodUnit", 
-        width : 120.0, 
+        width : 80.0, 
     }, 
     }, 
     {
     {
         text : "仓库编号", 
         text : "仓库编号", 
         dataIndex : "rc_whCode", 
         dataIndex : "rc_whCode", 
-        width : 0, 
+        width : 100, 
     }, 
     }, 
     {
     {
         text : "仓库名称", 
         text : "仓库名称", 

BIN
frontend/saas-web/packages/font-saas/resources/fonts/iconfont.eot


File diff suppressed because it is too large
+ 0 - 0
frontend/saas-web/packages/font-saas/resources/fonts/iconfont.js


File diff suppressed because it is too large
+ 0 - 0
frontend/saas-web/packages/font-saas/resources/fonts/iconfont.svg


BIN
frontend/saas-web/packages/font-saas/resources/fonts/iconfont.ttf


BIN
frontend/saas-web/packages/font-saas/resources/fonts/iconfont.woff


+ 4 - 0
frontend/saas-web/packages/font-saas/sass/etc/icons.scss

@@ -1,5 +1,7 @@
 .sa-purchase:before { content: "\e613"; }
 .sa-purchase:before { content: "\e613"; }
 
 
+.sa-weibiaoti1:before { content: "\e669"; }
+
 .sa-document:before { content: "\e654"; }
 .sa-document:before { content: "\e654"; }
 
 
 .sa-switch-on:before { content: "\e622"; }
 .sa-switch-on:before { content: "\e622"; }
@@ -12,4 +14,6 @@
 
 
 .sa-setting:before { content: "\e64b"; }
 .sa-setting:before { content: "\e64b"; }
 
 
+.sa-saas:before { content: "\e769"; }
+
 .sa-money:before { content: "\e6fa"; }
 .sa-money:before { content: "\e6fa"; }

+ 0 - 2
frontend/saas-web/packages/font-saas/sass/src/all.scss

@@ -11,8 +11,6 @@ $ext-font-path: get-resource-path('fonts');
 
 
 .x-sa:before {
 .x-sa:before {
   font-family:"font-saas" !important;
   font-family:"font-saas" !important;
-  font-size:16px;
-  font-style:normal;
   -webkit-font-smoothing: antialiased;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   -moz-osx-font-smoothing: grayscale;
 }
 }

BIN
frontend/saas-web/resources/images/default/logo-default.png


+ 2 - 2
frontend/saas-web/resources/json/navigation.json

@@ -1,6 +1,6 @@
 [{
 [{
     "text": "采购",
     "text": "采购",
-    "iconCls": "x-fa fa-shopping-basket",
+    "iconCls": "x-sa sa-purchase",
     "items": [{
     "items": [{
         "text": "制单",
         "text": "制单",
         "items": [{
         "items": [{
@@ -123,7 +123,7 @@
     }]
     }]
 }, {
 }, {
     "text": "资金",
     "text": "资金",
-    "iconCls": "x-fa fa-money",
+    "iconCls": "x-sa sa-money",
     "items": [{
     "items": [{
         "text": "制单",
         "text": "制单",
         "items": [{
         "items": [{

Some files were not shown because too many files changed in this diff