Procházet zdrojové kódy

客户档案-佣金,中间人佣金,折扣后增加’%‘

jingbb před 5 měsíci
rodič
revize
3a414b91ca

+ 17 - 21
src/views/cuspCode/CustomerProfile/CuspCustomerProfile.data.ts

@@ -352,13 +352,7 @@ export const formSchema: FormSchema[] = [
     labelWidth: 200,
     component: 'InputNumber',
     componentProps: {
-      formatter: (value) => {
-        if(value&&value!==''){
-          return value + '%';
-        }else{
-          return value
-        }
-      },
+      addonAfter:"%",
     },
   },
   {
@@ -368,13 +362,14 @@ export const formSchema: FormSchema[] = [
     labelWidth: 250,
     component: 'InputNumber',
     componentProps: {
-      formatter: (value) => {
-        if(value&&value!==''){
-          return value + '%';
-        }else{
-          return value
-        }
-      },
+      addonAfter:"%",
+      // formatter: (value) => {
+      //   if(value&&value!==''){
+      //     return value + '%';
+      //   }else{
+      //     return value
+      //   }
+      // },
     },
   },
   {
@@ -394,13 +389,14 @@ export const formSchema: FormSchema[] = [
     labelWidth: 250,
     component: 'InputNumber',
     componentProps: {
-      formatter: (value) => {
-        if(value&&value!==''){
-          return value + '%';
-        }else{
-          return value
-        }
-      },
+      addonAfter:"%",
+      // formatter: (value) => {
+      //   if(value&&value!==''){
+      //     return value + '%';
+      //   }else{
+      //     return value
+      //   }
+      // },
     },
   },
   {

+ 3 - 0
src/views/cuspCode/CustomerProfile/components/CuspCustomerProfileModal.vue

@@ -132,4 +132,7 @@
   /deep/.ant-modal{
    top: 34px;
   }
+  /deep/.ant-input-number-group-wrapper{
+    width: 100% !important;
+  }
 </style>