Browse Source

国际化修改

1219
zhang 5 days ago
parent
commit
89ee33ac00
  1. 84
      lms/nladmin-ui/src/views/wms/pdm/ivt/cutpointivt/index.vue
  2. 76
      lms/nladmin-ui/src/views/wms/pdm/ivt/deliverypointivt/index.vue

84
lms/nladmin-ui/src/views/wms/pdm/ivt/cutpointivt/index.vue

@ -11,17 +11,17 @@
label-width="90px"
label-suffix=":"
>
<el-form-item label="点位编码">
<el-form-item :label="$t('cutpointivt.placeholder.point_code')">
<el-input
v-model="query.point_code"
clearable
placeholder="输入点位编码"
:placeholder="$t('cutpointivt.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('cutpointivt.placeholder.full_point_status')">
<el-select
v-model="query.full_point_status"
clearable
@ -33,12 +33,13 @@
>
<el-option
v-for="item in dict.sch_full_point_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="空轴位状态">
<el-form-item :label="$t('cutpointivt.placeholder.empty_point_status')">
<el-select
v-model="query.empty_point_status"
clearable
@ -50,12 +51,13 @@
>
<el-option
v-for="item in dict.sch_empty_point_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="生产区域">
<el-form-item :label="$t('cutpointivt.placeholder.product_area')">
<el-select
v-model="query.product_area"
clearable
@ -67,12 +69,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('cutpointivt.placeholder.is_enable')">
<el-switch
v-model="query.is_used"
active-value="0"
@ -90,40 +93,41 @@
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="520px">
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="100px">
<el-form-item label="点位编码" prop="point_code">
<el-input v-model="form.point_code" style="width: 370px;" disabled/>
<el-form-item :label="$t('cutpointivt.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-input v-model="form.full_point_code" style="width: 370px;" disabled/>
<el-form-item :label="$t('cutpointivt.dialog.full_point_code')">
<el-input v-model="form.full_point_code" style="width: 370px;" disabled />
</el-form-item>
<el-form-item label="空轴位编码">
<el-input v-model="form.empty_point_code" style="width: 370px;" disabled/>
<el-form-item :label="$t('cutpointivt.dialog.empty_point_code')">
<el-input v-model="form.empty_point_code" style="width: 370px;" disabled />
</el-form-item>
<el-form-item label="母卷号">
<el-form-item :label="$t('cutpointivt.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('cutpointivt.dialog.empty_vehicle_code')">
<el-input v-model="form.empty_vehicle_code" style="width: 370px;" />
</el-form-item>
<el-form-item label="是否启用">
<el-form-item :label="$t('cutpointivt.placeholder.is_enable')">
<el-switch v-model="form.is_used" active-value="1" inactive-value="0" />
</el-form-item>
<el-form-item label="满轴位状态" prop="full_point_status">
<el-form-item :label="$t('cutpointivt.placeholder.full_point_status')" prop="full_point_status">
<el-select
v-model="form.full_point_status"
size="mini"
placeholder="满轴位状态"
:placeholder="$t('cutpointivt.placeholder.full_point_status')"
class="filter-item"
style="width: 370px;"
>
<el-option
v-for="item in dict.sch_full_point_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="空轴位状态" prop="empty_point_status">
<el-form-item :label="$t('cutpointivt.placeholder.empty_point_status')" prop="empty_point_status">
<el-select
v-model="form.empty_point_status"
clearable
@ -134,6 +138,7 @@
>
<el-option
v-for="item in dict.sch_empty_point_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
@ -141,42 +146,42 @@
</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('cutpointivt.dialog.cancel') }}</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">{{ $t('cutpointivt.dialog.confirm') }}</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="point_code" label="点位编码" width="100px" show-overflow-tooltip />
<el-table-column prop="full_point_code" label="满轴位" width="110px" show-overflow-tooltip />
<el-table-column prop="full_point_status" label="满轴位状态" min-width="100" show-overflow-tooltip>
<el-table-column prop="point_code" :label="$t('cutpointivt.placeholder.point_code')" width="100px" show-overflow-tooltip />
<el-table-column prop="full_point_code" :label="$t('cutpointivt.placeholder.full_point_code')" width="110px" show-overflow-tooltip />
<el-table-column prop="full_point_status" :label="$t('cutpointivt.placeholder.full_point_status')" min-width="100" show-overflow-tooltip>
<template slot-scope="scope">
{{ dict.label.sch_full_point_status[scope.row.full_point_status] }}
</template>
</el-table-column>
<el-table-column prop="container_name" label="母卷号" width="150px" show-overflow-tooltip />
<el-table-column prop="empty_point_status" label="空轴位状态" min-width="100" show-overflow-tooltip>
<el-table-column prop="container_name" :label="$t('cutpointivt.placeholder.container_name')" width="150px" show-overflow-tooltip />
<el-table-column prop="empty_point_status" :label="$t('cutpointivt.placeholder.empty_point_status')" min-width="100" show-overflow-tooltip>
<template slot-scope="scope">
{{ dict.label.sch_empty_point_status[scope.row.empty_point_status] }}
</template>
</el-table-column>
<el-table-column prop="empty_vehicle_code" label="空轴编码" width="120px" show-overflow-tooltip />
<el-table-column prop="ext_code" label="外部编码" width="100px" show-overflow-tooltip />
<el-table-column prop="product_area" label="生产区域" />
<el-table-column prop="point_location" label="位置">
<el-table-column prop="empty_vehicle_code" :label="$t('cutpointivt.dialog.empty_vehicle_code')" width="120px" show-overflow-tooltip />
<el-table-column prop="ext_code" :label="$t('cutpointivt.dialog.ext_code')" width="100px" show-overflow-tooltip />
<el-table-column prop="product_area" :label="$t('cutpointivt.placeholder.product_area')" />
<el-table-column prop="point_location" :label="$t('cutpointivt.dialog.point_location')">
<template slot-scope="scope">
{{ dict.label.point_location[scope.row.point_location] }}
</template>
</el-table-column>
<el-table-column prop="is_used" label="是否启用">
<el-table-column prop="is_used" :label="$t('cutpointivt.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="151" show-overflow-tooltip />
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
<el-table-column prop="remark" :label="$t('cutpointivt.dialog.remark')" />
<el-table-column prop="update_time" :label="$t('cutpointivt.dialog.update_time')" min-width="151" show-overflow-tooltip />
<el-table-column v-permission="[]" :label="$t('cutpointivt.dialog.operate')" width="120px" align="center" fixed="right">
<template slot-scope="scope">
<udOperation
:data="scope.row"
@ -199,6 +204,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, full_point_code: null, full_point_status: null, container_name: null, full_vehicle_code: null, empty_point_code: null, empty_point_status: null, empty_vehicle_code: null, product_area: null, point_location: null, sort_seq: null, is_used: null, remark: null, create_id: null, create_name: null, create_time: null, update_optid: null, update_optname: null, update_time: null }
export default {
@ -208,7 +214,7 @@ export default {
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({
title: '分切区点库存',
title: i18n.t('cutpointivt.title'),
url: 'api/cutpointivt',
idField: 'ivt_id',
sort: 'ivt_id,desc',
@ -228,19 +234,19 @@ export default {
},
rules: {
point_code: [
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
{ required: true, message: this.$t('cutpointivt.msg.isNotEmpty'), trigger: 'blur' }
],
full_point_status: [
{ required: true, message: '满轴位状态不能为空', trigger: 'blur' }
{ required: true, message: this.$t('cutpointivt.msg.isNotEmpty'), trigger: 'blur' }
],
empty_point_status: [
{ required: true, message: '空轴位状态不能为空', trigger: 'blur' }
{ required: true, message: this.$t('cutpointivt.msg.isNotEmpty'), trigger: 'blur' }
],
sort_seq: [
{ required: true, message: '顺序号不能为空', trigger: 'blur' }
{ required: true, message: this.$t('cutpointivt.msg.isNotEmpty'), trigger: 'blur' }
],
is_used: [
{ required: true, message: '是否启用不能为空', trigger: 'blur' }
{ required: true, message: this.$t('cutpointivt.msg.isNotEmpty'), trigger: 'blur' }
]
}}
},

76
lms/nladmin-ui/src/views/wms/pdm/ivt/deliverypointivt/index.vue

@ -11,17 +11,17 @@
label-width="90px"
label-suffix=":"
>
<el-form-item label="点位编码">
<el-form-item :label="$t('deliveryivt.placeholder.point_code')">
<el-input
v-model="query.point_code"
clearable
placeholder="输入点位编码"
:placeholder="$t('deliveryivt.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('deliveryivt.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('deliveryivt.placeholder.point_status')">
<el-select
v-model="query.point_status"
clearable
@ -50,12 +51,13 @@
>
<el-option
v-for="item in dict.delivery_point_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="是否启用">
<el-form-item :label="$t('deliveryivt.placeholder.is_enable')">
<el-switch
v-model="query.is_used"
active-value="0"
@ -79,47 +81,49 @@
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('deliveryivt.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('deliveryivt.placeholder.product_area')">
<el-select
v-model="form.product_area"
size="mini"
placeholder="生产区域"
:placeholder="$t('deliveryivt.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('deliveryivt.dialog.vehicle_code')">
<el-input v-model="form.vehicle_code" style="width: 370px;" />
</el-form-item>
<el-form-item label="气涨轴">
<el-form-item :label="$t('deliveryivt.dialog.qzzno')">
<el-input v-model="form.qzzno" style="width: 370px;" />
</el-form-item>
<el-form-item label="点位状态">
<el-form-item :label="$t('deliveryivt.placeholder.point_status')">
<el-select
v-model="form.point_status"
size="mini"
placeholder="点位状态"
placeholder="$t('deliveryivt.placeholder.point_status')"
class="filter-item"
style="width: 370px;"
>
<el-option
v-for="item in dict.delivery_point_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="位置">
<el-form-item :label="$t('deliveryivt.placeholder.point_location')">
<el-select
v-model="form.point_location"
size="mini"
@ -130,24 +134,25 @@
>
<el-option
v-for="item in dict.point_location"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</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('deliveryivt.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('deliveryivt.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('deliveryivt.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('deliveryivt.dialog.cancel') }}</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">{{ $t('deliveryivt.dialog.confirm') }}</el-button>
</div>
</el-dialog>
<!--表格渲染-->
@ -160,32 +165,32 @@
@selection-change="crud.selectionChangeHandler"
>
<el-table-column type="selection" width="55" />
<el-table-column prop="point_code" label="点位编码" width="100px" />
<el-table-column prop="vehicle_code" label="载具码" width="140px" />
<el-table-column prop="qzzno" label="气涨轴" width="140px" show-overflow-tooltip />
<el-table-column prop="point_status" label="点位状态">
<el-table-column prop="point_code" :label="$t('deliveryivt.placeholder.point_code')" width="100px" />
<el-table-column prop="vehicle_code" :label="$t('deliveryivt.placeholder.vehicle_code')" width="140px" />
<el-table-column prop="qzzno" :label="$t('deliveryivt.dialog.qzzno')" width="140px" show-overflow-tooltip />
<el-table-column prop="point_status" :label="$t('deliveryivt.placeholder.point_status')">
<template slot-scope="scope">
{{ dict.label.delivery_point_status[scope.row.point_status] }}
</template>
</el-table-column>
<el-table-column prop="product_area" label="生产区域">
<el-table-column prop="product_area" :label="$t('deliveryivt.placeholder.product_area')">
<template slot-scope="scope">
{{ dict.label.product_area[scope.row.product_area] }}
</template>
</el-table-column>
<el-table-column prop="point_location" label="位置">
<el-table-column prop="point_location" :label="$t('deliveryivt.placeholder.point_location')">
<template slot-scope="scope">
{{ dict.label.point_location[scope.row.point_location] }}
</template>
</el-table-column>
<el-table-column prop="is_used" label="是否启用">
<el-table-column prop="is_used" :label="$t('deliveryivt.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('deliveryivt.dialog.remark')" />
<el-table-column prop="update_time" :label="$t('deliveryivt.dialog.update_time')" min-width="150" show-overflow-tooltip />
<el-table-column v-permission="[]" :label="$t('deliveryivt.dialog.operate')" width="120px" align="center" fixed="right">
<template slot-scope="scope">
<udOperation
:data="scope.row"
@ -208,6 +213,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,
@ -234,7 +240,7 @@ export default {
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({
title: '分切输送线',
title: i18n.t('deliveryivt.title'),
url: 'api/deliverypointivt',
idField: 'ivt_id',
sort: 'ivt_id,desc',
@ -253,10 +259,10 @@ export default {
permission: {},
rules: {
point_code: [
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
{ required: true, message: this.$t('deliveryivt.msg.isNotEmpty'), trigger: 'blur' }
],
is_used: [
{ required: true, message: '是否启用不能为空', trigger: 'blur' }
{ required: true, message: this.$t('deliveryivt.msg.isNotEmpty'), trigger: 'blur' }
]
}
}
@ -269,11 +275,11 @@ export default {
[CRUD.HOOK.beforeSubmit]() {
debugger
if (this.form.point_status !== '01' && !this.form.vehicle_code) {
this.crud.notify('请输入载具编码!', CRUD.NOTIFICATION_TYPE.INFO)
this.crud.notify(this.$t('deliveryivt.msg.input1'), CRUD.NOTIFICATION_TYPE.INFO)
return false
}
if ((this.form.point_status === '03' || this.form.point_status === '04') && !this.form.qzzno) {
this.crud.notify('请输入气涨轴编码!', CRUD.NOTIFICATION_TYPE.INFO)
this.crud.notify(this.$t('deliveryivt.msg.input2'), CRUD.NOTIFICATION_TYPE.INFO)
return false
}
},

Loading…
Cancel
Save