|
@@ -35,70 +35,72 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="flex1 ov-hd pd-16">
|
|
|
|
|
|
|
+ <div class="flex1 ov-hd pd-16 d-flex flex-cln">
|
|
|
<searchTabs v-model="queryParams.publicFlag" @change="handleQuery" :list="tabs" key-label="name" key-value="type" key-count="num"></searchTabs>
|
|
<searchTabs v-model="queryParams.publicFlag" @change="handleQuery" :list="tabs" key-label="name" key-value="type" key-count="num"></searchTabs>
|
|
|
<div class="pd-8"></div>
|
|
<div class="pd-8"></div>
|
|
|
- <vxe-table :loading="loading" border :data="list" min-height="0" max-height="100%">
|
|
|
|
|
- <!-- 序号 -->
|
|
|
|
|
- <vxe-column type="seq" fixed="left" width="60" title="序号" align="center" />
|
|
|
|
|
- <vxe-column title="套餐名称" fixed="left" align="center" field="name" min-width="100" :formatter="colNoData" />
|
|
|
|
|
- <vxe-column title="适用对象" field="applyType" min-width="100">
|
|
|
|
|
- <template #default="{ row }">
|
|
|
|
|
- <view class="d-flex flex-cln">
|
|
|
|
|
- <template v-for="(item, index) in row?.priceDetail" :key="index">
|
|
|
|
|
- <view>
|
|
|
|
|
- {{ item?.memberLevelName }}-{{ NP.times(item?.memberDiscount, 10) }}折
|
|
|
|
|
- <span class="c-333 f-w-5">({{ item?.price }})</span>
|
|
|
|
|
- </view>
|
|
|
|
|
- </template>
|
|
|
|
|
- </view>
|
|
|
|
|
- </template>
|
|
|
|
|
- </vxe-column>
|
|
|
|
|
- <vxe-column title="检测项目" min-width="140">
|
|
|
|
|
- <template #default="{ row }">
|
|
|
|
|
- <view v-if="row?.items">
|
|
|
|
|
- {{ row?.items }}
|
|
|
|
|
- <el-button @click="queryRowItems(row)" type="primary" text>点击查看详情{{ '>' }}</el-button>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-else>-</view>
|
|
|
|
|
- </template>
|
|
|
|
|
- </vxe-column>
|
|
|
|
|
- <vxe-column title="检测周期" width="100">
|
|
|
|
|
- <template #default="{ row }">{{ row?.period }}天</template>
|
|
|
|
|
- </vxe-column>
|
|
|
|
|
- <vxe-column title="上架数量" field="totalCount" width="80" :formatter="colNoData"></vxe-column>
|
|
|
|
|
- <vxe-column title="销量" field="orderedCount" width="80" :formatter="colNoData"></vxe-column>
|
|
|
|
|
- <vxe-column title="套餐状态" align="center" width="90" fixed="right">
|
|
|
|
|
- <template #default="{ row }">
|
|
|
|
|
- <span v-if="+row?.status === 0" class="c-danger">未上架</span>
|
|
|
|
|
- <span v-else-if="+row?.status === 1" class="c-primary">在售</span>
|
|
|
|
|
- <span v-else-if="+row?.status === 2" class="c-999">已下架</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </vxe-column>
|
|
|
|
|
- <vxe-column title="操作" fixed="right" width="260">
|
|
|
|
|
- <template #default="{ row }">
|
|
|
|
|
- <template v-if="+row?.status === 0">
|
|
|
|
|
- <el-button @click="putaway(row)" text type="primary">上架</el-button>
|
|
|
|
|
- <span></span>
|
|
|
|
|
- <el-button @click="router.push({ path: 'menus-form', query: { id: row?.id } })" text type="primary">编辑</el-button>
|
|
|
|
|
|
|
+ <div class="flex1 ov-hd">
|
|
|
|
|
+ <vxe-table :loading="loading" border :data="list" min-height="0" max-height="100%">
|
|
|
|
|
+ <!-- 序号 -->
|
|
|
|
|
+ <vxe-column type="seq" fixed="left" width="60" title="序号" align="center" />
|
|
|
|
|
+ <vxe-column title="套餐名称" fixed="left" align="center" field="name" min-width="100" :formatter="colNoData" />
|
|
|
|
|
+ <vxe-column title="适用对象" field="applyType" min-width="100">
|
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
|
+ <view class="d-flex flex-cln">
|
|
|
|
|
+ <template v-for="(item, index) in row?.priceDetail" :key="index">
|
|
|
|
|
+ <view>
|
|
|
|
|
+ {{ item?.memberLevelName }}-{{ NP.times(item?.memberDiscount, 10) }}折
|
|
|
|
|
+ <span class="c-333 f-w-5">({{ item?.price }})</span>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </view>
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-if="+row?.status === 1">
|
|
|
|
|
- <el-button @click="soldOut(row)" text type="danger">下架</el-button>
|
|
|
|
|
- <span></span>
|
|
|
|
|
- <el-button text type="primary">分享</el-button>
|
|
|
|
|
|
|
+ </vxe-column>
|
|
|
|
|
+ <vxe-column title="检测项目" min-width="140">
|
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
|
+ <view v-if="row?.items">
|
|
|
|
|
+ {{ row?.items }}
|
|
|
|
|
+ <el-button @click="queryRowItems(row)" type="primary" text>点击查看详情{{ '>' }}</el-button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else>-</view>
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-if="+row?.status === 2">
|
|
|
|
|
- <el-button @click="putaway(row)" text type="primary">上架</el-button>
|
|
|
|
|
|
|
+ </vxe-column>
|
|
|
|
|
+ <vxe-column title="检测周期" width="100">
|
|
|
|
|
+ <template #default="{ row }">{{ row?.period }}天</template>
|
|
|
|
|
+ </vxe-column>
|
|
|
|
|
+ <vxe-column title="上架数量" field="totalCount" width="80" :formatter="colNoData"></vxe-column>
|
|
|
|
|
+ <vxe-column title="销量" field="orderedCount" width="80" :formatter="colNoData"></vxe-column>
|
|
|
|
|
+ <vxe-column title="套餐状态" align="center" width="90" fixed="right">
|
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
|
+ <span v-if="+row?.status === 0" class="c-danger">未上架</span>
|
|
|
|
|
+ <span v-else-if="+row?.status === 1" class="c-primary">在售</span>
|
|
|
|
|
+ <span v-else-if="+row?.status === 2" class="c-999">已下架</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </vxe-column>
|
|
|
|
|
+ <vxe-column title="操作" fixed="right" width="260">
|
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
|
+ <template v-if="+row?.status === 0">
|
|
|
|
|
+ <el-button @click="putaway(row)" text type="primary">上架</el-button>
|
|
|
|
|
+ <span></span>
|
|
|
|
|
+ <el-button @click="router.push({ path: 'menus-form', query: { id: row?.id } })" text type="primary">编辑</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="+row?.status === 1">
|
|
|
|
|
+ <el-button @click="soldOut(row)" text type="danger">下架</el-button>
|
|
|
|
|
+ <span></span>
|
|
|
|
|
+ <el-button text type="primary">分享</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="+row?.status === 2">
|
|
|
|
|
+ <el-button @click="putaway(row)" text type="primary">上架</el-button>
|
|
|
|
|
+ <span></span>
|
|
|
|
|
+ <el-button text style="color: #999;" disabled>分享</el-button>
|
|
|
|
|
+ </template>
|
|
|
<span></span>
|
|
<span></span>
|
|
|
- <el-button text style="color: #999;" disabled>分享</el-button>
|
|
|
|
|
|
|
+ <el-button @click="copyItem(row)" text type="primary">复制</el-button>
|
|
|
|
|
+ <span></span>
|
|
|
|
|
+ <el-button @click="router.push({ path: 'menus-detail', query: { id: row?.id } })" text type="primary">详情</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
- <span></span>
|
|
|
|
|
- <el-button @click="copyItem(row)" text type="primary">复制</el-button>
|
|
|
|
|
- <span></span>
|
|
|
|
|
- <el-button @click="router.push({ path: 'menus-detail', query: { id: row?.id } })" text type="primary">详情</el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </vxe-column>
|
|
|
|
|
- </vxe-table>
|
|
|
|
|
|
|
+ </vxe-column>
|
|
|
|
|
+ </vxe-table>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
</div>
|
|
</div>
|