修改bug
This commit is contained in:
parent
68902f0f6c
commit
83fdc49dbb
@ -761,8 +761,8 @@ export default {
|
|||||||
en: 'Power Classification'
|
en: 'Power Classification'
|
||||||
},
|
},
|
||||||
ProcessInfo: {
|
ProcessInfo: {
|
||||||
zh: '工艺信息',
|
zh: '工单工艺信息',
|
||||||
en: 'Process Info'
|
en: 'Order Process Info'
|
||||||
},
|
},
|
||||||
ExecutionInfo: {
|
ExecutionInfo: {
|
||||||
zh: '执行信息',
|
zh: '执行信息',
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 16:37:56
|
* @Date: 2020-12-29 16:37:56
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-03-04 10:39:52
|
* @LastEditTime: 2022-03-09 14:38:36
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -91,7 +91,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item :label="$t('module.basicData.ScrapInfo.name')" prop="equipmentId">
|
<el-form-item :label="$t('module.basicData.ScrapInfo.name')" prop="equipmentId">
|
||||||
<el-select v-model="dataForm.equipmentId" filterable :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.ScrapInfo.name')])" clearable :style="{width: '100%'}" @change="getScrapGrade">
|
<el-select v-model="dataForm.equipmentId" filterable :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.ScrapInfo.name')])" clearable :style="{width: '100%'}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) in device"
|
v-for="(item, index) in device"
|
||||||
:key="index"
|
:key="index"
|
||||||
@ -101,10 +101,6 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item v-if="tag" :label="$t('module.basicData.ScrapInfo.wasteGrade')" prop="ewasteGrade">
|
|
||||||
<el-input v-model="wasteGrade" clear readonly :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.ScrapInfo.wasteGrade')])" :disabled="true" />
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item :label="$t('module.basicData.ScrapInfo.cause')" prop="scrapReasonId">
|
<el-form-item :label="$t('module.basicData.ScrapInfo.cause')" prop="scrapReasonId">
|
||||||
<!-- <el-input v-model="dataForm.registerPerson" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.ScrapInfo.RegisterPerson')])" clearable :style="{width: '100%'}" /> -->
|
<!-- <el-input v-model="dataForm.registerPerson" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.ScrapInfo.RegisterPerson')])" clearable :style="{width: '100%'}" /> -->
|
||||||
<el-select
|
<el-select
|
||||||
@ -140,7 +136,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import i18n from '@/lang'
|
import i18n from '@/lang'
|
||||||
import { getScrapInfo, editScrapInfo, addScrapInfo, getScrap } from '@/api/quality-manage/scrap'
|
import { getScrapInfo, editScrapInfo, addScrapInfo } from '@/api/quality-manage/scrap'
|
||||||
import { scrapReasonList } from '@/api/dict'
|
import { scrapReasonList } from '@/api/dict'
|
||||||
import { getDictWorker } from '@/api/dict'
|
import { getDictWorker } from '@/api/dict'
|
||||||
import { getEqList } from '@/api/equipment/maintain'
|
import { getEqList } from '@/api/equipment/maintain'
|
||||||
@ -194,7 +190,7 @@ export default {
|
|||||||
}],
|
}],
|
||||||
equipmentId: [{
|
equipmentId: [{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.ScrapInfo.equipmentId')]),
|
message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.ScrapInfo.name')]),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}],
|
}],
|
||||||
substrateId: [{
|
substrateId: [{
|
||||||
@ -214,7 +210,6 @@ export default {
|
|||||||
orderList: []
|
orderList: []
|
||||||
},
|
},
|
||||||
device: [],
|
device: [],
|
||||||
wasteGrade: '',
|
|
||||||
tag: false
|
tag: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -222,19 +217,6 @@ export default {
|
|||||||
this.getDict()
|
this.getDict()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getScrapGrade(val) {
|
|
||||||
getScrap(val).then(res => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
if (res.data) {
|
|
||||||
this.tag = true
|
|
||||||
this.wasteGrade = res.data.dataName
|
|
||||||
} else {
|
|
||||||
this.tag = false
|
|
||||||
this.wasteGrade = ''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
onClose() {
|
onClose() {
|
||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 15:41:11
|
* @Date: 2020-12-29 15:41:11
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-17 15:26:35
|
* @LastEditTime: 2022-03-09 14:46:12
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -143,7 +143,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getList(key) {
|
getList(key) {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.listQuery.code = key
|
this.listQuery.name = key
|
||||||
ExecutionInfoList(this.listQuery).then(response => {
|
ExecutionInfoList(this.listQuery).then(response => {
|
||||||
if (response.data.records) {
|
if (response.data.records) {
|
||||||
this.list = response.data.records
|
this.list = response.data.records
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 15:41:11
|
* @Date: 2020-12-29 15:41:11
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-17 15:32:00
|
* @LastEditTime: 2022-03-09 14:44:58
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -150,7 +150,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getList(key) {
|
getList(key) {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.listQuery.code = key
|
this.listQuery.name = key
|
||||||
ProcessInfoList(this.listQuery).then(response => {
|
ProcessInfoList(this.listQuery).then(response => {
|
||||||
if (response.data.records) {
|
if (response.data.records) {
|
||||||
this.list = response.data.records
|
this.list = response.data.records
|
||||||
|
Loading…
Reference in New Issue
Block a user