Browse Source

供应商对账选择客户时优化选择操作,点击一行就能选择

hejq 8 years ago
parent
commit
08bf3d5a05

+ 3 - 1
src/main/webapp/resources/js/index/app.js

@@ -15594,7 +15594,9 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             $scope.tip = keyword;
         };
         $scope.select = function (customer) {
-            $modalInstance.close(customer);
+            if (customer.apcheck != 0) {
+                $modalInstance.close(customer);
+            }
         }
 
         $scope.close = function () {

+ 3 - 3
src/main/webapp/resources/tpl/index/fa/apcheck_customer.html

@@ -60,11 +60,11 @@
 				<th>客户名称</th>
 				<th>地址</th>
 				<td>启用对账</td>
-				<th>操作</th>
+				<!--<th>操作</th>-->
 			</tr>
 		</thead>
 		<tbody>
-			<tr ng-repeat="customer in $data">
+			<tr ng-repeat="customer in $data" ng-click="select(customer)" style="text-decoration: none;" ng-disabled = "customer.apcheck == 0" title="点击选择该客户">
 				<td class="text-center" >
 					<span ng-bind="::customer.myEnterprise.uu"></span>
 				</td>
@@ -77,7 +77,7 @@
 				<td class="text-center"><span ng-if="customer.apcheck != 0">启用</span>
 					<span ng-if="customer.apcheck == 0">未启用</span>
 				</td>
-				<td class="text-center"><a class="btn btn-sm" title="选择" href="javascript:void(0)" ng-click="select(customer)" style="text-decoration: none;" ng-disabled = "customer.apcheck == 0">选择</a></td>
+				<!--<td class="text-center"><a class="btn btn-sm" title="选择" href="javascript:void(0)" ng-click="select(customer)" style="text-decoration: none;" ng-disabled = "customer.apcheck == 0">选择</a></td>-->
 			</tr>
 		</tbody>
 	</table>