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