Compare commits
No commits in common. "ddc3f5d49dfd06ffa09ea83667dfba0bf1c6281e" and "93a412d2433e9e11aea2115c0ed20d1fc18c1eb8" have entirely different histories.
ddc3f5d49d
...
93a412d243
@ -1,52 +1,32 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 16:37:56
|
* @Date: 2020-12-29 16:37:56
|
||||||
* @LastEditors: zwq
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2022-04-02 15:57:14
|
* @LastEditTime: 2022-03-18 16:18:38
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="'btn.detail' | i18nFilter"
|
:title="'btn.detail' | i18nFilter"
|
||||||
:visible.sync="visible"
|
:visible.sync="visible"
|
||||||
width="70%"
|
|
||||||
>
|
>
|
||||||
<el-row :gutter="10">
|
<el-form ref="dataForm" :model="dataForm" label-width="150px">
|
||||||
<el-form ref="dataForm" :model="dataForm" label-width="150px">
|
<el-form-item :label="$t('module.dashboard.name')" prop="name">
|
||||||
<el-col :span="8">
|
{{ dataForm.name }}
|
||||||
<el-form-item :label="$t('module.dashboard.name')" prop="name">
|
</el-form-item>
|
||||||
{{ dataForm.name }}
|
<el-form-item :label="$t('module.dashboard.attribute')" prop="attribute">
|
||||||
</el-form-item>
|
{{ dataForm.attribute ? portAttributeObj[dataForm.attribute] : '' }}
|
||||||
</el-col>
|
</el-form-item>
|
||||||
<el-col :span="8">
|
<el-form-item :label="$t('module.dashboard.cassetteStatus')" prop="cassetteVoList">
|
||||||
<el-form-item :label="$t('module.dashboard.attribute')" prop="attribute">
|
{{ dataForm.cassetteVoList && dataForm.cassetteVoList.length && dataForm.cassetteVoList[0].status ? cassetteStatusObj[dataForm.cassetteVoList[0].status] : '' }}
|
||||||
{{ dataForm.attribute ? portAttributeObj[dataForm.attribute] : '' }}
|
</el-form-item>
|
||||||
</el-form-item>
|
<el-form-item :label="$t('module.dashboard.workOrderNo')" prop="workOrderNo">
|
||||||
</el-col>
|
{{ dataForm.workOrderNo }}
|
||||||
<el-col :span="8">
|
</el-form-item>
|
||||||
<el-form-item :label="$t('module.dashboard.cassetteStatus')" prop="cassetteVoList">
|
<el-form-item :label="$t('module.dashboard.storageBoxCode')" prop="storageBoxCode">
|
||||||
{{ dataForm.cassetteVoList && dataForm.cassetteVoList.length && dataForm.cassetteVoList[0].status ? cassetteStatusObj[dataForm.cassetteVoList[0].status] : '' }}
|
{{ dataForm.storageBoxCode }}
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-form>
|
||||||
<el-col :span="8">
|
|
||||||
<el-form-item :label="$t('module.dashboard.workOrderNo')" prop="workOrderNo">
|
|
||||||
{{ dataForm.workOrderNo }}
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-form-item :label="$t('module.dashboard.storageBoxCode')" prop="storageBoxCode">
|
|
||||||
{{ dataForm.storageBoxCode }}
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-form>
|
|
||||||
</el-row>
|
|
||||||
<base-table
|
|
||||||
:page="listQuery.current"
|
|
||||||
:limit="listQuery.size"
|
|
||||||
:table-config="tableProps"
|
|
||||||
:table-data="list"
|
|
||||||
:is-loading="listLoading"
|
|
||||||
/>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
|
<el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
|
||||||
</span>
|
</span>
|
||||||
@ -54,56 +34,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import i18n from '@/lang'
|
|
||||||
import { listSubstrate } from '@/api/report-manage/report'
|
|
||||||
import BaseTable from '@/components/BaseTable'
|
|
||||||
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: 'substrateCode',
|
|
||||||
label: i18n.t('module.report.substrate.substrateCode'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'subPosition',
|
|
||||||
label: i18n.t('module.report.substrate.location'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'storeTime',
|
|
||||||
label: i18n.t('module.report.substrate.storeTime'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'status',
|
|
||||||
label: i18n.t('module.report.substrate.substrateStatus'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'subStorageStatusName',
|
|
||||||
label: i18n.t('module.report.substrate.subStorageStatus'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'machineHandID',
|
|
||||||
label: i18n.t('module.report.substrate.machineHandID'),
|
|
||||||
align: 'center'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { BaseTable },
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
tableProps,
|
|
||||||
list: [],
|
|
||||||
listLoading: true,
|
|
||||||
listQuery: {
|
|
||||||
current: 1,
|
|
||||||
size: 500,
|
|
||||||
locationStorageSubID: ''
|
|
||||||
},
|
|
||||||
dataForm: {
|
dataForm: {
|
||||||
code: null,
|
code: null,
|
||||||
createTime: null,
|
createTime: null,
|
||||||
@ -134,23 +69,6 @@ export default {
|
|||||||
console.log(data)
|
console.log(data)
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.dataForm = data
|
this.dataForm = data
|
||||||
this.listQuery.locationStorageSubID = data.locationStorageSubId
|
|
||||||
this.listLoading = true
|
|
||||||
listSubstrate(this.listQuery).then(response => {
|
|
||||||
if (response.data) {
|
|
||||||
this.list = response.data
|
|
||||||
for (var x = 0; x < this.list.length; x++) {
|
|
||||||
if (this.list[x].subStorageStatus === 1) {
|
|
||||||
this.list[x].subStorageStatusName = this.$t('module.report.substrate.load')
|
|
||||||
} else if (this.list[x].subStorageStatus === 2) {
|
|
||||||
this.list[x].subStorageStatusName = this.$t('module.report.substrate.unload')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.list.splice(0, this.list.length)
|
|
||||||
}
|
|
||||||
this.listLoading = false
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user