Browse Source

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

guq 7 years ago
parent
commit
68b0aa01e1

+ 2 - 0
applications/document/document-dto/src/main/java/com.usoftchina.saas.document.dto/CustomerDTO.java

@@ -61,4 +61,6 @@ public class CustomerDTO extends CommonBaseDTO implements Serializable {
     private Double cu_leftamount;
     private Double cu_leftamount;
 
 
     private Double cu_recamount;
     private Double cu_recamount;
+
+    private Double cu_preamount;
 }
 }

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

@@ -127,7 +127,9 @@ public class CustomerServiceImpl extends CommonBaseServiceImpl<CustomerMapper, C
         //应付款余额
         //应付款余额
         Double beginapamount = main.getCu_beginaramount()==null?new Double(0):main.getCu_beginaramount();
         Double beginapamount = main.getCu_beginaramount()==null?new Double(0):main.getCu_beginaramount();
         Double beginprepayamount = main.getCu_beginprerecamount()==null?new Double(0):main.getCu_beginprerecamount();
         Double beginprepayamount = main.getCu_beginprerecamount()==null?new Double(0):main.getCu_beginprerecamount();
-        customer.setCu_leftamount(beginapamount-beginprepayamount);
+        Double recamount = main.getCu_recamount()==null? new Double(0):main.getCu_recamount();
+        Double preamount = main.getCu_preamount()==null? new Double(0):main.getCu_preamount();
+        customer.setCu_leftamount(beginapamount-beginprepayamount+recamount-preamount);
 
 
         //编号校验
         //编号校验
         cu_code = pushMaxnubmer(cu_code, cu_id);
         cu_code = pushMaxnubmer(cu_code, cu_id);

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

@@ -124,7 +124,9 @@ public class VendorServiceImpl extends CommonBaseServiceImpl<VendorMapper, Vendo
             //更新应付款余额
             //更新应付款余额
             Double beginapamount = main.getVe_beginapamount()==null ? new Double(0):main.getVe_beginapamount();
             Double beginapamount = main.getVe_beginapamount()==null ? new Double(0):main.getVe_beginapamount();
             Double beginprepayamount = main.getVe_beginprepayamount()==null ? new Double(0):main.getVe_beginprepayamount();
             Double beginprepayamount = main.getVe_beginprepayamount()==null ? new Double(0):main.getVe_beginprepayamount();
-            main.setVe_leftamount(beginapamount-beginprepayamount);
+            Double payamount = main.getVe_payamount()==null? new Double(0):main.getVe_payamount();
+            Double preamount = main.getVe_preamount()==null? new Double(0):main.getVe_preamount();
+            main.setVe_leftamount(beginapamount-beginprepayamount+payamount-preamount);
             getMapper().insertSelective(main);
             getMapper().insertSelective(main);
             Long mainId = main.getId();
             Long mainId = main.getId();
             //更新明细表vc_veid
             //更新明细表vc_veid

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

@@ -31,6 +31,7 @@
     <result column="cu_text5" jdbcType="VARCHAR" property="cu_text5" />
     <result column="cu_text5" jdbcType="VARCHAR" property="cu_text5" />
     <result column="cu_leftamount" jdbcType="DOUBLE" property="cu_leftamount" />
     <result column="cu_leftamount" jdbcType="DOUBLE" property="cu_leftamount" />
     <result column="cu_recamount" jdbcType="DOUBLE" property="cu_recamount" />
     <result column="cu_recamount" jdbcType="DOUBLE" property="cu_recamount" />
+    <result column="cu_preamount" jdbcType="DOUBLE" property="cu_preamount" />
   </resultMap>
   </resultMap>
   <sql id="Base_Column_List">
   <sql id="Base_Column_List">
     cu_id, cu_code, cu_name, cu_uu, cu_type, cu_begindate, cu_beginaramount, cu_beginprerecamount, 
     cu_id, cu_code, cu_name, cu_uu, cu_type, cu_begindate, cu_beginaramount, cu_beginprerecamount, 

+ 83 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Paybalance.java

@@ -63,6 +63,25 @@ public class Paybalance extends CommonBaseEntity implements Serializable {
 
 
     private Double ve_leftamount;
     private Double ve_leftamount;
 
 
+    private String pd_bankname;
+
+    private String pd_paymethod;
+
+    private String pd_paycode;
+
+    private String pd_remark;
+
+    private String pbd_slcode;
+
+    private String pbd_slkind;
+
+    private Date pbd_sldate;
+
+    private Double pbd_amount;
+
+    private Double pbd_nowbalance;
+
+
     public Date getUpdatedate() {
     public Date getUpdatedate() {
         return updatedate;
         return updatedate;
     }
     }
@@ -262,4 +281,68 @@ public class Paybalance extends CommonBaseEntity implements Serializable {
     public void setVe_leftamount(Double ve_leftamount) {
     public void setVe_leftamount(Double ve_leftamount) {
         this.ve_leftamount = ve_leftamount;
         this.ve_leftamount = ve_leftamount;
     }
     }
+
+    public String getPd_bankname() {
+        return pd_bankname;
+    }
+
+    public void setPd_bankname(String pd_bankname) {
+        this.pd_bankname = pd_bankname;
+    }
+
+    public String getPbd_slcode() {
+        return pbd_slcode;
+    }
+
+    public void setPbd_slcode(String pbd_slcode) {
+        this.pbd_slcode = pbd_slcode;
+    }
+
+    public String getPbd_slkind() {
+        return pbd_slkind;
+    }
+
+    public void setPbd_slkind(String pbd_slkind) {
+        this.pbd_slkind = pbd_slkind;
+    }
+
+    public Date getPbd_sldate() {
+        return pbd_sldate;
+    }
+
+    public void setPbd_sldate(Date pbd_sldate) {
+        this.pbd_sldate = pbd_sldate;
+    }
+
+    public Double getPbd_amount() {
+        return pbd_amount;
+    }
+
+    public void setPbd_amount(Double pbd_amount) {
+        this.pbd_amount = pbd_amount;
+    }
+
+    public Double getPbd_nowbalance() {
+        return pbd_nowbalance;
+    }
+
+    public void setPbd_nowbalance(Double pbd_nowbalance) {
+        this.pbd_nowbalance = pbd_nowbalance;
+    }
+
+    public String getPd_paymethod() {
+        return pd_paymethod;
+    }
+
+    public void setPd_paymethod(String pd_paymethod) {
+        this.pd_paymethod = pd_paymethod;
+    }
+
+    public String getPd_remark() {
+        return pd_remark;
+    }
+
+    public void setPd_remark(String pd_remark) {
+        this.pd_remark = pd_remark;
+    }
 }
 }

+ 21 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Recbalance.java

@@ -63,6 +63,27 @@ public class Recbalance extends CommonBaseEntity implements Serializable {
 
 
     private Double cu_leftamount;
     private Double cu_leftamount;
 
 
+    private String rd_bankname;
+
+    private String rd_paymethod;
+
+    private String rd_paycode;
+
+    private String rd_remark;
+
+    private String rbd_slcode;
+
+    private String rbd_slkind;
+
+    private Date rbd_sldate;
+
+    private Double rbd_amount;
+
+    private Double rbd_nowbalance;
+
+
+
+
     public Date getUpdatedate() {
     public Date getUpdatedate() {
         return updatedate;
         return updatedate;
     }
     }

+ 21 - 5
applications/money/money-server/src/main/resources/mapper/PaybalanceMapper.xml

@@ -30,6 +30,15 @@
     <result column="pb_text4" jdbcType="VARCHAR" property="pb_text4" />
     <result column="pb_text4" jdbcType="VARCHAR" property="pb_text4" />
     <result column="pb_text5" jdbcType="VARCHAR" property="pb_text5" />
     <result column="pb_text5" jdbcType="VARCHAR" property="pb_text5" />
     <result column="ve_leftamount" jdbcType="DOUBLE" property="ve_leftamount" />
     <result column="ve_leftamount" jdbcType="DOUBLE" property="ve_leftamount" />
+    <result column="pd_bankname" jdbcType="VARCHAR" property="pd_bankname" />
+    <result column="pd_paymethod" jdbcType="VARCHAR" property="pd_paymethod" />
+    <result column="pd_paycode" jdbcType="VARCHAR" property="pd_paycode" />
+    <result column="pd_remark" jdbcType="VARCHAR" property="pd_remark" />
+    <result column="pbd_slcode" jdbcType="VARCHAR" property="pbd_slcode" />
+    <result column="pbd_slkind" jdbcType="VARCHAR" property="pbd_slkind" />
+    <result column="pbd_sldate" jdbcType="TIMESTAMP" property="pbd_sldate" />
+    <result column="pbd_amount" jdbcType="DOUBLE" property="pbd_amount" />
+    <result column="pbd_nowbalance" jdbcType="DOUBLE" property="pbd_nowbalance" />
   </resultMap>
   </resultMap>
   <sql id="Example_Where_Clause">
   <sql id="Example_Where_Clause">
     <where>
     <where>
@@ -98,6 +107,10 @@
   <sql id="left_Column_List">
   <sql id="left_Column_List">
     ve_leftamount
     ve_leftamount
   </sql>
   </sql>
+  <sql id="detail_Column_List">
+    pd_bankname,pd_amount,pd_paymethod,pd_remark,pbd_slcode,pbd_slkind,
+    pbd_sldate,pbd_amount,pbd_nowbalance
+  </sql>
   <select id="selectList" resultMap="BaseResultMap">
   <select id="selectList" resultMap="BaseResultMap">
     select
     select
     <include refid="Base_Column_List" />
     <include refid="Base_Column_List" />
@@ -419,8 +432,10 @@
 
 
   <select id="selectPaybalanceBycondition" resultMap="BaseResultMap">
   <select id="selectPaybalanceBycondition" resultMap="BaseResultMap">
     select
     select
-    <include refid="Base_Column_List" />
-    from Paybalance
+    <include refid="Base_Column_List" />,
+    <include refid="detail_Column_List" />
+    from paybalance left join paybalancedet on pd_pbid=pb_id and paybalance.companyId=paybalancedet.companyId
+    left join paybalancedetail on pbd_pbid=pb_id and paybalancedetail.companyId=paybalance.companyId
     <where>
     <where>
       <if test="con != null">
       <if test="con != null">
         ${con}
         ${con}
@@ -433,9 +448,10 @@
 
 
   <select id="selectPaybalanceListByCondition" resultMap="BaseResultMap">
   <select id="selectPaybalanceListByCondition" resultMap="BaseResultMap">
   select
   select
-  <include refid="Base_Column_List" />
-  from paybalance
-    left join paybalancedet on pb_id=pd_pbid left join paybalancedetail on pb_id=pbd_rbid
+    <include refid="Base_Column_List" />,
+    <include refid="detail_Column_List" />
+    from paybalance left join paybalancedet on pd_pbid=pb_id and paybalance.companyId=paybalancedet.companyId
+    left join paybalancedetail on pbd_pbid=pb_id and paybalancedetail.companyId=paybalance.companyId
     <where>
     <where>
       <if test="con != null">
       <if test="con != null">
         ${con}
         ${con}

+ 22 - 5
applications/money/money-server/src/main/resources/mapper/RecbalanceMapper.xml

@@ -30,6 +30,15 @@
     <result column="rb_text4" jdbcType="VARCHAR" property="rb_text4" />
     <result column="rb_text4" jdbcType="VARCHAR" property="rb_text4" />
     <result column="rb_text5" jdbcType="VARCHAR" property="rb_text5" />
     <result column="rb_text5" jdbcType="VARCHAR" property="rb_text5" />
     <result column="cu_leftamount" jdbcType="DOUBLE" property="cu_leftamount" />
     <result column="cu_leftamount" jdbcType="DOUBLE" property="cu_leftamount" />
+    <result column="rd_bankname" jdbcType="VARCHAR" property="rd_bankname" />
+    <result column="rd_paymethod" jdbcType="VARCHAR" property="rd_paymethod" />
+    <result column="rd_paycode" jdbcType="VARCHAR" property="rd_paycode" />
+    <result column="rd_remark" jdbcType="VARCHAR" property="rd_remark" />
+    <result column="rbd_slcode" jdbcType="VARCHAR" property="rbd_slcode" />
+    <result column="rbd_slkind" jdbcType="VARCHAR" property="rbd_slkind" />
+    <result column="rbd_sldate" jdbcType="TIMESTAMP" property="rbd_sldate" />
+    <result column="rbd_amount" jdbcType="DOUBLE" property="rbd_amount" />
+    <result column="rbd_nowbalance" jdbcType="DOUBLE" property="rbd_nowbalance" />
   </resultMap>
   </resultMap>
   <sql id="Example_Where_Clause">
   <sql id="Example_Where_Clause">
     <where>
     <where>
@@ -98,6 +107,11 @@
   <sql id="left_Column_List">
   <sql id="left_Column_List">
     cu_leftamount
     cu_leftamount
   </sql>
   </sql>
+  <sql id="detail_Column_List">
+      rd_bankname,rd_amount,rd_paymethod,rd_paycode,rd_remark,rbd_slcode,rbd_slkind,
+    rbd_sldate,rbd_amount,rbd_nowbalance
+  </sql>
+
   <select id="selectByExample" parameterType="com.usoftchina.saas.money.po.RecbalanceExample" resultMap="BaseResultMap">
   <select id="selectByExample" parameterType="com.usoftchina.saas.money.po.RecbalanceExample" resultMap="BaseResultMap">
     select
     select
     <if test="distinct">
     <if test="distinct">
@@ -122,8 +136,10 @@
 
 
   <select id="selectRecbalanceBycondition" resultMap="BaseResultMap">
   <select id="selectRecbalanceBycondition" resultMap="BaseResultMap">
     select
     select
-    <include refid="Base_Column_List" />
-    from recbalance
+    <include refid="Base_Column_List" />,
+    <include refid="detail_Column_List" />
+    from recbalance left join recbalancedet on rd_rbid=rb_id and recbalance.companyId=recbalancedet.companyId
+    left join recbalancedetail on rbd_rbid=rb_id and recbalancedetail.companyId=recbalance.companyId
     <where>
     <where>
       <if test="con != null">
       <if test="con != null">
         ${con}
         ${con}
@@ -136,9 +152,10 @@
 
 
   <select id="selectRecbalanceListByCondition" resultMap="BaseResultMap">
   <select id="selectRecbalanceListByCondition" resultMap="BaseResultMap">
     select
     select
-    <include refid="Base_Column_List" />
-    from recbalance
-    left join recbalancedet on rb_id=rd_rbid left join recbalancedetail on rb_id=rbd_rbid
+    <include refid="Base_Column_List" />,
+    <include refid="detail_Column_List" />
+    from recbalance left join recbalancedet on rd_rbid=rb_id and recbalance.comranyId=recbalancedet.comranyId
+    left join recbalancedetail on rbd_rbid=rb_id and recbalancedetail.comranyId=recbalance.comranyId
     <where>
     <where>
       <if test="con != null">
       <if test="con != null">
         ${con}
         ${con}

+ 10 - 0
frontend/saas-web/app/view/document/vendor/BasePanel.js

@@ -140,6 +140,16 @@ Ext.define('saas.view.document.vendor.BasePanel', {
             dataIndex : "ve_status", 
             dataIndex : "ve_status", 
             width : 120.0, 
             width : 120.0, 
             xtype : ""
             xtype : ""
+        },{
+            text: '应收款余额',
+            dataIndex : 've_leftamount',
+            width : 120,
+            renderer : function(v) {
+                var arr = (v + '.').split('.');
+                var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
+                var format = '0,000.' + xr.join();
+                return Ext.util.Format.number(v, format);
+            },
         }]
         }]
     },
     },
 
 

+ 96 - 16
frontend/saas-web/app/view/money/payBalance/QueryPanel.js

@@ -11,22 +11,42 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
         xtype: 'textfield',
         xtype: 'textfield',
         name: 'pb_code',
         name: 'pb_code',
         fieldLabel: '单据编号',
         fieldLabel: '单据编号',
-        columnWidth: 0.2
+        columnWidth: 0.3
+    },{
+        xtype: 'dbfindtrigger',
+        name: 'pb_vendname',
+        fieldLabel: '供应商',
+        columnWidth: 0.3
+    },{
+        xtype: 'textfield',
+        name: 'pb_manname',
+        fieldLabel: '付款人',
+        columnWidth: 0.3
+    },{
+        xtype: 'dbfindtrigger',
+        name: 'pd_bankname',
+        fieldLabel: '资金账户',
+        columnWidth: 0.3
     },{
     },{
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'pb_date',
         name: 'pb_date',
-        fieldLabel: '日期',
-        columnWidth: 0.5,
+        fieldLabel: '单据日期',
+        columnWidth: 0.6,
         operation: 'between'
         operation: 'between'
     },{
     },{
         xtype: 'multicombo',
         xtype: 'multicombo',
         name: 'pb_status',
         name: 'pb_status',
         fieldLabel: '审核状态',
         fieldLabel: '审核状态',
-        columnWidth: 0.2,
+        columnWidth: 0.3,
         datas: [
         datas: [
             ["已审核", "已审核"],
             ["已审核", "已审核"],
             ["未审核", "未审核"]
             ["未审核", "未审核"]
         ]
         ]
+    },{
+        xtype: 'textfield',
+        name: 'pbd_slcode',
+        fieldLabel: '源单编号',
+        columnWidth: 0.3
     }],
     }],
     moreQueryFormItems: [],
     moreQueryFormItems: [],
     queryGridConfig: {
     queryGridConfig: {
@@ -36,6 +56,7 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
         addXtype: 'money-paybalance-formpanel',
         addXtype: 'money-paybalance-formpanel',
         defaultCondition:'1=1',
         defaultCondition:'1=1',
         baseVastUrl: '/api/money/paybalance/',
         baseVastUrl: '/api/money/paybalance/',
+        // baseVastUrl: 'http://192.168.253.35:8880/paybalance/',
         baseColumn: [{
         baseColumn: [{
             text: 'id',
             text: 'id',
             dataIndex: 'id',
             dataIndex: 'id',
@@ -43,35 +64,39 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
             hidden:true
             hidden:true
         }, {
         }, {
-            text: '单据编号',
+            text: '单号',
             dataIndex: 'pb_code',
             dataIndex: 'pb_code',
             width: 200
             width: 200
-        }, {
-            text: '审核状态',
-            dataIndex: 'pb_status',
-            width: 120
         }, {
         }, {
             text: '单据日期',
             text: '单据日期',
             dataIndex: 'pb_date',
             dataIndex: 'pb_date',
             xtype: 'datecolumn',
             xtype: 'datecolumn',
             width: 160
             width: 160
+        }, {
+            text: '审核状态',
+            dataIndex: 'pb_status',
+            width: 120
         }, {
         }, {
             text: '供应商编号',
             text: '供应商编号',
             dataIndex: 'pb_vendcode',
             dataIndex: 'pb_vendcode',
             width: 200,
             width: 200,
             hidden:true
             hidden:true
         }, {
         }, {
-            text: '供应商名称',
+            text: '供应商',
             dataIndex: 'pb_vendname',
             dataIndex: 'pb_vendname',
             width: 120,
             width: 120,
         }, {
         }, {
-            text: '款人',
+            text: '款人',
             dataIndex: 'pb_manname',
             dataIndex: 'pb_manname',
             width: 120,
             width: 120,
         }, {
         }, {
+            text: '资金账户',
+            dataIndex: 'pd_bankname',
+            width: 120,
+        },{
             text: '付款金额',
             text: '付款金额',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
-            dataIndex: 'pb_pdamount',
+            dataIndex: 'pd_amount',
             width: 120,
             width: 120,
             hidden:true,
             hidden:true,
             renderer : function(v) {
             renderer : function(v) {
@@ -81,10 +106,65 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
                 return Ext.util.Format.number(v, format);
                 return Ext.util.Format.number(v, format);
             },
             },
         }, {
         }, {
+            text: '结算方式',
+            dataIndex: 'pd_paymethod',
+            width: 120,
+        },{
+            text: '结算号',
+            dataIndex: 'pd_paycode',
+            width: 120
+        },  {
+            text: '备注',
+            dataIndex: 'pd_remark',
+            width: 120,
+        },{
+            text: '付款总额',
+            dataIndex: 'pb_pdamount',
+            width: 120,
+            renderer : function(v) {
+                var arr = (v + '.').split('.');
+                var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
+                var format = '0,000.' + xr.join();
+                return Ext.util.Format.number(v, format);
+            },
+        },{
+            text: '源单编号',
+            dataIndex: 'pbd_slcode',
+            width: 120,
+        },{
+            text: '业务类别',
+            dataIndex: 'pbd_slkind',
+            width: 120,
+        },{
+            text: '单据日期',
+            dataIndex: 'pbd_sldate',
+            width: 120,
+            xtype:'datecolumn'
+        },{
+            text: '单据金额',
+            dataIndex: 'pbd_amount',
+            width: 120,
+            renderer : function(v) {
+                var arr = (v + '.').split('.');
+                var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
+                var format = '0,000.' + xr.join();
+                return Ext.util.Format.number(v, format);
+            },
+        },{
+            text: '本次核销金额',
+            dataIndex: 'pbd_nowbalance',
+            width: 120,
+            renderer : function(v) {
+                var arr = (v + '.').split('.');
+                var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
+                var format = '0,000.' + xr.join();
+                return Ext.util.Format.number(v, format);
+            },
+        },{
             text: '本次核销金额',
             text: '本次核销金额',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
             dataIndex: 'pb_pbdamount',
             dataIndex: 'pb_pbdamount',
-            width: 120,
+            width: 0,
             hidden:true,
             hidden:true,
             renderer : function(v) {
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var arr = (v + '.').split('.');
@@ -95,7 +175,7 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
         }, {
         }, {
             text: '本次预付款',
             text: '本次预付款',
             dataIndex: 'pb_preamount',
             dataIndex: 'pb_preamount',
-            width: 120,
+            width: 0,
             hidden:true,
             hidden:true,
             renderer : function(v) {
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var arr = (v + '.').split('.');
@@ -106,13 +186,13 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
         }, {
         }, {
             text: '整单折扣',
             text: '整单折扣',
             dataIndex: 'pb_discounts',
             dataIndex: 'pb_discounts',
-            width: 120,
+            width: 0,
             hidden:true
             hidden:true
         }, {
         }, {
             text: '已核销金额',
             text: '已核销金额',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
             dataIndex: 'pb_havebalance',
             dataIndex: 'pb_havebalance',
-            width: 120,
+            width: 0,
             hidden:true,
             hidden:true,
             renderer : function(v) {
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var arr = (v + '.').split('.');

+ 77 - 4
frontend/saas-web/app/view/money/payBalance/QueryPanelController.js

@@ -6,16 +6,14 @@ Ext.define('saas.view.money.paybalance.QueryPanelController', {
         var me = this;
         var me = this;
         this.control({
         this.control({
             //放大镜赋值关系 以及 tpl模板
             //放大镜赋值关系 以及 tpl模板
-            'dbfindtrigger[name=pu_vendname]':{
+            'dbfindtrigger[name=pb_vendname]':{
                 beforerender:function(f){
                 beforerender:function(f){
                     Ext.apply(f,{
                     Ext.apply(f,{
                         dataUrl:'/api/document/vendor/list',
                         dataUrl:'/api/document/vendor/list',
                         addXtype: 'document-vendor-formpanel',
                         addXtype: 'document-vendor-formpanel',
                         addTitle: '供应商资料',
                         addTitle: '供应商资料',
                         dbfinds:[{
                         dbfinds:[{
-                            from:'ve_code',to:'pu_vendcode'
-                        },{
-                            from:'ve_name',to:'pu_vendname'
+                            from:'ve_name',to:'pb_vendname'
                         }],
                         }],
                         dbtpls:[{
                         dbtpls:[{
                             field:'ve_code',width:100
                             field:'ve_code',width:100
@@ -178,6 +176,81 @@ Ext.define('saas.view.money.paybalance.QueryPanelController', {
                         }]   
                         }]   
                     }) ;   
                     }) ;   
 
 
+                }
+            },
+            'dbfindtrigger[name=pd_bankname]':{
+                beforerender: function (f) {
+                    Ext.apply(f, {
+                        dataUrl: '/api/document/bankinformation/list',
+                        addXtype: 'other-bankinformation',
+                        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
+                        }],
+                        otherConditon:'',
+                        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",
+                            "flex": 0,
+                            "dataIndex": "id",
+                            "width": 0,
+                            "xtype": ""
+                        }, {
+                            "text": "资金账户",
+                            "flex": 1,
+                            "dataIndex": "bk_bankcode",
+                            "width": 120,
+                            "xtype": ""
+                        }, {
+                            "text": "账户名称",
+                            "flex": 1,
+                            "dataIndex": "bk_bankname",
+                            "width": 150,
+                            "xtype": ""
+                        }, {
+                            "text": "账户类别",
+                            "flex": 1,
+                            "dataIndex": "bk_type",
+                            "width": 120,
+                            "xtype": ""
+                        }, {
+                            "text": "账户余额",
+                            "flex": 1,
+                            "dataIndex": "bk_thisamount",
+                            "width": 120,
+                            xtype: 'numbercolumn',
+                        }, {
+                            "text": "建帐日期",
+                            "flex": 1,
+                            "dataIndex": "bk_date",
+                            "width": 120,
+                            "xtype": "datecolumn"
+                        }]
+                    });
+
                 }
                 }
             }
             }
         });
         });

+ 68 - 7
frontend/saas-web/app/view/money/recBalance/QueryPanel.js

@@ -18,22 +18,43 @@ Ext.define('saas.view.money.recBalance.QueryPanel', {
     }, {
     }, {
         xtype: 'textfield',
         xtype: 'textfield',
         name: 'rb_code',
         name: 'rb_code',
-        fieldLabel: '单据编号'
+        fieldLabel: '单据编号',
+        columnWidth: 0.3,
     }, {
     }, {
+        xtype: 'dbfindtrigger',
+        name: 'rb_custname',
+        fieldLabel: '客户名',
+        columnWidth: 0.3,
+    }, {
+        xtype: 'textfield',
+        name: 'rb_manname',
+        fieldLabel: '收款人',
+        columnWidth: 0.3,
+    },{
+        xtype: 'textfield',
+        name: 'rd_bankname',
+        fieldLabel: '资金账户',
+        columnWidth: 0.3,
+    },  {
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'rb_date',
         name: 'rb_date',
-        fieldLabel: '日期',
-        columnWidth: 0.5,
+        fieldLabel: '单据日期',
+        columnWidth: 0.6,
         operation: 'between'
         operation: 'between'
     },{
     },{
         xtype: 'multicombo',
         xtype: 'multicombo',
         name: 'rb_status',
         name: 'rb_status',
         fieldLabel: '审核状态',
         fieldLabel: '审核状态',
-        columnWidth: 0.2,
+        columnWidth: 0.3,
         datas: [
         datas: [
             ["已审核", "已审核"],
             ["已审核", "已审核"],
             ["未审核", "未审核"]
             ["未审核", "未审核"]
         ]
         ]
+    },{
+        xtype: 'textfield',
+        name: 'rbd_slcode',
+        fieldLabel: '源单编号',
+        columnWidth: 0.3,
     }],
     }],
     moreQueryFormItems: [],
     moreQueryFormItems: [],
     queryGridConfig: {
     queryGridConfig: {
@@ -43,6 +64,7 @@ Ext.define('saas.view.money.recBalance.QueryPanel', {
         addXtype: 'money-recbalance-formpanel',
         addXtype: 'money-recbalance-formpanel',
         defaultCondition:'',
         defaultCondition:'',
         baseVastUrl: '/api/money/recbalance/',
         baseVastUrl: '/api/money/recbalance/',
+        // baseVastUrl: 'http://192.168.253.35:8880/recbalance/',
         baseColumn: [{
         baseColumn: [{
             text: 'id',
             text: 'id',
             dataIndex: 'id',
             dataIndex: 'id',
@@ -72,10 +94,25 @@ Ext.define('saas.view.money.recBalance.QueryPanel', {
         }, {
         }, {
             text: '收款人',
             text: '收款人',
             dataIndex: 'rb_manname',
             dataIndex: 'rb_manname',
-            xtype: 'numbercolumn',
             width: 120,
             width: 120,
         }, {
         }, {
-            text: '收款金额',
+            text: '资金账户',
+            dataIndex: 'rd_bankname',
+            width: 120,
+        },{
+            text: '结算方式',
+            dataIndex: 'rd_paymethod',
+            width: 120,
+        },{
+            text: '结算号',
+            dataIndex: 'rd_paycode',
+            width: 120,
+        },{
+            text: '备注',
+            dataIndex: 'rd_remark',
+            width: 120,
+        },{
+            text: '收款总额',
             dataIndex: 'rb_rdamount',
             dataIndex: 'rb_rdamount',
             xtype: 'numbercolumn',
             xtype: 'numbercolumn',
             width: 120,
             width: 120,
@@ -86,6 +123,30 @@ Ext.define('saas.view.money.recBalance.QueryPanel', {
                 var format = '0,000.' + xr.join();
                 var format = '0,000.' + xr.join();
                 return Ext.util.Format.number(v, format);
                 return Ext.util.Format.number(v, format);
             },
             },
-        }]
+        },{
+            text: '源单编号',
+            dataIndex: 'rbd_slcode',
+            width: 120,
+        },{
+            text: '业务类别',
+            dataIndex: 'rbd_slkind',
+            width: 120,
+        },{
+            text: '单据日期',
+            dataIndex: 'rbd_sldate',
+            xtype: 'datecolumn',
+            width: 120,
+        },{
+            text: '单据金额',
+            dataIndex: 'rbd_amount',
+            xtype: 'numbercolumn',
+            width: 120,
+        },{
+            text: '本次核销金额',
+            dataIndex: 'rbd_nowbalance',
+            xtype: 'numbercolumn',
+            width: 120,
+        },
+        ]
     }
     }
 });
 });

+ 91 - 2
frontend/saas-web/app/view/money/recBalance/QueryPanelController.js

@@ -6,7 +6,7 @@ Ext.define('saas.view.money.recBalance.QueryPanelController', {
         var me = this;
         var me = this;
         this.control({
         this.control({
             //放大镜赋值关系 以及 tpl模板
             //放大镜赋值关系 以及 tpl模板
-            'dbfindtrigger[name=pu_vendname]':{
+            'dbfindtrigger[name=rd_bankname]':{
                 beforerender:function(f){
                 beforerender:function(f){
                     Ext.apply(f,{
                     Ext.apply(f,{
                         dataUrl: '/api/document/vendor/list',
                         dataUrl: '/api/document/vendor/list',
@@ -180,7 +180,96 @@ Ext.define('saas.view.money.recBalance.QueryPanelController', {
                     }) ;   
                     }) ;   
 
 
                 }
                 }
-            }
+            },
+            'dbfindtrigger[name=rb_custname]':{
+                beforerender:function(f){
+                    Ext.apply(f,{
+                        //数据接口
+                        dataUrl: '/api/document/customer/list',
+                        addXtype: 'document-customer-formpanel',
+                        addTitle: '客户资料',
+                        //赋值
+                        dbfinds:[{
+                            from: 'id', to: 'rb_custid'
+                        }, {
+                            from:'cu_code', to:'rb_custcode'
+                        },{
+                            from:'cu_name', to:'rb_custname'
+                        },{
+                            from:'cu_leftamount', to:'cu_leftamount'
+                        }],
+                        //联想设置
+                        dbtpls:[{
+                            field:'cu_code',width:100
+                        },{
+                            field:'cu_name',width:100
+                        },{
+                            field:'cu_leftamount',width:100
+                        }],
+                        defaultCondition: 'cu_statuscode="OPEN"',
+                        dbSearchFields:[{
+                            emptyText:'输入客户编号或名称',
+                            xtype : "textfield",
+                            name : "search",
+                            getCondition: function(v) {
+                                return "(upper(cu_code) like '%"+v.toUpperCase()+"%' or upper(cu_name) like '%"+v.toUpperCase()+"%')";
+                            },
+                            allowBlank : true,
+                            columnWidth : 0.25
+                        }],
+                        //放大镜窗口列表
+                        dbColumns:[{
+                            "text": "客户ID",
+                            "hidden": true,
+                            "dataIndex": "id",
+                        },{
+                            "text": "客户编号",
+                            "dataIndex": "cu_code",
+                            "width": 200,
+                        }, {
+                            "text": "客户名称",
+                            "dataIndex": "cu_name",
+                            "width": 200
+                        },{
+                            "text": "客户类型",
+                            "dataIndex": "cu_name",
+                            "width": 100
+                        },{
+                            "text": "业务员",
+                            "dataIndex": "cu_sellername",
+                            "width": 100
+                        },{
+                            "text": "应收款余额",
+                            "dataIndex": "cu_leftamount",
+                            "width": 100,
+                            xtype: 'numbercolumn',
+                            align:'end'
+                        },{
+                            "text": "税率",
+                            "dataIndex": "cu_taxrate",
+                            "width": 100,
+                            xtype: 'numbercolumn',
+                            align:'end'
+                        },{
+                            "text": "承付天数",
+                            "dataIndex": "cu_promisedays",
+                            "width": 100,
+                            xtype: 'numbercolumn',
+                            align:'end',
+                            renderer : function(v) {
+                                return Ext.util.Format.number(v, '0');
+                            }
+                        },{
+                            "text": "额度",
+                            "dataIndex": "cu_credit",
+                            "width": 100,
+                            xtype: 'numbercolumn',
+                            align:'end'
+                        }]
+                    }) ;
+
+                }
+            },
         });
         });
 
 
     }
     }

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

@@ -313,9 +313,9 @@ Ext.define('saas.view.stock.appropriationInOut.FormPanelController', {
                     addTitle: '仓库资料',
                     addTitle: '仓库资料',
                     defaultCondition:"wh_statuscode='OPEN'",
                     defaultCondition:"wh_statuscode='OPEN'",
                     dbfinds:[{
                     dbfinds:[{
-                        from:'id',to:'id',ignore:true                          
+                        from:'id',to:'pd_whid',ignore:true                          
                     },{
                     },{
-                        from:'wh_code',to:'wh_code'                          
+                        from:'wh_code',to:'pd_whcode'                          
                     },{
                     },{
                         from:'wh_description',to:'pd_whname'
                         from:'wh_description',to:'pd_whname'
                     }],
                     }],