|
|
@ -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' } |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|