|
|
@ -25,13 +25,13 @@ |
|
|
|
<label>关联单号:</label> |
|
|
|
<input type="text" name="salesOrderCode"/> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<label>客户ID:</label> |
|
|
|
<input type="text" name="customerId"/> |
|
|
|
</li> |
|
|
|
<!-- <li>--> |
|
|
|
<!-- <label>客户ID:</label>--> |
|
|
|
<!-- <input type="text" name="customerId"/>--> |
|
|
|
<!-- </li>--> |
|
|
|
<li> |
|
|
|
<label>客户名称:</label> |
|
|
|
<input type="text" name="customerName"/> |
|
|
|
<select type="text" name="customerName"></select> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<label>借方科目:</label> |
|
|
@ -103,6 +103,7 @@ |
|
|
|
var currencyTypeDatas = [[${@dict.getType('sys_common_currency')}]]; |
|
|
|
var financialDeliverStatusDatas = [[${@dict.getType('financial_deliver_status')}]]; |
|
|
|
var prefix = ctx + "financial/receivables"; |
|
|
|
var prefix1 = ctx + "system/customer"; |
|
|
|
var selectedChildRows = []; // 用于存储各个子表的选中行 |
|
|
|
var activeTableId = null; |
|
|
|
$(function() { |
|
|
@ -208,6 +209,7 @@ |
|
|
|
|
|
|
|
}; |
|
|
|
$.table.init(options); |
|
|
|
selectCustomerAll(); |
|
|
|
}); |
|
|
|
|
|
|
|
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> |
|
|
|
</body> |
|
|
|
</html> |