|
|
@@ -3,19 +3,53 @@
|
|
|
|
|
|
import APP from '@/services';
|
|
|
import {commonSearch_go} from '@/goServiceAPI/index';
|
|
|
-import {ErmcpDeliveryGoodsReq, ErmcpDeliveryGoodsRsp} from "./interface";
|
|
|
+import {Ermcp3Brand, Ermcp3Wrstandard, ErmcpDeliveryGoodsReq, ErmcpDeliveryGoodsRsp} from "./interface";
|
|
|
|
|
|
/**
|
|
|
* 查询现货商品 /Ermcp3/QueryDeliveryGoods
|
|
|
* @param excluudecfg 排除已配置的现货商品 1-排除
|
|
|
* @constructor
|
|
|
*/
|
|
|
-export function QueryDeliveryGoods( req : ErmcpDeliveryGoodsReq) : Promise<ErmcpDeliveryGoodsRsp[]>{
|
|
|
+export function QueryDeliveryGoods(req: ErmcpDeliveryGoodsReq): Promise<ErmcpDeliveryGoodsRsp[]> {
|
|
|
const areauserid = APP.get('userAccount').memberuserid; // 所属机构id
|
|
|
- return commonSearch_go('/Ermcp3/QueryDeliveryGoods', {areauserid , ...req})
|
|
|
+ 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<Ermcp3Wrstandard[]> {
|
|
|
+ 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<Ermcp3Brand[]> {
|
|
|
+ const areauserid = APP.get('userAccount').memberuserid; // 所属机构id
|
|
|
+ return commonSearch_go('/Ermcp3/QueryGoodsbrand', {areauserid})
|
|
|
+ .catch(err => {
|
|
|
+ throw new Error(`查询商品品牌: ${err.message}`);
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|