原片时间,bug
Bu işleme şunda yer alıyor:
ebeveyn
b81c95f796
işleme
8025d00709
@ -199,10 +199,9 @@ export default {
|
|||||||
this.queryParams.lineName = this.$route.query.lineName
|
this.queryParams.lineName = this.$route.query.lineName
|
||||||
this.searchBarFormConfig[2].defaultSelect = this.$route.query.lineName
|
this.searchBarFormConfig[2].defaultSelect = this.$route.query.lineName
|
||||||
}
|
}
|
||||||
if (this.$route.query.originalGlassOutputTime) {
|
if (this.$route.query.startTime && this.$route.query.endTime) {
|
||||||
console.log('你好', this.$route.query.originalGlassOutputTime)
|
this.queryParams.startTime = parseTime(new Date(Number(this.$route.query.startTime)))
|
||||||
this.queryParams.startTime = parseTime(new Date(Number(this.$route.query.originalGlassOutputTime)))
|
this.queryParams.endTime = parseTime(new Date(Number(this.$route.query.endTime)))
|
||||||
this.queryParams.endTime = parseTime(new Date(Number(this.$route.query.originalGlassOutputTime)))
|
|
||||||
this.searchBarFormConfig[3].defaultSelect = [
|
this.searchBarFormConfig[3].defaultSelect = [
|
||||||
this.queryParams.startTime,
|
this.queryParams.startTime,
|
||||||
this.queryParams.endTime,
|
this.queryParams.endTime,
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-11-06 15:15:30
|
* @Date: 2023-11-06 15:15:30
|
||||||
* @LastEditTime: 2024-04-09 15:14:08
|
* @LastEditTime: 2024-04-28 10:19:33
|
||||||
* @LastEditors: zhp
|
* @LastEditors: DY
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -60,7 +60,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="来源" prop="source">
|
<el-form-item label="来源" prop="source">
|
||||||
<el-select v-model="dataForm.source" placeholder="请选择来源" multiple>
|
<el-select v-model="dataForm.source" placeholder="请选择来源">
|
||||||
<el-option v-for="dict in sourceList" :key="dict.id" :label="dict.name" :value="dict.id" />
|
<el-option v-for="dict in sourceList" :key="dict.id" :label="dict.name" :value="dict.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -111,7 +111,7 @@ export default {
|
|||||||
dataForm: {
|
dataForm: {
|
||||||
id: undefined,
|
id: undefined,
|
||||||
logTime: undefined,
|
logTime: undefined,
|
||||||
source:1,
|
source: 2,
|
||||||
detId: undefined,
|
detId: undefined,
|
||||||
workOrderId: null,
|
workOrderId: null,
|
||||||
teamId: undefined,
|
teamId: undefined,
|
||||||
|
@ -63,7 +63,7 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: 'source',
|
prop: 'source',
|
||||||
label: '来源',
|
label: '来源',
|
||||||
filter: (val) => val == 1 ? '平板端' : '网页端'
|
filter: (val) => ['', '平板端', '网页端'][val]
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-08-01 14:55:51
|
* @Date: 2023-08-01 14:55:51
|
||||||
* @LastEditors: DY
|
* @LastEditors: DY
|
||||||
* @LastEditTime: 2024-04-26 09:58:51
|
* @LastEditTime: 2024-04-28 16:10:20
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -47,7 +47,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<!-- <base-table :max-height="tableH" :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize"
|
<!-- <base-table :max-height="tableH" :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize"
|
||||||
:table-data="list"> -->
|
:table-data="list"> -->
|
||||||
<base-table :max-height="tableH" :table-props="tableProps"
|
<base-table :max-height="tableH" :table-props="tableProps" :page="1" :limit="100"
|
||||||
:table-data="list">
|
:table-data="list">
|
||||||
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="220" label="缺陷操作" :method-list="tableBtn"
|
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="220" label="缺陷操作" :method-list="tableBtn"
|
||||||
@clickBtn="handleClick" />
|
@clickBtn="handleClick" />
|
||||||
@ -282,12 +282,31 @@ export default {
|
|||||||
handleClick(raw) {
|
handleClick(raw) {
|
||||||
if (raw.type === 'detail1') {
|
if (raw.type === 'detail1') {
|
||||||
// 原片缺陷
|
// 原片缺陷
|
||||||
|
// console.log('你好', raw.data._pageIndex)
|
||||||
|
// const tempArray = this?.list[raw.data._pageIndex]
|
||||||
|
// console.log('你好tempArray', tempArray)
|
||||||
|
// let startTime = raw.data.originalGlassOutputTime
|
||||||
|
// if (tempArray) {
|
||||||
|
// startTime = tempArray.originalGlassOutputTime
|
||||||
|
// }
|
||||||
|
// console.log('你好', parseTime(raw.data.originalGlassOutputTime))
|
||||||
|
const startTime = new Date(raw.data.originalGlassOutputTime)
|
||||||
|
const endTime = new Date(raw.data.originalGlassOutputTime)
|
||||||
|
startTime.setHours(startTime.getHours() - 1)
|
||||||
|
startTime.setMinutes(0)
|
||||||
|
startTime.setSeconds(0)
|
||||||
|
endTime.setHours(endTime.getHours() + 1)
|
||||||
|
endTime.setMinutes(0)
|
||||||
|
// endTime.setSeconds(0)
|
||||||
|
// console.log('设置时间', startTime, parseTime(startTime))
|
||||||
|
// console.log('设置时间11', endTime, parseTime(endTime))
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/quality/base/quality-isra',
|
path: '/quality/base/quality-isra',
|
||||||
query: {
|
query: {
|
||||||
// deepProcessingLineId: raw.data.deepProcessingLineId,
|
// deepProcessingLineId: raw.data.deepProcessingLineId,
|
||||||
lineName: raw.data.deepProcessingLineName,
|
lineName: raw.data.deepProcessingLineName,
|
||||||
originalGlassOutputTime: raw.data.originalGlassOutputTime
|
endTime: endTime,
|
||||||
|
startTime: startTime
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -328,7 +347,11 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
if (this.useTime === true) {
|
if (this.useTime === true) {
|
||||||
if (this.listQuery.packTime !== null && this.listQuery.packTime !== '' && this.listQuery.lineName !== null && this.listQuery.lineName !== '') {
|
if (this.listQuery.packTime !== null && this.listQuery.packTime !== '' && this.listQuery.lineName !== null && this.listQuery.lineName !== '') {
|
||||||
getOriginalGlassRetrace({ ...this.listQuery }).then(res => {
|
|
||||||
|
getOriginalGlassRetrace({
|
||||||
|
lineNameList: [this.listQuery.lineName],
|
||||||
|
...this.listQuery
|
||||||
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.list = res.data || []
|
this.list = res.data || []
|
||||||
console.log(this.list);
|
console.log(this.list);
|
||||||
|
Yükleniyor…
Yeni konuda referans
Bir kullanıcı engelle