'改bug更新'
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* @Author: fzq
|
||||
* @Date: 2022-03-05 17:45:46
|
||||
* @LastEditors: fzq
|
||||
* @LastEditTime: 2022-03-16 16:11:55
|
||||
* @LastEditTime: 2022-03-18 14:46:26
|
||||
-->
|
||||
<template>
|
||||
<!-- <el-dialog
|
||||
@@ -19,17 +19,33 @@
|
||||
<el-form-item :label="$t('module.report.substrate.substrateCode')" prop="substrateCode">
|
||||
<el-input v-model="dataForm.substrateCode" :placeholder="$i18nForm(['placeholder.input', $t('module.report.substrate.substrateCode')])" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('module.report.substrate.location')" prop="location">
|
||||
<el-input v-model="dataForm.location" :placeholder="$i18nForm(['placeholder.input', $t('module.report.substrate.location')])" clearable />
|
||||
<el-form-item :label="$t('module.report.substrate.location')" prop="locationName">
|
||||
<el-input v-model="dataForm.locationName" :placeholder="$i18nForm(['placeholder.input', $t('module.report.substrate.location')])" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('module.report.substrate.storeTime')" prop="storeTime">
|
||||
<el-input v-model="dataForm.storeTime" :placeholder="$i18nForm(['placeholder.input', $t('module.report.substrate.storeTime')])" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('module.report.substrate.substrateStatus')" prop="substrateStatus">
|
||||
<el-input v-model="dataForm.substrateStatus" :placeholder="$i18nForm(['placeholder.input', $t('module.report.substrate.substrateStatus')])" clearable />
|
||||
<el-form-item :label="$t('module.report.substrate.substrateStatus')" prop="status">
|
||||
<el-input v-model="dataForm.status" :placeholder="$i18nForm(['placeholder.input', $t('module.report.substrate.substrateStatus')])" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('module.report.substrate.interCode')" prop="interCode">
|
||||
<!-- <el-form-item :label="$t('module.report.substrate.interCode')" prop="interCode">
|
||||
<el-input v-model="dataForm.interCode" :placeholder="$i18nForm(['placeholder.input', $t('module.report.substrate.interCode')])" clearable />
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item :label="$t('module.report.substrate.subStorageStatus')" prop="subStorageStatus">
|
||||
<el-input v-model="dataForm.subStorageStatus" :placeholder="$i18nForm(['placeholder.input', $t('module.report.substrate.subStorageStatus')])" clearable />
|
||||
</el-form-item> -->
|
||||
<el-form-item :label="$t('module.report.substrate.subStorageStatus')" prop="subStorageStatus">
|
||||
<el-select v-model="dataForm.subStorageStatus" :placeholder="this.$t('module.report.substrate.subStorageStatus')" default>
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('module.report.substrate.machineHandID')" prop="machineHandID">
|
||||
<el-input v-model="dataForm.machineHandID" :placeholder="$i18nForm(['placeholder.input', $t('module.report.substrate.machineHandID')])" clearable />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
@@ -56,7 +72,7 @@ export default {
|
||||
visible: false,
|
||||
dataForm: {
|
||||
// substrateCode: '',
|
||||
// location: '',
|
||||
// locationName: '',
|
||||
// storeTime: '',
|
||||
// substrateStatus: '',
|
||||
// code: '',
|
||||
@@ -68,9 +84,19 @@ export default {
|
||||
// size: 10,
|
||||
// locationStorageSubID: ''
|
||||
},
|
||||
options: [
|
||||
{
|
||||
value: 1,
|
||||
label: this.$t('module.report.substrate.load')
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: this.$t('module.report.substrate.unload')
|
||||
}
|
||||
],
|
||||
list: {
|
||||
id: '',
|
||||
location: '',
|
||||
locationName: '',
|
||||
storeTime: '',
|
||||
substrateCode: '',
|
||||
substrateStatus: ''
|
||||
@@ -78,12 +104,6 @@ export default {
|
||||
dataRule: {
|
||||
substrateCode: [
|
||||
{ required: true, message: this.$i18nForm(['placeholder.input', this.$t('module.report.substrate.substrateCode')]), trigger: 'blur' }
|
||||
],
|
||||
code: [
|
||||
{ required: true, message: this.$i18nForm(['placeholder.input', this.$t('module.report.substrate.substrateCode')]), trigger: 'blur' }
|
||||
],
|
||||
interCode: [
|
||||
{ required: true, message: this.$i18nForm(['placeholder.input', this.$t('module.report.substrate.substrateCode')]), trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -135,13 +155,15 @@ export default {
|
||||
this.$refs['dataForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
const data = {
|
||||
'substrateStatus': this.dataForm.substrateStatus,
|
||||
'status': this.dataForm.status,
|
||||
'storeTime': this.dataForm.storeTime,
|
||||
'id': this.dataForm.id,
|
||||
'code': this.dataForm.substrateCode,
|
||||
'location': this.dataForm.location,
|
||||
'interCode': this.dataForm.interCode,
|
||||
'storageBoxFid': this.dataForm.storageBoxFid
|
||||
'substrateCode': this.dataForm.substrateCode,
|
||||
'locationName': this.dataForm.locationName,
|
||||
// 'interCode': this.dataForm.interCode,
|
||||
'storageBoxFid': this.dataForm.storageBoxFid,
|
||||
'machineHandID': this.dataForm.machineHandID,
|
||||
'subStorageStatus': this.dataForm.subStorageStatus
|
||||
}
|
||||
console.log(data)
|
||||
updateSubstrate(data).then(res => {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* @Author: fzq
|
||||
* @Date: 2022-03-05 15:55:45
|
||||
* @LastEditors: fzq
|
||||
* @LastEditTime: 2022-03-16 16:09:15
|
||||
* @LastEditTime: 2022-03-18 14:39:56
|
||||
-->
|
||||
<template>
|
||||
<div class="app-container">
|
||||
@@ -71,7 +71,7 @@ const tableProps = [
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'location',
|
||||
prop: 'locationName',
|
||||
label: i18n.t('module.report.substrate.location'),
|
||||
align: 'center'
|
||||
},
|
||||
@@ -81,9 +81,19 @@ const tableProps = [
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'substrateStatus',
|
||||
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'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -161,6 +171,13 @@ export default {
|
||||
// console.log(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')
|
||||
}
|
||||
}
|
||||
console.log(this.list)
|
||||
} else {
|
||||
this.list.splice(0, this.list.length)
|
||||
|
||||
Reference in New Issue
Block a user