|
|
@ -110,7 +110,7 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="物料" prop="material_code"> |
|
|
|
<el-form-item label="物料编码" prop="material_code"> |
|
|
|
<el-input |
|
|
|
v-model="form.material_code" |
|
|
|
style="width: 300px" |
|
|
@ -130,13 +130,13 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="生产设备" prop="device_code"> |
|
|
|
<el-form-item label="生产设备" prop="device_name"> |
|
|
|
<el-input |
|
|
|
v-model="form.device_code" |
|
|
|
v-model="form.device_name" |
|
|
|
style="width: 300px" |
|
|
|
clearable |
|
|
|
@focus="deviceShow=true" |
|
|
|
@clear="form.device_code=''; form.device_id=''" |
|
|
|
@clear="form.device_code=''; form.device_id=''; form.device_name=''" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -198,10 +198,14 @@ |
|
|
|
{{ dict.label.pdm_workorder_status[scope.row.order_status] }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="planproducestart_date" label="计划开始时间" min-width="150" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="planproduceend_date" label="计划结束时间" min-width="150" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="device_name" label="设备" width="100" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="material_name" label="物料" width="100" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="material_code" label="物料编码" width="260" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="vehicle_type" label="载具类型" min-width="120" show-overflow-tooltip> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ dict.label.vehicle_type[scope.row.vehicle_type] }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="create_name" label="创建人" /> |
|
|
|
<el-table-column prop="plan_qty" label="计划数量" /> |
|
|
|
<el-table-column prop="is_urgent" label="是否加急"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -218,12 +222,6 @@ |
|
|
|
<el-table-column prop="real_qty" label="实际数量" /> |
|
|
|
<el-table-column prop="qualified_qty" label="合格数量" /> |
|
|
|
<el-table-column prop="unqualified_qty" label="不合格数量" width="100" /> |
|
|
|
<!-- <el-table-column prop="vehicle_type" label="载具类型" min-width="120" show-overflow-tooltip>--> |
|
|
|
<!-- <template slot-scope="scope">--> |
|
|
|
<!-- {{ dict.label.vehicle_type[scope.row.vehicle_type] }}--> |
|
|
|
<!-- </template>--> |
|
|
|
<!-- </el-table-column>--> |
|
|
|
<el-table-column prop="create_name" label="创建人" /> |
|
|
|
<el-table-column prop="create_time" label="创建时间" width="150" /> |
|
|
|
<el-table-column prop="update_optname" label="修改人" /> |
|
|
|
<el-table-column prop="update_time" label="修改时间" width="150" /> |
|
|
@ -268,7 +266,7 @@ const defaultForm = { |
|
|
|
material_id: null, |
|
|
|
material_code: null, |
|
|
|
material_weight: null, |
|
|
|
vehicle_type: null, |
|
|
|
vehicle_type: '3', |
|
|
|
planproducestart_date: null, |
|
|
|
planproduceend_date: null, |
|
|
|
realproducestart_date: null, |
|
|
@ -288,6 +286,7 @@ const defaultForm = { |
|
|
|
material_name: null, |
|
|
|
device_id: null, |
|
|
|
device_code: null, |
|
|
|
device_name: null, |
|
|
|
is_canupdate_update: '1', |
|
|
|
material_spec: null, |
|
|
|
sale_id: null, |
|
|
@ -332,44 +331,17 @@ export default { |
|
|
|
order_status: ['-1'], |
|
|
|
permission: {}, |
|
|
|
rules: { |
|
|
|
produceorder_code: [ |
|
|
|
{ required: true, message: '生产班次工单编号不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
producedeviceorder_code: [ |
|
|
|
{ required: true, message: '机台工单号不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
produce_date: [ |
|
|
|
{ required: true, message: '生产日期不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
plan_qty: [ |
|
|
|
{ required: true, message: '计划数量不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
material_code: [ |
|
|
|
{ required: true, message: '物料编码不能为空', trigger: 'change' } |
|
|
|
], |
|
|
|
planproducestart_date: [ |
|
|
|
{ required: true, message: '计划生产开始时间不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
planproduceend_date: [ |
|
|
|
{ required: true, message: '计划生产结束时间不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
order_status: [ |
|
|
|
{ required: true, message: '工单状态不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
is_needmove: [ |
|
|
|
{ required: true, message: '是否搬运不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
order_type_scode: [ |
|
|
|
{ required: true, message: '工单类型不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
is_canupdate_update: [ |
|
|
|
{ required: true, message: '不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
vehicle_type: [ |
|
|
|
{ required: true, message: '木托盘类型不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
device_code: [ |
|
|
|
{ required: true, message: '生产设备不能为空', trigger: 'blur' } |
|
|
|
device_name: [ |
|
|
|
{ required: true, message: '生产设备不能为空', trigger: 'change' } |
|
|
|
], |
|
|
|
is_urgent: [ |
|
|
|
{ required: true, message: '是否加急不能为空', trigger: 'blur' } |
|
|
@ -426,6 +398,7 @@ export default { |
|
|
|
tableChanged(row) { |
|
|
|
this.form.device_code = row.device_code |
|
|
|
this.form.device_id = row.device_id |
|
|
|
this.form.device_name = row.device_name |
|
|
|
}, |
|
|
|
// 下发 |
|
|
|
submits(row) { |
|
|
|