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