|
|
@@ -1,10 +1,9 @@
|
|
|
<template>
|
|
|
<div class="supply-system-detail">
|
|
|
<el-card>
|
|
|
- <div slot="header">
|
|
|
- <span>体系详情 — {{ system.name }}</span>
|
|
|
- <el-button style="float: right" size="mini" @click="$router.push('/supply-system')">返回列表</el-button>
|
|
|
- </div>
|
|
|
+ <PageHeader slot="header" :title="'体系详情 — ' + (system.name || '')">
|
|
|
+ <el-button size="mini" @click="$router.push('/supply-system')">返回列表</el-button>
|
|
|
+ </PageHeader>
|
|
|
|
|
|
<el-tabs v-model="activeTab">
|
|
|
<!-- Tab 1: 商品 -->
|
|
|
@@ -19,7 +18,7 @@
|
|
|
<el-table-column prop="stock" label="库存" width="80"></el-table-column>
|
|
|
<el-table-column prop="status" label="状态" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag size="mini">{{ scope.row.status }}</el-tag>
|
|
|
+ <StatusTag size="mini" :text="scope.row.status" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="100">
|
|
|
@@ -44,16 +43,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="role" label="角色" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag :type="scope.row.role === 'admin' ? 'warning' : 'default'" size="small">
|
|
|
- {{ scope.row.role === 'admin' ? '管理员' : '成员' }}
|
|
|
- </el-tag>
|
|
|
+ <StatusTag :type="scope.row.role === 'admin' ? 'warning' : 'info'" :text="scope.row.role === 'admin' ? '管理员' : '成员'" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="status" label="状态" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag size="mini" :type="scope.row.status === 'active' ? 'success' : 'info'">
|
|
|
- {{ scope.row.status === 'active' ? '活跃' : '非活跃' }}
|
|
|
- </el-tag>
|
|
|
+ <StatusTag size="mini" :type="scope.row.status === 'active' ? 'success' : 'info'" :text="scope.row.status === 'active' ? '活跃' : '非活跃'" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="joinedAt" label="加入时间" width="160">
|
|
|
@@ -80,7 +75,7 @@
|
|
|
<template slot-scope="scope">{{ scope.row.totalAmount != null ? (scope.row.totalAmount / 100).toFixed(2) : '-' }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="status" label="状态" width="80">
|
|
|
- <template slot-scope="scope"><el-tag size="mini">{{ scope.row.status }}</el-tag></template>
|
|
|
+ <template slot-scope="scope"><StatusTag size="mini" :text="scope.row.status" /></template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="supplierId" label="收款供应商" width="120">
|
|
|
<template slot-scope="scope">{{ scope.row.supplierId || '-' }}</template>
|
|
|
@@ -114,9 +109,7 @@
|
|
|
<el-table-column prop="supplierPayout" label="供应商实付(分)" width="120"></el-table-column>
|
|
|
<el-table-column prop="status" label="状态" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag :type="scope.row.status === 'settled' ? 'success' : 'warning'" size="small">
|
|
|
- {{ scope.row.status === 'settled' ? '已结算' : '待确认' }}
|
|
|
- </el-tag>
|
|
|
+ <StatusTag :type="scope.row.status === 'settled' ? 'success' : 'warning'" :text="scope.row.status === 'settled' ? '已结算' : '待确认'" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="180">
|
|
|
@@ -474,7 +467,7 @@ export default {
|
|
|
attrs: {
|
|
|
size: 'mini',
|
|
|
type: 'text',
|
|
|
- style: 'color: #f56c6c; margin-left: 5px;'
|
|
|
+ style: 'color: var(--adm-error-text); margin-left: 5px;'
|
|
|
},
|
|
|
on: {
|
|
|
click: (e) => {
|