index.ts 942 B

12345678910111213141516171819
  1. import { commonSearch_go } from '@/services/go';
  2. import { Ermcp3SellBuyContract, SellBuyContractReq } from '@/services/go/ermcp/purchase/interface';
  3. /** ================================= 采购 ================================**/
  4. /**
  5. * 查询采购信息(这个接口和销售是同一个接口) /Ermcp3/QuerySpotContractBS
  6. * @param req.areauserid 所属机构ID (必填)
  7. * @param req.contracttype 合同类型 1-采购, -1-销售 (必填)
  8. * @param req.querytype 查询类型 1-全部 2-待点价 3-履约结算 4-已完成 (必填)
  9. * @param req.userid 用户id
  10. * @param req.usertype 用户类型 2-机构 7-企业成员
  11. * @param req.contractid 合同ID(SpotContractId)
  12. * @constructor
  13. */
  14. export function QueryPurchase(req: SellBuyContractReq): Promise<Ermcp3SellBuyContract[]> {
  15. return commonSearch_go('/Ermcp3/QuerySpotContractBS', req).catch((err) => {
  16. throw new Error(`查询采购信息: ${err.message}`);
  17. });
  18. }