Browse Source

供应商增加筛选

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@7384 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 years ago
parent
commit
077296f73f

+ 7 - 7
src/main/webapp/resources/tpl/index/purc/modal/purc_order_cust.html

@@ -2,31 +2,31 @@
 	<div class="headerline">
 		<span class="content"><i class="fa fa-fw fa-edit text-primary"></i>采购订单 - 选择供应商</span>
 	</div>
-	<!-- <form class="form-horizontal">
+	<form class="form-horizontal">
 		<div class="form-group">
 			<label class="col-md-2 col-sm-2 control-label">筛选:</label>
 			<div class="col-md-8 col-sm-8">
 				<input type="text" class="form-control input-sm" 
-					required placeholder="输入客户名称关键字查询" autofocus>
+					required placeholder="输入客户名称关键字查询" autofocus ng-model="keyword">
 			</div>
 		</div>
-	</form> -->
+	</form>
 	<table class="block table table-default table-striped table-bordered"
 		ng-table="tableParams">
 		<thead>
 			<tr class="header">
 				<th>UU</th>
-				<th>客户名称</th>
+				<th>供应商名称</th>
 				<th>地址</th>
-				<th>选择</th>
+				<th>操作</th>
 			</tr>
 		</thead>
 		<tbody>
-			<tr ng-repeat="customer in $data">
+			<tr ng-repeat="customer in $data| filter: keyword">
 				<td class="text-center" ng-bind="::customer.myEnterprise.uu"></td>
 				<td class="text-center" ng-bind="::customer.myEnterprise.enName"></td>
 				<td class="text-center" ng-bind="::customer.myEnterprise.enAddress"></td>
-				<td class="text-center"><a title="选择" href="javascript:void(0)" ng-click="check(customer)"><i class="fa fa-circle-o"></i></a></td>
+				<td class="text-center"><a title="选择" href="javascript:void(0)" ng-click="check(customer)" style="text-decoration: none;">选择</a></td>
 			</tr>
 		</tbody>
 	</table>