Browse Source

no message

linwenxin 5 months ago
parent
commit
6ec797605a
1 changed files with 32 additions and 1 deletions
  1. 32 1
      src/views/workOrder/workOrderPool/detailModule/Payment/index.vue

+ 32 - 1
src/views/workOrder/workOrderPool/detailModule/Payment/index.vue

@@ -28,6 +28,7 @@ import { listPageV2 } from '@/api/workOrder/appraise'
 import { tableDataParsing } from '@/utils/common.js'
 import { changeOrderGetOrderList, enginMaterialDetailWorker, enginMaterialCancel } from '@/api/workOrderPool.js'
 import { orderBaseDetail } from '@/api/workOrderPool.js'
+import { number } from 'echarts'
 export default {
   props: {
     id: {
@@ -86,7 +87,7 @@ export default {
                 <el-descriptions-item label="支付状态">
                   {{ CANCEL: '取消', WAIT: '待支付', PAID: '已支付' }[formData.payStatus]}
                 </el-descriptions-item>
-                <el-descriptions-item label="支付总金额">{formData.totalAmount}</el-descriptions-item>
+                <el-descriptions-item label="支付总金额">{this.toFixed(formData.totalAmount)}</el-descriptions-item>
                 {!!~[1, 2, 3].indexOf(this?.workOrderType) ? (
                   <el-descriptions-item label="总手续费">{formData.commissionAmount}</el-descriptions-item>
                 ) : null}
@@ -127,6 +128,9 @@ export default {
                     columnAttributes: {
                       label: '单价',
                       prop: 'goodsAmount'
+                    },
+                    render: (h, { row, column }) => {
+                      return <div>{this.toFixed(column.columnAttributes.prop)}</div>
                     }
                   },
                   {
@@ -139,6 +143,9 @@ export default {
                     columnAttributes: {
                       label: '费用金额',
                       prop: 'totalAmount'
+                    },
+                    render: (h, { row, column }) => {
+                      return <div>{this.toFixed(column.columnAttributes.prop)}</div>
                     }
                   },
                   ...(() => {
@@ -148,24 +155,36 @@ export default {
                           columnAttributes: {
                             label: '师傅分账金额',
                             prop: 'workerAmount'
+                          },
+                          render: (h, { row, column }) => {
+                            return <div>{this.toFixed(column.columnAttributes.prop)}</div>
                           }
                         },
                         {
                           columnAttributes: {
                             label: '师傅手续费',
                             prop: 'workerProceAmount'
+                          },
+                          render: (h, { row, column }) => {
+                            return <div>{this.toFixed(column.columnAttributes.prop)}</div>
                           }
                         },
                         {
                           columnAttributes: {
                             label: '网点分账金额',
                             prop: 'websitAmount'
+                          },
+                          render: (h, { row, column }) => {
+                            return <div>{this.toFixed(column.columnAttributes.prop)}</div>
                           }
                         },
                         {
                           columnAttributes: {
                             label: '网点手续费',
                             prop: 'websitProceAmount'
+                          },
+                          render: (h, { row, column }) => {
+                            return <div>{this.toFixed(column.columnAttributes.prop)}</div>
                           }
                         }
                       ]
@@ -218,6 +237,9 @@ export default {
                     columnAttributes: {
                       label: '交易金额',
                       prop: 'totalAmount'
+                    },
+                    render: (h, { row, column }) => {
+                      return <div>{this.toFixed(column.columnAttributes.prop)}</div>
                     }
                   },
                   {
@@ -449,6 +471,9 @@ export default {
                     columnAttributes: {
                       label: '单价',
                       prop: 'goodsAmount'
+                    },
+                    render: (h, { row, column }) => {
+                      return <div>{this.toFixed(column.columnAttributes.prop)}</div>
                     }
                   },
                   {
@@ -461,6 +486,9 @@ export default {
                     columnAttributes: {
                       label: '费用金额',
                       prop: 'totalAmount'
+                    },
+                    render: (h, { row, column }) => {
+                      return <div>{this.toFixed(column.columnAttributes.prop)}</div>
                     }
                   }
                 ]}
@@ -714,6 +742,9 @@ export default {
           })
         })
         .catch(() => {})
+    },
+    toFixed(num = 0) {
+      return num.toFixed(2)
     }
   }
 }