huangbin 4 yıl önce
ebeveyn
işleme
acf622f741

+ 2 - 2
src/views/information/goods/components/modify/index.vue

@@ -350,7 +350,7 @@ export default defineComponent({
             },
             wrsconvertdetails: {
                 middlegoodsid: { required: true, validator: valideteWR, trigger: 'change' },
-                convertratio: { required: true, message: '请输入套保系数', trigger: 'blur' },
+                convertratio: { required: true, message: '请输入套保系数', trigger: 'blur', type: 'number' },
             },
         };
 
@@ -430,7 +430,7 @@ export default defineComponent({
                         middlegoodsid: goodsgroupid,
                         unitid: goodsunitid,
                         unitidName: enumdicname,
-                        convertratio: e.convertratio.toString(),
+                        convertratio: e.convertratio,
                     };
                 });
             }

+ 1 - 1
src/views/information/goods/components/modify/interface.ts

@@ -16,7 +16,7 @@ export interface WRSConvertDetailEx {
     middlegoodsid: number | undefined // uint64 套保品种ID(接口为3.1及以下版本时传套保品种ID,否则传期货品种ID)
     unitid: number | null// uint64 单位ID
     unitidName: string;
-    convertratio: string// double 套保系数
+    convertratio: number | null// double 套保系数
 }
 export interface FormState {
     deliverygoodscode?: string // string 交割商品代码(新增时有值)

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

@@ -23,7 +23,7 @@ export function handleFromState() {
             { dgfactoryitemvalue: '', }
         ], //   GLDDGFactoryItemEx 现货商品品牌数据
         wrsconvertdetails: [
-            { middlegoodsid: undefined, unitid: null, unitidName: '', convertratio: '', }
+            { middlegoodsid: undefined, unitid: null, unitidName: '', convertratio: null, }
         ], // WRSConvertDetailEx 现货商品折算配置明细数据
     });
     type Key = 'gldwrstandards' | 'glddgfactoryItems' | 'wrsconvertdetails'
@@ -37,7 +37,7 @@ export function handleFromState() {
         } else if (key === 'glddgfactoryItems') {
             formState[key].push({ dgfactoryitemvalue: '', })
         } else if (key === 'wrsconvertdetails') {
-            formState[key].push({ middlegoodsid: undefined, unitid: null, unitidName: '', convertratio: '', })
+            formState[key].push({ middlegoodsid: undefined, unitid: null, unitidName: '', convertratio: null, })
         }
     }
     /**