临时做了些许调整
This commit is contained in:
@@ -28,10 +28,10 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getOptions().then(() => {
|
this.getOptions().then(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const hourNum = new Date().getHours(),
|
const hourNum = new Date().getHours(), groupCodeList = ""
|
||||||
groupCodeList = ""
|
let currentDate = ""
|
||||||
this.form = {hourNum, groupCodeList, type: "1", changeWay: "1"}
|
this.form = {hourNum, groupCodeList, type: "1", changeWay: "1", currentDate}
|
||||||
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: ""})
|
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: "", currentDate})
|
||||||
}, 500)
|
}, 500)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -54,6 +54,9 @@ export default {
|
|||||||
<el-date-picker v-model="form.compareDate" @change="v=>$set($multipleStoreBoard.search, 'compareDate', v)" clearable type="date" value-format="yyyyMMdd"/>
|
<el-date-picker v-model="form.compareDate" @change="v=>$set($multipleStoreBoard.search, 'compareDate', v)" clearable type="date" value-format="yyyyMMdd"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div class="fill"/>
|
<div class="fill"/>
|
||||||
|
<el-form-item label="当前日期">
|
||||||
|
<el-date-picker v-model="form.currentDate" @change="v=>$set($multipleStoreBoard.search, 'currentDate', v)" clearable type="date" value-format="yyyyMMdd"/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="课长">
|
<el-form-item label="课长">
|
||||||
<el-select v-model="form.groupCodeList" @change="v=>$multipleStoreBoard.search.groupCodeList=v?[v]:[]" clearable placeholder="全部">
|
<el-select v-model="form.groupCodeList" @change="v=>$multipleStoreBoard.search.groupCodeList=v?[v]:[]" clearable placeholder="全部">
|
||||||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"/>
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"/>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
const currentDate = "20240705"
|
|
||||||
export default {
|
export default {
|
||||||
name: "AppStoresTable",
|
name: "AppStoresTable",
|
||||||
label: "多店监控",
|
label: "多店监控",
|
||||||
@@ -75,7 +74,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
refs: v => v.$parent.getItemRefs(),
|
|
||||||
search: v => v.$multipleStoreBoard.search,
|
search: v => v.$multipleStoreBoard.search,
|
||||||
storeList: v => {
|
storeList: v => {
|
||||||
const list = []
|
const list = []
|
||||||
@@ -134,7 +132,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getStoreKeyGoods() {
|
getStoreKeyGoods() {
|
||||||
return $http.post("/data-boot/la/screen/multipleStoreBoard/storeKeyGoods", {
|
return $http.post("/data-boot/la/screen/multipleStoreBoard/storeKeyGoods", {
|
||||||
type: "1", ...this.search, currentDate
|
type: "1", ...this.search,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.storeKeyGoods = res.data
|
this.storeKeyGoods = res.data
|
||||||
@@ -175,7 +173,7 @@ export default {
|
|||||||
const {thirdGoodsCode} = this.storeKeyGoods[rowIndex],
|
const {thirdGoodsCode} = this.storeKeyGoods[rowIndex],
|
||||||
{storeCode, longitude, latitude} = store
|
{storeCode, longitude, latitude} = store
|
||||||
return $http.post("/data-boot/la/screen/multipleStoreBoard/aroundStock", {
|
return $http.post("/data-boot/la/screen/multipleStoreBoard/aroundStock", {
|
||||||
type: "1", ...this.search, storeCode, longitude, latitude, thirdGoodsCode, currentDate
|
type: "1", ...this.search, storeCode, longitude, latitude, thirdGoodsCode,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.aroundStock = res.data
|
this.aroundStock = res.data
|
||||||
|
|||||||
Reference in New Issue
Block a user