Vertaa committeja

..

No commits in common. "194b2f0e0db16366260c049ffa43359e314d1200" and "34d7b8682df4ec1c03049bfb9749ce3b388b591f" have entirely different histories.

54 muutettua tiedostoa jossa 118 lisäystä ja 172 poistoa

Näytä tiedosto

@ -1 +0,0 @@
@media screen and (max-width:2104px){.searchStyle[data-v-018c1e50]{width:1000px}}@media screen and (min-width:2105px){.searchStyle[data-v-018c1e50]{width:100%}}

Näytä tiedosto

@ -1 +0,0 @@
.tableInner .el-input__inner{border:none;padding:0;height:33px}.samplingAdd .form-box[data-v-2adb9530]{height:100%;padding:0 32px;position:relative}.samplingAdd .form-box .first-line[data-v-2adb9530]{border-bottom:1px solid #e9e9e9;margin-bottom:23px}.samplingAdd .bottom[data-v-2adb9530]{position:absolute;bottom:0;right:32px}.standardSetting .form-box[data-v-fbc9d82a]{height:100%;padding:0 32px;position:relative}.standardSetting .bottom[data-v-fbc9d82a]{position:absolute;bottom:0;right:32px}

Näytä tiedosto

@ -1 +0,0 @@
.box[data-v-6ad9120b]{padding:0 32px}

Näytä tiedosto

@ -1 +1 @@
.device-add .device-uploader{width:178px;height:178px;display:block}.device-add .device-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.device-add .device-uploader .el-upload:hover{border-color:#409eff}.device-add .device-uploader .avatar-uploader-icon{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.img-box[data-v-0a02c89e]{border:1px dashed #d9d9d9}.img-box .avatar[data-v-0a02c89e]{width:100%;cursor:pointer}.img-box .avatar-close-icon[data-v-0a02c89e]{font-size:24px;position:absolute;right:-10px;top:-10px;cursor:pointer}.main-box[data-v-50aec75c]{width:100%;padding:0 6px 0 16px}.main-box .left-box[data-v-50aec75c],.main-box .right-box[data-v-50aec75c]{border-radius:8px;background-color:#fff;overflow-y:auto;height:calc(100vh - 147px);margin-top:8px}.main-box .left-box[data-v-50aec75c]{padding:16px 0 0}.main-box .right-box[data-v-50aec75c]{padding:16px 10px 0} .device-add .device-uploader{width:178px;height:178px;display:block}.device-add .device-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.device-add .device-uploader .el-upload:hover{border-color:#409eff}.device-add .device-uploader .avatar-uploader-icon{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.img-box[data-v-170526ff]{border:1px dashed #d9d9d9}.img-box .avatar[data-v-170526ff]{width:100%;cursor:pointer}.img-box .avatar-close-icon[data-v-170526ff]{font-size:24px;position:absolute;right:-10px;top:-10px;cursor:pointer}.main-box[data-v-50aec75c]{width:100%;padding:0 6px 0 16px}.main-box .left-box[data-v-50aec75c],.main-box .right-box[data-v-50aec75c]{border-radius:8px;background-color:#fff;overflow-y:auto;height:calc(100vh - 147px);margin-top:8px}.main-box .left-box[data-v-50aec75c]{padding:16px 0 0}.main-box .right-box[data-v-50aec75c]{padding:16px 10px 0}

1
dist/css/4941.cb8dd88e.css vendored Normal file
Näytä tiedosto

@ -0,0 +1 @@
.finalInspectionData[data-v-1932e535]{width:100%}.finalInspectionData .box-top[data-v-1932e535]{width:100%;padding:8px 16px 0}.finalInspectionData .box-top .search-box[data-v-1932e535]{height:62px;padding:10px 16px;box-sizing:border-box;border-radius:8px;background-color:#fff}.finalInspectionData .box[data-v-1932e535]{width:100%;padding:8px 8px 0 16px}.finalInspectionData .box .left-box[data-v-1932e535],.finalInspectionData .box .right-box[data-v-1932e535]{height:calc(100vh - 220px);padding:16px;border-radius:8px;background-color:#fff}.finalInspectionData .box .left-box .table-box[data-v-1932e535],.finalInspectionData .box .right-box .table-box[data-v-1932e535]{margin-top:16px;height:calc(100vh - 290px);overflow:auto}.finalInspectionData .box .left-box .table-button[data-v-1932e535]{display:inline-block;height:30px;width:100%;text-align:center;padding-top:4px;margin-bottom:16px;font-size:14px;color:#0b58ff;border-radius:4px;border:1px dotted #0b58ff;cursor:pointer}.finalInspectionData .box .right-box .title[data-v-1932e535]:before{content:"";display:inline-block;width:4px;height:16px;background:#0b58ff;border-radius:1px;margin-right:8px;vertical-align:middle}

Näytä tiedosto

@ -1 +0,0 @@
.finalInspectionData[data-v-6863655e]{width:100%}.finalInspectionData .box-top[data-v-6863655e]{width:100%;padding:8px 16px 0}.finalInspectionData .box-top .search-box[data-v-6863655e]{height:62px;padding:10px 16px;box-sizing:border-box;border-radius:8px;background-color:#fff}.finalInspectionData .box[data-v-6863655e]{width:100%;padding:8px 8px 0 16px}.finalInspectionData .box .left-box[data-v-6863655e],.finalInspectionData .box .right-box[data-v-6863655e]{height:calc(100vh - 220px);padding:16px;border-radius:8px;background-color:#fff}.finalInspectionData .box .left-box .table-box[data-v-6863655e],.finalInspectionData .box .right-box .table-box[data-v-6863655e]{margin-top:16px;height:calc(100vh - 290px);overflow:auto}.finalInspectionData .box .left-box .table-button[data-v-6863655e]{display:inline-block;height:30px;width:100%;text-align:center;padding-top:4px;margin-bottom:16px;font-size:14px;color:#0b58ff;border-radius:4px;border:1px dotted #0b58ff;cursor:pointer}.finalInspectionData .box .right-box .title[data-v-6863655e]:before{content:"";display:inline-block;width:4px;height:16px;background:#0b58ff;border-radius:1px;margin-right:8px;vertical-align:middle}

1
dist/css/640.056a6a05.css vendored Normal file
Näytä tiedosto

@ -0,0 +1 @@
.tableInner .el-input__inner{border:none;padding:0;height:33px}.samplingAdd .form-box[data-v-7b3115e1]{height:100%;padding:0 32px;position:relative}.samplingAdd .form-box .first-line[data-v-7b3115e1]{border-bottom:1px solid #e9e9e9;margin-bottom:23px}.samplingAdd .bottom[data-v-7b3115e1]{position:absolute;bottom:0;right:32px}.standardSetting .form-box[data-v-fbc9d82a]{height:100%;padding:0 32px;position:relative}.standardSetting .bottom[data-v-fbc9d82a]{position:absolute;bottom:0;right:32px}

1
dist/css/6781.770b0df0.css vendored Normal file
Näytä tiedosto

@ -0,0 +1 @@
@media screen and (max-width:2104px){.searchStyle[data-v-09b450c4]{width:1000px}}@media screen and (min-width:2105px){.searchStyle[data-v-09b450c4]{width:100%}}

1
dist/css/7802.25e37ece.css vendored Normal file
Näytä tiedosto

@ -0,0 +1 @@
.box[data-v-0592f1fa]{padding:0 32px}

2
dist/index.html vendored
Näytä tiedosto

@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>tft-mes</title><script defer="defer" src="/js/chunk-vendors.a42f8636.js"></script><script defer="defer" src="/js/app.8ddc6159.js"></script><link href="/css/app.68cbc19b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but tft-mes doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html> <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>tft-mes</title><script defer="defer" src="/js/chunk-vendors.a42f8636.js"></script><script defer="defer" src="/js/app.8c6c63a4.js"></script><link href="/css/app.68cbc19b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but tft-mes doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/2033.e713058b.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/2948.3c5a6a87.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/2949.2b4c9508.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/640.fef43f27.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/7802.1470f15e.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/8311.a2fa96fb.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Näytä tiedosto

@ -114,15 +114,7 @@ export function consumableUpdate(data) {
data data
}) })
} }
// 获取耗材名称列表
export function getMaterialArr(data) {
return request({
url: '/basic/consumableConfiguration/getMaterialList',
method: 'post',
data
})
}
// 获取耗材名称ID规格和单位
export function materialList(data) { export function materialList(data) {
return request({ return request({
url: '/basic/consumableConfiguration/materialAndUnit', url: '/basic/consumableConfiguration/materialAndUnit',

Näytä tiedosto

@ -196,20 +196,3 @@ export function claGlassData(data) {
data data
}) })
} }
// 产品追溯-获取分页产品追溯
export function productTrace(data) {
return request({
url: '/quality/productTrace/page',
method: 'post',
data
})
}
// 产品追溯-获取分页工艺流程只用传玻璃ID
export function pageProcess(data) {
return request({
url: '/quality/productTrace/pageProcess',
method: 'post',
data
})
}

Näytä tiedosto

@ -329,7 +329,6 @@ export default {
this.$refs.form.resetFields() this.$refs.form.resetFields()
this.deviceImg = '' this.deviceImg = ''
this.srcList = [] this.srcList = []
this.unitModuleList = []
}, },
handleAvatarSuccess(res) { handleAvatarSuccess(res) {
this.form.imgId = res.data[0].id this.form.imgId = res.data[0].id

Näytä tiedosto

@ -178,7 +178,7 @@ import {
materialManageInsert, materialManageInsert,
materialManageDelete materialManageDelete
} from '@/api/consumablesManagement' } from '@/api/consumablesManagement'
import { sideLibraryList, getMaterialArr, getSpecList } from '@/api/basicConfig' import { sideLibraryList, materialList, getSpecList } from '@/api/basicConfig'
export default { export default {
name: 'inAndOutManagementAdd', name: 'inAndOutManagementAdd',
data() { data() {
@ -273,7 +273,7 @@ export default {
}) })
}, },
getMaterialList() { getMaterialList() {
getMaterialArr().then((res) => { materialList().then((res) => {
if (res.code === 0) { if (res.code === 0) {
this.consumablesNameList = res.data this.consumablesNameList = res.data
} }

Näytä tiedosto

@ -28,8 +28,6 @@ export default {
this.tagType = 'info' this.tagType = 'info'
} else if (this.injectData.status === '未完成') { } else if (this.injectData.status === '未完成') {
this.tagType = 'warning' this.tagType = 'warning'
} else if (this.injectData.status === '已超时') {
this.tagType = 'danger'
} else { } else {
this.tagType = 'success' this.tagType = 'success'
} }

Näytä tiedosto

@ -198,9 +198,6 @@ export default {
this.form.remark = res.data.remark this.form.remark = res.data.remark
}) })
} }
this.form.recipient = this.$store.getters.username
? this.$store.getters.username
: ''
}, },
getBatchList(id) { getBatchList(id) {
getBatchList({ id }).then((res) => { getBatchList({ id }).then((res) => {

Näytä tiedosto

@ -238,9 +238,9 @@ const tableBtn = [
type: '&', type: '&',
data: [ data: [
{ {
type: 'equal', type: 'less',
name: 'status', name: 'status',
value: 0 value: 1
} }
] ]
} }

Näytä tiedosto

@ -52,16 +52,14 @@
</template> </template>
<script> <script>
import { tableHeight } from '@/utils/index' import { tableHeight } from '@/utils/index'
import { pageProcess } from '@/api/qualityManagement'
import { timeFormatter } from '@/utils'
const tableProps = [ const tableProps = [
{ {
prop: 'unitName', prop: 'processName',
label: '工序名称', label: '工序名称',
minWidth: 120 minWidth: 120
}, },
{ {
prop: 'eqName', prop: 'deviceName',
label: '设备名称', label: '设备名称',
minWidth: 120 minWidth: 120
}, },
@ -71,19 +69,17 @@ const tableProps = [
minWidth: 150 minWidth: 150
}, },
{ {
prop: 'inEquipmentTime', prop: 'deviceLaunchTime',
label: '设备上片时间', label: '设备上片时间',
filter: timeFormatter,
minWidth: 160 minWidth: 160
}, },
{ {
prop: 'outEquipmentTime', prop: 'deviceUnloadingTime',
label: '设备下片时间', label: '设备下片时间',
filter: timeFormatter,
minWidth: 160 minWidth: 160
}, },
{ {
prop: 'palletId', prop: 'grindingTrayId',
label: '面磨托盘ID', label: '面磨托盘ID',
minWidth: 150 minWidth: 150
} }
@ -164,22 +160,21 @@ export default {
} }
}, },
methods: { methods: {
init(id) { init() {
this.visible = true this.visible = true
window.addEventListener('resize', () => { window.addEventListener('resize', () => {
this.tableH = tableHeight(115) this.tableH = tableHeight(115)
}) })
pageProcess({ for (let i = 0; i < 30; i++) {
current: 1, let obj = {}
glassId: id, obj.processName = '1'
size: 500 obj.deviceName = '设备名称' + i
}).then((res) => { obj.glassId = '玻璃ID' + i
if (res.code === 0) { obj.deviceLaunchTime = '2022-08-22 08:12:15'
this.tableData = res.data.records obj.deviceUnloadingTime = '2022-08-22 08:12:15'
} else { obj.grindingTrayId = '面磨托盘ID' + i
this.tableData = [] this.tableData.push(obj)
} }
})
}, },
handleClick(val) { handleClick(val) {
console.log(val) console.log(val)

Näytä tiedosto

@ -168,8 +168,7 @@ export default {
this.tableH = tableHeight(250) this.tableH = tableHeight(250)
}) })
this.form.model = 'G8.5' this.form.model = 'G8.5'
// this.form.detectTime = moment().format('yyyy-MM-DD HH:mm:ss') this.form.detectTime = moment().format('yyyy-MM-DDTHH:mm:ss')
this.form.detectTime = moment().format('yyyy-MM-DD HH:mm:ss')
}, },
selectItem() { selectItem() {
this.getStandard() this.getStandard()
@ -217,9 +216,7 @@ export default {
for (let i of this.tableData) { for (let i of this.tableData) {
let obj = {} let obj = {}
obj.detectStandardId = i.id obj.detectStandardId = i.id
obj.detectTime = moment(this.form.detectTime).format( obj.detectTime = this.form.detectTime
'yyyy-MM-DDTHH:mm:ss'
)
obj.detector = this.form.detector obj.detector = this.form.detector
obj.glassId = this.form.glassId obj.glassId = this.form.glassId
obj.remark = i.remark ? i.remark : '' obj.remark = i.remark ? i.remark : ''

Näytä tiedosto

@ -143,8 +143,8 @@ export default {
tableHL: tableHeight(300), tableHL: tableHeight(300),
reportTitle: '', reportTitle: '',
listQuery: { listQuery: {
startTime: '', startTime: '2020-07-06T16:59:23',
endTime: '', endTime: '2023-07-06T16:59:23',
glassFrame: '', glassFrame: '',
current: 1, current: 1,
size: 500 size: 500

Näytä tiedosto

@ -32,7 +32,6 @@
import { tableHeight, timeFormatter } from '@/utils/index' import { tableHeight, timeFormatter } from '@/utils/index'
import SamplingAdd from './components/samplingAdd' import SamplingAdd from './components/samplingAdd'
import StandarSetting from './components/standardSetting' import StandarSetting from './components/standardSetting'
import moment from 'moment'
import { import {
getProcessDetectPage, getProcessDetectPage,
processDetectExport processDetectExport
@ -138,7 +137,6 @@ export default {
startPlaceholder: '开始时间', startPlaceholder: '开始时间',
endPlaceholder: '结束时间', endPlaceholder: '结束时间',
param: 'timeVal', param: 'timeVal',
defaultSelect: [],
width: 350 width: 350
}, },
{ {
@ -147,6 +145,11 @@ export default {
name: 'search', name: 'search',
color: 'primary' color: 'primary'
}, },
{
type: 'button',
btnName: '重置',
name: 'reset'
},
{ {
type: 'separate' type: 'separate'
}, },
@ -195,12 +198,6 @@ export default {
window.addEventListener('resize', () => { window.addEventListener('resize', () => {
this.tableH = tableHeight(270) this.tableH = tableHeight(270)
}) })
this.formConfig[4].defaultSelect = [
moment().format('yyyy-MM-DD') + 'T00:00:00',
moment().format('yyyy-MM-DD') + 'T23:59:59'
]
this.listQuery.startTime = moment().format('yyyy-MM-DD') + 'T00:00:00'
this.listQuery.endTime = moment().format('yyyy-MM-DD') + 'T23:59:59'
this.formConfig[0].defaultSelect = 1 this.formConfig[0].defaultSelect = 1
this.formConfig[1].type = 'input' this.formConfig[1].type = 'input'
this.formConfig[1].label = '玻璃ID' this.formConfig[1].label = '玻璃ID'
@ -226,6 +223,17 @@ export default {
this.listQuery.endTime = val.timeVal ? val.timeVal[1] : '' this.listQuery.endTime = val.timeVal ? val.timeVal[1] : ''
this.getList() this.getList()
break break
case 'reset':
this.$refs.searchBarForm.resetForm()
this.listQuery.glassId = ''
this.listQuery.detector = ''
this.listQuery.detectItem = ''
this.listQuery.startTime = ''
this.listQuery.endTime = ''
this.$nextTick(() => {
this.getList()
})
break
case 'add': case 'add':
this.addOrEditTitle = '抽检录入' this.addOrEditTitle = '抽检录入'
this.centervisible = true this.centervisible = true
@ -291,8 +299,6 @@ export default {
this.formConfig[3].type = 'select' this.formConfig[3].type = 'select'
this.formConfig[3].label = '检验项目' this.formConfig[3].label = '检验项目'
} }
this.formConfig[4].defaultSelect =
this.$refs.searchBarForm.formInline.timeVal
} }
} }
} }

Näytä tiedosto

@ -22,12 +22,7 @@
@clickBtn="handleClick" @clickBtn="handleClick"
/> />
</base-table> </base-table>
<pagination <pagination :limit="listQuery.size" :total="total" />
:page.sync="listQuery.current"
:limit.sync="listQuery.size"
:total="total"
@pagination="getList()"
/>
<!-- 抽屉 --> <!-- 抽屉 -->
<process-flow-detail v-if="processFlowVisible" ref="processFlowDetail" /> <process-flow-detail v-if="processFlowVisible" ref="processFlowDetail" />
</div> </div>
@ -35,17 +30,15 @@
<script> <script>
import ProcessFlowDetail from './components/processFlowDetail' import ProcessFlowDetail from './components/processFlowDetail'
import { tableHeight } from '@/utils/index' import { tableHeight } from '@/utils/index'
import moment from 'moment' import defaultSettings from '@/settings'
import { productTrace } from '@/api/qualityManagement'
import { timeFormatter } from '@/utils'
const tableProps = [ const tableProps = [
{ {
prop: 'proLineName', prop: 'productionLine',
label: '产线', label: '产线',
minWidth: 120 minWidth: 120
}, },
{ {
prop: 'workOrderNo', prop: 'orderCode',
label: '工单编号', label: '工单编号',
minWidth: 120 minWidth: 120
}, },
@ -55,34 +48,32 @@ const tableProps = [
minWidth: 150 minWidth: 150
}, },
{ {
prop: 'rackId', prop: 'finishedRackId',
label: '成品架ID', label: '成品架ID',
minWidth: 150 minWidth: 150
}, },
{ {
prop: 'loadTime', prop: 'productLaunchTime',
label: '产品上片时间', label: '产品上片时间',
filter: timeFormatter,
minWidth: 160 minWidth: 160
}, },
{ {
prop: 'unloadTime', prop: 'productUnloadingTime',
label: '产品下片时间', label: '产品下片时间',
filter: timeFormatter,
minWidth: 160 minWidth: 160
}, },
{ {
prop: 'grade', prop: 'glassGrade',
label: '玻璃等级', label: '玻璃等级',
minWidth: 100 minWidth: 100
}, },
{ {
prop: 'palletId', prop: 'grindingTrayId',
label: '面磨托盘ID', label: '面磨托盘ID',
minWidth: 150 minWidth: 150
}, },
{ {
prop: 'glassLength', prop: 'supplier',
label: '玻璃长度', label: '玻璃长度',
minWidth: 100 minWidth: 100
}, },
@ -92,14 +83,14 @@ const tableProps = [
minWidth: 100 minWidth: 100
}, },
{ {
prop: 'glassHeight', prop: 'glassThickness',
label: '玻璃厚度', label: '玻璃厚度',
minWidth: 100 minWidth: 100
} }
] ]
const tableBtn = [ const tableBtn = [
{ {
type: 'view', type: 'edit',
btnName: '点击查看' btnName: '点击查看'
} }
] ]
@ -112,35 +103,30 @@ export default {
{ {
type: 'datePicker', type: 'datePicker',
label: '产品上片时间', label: '产品上片时间',
dateType: 'datetimerange', dateType: 'datetime',
format: 'yyyy-MM-dd HH:mm:ss', format: 'yyyy-MM-dd HH:mm:ss',
valueFormat: 'yyyy-MM-ddTHH:mm:ss', valueFormat: 'yyyy-MM-dd HH:mm:ss',
rangeSeparator: '-', placeholder: '产品上片时间',
startPlaceholder: '开始时间', param: 'testTime',
endPlaceholder: '结束时间', defaultSelect: '2022-08-17 08:20:10',
param: 'timeVal', width: 200
defaultSelect: [],
width: 350
}, },
{ {
type: 'select', type: 'select',
label: '产线', label: '产线',
selectOptions: JSON.parse(localStorage.getItem('publicList')) selectOptions: defaultSettings.productionLineList,
.proLineVoList, param: 'productionLine',
param: 'lineName',
labelField: 'dataName',
valueField: 'dataName',
defaultSelect: '', defaultSelect: '',
onchange: true, width: 100
width: 150
}, },
{ {
type: 'select', type: 'select',
label: '查询方式', label: '查询方式',
selectOptions: [ selectOptions: [
{ id: 'rackId', name: '成品架ID' }, { id: 1, name: '成品架ID' },
{ id: 'glassId', name: '玻璃ID' }, { id: 2, name: '时间查询' },
{ id: 'palletId', name: '托盘ID' } { id: 3, name: '玻璃ID' },
{ id: 4, name: '托盘ID' }
], ],
param: 'inquiryMode', param: 'inquiryMode',
defaultSelect: '', defaultSelect: '',
@ -170,8 +156,6 @@ export default {
tableH: tableHeight(270), tableH: tableHeight(270),
total: 0, total: 0,
listQuery: { listQuery: {
startTime: '',
endTime: '',
current: 1, current: 1,
size: 20 size: 20
}, },
@ -182,50 +166,45 @@ export default {
window.addEventListener('resize', () => { window.addEventListener('resize', () => {
this.tableH = tableHeight(270) this.tableH = tableHeight(270)
}) })
this.formConfig[0].defaultSelect = [ for (let i = 0; i < 30; i++) {
moment().format('yyyy-MM-DD') + 'T00:00:00', let obj = {}
moment().format('yyyy-MM-DD') + 'T23:59:59' obj.productionLine = '产线1'
] obj.orderCode = '工单编号' + i
this.listQuery.startTime = moment().format('yyyy-MM-DD') + 'T00:00:00' obj.glassId = '玻璃ID' + i
this.listQuery.endTime = moment().format('yyyy-MM-DD') + 'T23:59:59' obj.finishedRackId = '成品架ID' + i
this.getList() obj.productLaunchTime = '2022-08-22 08:12:15'
obj.productUnloadingTime = '2022-08-22 08:12:15'
obj.glassGrade = i
obj.grindingTrayId = '面磨托盘ID' + i
obj.supplier = 2600
obj.glassWidth = 2250
obj.glassThickness = 5
obj.remark = '备注' + i
this.tableData.push(obj)
}
}, },
methods: { methods: {
getList() { getList() {},
productTrace({ ...this.listQuery }).then((res) => {
if (res.code === 0) {
this.tableData = res.data.records
this.total = res.data.total
}
})
},
buttonClick(val) { buttonClick(val) {
console.log(val)
if (val.btnName === 'search') { if (val.btnName === 'search') {
this.listQuery.startTime = val.timeVal ? val.timeVal[0] : ''
this.listQuery.endTime = val.timeVal ? val.timeVal[1] : ''
this.listQuery.proLineName = val.lineName
this.listQuery.rackId =
val.inquiryMode === 'rackId' ? val.queryContent : ''
this.listQuery.glassId =
val.inquiryMode === 'glassId' ? val.queryContent : ''
this.listQuery.palletId =
val.inquiryMode === 'palletId' ? val.queryContent : ''
this.getList() this.getList()
} else if (val.btnName === 'reset') { } else if (val.btnName === 'reset') {
this.$refs.searchBarForm.resetForm() this.$refs.searchBarForm.resetForm()
this.listQuery.startTime = moment().format('yyyy-MM-DD') + 'T00:00:00'
this.listQuery.endTime = moment().format('yyyy-MM-DD') + 'T23:59:59'
this.$nextTick(() => { this.$nextTick(() => {
this.getList() this.getList()
}) })
} }
}, },
handleClick(val) { handleClick() {
this.processFlowVisible = true this.processFlowVisible = true
let id = val.data.glassId let id = 1
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.processFlowDetail.init(id) this.$refs.processFlowDetail.init(id)
}) })
},
handleClose() {
console.log('========')
} }
} }
} }