cloudroam
2025-03-28 cef2bb0eeeb91a22860cf5d23c7348af1ba921dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<template>
  <el-bus-crud v-bind="tableConfig" />
</template>
 
<script>
import { getPartnerListConfig } from '@/utils/form-item-config'
export default {
  data() {
    return {
      tableConfig: {
        url: 'flower/api/flower/markup/ps/list',
        hasEdit: false,
        hasView: false,
        columns: [
          { label: '序号', type: 'index' },
          { label: '合伙人名称', prop: 'name' },
          { label: '联系人方式', prop: 'tel' },
        ],
        searchForm: [
          {
            type: 'row',
            items: [{ label: '合伙人名称', id: 'name', type: 'input' }],
          },
        ],
        form: [
          {
            ...getPartnerListConfig(),
            rules: { required: true, message: '请选择合伙人' },
          },
        ],
        extraButtons: [
          {
            text: '分类加价',
            atClick: (row) => {
              this.$router.push(
                `${this.$route.path}/${row.id}/category?partnerName=${row.name}`
              )
            },
          },
          {
            text: '商品加价',
            atClick: (row) => {
              this.$router.push(
                `${this.$route.path}/${row.id}/goods?partnerName=${row.name}`
              )
            },
          },
        ],
      },
    }
  },
  head() {
    return {
      title: '平台加价',
    }
  },
}
</script>