|
@@ -2,33 +2,51 @@
|
|
|
<div class="pane-box">
|
|
<div class="pane-box">
|
|
|
<HeaderTitle title="生产信息"> </HeaderTitle>
|
|
<HeaderTitle title="生产信息"> </HeaderTitle>
|
|
|
<el-descriptions :column="5" border>
|
|
<el-descriptions :column="5" border>
|
|
|
- <el-descriptions-item label="计划编号">计划编号</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="物料名称">物料名称</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="物料编码">物料编码</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="牌号">牌号</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="型号">型号</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="生产版本">生产版本</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="产线">产线</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="工艺路线名称"
|
|
|
|
|
- >工艺路线名称</el-descriptions-item
|
|
|
|
|
- >
|
|
|
|
|
- <el-descriptions-item label="工艺路线版本"
|
|
|
|
|
- >工艺路线版本</el-descriptions-item
|
|
|
|
|
- >
|
|
|
|
|
- <el-descriptions-item label="生产重量">生产重量</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="要求交付日期"
|
|
|
|
|
- >要求交付日期</el-descriptions-item
|
|
|
|
|
- >
|
|
|
|
|
- <el-descriptions-item label="创建时间">创建时间</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="计划备注" :span="2"
|
|
|
|
|
- >计划备注</el-descriptions-item
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-descriptions-item label="计划编号">{{
|
|
|
|
|
+ productionPlan.code
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="物料名称">{{
|
|
|
|
|
+ productionPlan.materialName
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="物料编码">{{
|
|
|
|
|
+ productionPlan.materialCode
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="牌号">{{
|
|
|
|
|
+ productionPlan.brandNo
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="型号">{{
|
|
|
|
|
+ productionPlan.model
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="生产版本">{{
|
|
|
|
|
+ productionPlan.produceVersionName
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="产线">{{
|
|
|
|
|
+ productionPlan.code
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="工艺路线名称">{{
|
|
|
|
|
+ productionPlan.routingName
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="工艺路线版本">{{
|
|
|
|
|
+ productionPlan.routingVersion
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="生产重量">{{
|
|
|
|
|
+ productionPlan.num
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="要求交付日期">{{
|
|
|
|
|
+ productionPlan.deliveryTime
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="创建时间">{{
|
|
|
|
|
+ productionPlan.createTime
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="计划备注" :span="2">{{
|
|
|
|
|
+ productionPlan.notes
|
|
|
|
|
+ }}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
<div class="progress-wrapper">
|
|
<div class="progress-wrapper">
|
|
|
<div class="progress-item">
|
|
<div class="progress-item">
|
|
|
- <div class="label"> 以生产重量 </div>
|
|
|
|
|
|
|
+ <div class="label"> 已生产重量 </div>
|
|
|
<el-progress
|
|
<el-progress
|
|
|
- :percentage="20"
|
|
|
|
|
|
|
+ :percentage="(infoData.completeWeightRatio || 0) * 100"
|
|
|
color="rgba(0, 191, 191, 1)"
|
|
color="rgba(0, 191, 191, 1)"
|
|
|
:text-inside="true"
|
|
:text-inside="true"
|
|
|
:stroke-width="16"
|
|
:stroke-width="16"
|
|
@@ -37,7 +55,7 @@
|
|
|
<div class="progress-item">
|
|
<div class="progress-item">
|
|
|
<div class="label"> 已完成工单 </div>
|
|
<div class="label"> 已完成工单 </div>
|
|
|
<el-progress
|
|
<el-progress
|
|
|
- :percentage="20"
|
|
|
|
|
|
|
+ :percentage="(infoData.completeOrderRatio || 0) * 100"
|
|
|
color="rgba(2, 125, 180, 1)"
|
|
color="rgba(2, 125, 180, 1)"
|
|
|
:text-inside="true"
|
|
:text-inside="true"
|
|
|
:stroke-width="16"
|
|
:stroke-width="16"
|
|
@@ -45,12 +63,18 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <ele-pro-table ref="table" :columns="columns" :datasource="[{}]">
|
|
|
|
|
|
|
+ <ele-pro-table ref="table" :columns="columns" :datasource="workOrderList">
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ props: {
|
|
|
|
|
+ infoData: {
|
|
|
|
|
+ type: Object,
|
|
|
|
|
+ default: () => ({})
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
columns: [
|
|
columns: [
|
|
@@ -61,47 +85,55 @@
|
|
|
width: '80'
|
|
width: '80'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'code',
|
|
|
label: '工单号'
|
|
label: '工单号'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'productNum',
|
|
|
label: '生产重量'
|
|
label: '生产重量'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'deviceCode',
|
|
|
label: '设备编码'
|
|
label: '设备编码'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'deviceName',
|
|
|
label: '设备名称'
|
|
label: '设备名称'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'planStartTime',
|
|
|
label: '计划开始时间'
|
|
label: '计划开始时间'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'startTime',
|
|
|
label: '实际开始时间'
|
|
label: '实际开始时间'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'executorName',
|
|
|
label: '执行人'
|
|
label: '执行人'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'reportWorkTime',
|
|
|
label: '报工时间'
|
|
label: '报工时间'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'produceCycle',
|
|
|
label: '生产周期'
|
|
label: '生产周期'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'name',
|
|
|
|
|
|
|
+ prop: 'name4',
|
|
|
label: '状态'
|
|
label: '状态'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
};
|
|
};
|
|
|
|
|
+ },
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ productionPlan () {
|
|
|
|
|
+ return this.infoData.productionPlan || {};
|
|
|
|
|
+ },
|
|
|
|
|
+ workOrderList () {
|
|
|
|
|
+ return this.infoData.workOrderList || [];
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|