haoxuan
2023-08-25 db64fc3d6ff2809ec6b5d8cc42a21c67746df209
src/components/makepager/CommonFormTableView.vue
@@ -63,7 +63,7 @@
                    <i class="el-icon-circle-plus-outline" title="选择"></i>
                  </div>
                  <div class="common-select-btn" @click="clearupClient(scope.row)">
                    <i class="el-icon-edit-outline" title="清除"></i>
                    <i class="el-icon-remove-outline" title="清除"></i>
                  </div>
                </div>
              </el-form-item>
@@ -129,7 +129,7 @@
      <el-button size="small" type="primary" @click="add">新增</el-button>
      <!-- <el-button size="small" type="primary" disabled>导入明细</el-button> -->
      <el-button size="small" type="primary" @click="empty">清空</el-button>
      <el-button size="small" type="primary" @click="recalculate" :disabled="isRecalculate ? false : true"
      <el-button size="small" v-if="recalculateShow" type="primary" @click="recalculate" :disabled="isRecalculate ? false : true"
        >重算</el-button
      >
    </div>
@@ -185,10 +185,16 @@
          total: false,
          refundable: false,
          sumProp: [],
          titleProp:["#", "产品名称"],
          mergeNumber: 1
        }
      }
    }
    },
    recalculateShow:{
      type:[Boolean],
      defalut:true,
    },
  },
  data() {
    return {
@@ -263,7 +269,7 @@
          sums[index] = "小计:"
          return
        }
        const title = ["#", "产品名称"]
        const title = this.showSummary.titleProp
        // 去除某些不需要计算的数据
        if (title.includes(column.label)) {
          sums[index] = ""