|
|
@@ -9,6 +9,7 @@ define(['app/app'], function (app) {
|
|
|
$scope.seekPurchaseRate = {};
|
|
|
seekPurchase.getSeekUrl({}, function(data) {
|
|
|
var seekUrl = data.url;
|
|
|
+ seekUrl = 'http://10.1.51.77:7070';
|
|
|
$scope.initInquiryItem = function () {
|
|
|
$scope.validSayPrice = {
|
|
|
leadtime: false,
|
|
|
@@ -19,7 +20,7 @@ define(['app/app'], function (app) {
|
|
|
$scope.initInquiryItem();
|
|
|
|
|
|
//卖家待报价推送信息,self为与我相关,all为全部
|
|
|
- $scope.vendorType = 'self';
|
|
|
+ $scope.vendorType = 'all';
|
|
|
|
|
|
// 获取当前卖家求购推送列表
|
|
|
$scope.seekPurchaseTableParams = new ngTableParams({
|
|
|
@@ -44,14 +45,16 @@ define(['app/app'], function (app) {
|
|
|
$scope.isSearch = false;
|
|
|
}
|
|
|
var isSelf = $scope.vendorType == 'self';
|
|
|
- if (!isSelf) {
|
|
|
- param.enUU = $scope.userInfo.enterprise.uu;
|
|
|
- param.userUU = $scope.userInfo.userUU;
|
|
|
- } else {
|
|
|
- param.enuu = $scope.userInfo.enterprise.uu;
|
|
|
- param.useruu = $scope.userInfo.userUU;
|
|
|
- }
|
|
|
- var target = isSelf ? '/inquiry/sale/remind' : '/inquiry/public';
|
|
|
+ // if (!isSelf) {
|
|
|
+ // param.enUU = $scope.userInfo.enterprise.uu;
|
|
|
+ // param.userUU = $scope.userInfo.userUU;
|
|
|
+ // } else {
|
|
|
+ // param.enuu = $scope.userInfo.enterprise.uu;
|
|
|
+ // param.useruu = $scope.userInfo.userUU;
|
|
|
+ // }
|
|
|
+ param.enuu = $scope.userInfo.enterprise.uu;
|
|
|
+ param.useruu = $scope.userInfo.userUU;
|
|
|
+ var target = isSelf ? '/inquiry/sale/remind' : '/inquiry/sale/enremind';
|
|
|
$http({
|
|
|
method: 'get',
|
|
|
dataType: 'json',
|
|
|
@@ -196,9 +199,10 @@ define(['app/app'], function (app) {
|
|
|
if (!$scope.inquiryItem.currency) {
|
|
|
$scope.inquiryItem.currency = $scope.seekCurrency[0];
|
|
|
}
|
|
|
- if ($scope.vendorType == 'self') {
|
|
|
- $scope.inquiryItem.id = $scope.inquiryItem.itemId;
|
|
|
- }
|
|
|
+ // if ($scope.vendorType == 'self') {
|
|
|
+ // $scope.inquiryItem.id = $scope.inquiryItem.itemId;
|
|
|
+ // }
|
|
|
+ $scope.inquiryItem.id = $scope.inquiryItem.itemId;
|
|
|
if (seekUrl == 'https://api-inquiry.usoftmall.com') {
|
|
|
seekPurchase.saveOfferProd($scope.inquiryItem, function (data) {
|
|
|
toaster.pop('success', '报价成功');
|