Browse Source

供应商资料增加询价功能

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

+ 11 - 0
src/main/webapp/resources/js/index/app.js

@@ -961,6 +961,9 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 			window.location.hash = "#/purc/addOrder";
 			window.location.hash = "#/purc/addOrder";
 		}
 		}
 		
 		
+		/**
+		 * 询价
+		 */
 		$scope.PurcInquiry = function(businessCode, id){
 		$scope.PurcInquiry = function(businessCode, id){
 			$rootScope.prodId = id;
 			$rootScope.prodId = id;
 			window.location.hash = "#/purc/purcinquiry/" + businessCode;
 			window.location.hash = "#/purc/purcinquiry/" + businessCode;
@@ -10330,6 +10333,14 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 			$rootScope.prodId = id;
 			$rootScope.prodId = id;
 			window.location.hash = "#/purc/addOrder";
 			window.location.hash = "#/purc/addOrder";
 		}
 		}
+		
+		/**
+		 * 询价
+		 */
+		$scope.PurcInquiry = function(businessCode, id){
+			$rootScope.prodId = id;
+			window.location.hash = "#/purc/purcinquiry/" + businessCode;
+		}
 	}]);
 	}]);
 	
 	
 	/**
 	/**

+ 2 - 1
src/main/webapp/resources/tpl/index/purc/vendor_detail.html

@@ -101,7 +101,7 @@
 						<th width="160px">名称</th>
 						<th width="160px">名称</th>
 						<th>规格</th>
 						<th>规格</th>
 						<th width="80px">单位</th>
 						<th width="80px">单位</th>
-						<th width="50px">选择</th>
+						<th width="100px">选择</th>
 					</tr>
 					</tr>
 				</thead>
 				</thead>
 				<tbody ng-if="tableParams.total() == 0">
 				<tbody ng-if="tableParams.total() == 0">
@@ -124,6 +124,7 @@
 						<td class="text-center f12" ng-bind="::product.spec"></td>
 						<td class="text-center f12" ng-bind="::product.spec"></td>
 						<td class="text-center" ng-bind="::product.unit"></td>
 						<td class="text-center" ng-bind="::product.unit"></td>
 						<td class="text-center" ><a title="购买" href="javascript:void(0)" ng-click="PurcByEnAndProd(vendor.enBussinessCode, product.id)" style="text-decoration: none; color: #327ebe;" id="click" class="add01">购买</a>
 						<td class="text-center" ><a title="购买" href="javascript:void(0)" ng-click="PurcByEnAndProd(vendor.enBussinessCode, product.id)" style="text-decoration: none; color: #327ebe;" id="click" class="add01">购买</a>
+							<a title="购买" href="javascript:void(0)" ng-click="PurcInquiry(vendor.enBussinessCode, product.id)" style="text-decoration: none; color: #327ebe;" id="click" class="add01">询价</a>
 						</td>
 						</td>
 					</tr>
 					</tr>
 				</tbody>
 				</tbody>