Browse Source

[feat]

财务管理 应收账款
修改应收账款列表页面搜索栏,添加客户名称下拉框;
新增客户名称下拉框初始化方法;
修改应收账款列表查询mapper方法,添加客户名称查询条件;
dev
王晓迪 2 months ago
parent
commit
849607617b
  1. 1
      ruoyi-admin/src/main/resources/mapper/financial/FinancialReceivablesMapper.xml
  2. 29
      ruoyi-admin/src/main/resources/templates/financial/receivables/receivables.html

1
ruoyi-admin/src/main/resources/mapper/financial/FinancialReceivablesMapper.xml

@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="openBank != null and openBank != ''"> and open_bank = #{openBank}</if> <if test="openBank != null and openBank != ''"> and open_bank = #{openBank}</if>
<if test="openAccount != null and openAccount != ''"> and open_account = #{openAccount}</if> <if test="openAccount != null and openAccount != ''"> and open_account = #{openAccount}</if>
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId}</if> <if test="customerId != null and customerId != ''"> and customer_id = #{customerId}</if>
<if test="customerName != null and customerName != ''"> and customer_name = #{customerName}</if>
<if test="contractNumber != null and contractNumber != ''"> and contract_number = #{contractNumber}</if> <if test="contractNumber != null and contractNumber != ''"> and contract_number = #{contractNumber}</if>
<if test="currencyType != null and currencyType != ''"> and currency_type = #{currencyType}</if> <if test="currencyType != null and currencyType != ''"> and currency_type = #{currencyType}</if>
<if test="businessMembers != null and businessMembers != ''"> and business_members = #{businessMembers}</if> <if test="businessMembers != null and businessMembers != ''"> and business_members = #{businessMembers}</if>

29
ruoyi-admin/src/main/resources/templates/financial/receivables/receivables.html

@ -25,13 +25,13 @@
<label>关联单号:</label> <label>关联单号:</label>
<input type="text" name="salesOrderCode"/> <input type="text" name="salesOrderCode"/>
</li> </li>
<li> <!-- <li>-->
<label>客户ID:</label> <!-- <label>客户ID:</label>-->
<input type="text" name="customerId"/> <!-- <input type="text" name="customerId"/>-->
</li> <!-- </li>-->
<li> <li>
<label>客户名称:</label> <label>客户名称:</label>
<input type="text" name="customerName"/> <select type="text" name="customerName"></select>
</li> </li>
<li> <li>
<label>借方科目:</label> <label>借方科目:</label>
@ -103,6 +103,7 @@
var currencyTypeDatas = [[${@dict.getType('sys_common_currency')}]]; var currencyTypeDatas = [[${@dict.getType('sys_common_currency')}]];
var financialDeliverStatusDatas = [[${@dict.getType('financial_deliver_status')}]]; var financialDeliverStatusDatas = [[${@dict.getType('financial_deliver_status')}]];
var prefix = ctx + "financial/receivables"; var prefix = ctx + "financial/receivables";
var prefix1 = ctx + "system/customer";
var selectedChildRows = []; // 用于存储各个子表的选中行 var selectedChildRows = []; // 用于存储各个子表的选中行
var activeTableId = null; var activeTableId = null;
$(function() { $(function() {
@ -208,6 +209,7 @@
}; };
$.table.init(options); $.table.init(options);
selectCustomerAll();
}); });
initChildTable = function(index, row, $detail) { initChildTable = function(index, row, $detail) {
@ -435,6 +437,23 @@
}); });
}); });
} }
function selectCustomerAll(){
$.ajax({
url: prefix1 + '/matchCustomerList',
type: 'post',
async: false,
success: function (result) {
customerList = result.data;
var selectCustomer = $("select[name='customerName']");
var selectHtml = '<option value="">所有</option>';
customerList.forEach(function (user) {
selectHtml += '<option value="' + user.enterpriseName + '">' + user.enterpriseName + '</option>';
});
selectCustomer.html(selectHtml);
}
});
}
</script> </script>
</body> </body>
</html> </html>
Loading…
Cancel
Save