Browse Source

国际化修改

1219
zhang 3 weeks ago
parent
commit
fdf3206239
  1. 2
      lms/nladmin-system/src/main/resources/config/application-dev.yml
  2. 31
      lms/nladmin-ui/src/i18n/langs/pdm/ivt/coolpointivt/en.js
  3. 32
      lms/nladmin-ui/src/i18n/langs/pdm/ivt/coolpointivt/in.js
  4. 55
      lms/nladmin-ui/src/i18n/langs/pdm/ivt/coolpointivt/zh.js
  5. 31
      lms/nladmin-ui/src/i18n/langs/pdm/ivt/sbpointIvt/en.js
  6. 32
      lms/nladmin-ui/src/i18n/langs/pdm/ivt/sbpointIvt/in.js
  7. 28
      lms/nladmin-ui/src/i18n/langs/pdm/ivt/sbpointIvt/zh.js
  8. 20
      lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/Dialog.vue
  9. 6
      lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/index.vue
  10. 113
      lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/inventory.vue
  11. 71
      lms/nladmin-ui/src/views/wms/pdm/ivt/sbpointivt/index.vue

2
lms/nladmin-system/src/main/resources/config/application-dev.yml

@ -10,7 +10,7 @@ spring:
url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.251}:${DB_PORT:3306}/${DB_NAME:yinni_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
username: ${DB_USER:root}
# password: ${DB_PWD:NLABC&hl123}
password: ${DB_PWD:123456}
password: ${DB_PWD:noblelift2024}
# 初始连接数
initial-size: 5
# 最小连接数

31
lms/nladmin-ui/src/i18n/langs/pdm/ivt/coolpointivt/en.js

@ -0,0 +1,31 @@
export default {
'coolpointivt': {
'title': 'Raw foil spot inventory',
'dialog': {
'vehicle_code': 'Vehicle code',
'point_location': 'position',
'ext_code': 'External encoding',
'remark': 'remark',
'confirm': 'confirm',
'cancel': 'cancel',
'enable': 'enabled',
'is_enable': 'Is it enabled',
'is_delete': 'Do you want to delete it',
'create_name': 'Creator',
'create_time': 'Creation time',
'update_name': 'Modified by',
'update_time': 'Change time',
'operate': 'operation',
'is_update': 'Can it be modified'
},
'placeholder': {
'point_code': 'Point code',
'product_area': 'production area',
'input': 'Input point code',
'mes_used': 'MES enabled'
},
'msg': {
'isNotEmpty': 'Cannot be empty'
}
}
}

32
lms/nladmin-ui/src/i18n/langs/pdm/ivt/coolpointivt/in.js

@ -0,0 +1,32 @@
export default {
'coolpointivt': {
'title': 'Inventar tempat foil mentah',
'dialog': {
'vehicle_code': 'Kode kendaraan',
'point_location': 'posisi',
'ext_code': 'Pengenkodasi luar',
'remark': 'komentar',
'confirm': 'konfirmasi',
'cancel': 'batalkan',
'enable': 'Aktifkan',
'yes': 'ya',
'no': 'Tidak',
'is_enable': 'Apakah diaktifkan',
'is_delete': 'Apakah Anda ingin menghapusnya',
'create_name': 'Pencipta',
'create_time': 'Waktu penciptaan',
'update_name': 'Diubah oleh',
'update_time': 'Ubah waktu',
'operate': 'operasi'
},
'placeholder': {
'point_code': 'Kode titik',
'product_area': 'Area produksi',
'input': 'Kode titik masukan',
'mes_used': 'MES diaktifkan'
},
'msg': {
'isNotEmpty': 'Tidak dapat kosong'
}
}
}

55
lms/nladmin-ui/src/i18n/langs/pdm/ivt/coolpointivt/zh.js

@ -0,0 +1,55 @@
export default {
'coolpointivt': {
'title': '冷却区库存',
'title1': '库存查询',
'title2': '冷却区出入记录',
'dialog': {
'full_point_code': '满轴位',
'empty_point_code': '空轴位',
'empty_vehicle_code': '空轴编号',
'ivt_qty': '库存数',
'qty_unit_name': '计量单位',
'instorage_time': '入库时间',
'point_location': '位置',
'bill_code': '单据编号',
'io_type': '出入类型',
'qty': '数量',
'pcsn': '批次',
'start_point_code': '起始点位',
'end_point_code': '终点点位',
'confirm_optname': '确认人',
'confirm_time': '确认时间',
'callback': '入冷却回传',
'remark': '备注',
'confirm': '确认',
'cancel': '取消',
'is_enable': '是否启用',
'yes': '是',
'no': '否',
'update_name': '修改人',
'update_time': '修改时间',
'operate': '操作'
},
'placeholder': {
'point_code': '点位编码',
'input': '输入点位编码',
'container_name': '母卷号',
'full_point_status': '满轴位状态',
'empty_point_status': '空轴位状态',
'product_area': '生产区域',
'point_location': '生产位置',
'cool_ivt_status': '库存状态',
'is_enable': '是否启用',
'create_time': '入库时间',
'start_time': '开始时间',
'end_time': '结束时间',
'start_point_code': '起点点位编码',
'end_point_code': '终点点位编码',
'pcsn': '批次号',
'vehicle_code': '载具编码'
},
'msg': {
'isNotEmpty': '不能为空'
}
}
}

31
lms/nladmin-ui/src/i18n/langs/pdm/ivt/sbpointIvt/en.js

@ -0,0 +1,31 @@
export default {
'sbpointivt': {
'title': 'Raw foil spot inventory',
'dialog': {
'vehicle_code': 'Vehicle code',
'point_location': 'position',
'ext_code': 'External encoding',
'remark': 'remark',
'confirm': 'confirm',
'cancel': 'cancel',
'enable': 'enabled',
'is_enable': 'Is it enabled',
'is_delete': 'Do you want to delete it',
'create_name': 'Creator',
'create_time': 'Creation time',
'update_name': 'Modified by',
'update_time': 'Change time',
'operate': 'operation',
'is_update': 'Can it be modified'
},
'placeholder': {
'point_code': 'Point code',
'product_area': 'production area',
'input': 'Input point code',
'mes_used': 'MES enabled'
},
'msg': {
'isNotEmpty': 'Cannot be empty'
}
}
}

32
lms/nladmin-ui/src/i18n/langs/pdm/ivt/sbpointIvt/in.js

@ -0,0 +1,32 @@
export default {
'sbpointivt': {
'title': 'Inventar tempat foil mentah',
'dialog': {
'vehicle_code': 'Kode kendaraan',
'point_location': 'posisi',
'ext_code': 'Pengenkodasi luar',
'remark': 'komentar',
'confirm': 'konfirmasi',
'cancel': 'batalkan',
'enable': 'Aktifkan',
'yes': 'ya',
'no': 'Tidak',
'is_enable': 'Apakah diaktifkan',
'is_delete': 'Apakah Anda ingin menghapusnya',
'create_name': 'Pencipta',
'create_time': 'Waktu penciptaan',
'update_name': 'Diubah oleh',
'update_time': 'Ubah waktu',
'operate': 'operasi'
},
'placeholder': {
'point_code': 'Kode titik',
'product_area': 'Area produksi',
'input': 'Kode titik masukan',
'mes_used': 'MES diaktifkan'
},
'msg': {
'isNotEmpty': 'Tidak dapat kosong'
}
}
}

28
lms/nladmin-ui/src/i18n/langs/pdm/ivt/sbpointIvt/zh.js

@ -0,0 +1,28 @@
export default {
'sbpointivt': {
'title': '生箔点位库存',
'dialog': {
'vehicle_code': '载具编码',
'point_location': '位置',
'ext_code': '外部编码',
'remark': '备注',
'confirm': '确认',
'cancel': '取消',
'is_enable': '是否启用',
'yes': '是',
'no': '否',
'update_name': '修改人',
'update_time': '修改时间',
'operate': '操作'
},
'placeholder': {
'point_code': '点位编码',
'product_area': '生产区域',
'input': '输入点位编码',
'mes_used': 'MES启用'
},
'msg': {
'isNotEmpty': '不能为空'
}
}
}

20
lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/Dialog.vue

@ -9,14 +9,14 @@
@close="close"
>
<el-form ref="form" :model="form1" size="mini" label-width="110px">
<el-form-item label="母卷号" prop="container_name">
<el-input v-model="form1.container_name" clearable size="mini"/>
<el-form-item :label="$t('coolpointivt.placeholder.container_name')" prop="container_name">
<el-input v-model="form1.container_name" clearable size="mini" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="close">取消</el-button>
<el-button type="primary" @click="confirm('1')">入冷却回传</el-button>
<el-button type="text" @click="close">{{ $t('coolpointivt.dialog.cancel') }}</el-button>
<el-button type="primary" @click="confirm('1')">{{ $t('coolpointivt.dialog.callback') }}</el-button>
</div>
</el-dialog>
</template>
@ -38,6 +38,12 @@ export default {
type: Object
}
},
data() {
return {
form1: {},
dialogVisible: false
}
},
watch: {
dialogShow: {
handler(newValue, oldValue) {
@ -46,12 +52,6 @@ export default {
}
}
},
data() {
return {
form1: {},
dialogVisible: false
}
},
methods: {
handleClose(done) {
this.$confirm('确认关闭?')

6
lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/index.vue

@ -2,11 +2,11 @@
<div class="app-container">
<el-tabs type="border-card">
<el-tab-pane>
<span slot="label"><i class="el-icon-date" /> 库存查询</span>
<span slot="label"><i class="el-icon-date" />{{ $t('coolpointivt.title1') }}</span>
<Inventory />
</el-tab-pane>
<el-tab-pane label="冷却区出入记录">
<CoolRegionIO/>
<el-tab-pane :label="$t('coolpointivt.title2')">
<CoolRegionIO />
</el-tab-pane>
</el-tabs>
</div>

113
lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/inventory.vue

@ -11,27 +11,27 @@
label-width="90px"
label-suffix=":"
>
<el-form-item label="点位编码">
<el-form-item :label="$t('coolpointivt.placeholder.point_code')">
<el-input
v-model="query.point_code"
clearable
placeholder="输入点位编码"
:placeholder="$t('coolpointivt.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('coolpointivt.placeholder.container_name')">
<el-input
v-model="query.container_name"
clearable
placeholder="输入母卷号"
:placeholder="$t('coolpointivt.placeholder.container_name')"
style="width: 185px;"
class="filter-item"
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="满轴位状态">
<el-form-item :label="$t('coolpointivt.placeholder.full_point_status')">
<el-select
v-model="query.full_point_status"
clearable
@ -43,12 +43,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('coolpointivt.placeholder.empty_point_status')">
<el-select
v-model="query.empty_point_status"
clearable
@ -60,12 +61,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('coolpointivt.placeholder.product_area')">
<el-select
v-model="query.product_area"
clearable
@ -77,12 +79,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('coolpointivt.placeholder.point_location')">
<el-select
v-model="query.point_location"
clearable
@ -94,12 +97,13 @@
>
<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="库存状态">
<el-form-item :label="$t('coolpointivt.placeholder.cool_ivt_status')">
<el-select
v-model="query.cool_ivt_status"
clearable
@ -111,12 +115,13 @@
>
<el-option
v-for="item in dict.sch_cool_ivt_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="是否启用">
<el-form-item :label="$t('coolpointivt.placeholder.is_enable')">
<el-switch
v-model="query.is_used"
active-value="0"
@ -126,13 +131,13 @@
@change="hand"
/>
</el-form-item>
<el-form-item label="入库时间">
<el-form-item :label="$t('coolpointivt.placeholder.create_time')">
<el-date-picker
v-model="query.createTime"
type="daterange"
value-format="yyyy-MM-dd HH:mm:ss"
start-placeholder="开始日期"
end-placeholder="结束日期"
:start-placeholder="$t('coolpointivt.placeholder.start_time')"
:end-placeholder="$t('coolpointivt.placeholder.end_time')"
:default-time="['00:00:00', '23:59:59']"
@change="crud.toQuery"
/>
@ -157,47 +162,48 @@
<!--表单组件-->
<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;"/>
<el-form-item :label="$t('coolpointivt.placeholder.point_code')" prop="point_code">
<el-input v-model="form.point_code" style="width: 370px;" />
</el-form-item>
<el-form-item label="生产区域">
<el-form-item :label="$t('coolpointivt.placeholder.product_area')">
<el-select
v-model="form.product_area"
size="mini"
placeholder="生产区域"
:placeholder="$t('coolpointivt.placeholder.product_area')"
class="filter-item"
style="width: 370px;"
>
<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('coolpointivt.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('coolpointivt.placeholder.full_point_status')" prop="full_point_status">
<el-select
v-model="form.full_point_status"
size="mini"
placeholder="满轴位状态"
:placeholder="$t('coolpointivt.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="母卷号">
<el-input v-model="form.container_name" style="width: 370px;"/>
<el-form-item :label="$t('coolpointivt.placeholder.container_name')">
<el-input v-model="form.container_name" style="width: 370px;" />
</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
v-model="form.empty_point_status"
clearable
@ -208,15 +214,16 @@
>
<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-input v-model="form.empty_vehicle_code" style="width: 370px;"/>
<el-form-item :label="$t('coolpointivt.dialog.empty_vehicle_code')">
<el-input v-model="form.empty_vehicle_code" style="width: 370px;" />
</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
v-model="form.cool_ivt_status"
clearable
@ -227,6 +234,7 @@
>
<el-option
v-for="item in dict.sch_cool_ivt_status"
:key="item.value"
:label="item.label"
:value="item.value"
/>
@ -234,54 +242,54 @@
</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('coolpointivt.dialog.cancel') }}</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">{{ $t('coolpointivt.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="点位编码" :min-width="flexWidth('point_code',crud.data,'点位编码')" />
<el-table-column prop="cool_ivt_status" label="库存状态" min-width="100" show-overflow-tooltip>
<el-table-column prop="point_code" :label="$t('coolpointivt.placeholder.point_code')" :min-width="flexWidth('point_code',crud.data,'点位编码')" />
<el-table-column prop="cool_ivt_status" :label="$t('coolpointivt.placeholder.cool_ivt_status')" min-width="100" show-overflow-tooltip>
<template slot-scope="scope">
{{ dict.label.sch_cool_ivt_status[scope.row.cool_ivt_status] }}
</template>
</el-table-column>
<el-table-column prop="full_point_code" label="满轴位" :min-width="flexWidth('full_point_code',crud.data,'满轴位')" />
<el-table-column prop="full_point_status" label="满轴位状态" min-width="100" show-overflow-tooltip>
<el-table-column prop="full_point_code" :label="$t('coolpointivt.dialog.full_point_code')" :min-width="flexWidth('full_point_code',crud.data,'满轴位')" />
<el-table-column prop="full_point_status" :label="$t('coolpointivt.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="母卷号" :min-width="flexWidth('container_name',crud.data,'母卷号')" />
<el-table-column prop="empty_point_code" label="空轴位" :min-width="flexWidth('empty_point_code',crud.data,'空轴位')" />
<el-table-column prop="empty_point_status" label="空轴位状态" min-width="100" show-overflow-tooltip>
<el-table-column prop="container_name" :label="$t('coolpointivt.placeholder.container_name')" :min-width="flexWidth('container_name',crud.data,'母卷号')" />
<el-table-column prop="empty_point_code" :label="$t('coolpointivt.dialog.empty_point_code')" :min-width="flexWidth('empty_point_code',crud.data,'空轴位')" />
<el-table-column prop="empty_point_status" :label="$t('coolpointivt.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="空轴编号" />
<el-table-column prop="ivt_qty" label="库存数" :formatter="crud.formatNum3" />
<el-table-column prop="qty_unit_name" label="计量单位" />
<el-table-column prop="instorage_time" label="入库时间" min-width="140" show-overflow-tooltip />
<el-table-column prop="product_area" label="生产区域">
<el-table-column prop="empty_vehicle_code" :label="$t('coolpointivt.dialog.empty_vehicle_code')" />
<el-table-column prop="ivt_qty" :label="$t('coolpointivt.dialog.ivt_qty')" :formatter="crud.formatNum3" />
<el-table-column prop="qty_unit_name" :label="$t('coolpointivt.dialog.qty_unit_name')" />
<el-table-column prop="instorage_time" :label="$t('coolpointivt.dialog.instorage_time')" min-width="140" show-overflow-tooltip />
<el-table-column prop="product_area" :label="$t('coolpointivt.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('coolpointivt.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('coolpointivt.dialog.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('coolpointivt.dialog.remark')" />
<el-table-column prop="update_time" :label="$t('coolpointivt.dialog.update_time')" min-width="150" show-overflow-tooltip />
<el-table-column v-permission="[]" :label="$t('coolpointivt.dialog.operate')" width="120px" align="center" fixed="right">
<template slot-scope="scope">
<udOperation
:data="scope.row"
@ -294,7 +302,7 @@
<!--分页组件-->
<pagination />
</div>
<Dialog :dialog-show.sync="dialogShow" :open-param="openParam"/>
<Dialog :dialog-show.sync="dialogShow" :open-param="openParam" />
</div>
</template>
@ -306,6 +314,7 @@ import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import Dialog from '@/views/wms/pdm/ivt/coolpointivt/Dialog.vue'
import i18n from '@/i18n'
const defaultForm = { ivt_id: null, point_code: null, full_point_code: null, container_name: null, workorder_id: null, full_vehicle_code: null, empty_point_code: null, empty_vehicle_code: null, region_id: null, pcsn: null, ivt_qty: null, qty_unit_id: null, instorage_time: 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, full_point_status: null, cool_ivt_status: null, empty_point_status: null }
export default {
@ -315,7 +324,7 @@ export default {
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({
title: '冷却区库存',
title: i18n.t('coolpointivt.title'),
url: 'api/stIvtCoolpointivt',
idField: 'ivt_id',
sort: 'ivt_id,desc',
@ -337,17 +346,17 @@ export default {
openParam: null,
rules: {
full_point_status: [
{ required: true, message: '满轴位状态不能为空', trigger: 'blur' }
{ required: true, message: this.$t('coolpointivt.msg.isNotEmpty'), trigger: 'blur' }
],
empty_point_status: [
{ required: true, message: '空轴位状态不能为空', trigger: 'blur' }
{ required: true, message: this.$t('coolpointivt.msg.isNotEmpty'), trigger: 'blur' }
],
cool_ivt_status: [
{ required: true, message: '库存状态不能为空', trigger: 'blur' }
{ required: true, message: this.$t('coolpointivt.msg.isNotEmpty'), trigger: 'blur' }
]
},
queryTypeOptions: [
{ key: 'point_code', display_name: '点位编码' }
{ key: 'point_code', display_name: this.$t('coolpointivt.placeholder.point_code') }
]
}
},

71
lms/nladmin-ui/src/views/wms/pdm/ivt/sbpointivt/index.vue

@ -11,17 +11,17 @@
label-width="90px"
label-suffix=":"
>
<el-form-item label="点位编码">
<el-form-item :label="$t('sbpointivt.placeholder.point_code')">
<el-input
v-model="query.point_code"
clearable
placeholder="输入点位编码"
:placeholder="$t('sbpointivt.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('sbpointivt.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('sbpointivt.dialog.is_enable')">
<el-switch
v-model="query.is_used"
active-value="0"
@ -48,7 +49,7 @@
@change="hand"
/>
</el-form-item>
<el-form-item label="MES启用">
<el-form-item :label="$t('sbpointivt.placeholder.mes_used')">
<el-switch
v-model="query.mes_used"
active-value="0"
@ -66,87 +67,88 @@
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" 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;"/>
<el-form-item :label="$t('sbpointivt.placeholder.point_code')" prop="point_code">
<el-input v-model="form.point_code" style="width: 370px;" />
</el-form-item>
<el-form-item label="载具编码">
<el-input v-model="form.vehicle_code" style="width: 370px;"/>
<el-form-item :label="$t('sbpointivt.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('sbpointivt.placeholder.product_area')">
<el-select
v-model="form.product_area"
size="mini"
placeholder="生产区域"
:placeholder="$t('sbpointivt.placeholder.product_area')"
class="filter-item"
style="width: 370px;"
>
<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('sbpointivt.dialog.point_location')">
<el-select
v-model="form.point_location"
size="mini"
placeholder="位置"
:placeholder="$t('sbpointivt.dialog.point_location')"
class="filter-item"
style="width: 370px;"
>
<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="外部编码">
<el-input v-model="form.ext_code" style="width: 370px;"/>
<el-form-item :label="$t('sbpointivt.dialog.ext_code')">
<el-input v-model="form.ext_code" style="width: 370px;" />
</el-form-item>
<el-form-item label="是否启用" prop="is_used">
<el-form-item :label="$t('sbpointivt.dialog.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="MES启用" prop="is_used">
<el-form-item :label="$t('sbpointivt.placeholder.mes_used')" prop="is_used">
<el-switch v-model="form.mes_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('sbpointivt.dialog.cancel') }}</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">{{ $t('sbpointivt.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="点位编码" />
<el-table-column prop="vehicle_code" label="载具编码" />
<el-table-column prop="product_area" label="生产区域">
<el-table-column prop="point_code" :label="$t('sbpointivt.placeholder.point_code')" />
<el-table-column prop="vehicle_code" :label="$t('sbpointivt.dialog.vehicle_code')" />
<el-table-column prop="product_area" :label="$t('sbpointivt.dialog.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('sbpointivt.dialog.point_location')">
<template slot-scope="scope">
{{ dict.label.point_location[scope.row.point_location] }}
</template>
</el-table-column>
<el-table-column prop="ext_code" label="外部编码" />
<el-table-column prop="remark" label="备注" />
<el-table-column prop="is_used" label="是否启用">
<el-table-column prop="ext_code" :label="$t('sbpointivt.dialog.ext_code')" />
<el-table-column prop="remark" :label="$t('sbpointivt.dialog.remark')" />
<el-table-column prop="is_used" :label="$t('sbpointivt.dialog.is_enable')">
<template slot-scope="scope">
{{ dict.label.is_used[scope.row.is_used] }}
</template>
</el-table-column>
<el-table-column prop="mes_used" label="MES启用">
<el-table-column prop="mes_used" :label="$t('sbpointivt.dialog.mes_used')">
<template slot-scope="scope">
{{ dict.label.is_used[scope.row.mes_used] }}
</template>
</el-table-column>
<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="update_time" :label="$t('sbpointivt.dialog.update_time')" min-width="150" show-overflow-tooltip />
<el-table-column v-permission="[]" :label="$t('sbpointivt.dialog.operate')" width="120px" align="center" fixed="right">
<template slot-scope="scope">
<udOperation
:data="scope.row"
@ -169,6 +171,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 = { point_id: null, point_code: null, point_status: null, vehicle_code: null, product_area: null, point_location: null, ext_code: null, remark: null, is_used: null, create_id: null, create_name: null, create_time: null, update_optid: null, update_optname: null, update_time: null }
export default {
@ -178,7 +181,7 @@ export default {
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({
title: '生箔点位库存',
title: i18n.t('sbpointivt.title'),
url: 'api/sbpointivt',
idField: 'point_id',
sort: 'point_id,desc',
@ -198,13 +201,13 @@ export default {
},
rules: {
point_code: [
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
{ required: true, message: this.$t('sbpointivt.msg.isNotEmpty'), trigger: 'blur' }
],
point_status: [
{ required: true, message: '点位状态不能为空', trigger: 'blur' }
{ required: true, message: this.$t('sbpointivt.msg.isNotEmpty'), trigger: 'blur' }
],
is_used: [
{ required: true, message: '是否启用不能为空', trigger: 'blur' }
{ required: true, message: this.$t('sbpointivt.msg.isNotEmpty'), trigger: 'blur' }
]
}}
},

Loading…
Cancel
Save