临时做了些许调整
This commit is contained in:
@@ -28,10 +28,10 @@ export default {
|
||||
created() {
|
||||
this.getOptions().then(() => {
|
||||
setTimeout(() => {
|
||||
const hourNum = new Date().getHours(),
|
||||
groupCodeList = ""
|
||||
this.form = {hourNum, groupCodeList, type: "1", changeWay: "1"}
|
||||
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: ""})
|
||||
const hourNum = new Date().getHours(), groupCodeList = ""
|
||||
let currentDate = ""
|
||||
this.form = {hourNum, groupCodeList, type: "1", changeWay: "1", currentDate}
|
||||
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: "", currentDate})
|
||||
}, 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-form-item>
|
||||
<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-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"/>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script>
|
||||
const currentDate = "20240705"
|
||||
export default {
|
||||
name: "AppStoresTable",
|
||||
label: "多店监控",
|
||||
@@ -75,7 +74,6 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
refs: v => v.$parent.getItemRefs(),
|
||||
search: v => v.$multipleStoreBoard.search,
|
||||
storeList: v => {
|
||||
const list = []
|
||||
@@ -134,7 +132,7 @@ export default {
|
||||
},
|
||||
getStoreKeyGoods() {
|
||||
return $http.post("/data-boot/la/screen/multipleStoreBoard/storeKeyGoods", {
|
||||
type: "1", ...this.search, currentDate
|
||||
type: "1", ...this.search,
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.storeKeyGoods = res.data
|
||||
@@ -175,7 +173,7 @@ export default {
|
||||
const {thirdGoodsCode} = this.storeKeyGoods[rowIndex],
|
||||
{storeCode, longitude, latitude} = store
|
||||
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 => {
|
||||
if (res?.data) {
|
||||
this.aroundStock = res.data
|
||||
|
||||
Reference in New Issue
Block a user