/*
 * @Author: your name
 * @Date: 2021-12-03 11:10:14
 * @LastEditTime: 2021-12-14 20:09:41
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \tms-obc-web\src\app\routes\supply-management\services\supply-management.service.ts
 */
import { Injectable, Injector } from '@angular/core';
import { BaseService } from 'src/app/shared/services';

@Injectable({
  providedIn: 'root'
})
export class SupplyManagementService extends BaseService {
  // 整车获取货源表详情
  $api_get_getCompleteVehicleDetail = `/api/sdc/goodsResourceOperate/getWholeDetail`;
  // 大宗获取货源表详情
  $api_get_getBulkDetail = `/api/sdc/goodsResourceOperate/getBulkDetail`;
  // 查询运营后台大宗货源列表
  $api_get_bulkPage_list = `/api/sdc/goodsResourceOperate/listBulkPage`;
  // 查询运营后台整车货源列表
  $api_get_wholePage_list = `/api/sdc/goodsResourceOperate/listWholePage`;
  // 整车再下一单
  $api_set_saveAnotherWholeOrder = `/api/sdc/goodsResourceOperate/saveAnotherWholeOrder`;
  // 大宗再下一单
  $api_set_saveAnotherBulkOrder = `/api/sdc/goodsResourceOperate/saveAnotherBulkOrder`;
  // 编辑整车货源
  $api_set_WholeModify = `/api/sdc/goodsResourceOperate/updateWhole`;
  // 编辑大宗货源
  $api_set_bulkModify = `/api/sdc/goodsResourceOperate/updateBulk`;
  // 删除装卸货信息
  $api_delete_Wholedeletebatch = `/api/sdc/unLoadingPlace/deletebatch`;
  // 删除货物信息
  $api_delete_bulkdeletebatch = `/api/sdc/goodsInfo/deletebatch`;
  $api_get_catalogue_member = `/user?_allow_anonymous=true`;
  $api_get_listModifyPrice = `/api/sdc/goodsInfo/listModifyPrice`;
  $api_update_price = `/api/sdc/goodsInfo/modifyPrice`; // 根据货物ID修改单价
  $api_get_goods_resource_statistical = `/api/sdc/goodsResourceOperate/StatisticalStatus`; // 统计整车、大宗货源状态数量
    // 获取货主企业列表
  public $api_getList = '/api/mdc/cuc/enterpriseInfo/cargoOwner/getList?_allow_anonymous=true';
  constructor(public injector: Injector) {
    super(injector)
  }
}
