|
|
@ -7,112 +7,115 @@ |
|
|
|
<!--表单组件--> |
|
|
|
<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-form-item :label="$t('stockingivt.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('stockingivt.placeholder.point_name')"> |
|
|
|
<el-input v-model="form.point_name" style="width: 370px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="托盘号"> |
|
|
|
<el-form-item :label="$t('stockingivt.placeholder.vehicle_code')"> |
|
|
|
<el-input v-model="form.vehicle_code" style="width: 370px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="区域"> |
|
|
|
<el-form-item :label="$t('stockingivt.placeholder.product_area')"> |
|
|
|
<el-input v-model="form.product_area" style="width: 370px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="点位类型"> |
|
|
|
<el-form-item :label="$t('stockingivt.placeholder.point_type')"> |
|
|
|
<el-select |
|
|
|
v-model="form.point_type" |
|
|
|
size="mini" |
|
|
|
placeholder="点位类型" |
|
|
|
:placeholder="$t('stockingivt.placeholder.point_type')" |
|
|
|
class="filter-item" |
|
|
|
style="width: 370px;" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in dict.STOCK_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('stockingivt.placeholder.point_status')"> |
|
|
|
<el-select |
|
|
|
v-model="form.ivt_status" |
|
|
|
size="mini" |
|
|
|
placeholder="点位状态" |
|
|
|
:placeholder="$t('stockingivt.placeholder.point_status')" |
|
|
|
class="filter-item" |
|
|
|
style="width: 370px;" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in dict.STOCK_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('stockingivt.placeholder.point_location')"> |
|
|
|
<el-select |
|
|
|
v-model="form.point_location" |
|
|
|
size="mini" |
|
|
|
placeholder="位置" |
|
|
|
:placeholder="$t('stockingivt.placeholder.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="顺序号" prop="sort_seq"> |
|
|
|
<el-form-item :label="$t('stockingivt.dialog.sort_seq')" prop="sort_seq"> |
|
|
|
<el-input v-model="form.sort_seq" style="width: 370px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="是否启用" prop="is_used"> |
|
|
|
<el-form-item :label="$t('stockingivt.dialog.is_enable')" prop="is_used"> |
|
|
|
<el-switch v-model="form.is_used" active-value="1" inactive-value="0" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="备注"> |
|
|
|
<el-form-item :label="$t('stockingivt.dialog.remark')"> |
|
|
|
<el-input v-model="form.remark" style="width: 370px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="规划"> |
|
|
|
<el-form-item :label="$t('stockingivt.placeholder.plan')"> |
|
|
|
<el-input v-model="form.plan" 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('stockingivt.dialog.cancel') }}</el-button> |
|
|
|
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">{{ $t('stockingivt.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="point_name" label="点位名称" :min-width="flexWidth('point_name',crud.data,'点位名称')" /> |
|
|
|
<el-table-column prop="vehicle_code" label="托盘号" :min-width="flexWidth('vehicle_code',crud.data,'托盘号')" /> |
|
|
|
<el-table-column prop="product_area" label="区域" :min-width="flexWidth('product_area',crud.data,'区域')" /> |
|
|
|
<el-table-column prop="point_type" label="点位类型" :min-width="flexWidth('point_type',crud.data,'点位类型')"> |
|
|
|
<el-table-column prop="point_code" :label="$t('stockingivt.placeholder.point_code')" :min-width="flexWidth('point_code',crud.data,'点位编码')" /> |
|
|
|
<el-table-column prop="point_name" :label="$t('stockingivt.placeholder.point_name')" :min-width="flexWidth('point_name',crud.data,'点位名称')" /> |
|
|
|
<el-table-column prop="vehicle_code" :label="$t('stockingivt.placeholder.vehicle_code')" :min-width="flexWidth('vehicle_code',crud.data,'托盘号')" /> |
|
|
|
<el-table-column prop="product_area" :label="$t('stockingivt.placeholder.product_area')" :min-width="flexWidth('product_area',crud.data,'区域')" /> |
|
|
|
<el-table-column prop="point_type" :label="$t('stockingivt.placeholder.point_type')" :min-width="flexWidth('point_type',crud.data,'点位类型')"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ dict.label.STOCK_POINT_TYPE[scope.row.point_type] }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="ivt_status" label="点位状态" :min-width="flexWidth('ivt_status',crud.data,'点位状态')"> |
|
|
|
<el-table-column prop="ivt_status" :label="$t('stockingivt.placeholder.point_status')" :min-width="flexWidth('ivt_status',crud.data,'点位状态')"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ dict.label.STOCK_POINT_STATUS[scope.row.ivt_status] }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="point_location" label="位置" :min-width="flexWidth('point_location',crud.data,'位置')"> |
|
|
|
<el-table-column prop="point_location" :label="$t('stockingivt.placeholder.point_location')" :min-width="flexWidth('point_location',crud.data,'位置')"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ dict.label.point_location[scope.row.point_location] }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="sort_seq" label="顺序号" :min-width="flexWidth('sort_seq',crud.data,'顺序号')" /> |
|
|
|
<el-table-column prop="is_used" label="是否启用" :min-width="flexWidth('is_used',crud.data,'是否启用')" /> |
|
|
|
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" /> |
|
|
|
<el-table-column prop="create_name" label="创建人" :min-width="flexWidth('create_name',crud.data,'创建人')" /> |
|
|
|
<el-table-column prop="create_time" label="创建时间" :min-width="flexWidth('create_time',crud.data,'创建时间')" /> |
|
|
|
<el-table-column prop="update_optname" label="修改人" :min-width="flexWidth('update_optname',crud.data,'修改人')" /> |
|
|
|
<el-table-column prop="update_time" label="修改时间" :min-width="flexWidth('update_time',crud.data,'修改时间')" /> |
|
|
|
<el-table-column prop="plan" label="规划" :min-width="flexWidth('plan',crud.data,'规划')" /> |
|
|
|
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right"> |
|
|
|
<el-table-column prop="sort_seq" :label="$t('stockingivt.dialog.sort_seq')" :min-width="flexWidth('sort_seq',crud.data,'顺序号')" /> |
|
|
|
<el-table-column prop="is_used" :label="$t('stockingivt.dialog.is_enable')" :min-width="flexWidth('is_used',crud.data,'是否启用')" /> |
|
|
|
<el-table-column prop="remark" :label="$t('stockingivt.dialog.remark')" :min-width="flexWidth('remark',crud.data,'备注')" /> |
|
|
|
<el-table-column prop="create_name" :label="$t('stockingivt.dialog.create_name')" :min-width="flexWidth('create_name',crud.data,'创建人')" /> |
|
|
|
<el-table-column prop="create_time" :label="$t('stockingivt.dialog.create_time')" :min-width="flexWidth('create_time',crud.data,'创建时间')" /> |
|
|
|
<el-table-column prop="update_optname" :label="$t('stockingivt.dialog.update_name')" :min-width="flexWidth('update_optname',crud.data,'修改人')" /> |
|
|
|
<el-table-column prop="update_time" :label="$t('stockingivt.dialog.update_time')" :min-width="flexWidth('update_time',crud.data,'修改时间')" /> |
|
|
|
<el-table-column prop="plan" :label="$t('stockingivt.placeholder.plan')" :min-width="flexWidth('plan',crud.data,'规划')" /> |
|
|
|
<el-table-column v-permission="[]" :label="$t('stockingivt.dialog.operate')" width="120px" align="center" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<udOperation |
|
|
|
:data="scope.row" |
|
|
@ -131,11 +134,10 @@ |
|
|
|
<script> |
|
|
|
import crudBstIvtStockingivt from './bstIvtStockingivt' |
|
|
|
import CRUD, { crud, form, header, presenter } from '@crud/crud' |
|
|
|
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, |
|
|
@ -159,11 +161,11 @@ const defaultForm = { |
|
|
|
export default { |
|
|
|
name: 'BstIvtStockingivt', |
|
|
|
dicts: ['STOCK_POINT_STATUS', 'STOCK_POINT_TYPE', 'point_location'], |
|
|
|
components: { pagination, crudOperation, rrOperation, udOperation }, |
|
|
|
components: { pagination, crudOperation, udOperation }, |
|
|
|
mixins: [presenter(), header(), form(defaultForm), crud()], |
|
|
|
cruds() { |
|
|
|
return CRUD({ |
|
|
|
title: '备货区点位库存表', |
|
|
|
title: i18n.t('stockingivt.title'), |
|
|
|
url: 'api/bstIvtStockingivt', |
|
|
|
idField: 'ivt_id', |
|
|
|
sort: 'ivt_id,desc', |
|
|
@ -183,25 +185,25 @@ export default { |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
ivt_id: [ |
|
|
|
{ required: true, message: '库存记录标识不能为空', trigger: 'blur' } |
|
|
|
{ required: true, message: this.$t('stockingivt.msg.isNotEmpty'), trigger: 'blur' } |
|
|
|
], |
|
|
|
point_code: [ |
|
|
|
{ required: true, message: '点位编码不能为空', trigger: 'blur' } |
|
|
|
{ required: true, message: this.$t('stockingivt.msg.isNotEmpty'), trigger: 'blur' } |
|
|
|
], |
|
|
|
sort_seq: [ |
|
|
|
{ required: true, message: '顺序号不能为空', trigger: 'blur' } |
|
|
|
{ required: true, message: this.$t('stockingivt.msg.isNotEmpty'), trigger: 'blur' } |
|
|
|
], |
|
|
|
is_used: [ |
|
|
|
{ required: true, message: '是否启用不能为空', trigger: 'blur' } |
|
|
|
{ required: true, message: this.$t('stockingivt.msg.isNotEmpty'), trigger: 'blur' } |
|
|
|
], |
|
|
|
create_id: [ |
|
|
|
{ required: true, message: '创建人不能为空', trigger: 'blur' } |
|
|
|
{ required: true, message: this.$t('stockingivt.msg.isNotEmpty'), trigger: 'blur' } |
|
|
|
], |
|
|
|
create_name: [ |
|
|
|
{ required: true, message: '创建人不能为空', trigger: 'blur' } |
|
|
|
{ required: true, message: this.$t('stockingivt.msg.isNotEmpty'), trigger: 'blur' } |
|
|
|
], |
|
|
|
create_time: [ |
|
|
|
{ required: true, message: '创建时间不能为空', trigger: 'blur' } |
|
|
|
{ required: true, message: this.$t('stockingivt.msg.isNotEmpty'), trigger: 'blur' } |
|
|
|
] |
|
|
|
}} |
|
|
|
}, |
|
|
|