|
|
@@ -3141,10 +3141,15 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
//打印 采购单
|
|
|
$scope.print = function (order) {
|
|
|
- PurcOrder.printCount({id: order.id}, {});//增加打印此次 // 在此方法内添加记录日志
|
|
|
- if (order.display == 1) $scope.setDisplay('setRead', order.id);//设置为已查看状态
|
|
|
- ReportService.print(order.enUU, 'PURCLIST', "where purc$orders.pu_id=" + order.id);
|
|
|
- $scope.tableParams.reload();
|
|
|
+ PurcOrder.printPermission({}, function () {
|
|
|
+ PurcOrder.printCount({id: order.id}, {});//增加打印此次 // 在此方法内添加记录日志
|
|
|
+ if (order.display == 1) $scope.setDisplay('setRead', order.id);//设置为已查看状态
|
|
|
+ ReportService.print(order.enUU, 'PURCLIST', "where purc$orders.pu_id=" + order.id);
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ },function (response) {
|
|
|
+ toaster.pop('error', '打印失败', response.data);
|
|
|
+ });
|
|
|
+
|
|
|
};
|
|
|
|
|
|
$scope.getReply = function (item) {
|
|
|
@@ -3324,8 +3329,12 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
// 采购单
|
|
|
$scope.print = function (order) {
|
|
|
- PurcOrder.printCount({id: order.id}, {});//增加打印此次
|
|
|
- ReportService.print(order.enUU, 'PURCLIST', "where purc$orders.pu_id=" + order.id);
|
|
|
+ PurcOrder.printPermission({}, function () {
|
|
|
+ PurcOrder.printCount({id: order.id}, {});//增加打印此次
|
|
|
+ ReportService.print(order.enUU, 'PURCLIST', "where purc$orders.pu_id=" + order.id);
|
|
|
+ },function (response) {
|
|
|
+ toaster.pop('error', '打印失败', response.data);
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
//设置为已查看
|