add:合伙人账号启用/禁用;供应商启用/禁用;花店端账号禁用/启用
| | |
| | | <div class="leading-20">申请数量:{{ item.num }}</div> |
| | | <div class="leading-20">实际退款:{{ item.totalFee }}</div> |
| | | <div class="leading-20 flex"> |
| | | 申请理由: |
| | | 售后类别: |
| | | <div class="flex-1 text-overflow-2 w-0 break-all"> |
| | | {{ item.reason }} |
| | | {{ item.salesType }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | commonFormatProps: ['salesStartDateStr', 'salesEndDateStr'], |
| | | customClass: 'in-bus-form', |
| | | }, |
| | | { |
| | | label: '售后类别', |
| | | id: 'salesType', |
| | | type: 'bus-select-dict', |
| | | el: { |
| | | code: 'after_sale_type', |
| | | clearable: true, |
| | | style: 'width:100%', |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | |
| | | import { dateRangeOptions } from '@/utils/options' |
| | | import CustomDateRange from '@/components/custom-date-range.vue' |
| | | import PrintList from '@/components/order/print-list' |
| | | import GoodsTableItemList from '@/components/order/goods-table-item-list.vue' |
| | | // import GoodsTableItemList from '@/components/order/goods-table-item-list.vue' |
| | | export default { |
| | | components: { |
| | | PrintList, |
| | |
| | | }${row.customerAddress || ''}`, |
| | | minWidth: 250, |
| | | }, |
| | | { |
| | | label: '商品信息', |
| | | formatter: (row) => <GoodsTableItemList items={row.items} />, |
| | | minWidth: 250, |
| | | }, |
| | | // { |
| | | // label: '商品信息', |
| | | // formatter: (row) => <GoodsTableItemList items={row.items} />, |
| | | // minWidth: 250, |
| | | // }, |
| | | { label: '订单金额(元)', prop: 'totalAmount', minWidth: 150 }, |
| | | { label: '底价(元)', prop: 'supplierAmount', minWidth: 150 }, |
| | | { label: '订单状态', prop: 'statusBackendStr', minWidth: 120 }, |
| | |
| | | prop: 'statusStr', |
| | | minWidth: 150, |
| | | }, |
| | | { |
| | | label: '启用/禁用', |
| | | formatter: (row) => ( |
| | | <el-switch |
| | | value={row.isEnabled} |
| | | onChange={this.onEnabledChange.bind(this, row)} |
| | | ></el-switch> |
| | | ), |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | }, |
| | | ], |
| | | searchForm: [ |
| | | { |
| | |
| | | type: 'bus-select-dict', |
| | | el: { |
| | | code: 'supplier_status', |
| | | clearable: true, |
| | | style: 'width:100%', |
| | | }, |
| | | }, |
| | | { |
| | | label: '启动/禁用', |
| | | id: 'isEnabled', |
| | | type: 'bus-select-dict', |
| | | el: { |
| | | code: 'USER_ENABLED_OR_DISABLED', |
| | | clearable: true, |
| | | style: 'width:100%', |
| | | }, |
| | |
| | | } |
| | | return '' |
| | | }, |
| | | onEnabledChange(row, e) { |
| | | const url = 'flower/api/partner/page/isEnable' |
| | | const text = e ? '启用' : '禁用' |
| | | this.$elBusUtil |
| | | .confirm(`确定要${text}这个合伙人吗?`) |
| | | .then(async () => { |
| | | const { code } = await this.$elBusHttp.request(url, { |
| | | params: { |
| | | id: row.id, |
| | | }, |
| | | }) |
| | | if (code === 0) { |
| | | this.$message.success(`${text}成功`) |
| | | this.$refs.crud.getList() |
| | | } |
| | | }) |
| | | .catch(() => {}) |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
| | |
| | | hasDelete: false, |
| | | operationAttrs: { |
| | | width: 150, |
| | | fixed: 'right', |
| | | }, |
| | | beforeOpen: (data, isNew) => { |
| | | if (!isNew) { |
| | |
| | | }, |
| | | { label: '联系方式', prop: 'tel', minWidth: 150 }, |
| | | { label: '注册时间', prop: 'createTime', minWidth: 180 }, |
| | | { |
| | | label: '启用/禁用', |
| | | formatter: (row) => ( |
| | | <el-switch |
| | | value={row.isEnabled} |
| | | onChange={this.onEnabledChange.bind(this, row)} |
| | | ></el-switch> |
| | | ), |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | }, |
| | | ], |
| | | searchForm: [ |
| | | { |
| | |
| | | customClass: 'in-bus-form', |
| | | }, |
| | | { label: '手机号', id: 'tel', type: 'input' }, |
| | | { |
| | | label: '启动/禁用', |
| | | id: 'isEnabled', |
| | | type: 'bus-select-dict', |
| | | el: { |
| | | code: 'USER_ENABLED_OR_DISABLED', |
| | | clearable: true, |
| | | style: 'width:100%', |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | |
| | | row.address || '' |
| | | }` |
| | | }, |
| | | onEnabledChange(row, e) { |
| | | const url = 'flower/api/customer/page/isEnable' |
| | | const text = e ? '启用' : '禁用' |
| | | this.$elBusUtil |
| | | .confirm(`确定要${text}这个商户吗?`) |
| | | .then(async () => { |
| | | const { code } = await this.$elBusHttp.request(url, { |
| | | params: { |
| | | id: row.id, |
| | | }, |
| | | }) |
| | | if (code === 0) { |
| | | this.$message.success(`${text}成功`) |
| | | this.$refs.crud.getList() |
| | | } |
| | | }) |
| | | .catch(() => {}) |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
| | |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | }, |
| | | { |
| | | label: '启用/禁用', |
| | | formatter: (row) => ( |
| | | <el-switch |
| | | value={row.isEnabled} |
| | | onChange={this.onEnabledChange.bind(this, row)} |
| | | ></el-switch> |
| | | ), |
| | | minWidth: 120, |
| | | fixed: 'right', |
| | | }, |
| | | ], |
| | | searchForm: [ |
| | | { |
| | |
| | | { |
| | | ...getStationListConfig(), |
| | | label: '所属集货站', |
| | | }, |
| | | { |
| | | label: '启动/禁用', |
| | | id: 'isEnabled', |
| | | type: 'bus-select-dict', |
| | | el: { |
| | | code: 'USER_ENABLED_OR_DISABLED', |
| | | clearable: true, |
| | | style: 'width:100%', |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | }) |
| | | .catch(() => {}) |
| | | }, |
| | | onEnabledChange(row, e) { |
| | | const url = 'flower/api/supplier/page/isEnable' |
| | | const text = e ? '启用' : '禁用' |
| | | this.$elBusUtil |
| | | .confirm(`确定要${text}这个供应商吗?`) |
| | | .then(async () => { |
| | | const { code } = await this.$elBusHttp.request(url, { |
| | | params: { |
| | | id: row.id, |
| | | }, |
| | | }) |
| | | if (code === 0) { |
| | | this.$message.success(`${text}成功`) |
| | | this.$refs.crud.getList() |
| | | } |
| | | }) |
| | | .catch(() => {}) |
| | | }, |
| | | }, |
| | | } |
| | | </script> |