7.8 党建攻坚修改标签页名称
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<script type='text/javascript' src="../jquery.js"></script>
|
||||
<script type='text/javascript' src="../officecontrol/jquery.js"></script>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>开标大厅-招标采购中心</title>
|
||||
<link href="css/bidOpening.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--内容区-->
|
||||
<div>
|
||||
@ -23,18 +25,18 @@
|
||||
<div class="bidLeft">
|
||||
<p>当前时间:</p>
|
||||
<p id="dateTime">
|
||||
<span></span>/
|
||||
<span></span>/
|
||||
<span></span>
|
||||
<span></span>:
|
||||
<span></span>:
|
||||
<span></span>
|
||||
<span></span>/
|
||||
<span></span>/
|
||||
<span></span>
|
||||
<span></span>:
|
||||
<span></span>:
|
||||
<span></span>
|
||||
</p>
|
||||
</div>
|
||||
<!--//当前时间 class="tableBlock"-->
|
||||
<div class="tableBlock">
|
||||
<table class="bidOpeningTable" cellpadding="0" cellspacing="0">
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="10%">序号</th>
|
||||
@ -46,7 +48,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="dataDev">
|
||||
<tr style="height: 0px;">
|
||||
<tr style="height: 0px;">
|
||||
<th width="10%"></th>
|
||||
<th width="21%"></th>
|
||||
<th width="15%"></th>
|
||||
@ -54,7 +56,7 @@
|
||||
<th width="10%"></th>
|
||||
<th width="*"></th>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@ -79,7 +81,7 @@
|
||||
var roleCode = role.roleCode;
|
||||
var tpId = obj.id;
|
||||
var proMethod = obj.bidMethodDict;
|
||||
if(proMethod==="procurement_mode_1"||proMethod==="procurement_mode_2"){
|
||||
if (proMethod === "procurement_mode_1" || proMethod === "procurement_mode_2") {
|
||||
$("#bdname").text("标段名称");
|
||||
$("#bdnumber").text("标段编号");
|
||||
} else {
|
||||
@ -88,71 +90,71 @@
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url:"/api/biz-service-ebtp-opening/v1/bizbidopenroom/openRoomList/"+tpId,
|
||||
data:{
|
||||
pageNo:"1",
|
||||
pageSize:"1000",
|
||||
roomType:roomType
|
||||
url: "/api/biz-service-ebtp-opening/v1/bizbidopenroom/openRoomList/" + tpId,
|
||||
data: {
|
||||
pageNo: "1",
|
||||
pageSize: "1000",
|
||||
roomType: roomType
|
||||
},
|
||||
headers:{
|
||||
"Authorization":token
|
||||
headers: {
|
||||
"Authorization": token
|
||||
},
|
||||
type:"GET",
|
||||
success:function(re){
|
||||
|
||||
type: "GET",
|
||||
success: function (re) {
|
||||
|
||||
var list = re.data.records;
|
||||
var tr = "";
|
||||
for(var i = 0 ; i < list.length ; i++){
|
||||
tr=tr+"<tr>";
|
||||
tr=tr+"<td>"+(i+1)+"</td>";
|
||||
tr=tr+"<td>"+(list[i].sectionName)+"</td>";
|
||||
tr=tr+"<td>"+(list[i].sectionNo)+"</td>";
|
||||
tr=tr+"<td>"+(list[i].opingTime)+"</td>";
|
||||
tr=tr+"<td>"+(getRoomStateValue(list[i].roomState))+"</td>";
|
||||
tr=tr+"<td>";
|
||||
if(list[i].roomState!="9"){
|
||||
tr=tr+"<button type='button' onClick=onClickToOpenRoom('"+list[i].assessRoomId+"',"+list[i].turnSort+",'"+list[i].id+"',"+list[i].roomType+","+list[i].roomState+") class='bidBtn01'>在线唱标</button>";
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
tr = tr + "<tr>";
|
||||
tr = tr + "<td>" + (i + 1) + "</td>";
|
||||
tr = tr + "<td>" + (list[i].sectionName) + "</td>";
|
||||
tr = tr + "<td>" + (list[i].sectionNo) + "</td>";
|
||||
tr = tr + "<td>" + (list[i].opingTime) + "</td>";
|
||||
tr = tr + "<td>" + (getRoomStateValue(list[i].roomState)) + "</td>";
|
||||
tr = tr + "<td>";
|
||||
if (list[i].roomState != "9") {
|
||||
tr = tr + "<button type='button' onClick=onClickToOpenRoom('" + list[i].assessRoomId + "'," + list[i].turnSort + ",'" + list[i].id + "'," + list[i].roomType + "," + list[i].roomState + ") class='bidBtn01'>在线唱标</button>";
|
||||
}
|
||||
if(roleCode=="ebtp-agency-project-manager"||roleCode=="ebtp-purchase"){
|
||||
if (roleCode == "ebtp-agency-project-manager" || roleCode == "ebtp-purchase") {
|
||||
var openTime = list[i].opingTime;
|
||||
tr=tr+"<button type='button' onClick=onClickDown('"+list[i].id+"','"+list[i].sectionId+"') class='bidBtn02'>导出投递记录</button></td>";
|
||||
|
||||
tr = tr + "<button type='button' onClick=onClickDown('" + list[i].id + "','" + list[i].sectionId + "') class='bidBtn02'>导出投递记录</button></td>";
|
||||
|
||||
}
|
||||
tr=tr+"</tr>";
|
||||
tr = tr + "</tr>";
|
||||
}
|
||||
$("#dataDev").html("");
|
||||
$("#dataDev").append("<tr style='height: 0px;' id='dataTr'></tr>");
|
||||
$("#dataTr").append("<th width='10%'></th>")
|
||||
.append("<th width='21%'></th>")
|
||||
.append("<th width='15%'></th>")
|
||||
.append("<th width='15%'></th>")
|
||||
.append("<th width='10%'></th>")
|
||||
.append("<th width='*'></th>");
|
||||
.append("<th width='21%'></th>")
|
||||
.append("<th width='15%'></th>")
|
||||
.append("<th width='15%'></th>")
|
||||
.append("<th width='10%'></th>")
|
||||
.append("<th width='*'></th>");
|
||||
$("#dataDev").append(tr);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
function getRoomStateValue(state){
|
||||
|
||||
function getRoomStateValue(state) {
|
||||
// 0未开标 1、开标 2、唱标 3、唱标结束 4、取消开标'
|
||||
var value = "";
|
||||
if(state=="0"){
|
||||
value ="未开标";
|
||||
if (state == "0") {
|
||||
value = "未开标";
|
||||
}
|
||||
if(state=="1"){
|
||||
value ="已开标";
|
||||
if (state == "1") {
|
||||
value = "已开标";
|
||||
}
|
||||
if(state=="2"){
|
||||
value ="唱标";
|
||||
if (state == "2") {
|
||||
value = "唱标";
|
||||
}
|
||||
if(state=="3"){
|
||||
value ="唱标结束";
|
||||
}
|
||||
if(state=="4"){
|
||||
value ="取消开标";
|
||||
}
|
||||
if(state=="9"){
|
||||
value ="异常处理";
|
||||
if (state == "3") {
|
||||
value = "唱标结束";
|
||||
}
|
||||
if (state == "4") {
|
||||
value = "取消开标";
|
||||
}
|
||||
if (state == "9") {
|
||||
value = "异常处理";
|
||||
}
|
||||
return value;
|
||||
};
|
||||
@ -163,14 +165,14 @@
|
||||
var m = 0;
|
||||
var s = 0;
|
||||
var timestamp = 0;
|
||||
function getTime(){
|
||||
function getTime() {
|
||||
$.ajax({
|
||||
url:"/api/biz-service-ebtp-extend/v1/timeService/getServiceSystemTime",
|
||||
headers:{
|
||||
"Authorization":token
|
||||
url: "/api/biz-service-ebtp-extend/v1/timeService/getServiceSystemTime",
|
||||
headers: {
|
||||
"Authorization": token
|
||||
},
|
||||
type:"GET",
|
||||
success:function(re){
|
||||
type: "GET",
|
||||
success: function (re) {
|
||||
n = re.data.year;
|
||||
y = re.data.month;
|
||||
t = re.data.date;
|
||||
@ -179,65 +181,65 @@
|
||||
s = re.data.second;
|
||||
timestamp = re.data.timestamp;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
getTime();
|
||||
setInterval(getTime, 30000);
|
||||
|
||||
function time() {
|
||||
s = s+1;
|
||||
if(s==60){
|
||||
s = s + 1;
|
||||
if (s == 60) {
|
||||
s = 1;
|
||||
m=m+1;
|
||||
m = m + 1;
|
||||
}
|
||||
if(m==60){
|
||||
if (m == 60) {
|
||||
m = 1;
|
||||
h=h+1;
|
||||
h = h + 1;
|
||||
}
|
||||
if(h==24){
|
||||
if (h == 24) {
|
||||
h = 0;
|
||||
t = t+1;
|
||||
t = t + 1;
|
||||
}
|
||||
$('#dateTime span').eq(0).html(n);
|
||||
$('#dateTime span').eq(1).html(y<10?"0"+y:y);
|
||||
$('#dateTime span').eq(2).html(t<10?"0"+t:t);
|
||||
$('#dateTime span').eq(3).html(h<10?"0"+h:h);
|
||||
$('#dateTime span').eq(4).html(m<10?"0"+m:m);
|
||||
$('#dateTime span').eq(5).html(s<10?"0"+s:s);
|
||||
for (var i = 0; i < $('#dateTime').length; i++) {
|
||||
if ($('div').eq(i).text().length == 1) {
|
||||
$('div').eq(i).html(function(index, html) {
|
||||
return 0 + html;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
time();
|
||||
setInterval(time, 1000);
|
||||
|
||||
function onClickToOpenRoom(aa,bb,cc,roomType,roomState){
|
||||
if(roomState==0){
|
||||
window.open("countDown.html?aa="+aa+"&bb="+bb+"&cc="+cc+"&roomType="+roomType);
|
||||
}else if(roomState>0){
|
||||
window.open("/room/index?aa="+aa+"&bb="+bb+"&roomType="+roomType);
|
||||
$('#dateTime span').eq(0).html(n);
|
||||
$('#dateTime span').eq(1).html(y < 10 ? "0" + y : y);
|
||||
$('#dateTime span').eq(2).html(t < 10 ? "0" + t : t);
|
||||
$('#dateTime span').eq(3).html(h < 10 ? "0" + h : h);
|
||||
$('#dateTime span').eq(4).html(m < 10 ? "0" + m : m);
|
||||
$('#dateTime span').eq(5).html(s < 10 ? "0" + s : s);
|
||||
for (var i = 0; i < $('#dateTime').length; i++) {
|
||||
if ($('div').eq(i).text().length == 1) {
|
||||
$('div').eq(i).html(function (index, html) {
|
||||
return 0 + html;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//window.open("http://10.242.31.158:18022/room/index?aa=1369571546133168128&bb=1&roomType=1");
|
||||
}
|
||||
function onClickDown(id,bsId){
|
||||
window.open("/api/biz-service-ebtp-opening/v1/bizbidopenroom/exportTenderRecords/"+bsId+"?roomType="+roomType);
|
||||
}
|
||||
time();
|
||||
setInterval(time, 1000);
|
||||
|
||||
function getQueryVariable(variable)
|
||||
{
|
||||
function onClickToOpenRoom(aa, bb, cc, roomType, roomState) {
|
||||
if (roomState == 0) {
|
||||
window.open("countDown.html?aa=" + aa + "&bb=" + bb + "&cc=" + cc + "&roomType=" + roomType);
|
||||
} else if (roomState > 0) {
|
||||
window.open("/room/index?aa=" + aa + "&bb=" + bb + "&roomType=" + roomType);
|
||||
}
|
||||
|
||||
//window.open("http://10.242.31.158:18022/room/index?aa=1369571546133168128&bb=1&roomType=1");
|
||||
}
|
||||
function onClickDown(id, bsId) {
|
||||
window.open("/api/biz-service-ebtp-opening/v1/bizbidopenroom/exportTenderRecords/" + bsId + "?roomType=" + roomType);
|
||||
}
|
||||
|
||||
function getQueryVariable(variable) {
|
||||
var query = window.location.search.substring(1);
|
||||
var vars = query.split("&");
|
||||
for (var i=0;i<vars.length;i++) {
|
||||
var pair = vars[i].split("=");
|
||||
if(pair[0] == variable){return pair[1];}
|
||||
for (var i = 0; i < vars.length; i++) {
|
||||
var pair = vars[i].split("=");
|
||||
if (pair[0] == variable) { return pair[1]; }
|
||||
}
|
||||
return(false);
|
||||
return (false);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user