|
|
@@ -170,46 +170,11 @@ define(['app/app'], function (app) {
|
|
|
$scope.isShowSayPriceBox = false;
|
|
|
$scope.seekPurchaseTableParams.reload();
|
|
|
}, function (response) {
|
|
|
- toaster.pop('error', '请检查报价信息是否填写正确');
|
|
|
+ toaster.pop('error', '请勿重复报价或报价自己的求购');
|
|
|
});
|
|
|
} else {
|
|
|
toaster.pop('error', '请输入正确的报价信息');
|
|
|
}
|
|
|
- // if ($scope.checkAllOffer()) {
|
|
|
- // $scope.saveOfferBtn = true;
|
|
|
- // seekPurchase.saveOffer($scope.offer, function (data) {
|
|
|
- // if (data.success) {
|
|
|
- // $scope.setSeekActive(seek, false);
|
|
|
- // $scope.seekPurchaseTableParams.reload();
|
|
|
- // $scope.saveOfferBtn = true;
|
|
|
- // toaster.pop('success', '报价成功');
|
|
|
- // } else {
|
|
|
- // $scope.saveOfferBtn = true;
|
|
|
- // toaster.pop('error', data.message);
|
|
|
- // }
|
|
|
- // }, function (res) {
|
|
|
- // toaster.pop('error', res.data);
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // if (!$scope.validOffer.unitPrice) {
|
|
|
- // if (!$scope.offer.unitPrice) {
|
|
|
- // toaster.pop('warning', '提示', '单价不能为空');
|
|
|
- // } else {
|
|
|
- // toaster.pop('warning', '提示', '单价必须是大于0的数字');
|
|
|
- // }
|
|
|
- // } else if (!$scope.validOffer.minDay || !$scope.validOffer.maxDay) {
|
|
|
- // if ((!$scope.offer.minDay && !angular.isNumber($scope.offer.minDay)) || (!$scope.offer.maxDay && !angular.isNumber($scope.offer.maxDay))) {
|
|
|
- // toaster.pop('warning', '提示', '交期不能为空');
|
|
|
- // } else {
|
|
|
- // if ($scope.offer.minDay > 31 || $scope.offer.minDay < 1 || $scope.offer.minDay.toString().indexOf('.') !== -1
|
|
|
- // || $scope.offer.maxDay > 31 || $scope.offer.maxDay < 1 || $scope.offer.maxDay.toString().indexOf('.') !== -1) {
|
|
|
- // toaster.pop('warning', '提示', '交期只能填写1-31之间的整数值');
|
|
|
- // } else {
|
|
|
- // toaster.pop('warning', '提示', '最短交期应小于等于最长交期');
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
$scope.condition = {endDateOpen: false, startDateOpen: false};
|