yuanrf 1 vuosi sitten
vanhempi
commit
c29a19b19b
1 muutettua tiedostoa jossa 7 lisäystä ja 3 poistoa
  1. 7 3
      src/components/OP/CarTouristGuideGrounContent.vue

+ 7 - 3
src/components/OP/CarTouristGuideGrounContent.vue

@@ -85,9 +85,13 @@
                         </el-table-column>
                         <el-table-column label="数量" width="100">
                             <template slot-scope="scope">
-                                <el-input size="small" style="width: 100%;" placeholder="选择单位" v-model="scope.row.count"
+                                <!-- <el-input size="small" style="width: 100%;" placeholder="数量" v-model="scope.row.count"
                                     @change="PriceChange">
-                                </el-input>
+                                </el-input> -->
+                                <div class="el-input-number-style">
+                                    <el-input-number size="small" placeholder="数量" v-model="scope.row.count"
+                                        style="width: 100%;" :controls="false" @change="PriceChange"></el-input-number>
+                                </div>
                             </template>
                         </el-table-column>
                         <el-table-column label="单位" width="200">
@@ -444,7 +448,7 @@ export default {
             var countCost = 0;
             this.ContentList.forEach(function (item) {
                 if (item.price) {
-                    countCost += parseFloat(item.price)
+                    countCost += Number(item.price) * Number(item.count)
                 }
             })