Merge remote-tracking branch 'origin/main'

This commit is contained in:
2024-07-23 19:59:01 +08:00
5 changed files with 16 additions and 9 deletions

View File

@@ -108,7 +108,7 @@ export default {
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.storeKeyGoods = res.data this.storeKeyGoods = res.data
this.$storeBoard.storeKeyGoods = res.data this.$set(this.$storeBoard, 'storeKeyGoods', res.data)
} }
}) })
}, },

View File

@@ -6,8 +6,8 @@ export default {
return { return {
tableData: [], tableData: [],
columns: [ columns: [
{label: "重点单品", prop: "goodsCategoryName"}, {label: "重点单品", prop: "goodsName"},
{label: "销售", prop: "saleNum", width: 70}, {label: "销售数量", prop: "saleNum", width: 70},
{label: "库存数量", prop: "stockNum", width: 70}, {label: "库存数量", prop: "stockNum", width: 70},
{label: "销售目标", prop: "targetSaleNum", width: 70}, {label: "销售目标", prop: "targetSaleNum", width: 70},
{label: "销售达成", prop: "saleAchieveRate"}, {label: "销售达成", prop: "saleAchieveRate"},

View File

@@ -4,6 +4,7 @@ export default {
label: "表格", label: "表格",
data() { data() {
return { return {
tableData: [],
columns: [ columns: [
{label: "重点单品", prop: "goodsName"}, {label: "重点单品", prop: "goodsName"},
{label: "当日目标", prop: "targetNum", width: 70}, {label: "当日目标", prop: "targetNum", width: 70},
@@ -15,7 +16,6 @@ export default {
} }
}, },
computed: { computed: {
tableData: v => v.$storeBoard.storeKeyGoods || [],
tableConfig: v => { tableConfig: v => {
return { return {
headerBGC: 'rgba(13, 48, 99, 0.6)', rowNum: 9, headerBGC: 'rgba(13, 48, 99, 0.6)', rowNum: 9,
@@ -28,6 +28,13 @@ export default {
} }
}, },
}, },
watch: {
$storeBoard: {
deep: true, immediate: true, handler(v) {
this.tableData = v.storeKeyGoods || []
}
}
},
methods: { methods: {
openNearbyStores({rowIndex}) { openNearbyStores({rowIndex}) {
const {thirdGoodsCode} = this.tableData[rowIndex], const {thirdGoodsCode} = this.tableData[rowIndex],

View File

@@ -149,8 +149,8 @@ export default {
}) })
}, },
gotoDetail(store) { gotoDetail(store) {
$glob.group = "a90522ef-869b-40ea-8542-d1fc9674a1e8" this.$storeBoard.search.storeCode = store.storeCode
this.$storeBoard.query.storeCode = store.storeCode this.$marketBoard.screenId = 'a90522ef-869b-40ea-8542-d1fc9674a1e8'
}, },
getTableData(item = {}, tag) { getTableData(item = {}, tag) {
const v = this const v = this

View File

@@ -357,7 +357,7 @@ export default {
showHoverPanel({data: marker, position} = {}) { showHoverPanel({data: marker, position} = {}) {
this.hoverPanelElement.style.opacity = '1' this.hoverPanelElement.style.opacity = '1'
this.hoverPanelElement.innerHTML = [marker.storeName, `现烤库存金额:${marker.bakeStockAmt}`, `现烤销售机会:${marker.bakeStockAmt}`].join('<br/>') this.hoverPanelElement.innerHTML = [marker.storeName, `现烤库存金额:${marker.bakeStockAmt}`, `现烤销售机会:${marker.preSaleNum}`].join('<br/>')
this.hoverPanel.scale.set(...Array(3).fill(0.04)) this.hoverPanel.scale.set(...Array(3).fill(0.04))
this.hoverPanel.rotation.z = Math.PI / 2 this.hoverPanel.rotation.z = Math.PI / 2
this.hoverPanel.rotation.y = Math.PI / 6 this.hoverPanel.rotation.y = Math.PI / 6
@@ -369,10 +369,10 @@ export default {
}, },
getData() { getData() {
const {$http, $waitFor} = window const {$http, $waitFor} = window
const {groupCodeList, currentDate} = this.search const {groupCodeList, currentDate, hourNum} = this.search
return $waitFor($http).then(() => Promise.all([ return $waitFor($http).then(() => Promise.all([
$http.post("/data-boot/la/screen/marketBoard/storeReport", { $http.post("/data-boot/la/screen/marketBoard/storeReport", {
groupCodeList, currentDate groupCodeList, currentDate, hourNum
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
return this.layers = res.data || [] return this.layers = res.data || []