|
|
@ -10,27 +10,36 @@ |
|
|
|
label-width="90px" |
|
|
|
label-suffix=":" |
|
|
|
> |
|
|
|
<el-form-item label="所属车间"> |
|
|
|
<el-select |
|
|
|
v-model="query.workshop_code" |
|
|
|
<!-- <el-form-item label="所属车间">--> |
|
|
|
<!-- <el-select--> |
|
|
|
<!-- v-model="query.workshop_code"--> |
|
|
|
<!-- clearable--> |
|
|
|
<!-- size="mini"--> |
|
|
|
<!-- placeholder="所属车间"--> |
|
|
|
<!-- class="filter-item"--> |
|
|
|
<!-- >--> |
|
|
|
<!-- <el-option--> |
|
|
|
<!-- v-for="item in workShopList"--> |
|
|
|
<!-- :label="item.workshop_name"--> |
|
|
|
<!-- :value="item.workshop_code"--> |
|
|
|
<!-- />--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<el-form-item label="模糊搜索"> |
|
|
|
<el-input |
|
|
|
v-model="query.blurry" |
|
|
|
clearable |
|
|
|
size="mini" |
|
|
|
placeholder="所属车间" |
|
|
|
class="filter-item" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in workShopList" |
|
|
|
:label="item.workshop_name" |
|
|
|
:value="item.workshop_code" |
|
|
|
placeholder="编码名称" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="模糊搜索"> |
|
|
|
<el-form-item label="物料规格"> |
|
|
|
<el-input |
|
|
|
v-model="query.blurry" |
|
|
|
v-model="query.material_spec" |
|
|
|
clearable |
|
|
|
size="mini" |
|
|
|
placeholder="编码名称" |
|
|
|
placeholder="物料规格" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
@ -51,28 +60,101 @@ |
|
|
|
</el-button> |
|
|
|
</crudOperation> |
|
|
|
<!--表单组件--> |
|
|
|
<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-dialog |
|
|
|
:close-on-click-modal="false" |
|
|
|
:before-close="crud.cancelCU" |
|
|
|
:visible.sync="crud.status.cu > 0" |
|
|
|
:title="crud.status.title" |
|
|
|
width="820px"> |
|
|
|
<el-form |
|
|
|
ref="form" |
|
|
|
:inline="true" |
|
|
|
style="border: 1px solid #cfe0df;margin-top: 10px;padding-top: 10px;" |
|
|
|
:model="form" |
|
|
|
:rules="rules" |
|
|
|
size="mini" |
|
|
|
label-width="125px" |
|
|
|
label-suffix=":"> |
|
|
|
<el-form-item label="物料编码"> |
|
|
|
<el-input v-model="form.material_code" style="width: 370px;" /> |
|
|
|
<el-input disabled v-model="form.material_code" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料名称 "> |
|
|
|
<el-input v-model="form.material_name" style="width: 370px;" /> |
|
|
|
<el-input disabled v-model="form.material_name" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料规格"> |
|
|
|
<el-input v-model="form.material_spec" style="width: 370px;" /> |
|
|
|
<el-input disabled v-model="form.material_spec" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料分类标识"> |
|
|
|
<el-input v-model="form.class_id" style="width: 370px;" /> |
|
|
|
<el-form-item label="物料型号"> |
|
|
|
<el-input disabled v-model="form.material_model" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="A长边"> |
|
|
|
<el-input-number |
|
|
|
v-model.number="form.a_long_side" |
|
|
|
:min="0" |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="B短边"> |
|
|
|
<el-input-number |
|
|
|
v-model.number="form.b_short_side" |
|
|
|
:min="0" |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="H高度"> |
|
|
|
<el-input-number |
|
|
|
v-model.number="form.h_height" |
|
|
|
:min="0" |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="W厚度"> |
|
|
|
<el-input-number |
|
|
|
v-model.number="form.w_thickness" |
|
|
|
:min="0" |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="静置时间(分钟)"> |
|
|
|
<el-input v-model="form.standing_time" style="width: 370px;" /> |
|
|
|
<el-input-number |
|
|
|
v-model.number="form.standing_time" |
|
|
|
:min="0" |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="冷却时间(分钟)"> |
|
|
|
<el-input-number |
|
|
|
v-model.number="form.cooling_time" |
|
|
|
:min="0" |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="木托盘规格"> |
|
|
|
<el-tooltip class="item" effect="dark" content="例如:950*1000" placement="top"> |
|
|
|
<el-select |
|
|
|
v-model="form.pack_palletspec" |
|
|
|
clearable |
|
|
|
size="mini" |
|
|
|
placeholder="请选择" |
|
|
|
class="filter-item" |
|
|
|
style="width: 240px;" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in dict.vehicle_type" |
|
|
|
:label="item.label" |
|
|
|
:value="item.label" |
|
|
|
:disabled="item.value === 'LZ' || item.value === 'GTP'" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-tooltip> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="车间编码"> |
|
|
|
<el-input v-model="form.workshop_code" style="width: 370px;" /> |
|
|
|
<el-form-item label="包装方式"> |
|
|
|
<el-tooltip class="item" effect="dark" content="例如:3*6*6" placement="top"> |
|
|
|
<el-input v-model="form.pack_method" style="width: 240px;" /> |
|
|
|
</el-tooltip> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="备注"> |
|
|
|
<el-input v-model="form.remark" style="width: 370px;" /> |
|
|
|
<el-input v-model="form.remark" type="textarea" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
@ -88,10 +170,10 @@ |
|
|
|
<el-table-column prop="raw_material_code" label="泥料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')" /> |
|
|
|
<el-table-column prop="material_name" label="物料名称 " :min-width="flexWidth('material_name',crud.data,'物料名称 ')" /> |
|
|
|
<el-table-column prop="material_spec" label="物料规格" :min-width="flexWidth('material_spec',crud.data,'物料规格')" /> |
|
|
|
<el-table-column prop="class_id" label="物料分类标识" :min-width="flexWidth('class_id',crud.data,'物料分类标识')" /> |
|
|
|
<el-table-column prop="material_model" label="物料型号" :min-width="flexWidth('material_model',crud.data,'物料分类标识')" /> |
|
|
|
<el-table-column prop="standing_time" label="静置时间(分钟)" :min-width="flexWidth('standing_time',crud.data,'静置时间(分钟)')" /> |
|
|
|
<el-table-column prop="cooling_time" label="冷却时间(分钟)" :min-width="flexWidth('cooling_time',crud.data,'静置时间(分钟)')" /> |
|
|
|
<el-table-column prop="workshop_code" label="车间编码" :min-width="flexWidth('workshop_code',crud.data,'车间编码')" /> |
|
|
|
<!-- <el-table-column prop="workshop_code" label="车间编码" :min-width="flexWidth('workshop_code',crud.data,'车间编码')" />--> |
|
|
|
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" /> |
|
|
|
<el-table-column prop="is_used" label="是否启用" :min-width="flexWidth('is_used',crud.data,'是否启用')"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -104,9 +186,10 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<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="create_time" label="同步时间" :min-width="flexWidth('create_time',crud.data,'创建时间')" /> |
|
|
|
<el-table-column prop="update_name" label="修改人" :min-width="flexWidth('update_name',crud.data,'修改人')" /> |
|
|
|
<el-table-column prop="update_time" label="修改时间" :min-width="flexWidth('update_time',crud.data,'修改时间')" /> |
|
|
|
<el-table-column prop="ext_time" label="MES时间" :min-width="flexWidth('ext_time',crud.data,'修改时间')" /> |
|
|
|
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<udOperation |
|
|
@ -139,16 +222,24 @@ const defaultForm = { |
|
|
|
raw_material_code: null, |
|
|
|
material_name: null, |
|
|
|
material_spec: null, |
|
|
|
material_model: null, |
|
|
|
a_long_side: null, |
|
|
|
b_short_side: null, |
|
|
|
h_height: null, |
|
|
|
w_thickness: null, |
|
|
|
class_id: null, |
|
|
|
standing_time: null, |
|
|
|
cooling_time: null, |
|
|
|
standing_time: 0, |
|
|
|
cooling_time: 0, |
|
|
|
workshop_code: null, |
|
|
|
pack_palletspec: null, |
|
|
|
pack_method: null, |
|
|
|
remark: null, |
|
|
|
is_used: true, |
|
|
|
is_delete: false |
|
|
|
} |
|
|
|
export default { |
|
|
|
name: 'MdBaseMaterial', |
|
|
|
dicts: ['vehicle_type'], |
|
|
|
components: { pagination, crudOperation, rrOperation, udOperation, Treeselect }, |
|
|
|
mixins: [presenter(), header(), form(defaultForm), crud()], |
|
|
|
cruds() { |
|
|
|