Kaynağa Gözat

commit 现货合同解决提示颜色问题

xkwg 4 yıl önce
ebeveyn
işleme
66ca3eca89

+ 1 - 1
src/services/proto/spotcontract/interface.ts

@@ -61,7 +61,7 @@ export interface GldSpotContractInfo {
     SaleUserID?: number // uint64 业务员ID
     AccountID?: number // uint64 期货账户ID
     BizType?: number // uint32 业务类型 - 1:套保 2:套利
-    CurrencyID: string // 结算币种ID
+    CurrencyID: number // 结算币种ID
 }
 
 //现货合同操作请求  (一部分操作用这个借口)

+ 3 - 3
src/views/information/spot-contract/components/add/setup.ts

@@ -77,9 +77,9 @@ export function addContractReq() {
             ConvertFactor: form.ConvertFactor as number, //      标仓系数
             SpotGoodsDesc: form.SpotGoodsDesc, //                商品规格
             PriceType: form.PriceType,//                         定价类型
-            CurrencyID: (form.CurrencyID as number).toString(),//结算币种
-            Qty: form.Qty as number, //                     数量
-            Price: form.Price as number, //                 价格
+            CurrencyID: form.CurrencyID as number,//             结算币种
+            Qty: Number(form.Qty as number), //                     数量
+            Price: Number(form.Price as number), //                 价格
             TradeDate: moment().format("YYYYMMDD"),//             交易日
             SignDate: moment().format("YYYY-MM-DD HH:mm:ss"), //  签订日期
             // 以上必填