Browse Source

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

guq 7 years ago
parent
commit
c720a0065d
60 changed files with 696 additions and 174 deletions
  1. 7 0
      applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/exception/BizExceptionCode.java
  2. 14 14
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Product.java
  3. 9 9
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Vendor.java
  4. 5 0
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/mapper/CustomerMapper.java
  5. 12 1
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/CustomerServiceImpl.java
  6. 8 22
      applications/document/document-server/src/main/resources/mapper/BankinformationMapper.xml
  7. 10 0
      applications/document/document-server/src/main/resources/mapper/CustomerMapper.xml
  8. 27 2
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthreceiptsServiceImpl.java
  9. 81 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/PaybalanceServiceImpl.java
  10. 72 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/RecbalanceServiceImpl.java
  11. 1 1
      applications/money/money-server/src/main/resources/mapper/BanksubledgerMapper.xml
  12. 9 0
      applications/money/money-server/src/main/resources/mapper/PaybalancedetailMapper.xml
  13. 1 1
      applications/money/money-server/src/main/resources/mapper/SubledgerMapper.xml
  14. 2 1
      frontend/saas-web/app.json
  15. 2 1
      frontend/saas-web/app/view/core/form/FormPanel.js
  16. 8 8
      frontend/saas-web/app/view/core/form/FormPanelController.js
  17. 20 2
      frontend/saas-web/app/view/core/query/QueryGridPanel.js
  18. 6 0
      frontend/saas-web/app/view/core/query/QueryPanelModel.js
  19. 41 0
      frontend/saas-web/app/view/home/Home.scss
  20. 0 1
      frontend/saas-web/app/view/money/fundtransfer/FormPanel.js
  21. 1 2
      frontend/saas-web/app/view/money/fundtransfer/QueryPanel.js
  22. 0 1
      frontend/saas-web/app/view/money/othspendings/QueryPanel.js
  23. 33 41
      frontend/saas-web/app/view/money/payBalance/FormPanel.js
  24. 92 4
      frontend/saas-web/app/view/money/payBalance/FormPanelController.js
  25. 22 31
      frontend/saas-web/app/view/money/recBalance/FormPanel.js
  26. 57 2
      frontend/saas-web/app/view/money/recBalance/FormPanelController.js
  27. 0 1
      frontend/saas-web/app/view/money/recBalance/QueryPanel.js
  28. 2 1
      frontend/saas-web/app/view/purchase/purchase/QueryPanel.js
  29. 0 1
      frontend/saas-web/app/view/purchase/purchase/QueryPanelModel.js
  30. 2 0
      frontend/saas-web/app/view/purchase/purchaseIn/FormPanelController.js
  31. 4 2
      frontend/saas-web/app/view/purchase/purchaseIn/QueryPanelModel.js
  32. 2 0
      frontend/saas-web/app/view/purchase/purchaseOut/FormPanelController.js
  33. 0 1
      frontend/saas-web/app/view/purchase/purchaseOut/QueryPanel.js
  34. 4 1
      frontend/saas-web/app/view/purchase/purchaseOut/QueryPanelModel.js
  35. 1 1
      frontend/saas-web/app/view/sale/sale/FormPanel.js
  36. 2 4
      frontend/saas-web/app/view/sale/saleIn/QueryPanel.js
  37. 1 2
      frontend/saas-web/app/view/sale/saleOut/QueryPanel.js
  38. 0 2
      frontend/saas-web/app/view/stock/appropriationInOut/QueryPanel.js
  39. 4 1
      frontend/saas-web/app/view/stock/appropriationInOut/QueryPanelModel.js
  40. 2 2
      frontend/saas-web/app/view/stock/make/FormPanel.js
  41. 1 5
      frontend/saas-web/app/view/stock/make/QueryPanel.js
  42. 4 1
      frontend/saas-web/app/view/stock/make/QueryPanelModel.js
  43. 2 0
      frontend/saas-web/app/view/stock/otherIn/FormPanelController.js
  44. 0 1
      frontend/saas-web/app/view/stock/otherIn/QueryPanel.js
  45. 4 1
      frontend/saas-web/app/view/stock/otherIn/QueryPanelModel.js
  46. 2 0
      frontend/saas-web/app/view/stock/otherOut/FormPanelController.js
  47. 0 1
      frontend/saas-web/app/view/stock/otherOut/QueryPanel.js
  48. 4 1
      frontend/saas-web/app/view/stock/otherOut/QueryPanelModel.js
  49. 1 0
      frontend/saas-web/packages/font-saas/Readme.md
  50. 37 0
      frontend/saas-web/packages/font-saas/build.xml
  51. 2 0
      frontend/saas-web/packages/font-saas/index.js
  52. 32 0
      frontend/saas-web/packages/font-saas/package.json
  53. BIN
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.eot
  54. 0 0
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.js
  55. 22 0
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.svg
  56. BIN
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.ttf
  57. BIN
      frontend/saas-web/packages/font-saas/resources/fonts/iconfont.woff
  58. 14 0
      frontend/saas-web/packages/font-saas/sass/etc/icons.scss
  59. 6 0
      frontend/saas-web/packages/font-saas/sass/src/all.scss
  60. 1 1
      frontend/saas-web/resources/json/navigation.json

+ 7 - 0
applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/exception/BizExceptionCode.java

@@ -47,7 +47,14 @@ public enum BizExceptionCode implements BaseExceptionCode {
     SALEOUT_POSTSTATUS_ERROR(72004,"当前单据状态无法进行此操作。"),
     SALEOUT_POSTSTATUS_ERROR(72004,"当前单据状态无法进行此操作。"),
     SALEOUT_POST_ERROR(72005,""),
     SALEOUT_POST_ERROR(72005,""),
     SALEOUT_UNAUDIT_ERROR(72006,"销售订单已转出货单,无法反审核"),
     SALEOUT_UNAUDIT_ERROR(72006,"销售订单已转出货单,无法反审核"),
+
     //资金
     //资金
+    PAYBALANCE_OUTNOWBALANCE(74001,"本次核销金额不能大于未核销金额"),
+    PAYBALANCE_UNIQUESOURCECODE(74002, "保存失败!不能选择重复的源单"),
+
+    RECALANCE_OUTNOWBALANCE(74003,"本次核销金额不能大于未核销金额"),
+
+
 
 
     //库存
     //库存
     EMPTY_DATA(76100,"数据为空,请填写后再保存"),
     EMPTY_DATA(76100,"数据为空,请填写后再保存"),

+ 14 - 14
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Product.java

@@ -17,17 +17,17 @@ public class Product extends CommonBaseEntity implements Serializable {
     private long pr_whid;
     private long pr_whid;
     private String pr_whcode;
     private String pr_whcode;
     private String pr_whname;
     private String pr_whname;
-    private long pr_zxbzs;
-    private long pr_leadtime;
+    private Long pr_zxbzs;
+    private Long pr_leadtime;
     private String pr_brand;
     private String pr_brand;
     private String pr_standardprice;
     private String pr_standardprice;
     private String pr_purcprice;
     private String pr_purcprice;
     private String pr_saleprice;
     private String pr_saleprice;
-    private long pr_vendid;
+    private Long pr_vendid;
     private String pr_vendname;
     private String pr_vendname;
     private String pr_vendcode;
     private String pr_vendcode;
     private Date pr_docdate;
     private Date pr_docdate;
-    private long pr_recordmanid;
+    private Long pr_recordmanid;
     private String pr_recordman;
     private String pr_recordman;
     private String pr_status;
     private String pr_status;
     private String pr_statuscode;
     private String pr_statuscode;
@@ -84,11 +84,11 @@ public class Product extends CommonBaseEntity implements Serializable {
         this.pr_orispeccode = pr_orispeccode;
         this.pr_orispeccode = pr_orispeccode;
     }
     }
 
 
-    public long getPr_whid() {
+    public Long getPr_whid() {
         return pr_whid;
         return pr_whid;
     }
     }
 
 
-    public void setPr_whid(long pr_whid) {
+    public void setPr_whid(Long pr_whid) {
         this.pr_whid = pr_whid;
         this.pr_whid = pr_whid;
     }
     }
 
 
@@ -108,19 +108,19 @@ public class Product extends CommonBaseEntity implements Serializable {
         this.pr_whname = pr_whname;
         this.pr_whname = pr_whname;
     }
     }
 
 
-    public long getPr_zxbzs() {
+    public Long getPr_zxbzs() {
         return pr_zxbzs;
         return pr_zxbzs;
     }
     }
 
 
-    public void setPr_zxbzs(long pr_zxbzs) {
+    public void setPr_zxbzs(Long pr_zxbzs) {
         this.pr_zxbzs = pr_zxbzs;
         this.pr_zxbzs = pr_zxbzs;
     }
     }
 
 
-    public long getPr_leadtime() {
+    public Long getPr_leadtime() {
         return pr_leadtime;
         return pr_leadtime;
     }
     }
 
 
-    public void setPr_leadtime(long pr_leadtime) {
+    public void setPr_leadtime(Long pr_leadtime) {
         this.pr_leadtime = pr_leadtime;
         this.pr_leadtime = pr_leadtime;
     }
     }
 
 
@@ -156,11 +156,11 @@ public class Product extends CommonBaseEntity implements Serializable {
         this.pr_saleprice = pr_saleprice;
         this.pr_saleprice = pr_saleprice;
     }
     }
 
 
-    public long getPr_vendid() {
+    public Long getPr_vendid() {
         return pr_vendid;
         return pr_vendid;
     }
     }
 
 
-    public void setPr_vendid(long pr_vendid) {
+    public void setPr_vendid(Long pr_vendid) {
         this.pr_vendid = pr_vendid;
         this.pr_vendid = pr_vendid;
     }
     }
 
 
@@ -188,11 +188,11 @@ public class Product extends CommonBaseEntity implements Serializable {
         this.pr_docdate = pr_docdate;
         this.pr_docdate = pr_docdate;
     }
     }
 
 
-    public long getPr_recordmanid() {
+    public Long getPr_recordmanid() {
         return pr_recordmanid;
         return pr_recordmanid;
     }
     }
 
 
-    public void setPr_recordmanid(long pr_recordmanid) {
+    public void setPr_recordmanid(Long pr_recordmanid) {
         this.pr_recordmanid = pr_recordmanid;
         this.pr_recordmanid = pr_recordmanid;
     }
     }
 
 

+ 9 - 9
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Vendor.java

@@ -71,7 +71,7 @@ public class Vendor extends CommonBaseEntity implements Serializable{
     /**
     /**
      * 录入人ID
      * 录入人ID
      */
      */
-    private long ve_recordid;
+    private Long ve_recordid;
     /**
     /**
      * 录入人
      * 录入人
      */
      */
@@ -171,27 +171,27 @@ public class Vendor extends CommonBaseEntity implements Serializable{
         this.ve_begindate = ve_begindate;
         this.ve_begindate = ve_begindate;
     }
     }
 
 
-    public long getVe_beginapamount() {
+    public Long getVe_beginapamount() {
         return ve_beginapamount;
         return ve_beginapamount;
     }
     }
 
 
-    public void setVe_beginapamount(long ve_beginapamount) {
+    public void setVe_beginapamount(Long ve_beginapamount) {
         this.ve_beginapamount = ve_beginapamount;
         this.ve_beginapamount = ve_beginapamount;
     }
     }
 
 
-    public long getVe_beginprepayamount() {
+    public Long getVe_beginprepayamount() {
         return ve_beginprepayamount;
         return ve_beginprepayamount;
     }
     }
 
 
-    public void setVe_beginprepayamount(long ve_beginprepayamount) {
+    public void setVe_beginprepayamount(Long ve_beginprepayamount) {
         this.ve_beginprepayamount = ve_beginprepayamount;
         this.ve_beginprepayamount = ve_beginprepayamount;
     }
     }
 
 
-    public long getVe_promisedays() {
+    public Long getVe_promisedays() {
         return ve_promisedays;
         return ve_promisedays;
     }
     }
 
 
-    public void setVe_promisedays(long ve_promisedays) {
+    public void setVe_promisedays(Long ve_promisedays) {
         this.ve_promisedays = ve_promisedays;
         this.ve_promisedays = ve_promisedays;
     }
     }
 
 
@@ -243,11 +243,11 @@ public class Vendor extends CommonBaseEntity implements Serializable{
         this.ve_statuscode = ve_statuscode;
         this.ve_statuscode = ve_statuscode;
     }
     }
 
 
-    public long getVe_recordid() {
+    public Long getVe_recordid() {
         return ve_recordid;
         return ve_recordid;
     }
     }
 
 
-    public void setVe_recordid(long ve_recordid) {
+    public void setVe_recordid(Long ve_recordid) {
         this.ve_recordid = ve_recordid;
         this.ve_recordid = ve_recordid;
     }
     }
 
 

+ 5 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/mapper/CustomerMapper.java

@@ -21,4 +21,9 @@ public interface CustomerMapper extends CommonBaseMapper<Customer> {
 
 
     Integer validateCodeWhenUpdate(@Param("code") String code, @Param("id") Long id,
     Integer validateCodeWhenUpdate(@Param("code") String code, @Param("id") Long id,
                                    @Param("companyId") Long companyId);
                                    @Param("companyId") Long companyId);
+
+    int validNameAndCodeWhenInsert(Customer record);
+
+    int validNameAndCodeWhenUpdate(Customer record);
+
 }
 }

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

@@ -133,6 +133,11 @@ public class CustomerServiceImpl extends CommonBaseServiceImpl<CustomerMapper, C
         //单号赋值
         //单号赋值
         customer.setCu_code(cu_code);
         customer.setCu_code(cu_code);
         if (StringUtils.isEmpty(cu_id) || "0".equals(cu_id.toString())) {
         if (StringUtils.isEmpty(cu_id) || "0".equals(cu_id.toString())) {
+            //检查名称和编号
+            int count = getMapper().validNameAndCodeWhenInsert(customer);
+            if (count>0) {
+                throw new BizException(500, "客户名称或编号重复");
+            }
             //插入操作
             //插入操作
             getMapper().insertSelective(customer);
             getMapper().insertSelective(customer);
             cu_id = customer.getId();
             cu_id = customer.getId();
@@ -167,6 +172,12 @@ public class CustomerServiceImpl extends CommonBaseServiceImpl<CustomerMapper, C
             messageLogService.save(baseDTO);
             messageLogService.save(baseDTO);
             return baseDTO;
             return baseDTO;
         }
         }
+        //检查名称和编号
+        int count = getMapper().validNameAndCodeWhenUpdate(customer);
+        if (count>0) {
+            throw new BizException(500, "客户名称或编号重复");
+        }
+
         //更新操作
         //更新操作
         getMapper().updateByPrimaryKeySelective(customer);
         getMapper().updateByPrimaryKeySelective(customer);
         //添加从表传输对象
         //添加从表传输对象
@@ -216,7 +227,7 @@ public class CustomerServiceImpl extends CommonBaseServiceImpl<CustomerMapper, C
 
 
         baseDTO = getBaseDTOById(cu_id);
         baseDTO = getBaseDTOById(cu_id);
         //日志记录
         //日志记录
-            messageLogService.save(baseDTO);
+        messageLogService.save(baseDTO);
         return baseDTO;
         return baseDTO;
     }
     }
 
 

+ 8 - 22
applications/document/document-server/src/main/resources/mapper/BankinformationMapper.xml

@@ -292,31 +292,17 @@
       bk_remark = #{bkRemark,jdbcType=LONGVARCHAR}
       bk_remark = #{bkRemark,jdbcType=LONGVARCHAR}
     where bk_id = #{bkId,jdbcType=INTEGER}
     where bk_id = #{bkId,jdbcType=INTEGER}
   </update>
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Bankinformation" >
+  <update id="updateBankcode">
     update bankinformation
     update bankinformation
-    set bk_bankcode = #{bkBankcode,jdbcType=VARCHAR},
-      bk_bankname = #{bkBankname,jdbcType=VARCHAR},
-      bk_date = #{bkDate,jdbcType=TIMESTAMP},
-      bk_type = #{bkType,jdbcType=VARCHAR},
-      bk_beginamount = #{bkBeginamount,jdbcType=DOUBLE},
-      bk_thisamount = #{bkThisamount,jdbcType=DOUBLE},
-      bk_status = #{bkStatus,jdbcType=VARCHAR},
-      bk_statuscode = #{bkStatuscode,jdbcType=VARCHAR},
-      bk_recorderid = #{bkRecorderid,jdbcType=INTEGER},
-      bk_recorder = #{bkRecorder,jdbcType=VARCHAR},
-      bk_recorddate = #{bkRecorddate,jdbcType=TIMESTAMP},
-      bk_ym = #{bkYm,jdbcType=INTEGER},
-      companyid = #{companyId,jdbcType=INTEGER},
-      updaterId = #{updaterId,jdbcType=INTEGER},
-      updateTime = #{updateTime,jdbcType=TIMESTAMP},
-      bk_text1 = #{bkText1,jdbcType=VARCHAR},
-      bk_text2 = #{bkText2,jdbcType=VARCHAR},
-      bk_text3 = #{bkText3,jdbcType=VARCHAR},
-      bk_text4 = #{bkText4,jdbcType=VARCHAR},
-      bk_text5 = #{bkText5,jdbcType=VARCHAR}
-    where bk_id = #{bk_id,jdbcType=INTEGER}
+    set bk_thisamount = nvl(#{bk_thisamount,jdbcType=DOUBLE},0) ${symbol} #{nowbalance}
+    where bk_bankcode = #{bankcode,jdbcType=VARCHAR}
   </update>
   </update>
 
 
+  <select id="selectThisamount" resultType="java.lang.Double" parameterType="com.usoftchina.saas.document.entities.Bankinformation">
+   select bk_thisamount from bankinformation
+    where bk_bankcode = #{bankcode,jdbcType=VARCHAR}
+  </select>
+
   <select id="selectAll" resultMap="BaseResultMap">
   <select id="selectAll" resultMap="BaseResultMap">
     SELECT * FROM bankinformation
     SELECT * FROM bankinformation
   </select>
   </select>

+ 10 - 0
applications/document/document-server/src/main/resources/mapper/CustomerMapper.xml

@@ -359,6 +359,16 @@
     select count(1) from customer where cu_code = #{code} and cu_id != #{id} and companyId =#{companyId}
     select count(1) from customer where cu_code = #{code} and cu_id != #{id} and companyId =#{companyId}
   </select>
   </select>
 
 
+  <select id="validNameAndCodeWhenInsert" parameterType="com.usoftchina.saas.document.entities.Customer" resultType="int">
+    select count(1) from customer where cu_code = #{cu_code,jdbcType=VARCHAR} or cu_name = #{cu_name,jdbcType=VARCHAR}
+  </select>
+
+  <select id="validNameAndCodeWhenUpdate" parameterType="com.usoftchina.saas.document.entities.Customer" resultType="int">
+    select count(1) from customer where cu_code = #{cu_code,jdbcType=VARCHAR} or cu_name = #{cu_name,jdbcType=VARCHAR}
+    and cu_id != #{id}
+  </select>
+
+
   <select id="selectCodeById" parameterType="java.lang.Long" resultType="string">
   <select id="selectCodeById" parameterType="java.lang.Long" resultType="string">
     select
     select
     cu_code
     cu_code

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

@@ -10,6 +10,7 @@ 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;
@@ -39,6 +40,8 @@ public class OthreceiptsServiceImpl implements OthreceiptsService {
     private MaxnumberService maxnumberService;
     private MaxnumberService maxnumberService;
     @Autowired
     @Autowired
     private BanksubledgerMapper banksubledgerMapper;
     private BanksubledgerMapper banksubledgerMapper;
+    @Autowired
+    private BankinformationMapper bankinformationMapper;
 
 
     @Override
     @Override
     public DocBaseDTO insert(Othte othte) {
     public DocBaseDTO insert(Othte othte) {
@@ -72,7 +75,7 @@ public class OthreceiptsServiceImpl implements OthreceiptsService {
             othreceiptsdetail1.setOrd_orid(Math.toIntExact(id));
             othreceiptsdetail1.setOrd_orid(Math.toIntExact(id));
             othreceiptsdetail1.setCompanyId(BaseContextHolder.getCompanyId());
             othreceiptsdetail1.setCompanyId(BaseContextHolder.getCompanyId());
             if (othreceiptsdetail1.getId() > 0 ){
             if (othreceiptsdetail1.getId() > 0 ){
-                othreceiptsdetailMapper.updateByPrimaryKey(othreceiptsdetail1);
+                othreceiptsdetailMapper.updateByPrimaryKeySelective(othreceiptsdetail1);
             }else {
             }else {
                 othreceiptsdetailMapper.insertSelective(othreceiptsdetail1);
                 othreceiptsdetailMapper.insertSelective(othreceiptsdetail1);
             }
             }
@@ -94,6 +97,16 @@ public class OthreceiptsServiceImpl implements OthreceiptsService {
         }else {
         }else {
             othreceiptsMapper.updateByPrimaryKeySelective(othreceipts);
             othreceiptsMapper.updateByPrimaryKeySelective(othreceipts);
         }
         }
+
+        Double amount = bankinformationMapper.selectThisamount(othreceipts.getOr_bankcode());
+        //取从表金额
+        List<Othreceiptsdetail> othreceiptsdetailList = othte.getItems();
+        Iterator isList = othreceiptsdetailList.iterator();
+        while (isList.hasNext()){
+            Othreceiptsdetail othreceiptsdetail = (Othreceiptsdetail) isList.next();
+            bankinformationMapper.updateBankcode(amount, othreceiptsdetail.getOrd_nowbalance(),
+                    othreceipts.getOr_bankcode(), "+");
+        }
     }
     }
 
 
     @Override
     @Override
@@ -107,6 +120,17 @@ public class OthreceiptsServiceImpl implements OthreceiptsService {
         //删除中间表
         //删除中间表
         othreceipts = othreceiptsMapper.selectByPrimaryKey(id);
         othreceipts = othreceiptsMapper.selectByPrimaryKey(id);
         banksubledgerMapper.deleteByPrimaryKey(othreceipts.getOr_code(), "其他收入单");
         banksubledgerMapper.deleteByPrimaryKey(othreceipts.getOr_code(), "其他收入单");
+
+        //更新资金
+        Double amount = bankinformationMapper.selectThisamount(othreceipts.getOr_bankcode());
+        List<Othreceiptsdetail> othreceiptsdetailList = othreceiptsdetailMapper.selectByPrimaryKey(id);
+        Iterator isList = othreceiptsdetailList.iterator();
+        while (isList.hasNext()){
+            Othreceiptsdetail othreceiptsdetail = (Othreceiptsdetail) isList.next();
+            bankinformationMapper.updateBankcode(amount, othreceiptsdetail.getOrd_nowbalance(),
+                    othreceipts.getOr_bankcode(), "-");
+        }
+
     }
     }
 
 
 
 
@@ -163,7 +187,8 @@ public class OthreceiptsServiceImpl implements OthreceiptsService {
             othreceipts.setOr_statuscode(Status.AUDITED.name());
             othreceipts.setOr_statuscode(Status.AUDITED.name());
             Othte othte = this.select(Math.toIntExact(othreceipts.getId()));
             Othte othte = this.select(Math.toIntExact(othreceipts.getId()));
             this.changBankUntil(othte);
             this.changBankUntil(othte);
-            othreceiptsMapper.updateByPrimaryKeySelective(othreceipts);
+            this.insert(othte);
+//            othreceiptsMapper.updateByPrimaryKeySelective(othreceipts);
         }
         }
     }
     }
 
 

+ 81 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/PaybalanceServiceImpl.java

@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 import org.springframework.util.StringUtils;
 import org.springframework.util.StringUtils;
 
 
+import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.Iterator;
 import java.util.List;
 import java.util.List;
 
 
@@ -58,6 +59,9 @@ public class PaybalanceServiceImpl implements PaybalanceService {
 
 
         Long rbId = paybalance.getId();
         Long rbId = paybalance.getId();
 
 
+        //校验数据
+        checkPaybalance(pay);
+
         if (paybalance.getId() > 0){
         if (paybalance.getId() > 0){
             paybalanceMapper.updateByPrimaryKeySelective(paybalance);
             paybalanceMapper.updateByPrimaryKeySelective(paybalance);
         }else {
         }else {
@@ -93,6 +97,63 @@ public class PaybalanceServiceImpl implements PaybalanceService {
         return new DocBaseDTO(rbId, pb_code, BillCodeSeq.PAYBALANCE.getCaller());
         return new DocBaseDTO(rbId, pb_code, BillCodeSeq.PAYBALANCE.getCaller());
     }
     }
 
 
+    /**
+     * 校验数据
+     * @param pay
+     * @author hx
+     */
+    private void checkPaybalance(Pay pay){
+        Paybalance paybalance = pay.getMain();
+        List<Paybalancedet> paybalancedet = pay.getItems1();
+        List<Paybalancedetail> paybalancedetail = pay.getItems2();
+        //本次核销合计
+        Double nowbalanceTotal = new Double(0);
+        for(Paybalancedetail detail : paybalancedetail){
+            //本次核销金额
+            Double nowbalance = detail.getPbd_nowbalance();
+            nowbalanceTotal = nowbalanceTotal + nowbalance;
+            //来源单号
+            Integer sourceId = detail.getPbd_slid();
+            //未核销金额
+            Double namount = new Double(0);
+            if(sourceId!=0){
+                Subledger subledger = subledgerMapper.selectByPrimaryKey(sourceId);
+                namount = subledger.getSl_namount();
+            }
+            //本次核销金额不能大于未核销金额
+            if(nowbalance>namount){
+                throw new BizException(500, BizExceptionCode.PAYBALANCE_OUTNOWBALANCE.getMessage());
+            }
+            //单据金额
+            Double amount = detail.getPbd_amount();
+            if(amount>0 && nowbalance<0){
+                String error = "单据类型为" + detail.getPbd_slkind() + "的单据,核销金额必须为正数";
+                throw new BizException(500, error);
+            }
+            if(amount<0 && nowbalance>0){
+                String error = "单据类型为" + detail.getPbd_slkind() + "的单据,核销金额必须为负数";
+                throw new BizException(500, error);
+            }
+        }
+        //不能选择重复的源单
+        for  ( int  i  =   0 ; i  <  paybalancedetail.size()  -   1 ; i ++ )  {
+            for  ( int  j  =  paybalancedetail.size()  -   1 ; j  >  i; j -- )  {
+                if  (paybalancedetail.get(j).getPbd_slcode().equals(paybalancedetail.get(i).getPbd_slcode()))  {
+                    throw new BizException(500, BizExceptionCode.PAYBALANCE_UNIQUESOURCECODE.getMessage());
+                }
+            }
+        }
+        //付款金额合计
+        Double amountTotal = new Double(0);
+        for (Paybalancedet det: paybalancedet) {
+            amountTotal = amountTotal + det.getPd_amount();
+        }
+        //更新本次预付款金额
+        Paybalance updatePay = new Paybalance();
+        updatePay.setId(paybalance.getId());
+        updatePay.setPb_preamount(amountTotal+paybalance.getPb_discounts()-nowbalanceTotal);
+        paybalanceMapper.updateByPrimaryKeySelective(updatePay);
+    }
 
 
     @Override
     @Override
     public void audit(Pay pay) {
     public void audit(Pay pay) {
@@ -115,6 +176,19 @@ public class PaybalanceServiceImpl implements PaybalanceService {
         }else {
         }else {
             paybalanceMapper.updateByPrimaryKeySelective(paybalance);
             paybalanceMapper.updateByPrimaryKeySelective(paybalance);
         }
         }
+
+        Paybalance updatePay = new Paybalance();
+        List<Paybalancedet> paybalancedet = pay.getItems1();
+        List<Paybalancedetail> paybalancedetail = pay.getItems2();
+        //更新主表付款金额:pb_pdamount=从表一金额合计
+        Double amountTotal = new Double(0);
+        for (Paybalancedet det: paybalancedet) {
+            amountTotal = amountTotal + det.getPd_amount();
+        }
+        updatePay.setId(pay.getMain().getId());
+        updatePay.setPb_pdamount(amountTotal);
+        //updateByPrimaryKeySelective
+
     }
     }
 
 
     @Override
     @Override
@@ -129,6 +203,13 @@ public class PaybalanceServiceImpl implements PaybalanceService {
         paybalance = paybalanceMapper.selectByPrimaryKey(id);
         paybalance = paybalanceMapper.selectByPrimaryKey(id);
         subledgerMapper.deleteByPrimaryKey(paybalance.getPb_code(), paybalance.getPb_kind());
         subledgerMapper.deleteByPrimaryKey(paybalance.getPb_code(), paybalance.getPb_kind());
         banksubledgerMapper.deleteByPrimaryKey(paybalance.getPb_code(), paybalance.getPb_kind());
         banksubledgerMapper.deleteByPrimaryKey(paybalance.getPb_code(), paybalance.getPb_kind());
+
+        //更新供应商资料
+        /**
+         * ve_preamount=nvl(ve_preamount,0)-pb_preamount,
+         * ve_payamount=nvl(ve_payamount,0)+pb_pbdamount,
+         * ve_leftamount=ve_beginapamount-e_beginprepayamount+ve_payamount-ve_preamount;
+         */
     }
     }
 
 
 
 

+ 72 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/RecbalanceServiceImpl.java

@@ -56,6 +56,9 @@ public class RecbalanceServiceImpl implements RecbalanceService {
         //单号赋值
         //单号赋值
         recbalance.setRb_code(pu_code);
         recbalance.setRb_code(pu_code);
 
 
+        //校验数据
+        checkRecbalance(rec);
+
         Long rbId = recbalance.getId();
         Long rbId = recbalance.getId();
         if (rbId > 0){
         if (rbId > 0){
             recbalanceMapper.updateByPrimaryKeySelective(recbalance);
             recbalanceMapper.updateByPrimaryKeySelective(recbalance);
@@ -93,6 +96,63 @@ public class RecbalanceServiceImpl implements RecbalanceService {
         return new DocBaseDTO(rbId, pu_code, BillCodeSeq.RECBALANCE.getCaller());
         return new DocBaseDTO(rbId, pu_code, BillCodeSeq.RECBALANCE.getCaller());
     }
     }
 
 
+    /**
+     * 校验数据
+     * @param pay
+     */
+    private void checkRecbalance(Rec rec){
+        Recbalance recbalance = rec.getMain();
+        List<Recbalancedet> recbalancedet = rec.getItems1();
+        List<Recbalancedetail> recbalancedetail = rec.getItems2();
+        //本次核销合计
+        Double nowbalanceTotal = new Double(0);
+        for(Recbalancedetail detail : recbalancedetail){
+            //本次核销金额
+            Double nowbalance = detail.getRbd_nowbalance();
+            nowbalanceTotal = nowbalanceTotal + nowbalance;
+            //来源单号
+            Integer sourceId = detail.getRbd_slid();
+            //未核销金额
+            Double namount = new Double(0);
+            if(sourceId!=0){
+                Subledger subledger = subledgerMapper.selectByPrimaryKey(sourceId);
+                namount = subledger.getSl_namount();
+            }
+            //本次核销金额不能大于未核销金额
+            if(nowbalance>namount){
+                throw new BizException(500, BizExceptionCode.RECALANCE_OUTNOWBALANCE.getMessage());
+            }
+            //单据金额
+            Double amount = detail.getRbd_amount();
+            if(amount>0 && nowbalance<0){
+                String error = "单据类型为" + detail.getRbd_slkind() + "的单据,核销金额必须为正数";
+                throw new BizException(500, error);
+            }
+            if(amount<0 && nowbalance>0){
+                String error = "单据类型为" + detail.getRbd_slkind() + "的单据,核销金额必须为负数";
+                throw new BizException(500, error);
+            }
+        }
+        //不能选择重复的源单
+        for  ( int  i  =   0 ; i  <  recbalancedetail.size()  -   1 ; i ++ )  {
+            for  ( int  j  =  recbalancedetail.size()  -   1 ; j  >  i; j -- )  {
+                if  (recbalancedetail.get(j).getRbd_slcode().equals(recbalancedetail.get(i).getRbd_slcode()))  {
+                    throw new BizException(500, BizExceptionCode.PAYBALANCE_UNIQUESOURCECODE.getMessage());
+                }
+            }
+        }
+        //付款金额合计
+        Double amountTotal = new Double(0);
+        for (Recbalancedet det: recbalancedet) {
+            amountTotal = amountTotal + det.getRd_amount();
+        }
+        //更新本次预付款金额
+        Recbalance updatePay = new Recbalance();
+        updatePay.setId(recbalance.getId());
+        updatePay.setRb_preamount(amountTotal+recbalance.getRb_discounts()-nowbalanceTotal);
+        recbalanceMapper.updateByPrimaryKeySelective(updatePay);
+    }
+
     @Override
     @Override
     public void delete(int id) {
     public void delete(int id) {
         recbalanceMapper.deleteByPrimaryKey(id);
         recbalanceMapper.deleteByPrimaryKey(id);
@@ -142,6 +202,18 @@ public class RecbalanceServiceImpl implements RecbalanceService {
         }else {
         }else {
             recbalanceMapper.updateByPrimaryKeySelective(recbalance);
             recbalanceMapper.updateByPrimaryKeySelective(recbalance);
         }
         }
+
+        Recbalance updatePay = new Recbalance();
+        List<Recbalancedet> recbalancedet = rec.getItems1();
+        List<Recbalancedetail> recbalancedetail = rec.getItems2();
+        //更新主表付款金额:pb_pdamount=从表一金额合计
+        Double amountTotal = new Double(0);
+        for (Recbalancedet det: recbalancedet) {
+            amountTotal = amountTotal + det.getRd_amount();
+        }
+        updatePay.setId(rec.getMain().getId());
+        updatePay.setRb_rdamount(amountTotal);
+        //updateByPrimaryKeySelective
     }
     }
 
 
     @Override
     @Override

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

@@ -107,7 +107,7 @@
         from banksubledger
         from banksubledger
         where bl_id = #{bl_id,jdbcType=INTEGER}
         where bl_id = #{bl_id,jdbcType=INTEGER}
     </select>
     </select>
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
     delete from banksubledger
     delete from banksubledger
     where bl_id = #{code,jdbcType=VARCHAR} and bl_kind = #{kind, jdbcType=VARCHAR}
     where bl_id = #{code,jdbcType=VARCHAR} and bl_kind = #{kind, jdbcType=VARCHAR}
   </delete>
   </delete>

+ 9 - 0
applications/money/money-server/src/main/resources/mapper/PaybalancedetailMapper.xml

@@ -234,4 +234,13 @@
     </set>
     </set>
     where pbd_id = #{id,jdbcType=INTEGER}
     where pbd_id = #{id,jdbcType=INTEGER}
   </update>
   </update>
+  <!--<resultMap id="statistics_sourcecode" type="com.usoftchina.saas.money.po.PaybalanceSourceCode">-->
+    <!--<result column="countNum" property="countNum" jdbcType="INTEGER"></result>-->
+    <!--<result column="pbd_slcode" property="pbd_slcode" jdbcType="INTEGER"></result>-->
+  <!--</resultMap>-->
+  <!--<select id="checkPaybalanceDetailCodeUnique" resultMap="statistics_sourcecode" parameterType="java.lang.Long" >-->
+    <!--select count(1) as countNum,pbd_slcode from paybalancedetail-->
+    <!--where pbd_pbid = #{id,jdbcType=Long}-->
+    <!--GROUP BY pbd_slcode having count(1)>1-->
+  <!--</select>-->
 </mapper>
 </mapper>

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

@@ -31,7 +31,7 @@
     from subledger
     from subledger
     where sl_id = #{sl_id,jdbcType=INTEGER}
     where sl_id = #{sl_id,jdbcType=INTEGER}
   </select>
   </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
     delete from subledger
     delete from subledger
     where sl_code = #{code,jdbcType=VARCHAR} and sl_kind = #{kind, jdbcType=VARCHAR}
     where sl_code = #{code,jdbcType=VARCHAR} and sl_kind = #{kind, jdbcType=VARCHAR}
   </delete>
   </delete>

+ 2 - 1
frontend/saas-web/app.json

@@ -20,7 +20,8 @@
         "font-awesome",
         "font-awesome",
         "ux",
         "ux",
         "modern-locale",
         "modern-locale",
-        "charts"
+        "charts",
+        "font-saas"
     ],
     ],
     "locale":"zh_CN",
     "locale":"zh_CN",
 
 

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

@@ -29,7 +29,6 @@ Ext.define('saas.view.core.form.FormPanel', {
         labelAlign: 'right',
         labelAlign: 'right',
         labelWidth: 90,
         labelWidth: 90,
         columnWidth: 0.25,
         columnWidth: 0.25,
-        blankText: '该字段不能为空'
     },
     },
 
 
     items: [],
     items: [],
@@ -38,6 +37,8 @@ Ext.define('saas.view.core.form.FormPanel', {
     toolBtns: [], // 自定义按钮
     toolBtns: [], // 自定义按钮
     codeInHeader: true, // 单据编号显示在toolbar
     codeInHeader: true, // 单据编号显示在toolbar
     closeConfirm: true, // 关闭确认
     closeConfirm: true, // 关闭确认
+    invalidText: '表单校验有误,请检查', // 校验未通过提示内容
+    dirtyAuditText: '表单数据有修改,是否先保存修改?', // 有修改时点击审核提示内容
 
 
     auditTexts: {
     auditTexts: {
         auditCode: 'AUDITED',
         auditCode: 'AUDITED',

+ 8 - 8
frontend/saas-web/app/view/core/form/FormPanelController.js

@@ -57,23 +57,23 @@ Ext.define('saas.view.core.form.FormPanelController', {
 
 
         var valid = form.isValid();
         var valid = form.isValid();
         if(!valid) {
         if(!valid) {
-            showToast('表单校验有误,请检查');
+            showToast(form.invalidText);
             return false;
             return false;
         }
         }
 
 
-        //form里面数据
-        var formData = form.getFormData();
-        
-        me.save(formData);
+        me.save();
     },
     },
 
 
-    save:function(formData){
+    save:function(){
         var me = this,
         var me = this,
         form = this.getView(),
         form = this.getView(),
         detailCount = form.detailCount,
         detailCount = form.detailCount,
         viewModel = me.getViewModel(),
         viewModel = me.getViewModel(),
         modelData = viewModel.getData();
         modelData = viewModel.getData();
 
 
+        //form里面数据
+        var formData = form.getFormData();
+
         var params = {
         var params = {
             main:formData.main
             main:formData.main
         };
         };
@@ -126,7 +126,7 @@ Ext.define('saas.view.core.form.FormPanelController', {
         var dirty = form.isDirty();
         var dirty = form.isDirty();
 
 
         if(dirty) {
         if(dirty) {
-            showConfirm('提示', '表单数据有修改,是否先保存修改?')
+            showConfirm('提示', form.dirtyAuditText)
             .then(function(yes) {
             .then(function(yes) {
                 if(yes == 'yes') {
                 if(yes == 'yes') {
                     me.onSave();
                     me.onSave();
@@ -138,7 +138,7 @@ Ext.define('saas.view.core.form.FormPanelController', {
         var valid = form.isValid();
         var valid = form.isValid();
 
 
         if(!valid) {
         if(!valid) {
-            showToast('表单校验有误,请检查');
+            showToast(form.invalidText);
             return false;
             return false;
         }
         }
         
         

+ 20 - 2
frontend/saas-web/app/view/core/query/QueryGridPanel.js

@@ -126,7 +126,10 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
                 },
                 },
                 items: ['->', {
                 items: ['->', {
                     text: '新增',
                     text: '新增',
-                    handler: 'onAddClick'
+                    handler: 'onAddClick',
+                    bind: {
+                        hidden: '{!addEnable}'
+                    }
                 }, {
                 }, {
                     text: '审核',
                     text: '审核',
                     xtype: 'button',
                     xtype: 'button',
@@ -144,6 +147,9 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
                                 this.hide();
                                 this.hide();
                             } 
                             } 
                         }
                         }
+                    },
+                    bind: {
+                        hidden: '{!auditEnable}'
                     }
                     }
                 }, {
                 }, {
                     text: '打印',
                     text: '打印',
@@ -162,6 +168,9 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
                                 this.hide();
                                 this.hide();
                             } 
                             } 
                         }
                         }
+                    },
+                    bind: {
+                        hidden: '{!printEnable}'
                     }
                     }
                 }, {
                 }, {
                     text: '导入',
                     text: '导入',
@@ -180,6 +189,9 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
                                 this.hide();
                                 this.hide();
                             } 
                             } 
                         }
                         }
+                    },
+                    bind: {
+                        hidden: '{!importEnable}'
                     }
                     }
                 },{
                 },{
                     text: '关闭',
                     text: '关闭',
@@ -198,10 +210,16 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
                                 this.hide();
                                 this.hide();
                             } 
                             } 
                         }
                         }
+                    },
+                    bind: {
+                        hidden: '{!closeEnable}'
                     }
                     }
                 }, {
                 }, {
                     text: '删除',
                     text: '删除',
-                    handler: me.onDelete
+                    handler: me.onDelete,
+                    bind: {
+                        hidden: '{!deleteEnable}'
+                    }
                 }]
                 }]
             }, {
             }, {
                 xtype: 'pagingtoolbar',
                 xtype: 'pagingtoolbar',

+ 6 - 0
frontend/saas-web/app/view/core/query/QueryPanelModel.js

@@ -4,5 +4,11 @@ Ext.define('saas.view.core.query.QueryPanelModel', {
 
 
     data: {
     data: {
         form: {}, // 查询字段记录
         form: {}, // 查询字段记录
+        addEnable: true, // 显示新增按钮
+        auditEnable: true, // 显示审核按钮
+        printEnable: true, // 显示打印按钮
+        importEnable: true, // 显示导入按钮
+        closeEnable: true, // 显示关闭按钮
+        deleteEnable: true // 显示删除按钮
     }
     }
 });
 });

+ 41 - 0
frontend/saas-web/app/view/home/Home.scss

@@ -89,4 +89,45 @@ $unaudit-purc-container-color: dynamic(#e91e63);
     content: "";
     content: "";
     top: 0;
     top: 0;
     left: 0
     left: 0
+}
+
+.x-responsivecolumn {
+    padding: 0;
+}
+
+.big-100 {
+    @include responsivecolumn-item(100%);
+}
+
+.big-60 {
+    @include responsivecolumn-item(60%);
+}
+
+.big-50 {
+    @include responsivecolumn-item(50%);
+}
+
+.big-40 {
+    @include responsivecolumn-item(40%);
+}
+
+.big-33 {
+    @include responsivecolumn-item(33.33%);
+}
+
+.big-20 {
+    @include responsivecolumn-item(20%);
+}
+
+//--------------------------------------------------------
+// And classes for small-size responsive items
+
+ .x-responsivecolumn-small {
+     > .small-100 {
+         @include responsivecolumn-item(100%);
+     }
+
+     > .small-50 {
+         @include responsivecolumn-item(50%);
+     }
 }
 }

+ 0 - 1
frontend/saas-web/app/view/money/fundtransfer/FormPanel.js

@@ -165,7 +165,6 @@ Ext.define('saas.view.money.fundtransfer.FormPanel', {
                 dataIndex : "ftd_remark",
                 dataIndex : "ftd_remark",
                 width : 120.0, 
                 width : 120.0, 
                 items : null,
                 items : null,
-                flex : 1.0,
                 editor : {
                 editor : {
                     xtype : ""
                     xtype : ""
                 }
                 }

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

@@ -72,8 +72,7 @@ Ext.define('saas.view.money.fundtransfer.QueryPanel', {
         }, {
         }, {
             text: '备注',
             text: '备注',
             dataIndex: 'ft_remark',
             dataIndex: 'ft_remark',
-            width: 250,
-            flex: 1
+            width: 250
         }],
         }],
         relativeColumn: []
         relativeColumn: []
     }
     }

+ 0 - 1
frontend/saas-web/app/view/money/othspendings/QueryPanel.js

@@ -86,7 +86,6 @@ Ext.define('saas.view.money.othspendings.QueryPanel', {
             text: '备注',
             text: '备注',
             dataIndex: 'os_remark',
             dataIndex: 'os_remark',
             width: 250,
             width: 250,
-            flex: 1
         }],
         }],
         relativeColumn: []
         relativeColumn: []
     }
     }

+ 33 - 41
frontend/saas-web/app/view/money/payBalance/FormPanel.js

@@ -51,7 +51,8 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
     }, {
     }, {
         xtype: "dbfindtrigger",
         xtype: "dbfindtrigger",
         name: "pb_vendname",
         name: "pb_vendname",
-        fieldLabel: "供应商名称"
+        fieldLabel: "供应商名称",
+        allowBlank : false
     },{
     },{
         xtype:"numberfield",
         xtype:"numberfield",
         name:"ve_leftamount",
         name:"ve_leftamount",
@@ -74,11 +75,11 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
         name: "pb_pbdamount",
         name: "pb_pbdamount",
         fieldLabel: "本次核销金额"
         fieldLabel: "本次核销金额"
     }, {
     }, {
-        xtype: "hidden",
+        xtype: "numberfield",
         name: "pb_preamount",
         name: "pb_preamount",
         fieldLabel: "本次预付款"
         fieldLabel: "本次预付款"
     }, {
     }, {
-        xtype: 'hidden',
+        xtype: 'numberfield',
         name: 'pb_discounts',
         name: 'pb_discounts',
         fieldLabel: '整单折扣'
         fieldLabel: '整单折扣'
     }, {
     }, {
@@ -107,40 +108,17 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
         }, {
         }, {
             text: '结算账户ID',
             text: '结算账户ID',
             dataIndex: 'pd_bankid',
             dataIndex: 'pd_bankid',
-            xtype:'hidden'
+            hidden: true
         }, {
         }, {
-        //     text: '结算账户编号',
-        //     dataIndex: 'paybalancedet'
-        // }, {
             text: '资金账户',
             text: '资金账户',
             dataIndex: 'pd_bankname',
             dataIndex: 'pd_bankname',
-            editable:false,
             editor:{
             editor:{
-                xtype : "remotecombo",
-                storeUrl:'/api/document/bankinformation/getCombo',
-                name : "bk_bankname",
-                allowBlank : false, //不能为空
-                columnWidth : 0.25,//布局
-                hiddenBtn:false,//true 则会关闭新增按钮功能
-                addHandler:function(b){
-                    var document = Ext.create('saas.view.document.kind.Kind',{});
-                    var form = this.ownerCmp.ownerCt;
-                    this.dialog = form.getController().getView().add({
-                        xtype: 'document-kind-childwin',
-                        bind: {
-                            title: '新增资金账户'
-                        },
-                        dataKind:'bankinformation',
-                        belong:document.etc['bankinformation'],
-                        _parent:form,
-                        _combo:this.ownerCmp,
-                        record:null,
-                        session: true
-                    });
-                    this.dialog.show();
-                }
+                xtype:'dbfindtrigger'
             }
             }
-
+        },{
+            text: '资金账户编号',
+            dataIndex: 'pd_bankcode',
+            hidden: true
         }, {
         }, {
             text: "付款金额",
             text: "付款金额",
             dataIndex: "pd_amount",
             dataIndex: "pd_amount",
@@ -192,17 +170,18 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
                 xtype: 'textfield'
                 xtype: 'textfield'
             }
             }
         }]
         }]
-    }, {
-        xtype:'dbfindtrigger',
-        columnWidth: 1,
-        fieldLabel:'选择源单',
-        name: 'choseSource'
     },{
     },{
         xtype: "detailGridField",
         xtype: "detailGridField",
         storeModel: 'saas.model.money.PayBalance2',
         storeModel: 'saas.model.money.PayBalance2',
         detnoColumn: 'pbd_detno',
         detnoColumn: 'pbd_detno',
         allowEmpty: true,
         allowEmpty: true,
         deleteDetailUrl: '/api/money/paybalance/deleteDetail2/',
         deleteDetailUrl: '/api/money/paybalance/deleteDetail2/',
+        tbar: ['->', {
+            xtype:'dbfindtrigger',
+            columnWidth: 1,
+            fieldLabel:'选择源单',
+            name: 'choseSource'
+        }],
         columns: [{
         columns: [{
             text: 'ID',
             text: 'ID',
             dataIndex: 'id',
             dataIndex: 'id',
@@ -210,14 +189,27 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
         }, {
         }, {
             text: '期间',
             text: '期间',
             dataIndex: 'pbd_ym',
             dataIndex: 'pbd_ym',
-            xtype:'hidden'
+            hidden: true
         }, {
         }, {
             text: '来源ID',
             text: '来源ID',
             dataIndex: 'pbd_slid',
             dataIndex: 'pbd_slid',
-            xtype:'hidden'
+            hidden: true
         }, {
         }, {
             text: '来源单号',
             text: '来源单号',
-            dataIndex: 'pbd_slcode'
+            dataIndex: 'pbd_slcode',
+            editor:{
+                displayField : "display",
+                editable : true,
+                format : "",
+                hideTrigger : false,
+                maxLength : 100.0,
+                minValue : null,
+                positiveNum : false,
+                queryMode : "local",
+                store : null,
+                valueField : "value",
+                xtype : "multidbfindtrigger"
+            }
         }, {
         }, {
             text: "业务类型",
             text: "业务类型",
             dataIndex: "pbd_slkind",
             dataIndex: "pbd_slkind",
@@ -321,7 +313,7 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
             text: '备注',
             text: '备注',
             dataIndex: 'pbd_remark',
             dataIndex: 'pbd_remark',
             width: 250,
             width: 250,
-            xtype: 'hidden'
+            hidden: true
         }]
         }]
     }, {
     }, {
         xtype: 'hidden',
         xtype: 'hidden',

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

@@ -14,7 +14,7 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
                         addTitle: '供应商资料',
                         addTitle: '供应商资料',
                         dbfinds: [{
                         dbfinds: [{
                             from: 've_code',
                             from: 've_code',
-                            to: 'pd_vendcode'
+                            to: 'pb_vendcode'
                         }, {
                         }, {
                             from: 've_name',
                             from: 've_name',
                             to: 'pb_vendname'
                             to: 'pb_vendname'
@@ -87,7 +87,7 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
 
 
                 }
                 }
             },
             },
-            'dbfindtrigger[name=choseSource]': {
+            'multidbfindtrigger[name=pbd_slcode]': {
                 beforerender: function (f) {
                 beforerender: function (f) {
                     Ext.apply(f, {
                     Ext.apply(f, {
                         dataUrl: '/api/money/subledger/list',
                         dataUrl: '/api/money/subledger/list',
@@ -112,7 +112,7 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
                             field: 'sl_code',
                             field: 'sl_code',
                             width: 100
                             width: 100
                         }],
                         }],
-                        defaultCondition: "sl_vendtid<>0 and sl_kind in ('期初余额','采购验收单','采购验退单') and sl_namount<>0",
+                        defaultCondition: "sl_vendid<>0 and sl_kind in ('期初余额','采购验收单','采购验退单') and sl_namount<>0",
                         dbSearchFields:[{
                         dbSearchFields:[{
                             emptyText:'输入源单编号',
                             emptyText:'输入源单编号',
                             xtype : "textfield",
                             xtype : "textfield",
@@ -153,6 +153,61 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
                         }]
                         }]
                     });
                     });
 
 
+                }
+            },
+            'dbfindtrigger[name=pd_bankname]':{
+                beforerender: function (f) {
+                    Ext.apply(f, {
+                        dataUrl: '/api/document/bankinformation/list',
+                        // addXtype: 'document-banksubledger-formpanel',
+                        addTitle: '账户资料',
+                        dbfinds: [{
+                            from: 'id',
+                            to: 'pd_bankid'
+                        }, {
+                            from: 'bk_bankcode',
+                            to: 'pd_bankcode'
+                        },{
+                            from: 'bk_bankname',
+                            to: 'pd_bankname'
+                        }],
+                        dbtpls: [{
+                            field: 'bk_bankcode',
+                            width: 100
+                        }, {
+                            field: 'bk_bankname',
+                            width: 100
+                        }],
+                        defaultCondition: "1=1",
+                        dbSearchFields:[{
+                            emptyText:'输入账户名称或者编号',
+                            xtype : "textfield",
+                            name : "search",
+                            getCondition: function(v) {
+                                return "(upper(bk_bankcode) like '%"+v.toUpperCase()+"%' or upper(bk_bankname) like '%"+v.toUpperCase()+"%')";
+                            },
+                            allowBlank : true,
+                            columnWidth : 0.25
+                        }],
+                        dbColumns:[{
+                            "text": "账户id",
+                            "hidden": true,
+                            "dataIndex": "id",
+                            "width": 0,
+                            "xtype": "numbercolumn"
+                        },{
+                            "text": "账户编号",
+                            "flex": 1,
+                            "dataIndex": "bk_bankcode",
+                            "width": 100
+                        }, {
+                            "text": "账户名称",
+                            "flex": 1,
+                            "dataIndex": "bk_bankname",
+                            "width": 100
+                        }]
+                    });
+
                 }
                 }
             }
             }
         });
         });
@@ -201,5 +256,38 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
             console.error(res);
             console.error(res);
             showToast('转单失败: ' + res.message);
             showToast('转单失败: ' + res.message);
         });
         });
-     }
+     },
+
+     onSave: function() {
+        var me = this,
+        form = me.getView(),
+        viewModel = me.getViewModel(),
+        store1 = viewModel.get('detail0').detailStore,
+        store2 = viewModel.get('detail1').detailStore;
+
+        var valid = form.isValid();
+        if(!valid) {
+            showToast(form.invalidText);
+            return false;
+        }
+
+        var sum_pd_amount = store1.sum('pd_amount'); // 付款金额合计
+        var pb_discounts = viewModel.get('pb_discounts'); // 折扣金额
+        var sum_pbd_nowbalance = store2.sum('pbd_nowbalance'); // 本次核销金额合计
+
+        var flag = sum_pd_amount + pb_discounts - sum_pbd_nowbalance;
+
+        if(flag != 0) {
+            var t = flag > 0 ? '大' : '小';
+
+            showConfirm('提示', '付款金额' + t + '于本次折扣后核销金额,是否仍要保存?')
+            .then(function(y) {
+                if(y == 'yes') {
+                    me.save();
+                }
+            });
+        }else {
+            me.save();
+        }
+    },
 });
 });

+ 22 - 31
frontend/saas-web/app/view/money/recBalance/FormPanel.js

@@ -111,32 +111,9 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
             hidden: true
             hidden: true
         }, {
         }, {
             text: '资金账户',
             text: '资金账户',
-            dataIndex: 'pd_bankname',
-            editable:false,
+            dataIndex: 'rd_bankname',
             editor:{
             editor:{
-                xtype : "remotecombo",
-                storeUrl:'/api/document/bankinformation/getCombo',
-                name : "bk_bankname",
-                allowBlank : false, //不能为空
-                columnWidth : 0.25,//布局
-                hiddenBtn:false,//true 则会关闭新增按钮功能
-                addHandler:function(b){
-                    var document = Ext.create('saas.view.document.kind.Kind',{});
-                    var form = this.ownerCmp.ownerCt;
-                    this.dialog = form.getController().getView().add({
-                        xtype: 'document-kind-childwin',
-                        bind: {
-                            title: '新增资金账户'
-                        },
-                        dataKind:'bankinformation',
-                        belong:document.etc['bankinformation'],
-                        _parent:form,
-                        _combo:this.ownerCmp,
-                        record:null,
-                        session: true
-                    });
-                    this.dialog.show();
-                }
+                xtype:'dbfindtrigger'
             }
             }
         }, {
         }, {
             text: "收款金额",
             text: "收款金额",
@@ -189,16 +166,17 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
                 xtype: 'textfield'
                 xtype: 'textfield'
             }
             }
         }]
         }]
-    },{
-        xtype:'dbfindtrigger',
-        columnWidth: 1,
-        fieldLabel:'选择源单',
-        name: 'choseSource'
     },{
     },{
         xtype: "detailGridField",
         xtype: "detailGridField",
         storeModel: 'saas.model.money.RecBalance2',
         storeModel: 'saas.model.money.RecBalance2',
         detnoColumn: 'rbd_detno',
         detnoColumn: 'rbd_detno',
         deleteDetailUrl: '/api/money/recbalance/deleteDetail2/',
         deleteDetailUrl: '/api/money/recbalance/deleteDetail2/',
+        tbar: ['->', {
+            xtype:'dbfindtrigger',
+            columnWidth: 1,
+            fieldLabel:'选择源单',
+            name: 'choseSource'
+        }],
         columns: [{
         columns: [{
             text: 'ID',
             text: 'ID',
             dataIndex: 'id',
             dataIndex: 'id',
@@ -219,7 +197,20 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
             hidden: true
             hidden: true
         }, {
         }, {
             text: '来源单号',
             text: '来源单号',
-            dataIndex: 'rbd_slcode'
+            dataIndex: 'rbd_slcode',
+            editor:{
+                displayField : "display",
+                editable : true,
+                format : "",
+                hideTrigger : false,
+                maxLength : 100.0,
+                minValue : null,
+                positiveNum : false,
+                queryMode : "local",
+                store : null,
+                valueField : "value",
+                xtype : "multidbfindtrigger"
+            }
         }, {
         }, {
             text: "业务类型",
             text: "业务类型",
             dataIndex: "rbd_slkind"
             dataIndex: "rbd_slkind"

+ 57 - 2
frontend/saas-web/app/view/money/recBalance/FormPanelController.js

@@ -154,7 +154,7 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
 
 
                 }
                 }
             },
             },
-            'dbfindtrigger[name=choseSource]': {
+            'multidbfindtrigger[name=rbd_slcode]': {
                 beforerender: function (f) {
                 beforerender: function (f) {
                     Ext.apply(f, {
                     Ext.apply(f, {
                         dataUrl: '/api/money/subledger/list',
                         dataUrl: '/api/money/subledger/list',
@@ -179,7 +179,7 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
                             field: 'sl_code',
                             field: 'sl_code',
                             width: 100
                             width: 100
                         }],
                         }],
-                        defaultCondition: "sl_vendtid<>0 and sl_kind in ('期初余额','采购验收单','采购验退单') and sl_namount<>0",
+                        defaultCondition: "sl_vendid<>0 and sl_kind in ('期初余额','采购验收单','采购验退单') and sl_namount<>0",
                         dbSearchFields:[{
                         dbSearchFields:[{
                             emptyText:'输入源单编号',
                             emptyText:'输入源单编号',
                             xtype : "textfield",
                             xtype : "textfield",
@@ -220,6 +220,61 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
                         }]
                         }]
                     });
                     });
 
 
+                }
+            },
+            'dbfindtrigger[name=rd_bankname]':{
+                beforerender: function (f) {
+                    Ext.apply(f, {
+                        dataUrl: '/api/document/bankinformation/list',
+                        // addXtype: 'document-banksubledger-formpanel',
+                        addTitle: '账户资料',
+                        dbfinds: [{
+                            from: 'id',
+                            to: 'rd_bankid'
+                        }, {
+                            from: 'bk_bankcode',
+                            to: 'rd_bankcode'
+                        },{
+                            from: 'bk_bankname',
+                            to: 'rd_bankname'
+                        }],
+                        dbtpls: [{
+                            field: 'bk_bankcode',
+                            width: 100
+                        }, {
+                            field: 'bk_bankname',
+                            width: 100
+                        }],
+                        defaultCondition: "1=1",
+                        dbSearchFields:[{
+                            emptyText:'输入账户名称或者编号',
+                            xtype : "textfield",
+                            name : "search",
+                            getCondition: function(v) {
+                                return "(upper(bk_bankcode) like '%"+v.toUpperCase()+"%' or upper(bk_bankname) like '%"+v.toUpperCase()+"%')";
+                            },
+                            allowBlank : true,
+                            columnWidth : 0.25
+                        }],
+                        dbColumns:[{
+                            "text": "账户id",
+                            "hidden": true,
+                            "dataIndex": "id",
+                            "width": 0,
+                            "xtype": "numbercolumn"
+                        },{
+                            "text": "账户编号",
+                            "flex": 1,
+                            "dataIndex": "bk_bankcode",
+                            "width": 100
+                        }, {
+                            "text": "账户名称",
+                            "flex": 1,
+                            "dataIndex": "bk_bankname",
+                            "width": 100
+                        }]
+                    });
+
                 }
                 }
             }
             }
         });
         });

+ 0 - 1
frontend/saas-web/app/view/money/recBalance/QueryPanel.js

@@ -70,7 +70,6 @@ Ext.define('saas.view.money.recBalance.QueryPanel', {
             dataIndex: 'rb_rdamount',
             dataIndex: 'rb_rdamount',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
             width: 120,
             width: 120,
-            flex: 1,
             hidden: true
             hidden: true
         }]
         }]
     }
     }

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

@@ -73,7 +73,8 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
         datas: [
         datas: [
             ["TURNIN", "已入库"],
             ["TURNIN", "已入库"],
             ["UNTURNIN", "未入库"],
             ["UNTURNIN", "未入库"],
-            ["PARTIN", "部分入库"]
+            ["PART2IN", "部分入库"],
+            ["CLOSE", "已关闭"]
         ]
         ]
     }],
     }],
     moreQueryFormItems: [{
     moreQueryFormItems: [{

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

@@ -1,5 +1,4 @@
 Ext.define('saas.view.purchase.purchase.QueryPanelModel', {
 Ext.define('saas.view.purchase.purchase.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
     extend: 'saas.view.core.query.QueryPanelModel',
     alias: 'viewmodel.purchase-purchase-querypanel'
     alias: 'viewmodel.purchase-purchase-querypanel'
-
 });
 });

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

@@ -110,6 +110,8 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanelController', {
                             from:'pr_whcode',to:'pd_whcode'
                             from:'pr_whcode',to:'pd_whcode'
                         },{
                         },{
                             from:'pr_whname',to:'pd_whname'
                             from:'pr_whname',to:'pd_whname'
+                        },{
+                            from:'pr_purcprice',to:'pd_orderprice'
                         }],
                         }],
                         dbtpls:[{
                         dbtpls:[{
                             field:'pr_code',width:100
                             field:'pr_code',width:100

+ 4 - 2
frontend/saas-web/app/view/purchase/purchaseIn/QueryPanelModel.js

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

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

@@ -109,6 +109,8 @@ Ext.define('saas.view.purchase.purchaseOut.FormPanelController', {
                             from:'pr_whcode',to:'pd_whcode'
                             from:'pr_whcode',to:'pd_whcode'
                         },{
                         },{
                             from:'pr_whname',to:'pd_whname'
                             from:'pr_whname',to:'pd_whname'
+                        },,{
+                            from:'pr_purcprice',to:'pd_orderprice'
                         }],
                         }],
                         dbtpls:[{
                         dbtpls:[{
                             field:'pr_code',width:100
                             field:'pr_code',width:100

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

@@ -208,7 +208,6 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
             dataIndex: 'pd_price',
             dataIndex: 'pd_price',
             xtype:'numbercolumn',
             xtype:'numbercolumn',
             width: 120,
             width: 120,
-            flex: 1
         }]
         }]
     }
     }
 });
 });

+ 4 - 1
frontend/saas-web/app/view/purchase/purchaseOut/QueryPanelModel.js

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

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

@@ -115,7 +115,7 @@ Ext.define('saas.view.sale.sale.FormPanel', {
                 allowBlank:false, 
                 allowBlank:false, 
                 editor : {
                 editor : {
                     xtype : "numberfield",
                     xtype : "numberfield",
-                    decimalPrecision: 8,
+                    decimalPrecision: 3,
                     minValue:0
                     minValue:0
                 },
                 },
                 renderer : function(v) {
                 renderer : function(v) {

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

@@ -118,8 +118,7 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
         }, {
         }, {
             text: '备注',
             text: '备注',
             dataIndex: 'pi_remark',
             dataIndex: 'pi_remark',
-            width: 250,
-            flex:1
+            width: 250
         }],
         }],
         relativeColumn: [{
         relativeColumn: [{
             text: 'id',
             text: 'id',
@@ -184,8 +183,7 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
         }, {
         }, {
             text: '备注',
             text: '备注',
             dataIndex: 'pd_remark',
             dataIndex: 'pd_remark',
-            width: 250,
-            flex:1
+            width: 250
         }]
         }]
     }
     }
 });
 });

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

@@ -185,8 +185,7 @@ Ext.define('saas.view.sale.saleout.QueryPanel', {
         }, {
         }, {
             text: '备注',
             text: '备注',
             dataIndex: 'pd_remark',
             dataIndex: 'pd_remark',
-            width: 250,
-            flex:1
+            width: 250
         }]
         }]
     }
     }
 });
 });

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

@@ -149,7 +149,6 @@ Ext.define('saas.view.stock.appropriationInOut.QueryPanel', {
             dataIndex: 'pi_nettotal',
             dataIndex: 'pi_nettotal',
             xtype:'numbercolumn',
             xtype:'numbercolumn',
             width: 120,
             width: 120,
-            flex: 1
         }],
         }],
         relativeColumn: [{
         relativeColumn: [{
             text: 'id',
             text: 'id',
@@ -211,7 +210,6 @@ Ext.define('saas.view.stock.appropriationInOut.QueryPanel', {
             dataIndex: 'pd_price',
             dataIndex: 'pd_price',
             xtype:'numbercolumn',
             xtype:'numbercolumn',
             width: 120,
             width: 120,
-            flex: 1
         }]
         }]
     }
     }
 });
 });

+ 4 - 1
frontend/saas-web/app/view/stock/appropriationInOut/QueryPanelModel.js

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

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

@@ -287,8 +287,8 @@ Ext.define('saas.view.stock.make.FormPanel', {
     },{
     },{
         xtype : "datefield", 
         xtype : "datefield", 
         name : "createTime", 
         name : "createTime", 
-        fieldLabel : "录入日期", 
-        allowBlank : true, 
+        fieldLabel : "录入日期",
+        readOnly:true,
         columnWidth : 0.25
         columnWidth : 0.25
     },{
     },{
         xtype : "textfield", 
         xtype : "textfield", 

+ 1 - 5
frontend/saas-web/app/view/stock/make/QueryPanel.js

@@ -43,7 +43,7 @@ Ext.define('saas.view.stock.make.QueryPanel', {
         baseColumn: [{
         baseColumn: [{
             text: 'id',
             text: 'id',
             dataIndex: 'id',
             dataIndex: 'id',
-            width: 100,
+            hidden:true,
             xtype: 'numbercolumn'
             xtype: 'numbercolumn'
         }, {
         }, {
             text: '单据编号',
             text: '单据编号',
@@ -70,23 +70,19 @@ Ext.define('saas.view.stock.make.QueryPanel', {
             dataIndex: 'ma_qty',
             dataIndex: 'ma_qty',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
             width: 120,
             width: 120,
-            flex: 1
         },{
         },{
             text: '单位',
             text: '单位',
             dataIndex: 'ma_produnit',
             dataIndex: 'ma_produnit',
             width: 120,
             width: 120,
-            flex: 1
         },{
         },{
             text: '单位成本',
             text: '单位成本',
             dataIndex: 'ma_total',
             dataIndex: 'ma_total',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
             width: 120,
             width: 120,
-            flex: 1
         },{
         },{
             text: '状态',
             text: '状态',
             dataIndex: 'ma_status',
             dataIndex: 'ma_status',
             width: 120,
             width: 120,
-            flex: 1
         }],
         }],
         relativeColumn: []
         relativeColumn: []
     }
     }

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

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

+ 2 - 0
frontend/saas-web/app/view/stock/otherIn/FormPanelController.js

@@ -181,6 +181,8 @@ Ext.define('saas.view.stock.otherIn.FormPanelController', {
                             from:'pr_whcode',to:'pd_whcode'
                             from:'pr_whcode',to:'pd_whcode'
                         },{
                         },{
                             from:'pr_whname',to:'pd_whname'
                             from:'pr_whname',to:'pd_whname'
+                        },,{
+                            from:'pr_purcprice',to:'pd_orderprice'
                         }],
                         }],
                         dbtpls: [{
                         dbtpls: [{
                             field: 'pr_code',
                             field: 'pr_code',

+ 0 - 1
frontend/saas-web/app/view/stock/otherIn/QueryPanel.js

@@ -208,7 +208,6 @@ Ext.define('saas.view.stock.otherIn.QueryPanel', {
             dataIndex: 'pd_price',
             dataIndex: 'pd_price',
             xtype:'numbercolumn',
             xtype:'numbercolumn',
             width: 120,
             width: 120,
-            flex: 1
         }]
         }]
     }
     }
 });
 });

+ 4 - 1
frontend/saas-web/app/view/stock/otherIn/QueryPanelModel.js

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

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

@@ -172,6 +172,8 @@ Ext.define('saas.view.stock.otherOut.FormPanelController', {
                             from:'pr_whcode',to:'pd_whcode'
                             from:'pr_whcode',to:'pd_whcode'
                         },{
                         },{
                             from:'pr_whname',to:'pd_whname'
                             from:'pr_whname',to:'pd_whname'
+                        },,{
+                            from:'pr_purcprice',to:'pd_orderprice'
                         }],
                         }],
                         dbtpls:[{
                         dbtpls:[{
                             field:'pr_code',width:100
                             field:'pr_code',width:100

+ 0 - 1
frontend/saas-web/app/view/stock/otherOut/QueryPanel.js

@@ -208,7 +208,6 @@ Ext.define('saas.view.stock.otherOut.QueryPanel', {
             dataIndex: 'pd_price',
             dataIndex: 'pd_price',
             xtype:'numbercolumn',
             xtype:'numbercolumn',
             width: 120,
             width: 120,
-            flex: 1
         }]
         }]
     }
     }
 });
 });

+ 4 - 1
frontend/saas-web/app/view/stock/otherOut/QueryPanelModel.js

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

+ 1 - 0
frontend/saas-web/packages/font-saas/Readme.md

@@ -0,0 +1 @@
+# font-saas

+ 37 - 0
frontend/saas-web/packages/font-saas/build.xml

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="font-ios" default=".help">
+    <!--
+    The build-impl.xml file imported here contains the guts of the build process. It is
+    a great idea to read that file to understand how the process works, but it is best to
+    limit your changes to this file.
+    -->
+    <import file="${basedir}/.sencha/package/build-impl.xml"/>
+
+    <!--
+    The following targets can be provided to inject logic before and/or after key steps
+    of the build process:
+
+        The "init-local" target is used to initialize properties that may be personalized
+        for the local machine.
+
+            <target name="-before-init-local"/>
+            <target name="-after-init-local"/>
+
+        The "clean" target is used to clean build output from the build.dir.
+
+            <target name="-before-clean"/>
+            <target name="-after-clean"/>
+
+        The general "init" target is used to initialize all other properties, including
+        those provided by Sencha Cmd.
+
+            <target name="-before-init"/>
+            <target name="-after-init"/>
+        
+        The "build" target performs the call to Sencha Cmd to build the application.
+
+            <target name="-before-build"/>
+            <target name="-after-build"/>
+    -->
+
+</project>

+ 2 - 0
frontend/saas-web/packages/font-saas/index.js

@@ -0,0 +1,2 @@
+// This file was intentionally left blank.
+// This file is used by require.resolve to property locate this module.

+ 32 - 0
frontend/saas-web/packages/font-saas/package.json

@@ -0,0 +1,32 @@
+{
+    "name": "@extjs/ext-font-saas",
+    "ext-react-name": "@extjs/ext-react-font-saas",
+    "ext-name": "@extjs/ext-font-saas",
+    "SenchaExtName": "@sencha/ext-font-saas",
+    "SenchaExtReactName": "@sencha/ext-react-font-saas",
+    "version": "6.6.0.258",
+    "sencha": {
+        "name": "font-saas",
+        "namespace": "Ext",
+        "type": "code",
+        "creator": "Sencha",
+        "summary": "saas iconfont",
+        "detailedDescription": "Saas iconfont from http://www.iconfont.cn/",
+        "version": "6.6.0.258",
+        "compatVersion": "6.2.0",
+        "format": "1",
+        "output": "${framework.dir}/build/packages/${package.name}",
+        "local": true,
+        "sass" : {
+            "namespace": "Ext",
+            "etc": "${package.dir}/sass/etc/all.scss",
+            "var": "${package.dir}/sass/var",
+            "src": [
+                "${package.dir}/sass/src",
+                "${package.dir}/sass/src/all.scss"
+            ]
+        },
+        "classpath": "${package.dir}/src",
+        "overrides": "${package.dir}/overrides"
+    }
+}

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
+ 22 - 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


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

@@ -0,0 +1,14 @@
+
+.sa-purchase:before { content: "\e613"; }
+
+.sa-document:before { content: "\e654"; }
+
+.sa-edit:before { content: "\e6ec"; }
+
+.sa-sale:before { content: "\e638"; }
+
+.sa-warehouse:before { content: "\e63c"; }
+
+.sa-setting:before { content: "\e64b"; }
+
+.sa-money:before { content: "\e6fa"; }

File diff suppressed because it is too large
+ 6 - 0
frontend/saas-web/packages/font-saas/sass/src/all.scss


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

@@ -256,7 +256,7 @@
     }]
     }]
 },{
 },{
     "text": "设置",
     "text": "设置",
-    "iconCls": "x-fa fa-cog",
+    "iconCls": "x-sa sa-setting",
     "items": [{
     "items": [{
         "text": "系统设置",
         "text": "系统设置",
         "items": [{
         "items": [{

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