需求变更-1

This commit is contained in:
aixianling
2024-10-22 10:08:51 +08:00
parent be94d86119
commit fcb2fe3b47
6 changed files with 98 additions and 31 deletions

View File

@@ -1,6 +1,9 @@
<script>
import AppSubTitle from "@/views/AppSubTitle.vue";
export default {
name: "AppKeyGoods",
components: {AppSubTitle},
label: "市场看板-重点单品",
data() {
return {
@@ -11,11 +14,13 @@ export default {
{label: "库存数量", prop: "stockNum", width: 70},
{label: "销售目标", prop: "targetSaleNum", width: 70},
{label: "销售达成", prop: "saleAchieveRate"},
]
],
goodsCategoryId: ""
}
},
computed: {
search: v => v.$marketBoard.search,
dicts: v => window.$dicts || {},
tableConfig: v => {
return {
headerBGC: 'rgba(13, 48, 99, 0.6)',
@@ -31,8 +36,9 @@ export default {
methods: {
getTableData() {
const {$http, $waitFor} = window
$waitFor($http).then(() => $http.post("/data-boot/la/screen/marketBoard/marketKeyGoods", {
...this.search, limit: 999
const {goodsCategoryId} = this
$waitFor($http).then(() => $http.post("/data-boot/ca/screen/scStoreKeyGoods/list", {
...this.search, limit: 999, goodsCategoryId
})).then(res => {
if (res?.data) {
this.tableData = res.data?.records || []
@@ -52,6 +58,13 @@ export default {
<template>
<section class="AppKeyGoods">
<app-sub-title text="重点单品">
<template #right>
<el-select placeholder="全部" v-model="goodsCategoryId" size="small" clearable class="AppSelect" @change="getTableData">
<el-option v-for="(op,i) in dicts.品类" :key="i" v-bind="op"/>
</el-select>
</template>
</app-sub-title>
<scroll-table :table-data="tableData" :columns="columns"/>
<!--<dv-scroll-board :config="tableConfig"/>-->
</section>