'更新字段'
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 15:41:11
|
||||
* @LastEditors: fzq
|
||||
* @LastEditTime: 2022-03-18 13:53:50
|
||||
* @LastEditTime: 2022-03-19 10:25:46
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -111,6 +111,11 @@ const tableProps = [
|
||||
prop: 'statusName',
|
||||
label: i18n.t('module.basicData.cache.status'),
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'locationNumber',
|
||||
label: i18n.t('module.basicData.cache.locationNumber'),
|
||||
align: 'center'
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:37:56
|
||||
* @LastEditors: fzq
|
||||
* @LastEditTime: 2022-03-15 09:54:52
|
||||
* @LastEditTime: 2022-03-20 09:36:54
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -35,7 +35,7 @@
|
||||
<!-- <el-form-item :label="$t('module.basicData.cache.status')" prop="status">
|
||||
<el-input v-model="dataForm.status" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.cache.status')])" clearable />
|
||||
</el-form-item> -->
|
||||
<el-form-item :label="$t('module.basicData.cache.status')" prop="status">
|
||||
<!-- <el-form-item :label="$t('module.basicData.cache.status')" prop="status">
|
||||
<el-select v-model="dataForm.status">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
@@ -44,6 +44,9 @@
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
<el-form-item :label="$t('module.basicData.cache.locationNumber')" prop="locationNumber">
|
||||
<el-input v-model="dataForm.locationNumber" :step="1" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.cache.locationNumber')])" clearable />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
@@ -75,7 +78,8 @@ export default {
|
||||
locationNameAlias: '',
|
||||
rowNum: '',
|
||||
status: null,
|
||||
locationType: ''
|
||||
locationType: '',
|
||||
locationNumber: 0
|
||||
},
|
||||
options: [
|
||||
{
|
||||
@@ -99,10 +103,13 @@ export default {
|
||||
{ required: true, message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.cache.LocationCode')]), trigger: 'blur' }
|
||||
],
|
||||
layers: [
|
||||
{ pattern: /^[1-9]\d*$/, message: this.$t('module.basicData.cache.warning'), trigger: 'blur' }
|
||||
{ required: true, pattern: /^[1-9]\d*$/, message: this.$t('module.basicData.cache.warning'), trigger: 'blur' }
|
||||
],
|
||||
columns: [
|
||||
{ pattern: /^[1-9]\d*$/, message: this.$t('module.basicData.cache.warning'), trigger: 'blur' }
|
||||
{ required: true, pattern: /^[1-9]\d*$/, message: this.$t('module.basicData.cache.warning'), trigger: 'blur' }
|
||||
],
|
||||
locationNumber: [
|
||||
{ required: true, message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.cache.locationNumber')]), trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -138,7 +145,8 @@ export default {
|
||||
'shelfId': this.shelfId,
|
||||
'id': this.dataForm.id,
|
||||
'status': this.dataForm.status,
|
||||
'locationType': this.dataForm.locationType
|
||||
'locationType': this.dataForm.locationType,
|
||||
'locationNumber': this.dataForm.locationNumber
|
||||
}
|
||||
if (this.dataForm.id) {
|
||||
locationUpdate(data).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user