Browse Source

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

rainco 7 years ago
parent
commit
27fede292b
46 changed files with 225 additions and 170 deletions
  1. 0 9
      applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/dto/ListReqDTO.java
  2. 3 1
      applications/commons/commons-server/src/main/java/com/usoftchina/saas/commons/mapper/EndProductMapper.java
  3. 6 2
      applications/commons/commons-server/src/main/java/com/usoftchina/saas/commons/service/impl/EndProductServiceImpl.java
  4. 6 2
      applications/commons/commons-server/src/main/resources/mapper/EndProductMapper.xml
  5. 2 0
      applications/document/document-dto/src/main/java/com.usoftchina.saas.document.dto/CustomerDTO.java
  6. 2 0
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Customer.java
  7. 2 0
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/CustomerList.java
  8. 0 2
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/mapper/CustomerMapper.java
  9. 1 0
      applications/document/document-server/src/main/resources/mapper/CustomerListMapper.xml
  10. 11 32
      applications/document/document-server/src/main/resources/mapper/CustomerMapper.xml
  11. 1 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/CustomerCheckViewMapper.java
  12. 1 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/VendorAcountViewMapper.java
  13. 26 10
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/MoneyReportServiceImpl.java
  14. 6 7
      applications/money/money-server/src/main/resources/mapper/CustomerCheckViewMapper.xml
  15. 6 7
      applications/money/money-server/src/main/resources/mapper/VendorAcountViewMapper.xml
  16. 0 1
      base-servers/gateway-server/src/main/resources/application.yml
  17. 2 1
      frontend/saas-portal-web/config/index.js
  18. 2 2
      frontend/saas-portal-web/src/components/conenter/home.vue
  19. 42 10
      frontend/saas-portal-web/src/components/conenter/problem.vue
  20. 1 1
      frontend/saas-portal-web/src/components/footer/footer.vue
  21. 0 4
      frontend/saas-portal-web/static/css/main.css
  22. 4 0
      frontend/saas-web/app/Application.scss
  23. 2 2
      frontend/saas-web/app/view/core/dbfind/types/BankInfoDbfindTrigger.js
  24. 1 1
      frontend/saas-web/app/view/core/dbfind/types/CustomerDbfindTrigger.js
  25. 1 1
      frontend/saas-web/app/view/core/dbfind/types/EmployeeDbfindTrigger.js
  26. 1 11
      frontend/saas-web/app/view/core/dbfind/types/OriOrderMutiDbfindTrigger.js
  27. 1 1
      frontend/saas-web/app/view/core/dbfind/types/ProductDbfindTrigger.js
  28. 1 1
      frontend/saas-web/app/view/core/dbfind/types/ProductMultiDbfindTrigger.js
  29. 1 1
      frontend/saas-web/app/view/core/dbfind/types/VendorDbfindTrigger.js
  30. 1 1
      frontend/saas-web/app/view/core/dbfind/types/WarehouseDbfindTrigger.js
  31. 0 1
      frontend/saas-web/app/view/core/form/field/DetailGridField.js
  32. 0 1
      frontend/saas-web/app/view/core/query/QueryGridPanel.js
  33. 2 1
      frontend/saas-web/app/view/core/report/ReportPanel.js
  34. 4 0
      frontend/saas-web/app/view/document/customer/BasePanel.js
  35. 7 1
      frontend/saas-web/app/view/document/customer/FormPanel.js
  36. 3 3
      frontend/saas-web/app/view/document/kind/ChildForm.js
  37. 31 31
      frontend/saas-web/app/view/document/product/BasePanel.js
  38. 3 3
      frontend/saas-web/app/view/money/report/CustomerCheck.js
  39. 3 3
      frontend/saas-web/app/view/money/report/VendorCheck.js
  40. 7 6
      frontend/saas-web/app/view/purchase/purchase/FormPanel.js
  41. 1 1
      frontend/saas-web/app/view/purchase/purchase/FormPanelController.js
  42. 5 5
      frontend/saas-web/app/view/sale/sale/FormPanel.js
  43. 2 2
      frontend/saas-web/app/view/sys/account/DataList.js
  44. 5 0
      frontend/saas-web/overrides/grid/Panel.js
  45. 19 0
      frontend/saas-web/overrides/grid/Panel.scss
  46. BIN
      frontend/saas-web/resources/images/grid/empty.png

+ 0 - 9
applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/dto/ListReqDTO.java

@@ -21,15 +21,6 @@ public class ListReqDTO implements Serializable {
 
     private String calculateFields;
 
-    private String ym;
-
-    public String getYm() {
-        return ym;
-    }
-
-    public void setYm(String ym) {
-        this.ym = ym;
-    }
 
     //将列拼成查询语句,直接查询出数据的格式为json
     public String getCalculateFieldsSql() {

+ 3 - 1
applications/commons/commons-server/src/main/java/com/usoftchina/saas/commons/mapper/EndProductMapper.java

@@ -10,7 +10,7 @@ public interface EndProductMapper {
 
     void endProduct(Map<String, Object> map);
 
-    void endFund(Map<String, Object> map);
+    void end(Map<String, Object> map);
 
     String selectPeriod(@Param("companyId") Long companyId);
 
@@ -20,6 +20,8 @@ public interface EndProductMapper {
 
     void updatePeriodStatus(@Param("status") Long status,@Param("period") String period, @Param("companyId") Long companyId);
 
+    void updateRe(@Param("ym") String ym, @Param("companyId") Long companyId);
+
     int checkPay(Long companyId);
     int checkRec(Long companyId);
     void deleteSub(Long companyId);

+ 6 - 2
applications/commons/commons-server/src/main/java/com/usoftchina/saas/commons/service/impl/EndProductServiceImpl.java

@@ -16,6 +16,7 @@ import com.usoftchina.saas.exception.BizException;
 import com.usoftchina.saas.page.PageRequest;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.StringUtils;
 
 import java.util.HashMap;
@@ -55,6 +56,7 @@ public class EndProductServiceImpl implements EndProductService {
         return map;
     }
 
+    @Transactional
     @Override
     public String endAccount() {
         String period = endProductMapper.selectPeriod(BaseContextHolder.getCompanyId());
@@ -63,14 +65,15 @@ public class EndProductServiceImpl implements EndProductService {
         map.put("yearMonth", period);
         map.put("companyId", BaseContextHolder.getCompanyId());
         map.put("result", null);
-        endProductMapper.endProduct(map);
-        endProductMapper.endFund(map);
+//        endProductMapper.endProduct(map);
+        endProductMapper.end(map);
         endProductMapper.updatePeriodStatus(99L, period, BaseContextHolder.getCompanyId());
         DocBaseDTO docBaseDTO = generateMsgObj(Long.parseLong(period));
         messageLogService.customizeLog(docBaseDTO, Operation.ENDPRODUCT);
         return String.valueOf(map.get("result"));
     }
 
+    @Transactional
     @Override
     public void unEndAccount() {
         int payc = endProductMapper.checkPay(BaseContextHolder.getCompanyId());
@@ -84,6 +87,7 @@ public class EndProductServiceImpl implements EndProductService {
         if (StringUtils.isEmpty(period)){
             throw new BizException(BizExceptionCode.BIZ_UNENDPRODUCT);
         }else{
+            endProductMapper.updateRe(period, BaseContextHolder.getCompanyId());
             endProductMapper.updatePeriodStatus(0L, period, BaseContextHolder.getCompanyId());
             messageLogService.customizeLog(generateMsgObj(Long.parseLong(period)), Operation.UNENDPRODUCT);
         }

+ 6 - 2
applications/commons/commons-server/src/main/resources/mapper/EndProductMapper.xml

@@ -29,14 +29,18 @@
         CALL SP_ENDPRODUCT(?, ?, ?)
     </select>
 
-    <select id="endFund" parameterMap="spParamMap" statementType="CALLABLE">
-        CALL SP_ENDFUND(?, ?, ?)
+    <select id="end" parameterMap="spParamMap" statementType="CALLABLE">
+        CALL SP_END(?, ?, ?)
     </select>
 
     <update id="updatePeriodStatus" >
         update periodsdetail set pd_status=#{status} where pd_detno=#{period} and companyId=#{companyId}
     </update>
 
+    <update id="updateRe" >
+        UPDATE receivablesdetail SET RD_STATUS=0 WHERE date_format(rd_date, '%Y%m')=#{ym} AND companyid=#{companyId};
+    </update>
+
     <select id="checkPay" parameterType="java.lang.Long" resultType="java.lang.Integer">
         select count(1) from vendor where (ve_id,companyid) in (select pb_vendid,companyid from (
         select pbd_ym,pb_vendid,paybalance.companyid from paybalance,paybalancedetail where pb_id=pbd_pbid and pbd_slkind='期初余额'

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

@@ -14,6 +14,8 @@ import java.util.Date;
 public class CustomerDTO extends CommonBaseDTO implements Serializable {
     private String cu_code;
 
+    private String cu_shortname;
+
     private String cu_name;
 
     private String cu_uu;

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

@@ -10,6 +10,8 @@ public class Customer extends CommonBaseEntity implements Serializable {
 
     private String cu_code;
 
+    private String cu_shortname;
+
     private String cu_name;
 
     private String cu_uu;

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

@@ -15,6 +15,8 @@ public class CustomerList extends CommonBaseEntity{
 //customer
     private String cu_code;
 
+    private String cu_shortname;
+
     private String cu_name;
 
     private String cu_uu;

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

@@ -17,8 +17,6 @@ public interface CustomerMapper extends CommonBaseMapper<Customer> {
 
     int updateByPrimaryKeySelective(Customer record);
 
-    int updateByPrimaryKey(Customer record);
-
     String selectCodeById(Long id);
 
     Integer validateCodeWhenInsert(@Param("code") String code, @Param("companyId") Long companyId);

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

@@ -4,6 +4,7 @@
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.CustomerList">
     <id column="cu_id" jdbcType="INTEGER" property="id" />
     <result column="cu_code" jdbcType="VARCHAR" property="cu_code" />
+    <result column="cu_shortname" jdbcType="VARCHAR" property="cu_shortname"/>
     <result column="cu_name" jdbcType="VARCHAR" property="cu_name" />
     <result column="cu_uu" jdbcType="VARCHAR" property="cu_uu" />
     <result column="cu_type" jdbcType="VARCHAR" property="cu_type" />

+ 11 - 32
applications/document/document-server/src/main/resources/mapper/CustomerMapper.xml

@@ -4,6 +4,7 @@
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Customer">
     <id column="cu_id" jdbcType="INTEGER" property="id" />
     <result column="cu_code" jdbcType="VARCHAR" property="cu_code" />
+    <result column="cu_shortname" jdbcType="VARCHAR" property="cu_shortname" />
     <result column="cu_name" jdbcType="VARCHAR" property="cu_name" />
     <result column="cu_uu" jdbcType="VARCHAR" property="cu_uu" />
     <result column="cu_type" jdbcType="VARCHAR" property="cu_type" />
@@ -32,7 +33,7 @@
     <result column="cu_remark" jdbcType="VARCHAR" property="cu_remark" />
   </resultMap>
   <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_shortname, cu_name, cu_uu, cu_type, cu_begindate, cu_beginaramount, cu_beginprerecamount,
     cu_promisedays, cu_taxrate, cu_sellerid, cu_sellercode, cu_sellername, cu_credit, 
     cu_status, cu_statuscode, companyid,
     updaterid, updatetime, cu_text1, cu_text2, cu_text3, cu_text4, cu_text5, cu_leftamount, 
@@ -58,6 +59,9 @@
       <if test="cu_code != null">
         cu_code,
       </if>
+      <if test="cu_shortname != null">
+        cu_shortname,
+      </if>
       <if test="cu_name != null">
         cu_name,
       </if>
@@ -151,6 +155,9 @@
       <if test="cu_code != null">
         #{cu_code,jdbcType=VARCHAR},
       </if>
+      <if test="cu_shortname !=null">
+        #{cu_shortname,jdbcType=VARCHAR}
+      </if>
       <if test="cu_name != null">
         #{cu_name,jdbcType=VARCHAR},
       </if>
@@ -246,6 +253,9 @@
       <if test="cu_code != null">
         cu_code = #{cu_code,jdbcType=VARCHAR},
       </if>
+      <if test="cu_shortname !=null">
+        cu_shortname = #{cu_shortname,jdbcType=VARCHAR},
+      </if>
       <if test="cu_name != null">
         cu_name = #{cu_name,jdbcType=VARCHAR},
       </if>
@@ -327,37 +337,6 @@
     </set>
     where cu_id = #{id,jdbcType=INTEGER}
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Customer">
-    update customer
-    set cu_code = #{cu_code,jdbcType=VARCHAR},
-      cu_name = #{cu_name,jdbcType=VARCHAR},
-      cu_uu = #{cu_uu,jdbcType=VARCHAR},
-      cu_type = #{cu_type,jdbcType=VARCHAR},
-      cu_begindate = #{cu_begindate,jdbcType=TIMESTAMP},
-      cu_beginaramount = #{cu_beginaramount,jdbcType=DOUBLE},
-      cu_beginprerecamount = #{cu_beginprerecamount,jdbcType=DOUBLE},
-      cu_promisedays = #{cu_promisedays,jdbcType=DOUBLE},
-      cu_taxrate = #{cu_taxrate,jdbcType=DOUBLE},
-      cu_sellerid = #{cu_sellerid,jdbcType=INTEGER},
-      cu_sellercode = #{cu_sellercode,jdbcType=VARCHAR},
-      cu_sellername = #{cu_sellername,jdbcType=VARCHAR},
-      cu_credit = #{cu_credit,jdbcType=DOUBLE},
-      cu_status = #{cu_status,jdbcType=VARCHAR},
-      cu_statuscode = #{cu_statuscode,jdbcType=VARCHAR},
-      companyid = #{companyid,jdbcType=INTEGER},
-      updaterid = #{updaterid,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=TIMESTAMP},
-      cu_text1 = #{cu_text1,jdbcType=VARCHAR},
-      cu_text2 = #{cu_text2,jdbcType=VARCHAR},
-      cu_text3 = #{cu_text3,jdbcType=VARCHAR},
-      cu_text4 = #{cu_text4,jdbcType=VARCHAR},
-      cu_text5 = #{cu_text5,jdbcType=VARCHAR},
-      cu_leftamount = #{cu_leftamount,jdbcType=DOUBLE},
-      cu_recamount = #{cu_recamount,jdbcType=DOUBLE},
-      cu_preamount = #{cu_preamount,jdbcType=DOUBLE},
-      cu_remark = #{cu_remark,jdbcType=VARCHAR}
-    where cu_id = #{id,jdbcType=INTEGER}
-  </update>
 
   <select id="validateCodeWhenInsert" resultType="int">
     select count(1) from customer where cu_code = #{code} and companyId =#{companyId}

+ 1 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/CustomerCheckViewMapper.java

@@ -10,6 +10,6 @@ import java.util.List;
 public interface CustomerCheckViewMapper {
     List<CustomerCheckView> selectByCondition(@Param("con") String con, @Param("companyId") Long companyId);
     String selectCalculateFields(@Param("fields") String fields, @Param("con") String con, @Param("companyId") Long companyId);
-    VendOrCustAdd selectCustAdd(@Param("sl_custid") Integer sl_vendid, @Param("sl_ym") Integer sl_ym, @Param("companyId") Long companyId);
+    VendOrCustAdd selectCustAdd(@Param("sl_custid") Integer sl_custid, @Param("cons") String cons, @Param("companyId") Long companyId);
     Integer getId(@Param("code") String code, @Param("companyId") Long companyId);
 }

+ 1 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/VendorAcountViewMapper.java

@@ -9,6 +9,6 @@ import java.util.List;
 public interface VendorAcountViewMapper {
     List<VendorAcountView> selectByCondition(@Param("con")String con, @Param("companyId")Long companyId);
     String selectCalculateFields(@Param("fields") String fields, @Param("con") String con, @Param("companyId") Long companyId);
-    VendOrCustAdd selectVendAdd(@Param("sl_vendid") Integer sl_vendid, @Param("sl_ym") Integer sl_ym, @Param("companyId") Long companyId);
+    VendOrCustAdd selectVendAdd(@Param("sl_vendid") Integer sl_vendid, @Param("cons") String cons, @Param("companyId") Long companyId);
     Integer getId(@Param("code") String code, @Param("companyId") Long companyId);
 }

+ 26 - 10
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/MoneyReportServiceImpl.java

@@ -1,6 +1,7 @@
 package com.usoftchina.saas.money.service.impl;
 
 import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
 import com.github.pagehelper.PageHelper;
 import com.github.pagehelper.PageInfo;
 import com.usoftchina.saas.commons.dto.ListReqDTO;
@@ -91,6 +92,7 @@ public class MoneyReportServiceImpl implements MoneyReportService {
         List list = null;
         Long companyId = BaseContextHolder.getCompanyId();
         String con = req.getFinalCondition();
+        String cons = this.getDate(req.getCondition());
         String calculateFieldsSql = req.getCalculateFieldsSql();
         JSONArray arr = null;
         if (null == con) {
@@ -103,14 +105,12 @@ public class MoneyReportServiceImpl implements MoneyReportService {
             list = vendorAcountViewMapper.selectByCondition(con, companyId);
             if (list.size() >0) {
                 VendorAcountView vendorAcountView = (VendorAcountView) list.get(0);
+                //取时间
+
                 Integer vid = new Integer(0);
                 vid = vendorAcountViewMapper.getId(vendorAcountView.getPi_vendcode(), Long.valueOf(vendorAcountView.getCompanyId()));
-                Integer ym = Integer.valueOf(req.getYm());
-                VendOrCustAdd vendOrCustAdd = vendorAcountViewMapper.selectVendAdd(vid, ym, Long.valueOf(vendorAcountView.getCompanyId()));
+                VendOrCustAdd vendOrCustAdd = vendorAcountViewMapper.selectVendAdd(vid, cons, Long.valueOf(vendorAcountView.getCompanyId()));
                 if (vendOrCustAdd != null) {
-                    vendOrCustAdd.setNowbalance((vendOrCustAdd.getBeginamount() == null ? new Double(0) : vendOrCustAdd.getBeginamount())
-                            + (vendOrCustAdd.getNowamount() == null ? new Double(0) : vendOrCustAdd.getNowamount())
-                            - (vendOrCustAdd.getNowpay() == null ? new Double(0) : vendOrCustAdd.getNowpay()));
                     //封装成list
                     Map<String, Double> map1 = new HashMap<>();
                     map1.put("beginamount", vendOrCustAdd.getBeginamount());
@@ -154,12 +154,8 @@ public class MoneyReportServiceImpl implements MoneyReportService {
                 Integer vid = new Integer(0);
 
                 vid = customerCheckViewMapper.getId(customerCheckView.getPi_custcode(), Long.valueOf(customerCheckView.getCompanyId()));
-                Integer ym = Integer.valueOf(req.getYm());
-                VendOrCustAdd vendOrCustAdd = customerCheckViewMapper.selectCustAdd(vid, ym, Long.valueOf(customerCheckView.getCompanyId()));
+                VendOrCustAdd vendOrCustAdd = customerCheckViewMapper.selectCustAdd(vid, cons, Long.valueOf(customerCheckView.getCompanyId()));
                 if (vendOrCustAdd != null) {
-                    vendOrCustAdd.setNowbalance((vendOrCustAdd.getBeginamount() == null ? new Double(0) : vendOrCustAdd.getBeginamount())
-                            + (vendOrCustAdd.getNowamount() == null ? new Double(0) : vendOrCustAdd.getNowamount())
-                            - (vendOrCustAdd.getNowpay() == null ? new Double(0) : vendOrCustAdd.getNowpay()));
                     //封装成list
                     Map<String, Double> map1 = new HashMap<>();
                     map1.put("beginamount", vendOrCustAdd.getBeginamount());
@@ -200,4 +196,24 @@ public class MoneyReportServiceImpl implements MoneyReportService {
         }
         return map;
     }
+
+    public String getDate(String cons){
+        JSONArray jsonArray = JSONArray.parseArray(cons);
+        String con = " 1 = 1";
+        if (null != jsonArray && jsonArray.size() > 0) {
+            StringBuffer finalCondition = new StringBuffer();
+            for (int i = 0; i < jsonArray.size(); i++) {
+                JSONObject jsonObject = (JSONObject) jsonArray.get(i);
+                Object type = jsonObject.get("type");
+                if ("date".equals(type)){
+                    String value = (String) jsonObject.get("value");
+                    System.out.println("value" + value);
+                    value = value.replace(",", "' and '");
+                    con =  " a.sl_date between '" + value + "'" ;
+                    System.out.println("con"+con);
+                }
+            }
+        }
+        return con;
+    }
 }

+ 6 - 7
applications/money/money-server/src/main/resources/mapper/CustomerCheckViewMapper.xml

@@ -52,13 +52,12 @@
         <result column="nowpay" property="beginamount" jdbcType="DOUBLE" />
     </resultMap>
     <select id="selectCustAdd" resultMap="BaseAddMap">
-    select distinct a.sl_orderamount as beginamount, b.sl_orderamount as nowamount, c.sl_orderamount as nowpay FROM
-(select sl_orderamount,sl_custid,sl_ym, companyid from subledger where sl_kind = '期初余额') a
-left join (select sum(sl_orderamount) sl_orderamount,sl_custid,sl_ym from subledger where sl_kind = '出货单' or sl_kind = '销售退货单'
-group by sl_custid,sl_ym) b on a.sl_custid=b.sl_custid
-left join (select sum(sl_orderamount) sl_orderamount,sl_custid,sl_ym from subledger where sl_kind = '收款单' or sl_kind = '其他收入单'
-group by sl_custid,sl_ym) c on a.sl_custid=c.sl_custid
- where a.sl_custid=#{sl_custid,jdbcType=INTEGER} and a.sl_ym=#{sl_ym, jdbcType=INTEGER} and a.companyid = #{companyId}
+    select a.sl_orderamount as beginamount, b.nowamount, b.nowpay,(a.sl_orderamount +b.nowamount-b.nowpay) as nowbalance FROM
+    (select sl_orderamount,sl_custid,sl_date, companyid from subledger where sl_kind = '期初余额') a
+    left join (select sum(sl_amount) as nowamount,sum(sl_preamount) as nowpay,sl_custid,sl_date from subledger where sl_kind !='期初余额'
+    group by sl_custid,sl_date) b
+    on a.sl_custid=b.sl_custid
+    where a.sl_custid=#{sl_custid} and ${cons} and a.companyid = #{companyId} limit 1
   </select>
 
     <select id="getId" resultType="java.lang.Integer">

+ 6 - 7
applications/money/money-server/src/main/resources/mapper/VendorAcountViewMapper.xml

@@ -55,13 +55,12 @@
     <result column="nowpay" property="beginamount" jdbcType="DOUBLE" />
   </resultMap>
   <select id="selectVendAdd" resultMap="BaseAddMap">
-    select distinct a.sl_orderamount as beginamount, b.sl_orderamount as nowamount, c.sl_orderamount as nowpay FROM
-(select sl_orderamount,sl_vendid,sl_ym, companyid from subledger where sl_kind = '期初余额') a
-left join (select sum(sl_orderamount) sl_orderamount,sl_vendid,sl_ym from subledger where sl_kind = '采购验收单' or sl_kind = '采购验退单'
-group by sl_vendid,sl_ym) b on a.sl_vendid=b.sl_vendid
-left join (select sum(sl_orderamount) sl_orderamount,sl_vendid,sl_ym from subledger where sl_kind = '付款单' or sl_kind = '其他支出单'
-group by sl_vendid,sl_ym) c on a.sl_vendid=c.sl_vendid
- where a.sl_vendid=#{sl_vendid,jdbcType=INTEGER} and a.sl_ym=#{sl_ym, jdbcType=INTEGER} and a.companyid = #{companyId}
+    select a.sl_orderamount as beginamount, b.nowamount, b.nowpay,(a.sl_orderamount +b.nowamount-b.nowpay) as nowbalance FROM
+    (select sl_orderamount,sl_vendid,sl_date, companyid from subledger where sl_kind = '期初余额') a
+    left join (select sum(sl_amount) as nowamount,sum(sl_preamount) as nowpay,sl_vendid,sl_date from subledger where sl_kind !='期初余额'
+    group by sl_vendid,sl_date) b
+    on a.sl_vendid=b.sl_vendid
+    where a.sl_vendid=#{sl_vendid} and ${cons} and a.companyid = #{companyId} limit 1
   </select>
 
   <select id="getId" resultType="java.lang.Integer">

+ 0 - 1
base-servers/gateway-server/src/main/resources/application.yml

@@ -186,7 +186,6 @@ auth:
     - /ws/**
     - /api/file/download
     - /api/commons/excel/import/templet
-    - /api/account/resource/url/list
   cookie:
     name: uid
     secret-key: 0taQcW073Z7G628g5H

+ 2 - 1
frontend/saas-portal-web/config/index.js

@@ -10,11 +10,12 @@ module.exports = {
     // Paths
     assetsSubDirectory: 'static',
     assetsPublicPath: '/',
-    proxyTable: {},
+    proxyTable: {}, 
 
     // Various Dev Server settings
     // host: 'localhost', // can be overwritten by process.env.HOST
     host: '127.0.0.1', // can be overwritten by process.env.HOST
+    // host: '192.168.253.183', // can be overwritten by process.env.HOST
     port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
     autoOpenBrowser: false,
     errorOverlay: true,

+ 2 - 2
frontend/saas-portal-web/src/components/conenter/home.vue

@@ -261,10 +261,10 @@
       }
     },
     created(){
-      if (this.$route.query.isporblem == undefined) {
+      if (this.$route.params.isporblem == undefined) {
         this.isproblem = true
       } else {
-        this.isproblem = this.$route.query.isporblem
+        this.isproblem = this.$route.params.isporblem
       }
         this.$ajax({
           url: this.$url.api+'/api/auth/info',

+ 42 - 10
frontend/saas-portal-web/src/components/conenter/problem.vue

@@ -9,16 +9,16 @@
               <div class="bz-box">
                 <div class="bz-sskuang">
                   <span><img class="bz-sousuoimg" src="/static/img/assets/sou.png" alt=""></span>
-                  <input class="bz-sousuo" type="text" placeholder="请输入标题搜索"/>
+                  <input class="bz-sousuo" type="text" placeholder="请输入标题搜索" v-model="searchVal"/>
                 </div>
                 <button class="bz-btn">搜索</button>
               </div>
               <div class="bz-right-conent">
                 <ul>
-                  <li v-for="(d , i) in arr" :key="i">
+                  <li v-for="(d , i) in list" :key="i">
                     <div class="over Text-title" @click="shows(d,i)">
                       <span class="left bz-yuandian"></span>
-                      <span class="left">{{d.title}}</span>
+                      <span ref="txttitle" class="left bz-txttitle">{{d.title}}</span>
                       <img  class="right bz-copy" :class="d.isshow ? 'rotates' : 'norotate'" src="/static/img/Triangle Copy 4.png" alt="">
                     </div>
                     <div ref="title" class="Text-content" :class="d.isshow ? 'dispays' : 'hides'">
@@ -38,18 +38,45 @@
         data(){
           return {
             arr:[
-              {isshow: true, title:'方式不同吧好像是差不多',centent:'警方圣诞快乐JFK的实力积分积分累积角度考虑实际疯狂的世界佛教埃及空军看见反抗类毒素解放就'},
-              {isshow: false, title:'上的换个环境操作文档',centent:'警方圣诞K的实力积分积分累积角度狂的世界佛教埃及空军看见反抗类毒素解放就'},
-              {isshow: false, title:'房贷首付操作文档',centent:'警方圣诞快分积分累积角度考虑实际疯狂的世界佛教埃及空军看见反抗类毒素解放就'},
-            ]
+              {isshow: true, title:'1、如何注册开通优企云服?',centent:'警方圣诞快乐JFK的实力积分积分累积角度考虑实际疯狂的世界佛教埃及空军看见反抗类毒素解放就'},
+              {isshow: false, title:'2、实际送货数量大于采购单数量如何操作?',centent:'答:若超出部份正好是贵司所需, 按实际收货数量修改采购验收数量(应付款是按已审核的采购验收单金额记账的'},
+              {isshow: false, title:'3、为什么新增采购单据时有的物料可自动带出单价, 有的不能?',centent:'答:因为采购单中的单价取的是物料资料中的最新采购单价, 而最新采购单价是采购验收单审核后自动更新至物料资料中的。'},
+              {isshow: false, title:'4、采购单分批次交货时,如何操作? 采购单界面点“转验收单”按钮时会将采购单中的所有都转过去。',centent:'答:采购验收单中可修改数量, 也可删除明细行。 删除后再次收货时在采购单界面点“转验收单”按钮时生成的采购验收单会显示之前删除的那行数据(即所有未交部份均可再显示)'},
+              {isshow: false, title:'5、以销代购业务在系统如何操作?即收到客户订单后再采购的业务模式。',centent:'答:销售订单界面点“转采购”按钮。'},
+              {isshow: false, title:'6、人员如何分配权限?',centent:'答:快捷方法是在【账户设置】中添加角色,一个账号可充当多个角色且权限是叠加的;也可新增角色自定义分配权限。'},
+              {isshow: false, title:'7、人员离职后如何限制不能再登陆系统?',centent:'答:在【系统管理】中的账户设置中将该账户关闭。'},
+              {isshow: false, title:'8、制造单中的类型可否新增?',centent:'答:不可以。下拉选项为组装与拆件两种。组装即领料生产成品入库, 拆件即将成品拆解成原材料与半成品。'},
+              {isshow: false, title:'9、制造单如何完工与发料?',centent:'答:制造单类型为组装,审核时系统会自动生成原材料的领料单与成品的完工入库单;类型为拆件,审核时会自动生成成品的拆件领料单与原材料的完工入库单'},
+              {isshow: false, title:'10、采购单不需要再交货时要如何操作?',centent:'答:进入采购单列表将该采购单关闭即可。'},
+              {isshow: false, title:'11、新使用系统时如何处理之前的PO?',centent:'答:将未交货的采购单PO 中待交货的数量当作新系统中的采购数量按原采购单号补入系统。'},
+              {isshow: false, title:'12、已交货的采购单没有录入新系统,有退货如何处理?',centent:'答:新增采购验退单, 在备注中写明原PO号。'},
+              {isshow: false, title:'13、单据日期是否可修改? 如今天录单可否将单据日期改为明天?',centent:'答:可以。只要当月没有结账。'},
+              {isshow: false, title:'14、发现上个月有张单据做错了, 可否修改?',centent:'答:若上个月已结账,不允许修改,可本月做其它出入库单据补账, 或请财务人员反结账到上个月,修改后再结账'},
+              {isshow: false, title:'15、供应商录入时将期初应付录错了,到月底对账才发现,怎么办?',centent:'答:可用其它应付平账, 或反审单据,修改期初应付后再审核业务单据。'},
+            ],
+            searchVal:'', //默认输入为空
           }
         },
         methods: {
+          //点击展开
           shows(d,i){
-            d.isshow = !d.isshow
+            d.isshow = !d.isshow;
             let textH =  this.$refs.text[i].offsetHeight;
-            this.$refs.title[i].style.height = textH + 'px'
-          }
+            this.$refs.title[i].style.height = textH + 'px';
+          },
+        },
+        //通过计算属性过滤数据
+        computed:{
+            list: function(){
+                var arrByZM = [];
+                for (var i=0;i<this.arr.length;i++){
+                    if(this.arr[i].title.search(this.searchVal) != -1){
+                        //判断输入框中的值是否可以匹配到数据,如果匹配成功添加到数组
+                        arrByZM.push(this.arr[i]);
+                    }
+                }
+                return arrByZM;
+            }
         }
     }
 </script>
@@ -131,4 +158,9 @@
     -moz-transition: All 0.4s ease-in-out;
     -o-transition: All 0.4s ease-in-out;
 }
+.bz-txttitle {
+  width: 90%;
+  padding-left: 22px;
+  text-indent: -22px;
+}
 </style>

+ 1 - 1
frontend/saas-portal-web/src/components/footer/footer.vue

@@ -65,7 +65,7 @@
 		},
 		methods:{
 			problem(){
-				this.$router.push({path: '/name', query: {isporblem: false}})
+				this.$router.push({name: 'Home', params: {isporblem: false}})
 				this.$store.commit("problemfalse")
 				document.documentElement.scrollTop = 0;
 			}

+ 0 - 4
frontend/saas-portal-web/static/css/main.css

@@ -151,7 +151,6 @@ main > section {
 }
 .ts-box {
     overflow: hidden;
-    /* margin-top: 50px; */
     position: relative;
     padding: 150px 0;
     width: 98%;
@@ -163,9 +162,6 @@ main > section {
 .ts-boximg img {
     width: 65%;
 }
-.ts-lefttext p {
-    text-align: right;
-}
 .ts-title {
     font-family: PingFangSC-Regular !important;
     color: #0D253E !important;

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

@@ -297,6 +297,10 @@ body.launching {
   border-color: #ABDAFF;
 }
 
+.x-keyboard-mode  .x-grid-item-focused .x-grid-cell-inner:before {
+  border: none;
+}
+
 .x-grid-item-over {
   background-color: #bde5f7;
 }

+ 2 - 2
frontend/saas-web/app/view/core/dbfind/types/BankInfoDbfindTrigger.js

@@ -16,14 +16,14 @@ Ext.define('saas.view.core.dbfind.types.BankInfoDbfindTrigger', {
         width: 200
     }],
     dbSearchFields: [{
-        emptyText: '查找资金账户',
+        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
+        width:300       
     }],
     dbColumns: [{
         text: "账户ID",

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

@@ -25,7 +25,7 @@ Ext.define('saas.view.core.dbfind.types.CustomerDbfindTrigger', {
             return "(upper(cu_code) like '%" + v.toUpperCase() + "%' or upper(cu_name) like '%" + v.toUpperCase() + "%')";
         },
         allowBlank: true,
-        columnWidth: 0.25
+        width:300
     }],
     dbColumns: [{
         conditionCode: 'id',

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

@@ -24,7 +24,7 @@ Ext.define('saas.view.core.dbfind.types.EmployeeDbfindTrigger', {
             return "(upper(em_code) like '%"+v.toUpperCase()+"%' or upper(em_name) like '%"+v.toUpperCase()+"%')";
         },
         allowBlank : true, 
-        columnWidth : 0.25
+        width:300
     }],
     //放大镜窗口列表
     dbColumns:[{

+ 1 - 11
frontend/saas-web/app/view/core/dbfind/types/OriOrderMutiDbfindTrigger.js

@@ -12,16 +12,6 @@ Ext.define('saas.view.core.dbfind.types.OriOrderMutiDbfindTrigger', {
         field: 'sl_code',
         width: 150
     }],
-    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
-    }],
     dbSearchFields:[{
         emptyText:'输入源单编号',
         xtype : "textfield",
@@ -30,7 +20,7 @@ Ext.define('saas.view.core.dbfind.types.OriOrderMutiDbfindTrigger', {
             return "(upper(sl_code) like '%"+v.toUpperCase()+"%')";
         },
         allowBlank : true,
-        columnWidth : 0.25
+        columnWidth : 300
     }],
     dbColumns:[{
         "text": "源单id",

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

@@ -23,7 +23,7 @@ Ext.define('saas.view.core.dbfind.types.ProductDbfindTrigger', {
             return "(upper(pr_spec) like '%" + v.toUpperCase()+"%' or upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%')";
         },
         allowBlank : true, 
-        columnWidth : 0.25
+        columnWidth :300
     }],
     dbColumns:[{
         text: "物料ID",

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

@@ -26,7 +26,7 @@ Ext.define('saas.view.core.dbfind.types.ProductMultiDbfindTrigger', {
         xtype: "textfield",
         name: "search",
         allowBlank: true,
-        columnWidth: 0.25,
+        width:300,
         getCondition: function (v) {
             return "(upper(pr_code) like '%" + v.toUpperCase() + "%' or upper(pr_detail) like '%" + v.toUpperCase() + "%' or upper(pr_spec) like '%" + v.toUpperCase() + "%')";
         }

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

@@ -25,7 +25,7 @@ Ext.define('saas.view.core.dbfind.types.VendorDbfindTrigger', {
             return "(upper(ve_code) like '%"+v.toUpperCase()+"%' or upper(ve_name) like '%"+v.toUpperCase()+"%')";
         },
         allowBlank : true, 
-        columnWidth : 0.25
+        width:300
     }],
     //放大镜窗口列表
     dbColumns:[{

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

@@ -22,7 +22,7 @@ Ext.define('saas.view.core.dbfind.types.WarehouseDbfindTrigger', {
         xtype: "textfield",
         name: "wh_code",
         allowBlank: true,
-        columnWidth: 0.25,
+        width:300,
         getCondition: function (v) {
             return "(upper(wh_code) like '%" + v.toUpperCase() + "%' or upper(wh_description) like '%" + v.toUpperCase() + "%')";
         }

+ 0 - 1
frontend/saas-web/app/view/core/form/field/DetailGridField.js

@@ -57,7 +57,6 @@ Ext.define('saas.view.core.form.field.DetailGridField', {
             }],
             normalViewConfig: {
                 deferEmptyText: false,
-                emptyText: '无数据',
             },
             lockedViewConfig: {
                 scrollable: {

+ 0 - 1
frontend/saas-web/app/view/core/query/QueryGridPanel.js

@@ -63,7 +63,6 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
         Ext.apply(me, {
             viewConfig: {
                 deferEmptyText: false,
-                emptyText: '无数据'
             },
             columns: me.initColumns(),
             store: Ext.create('Ext.data.Store', {

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

@@ -438,7 +438,8 @@ Ext.define('saas.view.core.report.ReportPanel', {
                             if(!th.fireEvent('beforequery', th)) {
                                 return;
                             }else {
-                                me.getController().onQuery()
+                                var p = this.up('core-report-reportpanel');
+                                p.getController().onQuery()
                             }
                         }
                     }

+ 4 - 0
frontend/saas-web/app/view/document/customer/BasePanel.js

@@ -81,6 +81,10 @@ Ext.define('saas.view.document.customer.BasePanel', {
             text : "客户编号", 
             width : 150.0, 
             dataIndex : "cu_code"
+        },{
+            text : "客户简称", 
+            width : 150.0, 
+            dataIndex : "cu_shortname"
         }, 
         {
             text : "客户名称", 

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

@@ -34,12 +34,18 @@ Ext.define('saas.view.document.customer.FormPanel', {
         fieldLabel: '客户编号',
         allowBlank: false,
         columnWidth: 0.25
+    },{
+        xtype: 'textfield',
+        name: 'cu_shortname',
+        fieldLabel: '客户简称',
+        allowBlank: true,
+        columnWidth: 0.25
     },{
         xtype: 'textfield',
         name: 'cu_name',
         fieldLabel: '客户名称',
         allowBlank: false,
-        columnWidth: 0.5
+        columnWidth: 0.25
     },{
         editable:false,
         xtype : "remotecombo", 

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

@@ -180,7 +180,7 @@ Ext.define('saas.view.document.kind.ChildForm', {
             },{
                 xtype:'datamulticombo',
                 dataUrl:'/api/account/role/list',
-                fieldLabel: '关联角色',
+                fieldLabel: '岗位角色',
                 name: 'roleNames',
                 allowBlank:true,
                 maxLength: 20,
@@ -321,7 +321,7 @@ Ext.define('saas.view.document.kind.ChildForm', {
             },{
                 xtype:'datamulticombo',
                 dataUrl:'/api/account/role/list',
-                fieldLabel: '关联角色',
+                fieldLabel: '岗位角色',
                 name: 'roleIds',
                 allowBlank:false,
                 maxLength: 30,
@@ -511,7 +511,7 @@ Ext.define('saas.view.document.kind.ChildForm', {
         o = o.substring(0,o.length-1);
 
         if(o==""){
-            saas.util.BaseUtil.showErrorToast('关联角色未选择,无法保存!')
+            saas.util.BaseUtil.showErrorToast('岗位角色未选择,无法保存!')
         }
 
         var _params = {

+ 31 - 31
frontend/saas-web/app/view/document/product/BasePanel.js

@@ -11,21 +11,19 @@ Ext.define('saas.view.document.product.BasePanel', {
     searchField:[{
         xtype : "textfield", 
         name : "pr_code", 
-        width:150, 
-        emptyText:'编号'
-    }, {
-        xtype : "textfield", 
-        name : "pr_detail", 
-        width:150, 
-        emptyText:'名称'
-    }, {
+        width:300, 
+        emptyText:'输入物料编号、名称、型号或规格',
+        getCondition: function (v) {
+            return "(upper(CONCAT(pr_code,'#',pr_detail,'#',pr_spec,'#',pr_orispeccode)) like '%" + v.toUpperCase() + "%')";
+        },
+    },{
         editable:true,
         hiddenBtn:true,
         xtype : "remotecombo", 
         storeUrl: '/api/document/producttype/getCombo',
         name : "pr_kind", 
         emptyText : "物料类型",
-        width:110,
+        width:120,
     }, {
         xtype : "textfield", 
         name : "pr_brand", 
@@ -81,42 +79,46 @@ Ext.define('saas.view.document.product.BasePanel', {
             text : "物料编号", 
             dataIndex : "pr_code", 
             width : 150.0
+        }, {
+            text : "类型", 
+            dataIndex : "pr_kind", 
+            width : 110.0
         }, {
             text : "物料名称", 
             dataIndex : "pr_detail", 
             width : 200.0
+        }, {
+            text : "型号", 
+            dataIndex : "pr_orispeccode", 
+            width : 150.0
         }, {
             text : "规格", 
             dataIndex : "pr_spec", 
             width : 150.0
-        }, {
-            text : "类型", 
-            dataIndex : "pr_kind", 
-            width : 110.0
-        }, {
-            text : "单位", 
-            dataIndex : "pr_unit", 
-            width : 80.0 
-        }, {
+        },{
             text : "品牌", 
             dataIndex : "pr_brand", 
             width : 110.0 
-        }, {
-            text : "库存", 
+        },  {
+            text : "库存", 
             dataIndex : "po_onhand",
             xtype: 'numbercolumn',
-            width : 110.0,
+            width : 120.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
                 var format = '0.' + xr.join();
                 return Ext.util.Format.number(v, format);
             }
+        },{
+            text : "单位", 
+            dataIndex : "pr_unit", 
+            width : 80.0 
         }, {
-            text : "标准单价", 
+            text : "标准定价(元)", 
             dataIndex : "pr_standardprice",
             xtype: 'numbercolumn',
-            width : 110.0,
+            width : 130.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
@@ -124,29 +126,27 @@ Ext.define('saas.view.document.product.BasePanel', {
                 return Ext.util.Format.number(v, format);
             }
         }, {
-            text : "最新采购价", 
+            text : "最新采购价(元)", 
             dataIndex : "pr_purcprice",
             xtype: 'numbercolumn',
-            width : 110.0,
+            width : 140.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
                 var format = '0.' + xr.join();
                 return Ext.util.Format.number(v, format);
-            }, 
-            width : 200.0, 
+            }
         }, {
-            text : "最新出库价", 
+            text : "最新售价(元)", 
             dataIndex : "pr_saleprice",
             xtype: 'numbercolumn',
-            width : 110.0,
+            width : 120.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
                 var format = '0.' + xr.join();
                 return Ext.util.Format.number(v, format);
-            }, 
-            width : 200.0, 
+            }
         }, {
             text : "备注", 
             dataIndex : "pr_text1",

+ 3 - 3
frontend/saas-web/app/view/money/report/CustomerCheck.js

@@ -141,19 +141,19 @@ Ext.define('saas.view.money.report.CustomerCheckCheck', {
         width: 0,
         summaryType: 'cus',
     }, {
-        text: '本期发生',
+        text: '增加应收',
         dataIndex: 'nowamount',
         hidden: true,
         width: 0,
         summaryType: 'cus',
     }, {
-        text: '本期收款',
+        text: '增加预收',
         dataIndex: 'nowpay',
         hidden: true,
         width: 0,
         summaryType: 'cus',
     }, {
-        text: '本期结余',
+        text: '应收余额',
         dataIndex: 'nowbalance',
         hidden: true,
         width: 0,

+ 3 - 3
frontend/saas-web/app/view/money/report/VendorCheck.js

@@ -149,19 +149,19 @@ Ext.define('saas.view.money.report.VendorCheck', {
         width: 0,
         summaryType: 'cus',
     }, {
-        text: '本期发生',
+        text: '增加应付',
         dataIndex: 'nowamount',
         hidden: true,
         width: 0,
         summaryType: 'cus',
     }, {
-        text: '本期付款',
+        text: '增加预付',
         dataIndex: 'nowpay',
         hidden: true,
         width: 0,
         summaryType: 'cus',
     }, {
-        text: '本期结余',
+        text: '应付余额',
         dataIndex: 'nowbalance',
         hidden: true,
         width: 0,

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

@@ -320,23 +320,24 @@ Ext.define('saas.view.purchase.purchase.FormPanel', {
     }, {
         xtype : "textfield", 
         name : "pu_total", 
-        fieldLabel : "单据金额",
+        fieldLabel : "采购金额",
         readOnly:true,
         columnWidth : 0.25,
     },{
-        xtype : "employeeDbfindTrigger", 
+        xtype : "hidden", 
         name : "pu_buyercode", 
-        fieldLabel : "采购员编号",
+        fieldLabel : "采购员编号"
     },{
-        xtype : "textfield", 
+        xtype : "employeeDbfindTrigger", 
         name : "pu_buyername", 
         fieldLabel : "采购员",
         columnWidth : 0.25,
-        readOnly:true
+        defaultValue:saas.util.BaseUtil.getCurrentUser().realname
     },{
         xtype : "hidden", 
         name : "pu_buyerid", 
-        fieldLabel : "采购员ID"
+        fieldLabel : "采购员ID",
+        defaultValue:saas.util.BaseUtil.getCurrentUser().id
     },
     {
         xtype : "hidden", 

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

@@ -20,7 +20,7 @@ Ext.define('saas.view.purchase.purchase.FormPanelController', {
                 }
             },
             // 主表-采购员名称
-            'dbfindtrigger[name=pu_buyercode]':{
+            'dbfindtrigger[name=pu_buyername]':{
                 beforerender:function(f){
                     Ext.apply(f,{
                         //赋值 

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

@@ -295,23 +295,23 @@ Ext.define('saas.view.sale.sale.FormPanel', {
     }, {
         xtype : "textfield", 
         name : "sa_total", 
-        fieldLabel : "单据金额",
+        fieldLabel : "销售金额",
         readOnly:true
     },{
-        xtype : "employeeDbfindTrigger", 
+        xtype : "hidden", 
         name : "sa_sellercode", 
         fieldLabel : "业务员编号",
     },{
-        xtype : "textfield", 
+        xtype : "employeeDbfindTrigger", 
         name : "sa_seller", 
         fieldLabel : "业务员",
-        readOnly:true
+        defaultValue:saas.util.BaseUtil.getCurrentUser().realname
     }, {
         xtype : 'textfield', 
         name : 'sa_sendstatus', 
         fieldLabel : '出货状态', 
         hidden : true,
-        readOnly:true
+        defaultValue:saas.util.BaseUtil.getCurrentUser().id
      },{
         xtype : "hidden", 
         name : "creatorId", 

+ 2 - 2
frontend/saas-web/app/view/sys/account/DataList.js

@@ -89,13 +89,13 @@ Ext.define('saas.view.sys.account.DataList', {
         width : 180.0, 
         xtype : '', 
     },{
-        text : '关联角色id', 
+        text : '岗位角色id', 
         hidden:true,
         dataIndex : 'roleIds', 
         width : 110.0, 
         xtype : '', 
     },{
-        text : '关联角色', 
+        text : '岗位角色', 
         dataIndex : 'roleNames', 
         width : 220.0
     },{

+ 5 - 0
frontend/saas-web/overrides/grid/Panel.js

@@ -0,0 +1,5 @@
+Ext.define('saas.override.grid.Panel', {
+    override: 'Ext.grid.Panel',
+
+    emptyText: '<div class="x-grid-empty-img"></div><div class="x-grid-empty-text">暂无数据</div>',
+});

+ 19 - 0
frontend/saas-web/overrides/grid/Panel.scss

@@ -0,0 +1,19 @@
+.x-grid-empty {
+    height: 90%;
+    max-height: 300px;
+
+    .x-grid-empty-img {
+        height: 100%;
+        max-height: 200px;
+        background: url(/resources/images/grid/empty.png) no-repeat;
+        background-position: center;
+    }
+    
+    .x-grid-empty-text {
+        font-size: 14px;
+        color: #BEBEBE;
+        letter-spacing: 0;
+        text-align: center;
+        line-height: 26px;
+    }
+}

BIN
frontend/saas-web/resources/images/grid/empty.png