|
|
@@ -50,9 +50,10 @@ export function QueryGoodsbrand(): Promise<Ermcp3Brand[]> {
|
|
|
* @param deliverygoodsid 现货商品id
|
|
|
* @constructor
|
|
|
*/
|
|
|
-export function QueryDeliveryGoodsDetail(deliverygoodsid : number): Promise<ErmcpDeliveryGoodsDetailEx[]> {
|
|
|
+export function QueryDeliveryGoodsDetail(deliverygoodsid?: number): Promise<ErmcpDeliveryGoodsDetailEx[]> {
|
|
|
const areauserid = APP.get('userAccount').memberuserid; // 所属机构id
|
|
|
- return commonSearch_go('Ermcp3/QueryDeliveryGoodsDetail', { areauserid, deliverygoodsid }).catch((err) => {
|
|
|
+ const param = deliverygoodsid ? { areauserid, deliverygoodsid } : { areauserid }
|
|
|
+ return commonSearch_go('/Ermcp3/QueryDeliveryGoodsDetail', param).catch((err) => {
|
|
|
throw new Error(`查询现货商品详情: ${err.message}`);
|
|
|
});
|
|
|
}
|
|
|
@@ -62,9 +63,9 @@ export function QueryDeliveryGoodsDetail(deliverygoodsid : number): Promise<Ermc
|
|
|
* @param excludecfg 排除套保品中已关联的商品组 1-排除
|
|
|
* @constructor
|
|
|
*/
|
|
|
-export function QueryGoodsfGroup(excludecfg: number): Promise<Ermcp3GoodsGroup[]>{
|
|
|
+export function QueryGoodsfGroup(excludecfg: number): Promise<Ermcp3GoodsGroup[]> {
|
|
|
const areauserid = APP.get('userAccount').memberuserid; // 所属机构id
|
|
|
- return commonSearch_go('Ermcp3/QueryDeliveryGoodsDetail', { areauserid, excludecfg }).catch((err) => {
|
|
|
+ return commonSearch_go('Ermcp3/QueryGoodsGroup', { areauserid, excludecfg }).catch((err) => {
|
|
|
throw new Error(`查询期货商品组: ${err.message}`);
|
|
|
});
|
|
|
}
|