You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.5 KiB
JavaScript
90 lines
2.5 KiB
JavaScript
var $table = $('#table');
|
|
var data = [];
|
|
var currPage = 1;
|
|
var gridLimit = 50;
|
|
var hdbjid = getQueryString('gid');
|
|
var _hasZb = 0;
|
|
//船公司下拉框
|
|
|
|
$(function () {
|
|
loadData();
|
|
})
|
|
function loadData(c) {
|
|
_hasZb = 0;
|
|
if (hdbjid == '' || hdbjid == null) {
|
|
return;
|
|
}
|
|
$table.bootstrapTable('destroy');
|
|
var url = '/MvcShipping/MsOpSeaeTD/GetBJDetailsList';
|
|
var param = { gid: hdbjid };
|
|
$.ajax({
|
|
url: url,
|
|
type: 'POST',
|
|
dataType: 'json',
|
|
data: param,
|
|
timeout: 10000,
|
|
cache: false,
|
|
success: function (t) {
|
|
data = [];
|
|
var tdata = eval(t).data;
|
|
var pdata = eval(t).pager;
|
|
data = tdata;
|
|
|
|
$table.bootstrapTable({
|
|
data: data,
|
|
height: 620,
|
|
rowStyle: rowStyle,
|
|
columns: [{
|
|
title: '费用名称',
|
|
field: 'FNAME',
|
|
width: 200,
|
|
formatter: displaycolor
|
|
}
|
|
, {
|
|
title: '费用标准',
|
|
field: 'CARRIERID',
|
|
formatter: displaycolor
|
|
}, {
|
|
title: '币别',
|
|
field: 'USD',
|
|
formatter: displaycolor
|
|
}, {
|
|
title: '单价',
|
|
field: 'RMB',
|
|
formatter: displaycolor
|
|
}, {
|
|
title: '汇率',
|
|
field: 'TOTAL',
|
|
formatter: displaycolor
|
|
}, {
|
|
title: '数量',
|
|
field: 'BJDATE',
|
|
width: 170,
|
|
formatter: displaycolor
|
|
}, {
|
|
title: '免箱天数',
|
|
field: 'FREEDAYS',
|
|
width: 30,
|
|
formatter: displaycolor
|
|
}, {
|
|
title: '报价有效期至',
|
|
field: 'YOUXIAOQI',
|
|
formatter: displaycolor
|
|
}, {
|
|
title: '备注',
|
|
field: 'BEIZHU',
|
|
formatter: displaycolor
|
|
}, {
|
|
field: 'operate',
|
|
title: '操作',
|
|
width: '80px',
|
|
formatter: operateFormatter
|
|
}
|
|
]
|
|
})
|
|
|
|
|
|
}
|
|
})
|
|
}
|