Fixiaobai
2023-09-14 de79a0aa1d62c2130b47c667fd10c0fce0587c35
src/components/view/finishedProductInspection.vue
@@ -1,6 +1,6 @@
<template>
  <div class="content-main">
    <div v-if="!showAdd" class="rawPage">
    <div v-if="!showAdd&&!showLook&&!showUp" class="rawPage">
        <div class="title">
      <el-row>
        <el-col :span="12">成品检验</el-col>
@@ -12,7 +12,7 @@
      </el-row>
    </div>
    <div class="nav">
        <span>检验结果:</span>
        <span>检测结果:</span>
        <el-select v-model="searchData.result" size="small" placeholder="请选择" style="width: 224px;margin-right: 52px;">
            <el-option :value="''" label="全部"></el-option>
            <el-option :value="1" label="合格"></el-option>
@@ -93,8 +93,10 @@
                    min-width="80"
                >
                <template slot-scope="scope">
                    <span>{{scope.row.result===1?'合格':'不合格'}}</span>
                </template>
                        <span style="color: #34BD66;" v-if="scope.row.result === 1">合格</span>
                        <span style="color: #E84738;" v-else-if="scope.row.result === 0">不合格</span>
                        <span v-else-if="scope.row.result === null || scope.row.result === undefined">暂未结论</span>
                    </template>
                </el-table-column>
                    
                
@@ -105,7 +107,7 @@
                    <template slot-scope="scope">
                    <el-button type="text" size="small" @click="goToDetail(scope.row)">查看</el-button>
                    <el-button type="text" size="small">打印</el-button>
                    <el-button type="text" size="small">编辑</el-button>
                    <el-button v-if="scope.row.result == null" type="text" size="small" @click="goUp(scope.row)">编辑</el-button>
                    </template>
                </el-table-column>
            </el-table>
@@ -353,16 +355,24 @@
            this.pageParams.total = total
        },
        goToDetail(row) {
            // this.showAddPage = true
            // this.showDetail = true
            this.finishedInsInfo = row
            // this.addInspectionform = []
            this.rowInfo = row
            this.showLook=true
        },
        goUp(row){
            this.rowInfo = row
            this.showUp=true
        },
        async init() {
            // const {data} = await this.$axios.get(this.$api.url.finishedInspectUser)
            // this.usernameOptions = data
        },
        comBackMain(){
            this.showAdd=false
            this.showLook=false
            this.showUp=false
        this.init()
        this.getInspectionTableData()
        }
    }