add erp对接
This commit is contained in:
@@ -22,7 +22,17 @@
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission" />
|
||||
<crudOperation :permission="permission">
|
||||
<el-button
|
||||
slot="right"
|
||||
type="primary"
|
||||
class="filter-item"
|
||||
icon="el-icon-download"
|
||||
@click="synchronize()"
|
||||
>
|
||||
同步
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表单组件-->
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
@@ -161,7 +171,7 @@
|
||||
>
|
||||
<el-table-column prop="material_code" label="物料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')" />
|
||||
<el-table-column prop="order_code" label="订单编码" :min-width="flexWidth('order_code',crud.data,'订单编码')" />
|
||||
<el-table-column prop="product_grade" label="部位" :min-width="flexWidth('weight',crud.data,'部位')" />
|
||||
<el-table-column prop="product_grade" label="部位" :min-width="flexWidth('product_grade',crud.data,'部位')" />
|
||||
<el-table-column prop="furnace" label="炉型" :min-width="flexWidth('furnace',crud.data,'炉型')" />
|
||||
<el-table-column prop="brick_type" label="砖型" :min-width="flexWidth('brick_type',crud.data,'砖型')" />
|
||||
<el-table-column prop="material_brick_type" label="类别" :min-width="flexWidth('material_brick_type',crud.data,'类别')" />
|
||||
|
||||
@@ -133,6 +133,19 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="计划生产日期" prop="plan_date">
|
||||
<el-date-picker
|
||||
v-model="form.plan_date"
|
||||
style="width: 300px"
|
||||
value-format="yyyy-MM-dd"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否加急" prop="is_urgent">
|
||||
@@ -295,7 +308,8 @@ const defaultForm = {
|
||||
ext_code: null,
|
||||
qualified_qty: '0',
|
||||
unqualified_qty: '0',
|
||||
region_code: null
|
||||
region_code: null,
|
||||
plan_date: null
|
||||
}
|
||||
export default {
|
||||
name: 'HLWorkorder',
|
||||
|
||||
@@ -129,14 +129,27 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="计划数量" prop="plan_qty">
|
||||
<el-input v-model="form.plan_qty" :disabled="crud.status.edit" type="number" style="width: 300px"><i slot="suffix" style="font-style:normal;margin-right: 10px;">块</i></el-input>
|
||||
<el-input v-model="form.plan_qty" :disabled="crud.status.edit" type="number" style="width: 300px"><i
|
||||
slot="suffix"
|
||||
style="font-style:normal;margin-right: 10px;"
|
||||
>块</i></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item v-show="typeof (form.region_code) === 'string' && form.region_code === 'FJ'" label="木托盘类型" prop="vehicle_type">
|
||||
<el-select v-model="form.vehicle_type" :disabled="crud.status.edit" style="width: 300px" filterable placeholder="请选择">
|
||||
<el-form-item
|
||||
v-show="typeof (form.region_code) === 'string' && form.region_code === 'FJ'"
|
||||
label="木托盘类型"
|
||||
prop="vehicle_type"
|
||||
>
|
||||
<el-select
|
||||
v-model="form.vehicle_type"
|
||||
:disabled="crud.status.edit"
|
||||
style="width: 300px"
|
||||
filterable
|
||||
placeholder="请选择"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.wood_vehicle_type"
|
||||
:key="item.id"
|
||||
@@ -147,6 +160,19 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="计划生产日期" prop="plan_date">
|
||||
<el-date-picker
|
||||
v-model="form.plan_date"
|
||||
style="width: 300px"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否加急" prop="is_urgent">
|
||||
@@ -180,19 +206,35 @@
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column v-if="false" prop="workorder_id" label="生产班次工单标识" />
|
||||
<el-table-column prop="workorder_code" label="工单编号" :min-width="flexWidth('workorder_code',crud.data,'工单编号')">
|
||||
<el-table-column
|
||||
prop="workorder_code"
|
||||
label="工单编号"
|
||||
:min-width="flexWidth('workorder_code',crud.data,'工单编号')"
|
||||
>
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-link type="warning" @click="toView(scope.row)">{{ scope.row.produceorder_code }}</el-link>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column prop="order_status" label="工单状态" :min-width="flexWidth('order_status',crud.data,'工单状态')">
|
||||
<el-table-column
|
||||
prop="order_status"
|
||||
label="工单状态"
|
||||
:min-width="flexWidth('order_status',crud.data,'工单状态')"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.pdm_workorder_status[scope.row.order_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="device_name" label="设备" :min-width="flexWidth('device_name',crud.data,'设备')" />
|
||||
<el-table-column prop="material_code" label="物料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')" />
|
||||
<el-table-column prop="vehicle_type" label="载具类型" :min-width="flexWidth('vehicle_type',crud.data,'载具类型')">
|
||||
<el-table-column
|
||||
prop="material_code"
|
||||
label="物料编码"
|
||||
:min-width="flexWidth('material_code',crud.data,'物料编码')"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="vehicle_type"
|
||||
label="载具类型"
|
||||
:min-width="flexWidth('vehicle_type',crud.data,'载具类型')"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.vehicle_type[scope.row.vehicle_type] }}
|
||||
</template>
|
||||
@@ -208,15 +250,43 @@
|
||||
{{ dict.label.true_or_false[scope.row.is_pri] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="realproducestart_date" label="实际开始时间" :min-width="flexWidth('realproducestart_date',crud.data,'实际开始时间')" />
|
||||
<el-table-column prop="realproduceend_date" label="实际结束时间" :min-width="flexWidth('realproduceend_date',crud.data,'实际结束时间')" />
|
||||
<el-table-column
|
||||
prop="realproducestart_date"
|
||||
label="实际开始时间"
|
||||
:min-width="flexWidth('realproducestart_date',crud.data,'实际开始时间')"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="realproduceend_date"
|
||||
label="实际结束时间"
|
||||
:min-width="flexWidth('realproduceend_date',crud.data,'实际结束时间')"
|
||||
/>
|
||||
<el-table-column prop="real_qty" label="实际数量" :min-width="flexWidth('real_qty',crud.data,'实际数量')" />
|
||||
<el-table-column prop="qualified_qty" label="合格数量" :min-width="flexWidth('qualified_qty',crud.data,'合格数量')" />
|
||||
<el-table-column prop="unqualified_qty" label="不合格数量" :min-width="flexWidth('unqualified_qty',crud.data,'不合格数量')" />
|
||||
<el-table-column
|
||||
prop="qualified_qty"
|
||||
label="合格数量"
|
||||
:min-width="flexWidth('qualified_qty',crud.data,'合格数量')"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="unqualified_qty"
|
||||
label="不合格数量"
|
||||
:min-width="flexWidth('unqualified_qty',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="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 v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<udOperation
|
||||
@@ -230,7 +300,12 @@
|
||||
<pagination />
|
||||
</div>
|
||||
<MaterDtl :dialog-show.sync="materialShow" :is-single="true" @setMaterValue="setMaterValue" />
|
||||
<DeviceDialog :dialog-show.sync="deviceShow" :is-single="true" :region-str="'(\'YZ\')'" @tableChanged="tableChanged" />
|
||||
<DeviceDialog
|
||||
:dialog-show.sync="deviceShow"
|
||||
:is-single="true"
|
||||
:region-str="'(\'YZ\')'"
|
||||
@tableChanged="tableChanged"
|
||||
/>
|
||||
<ViewDialog ref="child3" />
|
||||
<!--表单组件-->
|
||||
<el-dialog
|
||||
@@ -338,7 +413,8 @@ const defaultForm = {
|
||||
ext_code: null,
|
||||
qualified_qty: '0',
|
||||
unqualified_qty: '0',
|
||||
region_code: null
|
||||
region_code: null,
|
||||
plan_date: null
|
||||
}
|
||||
export default {
|
||||
name: 'Produceshiftorder',
|
||||
@@ -391,6 +467,9 @@ export default {
|
||||
],
|
||||
is_pri: [
|
||||
{ required: true, message: '是否优先包装不能为空', trigger: 'blur' }
|
||||
],
|
||||
plan_date: [
|
||||
{ required: true, message: '计划生产日期不能为空', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<el-input
|
||||
v-model="query.name"
|
||||
clearable
|
||||
style="width: 200px;"
|
||||
placeholder="物料编码"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
@@ -27,6 +28,7 @@
|
||||
<el-input
|
||||
v-model="query.order_code"
|
||||
clearable
|
||||
style="width: 200px;"
|
||||
placeholder="订单编码"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
@@ -35,6 +37,7 @@
|
||||
<el-input
|
||||
v-model="query.product_grade"
|
||||
clearable
|
||||
style="width: 200px;"
|
||||
placeholder="部位"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
@@ -64,7 +67,7 @@
|
||||
<el-table-column prop="material_code" label="物料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')" />
|
||||
<el-table-column prop="order_code" label="订单编码" :min-width="flexWidth('order_code',crud.data,'订单编码')" />
|
||||
<el-table-column prop="product_grade" label="部位" :min-width="flexWidth('product_grade',crud.data,'部位')" />
|
||||
<el-table-column prop="brick" label="砖型" :min-width="flexWidth('brick',crud.data,'砖型')" />
|
||||
<el-table-column prop="brick_type" label="砖型" :min-width="flexWidth('brick_type',crud.data,'砖型')" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
|
||||
Reference in New Issue
Block a user