@@ -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 () {
@@ -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 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>-->
</tbody>
</table>