yu jie преди 4 години
родител
ревизия
2a52efc69e
променени са 2 файла, в които са добавени 28 реда и са изтрити 2 реда
  1. 9 1
      src/services/proto/delivery/index.ts
  2. 19 1
      src/services/proto/delivery/interface.ts

+ 9 - 1
src/services/proto/delivery/index.ts

@@ -3,7 +3,7 @@ import { getLongTypeLoginID } from '@/services/bus/login';
 import { getAreaUserId } from "@/services/bus/user";
 import {
     DeliveryGoodsApplyReq,
-    DeliveryGoodsCancelReq,
+    DeliveryGoodsCancelReq, ErmcpSpotGoodsPriceReq,
     ErmsMiddelGoodsEditReq
 } from "@/services/proto/delivery/interface";
 import { protoMiddleware } from "@/services/socket/protobuf/buildReq";
@@ -32,4 +32,12 @@ export const ermsMiddelGoodsEdit = (param: ErmsMiddelGoodsEditReq): Promise<any>
  */
 export const deliveryGoodsCancel = (param: DeliveryGoodsCancelReq): Promise<any> => {
     return protoMiddleware<DeliveryGoodsCancelReq>(param, 'DeliveryGoodsCancelReq', 'DeliveryGoodsCancelRsp', 2)
+}
+
+/**
+ * 修改现货市价
+ * @param param
+ */
+export const ermcpSpotGoodsPrice = (param: ErmcpSpotGoodsPriceReq):Promise<any> => {
+    return protoMiddleware<ErmcpSpotGoodsPriceReq>(param, 'ErmcpSpotGoodsPriceReq', 'ErmcpSpotGoodsPriceReq', 2)
 }

+ 19 - 1
src/services/proto/delivery/interface.ts

@@ -68,4 +68,22 @@ export interface DeliveryGoodsCancelRsp {
     RetDesc: string; // string 描述信息
     wrstandardid: number; // uint64 现货商品ID
     deliverygoodsid: number; // uint64 现货品种ID
-}
+}
+
+// 现货市价请求 0 29 162
+export interface ErmcpSpotGoodsPriceReq {
+    DeliveryGoodsID: number; // uint64 现货品种ID
+    WRStandardID: number; // uint64 现货品类ID(通用则为0)
+    SpotGoodsBrandID: number; // uint64 现货品牌ID(通用则为0, 不为0则须先有品类ID)
+    CurrencyID: number; // uint64 报价货币ID
+    SpotGoodsPrice: number; // double 现货价格
+    TradeDate: string; // string 交易日(yyyyMMdd)
+    OperateSrc: number // int32 最后操作来源 - 1:管理端 2:终端
+    OperateID: number; // uint64 最后操作人
+    OperateType: number; // int32 操作类型 - 1:新增 2:修改 3:删除
+}
+// 现货市价响应 0 29 163
+export interface ErmcpSpotGoodsPriceRsp {
+    RetCode: number; // int32 返回码
+    RetDesc: string; // string 描述信息
+}