Fixiaobai
2023-08-30 a2c4dc4fbd62ac4e05b9318a1e05d147c8ae4d8c
src/views/experiment/inspectionApplication/index.vue
@@ -50,11 +50,12 @@
                  </div>
               </div>
               <div class="table-box">
                  <el-table ref="inspectionTable" :max-height="800" :cell-style="{textAlign: 'center'}"
                  <el-table ref="inspectionTable" style="width: 100%;overflow-y: auto;min-height: calc(100% - 50px)"
                     max-height="calc(100% - 50px)" :cell-style="{textAlign: 'center'}"
                     :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}"
                     :data="inspectionTable" style="width: 100%">
                     :data="inspectionTable">
                     <el-table-column type="selection" min-width="30px" />
                     <el-table-column prop="icode" label="申请单号" min-width="100px" />
                     <el-table-column prop="icode" label="申请单号" min-width="150px" />
                     <el-table-column prop="type" label="检验类型" min-width="80px">
                        <template slot-scope="scope">
                           <div v-if="scope.row.type === 0"><span>原材料检验</span></div>
@@ -62,7 +63,7 @@
                           <div v-if="scope.row.type === 2"><span>成品检验</span></div>
                        </template>
                     </el-table-column>
                     <el-table-column prop="formTime" label="来料日期" min-width="100px" />
                     <el-table-column prop="formTime" label="来料日期" min-width="80px" />
                     <el-table-column prop="supplier" label="供应商名称" min-width="150px" />
                     <el-table-column prop="mcode" label="原材料编码" min-width="150px" />
                     <el-table-column prop="name" label="原材料名称" min-width="80px" />
@@ -70,13 +71,13 @@
                     <el-table-column prop="unit" label="单位" min-width="50px" />
                     <el-table-column prop="num" label="数量" min-width="50px" />
                     <el-table-column prop="createTime" label="登记日期" min-width="80px" />
                     <el-table-column prop="userName" label="登记人" min-width="80px" />
                     <el-table-column prop="inspection_status" label="检验结果" min-width="80px">
                        <template slot-scope="scope">
                           <el-tag class="tag" :type="scope.row.inspection_status === 0 ? 'danger' : 'success'"
                              disable-transitions>{{ scope.row.inspection_status === 0 ? '不合格' : '合格' }}</el-tag>
                        </template>
                     </el-table-column>
                     <el-table-column prop="userName" label="登记人" min-width="80px" />
                     <el-table-column prop="checkdate" label="检验日期" min-width="150px" />
                     <el-table-column label="操作" min-width="150" fixed="right">
                        <template slot-scope="scope">
@@ -302,7 +303,6 @@
               </el-dialog>
            </div>
         </div>
         <!-- 确定跳转基本库弹窗 -->
         <el-dialog title="标准库" :visible.sync="Standardframe" width="49%">
            <el-card>
@@ -310,7 +310,6 @@
                  <span>版本选择:</span>
                  <el-select @change="ccc" v-model="selectedValue" size="small" slot="append" style="width: 220px;">
                     <el-option v-for="item in BANben" :key="item" :label="item" :value="item"></el-option>
                  </el-select>
               </template>
            </el-card>
@@ -438,7 +437,6 @@
   } from '@/api/experiment/planAssignments'
   export default {
      data() {
         return {
            showDetail: false,
            searchData: {
@@ -501,7 +499,7 @@
            }],
            currentPage: 1,
            total: 20, // 总条数
            pageSize: 8, // 每页的数据条数
            pageSize: 10, // 每页的数据条数
            radioValue: '全部',
            checkTypeVisible: false,
            type: 0, // 默认不选中的状态
@@ -519,8 +517,6 @@
      watch: {
         $route: {
            handler(val, oldval) {
               console.log(val) // 新路由信息
               console.log(oldval) // 老路由信息
            },
            // 深度观察监听
            deep: true