陶杰
2024-12-18 daa0b51b0b3609c683da3066c2815d3e9eb42b3f
pages/settlement/list/index.vue
@@ -13,6 +13,8 @@
        hasNew: false,
        hasEdit: false,
        hasDelete: false,
        hasExport: true,
        exportUrl: 'flower/api/settlement/export',
        onResetView: (row) => {
          this.$router.push(`${this.$route.path}/${row.id}`)
        },
@@ -38,7 +40,9 @@
          { label: '商品数量', prop: 'flowerNum', minWidth: 100 },
          { label: '结算合计(元)', prop: 'totalAmount', minWidth: 120 },
          { label: '结算均价(元)', prop: 'price', minWidth: 120 },
          { label: '质检扣款(元)', prop: 'checkFee', minWidth: 120 },
          { label: '降级扣款(元)', prop: 'checkFee', minWidth: 120 },
          { label: '缺货扣款(元)', prop: 'lackFee', minWidth: 120 },
          { label: '补货扣款(元)', prop: 'replaceFee', minWidth: 120 },
          { label: '售后理赔(元)', prop: 'salesFee', minWidth: 120 },
          { label: '服务费(元)', prop: 'serviceFee', minWidth: 120 },
          { label: '集货站运费(元)', prop: 'stationFee', minWidth: 120 },
@@ -91,13 +95,14 @@
                commonFormatProps: ['dateType', 'startDateStr', 'endDateStr'],
                span: 24,
              },
              { label: '结算人:', id: 'userName', type: 'input' },
            ],
          },
        ],
        extraButtons: [
          {
            text: '结算',
            show: (row) => row.status === 'PENDING',
            show: (row) => row.status === 'PENDING' || row.status === 'FAILED',
            atClick: async (row) => {
              try {
                await this.$elBusUtil.confirm('确定要结算吗?')
@@ -132,7 +137,7 @@
<style lang="scss" scoped>
::v-deep {
  .el-bus-crud__filter__action {
    display: none;
    //display: none;
  }
}
</style>