huangbin 4 éve
szülő
commit
825bf52297

+ 5 - 5
src/views/information/spot-contract/components/add/index.vue

@@ -267,11 +267,11 @@
             <a-col :span="12">
               <a-form-item label="升贴水"
                            name="PriceMove">
-                <a-input class="dialogInput suffixGrey"
-                         v-model:value="formState.PriceMove"
-                         placeholder="请输入升贴水"
-                         :suffix="`${payCurrencyUnit}/${numberUnit}`"
-                         style="width: 200px" />
+                <a-input-number class="dialogInput suffixGrey"
+                                v-model:value="formState.PriceMove"
+                                placeholder="请输入升贴水"
+                                :suffix="`${payCurrencyUnit}/${numberUnit}`"
+                                style="width: 200px" />
               </a-form-item>
             </a-col>
             <a-col :span="12">

+ 5 - 5
src/views/information/spot-contract/components/modify/index.vue

@@ -264,11 +264,11 @@
             <a-col :span="12">
               <a-form-item label="升贴水"
                            name="PriceMove">
-                <a-input class="dialogInput suffixGrey"
-                         v-model:value="formState.PriceMove"
-                         placeholder="请输入升贴水"
-                         :suffix="`${payCurrencyUnit}/${numberUnit}`"
-                         style="width: 200px" />
+                <a-input-number class="dialogInput suffixGrey"
+                                v-model:value="formState.PriceMove"
+                                placeholder="请输入升贴水"
+                                :suffix="`${payCurrencyUnit}/${numberUnit}`"
+                                style="width: 200px" />
               </a-form-item>
             </a-col>
             <a-col :span="12">

+ 2 - 2
src/views/information/spot-contract/components/modify/setup.ts

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

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

@@ -247,7 +247,7 @@ export function handleFormRule(formState: UnwrapRef<FormState>) {
         CurrencyID: [{ required: true, validator: v_Currency, trigger: 'blur' }],
         Qty: [{ required: true, message: '请输入数量', trigger: 'blur' }],
         Price: [{ required: true, message: '请输入价格', trigger: 'blur' }],
-        PriceMove: [{ required: true, message: '请输入升贴水', trigger: 'blur' }],
+        PriceMove: [{ required: true, message: '请输入升贴水', trigger: 'blur', type: 'number' }],
     };
     return { rules }
 }