| | |
| | | <template> |
| | | <el-bus-crud ref="crud" v-bind="tableConfig"></el-bus-crud> |
| | | <el-bus-crud ref="crud" v-bind="tableConfig"> |
| | | <template #table="{ list }"> |
| | | <template v-if="list && list.length > 0"> |
| | | <after-sale-table :list="list" @detail="onDetail" /> |
| | | </template> |
| | | <el-bus-empty v-else /> |
| | | </template> |
| | | </el-bus-crud> |
| | | </template> |
| | | |
| | | <script> |
| | | import AfterSaleTable from '@/components/order/after-sale-table' |
| | | export default { |
| | | components: { |
| | | AfterSaleTable, |
| | | }, |
| | | data() { |
| | | return { |
| | | tableConfig: { |
| | |
| | | el: { |
| | | hasAll: true, |
| | | childType: 'el-radio-button', |
| | | code: 'SALES_STATUS', |
| | | code: 'ORDER_SALES_STATUS', |
| | | }, |
| | | default: '', |
| | | span: 24, |
| | | searchImmediately: true, |
| | | }, |
| | | { |
| | | label: '审核状态:', |
| | | id: 'auditStatus', |
| | | type: 'bus-radio', |
| | | el: { |
| | | hasAll: true, |
| | | childType: 'el-radio-button', |
| | | code: 'SALES_AUDIT_STATUS', |
| | | }, |
| | | default: '', |
| | | span: 24, |
| | | searchImmediately: true, |
| | | }, |
| | | { label: '商品名称:', id: 'flowerName', type: 'input' }, |
| | | { label: '订单号:', id: 'orderNo', type: 'input' }, |
| | | { label: '售后单号:', id: 'salesNo', type: 'input' }, |
| | | { label: '收货人姓名:', id: 'customer', type: 'input' }, |
| | | { label: '收货人电话:', id: 'customerTel', type: 'input' }, |
| | | { label: '供应商:', id: 'supplierName', type: 'input' }, |
| | | { |
| | | label: '下单时间:', |
| | | id: 'orderStartDateStr', |
| | | component: 'el-bus-date-range', |
| | | commonFormat: true, |
| | | commonFormatProps: ['orderStartDateStr', 'orderEndDateStr'], |
| | | customClass: 'in-bus-form', |
| | | }, |
| | | { |
| | | label: '售后时间:', |
| | | id: 'salesStartDateStr', |
| | | component: 'el-bus-date-range', |
| | | commonFormat: true, |
| | | commonFormatProps: ['salesStartDateStr', 'salesEndDateStr'], |
| | | customClass: 'in-bus-form', |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | |
| | | title: '售后理赔', |
| | | } |
| | | }, |
| | | methods: { |
| | | onDetail(item) { |
| | | this.$router.push(`${this.$route.path}/view/${item.id}`) |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
| | | |