diff --git a/static/js/project/announcementList/winTheBiddingDetail.js b/static/js/project/announcementList/winTheBiddingDetail.js index a9ddc76..ff852ef 100644 --- a/static/js/project/announcementList/winTheBiddingDetail.js +++ b/static/js/project/announcementList/winTheBiddingDetail.js @@ -116,6 +116,38 @@ define(['jquery', "template", "Tools", "announApi", "paging", 'swiper'], functio module.data.announcementInformationDetail.biddingType = content.biddingType; //竞价方式字典 tools.doGet(Dictionaries+'/tenderbid_type', {}, module.biddingTypeDictionaries,true); + //中标情况字典 + tools.doGet(Dictionaries+'/tender_deal_type', {}, module.dealTypeDictionaries,true); + } + } + + //中标情况 + module.dealTypeDictionaries = function (data) { + if (data.code == 200) { + var content = data.data; + if (module.data.announcementInformationDetail.dealType){ + var dealType = content[(module.data.announcementInformationDetail.dealType-1)].dictLabel; + module.data.announcementInformationDetail.dealType = dealType; + if(dealType == '未成功'){ + //失败原因字典 + tools.doGet(Dictionaries+'/deal_fail_reason', {}, module.dealFailReasonDictionaries,true); + } + } + var announcementInformationData = template('announcementInformationData', module.data); + $("#announcementInformationContent").html(announcementInformationData); + } + } + + //失败原因 + module.dealFailReasonDictionaries = function (data) { + if (data.code == 200) { + var content = data.data; + if (module.data.announcementInformationDetail.dealFailReason){ + var dealFailReason = content[(module.data.announcementInformationDetail.dealFailReason-1)].dictLabel; + module.data.announcementInformationDetail.dealFailReason = dealFailReason; + var announcementInformationData = template('announcementInformationData', module.data); + $("#announcementInformationContent").html(announcementInformationData); + } } } diff --git a/view/announcement/announcement.html b/view/announcement/announcement.html index 27e39a9..db8a194 100644 --- a/view/announcement/announcement.html +++ b/view/announcement/announcement.html @@ -148,7 +148,7 @@ 成交公告 鉴证公告 招标公告 - 中标公告 + 招标结果
{{# value.dealTime}}
-招标方:{{# value.tenderName}}
+ {{if value.dealType == '1'}} +中标方:{{# value.tenderName}}
+ {{else}} +招标失败
+ {{/if}} {{/each}} diff --git a/view/announcement/winTheBiddingDetail.html b/view/announcement/winTheBiddingDetail.html index 31ddb9f..6d5770e 100644 --- a/view/announcement/winTheBiddingDetail.html +++ b/view/announcement/winTheBiddingDetail.html @@ -140,9 +140,10 @@中标公告>中标详情
+招标结果>结果详情