Просмотр исходного кода

权益单品售价字段更换

@dongkboy 2 месяцев назад
Родитель
Сommit
2e07bcb1e2
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      src/views/insurancePolicy/modules/Equities.vue

+ 6 - 6
src/views/insurancePolicy/modules/Equities.vue

@@ -67,7 +67,7 @@
                   <div class="Details-list">
                   <div class="Details-list">
                     <div class="view flex a-c  " v-for="item in selectedPackageDetail.rightsDetailsList">
                     <div class="view flex a-c  " v-for="item in selectedPackageDetail.rightsDetailsList">
                       <div class="item">{{ item.rightsName }}</div>
                       <div class="item">{{ item.rightsName }}</div>
-                      <div class="item">¥{{ item.settlePrice }}元</div>
+                      <div class="item">¥{{ item.contractRate }}元</div>
                     </div>
                     </div>
                   </div>
                   </div>
                 </div>
                 </div>
@@ -78,17 +78,17 @@
             <!-- 权益单品 -->
             <!-- 权益单品 -->
             <el-table :data="privilegeItem" style="width: 100%" max-height="300px" overflow="auto">
             <el-table :data="privilegeItem" style="width: 100%" max-height="300px" overflow="auto">
               <el-table-column prop="rightsName" label="权益名称" width="180" align="center" />
               <el-table-column prop="rightsName" label="权益名称" width="180" align="center" />
-              <el-table-column prop="settlePrice" label="单价" width="180" align="center" />
+              <el-table-column prop="contractRate" label="单价" width="180" align="center" />
               <el-table-column prop="rightsCount" label="发放数量" align="center">
               <el-table-column prop="rightsCount" label="发放数量" align="center">
                 <template #default="scope">
                 <template #default="scope">
                   <el-input-number size="small" :model-value="scope.row.rightsCount"
                   <el-input-number size="small" :model-value="scope.row.rightsCount"
-                    @update:model-value="val => onRightsCountChange(val, scope.$index, 'privilegeItem', 'settlePrice')"
+                    @update:model-value="val => onRightsCountChange(val, scope.$index, 'privilegeItem', 'contractRate')"
                     :min="0" />
                     :min="0" />
                 </template>
                 </template>
               </el-table-column>
               </el-table-column>
               <el-table-column prop="totalsum" label="总价" align="center">
               <el-table-column prop="totalsum" label="总价" align="center">
                 <template #default="scope">
                 <template #default="scope">
-                  <span>{{ scope.row.settlePrice * scope.row.rightsCount }}</span>
+                  <span>{{ scope.row.contractRate * scope.row.rightsCount }}</span>
                 </template>
                 </template>
               </el-table-column>
               </el-table-column>
             </el-table>
             </el-table>
@@ -116,7 +116,7 @@
                 </div>
                 </div>
                 <div class="mt-5 flex a-c j-s">
                 <div class="mt-5 flex a-c j-s">
                   <span v-if="item.totalNumber">数量:{{ item.totalNumber }}张</span>
                   <span v-if="item.totalNumber">数量:{{ item.totalNumber }}张</span>
-                  <span>价格:{{ item.packagePrice || item.settlePrice }}元</span>
+                  <span>价格:{{ item.packagePrice || item.contractRate }}元</span>
                   <el-icon @click="removeSelectedRight(item)">
                   <el-icon @click="removeSelectedRight(item)">
                     <Delete />
                     <Delete />
                   </el-icon>
                   </el-icon>
@@ -201,7 +201,7 @@ const totalPriceCount = computed(() => {
   // 计算权益单品的总价
   // 计算权益单品的总价
   const itemTotal = privilegeItem.value?.reduce((sum: Decimal, item: any) => {
   const itemTotal = privilegeItem.value?.reduce((sum: Decimal, item: any) => {
     if (item.rightsCount > 0) {
     if (item.rightsCount > 0) {
-      const itemTotal = new Decimal(item.settlePrice || 0).times(new Decimal(item.rightsCount || 0));
+      const itemTotal = new Decimal(item.contractRate || 0).times(new Decimal(item.rightsCount || 0));
       return sum.plus(itemTotal);
       return sum.plus(itemTotal);
     }
     }
     return sum;
     return sum;