Browse Source

国际化修改

1219
zhang 2 months ago
parent
commit
8175a34259
  1. 101
      lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/coolregionio.vue

101
lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/coolregionio.vue

@ -11,53 +11,53 @@
label-width="90px" label-width="90px"
label-suffix=":" label-suffix=":"
> >
<el-form-item label="起点点位编码" label-width="120px"> <el-form-item :label="$t('coolpointivt.placeholder.start_point_code')" label-width="120px">
<el-input <el-input
v-model="query.start_point_code" v-model="query.start_point_code"
clearable clearable
placeholder="输入起点点位编码" :placeholder="$t('coolpointivt.placeholder.start_point_code')"
style="width: 185px;" style="width: 185px;"
class="filter-item" class="filter-item"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="终点点位编码" label-width="120px"> <el-form-item :label="$t('coolpointivt.placeholder.end_point_code')" label-width="120px">
<el-input <el-input
v-model="query.end_point_code" v-model="query.end_point_code"
clearable clearable
placeholder="输入终点点位编码" :placeholder="$t('coolpointivt.placeholder.end_point_code')"
style="width: 185px;" style="width: 185px;"
class="filter-item" class="filter-item"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="批次号" label-width="120px"> <el-form-item :label="$t('coolpointivt.placeholder.pcsn')" label-width="120px">
<el-input <el-input
v-model="query.pcsn" v-model="query.pcsn"
clearable clearable
placeholder="输入批次" :placeholder="$t('coolpointivt.placeholder.pcsn')"
style="width: 185px;" style="width: 185px;"
class="filter-item" class="filter-item"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="载具编码" label-width="120px"> <el-form-item :label="$t('coolpointivt.placeholder.vehicle_code')" label-width="120px">
<el-input <el-input
v-model="query.vehicle_code" v-model="query.vehicle_code"
clearable clearable
placeholder="输入载具" :placeholder="$t('coolpointivt.placeholder.vehicle_code')"
style="width: 185px;" style="width: 185px;"
class="filter-item" class="filter-item"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="创建时间"> <el-form-item :label="$t('coolpointivt.placeholder.createTime')">
<el-date-picker <el-date-picker
v-model="query.createTime" v-model="query.createTime"
type="daterange" type="daterange"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
start-placeholder="开始日期" :start-placeholder="$t('coolpointivt.placeholder.start_time')"
end-placeholder="结束日期" :end-placeholder="$t('coolpointivt.placeholder.end_time')"
:default-time="['00:00:00', '23:59:59']" :default-time="['00:00:00', '23:59:59']"
@change="crud.toQuery" @change="crud.toQuery"
/> />
@ -70,34 +70,35 @@
<!--表单组件--> <!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="520px"> <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 ref="form" :model="form" :rules="rules" size="mini" label-width="100px">
<el-form-item label="点位编码" prop="point_code"> <el-form-item :label="$t('coolpointivt.placeholder.point_code')" prop="point_code">
<el-input v-model="form.point_code" style="width: 370px;" :disabled="true"/> <el-input v-model="form.point_code" style="width: 370px;" :disabled="true" />
</el-form-item> </el-form-item>
<el-form-item label="生产区域"> <el-form-item :label="$t('coolpointivt.placeholder.product_area')">
<el-input v-model="form.product_area" style="width: 370px;" :disabled="true"/> <el-input v-model="form.product_area" style="width: 370px;" :disabled="true" />
</el-form-item> </el-form-item>
<el-form-item label="是否启用"> <el-form-item :label="$t('coolpointivt.placeholder.is_enable')">
<el-switch v-model="form.is_used" active-value="1" inactive-value="0"/> <el-switch v-model="form.is_used" active-value="1" inactive-value="0" />
</el-form-item> </el-form-item>
<el-form-item label="满轴位状态" prop="full_point_status"> <el-form-item :label="$t('coolpointivt.placeholder.full_point_status')">
<el-select <el-select
v-model="form.full_point_status" v-model="form.full_point_status"
size="mini" size="mini"
placeholder="满轴位状态" :placeholder="$t('coolpointivt.placeholder.full_point_status')"
class="filter-item" class="filter-item"
style="width: 370px;" style="width: 370px;"
> >
<el-option <el-option
v-for="item in dict.sch_full_point_status" v-for="item in dict.sch_full_point_status"
:key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="母卷号"> <el-form-item :label="$t('coolpointivt.placeholder.container_name')">
<el-input v-model="form.container_name" style="width: 370px;"/> <el-input v-model="form.container_name" style="width: 370px;" />
</el-form-item> </el-form-item>
<el-form-item label="空轴位状态" prop="empty_point_status"> <el-form-item :label="$t('coolpointivt.placeholder.empty_point_status')" prop="empty_point_status">
<el-select <el-select
v-model="form.empty_point_status" v-model="form.empty_point_status"
clearable clearable
@ -108,15 +109,16 @@
> >
<el-option <el-option
v-for="item in dict.sch_empty_point_status" v-for="item in dict.sch_empty_point_status"
:key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="空轴编码"> <el-form-item :label="$t('coolpointivt.dialog.empty_vehicle_code')">
<el-input v-model="form.empty_vehicle_code" style="width: 370px;"/> <el-input v-model="form.empty_vehicle_code" style="width: 370px;" />
</el-form-item> </el-form-item>
<el-form-item label="库存状态" prop="cool_ivt_status"> <el-form-item :label="$t('coolpointivt.placeholder.cool_ivt_status')" prop="cool_ivt_status">
<el-select <el-select
v-model="form.cool_ivt_status" v-model="form.cool_ivt_status"
clearable clearable
@ -127,6 +129,7 @@
> >
<el-option <el-option
v-for="item in dict.sch_cool_ivt_status" v-for="item in dict.sch_cool_ivt_status"
:key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
@ -134,38 +137,38 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button> <el-button type="text" @click="crud.cancelCU">{{ $t('coolpointivt.dialog.cancel') }}</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button> <el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">{{ $t('coolpointivt.dialog.confirm') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!--表格渲染--> <!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler"> <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column show-overflow-tooltip prop="bill_code" label="单据编号" width="120px" /> <el-table-column show-overflow-tooltip :prop="bill_code" :label="$t('coolpointivt.dialog.bill_code')" width="120px" />
<el-table-column prop="io_type" label="出入类型" > <el-table-column prop="io_type" :label="$t('coolpointivt.dialog.io_type')">
<template slot-scope="scope"> <template slot-scope="scope">
{{ dict.label.io_type[scope.row.io_type] }} {{ dict.label.io_type[scope.row.io_type] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip prop="qty" label="数量" /> <el-table-column show-overflow-tooltip prop="qty" :label="$t('coolpointivt.dialog.qty')" />
<!-- <el-table-column prop="bill_status" label="单据状态" > <!-- <el-table-column prop="bill_status" label="单据状态" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ dict.label.st_bill_status[scope.row.bill_status] }} {{ dict.label.st_bill_status[scope.row.bill_status] }}
</template> </template>
</el-table-column>--> </el-table-column>-->
<!-- <el-table-column prop="is_used" label="是否启用" > <!-- <el-table-column prop="is_used" label="是否启用" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ dict.label.is_used[scope.row.is_used] }} {{ dict.label.is_used[scope.row.is_used] }}
</template> </template>
</el-table-column>--> </el-table-column>-->
<el-table-column show-overflow-tooltip prop="pcsn" label="批次" width="120px" /> <el-table-column show-overflow-tooltip prop="pcsn" :label="$t('coolpointivt.dialog.pcsn')" width="120px" />
<el-table-column show-overflow-tooltip prop="start_point_code" label="起始点位" width="120px" /> <el-table-column show-overflow-tooltip prop="start_point_code" :label="$t('coolpointivt.dialog.start_point_code')" width="120px" />
<el-table-column show-overflow-tooltip prop="end_point_code" label="终点点位" width="120px" /> <el-table-column show-overflow-tooltip prop="end_point_code" :label="$t('coolpointivt.dialog.end_point_code')" width="120px" />
<el-table-column prop="remark" label="备注" /> <el-table-column prop="remark" :label="$t('coolpointivt.dialog.remark')" />
<el-table-column prop="create_name" label="创建人" /> <el-table-column prop="create_name" :label="$t('coolpointivt.dialog.create_name')" />
<el-table-column prop="create_time" label="创建时间" min-width="150" show-overflow-tooltip /> <el-table-column prop="create_time" :label="$t('coolpointivt.dialog.create_time')" min-width="150" show-overflow-tooltip />
<el-table-column prop="confirm_optname" label="确认人" /> <el-table-column prop="confirm_optname" :label="$t('coolpointivt.dialog.confirm_optname')" />
<el-table-column prop="confirm_time" label="确认时间" min-width="150" show-overflow-tooltip /> <el-table-column prop="confirm_time" :label="$t('coolpointivt.dialog.confirm_time')" min-width="150" show-overflow-tooltip />
<!-- <el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right"> <!-- <el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<udOperation <udOperation
:data="scope.row" :data="scope.row"
@ -186,18 +189,18 @@ import crudStIvtCoolpointivt from './coolpointivt'
import CRUD, { crud, form, header, presenter } from '@crud/crud' import CRUD, { crud, form, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation' import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation' import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination' import pagination from '@crud/Pagination'
import i18n from '@/i18n'
const defaultForm = { iostorinv_id: null, bill_code: null, io_type: null, material_id: null, pcsn: null, vehicle_code: null, qty: null, qty_unit_id: null, bill_status: null, start_point_code: null, end_point_code: null, cust_id: null, create_mode: null, task_id: null, remark: null, create_id: null, create_name: null, create_time: null, update_optid: null, update_optname: null, update_time: null, confirm_optid: null, confirm_optname: null, confirm_time: null, is_delete: null } const defaultForm = { iostorinv_id: null, bill_code: null, io_type: null, material_id: null, pcsn: null, vehicle_code: null, qty: null, qty_unit_id: null, bill_status: null, start_point_code: null, end_point_code: null, cust_id: null, create_mode: null, task_id: null, remark: null, create_id: null, create_name: null, create_time: null, update_optid: null, update_optname: null, update_time: null, confirm_optid: null, confirm_optname: null, confirm_time: null, is_delete: null }
export default { export default {
name: 'CoolRegionIO', name: 'CoolRegionIO',
dicts: ['sch_cool_ivt_status', 'ST_CREATE_MODE', 'point_location', 'product_area', 'st_bill_status', 'io_type'], dicts: ['sch_cool_ivt_status', 'ST_CREATE_MODE', 'point_location', 'product_area', 'st_bill_status', 'io_type'],
components: { pagination, crudOperation, rrOperation, udOperation }, components: { pagination, crudOperation, rrOperation },
mixins: [presenter(), header(), form(defaultForm), crud()], mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() { cruds() {
return CRUD({ return CRUD({
title: '冷却区出入', title: i18n.t('coolpointivt.title2'),
url: 'api/stIvtCoolpointivt/coolRegionIOQueryAll', url: 'api/stIvtCoolpointivt/coolRegionIOQueryAll',
idField: 'iostorinv_id', idField: 'iostorinv_id',
sort: 'iostorinv_id,desc', sort: 'iostorinv_id,desc',
@ -217,17 +220,17 @@ export default {
}, },
rules: { rules: {
full_point_status: [ full_point_status: [
{ required: true, message: '满轴位状态不能为空', trigger: 'blur' } { required: true, message: this.$t('coolpointivt.msg.isNotEmpty'), trigger: 'blur' }
], ],
empty_point_status: [ empty_point_status: [
{ required: true, message: '空轴位状态不能为空', trigger: 'blur' } { required: true, message: this.$t('coolpointivt.msg.isNotEmpty'), trigger: 'blur' }
], ],
cool_ivt_status: [ cool_ivt_status: [
{ required: true, message: '库存状态不能为空', trigger: 'blur' } { required: true, message: this.$t('coolpointivt.msg.isNotEmpty'), trigger: 'blur' }
] ]
}, },
queryTypeOptions: [ queryTypeOptions: [
{ key: 'point_code', display_name: '点位编码' } { key: 'point_code', display_name: this.$t('coolpointivt.placeholder.point_code') }
] ]
} }
}, },

Loading…
Cancel
Save