Explorar el Código

采购订单小数点

caojunjie hace 2 años
padre
commit
28d1cfbe0c

+ 4 - 1
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -132,7 +132,7 @@
             <template slot="purchaseAmount" slot-scope="{ row }">
               <el-input v-if="row.$cellEdit" v-model="row.purchaseAmount" @change="changeContractAmt(row)"
                 v-input-limit="4"></el-input>
-              <span v-else>{{ row.purchaseAmount | decimalFormat }}</span>
+              <span v-else>{{ row.purchaseAmount | decimalFormatsiw }}</span>
             </template>
 
             <template slot="amount" slot-scope="{ row }">
@@ -691,6 +691,9 @@ export default {
     decimalFormat(num) {
       return num ? Number(num).toFixed(2) : "0.00";
     },
+    decimalFormatsiw(num) {
+       return num ? Number(num).toFixed(4) : "0.0000";
+    },
   },
   //初始化查询
   async created() {