1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| <template>
| <u-popup :show="show" mode="bottom" :round="10" @close="show = false;">
| <view>
| <!-- 状态 -->
| <bar-status title="工件状态" :status="content.qualityState" :typeArr="statusArr"></bar-status>
| <!-- 基础信息 -->
| <bar-content title="基础信息" :content="content" :propArr="detailArr" key="basic"></bar-content>
| <!-- 加工信息 -->
| <bar-content title="加工信息" :content="content" :propArr="detailArr2" key="product"></bar-content>
| <!-- 质量信息 -->
| <bar-content title="质量信息" :content="content" :propArr="detailArr3" key="material"></bar-content>
| </view>
| </u-popup>
| </template>
| <script>
| import barContent from './barContent.vue'
| import barStatus from './barStatus.vue'
| export default {
| props: {
| content: {type: Object,required: true}
| },
| components:{barContent,barStatus},
| data() {
| return {
| show: false,
| statusArr:[{code: 1,title: '合格'},{code: 2,title: '不合格'},{code: 3,title: '疑似'}],
| detailArr:[{code: "workPieceID",title: '工件ID'},{code: "workingProcedureCurrent",title: '当前工序'},{code: "workingProcedureStartTime",title: '工序开始时间'},{code: "processingDurationForCurrent",title: '加工时间'}],
| detailArr2:[{code: "equipmentID",title: '当前设备'},{code: "equipmentName",title: '设备名称'},{code: "equipmentCurrentStateName",title: '当前位置'},{code: "workingProcedureCompleted",title: '已完成工序'}],
| detailArr3:[{code: "remarks",title: '备注'},{code: "processingDurationTotal",title: '总加工时长'},{code: "workPieceinitOnlineTime",title: '首工序上线时间'},{code: "number",title: '数量'}]
| }
| },
| methods: {
| confirm() {
| this.show = false
| }
| }
| }
| </script>
|
| <style>
| </style>
|
|