|
|
@@ -16,7 +16,12 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { |
|
|
|
page.search(queryJson); |
|
|
|
}, 250, 500); |
|
|
|
$('#ContractId').lrDataSourceSelect({ code: 'ContractInfo',value: 'id',text: 'name' }); |
|
|
|
$('#ContractId').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/CustomFunction/ContractStandingBook/GetList2', |
|
|
|
value: "id", |
|
|
|
text: "contract_name", |
|
|
|
}); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
@@ -75,14 +80,14 @@ var bootstrap = function ($, learun) { |
|
|
|
headData: [ |
|
|
|
{ label: "合同名称", name: "ContractId", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op,$cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'ContractInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'id', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/CustomFunction/ContractStandingBook/GetList2', |
|
|
|
key: value, |
|
|
|
keyId: 'id', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['contract_name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "项目已支付金额", name: "PayAmount", width: 100, align: "left"}, |
|
|
|