| | |
| | | </div> |
| | | <div class="item-r"> |
| | | <div class="item-r-t font_weight">{{ process.number }}</div> |
| | | <div class="item-r-b">{{ process.name }}</div> |
| | | <div class="item-r-b">{{ process.name }}</div> |
| | | <div class="item-r-b">{{ process.product }}</div> |
| | | <div class="item-r-b">{{ process.procedure }}</div> |
| | | </div> |
| | | <div class="tip-r"> |
| | | <div v-if="process.isUpdate" class="tip-r"> |
| | | <img src="~@/assets/images/process-tip.png" /> |
| | | </div> |
| | | <div class="tip-current">当前使用</div> |
| | | <div v-if="process.isUpdate" class="tip-current">当前使用</div> |
| | | <div class="btn"> |
| | | <el-button type="primary" class="color_organge"> 更新工艺</el-button> |
| | | <el-button type="primary" class="color_organge"> 更新工艺 </el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <script setup lang="ts"> |
| | | import { computed, toRefs } from 'vue' |
| | | export interface ProcessInfoProps { |
| | | process: process |
| | | } |
| | | |
| | | const props = defineProps<ProcessInfoProps>() |
| | | import { toRefs } from 'vue' |
| | | const props = defineProps<{ |
| | | process: { product: '产品名称'; number: '111'; procedure: '工艺名称'; isUpdate: true } |
| | | }>() |
| | | const { process } = toRefs(props) |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | $status-running: #f76c0f; |
| | | $status-done: #2c5dbb82; |
| | | $status-ready: #00ff00f0; |
| | | .font_weight { |
| | | font-weight: 600; |
| | | } |
| | |
| | | } |
| | | |
| | | .tip-current { |
| | | background: green; |
| | | background: $status-ready; |
| | | color: #fff; |
| | | position: absolute; |
| | | top: 0px; |