修改bug

This commit is contained in:
‘937886381’
2023-11-15 09:08:20 +08:00
parent f7846f2767
commit 95f7004d1c
86 changed files with 7750 additions and 64 deletions

View File

@@ -69,8 +69,9 @@ export default {
type: 'select',
label: '工单号',
placeholder: '请选择工单号',
param: 'workOrderId',
param: 'workOrderIdList',
selectOptions: [],
multiple:true,
},
{
type: 'select',
@@ -188,8 +189,8 @@ export default {
// },
// 查询参数
queryParams: {
workOrderId: undefined,
productId: undefined,
workOrderIdList:undefined,
productionId: undefined,
startTime: undefined,
endTime: undefined,
// productionLineId: null,
@@ -244,21 +245,24 @@ export default {
},
},
mounted() {
if (this.$route.params.startTime && this.$route.params.endTime) {
this.searchBarFormConfig[0].defaultSelect = [
this.$route.params.startTime,
this.$route.params.endTime,
];
this.queryParams.param = {};
this.$set(
this.queryParams.param,
'startTime',
this.$route.params.startTime
);
this.$set(this.queryParams.param, 'endTime', this.$route.params.endTime);
} else {
this.searchBarFormConfig[0].defaultSelect = [];
if (this.$route.query.woIdString) {
this.queryParams.workOrderIdList = this.$route.query.woIdString
}
// if (this.$route.params.startTime && this.$route.params.endTime) {
// this.searchBarFormConfig[0].defaultSelect = [
// this.$route.params.startTime,
// this.$route.params.endTime,
// ];
// this.queryParams.param = {};
// this.$set(
// this.queryParams.param,
// 'startTime',
// this.$route.params.startTime
// );
// this.$set(this.queryParams.param, 'endTime', this.$route.params.endTime);
// } else {
// this.searchBarFormConfig[0].defaultSelect = [];
// }
this.getList()
},
methods: {
@@ -302,7 +306,8 @@ export default {
// 执行查询
const {
data: { data, otherList, otherMap, nameData },
} = await getStatisticalDataPage(this.queryParams)
} = await getStatisticalDataPage(this.queryParams)
console.log(this.queryParams);
this.dynamicProps = this.filterNameData(nameData)
this.list = this.filterData(data);
},
@@ -336,8 +341,8 @@ export default {
/** 取消按钮 */
handleSearchBarBtnClick(val) {
if (val.btnName === 'search') {
this.queryParams.workOrderId = val.workOrderId ? val.workOrderId : undefined
this.queryParams.productId = val.productId ? val.productId : undefined
this.queryParams.workOrderIdList = val.workOrderIdList ? val.workOrderIdList : undefined
this.queryParams.productionId = val.productionId ? val.productionId : undefined
this.queryParams.startTime = val.checkTime ? val.checkTime[0] : undefined
this.queryParams.endTime = val.checkTime ? val.checkTime[1] : undefined