var getCurrentTime = function getCurrentTime() {
return Math.round(new Date().getTime());
}
var now_time = getCurrentTime();
var three_min_time = now_time + 180000;
var action_time = now_time + 86400000;
var end_time = now_time + (86400000 * 7) - 1
// console.log(action_time);
var randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
var random_num = "测试标书" + randomInt(1000, 9999);
function getTimeDate(timestamp) {
unixTimestamp = new Date(timestamp / 1000 * 1000);
commonTime = unixTimestamp.toLocaleString();
return commonTime;
}
time_date = getTimeDate(end_time);
var date_action_time = getTimeDate(action_time).match(/.*\s/);
// var date_end_time = getTimeDate(end_time).match(/.*\s/);
var date_end_time = getTimeDate(end_time).split(' ')[0]
// var r = /^\w+/;
// var reg = /.*\s/;
// var a = time_date.match(/.*\s/);
var randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
var random_n = randomInt(1000, 9999)
// console.log(date_end_time);
// console.log(time_date.split(' ')[0]);
// // var a = time_date.match(r);
// console.log(date_action_time)
// console.log(date_end_time)
// console.log(random_n)
// console.log(getTimeDate(end_time));
fleet_info = [
{
"a": 935,
"b": "邯郸市宏伟运输有限公司"
},
{
"a": 936,
"b": "邯郸万合华恒物流有限公司"
},
{
"a": 938,
"b": "山东中盛物流有限公司"
},
{
"a": 940,
"b": "石家庄鑫盛源商贸有限公司"
},
{
"a": 942,
"b": "邢台市鹏耀运输有限公司"
},
{
"a": 944,
"b": "邢台县欣荣运输有限公司"
},
{
"a": 962,
"b": "江苏五城智慧物流管理有限公司"
},
{
"a": 963,
"b": "山西诺维兰集团运城汽车运输有限公司"
},
{
"a": 964,
"b": "邢台市宾通危化运输有限公司"
},
{
"a": 965,
"b": "邢台顺旗危险货物运输有限公司"
},
{
"a": 966,
"b": "运城市安润达物流有限公司"
},
{
"a": 998,
"b": "合格考反应快九月份剑歌江湖"
},
{
"a": 1000,
"b": "杨秀芳物流"
},
{
"a": 1001,
"b": "李荣危化品物流有限公司"
},
{
"a": 1003,
"b": "李想危化品物流有限公司"
},
{
"a": 1004,
"b": "测试调度用的额公司新的数据啊啊啊啊"
},
{
"a": 1005,
"b": "这个是调度的公司名称说实话我也不知道在哪"
}
]
var list = new Array();
for (i in fleet_info) {
var fleet_id = fleet_info[i].a;
list.push(fleet_id);
}
// console.log(list)
line_info = {
"a": 18,
"b": 993,
"c": "江苏省",
"d": "南京市",
"f": 278000,
"g": 13500,
"h": 1609311123659,
"i": "南京鸿运危化品贸易有限公司",
"j": 428741,
"l": "赵修为",
"m": "丙酮",
"t": 739,
"u": 740,
"v": "孵鹰大厦",
"w": "观音机场"
}
var new_line_info = { "c": line_info.c, "d": 15000, "e": line_info.f / 1000, "f": line_info.d, "g": line_info.g, "h": 0, "i": 0, "j": "", "k": line_info.i, "l": line_info.a, "r": line_info.b, "u": line_info.v, "v": line_info.w }
new_line_info.d = 180000;
last_line_info =JSON.stringify(new_line_info)
console.log(last_line_info);
console