|
|
@@ -9520,8 +9520,12 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
//打印 对账单
|
|
|
$scope.print = function (check) {
|
|
|
- FaApCheck.printCount({id: check.id}, {});//增加打印此次
|
|
|
- ReportService.print(check.custUu, 'PURCCHECK', 'where purc$apcheck.pa_id =' + check.id);
|
|
|
+ FaApCheck.printPermission({}, function () {
|
|
|
+ FaApCheck.printCount({id: check.id}, {});//增加打印此次
|
|
|
+ ReportService.print(check.custUu, 'PURCCHECK', 'where purc$apcheck.pa_id =' + check.id);
|
|
|
+ }, function (response) {
|
|
|
+ toaster.pop('error', '打印失败', response.data);
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
//状态
|