+
@@ -14,7 +14,7 @@
-
-
@@ -35,6 +35,16 @@ import FileSaver from 'file-saver'
// import * as XLSX from 'xlsx'
export default {
components: { inputTable },
+ props: {
+ product: {
+ type: Boolean,
+ default: true
+ },
+ params: {
+ type: Object,
+ default: () => {}
+ }
+ },
data() {
return {
urlOptions: {
@@ -42,9 +52,6 @@ export default {
exportURL: exportGlasscExcel
},
listQuery: {
- pageSize: 10,
- pageNo: 1,
- total: 0,
reportType: 3,
reportTime: []
},
@@ -89,11 +96,12 @@ export default {
},
created () {
// this.getDict()
+ this.getCurrentWeekStartTimeAndEndTime()
},
mounted() {
// const day = new Date().getDay()
// console.log('周四', day)
- this.getCurrentWeekStartTimeAndEndTime()
+ // this.getCurrentWeekStartTimeAndEndTime()
// this.changeTime(new Date(new Date().getTime() - day * 24 * 60 * 60 * 1000))
this.getDataList()
},
@@ -190,6 +198,10 @@ export default {
const res = await getCorePLList()
this.proLineList = res.data;
this.dataListLoading = true;
+ if (this?.params) {
+ this.listQuery = {...this.params}
+ // this.$set(this.listQuery, 'reportTime', this.params.reportTime)
+ }
if (this.listQuery.reportTime.length == 0) {
this.$message({
message: '请选择时间',
diff --git a/src/views/report/glass/year.vue b/src/views/report/glass/year.vue
index 8d84f161..34b1c27b 100644
--- a/src/views/report/glass/year.vue
+++ b/src/views/report/glass/year.vue
@@ -1,6 +1,6 @@
-
@@ -30,6 +30,16 @@ import FileSaver from 'file-saver'
// import * as XLSX from 'xlsx'
export default {
components: { inputTable },
+ props: {
+ product: {
+ type: Boolean,
+ default: true
+ },
+ params: {
+ type: Object,
+ default: () => {}
+ }
+ },
data() {
return {
urlOptions: {
@@ -37,9 +47,9 @@ export default {
exportURL: exportGlasscExcel
},
listQuery: {
- pageSize: 10,
- pageNo: 1,
- total: 0,
+ // pageSize: 10,
+ // pageNo: 1,
+ // total: 0,
reportType: 5,
reportTime: []
},
@@ -54,11 +64,10 @@ export default {
},
created() {
// this.getDict()
+ this.getCurrentYearFirst()
},
mounted () {
- this.getCurrentYearFirst()
- this.getDataList()
- ;
+ this.getDataList();
},
methods: {
getCurrentYearFirst() {
@@ -101,6 +110,9 @@ export default {
const res = await getCorePLList()
this.proLineList = res.data;
this.dataListLoading = true;
+ if (this?.params) {
+ this.listQuery = {...this.params}
+ }
if (this.listQuery.reportTime.length == 0) {
this.$message({
message: '请选择时间',
diff --git a/src/views/report/productionMonthReport/index.vue b/src/views/report/productionMonthReport/index.vue
index d7970418..97d50d20 100644
--- a/src/views/report/productionMonthReport/index.vue
+++ b/src/views/report/productionMonthReport/index.vue
@@ -1,29 +1,31 @@
-
-
-
-
-
-
- 查询
-
- 导出
-
-
- 编辑
- 返回
- 保存
-
+
+
+
+
+
+
+
+ 查询
+
+ 导出
+
+
+ 编辑
+ 返回
+ 保存
+
+
-
-
-
-
-
-
- 查询
-
- 导出
-
-
- 编辑
- 返回
- 保存
-
+
+
+
+
+
+
+
+ 查询
+
+ 导出
+
+
+ 编辑
+ 返回
+ 保存
+
+
-
-
-
-
-
-
- 查询
-
- 导出
-
-
-
- 编辑
- 返回
- 保存
-
+
+
+
+
+
+
+
+ 查询
+
+ 导出
+
+
+
+ 编辑
+ 返回
+ 保存
+
+