|
|
@@ -5557,6 +5557,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
window.open("#/sale/pubinquiry");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}]);
|
|
|
|
|
|
/**
|
|
|
@@ -5605,27 +5606,26 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
// 保存报价信息
|
|
|
$scope.save = function(inquiryItem, method) {
|
|
|
- console.log(inquiryItem);
|
|
|
- // var file = $scope.myFiles, file = file && file.length > 0 ? file[0] : null;// 可以不传附件
|
|
|
- // $upload.upload({
|
|
|
- // url: 'pubInquiry/turnToQuotation',
|
|
|
- // file: file,
|
|
|
- // method: 'POST',
|
|
|
- // data: {
|
|
|
- // item: inquiryItem,
|
|
|
- // method: method
|
|
|
- // }
|
|
|
- // }).success(function (data) {
|
|
|
- // if (data.item) {
|
|
|
- // item = data.item;
|
|
|
- // }
|
|
|
- // $scope.loading = false;
|
|
|
- // toaster.pop('info', '提示', '报价成功');
|
|
|
- // $modalInstance.close();
|
|
|
- // }).error(function (data) {
|
|
|
- // $scope.loading = false;
|
|
|
- // toaster.pop('error', '附件上传失败');
|
|
|
- // });
|
|
|
+ var file = $scope.myFiles, file = file && file.length > 0 ? file[0] : null;// 可以不传附件
|
|
|
+ $upload.upload({
|
|
|
+ url: 'pubInquiry/turnToQuotation',
|
|
|
+ file: file,
|
|
|
+ method: 'POST',
|
|
|
+ data: {
|
|
|
+ item: inquiryItem,
|
|
|
+ method: method
|
|
|
+ }
|
|
|
+ }).success(function (data) {
|
|
|
+ if (data.item) {
|
|
|
+ item = data.item;
|
|
|
+ }
|
|
|
+ $scope.loading = false;
|
|
|
+ toaster.pop('info', '提示', '报价成功');
|
|
|
+ $modalInstance.close();
|
|
|
+ }).error(function (data) {
|
|
|
+ $scope.loading = false;
|
|
|
+ toaster.pop('error', '附件上传失败');
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
$scope.previewShow = false;
|