|
@@ -748,21 +748,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
that = this;
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- // getEmployeeOrgan().then((res) => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.organList = res.data;
|
|
|
- // }
|
|
|
- // });
|
|
|
- this.$store.dispatch("setBranchs");
|
|
|
- goodsQuery({ status: 1, rows: 99999 }).then((res) => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.shopList = res.data.rows;
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- if (!(this.searchForm.orderDate?.length > 0)) {
|
|
|
+ if (!(this.searchForm.orderDate?.length > 0)) {
|
|
|
var now = new Date();
|
|
|
var startDate = new Date(
|
|
|
Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
|
|
@@ -778,6 +764,21 @@ export default {
|
|
|
this.searchForm.orderDate.push(startDate);
|
|
|
this.searchForm.orderDate.push(endDate);
|
|
|
}
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ // getEmployeeOrgan().then((res) => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.organList = res.data;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ this.$store.dispatch("setBranchs");
|
|
|
+ goodsQuery({ status: 1, rows: 99999 }).then((res) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.shopList = res.data.rows;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
|
|
|
this.getList();
|
|
|
},
|