|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div id="main">
|
|
|
+ <div id="main" v-touch:right="onSwipeRight">
|
|
|
<div class="title">
|
|
|
<div>{{ mainTitle }}</div>
|
|
|
<div style="width:1.5rem;height:1.5rem;margin-left: 0.625rem;cursor: pointer;" @click="back"><img src="../assets/img/tuichu.png"></div>
|
|
@@ -7,6 +7,10 @@
|
|
|
<div class="content">
|
|
|
<div class="content_child">
|
|
|
<table border="1" cellspacing="0" style="width:100%;">
|
|
|
+ <tr height="53">
|
|
|
+ <th colspan="2">零件名</th>
|
|
|
+ <th colspan="9">{{ data.lingjianming || 2 }}</th>
|
|
|
+ </tr>
|
|
|
<tr height="53">
|
|
|
<th colspan="2">班次</th>
|
|
|
<th colspan="2">{{ data.shift }}</th>
|
|
@@ -47,10 +51,18 @@
|
|
|
<th>{{ iten.method}} </th>
|
|
|
<th style="width:16.125rem">{{ iten.standard }}</th>
|
|
|
<th style="width:16.125rem;">
|
|
|
- <div style="display: inline-block;width:100%;margin: 5px 0;" v-for="(iteo,indez) in iten.projectSubList" :key="indez">
|
|
|
- <span>{{ iteo.name }}: </span>
|
|
|
- <span>{{ iteo.value ? iteo.value : '无' }}</span>
|
|
|
- </div>
|
|
|
+ <template v-if="iten.projectSubList.length === 1">
|
|
|
+ <div style="display: inline-block;width:100%;margin: 5px 0;" v-for="(iteo,indez) in iten.projectSubList" :key="indez">
|
|
|
+ <span>{{ iteo.name }}: </span>
|
|
|
+ <span>{{ iteo.value ? iteo.value : '无' }}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <div style="display: inline-block;width:50%;margin: 5px 0;" v-for="(iteo,indez) in iten.projectSubList" :key="indez">
|
|
|
+ <span>{{ iteo.name }}: </span>
|
|
|
+ <span>{{ iteo.value ? iteo.value : '无' }}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</th>
|
|
|
<th>
|
|
|
<template v-if="iten.file.url">
|
|
@@ -117,7 +129,7 @@
|
|
|
data: {},
|
|
|
mainTitle: '',
|
|
|
commonNum: 0,
|
|
|
- newProjectCommonList: []
|
|
|
+ newProjectCommonList: [],
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -152,13 +164,16 @@
|
|
|
},
|
|
|
methods: {
|
|
|
clickImg () {
|
|
|
- this.showImg = true
|
|
|
+ this.showImg = true
|
|
|
},
|
|
|
cancelEnlarge () {
|
|
|
this.showImg = false
|
|
|
},
|
|
|
back() {
|
|
|
this.$router.back()
|
|
|
+ },
|
|
|
+ onSwipeRight() {
|
|
|
+ this.$router.back()
|
|
|
}
|
|
|
},
|
|
|
filters: {
|