Ver Fonte

更新批量更新物料信息方法

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@8940 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq há 9 anos atrás
pai
commit
d0cac5b8f8

+ 13 - 7
src/main/webapp/resources/tpl/index/baseInfo/modal/updateByBatch_modal.html

@@ -14,7 +14,7 @@
 	<div class="headerline">
 		<span class="content"><i class="fa fa-fw fa-edit text-primary"></i>修改类型-{{updatetype}}</span>
 	</div>
-	<table class="block table table-default table-striped table-bordered" ng-if="changed">
+	<table class="block table table-default table-striped table-bordered">
 		<thead>
 			<tr class="header">
 				<th width="160px">原{{updatetype}}</th>
@@ -23,19 +23,25 @@
 			</tr>
 		</thead>
 		<tbody>
-			<tr ng-repeat="product in products">
-				<td class="text-center" ng-if="updatetype == '品牌'"><span ng-bind="::product.brand"></span></td>
+			<tr>
+				<!-- <td class="text-center" ng-if="updatetype == '品牌'"><span ng-bind="::product.brand"></span></td>
 				<td class="text-center" ng-if="updatetype == '名称(类目)'"><span ng-bind="::product.title"></span></td>
-				<td class="text-center" ng-if="updatetype == '产品型号'"><span ng-bind="::product.spec"></span></td>
+				<td class="text-center" ng-if="updatetype == '产品型号'"><span ng-bind="::product.spec"></span></td> -->
+				<td ng-if="updatetype == '品牌'"><select type="text" ng-model="oldvalue" ng-options="product.brand for product in products">
+					<option value="">请选择品牌</option>
+					</select></td>
+				<td ng-if="updatetype == '名称(类目)'"><select type="text" ng-model="oldvalue" ng-options="product.title for product in products">
+					<option value="">请选择名称(类目)</option>
+					</select></td>
 				<td class="text-center">--></td>
-				<td class="text-center"><span ng-bind="::keyword"></span></td>
+				<td class="text-center"><input type="text" ng-model="newvalue"></span></td>
 			</tr>
 		</tbody>
 	</table>
-	<div ng-if="!changed">
+	<!-- <div ng-if="!changed">
 		<input ng-model="keyword">
 		<a class="btn btn-default" ng-click="ensure(keyword)">确定</a>
-	</div>
+	</div> -->
 </div>
 <div class="modal-footer">
 	<button class="btn btn-default" ng-click="okay()" type="button" ng-if="changed">确定修改</button>