/** ================================= 商品信息 ================================**/ import APP from '@/services'; import { commonSearch_go } from '@/services/go/index'; import { Ermcp3Brand, Ermcp3Wrstandard, ErmcpDeliveryGoodsReq, ErmcpDeliveryGoodsRsp } from './interface'; /** * 查询现货商品 /Ermcp3/QueryDeliveryGoods * @param excluudecfg 排除已配置的现货商品 1-排除 * @constructor */ export function QueryDeliveryGoods(req: ErmcpDeliveryGoodsReq): Promise { const areauserid = APP.get('userAccount').memberuserid; // 所属机构id return commonSearch_go('/Ermcp3/QueryDeliveryGoods', { areauserid, ...req }).catch((err) => { throw new Error(`查询现货商品: ${err.message}`); }); } /** * 查询商品品类 /Ermcp3/QueryGoodsWrstandard * @param deliverygoodsid 现货商品id * @constructor */ export function QueryGoodsWrstandard(deliverygoodsid: number): Promise { const areauserid = APP.get('userAccount').memberuserid; // 所属机构id return commonSearch_go('/Ermcp3/QueryGoodsWrstandard', { areauserid, deliverygoodsid }).catch((err) => { throw new Error(`查询商品品类: ${err.message}`); }); } /** * 查询商品品牌 /Ermcp3/QueryGoodsbrand * @constructor */ export function QueryGoodsbrand(): Promise { const areauserid = APP.get('userAccount').memberuserid; // 所属机构id return commonSearch_go('/Ermcp3/QueryGoodsbrand', { areauserid }).catch((err) => { throw new Error(`查询商品品牌: ${err.message}`); }); }