Ver Fonte

保留两位小数

jbb há 2 anos atrás
pai
commit
89d10a8927
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      src/views/book/packingListModalFabrics.vue

+ 5 - 2
src/views/book/packingListModalFabrics.vue

@@ -173,11 +173,14 @@ export default {
           className: 'replacecolor'
         },
         {
-          title: '总件数',
+          title: '数',
           dataIndex: 'number',
           width: 120,
           ellipsis: true,
-          className: 'replacecolor'
+          className: 'replacecolor',
+           customRender: text => {
+            return text.toFixed(2)
+          }
         },
       ],
       packingListData: [],