| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- define([ 'ngResource' ], function() {
- angular.module('seekPurchaseServices', [ 'ngResource' ]).factory('seekPurchase', ['$resource', 'BaseService', function($resource, BaseService) {
- var rootPath = BaseService.getRootPath();
- return $resource('seek', {}, {
- getSeekUrl: {
- url: 'seek/accessUrl',
- method: 'GET'
- },
- getSeekPurchaseRate: {
- url: 'seek/offer/getSeekPurchaseRate',
- method: 'GET'
- },
- getSeekPushGoodsPageInfo: {
- url: 'http://218.17.158.219:24000/inquiry/public',
- method: 'GET',
- },
- saveOneSeekPurchase: {
- url: 'http://218.17.158.219:24000/inquiry/buyer/save',
- method: 'POST'
- },
- saveOneSeekPurchaseProd: {
- url: 'https://api-inquiry.usoftchina.com/inquiry/buyer/save',
- method: 'POST'
- },
- saveOffer: {
- url: 'http://218.17.158.219:24000/inquiry/sale/item/saveQuote',
- method: 'POST'
- },
- saveOfferProd: {
- url: 'https://api-inquiry.usoftchina.com/inquiry/sale/item/saveQuote',
- method: 'POST'
- },
- getUserSeekPageInfo: {
- url: 'http://218.17.158.219:24000/inquiry/buyer/list',
- method: 'GET'
- },
- getUserSeekPageInfoByStatus: {
- url: 'http://218.17.158.219:24000/inquiry/buyer/quotations',
- method: 'GET'
- },
- getMallGoodsList: {
- url: 'seek/getMallGoodsList',
- method: 'GET',
- isArray: true
- },
- getSeekPurchaseOfferPageInfo: {
- url: 'http://218.17.158.219:24000/inquiry/buyer/product/detail',
- method: 'GET'
- },
- getMyOfferPageInfo: {
- url: 'http://218.17.158.219:24000/inquiry/public/quotation/list',
- method: 'GET'
- },
- updateSeekPurchaseStatus: {
- url: 'http://218.17.158.219:24000/inquiry/buyer/decide',
- method: 'POST'
- },
- getSeekPurchaseBomListPage: {
- url: 'http://218.17.158.219:24000/inquiry/buyer/inquiryList',
- method: 'GET'
- },
- findOneBom: {
- url: 'http://218.17.158.219:24000/inquiry/public/findInquiryById',
- method: 'GET'
- },
- saveBomName: {
- url: 'seek/updateSeekPurchaseBom',
- method: 'PUT'
- },
- getBomDetail: {
- url: 'http://218.17.158.219:24000/inquiry/sale/publicInquiry/detail',
- method: 'GET'
- },
- // 获取BOM清单
- getBomList: {
- url: 'seek/bom/list',
- method: 'GET'
- },
- // BOM清单详情
- getBomListDetail: {
- url: 'seek/bom/detail',
- method: 'GET'
- },
- // 保存bom编辑
- saveBomEdit: {
- url: 'seek/bom/edit',
- method: 'POST'
- },
- // 删除BOM信息
- deleteBom: {
- url: 'seek/bom/delete',
- method: 'DELETE'
- },
- // 选中的物料询价BOM
- confirmBomSeekSelected: {
- url: 'seek/confirmBom/selected',
- method: 'POST'
- },
- // 整个BOM发布询价
- confirmBomSeekAll: {
- url: 'seek/confirmBom',
- method: 'POST'
- },
- // 删除bom物料
- deleteBomProducts: {
- url: 'seek/bom/detail/delete',
- method: 'DELETE'
- },
- // 删除BOM
- deleteBom: {
- url: 'seek/bom/delete',
- method: 'DELETE'
- }
- });
- }])
- });
|