| | |
| | | return value ? value.replace('T', ' ') : '' |
| | | } |
| | | |
| | | function merchantTypeText(value?: string) { |
| | | const type = String(value || '') |
| | | if (type === 'food') return '餐饮服务' |
| | | if (type === 'scenic') return '景区服务' |
| | | return type |
| | | } |
| | | |
| | | function paymentTime(row: Order) { |
| | | return row.orderStatus === 0 ? '' : formatDateTime(row.payTime) |
| | | } |
| | |
| | | <el-table-column prop="talentMobile" label="持卡人电话" width="112" /> |
| | | <el-table-column prop="talentLevel" label="人才等级" width="104" /> |
| | | <el-table-column prop="merchantName" label="商家名称" width="118" show-overflow-tooltip /> |
| | | <el-table-column prop="merchantType" label="商家类型" width="86" /> |
| | | <el-table-column label="商家类型" width="86"><template #default="{ row }">{{ merchantTypeText(row.merchantType) }}</template></el-table-column> |
| | | <el-table-column :label="itemNameLabel" min-width="100" show-overflow-tooltip> |
| | | <template #default="{ row }">{{ row.benefitName || row.productName || '-' }}</template> |
| | | </el-table-column> |