|
|
@@ -6977,9 +6977,13 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
//打印 发货单
|
|
|
$scope.print = function (send) {
|
|
|
- SaleSend.printCount({id: send.id}, {}); //增加打印此次
|
|
|
- $scope.tableParams.reload();
|
|
|
- ReportService.print(send.custUU, 'SALESEND', "where sale$send.ss_id=" + send.id);
|
|
|
+ SaleSend.printPermission({}, function () {
|
|
|
+ SaleSend.printCount({id: send.id}, {}); //增加打印此次
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ ReportService.print(send.custUU, 'SALESEND', "where sale$send.ss_id=" + send.id);
|
|
|
+ }, function (response) {
|
|
|
+ toaster.pop('error', '打印失败', response.data);
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
$scope.openDatePicker = function ($event, item, openParam) {
|
|
|
@@ -7709,9 +7713,13 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
};
|
|
|
//打印 样品采购单
|
|
|
$scope.print = function (sample) {
|
|
|
- PurcSample.printCount({id: sample.id}, {});//增加打印此次
|
|
|
- ReportService.print(sample.proofing.enUU, 'PURCPROOFING', "where purc$proofingitems.ppi_id =" + sample.id);
|
|
|
- };
|
|
|
+ PurcSample.printPermission({}, function () {
|
|
|
+ PurcSample.printCount({id: sample.id}, {});//增加打印此次
|
|
|
+ ReportService.print(sample.proofing.enUU, 'PURCPROOFING', "where purc$proofingitems.ppi_id =" + sample.id);
|
|
|
+ }, function (response) {
|
|
|
+ toaster.pop('error', '打印失败', response.data);
|
|
|
+ });
|
|
|
+ };
|
|
|
|
|
|
$scope.getSend = function (proofing) {
|
|
|
if (!proofing.sends) {
|