设置多店和单店的当前日期
This commit is contained in:
@@ -28,8 +28,9 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getOptions().then(() => {
|
this.getOptions().then(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
const {dayjs} = window
|
||||||
const hourNum = new Date().getHours(), groupCodeList = ""
|
const hourNum = new Date().getHours(), groupCodeList = ""
|
||||||
let currentDate = ""
|
const currentDate = dayjs().format("YYYYMMDD")
|
||||||
this.form = {hourNum, groupCodeList, type: "1", changeWay: "1", currentDate}
|
this.form = {hourNum, groupCodeList, type: "1", changeWay: "1", currentDate}
|
||||||
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: "", currentDate})
|
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: "", currentDate})
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|||||||
@@ -25,10 +25,12 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getOptions().then(() => {
|
this.getOptions().then(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
const {dayjs} = window
|
||||||
const hourNum = new Date().getHours(),
|
const hourNum = new Date().getHours(),
|
||||||
storeCode = this.$storeBoard.search.storeCode || this.options?.[0].storeCode
|
storeCode = this.$storeBoard.search.storeCode || this.options?.[0].storeCode
|
||||||
this.form = {hourNum, storeCode, type: "1"}
|
const currentDate = dayjs().format("YYYYMMDD")
|
||||||
this.$set(this.$storeBoard, 'search', {hourNum, storeCode, type: "1", categoryId: ''})
|
this.form = {hourNum, storeCode, type: "1", currentDate}
|
||||||
|
this.$set(this.$storeBoard, 'search', {hourNum, storeCode, type: "1", categoryId: '', currentDate})
|
||||||
}, 500)
|
}, 500)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -82,7 +84,7 @@ export default {
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
width: 120px;
|
width: 130px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.storeSelect .el-input__inner {
|
.storeSelect .el-input__inner {
|
||||||
|
|||||||
Reference in New Issue
Block a user