|
|
@@ -393,7 +393,7 @@
|
|
|
</div>
|
|
|
<div class="form-block single-price">
|
|
|
<span>单价预算</span>
|
|
|
- <select ng-model="seek.currency">
|
|
|
+ <select ng-model="seek.currency" ng-init="seek.currency='RMB'">
|
|
|
<option value="RMB">¥</option>
|
|
|
<option value="USD">$</option>
|
|
|
</select>
|
|
|
@@ -413,7 +413,7 @@
|
|
|
<!--搜索时间筛选-->
|
|
|
<div class="screen" style="clear: both;background: #f5f8fe;height: 40px;margin-bottom: 15px;margin-top: 5px;padding-top: 4px;padding-right: 11px;">
|
|
|
<div class="fl">
|
|
|
- <input type="checkbox"> 有现货
|
|
|
+ <input type="checkbox" ng-model="isMallGoods" ng-change="onSearch()"> 有现货
|
|
|
截止时间
|
|
|
<select class="form-control select-adder" ng-model="deadline" ng-change="onSearch()" ng-init="deadline='全部'">
|
|
|
<option value="全部">全部</option>
|
|
|
@@ -469,7 +469,8 @@
|
|
|
<th width="99">生产日期</th>
|
|
|
<th width="76">截止时间</th>
|
|
|
<th width="81">
|
|
|
- <select class="select-adder" ng-model="status" ng-init="status=200" ng-change="onSearch()">
|
|
|
+ <select class="select-adder" ng-model="searchStatus" ng-change="onSearch()">
|
|
|
+ <option value="0">全部</option>
|
|
|
<option value="200">待报价</option>
|
|
|
<option value="201">已报价</option>
|
|
|
<option value="202">已采纳</option>
|
|
|
@@ -488,18 +489,22 @@
|
|
|
<td ng-bind="seek.encapsulation">盘装</td>
|
|
|
<td ng-bind="seek.produceDate">2012-12-12</td>
|
|
|
<td>剩余 <span class="red-text">8</span> 天</td>
|
|
|
- <td>已报价</td>
|
|
|
+ <td ng-switch="seek.status">
|
|
|
+ <span ng-switch-when="200" style="color:red;">待报价</span>
|
|
|
+ <span ng-switch-when="201">已报价</span>
|
|
|
+ <span ng-switch-when="202" style="color:green;">已采纳</span>
|
|
|
+ </td>
|
|
|
<td class="operate-seek">
|
|
|
- <span ng-show="!seek.$status || seek.$status == 0" ng-click="setSeekStatus(seek, 2)">查看报价 <i class="fa fa-angle-double-down"></i></span>
|
|
|
- <span ng-show="seek.$status && (seek.$status == 1 || seek.$status == 2)" ng-click="setSeekStatus(seek, 0)">收起 <i class="fa fa-angle-double-up"></i></span>
|
|
|
+ <span ng-if="seek.offerAmount>0" ng-show="!seek.$status || seek.$status == 0" ng-click="setSeekStatus(seek, 2)">查看报价 <i class="fa fa-angle-double-down"></i></span>
|
|
|
+ <span ng-if="seek.offerAmount>0" ng-show="seek.$status && (seek.$status == 1 || seek.$status == 2)" ng-click="setSeekStatus(seek, 0)">收起 <i class="fa fa-angle-double-up"></i></span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr class="expand-row" ng-if="seek.$status == 1 || seek.$status == 2">
|
|
|
<td colspan="10">
|
|
|
<div>
|
|
|
<div class="switch-line">
|
|
|
- <a ng-class="{'active': seek.$status == 1}" ng-click="setSeekStatus(seek, 1)">商城现货(<span>60</span>)</a>
|
|
|
- <a ng-class="{'active': seek.$status == 2}" ng-click="setSeekStatus(seek, 2)">当前报价(<span>110</span>)</a>
|
|
|
+ <a ng-class="{'active': seek.$status == 1}" ng-click="setSeekStatus(seek, 1)">商城现货(<span ng-bind="goodsCount"></span>)</a>
|
|
|
+ <a ng-class="{'active': seek.$status == 2}" ng-click="setSeekStatus(seek, 2)">当前报价(<span ng-bind="offerCount"></span>)</a>
|
|
|
</div>
|
|
|
<div ng-show="seek.$status == 1">
|
|
|
<table>
|
|
|
@@ -519,97 +524,19 @@
|
|
|
<div class="seek-list">
|
|
|
<table>
|
|
|
<tbody>
|
|
|
- <tr>
|
|
|
+ <tr ng-repeat="go in goods">
|
|
|
<td width="68"><input type="checkbox"></td>
|
|
|
- <td width="103">哈哈哈</td>
|
|
|
- <td width="126" class="red-text">4-6</td>
|
|
|
- <td width="104" class="red-text">$123</td>
|
|
|
- <td width="137">2012-12-12</td>
|
|
|
- <td width="111">21412</td>
|
|
|
- <td width="164" class="input-number"><span>-</span><input type="number"><span>+</span></td>
|
|
|
+ <td width="103" ng-bind="go.enterpriseName">哈哈哈</td>
|
|
|
+ <td width="126" class="red-text" ng-bind="go.minDelivery+'-'+go.maxDelivery">4-6</td>
|
|
|
+ <td width="104" class="red-text" ng-bind="go.currencyName">$123</td>
|
|
|
+ <td width="137" ng-bind="go.produceDate">2012-12-12</td>
|
|
|
+ <td width="111" ng-bind="go.reserve">21412</td>
|
|
|
+ <td width="164" class="input-number"><span>-</span><input type="number" ng-bind="go.minBuyQty"><span>+</span></td>
|
|
|
<td width="186" class="operate">
|
|
|
<a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
<span>立即购买</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <td><input type="checkbox"></td>
|
|
|
- <td>哈哈哈</td>
|
|
|
- <td class="red-text">4-6</td>
|
|
|
- <td class="red-text">$123</td>
|
|
|
- <td>2012-12-12</td>
|
|
|
- <td>21412</td>
|
|
|
- <td class="input-number"><span>-</span><input type="number"><span>+</span></td>
|
|
|
- <td class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td><input type="checkbox"></td>
|
|
|
- <td>哈哈哈</td>
|
|
|
- <td class="red-text">4-6</td>
|
|
|
- <td class="red-text">$123</td>
|
|
|
- <td>2012-12-12</td>
|
|
|
- <td>21412</td>
|
|
|
- <td class="input-number"><span>-</span><input type="number"><span>+</span></td>
|
|
|
- <td class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td><input type="checkbox"></td>
|
|
|
- <td>哈哈哈</td>
|
|
|
- <td class="red-text">4-6</td>
|
|
|
- <td class="red-text">$123</td>
|
|
|
- <td>2012-12-12</td>
|
|
|
- <td>21412</td>
|
|
|
- <td class="input-number"><span>-</span><input type="number"><span>+</span></td>
|
|
|
- <td class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td><input type="checkbox"></td>
|
|
|
- <td>哈哈哈</td>
|
|
|
- <td class="red-text">4-6</td>
|
|
|
- <td class="red-text">$123</td>
|
|
|
- <td>2012-12-12</td>
|
|
|
- <td>21412</td>
|
|
|
- <td class="input-number"><span>-</span><input type="number"><span>+</span></td>
|
|
|
- <td class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td><input type="checkbox"></td>
|
|
|
- <td>哈哈哈</td>
|
|
|
- <td class="red-text">4-6</td>
|
|
|
- <td class="red-text">$123</td>
|
|
|
- <td>2012-12-12</td>
|
|
|
- <td>21412</td>
|
|
|
- <td class="input-number"><span>-</span><input type="number"><span>+</span></td>
|
|
|
- <td class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td><input type="checkbox"></td>
|
|
|
- <td>哈哈哈</td>
|
|
|
- <td class="red-text">4-6</td>
|
|
|
- <td class="red-text">$123</td>
|
|
|
- <td>2012-12-12</td>
|
|
|
- <td>21412</td>
|
|
|
- <td class="input-number"><span>-</span><input type="number"><span>+</span></td>
|
|
|
- <td class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
@@ -635,64 +562,14 @@
|
|
|
<div class="seek-list">
|
|
|
<table>
|
|
|
<tbody>
|
|
|
- <tr>
|
|
|
- <td width="173">深圳市优软科技</td>
|
|
|
- <td width="196" class="red-text">4-6</td>
|
|
|
- <td width="196"><span>$</span>9.86</td>
|
|
|
- <td width="212">2012-12-12</td>
|
|
|
- <td width="221" class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td width="173">深圳市优软科技</td>
|
|
|
- <td width="196" class="red-text">4-6</td>
|
|
|
- <td width="196"><span>$</span>9.86</td>
|
|
|
- <td width="212">2012-12-12</td>
|
|
|
- <td width="221" class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td width="173">深圳市优软科技</td>
|
|
|
- <td width="196" class="red-text">4-6</td>
|
|
|
- <td width="196"><span>$</span>9.86</td>
|
|
|
- <td width="212">2012-12-12</td>
|
|
|
- <td width="221" class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td width="173">深圳市优软科技</td>
|
|
|
- <td width="196" class="red-text">4-6</td>
|
|
|
- <td width="196"><span>$</span>9.86</td>
|
|
|
- <td width="212">2012-12-12</td>
|
|
|
+ <tr ng-repeat="of in offer">
|
|
|
+ <td width="173" ng-bind="(of.enterprise).enName"></td>
|
|
|
+ <td width="196" class="red-text" ng-bind="of.minDay+'-'+of.maxDay">4-6</td>
|
|
|
+ <td width="196"><span ng-bind="of.currency+of.unitPrice">$9.86</span></td>
|
|
|
+ <td width="212" ng-bind="of.produceDate | date: 'yyyy-MM-dd'"></td>
|
|
|
<td width="221" class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td width="173">深圳市优软科技</td>
|
|
|
- <td width="196" class="red-text">4-6</td>
|
|
|
- <td width="196"><span>$</span>9.86</td>
|
|
|
- <td width="212">2012-12-12</td>
|
|
|
- <td width="221" class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td width="173">深圳市优软科技</td>
|
|
|
- <td width="196" class="red-text">4-6</td>
|
|
|
- <td width="196"><span>$</span>9.86</td>
|
|
|
- <td width="212">2012-12-12</td>
|
|
|
- <td width="221" class="operate">
|
|
|
- <a>联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
- <span>立即购买</span>
|
|
|
+ <a href = "of.user.usertTel">联系卖家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
|
|
|
+ <span>采纳报价</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|