|
|
@ -107,12 +107,12 @@ |
|
|
|
<!--<el-form-item label="子载具编码"> |
|
|
|
<el-input v-model="form.child_vehicle_code" style="width: 240px;" /> |
|
|
|
</el-form-item>--> |
|
|
|
<el-form-item v-if="false" label="来源载具"> |
|
|
|
<!-- <el-form-item v-if="false" label="来源载具"> |
|
|
|
<el-input v-model="form.source_vehicle_code" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="入库时间"> |
|
|
|
<el-date-picker |
|
|
|
v-model="form.instorage_time" |
|
|
|
v-model="form.create_time" |
|
|
|
type="datetime" |
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
style="width: 240px;" |
|
|
@ -121,7 +121,8 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="点位编码"> |
|
|
|
<el-select |
|
|
|
v-model="form.point_code" |
|
|
|
v-model="form.theLocation" |
|
|
|
clearable |
|
|
|
filterable |
|
|
|
placeholder="请选择" |
|
|
|
style="width: 240px;" |
|
|
@ -139,16 +140,16 @@ |
|
|
|
</el-select> |
|
|
|
<!-- <el-input v-model="form.point_code" style="width: 240px;" />--> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="点位名称"> |
|
|
|
<!-- <el-form-item label="点位名称"> |
|
|
|
<el-input v-model="form.point_name" style="width: 240px;" disabled /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="是否满托"> |
|
|
|
</el-form-item> --> |
|
|
|
<!-- <el-form-item label="是否满托"> |
|
|
|
<el-radio-group v-model="form.is_full" style="width: 240px"> |
|
|
|
<el-radio :label="true">是</el-radio> |
|
|
|
<el-radio :label="false">否</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="批次"> |
|
|
|
</el-form-item> --> |
|
|
|
<!-- <el-form-item label="批次"> |
|
|
|
<el-input v-model="form.pcsn" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="静置时间(分钟)"> |
|
|
@ -158,7 +159,7 @@ |
|
|
|
:max="999" |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="物料数量"> |
|
|
|
<el-input-number |
|
|
|
v-model.number="form.material_qty" |
|
|
@ -166,26 +167,26 @@ |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料重量"> |
|
|
|
<!-- <el-form-item label="物料重量"> |
|
|
|
<el-input-number |
|
|
|
v-model.number="form.material_weight" |
|
|
|
:min="0" |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="订单编码"> |
|
|
|
<el-input v-model="form.order_code" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="工单编码"> |
|
|
|
<el-input v-model="form.workorder_code" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料来源"> |
|
|
|
<!-- <el-form-item label="物料来源"> |
|
|
|
<el-radio-group v-model="choose" size="mini" style="width: 240px;"> |
|
|
|
<el-radio-button label="物料" /> |
|
|
|
<el-radio-button label="工单" /> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="物料编码"> |
|
|
|
<el-input v-model="form.material_id" clearable style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item v-if="false" label="物料名称"> |
|
|
|
<el-input v-model="form.material_id" suffix-icon="el-icon-date" clearable style="width: 370px;" @focus="getMaterial" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料名称"> |
|
|
|
<!-- <el-form-item label="物料名称"> |
|
|
|
<el-input v-model="form.material_name" clearable style="width: 240px;" @clear="clearMaterial" @focus="getMaterial" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料编码"> |
|
|
@ -196,14 +197,14 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="组盘次数"> |
|
|
|
<el-input v-model="form.group_number" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="任务编码"> |
|
|
|
</el-form-item> --> |
|
|
|
<!-- <el-form-item label="任务编码"> |
|
|
|
<el-input v-model="form.task_code" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> --> |
|
|
|
<!--<el-form-item label="车间编码"> |
|
|
|
<el-input v-model="form.workshop_code" style="width: 240px;" /> |
|
|
|
</el-form-item>--> |
|
|
|
<el-form-item label="组盘状态"> |
|
|
|
<!-- <el-form-item label="组盘状态"> |
|
|
|
<el-select |
|
|
|
v-model="form.group_status" |
|
|
|
size="mini" |
|
|
@ -219,22 +220,43 @@ |
|
|
|
:value="item.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> --> |
|
|
|
<!--<el-form-item label="是否首个流程任务"> |
|
|
|
<el-input v-model="form.is_first_flow_task" style="width: 240px;" /> |
|
|
|
</el-form-item>--> |
|
|
|
<el-form-item label="流程编码"> |
|
|
|
<el-input v-model="form.flow_code" style="width: 240px;" /> |
|
|
|
<el-form-item label="工艺编码"> |
|
|
|
<!-- <el-input v-model="form.region_code" style="width: 240px;" /> --> |
|
|
|
<el-select |
|
|
|
v-model="form.region_code" |
|
|
|
clearable |
|
|
|
filterable |
|
|
|
placeholder="请选择" |
|
|
|
style="width: 240px;" |
|
|
|
@change="setPointName" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in regionList" |
|
|
|
:key="item.region_code" |
|
|
|
:label="item.region_name" |
|
|
|
:value="item.region_code" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="流程顺序"> |
|
|
|
<el-input v-model="form.flow_num" style="width: 240px;" /> |
|
|
|
<el-form-item label="交期时间"> |
|
|
|
<el-date-picker |
|
|
|
v-model="form.due_date" |
|
|
|
type="datetime" |
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
style="width: 240px;" |
|
|
|
placeholder="选择日期时间" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="上一任务"> |
|
|
|
<!-- <el-form-item label="上一任务"> |
|
|
|
<el-input v-model="form.before_task_code" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="下一任务"> |
|
|
|
<el-input v-model="form.next_task_code" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
<label slot="label">备 注:</label> |
|
|
|
<el-input v-model.trim="form.remark" style="width: 480px;" rows="2" type="textarea" :disabled="crud.status.view > 0" /> |
|
|
@ -245,6 +267,9 @@ |
|
|
|
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog :visible.sync="dialogVisible" title="物料图片"> |
|
|
|
<img :src="imageUrl" alt="物料图片" style="max-width: 100%;"> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog |
|
|
|
title="创建任务" |
|
|
|
:visible.sync="dialogVisible" |
|
|
@ -261,6 +286,8 @@ |
|
|
|
class="filter-item" |
|
|
|
style="width: 240px;" |
|
|
|
clearable |
|
|
|
filterable |
|
|
|
:filter-method="filterPoint" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in pointList" |
|
|
@ -295,10 +322,10 @@ |
|
|
|
<el-table-column type="selection" width="55" /> |
|
|
|
<el-table-column v-if="false" prop="group_id" label="组盘编码" :min-width="flexWidth('group_id',crud.data,'组盘编码')" /> |
|
|
|
<el-table-column prop="vehicle_code" label="载具编码" width="100" /> |
|
|
|
<el-table-column prop="region_name" label="下道工序" :min-width="flexWidth('region_name',crud.data,'下道工序')" /> |
|
|
|
<el-table-column prop="region_code" label="下道工序" :min-width="flexWidth('region_name',crud.data,'下道工序')" /> |
|
|
|
<el-table-column prop="order_code" label="工单编码" :min-width="flexWidth('order_code',crud.data,'工单编码')" /> |
|
|
|
<el-table-column v-if="false" prop="material_name" label="物料名称" show-overflow-tooltip :min-width="flexWidth('material_name',crud.data,'物料数量')" /> |
|
|
|
<el-table-column prop="material_id" label="物料编码" show-overflow-tooltip :min-width="flexWidth('material_id',crud.data,'物料编码')" /> |
|
|
|
<el-table-column prop="material_id" label="物料编码" show-overflow-tooltip :min-width="flexWidth('material_id',crud.data,'物料编码')" @click="showImage" /> |
|
|
|
<el-table-column prop="material_qty" label="物料数量" show-overflow-tooltip :min-width="flexWidth('material_qty',crud.data,'物料数量')" /> |
|
|
|
<el-table-column prop="job_name" label="jobName" show-overflow-tooltip :min-width="flexWidth('job_name',crud.data,'jobName')" /> |
|
|
|
<el-table-column prop="due_date" label="交期时间" show-overflow-tooltip :min-width="flexWidth('due_date',crud.data,'交期时间')" /> |
|
|
@ -379,7 +406,13 @@ const defaultForm = { |
|
|
|
before_task_code: null, |
|
|
|
next_task_code: null, |
|
|
|
remark: null, |
|
|
|
is_delete: false |
|
|
|
is_delete: false, |
|
|
|
create_time: null, |
|
|
|
theLocation: null, |
|
|
|
due_date: null, |
|
|
|
order_code: null, |
|
|
|
region_code: null |
|
|
|
|
|
|
|
} |
|
|
|
export default { |
|
|
|
name: 'VehicleMaterialGroup', |
|
|
@ -393,7 +426,7 @@ export default { |
|
|
|
idField: 'group_id', |
|
|
|
sort: 'vehicle_code,desc', |
|
|
|
optShow: { |
|
|
|
add: true, |
|
|
|
add: false, |
|
|
|
edit: true, |
|
|
|
del: true, |
|
|
|
download: false, |
|
|
|