|
@@ -0,0 +1,127 @@
|
|
|
+{{define "projectListDetail.html"}}
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
|
|
|
+ <script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.js"></script>
|
|
|
+ <title>项目列表详情</title>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<input type="text" id="winners" placeholder="请输入中标企业名">
|
|
|
+<button type="button" id="projectListDetailBtn">提交</button>
|
|
|
+<div id="resultContent"></div>
|
|
|
+<div id="tableDiv" hidden>
|
|
|
+ <table id="tableId" border="1px solid" cellspacing="0" cellpadding="0" >
|
|
|
+ <tr>
|
|
|
+ <th style="width: 2%;">序号</th>
|
|
|
+ <th style="width: 5%">项目标识</th>
|
|
|
+ <th style="width: 4%">项目名称</th>
|
|
|
+ <th style="width: 5%">项目代码</th>
|
|
|
+ <th style="width: 15%">中标单位</th>
|
|
|
+ <th style="width: 5%">采购单位</th>
|
|
|
+ <th style="width: 5%">采购单位电话</th>
|
|
|
+ <th style="width: 5%">采购单位联系人</th>
|
|
|
+ <th style="width: 5%">采购单位行业</th>
|
|
|
+ <th style="width: 5%">招标日期</th>
|
|
|
+ <th style="width: 5%">中标日期</th>
|
|
|
+ <th style="width: 5%">中标金额(元)</th>
|
|
|
+ <th style="width: 5%">预算金额(元)</th>
|
|
|
+ <th style="width: 5%">省份</th>
|
|
|
+ <th style="width: 5%">城市</th>
|
|
|
+ <th style="width: 15%">中标信息列表</th>
|
|
|
+ <th style="width: 15%">原链接</th>
|
|
|
+ <th style="width: 15%">剑鱼标讯链接</th>
|
|
|
+ </tr>
|
|
|
+ <tbody class="box">
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+</div>
|
|
|
+<script>
|
|
|
+
|
|
|
+ // 获取页面跳转传过来的参数
|
|
|
+ function GetQueryString(name) {
|
|
|
+ var rs = new RegExp("(^|)" + name + "=([^&]*)(&|$)", "gi").exec(LocString);
|
|
|
+ var tmp;
|
|
|
+ if (tmp = rs) {
|
|
|
+ return decodeURI(tmp[2])
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ var appid = GetQueryString("appId");
|
|
|
+ var key = GetQueryString("key");
|
|
|
+ function submit(param, rType, url, hearders, str) {
|
|
|
+ $.ajax({
|
|
|
+ url: url,
|
|
|
+ type: rType,
|
|
|
+ headers: hearders,
|
|
|
+ data: param,
|
|
|
+ success: function (r) {
|
|
|
+ if (r.data) {
|
|
|
+ $("#tableDiv").show();
|
|
|
+ $("#resultContent").text("");
|
|
|
+ var str = "";
|
|
|
+ for (var i = 0; i < r.data.length; i++) {
|
|
|
+ var item = r.data[i]
|
|
|
+ str += '<tr>';
|
|
|
+ str += '<td >' + (i + 1) + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.projectId + '</td>';
|
|
|
+ str += '<td >' + item.projectName + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.projectCode + '</td>';
|
|
|
+ str += '<td >' + item.winner + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.buyer + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.buyerTel + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.buyerPerson + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.buyerClass + '</td>';
|
|
|
+ if (item.tenderDate == undefined || item.tenderDate == "") {
|
|
|
+ str += '<td ></td>';
|
|
|
+ } else {
|
|
|
+ str += '<td >' + item.tenderDate + '</td>';
|
|
|
+ }
|
|
|
+ if (item.bidDate == undefined || item.bidDate == "") {
|
|
|
+ str += '<td></td>';
|
|
|
+ } else {
|
|
|
+ str += '<td class="td">' + item.bidDate + '</td>';
|
|
|
+ }
|
|
|
+ str += '<td style="word-break:break-all">' + item.bidAmount + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.budget + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.province + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.city + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + JSON.stringify(item.package) + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.url + '</td>';
|
|
|
+ str += '<td style="word-break:break-all">' + item.jyUrl + '</td>';
|
|
|
+ str += '</tr>';
|
|
|
+ }
|
|
|
+ str = str.replaceAll("undefined", "")
|
|
|
+ str = str.replaceAll("null", "")
|
|
|
+ $(".box").html(str);
|
|
|
+ } else {
|
|
|
+ $("#resultContent").text(JSON.stringify(r));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ $("#projectListDetailBtn").on("click", function () {
|
|
|
+
|
|
|
+ var param = {
|
|
|
+ "app_id": appid,
|
|
|
+ "winner": $("#winners").val()
|
|
|
+ };
|
|
|
+ var url = "/sfis/api/v1/projectListDetail";
|
|
|
+ var rType = "post";
|
|
|
+ var now = new Date().getTime();
|
|
|
+ var token = md5(appid + Math.round(now / 1000) + key);
|
|
|
+ var hearders = {
|
|
|
+ "timestamp": "" + Math.round(now / 1000),
|
|
|
+ "token": token
|
|
|
+ }
|
|
|
+ $(".box").html("");
|
|
|
+ $("#resultContent").text("");
|
|
|
+ submit(param, rType, url, hearders, "listDetail");
|
|
|
+ })
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|
|
|
+{{end}}
|