Browse Source

国际化修改

1219
zhang 6 days ago
parent
commit
54048400cc
  1. 73
      lms/nladmin-ui/src/views/wms/pdm/ivt/package/index.vue
  2. 68
      lms/nladmin-ui/src/views/wms/pdm/ivt/packageinfoivt/index.vue

73
lms/nladmin-ui/src/views/wms/pdm/ivt/package/index.vue

@ -11,17 +11,17 @@
label-width="90px"
label-suffix=":"
>
<el-form-item label="点位编码">
<el-form-item :label="$t('packageivt.placeholder.point_code')">
<el-input
v-model="query.point_code"
clearable
placeholder="输入点位编码"
:placeholder="$t('packageivt.placeholder.input')"
style="width: 185px;"
class="filter-item"
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="生产区域">
<el-form-item :label="$t('packageivt.placeholder.product_area')">
<el-select
v-model="query.product_area"
clearable
@ -33,12 +33,13 @@
>
<el-option
v-for="item in dict.product_area"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="点位类型">
<el-form-item :label="$t('packageivt.placeholder.point_type')">
<el-select
v-model="query.point_type"
clearable
@ -50,12 +51,13 @@
>
<el-option
v-for="item in dict.PACKAGE_POINT_TYPE"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="是否启用">
<el-form-item :label="$t('packageivt.placeholder.is_enable')">
<el-switch
v-model="query.is_used"
active-value="0"
@ -79,29 +81,30 @@
width="500px"
>
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="80px">
<el-form-item label="点位编码" prop="point_code">
<el-input v-model="form.point_code" style="width: 370px;" disabled/>
<el-form-item :label="$t('packageivt.placeholder.point_code')" prop="point_code">
<el-input v-model="form.point_code" style="width: 370px;" disabled />
</el-form-item>
<el-form-item label="生产区域">
<el-form-item :label="$t('packageivt.placeholder.product_area')">
<el-select
v-model="form.product_area"
size="mini"
placeholder="生产区域"
:placeholder="$t('packageivt.placeholder.product_area')"
class="filter-item"
style="width: 370px;"
disabled
>
<el-option
v-for="item in dict.product_area"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="轴数量">
<el-form-item :label="$t('packageivt.dialog.have_qzz')">
<el-input v-model="form.have_qzz" style="width: 370px;" />
</el-form-item>
<el-form-item label="代数">
<el-form-item :label="$t('packageivt.dialog.qzz_generation')">
<el-select
v-model="form.qzz_generation"
size="mini"
@ -110,12 +113,13 @@
>
<el-option
v-for="item in generation_list"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="尺寸">
<el-form-item :label="$t('packageivt.dialog.qzz_size')">
<el-select
v-model="form.qzz_size"
size="mini"
@ -124,27 +128,28 @@
>
<el-option
v-for="item in size_list"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="子卷号1">
<el-form-item :label="$t('packageivt.dialog.container_name1')">
<el-input v-model="form.container_name1" style="width: 370px;" />
</el-form-item>
<el-form-item label="子卷号2">
<el-form-item :label="$t('packageivt.dialog.container_name2')">
<el-input v-model="form.container_name2" style="width: 370px;" />
</el-form-item>
<el-form-item label="顺序号" prop="sort_seq">
<el-input v-model="form.sort_seq" style="width: 370px;" disabled/>
<el-form-item :label="$t('packageivt.dialog.sort_seq')" prop="sort_seq">
<el-input v-model="form.sort_seq" style="width: 370px;" disabled />
</el-form-item>
<el-form-item label="是否启用" prop="is_used">
<el-form-item :label="$t('packageivt.placeholder.is_enable')" prop="is_used">
<el-switch v-model="form.is_used" active-value="1" inactive-value="0" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
<el-button type="text" @click="crud.cancelCU">{{ $t('packageivt.dialog.cancel') }}</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">{{ $t('packageivt.dialog.confirm') }}</el-button>
</div>
</el-dialog>
<!--表格渲染-->
@ -157,25 +162,25 @@
@selection-change="crud.selectionChangeHandler"
>
<el-table-column type="selection" width="55" />
<el-table-column prop="point_code" label="点位编码" width="100px" />
<el-table-column prop="label" label="点位类型" width="100px" />
<el-table-column prop="product_area" label="生产区域">
<el-table-column prop="point_code" :label="$t('packageivt.placeholder.point_code')" width="100px" />
<el-table-column prop="label" :label="$t('packageivt.placeholder.point_type')" width="100px" />
<el-table-column prop="product_area" :label="$t('packageivt.placeholder.product_area')">
<template slot-scope="scope">
{{ dict.label.product_area[scope.row.product_area] }}
</template>
</el-table-column>
<el-table-column prop="have_qzz" label="轴数量" />
<el-table-column prop="qzz_generation" label="代数" />
<el-table-column prop="qzz_size" label="尺寸" />
<el-table-column prop="container_name1" label="子卷号1" />
<el-table-column prop="container_name2" label="子卷号2" />
<el-table-column prop="is_used" label="是否启用">
<el-table-column prop="have_qzz" :label="$t('packageivt.dialog.have_qzz')" />
<el-table-column prop="qzz_generation" :label="$t('packageivt.dialog.qzz_generation')" />
<el-table-column prop="qzz_size" :label="$t('packageivt.dialog.qzz_size')" />
<el-table-column prop="container_name1" :label="$t('packageivt.dialog.container_name1')" />
<el-table-column prop="container_name2" :label="$t('packageivt.dialog.container_name2')" />
<el-table-column prop="is_used" :label="$t('packageivt.placeholder.is_enable')">
<template slot-scope="scope">
{{ dict.label.is_used[scope.row.is_used] }}
</template>
</el-table-column>
<el-table-column prop="update_time" label="修改时间" show-overflow-tooltip width="150px;"/>
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
<el-table-column prop="update_time" :label="$t('packageivt.dialog.update_time')" show-overflow-tooltip width="150px;" />
<el-table-column v-permission="[]" :label="$t('packageivt.dialog.operate')" width="120px" align="center" fixed="right">
<template slot-scope="scope">
<udOperation
:data="scope.row"
@ -198,7 +203,7 @@ import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import i18n from '@/i18n'
const defaultForm = {
ivt_id: null,
point_code: null,
@ -226,7 +231,7 @@ export default {
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({
title: '内包间',
title: i18n.t('packageivt.title'),
url: 'api/packagepointivt',
idField: 'ivt_id',
sort: 'ivt_id,desc',
@ -245,10 +250,10 @@ export default {
permission: {},
rules: {
point_code: [
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
{ required: true, message: this.$t('packageivt.msg.isNotEmpty'), trigger: 'blur' }
],
is_used: [
{ required: true, message: '是否启用不能为空', trigger: 'blur' }
{ required: true, message: this.$t('packageivt.msg.isNotEmpty'), trigger: 'blur' }
]
},
generation_list: [{

68
lms/nladmin-ui/src/views/wms/pdm/ivt/packageinfoivt/index.vue

@ -11,17 +11,17 @@
label-width="90px"
label-suffix=":"
>
<el-form-item label="点位编码">
<el-form-item :label="$t('packageinfoivt.placeholder.point_code')">
<el-input
v-model="query.point_code"
clearable
placeholder="输入点位编码"
:placeholder="$t('packageinfoivt.placeholder.input')"
style="width: 185px;"
class="filter-item"
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="点位区域">
<el-form-item :label="$t('packageinfoivt.placeholder.point_area')">
<el-select
v-model="query.packageinfo_area"
clearable
@ -33,12 +33,13 @@
>
<el-option
v-for="item in dict.packageinfo_area"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="点位状态">
<el-form-item :label="$t('packageinfoivt.placeholder.point_status')">
<el-select
v-model="query.ivt_status"
clearable
@ -50,12 +51,13 @@
>
<el-option
v-for="item in dict.sch_packageinfo_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="是否启用">
<el-form-item :label="$t('packageinfoivt.placeholder.is_enable')">
<el-switch
v-model="query.is_used"
active-value="0"
@ -80,43 +82,44 @@
>
<br>
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="80px">
<el-form-item label="点位编码" prop="point_code">
<el-form-item :label="$t('packageinfoivt.placeholder.point_code')" prop="point_code">
<el-input v-model="form.point_code" style="width: 370px;" disabled />
</el-form-item>
<el-form-item label="点位名称" prop="point_name">
<el-form-item :label="$t('packageinfoivt.placeholder.point_name')" prop="point_name">
<el-input v-model="form.point_name" style="width: 370px;" disabled />
</el-form-item>
<el-form-item label="子卷编号">
<el-form-item :label="$t('packageinfoivt.placeholder.container_name')">
<el-input v-model="form.container_name" style="width: 370px;" />
</el-form-item>
<el-form-item label="点位状态">
<el-form-item :label="$t('packageinfoivt.placeholder.point_status')">
<el-select
v-model="form.ivt_status"
size="mini"
placeholder="点位状态"
:placeholder="$t('packageinfoivt.placeholder.point_status')"
class="filter-item"
style="width: 370px;"
>
<el-option
v-for="item in dict.sch_packageinfo_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="顺序号" prop="sort_seq">
<el-form-item :label="$t('packageinfoivt.dialog.sort_seq')" prop="sort_seq">
<el-input v-model="form.sort_seq" style="width: 370px;" disabled />
</el-form-item>
<el-form-item label="是否启用" prop="is_used">
<el-form-item :label="$t('packageinfoivt.placeholder.is_enable')" prop="is_used">
<el-switch v-model="form.is_used" active-value="1" inactive-value="0" />
</el-form-item>
<el-form-item label="备注">
<el-form-item :label="$t('packageinfoivt.dialog.remark')">
<el-input v-model="form.remark" style="width: 370px;" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
<el-button type="text" @click="crud.cancelCU">{{ $t('packageinfoivt.dialog.cancel') }}</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">{{ $t('packageinfoivt.dialog.confirm') }}</el-button>
</div>
</el-dialog>
<!--表格渲染-->
@ -129,31 +132,31 @@
@selection-change="crud.selectionChangeHandler"
>
<el-table-column type="selection" width="55" />
<el-table-column prop="point_status" label="区域类型">
<el-table-column prop="point_status" :label="$t('packageinfoivt.dialog.area_type')">
<template slot-scope="scope">
{{ dict.label.packageinfo_area[scope.row.point_status] }}
</template>
</el-table-column>
<el-table-column prop="point_code" label="点位编码" width="100px" />
<el-table-column prop="point_name" label="点位名称" width="140px" />
<el-table-column prop="ivt_status" label="库存状态">
<el-table-column prop="point_code" :label="$t('packageinfoivt.placeholder.point_code')" width="100px" />
<el-table-column prop="point_name" :label="$t('packageinfoivt.placeholder.point_name')" width="140px" />
<el-table-column prop="ivt_status" :label="$t('packageinfoivt.dialog.ivt_status')">
<template slot-scope="scope">
{{ dict.label.sch_packageinfo_status[scope.row.ivt_status] }}
</template>
</el-table-column>
<el-table-column prop="container_name" label="子卷编号" width="140px" />
<el-table-column prop="row_num" label="排" width="100px" />
<el-table-column prop="col_num" label="列" width="100px" />
<el-table-column prop="depth" label="深浅位" width="100px" />
<el-table-column prop="wait_point_type" label="等待点" width="100px" />
<el-table-column prop="is_used" label="是否启用">
<el-table-column prop="container_name" :label="$t('packageinfoivt.placeholder.container_name')" width="140px" />
<el-table-column prop="row_num" :label="$t('packageinfoivt.dialog.row_num')" width="100px" />
<el-table-column prop="col_num" :label="$t('packageinfoivt.dialog.col_num')" width="100px" />
<el-table-column prop="depth" :label="$t('packageinfoivt.dialog.depth')" width="100px" />
<el-table-column prop="wait_point_type" :label="$t('packageinfoivt.dialog.wait_point_type')" width="100px" />
<el-table-column prop="is_used" :label="$t('packageinfoivt.placeholder.is_enable')">
<template slot-scope="scope">
{{ dict.label.is_used[scope.row.is_used] }}
</template>
</el-table-column>
<el-table-column prop="remark" label="备注" />
<el-table-column prop="update_time" label="修改时间" min-width="150" show-overflow-tooltip />
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
<el-table-column prop="remark" :label="$t('packageinfoivt.dialog.remark')" />
<el-table-column prop="update_time" :label="$t('packageinfoivt.dialog.update_time')" min-width="150" show-overflow-tooltip />
<el-table-column v-permission="[]" :label="$t('packageinfoivt.dialog.operate')" width="120px" align="center" fixed="right">
<template slot-scope="scope">
<udOperation
:data="scope.row"
@ -176,6 +179,7 @@ import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import i18n from '@/i18n'
const defaultForm = {
ivt_id: null,
@ -204,7 +208,7 @@ export default {
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({
title: '装箱区域',
title: i18n.t('packageinfoivt.title'),
url: 'api/bstIvtPackageInfoIvt',
idField: 'ivt_id',
sort: 'ivt_id,desc',
@ -223,13 +227,13 @@ export default {
permission: {},
rules: {
point_code: [
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
{ required: true, message: this.$t('packageinfoivt.msg.isNotEmpty'), trigger: 'blur' }
],
ivt_status: [
{ required: true, message: '点位状态不能为空', trigger: 'blur' }
{ required: true, message: this.$t('packageinfoivt.msg.isNotEmpty'), trigger: 'blur' }
],
is_used: [
{ required: true, message: '是否启用不能为空', trigger: 'blur' }
{ required: true, message: this.$t('packageinfoivt.msg.isNotEmpty'), trigger: 'blur' }
]
}
}

Loading…
Cancel
Save