value
2023-09-21 4f5549cd814eeaecd0ff04de62452d8d5fb4cbc5
9.21
已修改17个文件
18501 ■■■■■ 文件已修改
index.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
package-lock.json 16106 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/api/controller.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/Technicalindex.vue 77 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/finishedProductInspection.vue 213 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/laboratoryManagement.vue 625 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/mbom.vue 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/processInspection.vue 88 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/processInspectionUpdate.vue 143 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/raw-ins.vue 110 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/rawInsBox.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/rawInsDetail.vue 299 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/record-content.vue 244 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/sale.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/technology.vue 491 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/index.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
index.html
@@ -6,7 +6,7 @@
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" CONTENT="no-cache">
    <meta http-equiv="Pragma" CONTENT="no-cache">
    <title>中天海洋MOM</title>
    <title>中天海洋MES</title>
    <link rel="icon" type="image/x-icon" href="./static/img/logo.png">
  </head>
  <body>
package-lock.json
ÎļþÌ«´ó
src/assets/api/controller.js
@@ -188,7 +188,8 @@
    synchronization: "sale/synchronization",//同步
    updateSaleById: "sale/updateSaleById", //根据销售单id修改详情信息
    delSale: "sale/delSale", //根据销售单id删除
    delAllSale: "sale/delAllSale", //批量删除销售单
    delAllSale: "sale/delAllSale", //批量删除销售单,
    chooseType: "technologyTemplate/chooseType", //查询类型
}
src/components/view/Technicalindex.vue
@@ -35,7 +35,6 @@
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="11">
                                <el-form-item label="项目组">
@@ -48,7 +47,6 @@
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-form-item label="单位">
                            <el-input v-model="form.name" placeholder="请输入单位" style="width: 220px;"></el-input>
                        </el-form-item>
@@ -63,17 +61,8 @@
                <span>类型:</span>
                <el-select v-model="search.type" size="small" placeholder="请选择" @change="TYpe"
                    style="width: 224px;margin-right: 30px;">
                    <el-option label="橡胶连接器" :value="0"></el-option>
                    <el-option label="金属连接器" :value="1"></el-option>
                    <el-option label="湿插拔电连接器" :value="2"></el-option>
                    <el-option label="分支组件" :value="3"></el-option>
                    <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
                </el-select>
                <!-- <span>工序:</span>
            <el-select v-model="search.name" size="small" placeholder="请选择" style="width: 224px;margin-right: 30px;">
                <el-option v-for="(a, ai) in process" key="ai" :label="a.name" :value="a.id"></el-option>
            </el-select>
            <el-button size="mini"><span>重 ç½®</span></el-button>
            <el-button size="mini" type="primary" style="background: #004EA2;"><span>查询</span></el-button> -->
            </div>
            <div class="thing">
                <!-- ä¸»ä½“å·¦ -->
@@ -85,21 +74,15 @@
                        <div class="custom-tree-node" slot-scope="{ node, data }">
                            <span><i :class="`node_i ${data.code != '[2]'?'el-icon-folder-opened':'el-icon-tickets'}`"></i>
                                {{data.code}} {{ data.name }}</span>
                            <!-- <el-button type="text" size="mini" @click.stop="remove(node, data)">
                            <i class="el-icon-delete"></i>
                        </el-button> -->
                        </div>
                    </el-tree>
                </div>
                <!-- ä¸»ä½“右 -->
                <div class="right">
                    <el-table :data="tableData" style="width: 100%;overflow-y: auto;min-height: 100%"
                        max-height="100%" row-key="name" border
                        @select-all="selectAll"
                        @select="selectTr"
                        ref="multipleTable"
                        @selection-change="handleSelectionChange"
                        default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
                    <el-table :data="tableData" style="width: 100%;overflow-y: auto;min-height: 100%" max-height="100%"
                        row-key="name" border @select-all="selectAll" @select="selectTr" ref="multipleTable"
                        @selection-change="handleSelectionChange" default-expand-all
                        :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
                        <el-table-column type="selection" width="55">
                        </el-table-column>
                        <el-table-column type="index" width="50">
@@ -129,17 +112,13 @@
                <div>
                    <el-dialog title="编辑技术内容" :visible.sync="upDia" width="500px">
                        <div class="body">
                            <el-row style="line-height: 46px;">
                                <el-col :span="4" style="font-size: 14px;text-align: right;">类型:</el-col>
                                <el-col :span="16" :offset="1">
                                    <template>
                                        <el-select v-model="edit.type" disabled placeholder="请选择" @change="TYpe"
                                            style="width: 306px;margin-right: 30px;">
                                            <el-option label="橡胶连接器" :value="0"></el-option>
                                            <el-option label="金属连接器" :value="1"></el-option>
                                            <el-option label="湿插拔电连接器" :value="2"></el-option>
                                            <el-option label="分支组件" :value="3"></el-option>
                                            <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
                                        </el-select>
                                    </template>
                                </el-col>
@@ -201,10 +180,7 @@
                                <template>
                                    <el-select v-model="form.type" size="small" placeholder="请选择" @change="edittype"
                                        style="width: 98%;margin-right: 30px;">
                                        <el-option label="橡胶连接器" :value="0"></el-option>
                                        <el-option label="金属连接器" :value="1"></el-option>
                                        <el-option label="湿插拔电连接器" :value="2"></el-option>
                                        <el-option label="分支组件" :value="3"></el-option>
                                        <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
                                    </el-select>
                                </template>
                            </el-form-item>
@@ -212,7 +188,7 @@
                                <el-col :span="11">
                                    <el-form-item label="工序">
                                        <template>
                                            <el-select v-model="form.work" placeholder="请选择" allow-create filterable @change="workevent">
                                            <el-select v-model="form.work" placeholder="请选择" @change="workevent">
                                                <el-option v-for="(item,index) in process" :key="item.name" :label="item.name"
                                                    :value="item.name">
                                                </el-option>
@@ -223,7 +199,7 @@
                                <el-col :span="11" :offset="2">
                                    <el-form-item label="工艺">
                                        <template>
                                            <el-select v-model="form.name" style="width: 95%;" placeholder="请选择" @change="craftrow" allow-create filterable>
                                            <el-select v-model="form.name" style="width: 95%;" placeholder="请选择" @change="craftrow">
                                                <el-option v-for="item in craftapi" :key="item.id" :label="item.name" :value="item.id">
                                                </el-option>
                                            </el-select>
@@ -231,7 +207,6 @@
                                    </el-form-item>
                                </el-col>
                            </el-row>
                            <el-row>
                                <el-col :span="11">
                                    <el-form-item label="项目组">
@@ -240,23 +215,6 @@
                                                <el-option v-for="item in higherlevel" :key="item" :label="item" :value="item">
                                                </el-option>
                                            </el-select>
                                            <!-- <el-autocomplete
                                popper-class="my-autocomplete"
                                v-model="form.father"
                                :fetch-suggestions="higherlevel"
                                placeholder="请输入内容"
                                @select="electadd">
                                <i
                                    class="el-icon-edit el-input__icon"
                                    slot="suffix"
                                    @click="handleIconClick">
                                </i>
                                <template slot-scope="{ item }">
                                    <div class="name">{{ item }}</div>
                                    <span class="addr">{{ item}}</span>
                                </template>
                                </el-autocomplete> -->
                                        </template>
                                    </el-form-item>
                                </el-col>
@@ -266,7 +224,6 @@
                                    </el-form-item>
                                </el-col>
                            </el-row>
                            <el-form-item label="单位">
                                <el-input v-model="form.unit" placeholder="请输入单位" style="width: 35.95%;"></el-input>
                            </el-form-item>
@@ -289,7 +246,6 @@
                type:0,
                technology:null,
              },
            //   handleClose:[],
                checkTreeNode :{
                    id:'',
                },
@@ -322,17 +278,24 @@
                    name:'',
                    unit:'',
                    id:'',
                },
                isAllSelect:false,
                bigType: []
            }
        },
        mounted() {
            this.selectAllleft()
            this.selectAllright()
            this.chooseType()
        },
        methods:{
            chooseType() {
                this.$axios.get(this.$api.url.chooseType).then(res => {
                    this.bigType = res.data
                    this.typeselect = res.data[0]
                    this.search.type = res.data[0]
                    this.selectAllleft()
                    this.selectAllright()
                })
            },
            handleSelectionChange(val) {
                this.selects = val;
                this.deleteList = [];
src/components/view/finishedProductInspection.vue
@@ -3,9 +3,10 @@
    <div v-if="!showAdd&&!showLook&&!showUp" class="rawPage">
        <div class="title">
      <el-row>
        <el-col :span="12">成品检验</el-col>
                    <el-col :span="12">产品检验</el-col>
        <el-col :span="12" style="text-align: right;">
          <el-button @click="handleAddNew" type="primary" size="mini" icon="el-icon-plus" style="background: #004EA2; ">新增</el-button>
                        <el-button @click="handleAddNew" type="primary" size="mini" icon="el-icon-plus"
                            style="background: #004EA2; ">新增</el-button>
          <el-button icon="el-icon-delete" size="mini">删除</el-button>
          <el-button icon="el-icon-download" size="mini">导出</el-button>
        </el-col>
@@ -19,110 +20,51 @@
            <el-option :value="0" label="不合格"></el-option>
          </el-select>
          <span>产品名称:</span>
        <el-input v-model="searchData.material" size="small" placeholder="请输入产品名称" style="width: 224px;margin-right: 52px;"></el-input>
                <el-input v-model="searchData.material" size="small" placeholder="请输入产品名称"
                    style="width: 224px;margin-right: 52px;"></el-input>
          <el-button size="mini" @click="()=>{searchData={};getInspectionTableData()}"><span>重 ç½®</span></el-button>
          <el-button size="mini" type="primary" @click="getInspectionTableData" style="background: #004EA2;"><span>查 è¯¢</span></el-button>
                <el-button size="mini" type="primary" @click="getInspectionTableData" style="background: #004EA2;"><span>查
                        è¯¢</span></el-button>
    </div>
    <div class="content-body">
        <div class="inspectionTable">
            <el-table
                ref="inspectionTable"
                height="620"
                :cell-style="{textAlign: 'center'}"
                    <el-table ref="inspectionTable" height="620" :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%"
                >
                <el-table-column
                    type="selection"
                    width="50">
                        :data="inspectionTable" style="width: 100%">
                        <el-table-column type="selection" width="50">
                </el-table-column>
                <el-table-column
                    prop="order_number"
                    label="订单号"
                    min-width="100"
                />
                <el-table-column
                    prop="customer_name"
                    label="客户名称"
                    min-width="80"
                />
                <el-table-column
                    prop="project_name"
                    label="工程名称"
                    min-width="80"
                />
                <el-table-column
                    prop="quality_traceability"
                    label="质量追溯号"
                    min-width="108"
                />
                <el-table-column
                    prop="material_code"
                    label="产品编码"
                    min-width="100"
                />
                <el-table-column
                    prop="material"
                    label="产品大类"
                    min-width="72"
                />
                <el-table-column
                    prop="specifications_model"
                    label="规格型号"
                    min-width="110"
                />
                <el-table-column
                    prop="unit"
                    label="单位"
                    min-width="50"
                />
                <el-table-column
                    prop="quantity"
                    label="数量"
                    min-width="50"
                />
                <el-table-column
                    prop="detectionPeriod"
                    label="检验日期"
                    min-width="80"
                />
                <el-table-column
                    prop="result"
                    label="检测结果"
                    min-width="80"
                >
                        <el-table-column prop="order_number" label="订单号" min-width="100" />
                        <el-table-column prop="customer_name" label="客户名称" min-width="80" />
                        <el-table-column prop="project_name" label="工程名称" min-width="80" />
                        <el-table-column prop="quality_traceability" label="质量追溯号" min-width="108" />
                        <el-table-column prop="material_code" label="产品编码" min-width="100" />
                        <el-table-column prop="material" label="产品大类" min-width="72" />
                        <el-table-column prop="specifications_model" label="规格型号" min-width="110" />
                        <el-table-column prop="unit" label="单位" min-width="50" />
                        <el-table-column prop="quantity" label="数量" min-width="50" />
                        <el-table-column prop="detectionPeriod" label="检验日期" min-width="80" />
                        <el-table-column prop="result" label="检测结果" min-width="80">
                <template slot-scope="scope">
                        <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>
                <el-table-column
                    label="操作"
                    min-width="80"
                >
                        <el-table-column label="操作" min-width="80">
                    <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 v-if="scope.row.result == null" type="text" size="small" @click="goUp(scope.row)">编辑</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>
        </div>
        <!-- åˆ†é¡µå™¨ -->
        <div class="pagination">
            <el-pagination
            :current-page="pageParams.pageSize"
            :page-sizes="[10, 50, 100, 200]"
            :page-size="pageParams.countSize"
            layout="total, sizes, prev, pager, next, jumper"
            :total="pageParams.total"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
          />
                    <el-pagination :current-page="pageParams.pageSize" :page-sizes="[10, 50, 100, 200]"
                        :page-size="pageParams.countSize" layout="total, sizes, prev, pager, next, jumper" :total="pageParams.total"
                        @size-change="handleSizeChange" @current-change="handleCurrentChange" />
        </div>
    </div>
    </div>
@@ -133,51 +75,65 @@
                    <el-col :span="12">新增成品检验单</el-col>
                    <el-col :span="12" style="text-align: right;">
                        <!-- ç‚¹å‡»è¿”回,当前页面值为false -->
                    <el-button @click="()=>{showAddPage = false;showDetail = false}" type="primary" size="mini" icon="el-icon-back" style="background: #004EA2; ">返回</el-button>
                        <el-button @click="()=>{showAddPage = false;showDetail = false}" type="primary" size="mini"
                            icon="el-icon-back" style="background: #004EA2; ">返回</el-button>
                    </el-col>
                </el-row>
                <el-form :model="addInspectionform" ref="addInspectionform" class="addInspectionform" label-position="right" label-width="100px" size="mini" >
                <el-form :model="addInspectionform" ref="addInspectionform" class="addInspectionform" label-position="right"
                    label-width="100px" size="mini">
                    <div class="formwrapper">
                        <el-row>
                        <el-col  :span="7">
                        <el-form-item label="订单号:">
                            <el-input v-show="showDetail == false"  style="width: 180px;" v-model="addInspectionform.number" placeholder="请输入订单号" autocomplete="off" />
                            <el-input v-show="showDetail !== false"  style="width: 180px;" v-model="finishedInsInfo.order_number" placeholder="请输入订单号1" autocomplete="off" />
                                    <el-input v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.number"
                                        placeholder="请输入订单号" autocomplete="off" />
                                    <el-input v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.order_number"
                                        placeholder="请输入订单号1" autocomplete="off" />
                        </el-form-item>
                        </el-col>
                        <el-col  :span="7">
                        <el-form-item label="客户名称:">
                            <el-input v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.username" placeholder="请输入客户名称" autocomplete="off" />
                            <el-input v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.customer_name" placeholder="请输入客户名称" autocomplete="off" />
                                    <el-input v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.username"
                                        placeholder="请输入客户名称" autocomplete="off" />
                                    <el-input v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.customer_name"
                                        placeholder="请输入客户名称" autocomplete="off" />
                        </el-form-item>
                        </el-col>
                        <el-col  :span="7">
                        <el-form-item label="工程名称:">
                            <el-input v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.projectname" placeholder="请输入工程名称" autocomplete="off" />
                            <el-input v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.project_name" placeholder="请输入工程名称" autocomplete="off" />
                                    <el-input v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.projectname"
                                        placeholder="请输入工程名称" autocomplete="off" />
                                    <el-input v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.project_name"
                                        placeholder="请输入工程名称" autocomplete="off" />
                        </el-form-item>
                        </el-col>
                    </el-row>
                    <el-row >
                        <el-col  :span="7">
                        <el-form-item label="质量追溯号:" >
                            <el-input  v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.tracenumber" placeholder="请输入追溯号" autocomplete="off" />
                            <el-input  v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.quality_traceability" placeholder="请输入追溯号" autocomplete="off" />
                                    <el-input v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.tracenumber"
                                        placeholder="请输入追溯号" autocomplete="off" />
                                    <el-input v-show="showDetail !== false" style="width: 180px;"
                                        v-model="finishedInsInfo.quality_traceability" placeholder="请输入追溯号" autocomplete="off" />
                        </el-form-item>
                        </el-col>
                        <el-col  :span="7">
                        <el-form-item label="产品编码:">
                            <el-input  v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.material_code" placeholder="请输入产品编码" autocomplete="off" />
                            <el-input  v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.material_code" placeholder="请输入产品编码" autocomplete="off" />
                                    <el-input v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.material_code"
                                        placeholder="请输入产品编码" autocomplete="off" />
                                    <el-input v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.material_code"
                                        placeholder="请输入产品编码" autocomplete="off" />
                        </el-form-item>
                        </el-col>
                        <el-col  :span="7">
                        <el-form-item label="产品名称:">
                            <el-select v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.class" size="small" placeholder="请选择产品名称">
                                    <el-select v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.class"
                                        size="small" placeholder="请选择产品名称">
                                <el-option value="选项1"></el-option>
                                <el-option value="选项2"></el-option>
                            </el-select>
                            <el-input  v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.material" placeholder="请输入产品编码" autocomplete="off" />
                                    <el-input v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.material"
                                        placeholder="请输入产品编码" autocomplete="off" />
                        </el-form-item>
                        </el-col>
@@ -185,26 +141,32 @@
                    <el-row >
                        <el-col  :span="7">
                        <el-form-item label="规格型号:" >
                            <el-select v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.specificationmodel" size="small" placeholder="请选择规格型号">
                                    <el-select v-show="showDetail == false" style="width: 180px;"
                                        v-model="addInspectionform.specificationmodel" size="small" placeholder="请选择规格型号">
                                <el-option value="选项1"></el-option>
                                <el-option value="选项2"></el-option>
                            </el-select>
                            <el-input  v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.specifications_model" placeholder="请输入产品编码" autocomplete="off" />
                                    <el-input v-show="showDetail !== false" style="width: 180px;"
                                        v-model="finishedInsInfo.specifications_model" placeholder="请输入产品编码" autocomplete="off" />
                        </el-form-item>
                        </el-col>
                        <el-col  :span="7">
                        <el-form-item label="单位:" >
                            <el-select v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.unit" size="small" placeholder="请选择单位">
                                    <el-select v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.unit"
                                        size="small" placeholder="请选择单位">
                                <el-option value="选项1"></el-option>
                                <el-option value="选项2"></el-option>
                            </el-select>
                            <el-input  v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.specifications_model" placeholder="请输入产品编码" autocomplete="off" />
                                    <el-input v-show="showDetail !== false" style="width: 180px;"
                                        v-model="finishedInsInfo.specifications_model" placeholder="请输入产品编码" autocomplete="off" />
                        </el-form-item>
                        </el-col>
                        <el-col  :span="7">
                        <el-form-item label="数量:">
                            <el-input v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.quantity" placeholder="请输入数量" autocomplete="off" />
                            <el-input  v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.quantity" placeholder="请输入产品编码" autocomplete="off" />
                                    <el-input v-show="showDetail == false" style="width: 180px;" v-model="addInspectionform.quantity"
                                        placeholder="请输入数量" autocomplete="off" />
                                    <el-input v-show="showDetail !== false" style="width: 180px;" v-model="finishedInsInfo.quantity"
                                        placeholder="请输入产品编码" autocomplete="off" />
                        </el-form-item>
                        </el-col>
@@ -212,7 +174,8 @@
                    <el-row >
                        <el-col  v-show="showDetail !== false" :span="7">
                            <el-form-item  label="主机工:" >
                               <el-input  style="width: 180px;" v-model="finishedInsInfo.name" placeholder="请输入产品编码" autocomplete="off" />
                                    <el-input style="width: 180px;" v-model="finishedInsInfo.name" placeholder="请输入产品编码"
                                        autocomplete="off" />
                            </el-form-item>
                        </el-col>
                    </el-row>
@@ -274,7 +237,11 @@
import finishedProductInspectionUp from '@/components/view/finishedProductInspectionUp'
import finishedProductInspectionLook from '@/components/view/finishedProductInspectionLook'
export default {
    components: { finishedProductInspectionAdd,finishedProductInspectionUp, finishedProductInspectionLook},
        components: {
            finishedProductInspectionAdd,
            finishedProductInspectionUp,
            finishedProductInspectionLook
        },
    data(){
        return {
            searchData:{
@@ -283,8 +250,7 @@
            },
            // ä¸»æœºå·¥ä¸‹æ‹‰æ¡†
            usernameOptions:[],
            inspectionTable:[
            ],
                inspectionTable: [],
            rowInfo:{},
            pageParams:{
              countSize: 10, //每页数量
@@ -349,7 +315,17 @@
            this.showAdd=true
        },
        async getInspectionTableData() {
            const {data:{row,total}} = await this.$axios.get(this.$api.url.finishedInsListPage,{params:{...this.pageParams,...this.searchData}})
                const {
                    data: {
                        row,
                        total
                    }
                } = await this.$axios.get(this.$api.url.finishedInsListPage, {
                    params: {
                        ...this.pageParams,
                        ...this.searchData
                    }
                })
            this.inspectionTable = row
            this.pageParams.total = total
        },
@@ -386,68 +362,83 @@
    padding: 12px;
}
.nav{
    display: flex;
    padding: 20px 20px;
    align-items: center;
    background-color: #fff;
}
.nav *{
    font-size: 14px;
}
.content-body {
    background-color: #fff;
    overflow: hidden;
    margin-top: 12px;
}
.inspectionTable{
    padding: 20px 20px;
}
.pagination{
    float: right;
    margin-right: 20px;
}
.newPage{
    overflow: hidden;
}
.header{
    padding: 12px;
}
.addInspectionform{
    background-color: #fff;
}
.addInspectionform .formwrapper{
    padding: 20px 0px;
    margin-left: 100px;
}
.inspectionProject span{
    display: block;
    padding: 5px 0px;
}
.inspectionProject .el-table{
    background-color: #fff;
    padding: 10px 12px;
}
.inspectionResult span{
    display: block;
    padding: 5px 0px;
}
.inspectionResult .el-table{
    background-color: #fff;
    padding: 10px 12px;
}
.rawPage{
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}
.rawPage .content-body{
    flex: 1;
}
/* .inspectionTable{
    flex: 1;
    overflow-y: scroll;
} */
</style>
src/components/view/laboratoryManagement.vue
@@ -3,45 +3,19 @@
    <el-row>
      <el-col :span="12" class="top_left_name">设备维护</el-col>
      <el-col :span="12" style="text-align: right;" class="title">
        <el-button
          @click="testItem()"
          type="primary"
          size="mini"
          icon="el-icon-plus"
          style="background: #004EA2; "
          >新增仪器设备</el-button
        >
        <el-dialog
          title="新增仪器设备"
          :visible.sync="dialogVisible"
          width="750px"
          :before-close="handleClose"
        >
          <el-form
            :model="ruleForm"
            :rules="rules"
            ref="ruleForm"
            label-width="130px"
            class="demo-ruleForm"
          >
                <el-button @click="testItem()" type="primary" size="mini" icon="el-icon-plus"
                    style="background: #004EA2; ">新增仪器设备</el-button>
                <el-dialog title="新增仪器设备" :visible.sync="dialogVisible" width="750px" :before-close="handleClose">
                    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="130px" class="demo-ruleForm">
            <el-row>
              <el-col :span="12">
                <el-form-item label="设备名称" prop="name">
                  <el-input
                    placeholder="请输入仪器设备编号"
                    style="width: 206px"
                    clearable
                    v-model="ruleForm.name"
                  ></el-input>
                                    <el-input placeholder="请输入仪器设备编号" style="width: 206px" clearable v-model="ruleForm.name"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="设备用途" prop="type">
                  <el-select
                    v-model="ruleForm.type"
                    @change="selectinstall"
                    placeholder="请选择设备用途"
                  >
                                    <el-select v-model="ruleForm.type" @change="selectinstall" placeholder="请选择设备用途">
                    <el-option label="生产设备" value="1"></el-option>
                    <el-option label="检测设备" value="2"></el-option>
                  </el-select>
@@ -51,129 +25,52 @@
            <el-row>
              <el-col :span="12">
                <el-form-item label="设备组" prop="name">
                  <el-select
                    v-model="ruleForm.equr"
                    allow-create
                    filterable
                    @create=""
                    placeholder="请选择设备组"
                  >
                    <el-option
                      v-for="list in equaip"
                      :key="list"
                      :label="list"
                      :value="list"
                    >
                                    <el-select v-model="ruleForm.equr" allow-create filterable @create="" placeholder="请选择设备组">
                                        <el-option v-for="list in equaip" :key="list" :label="list" :value="list">
                    </el-option>
                  </el-select>
                <!-- <el-autocomplete
                class="inline-input"
                v-model="ruleForm.equr"
                :fetch-suggestions="querySearch"
                 placeholder="请输入内容"
    ></el-autocomplete> -->
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="仪器设备编号" prop="name">
                  <el-input
                    placeholder="请输入仪器设备编号"
                    style="width: 206px"
                    clearable
                    v-model="ruleForm.code"
                  ></el-input>
                                    <el-input placeholder="请输入仪器设备编号" style="width: 206px" clearable v-model="ruleForm.code"></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="保管人" prop="keeper">
                  <el-select
                    v-model="ruleForm.keeper"
                    placeholder="请选择保管人"
                  >
                    <el-option
                      v-for="list in keeperList"
                      :key="list.index"
                      :label="list.name"
                      :value="list.id"
                    >
                                    <el-select v-model="ruleForm.keeper" placeholder="请选择保管人">
                                        <el-option v-for="list in keeperList" :key="list.index" :label="list.name" :value="list.id">
                    </el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="计量截至有效期" prop="endMeasure">
                  <el-date-picker
                    style="width: 206px"
                    type="date"
                    placeholder="请选择计量截至有效期"
                    v-model="ruleForm.endMeasure"
                    :picker-options="pickerOptions"
                  ></el-date-picker>
                                    <el-date-picker style="width: 206px" type="date" placeholder="请选择计量截至有效期"
                                        v-model="ruleForm.endMeasure" :picker-options="pickerOptions"></el-date-picker>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="设备状态" prop="deviceStatus" required>
                  <el-select
                    v-model="ruleForm.deviceStatus"
                    placeholder="请选择设备状态"
                  >
                    <el-option
                      label="运行"
                      style="color: #66c03b"
                      value="1"
                    ></el-option>
                    <el-option
                      label="报废"
                      style="color: #ac9299"
                      value="2"
                    ></el-option>
                    <el-option
                      label="检修"
                      style="color: #52d6c0"
                      value="3"
                    ></el-option>
                    <el-option
                      label="故障"
                      style="color: #f36b6c"
                      value="4"
                    ></el-option>
                    <el-option
                      label="空闲"
                      style="color: #fcb642"
                      value="5"
                    ></el-option>
                                    <el-select v-model="ruleForm.deviceStatus" placeholder="请选择设备状态">
                                        <el-option label="运行" style="color: #66c03b" value="1"></el-option>
                                        <el-option label="报废" style="color: #ac9299" value="2"></el-option>
                                        <el-option label="检修" style="color: #52d6c0" value="3"></el-option>
                                        <el-option label="故障" style="color: #f36b6c" value="4"></el-option>
                                        <el-option label="空闲" style="color: #fcb642" value="5"></el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="厂家" prop="factory" required>
                  <el-input
                    style="width: 206px"
                    placeholder="请输入厂家"
                    clearable
                    v-model="ruleForm.factory"
                  ></el-input>
                                    <el-input style="width: 206px" placeholder="请输入厂家" clearable v-model="ruleForm.factory"></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <!-- <el-row>
              <el-col :span="12">
                <el-form-item label="规格型号">
                  <el-input
                    placeholder="规格型号"
                    :disabled="true"
                    style="width: 206px"
                    v-model="showCodeNameModel.specifications"
                  >
                  </el-input>
                </el-form-item>
              </el-col>
            </el-row> -->
          </el-form>
          <span slot="footer" class="dialog-footer">
            <el-button @click="dialogVisible = false">取 æ¶ˆ</el-button>
@@ -183,144 +80,59 @@
      </el-col>
    </el-row>
    <el-row class="left_row">
      <div
        :style="
            <div :style="
          `width: ${isCollapse ? 300 : 0}px;transition: 1s;opacity: ${
            isCollapse ? 1 : 0
          };`
        "
        class="class_sidebar"
      >
        <el-radio-group
          class="ai-tab-change"
          style="width: 270px; margin-top: 5px"
          v-model="equipment"
          @input="RadioChange"
        >
        " class="class_sidebar">
                <el-radio-group class="ai-tab-change" style="width: 270px; margin-top: 5px" v-model="equipment"
                    @input="RadioChange">
        <el-radio-button  label="1">生产设备</el-radio-button>
        <el-radio-button  label="2">检验设备</el-radio-button>
        </el-radio-group>
        <!-- <el-input
          class="frame_input"
          v-model="search_class"
          placeholder="请输入分类名称"
          size="small"
        >
          <i
            slot="suffix"
            class="el-icon-search"
            style="font-size: 23px; padding: 5px 0;cursor:pointer;"
            @click="handlerDeptList"
          ></i>
        </el-input> -->
        <el-tree
          :data="towTree"
          ref="tree"
          :props="{ children: 'children', label: 'father' }"
          node-key="father"
          default-expand-all
          highlight-current
          style="margin-top: 20px;"
          @node-click="handleNodeClick"
        >
                <el-tree :data="towTree" ref="tree" :props="{ children: 'children', label: 'father' }" node-key="father"
                    default-expand-all highlight-current style="margin-top: 20px;" @node-click="handleNodeClick">
          <div class="custom-tree-node" slot-scope="{ node, data }">
            <span
              ><i
                :class="
                        <span><i :class="
                  `node_i ${
                    data.code != '[4]'
                      ? 'el-icon-folder-opened'
                      : 'el-icon-tickets'
                  }`
                "
              ></i>
              {{ data.father }}</span
            >
           <!--  <el-button type="text" size="mini" @click.stop="remove(node, data)">
              <i class="el-icon-delete"></i>
            </el-button> -->
                "></i>
                            {{ data.father }}</span>
          </div>
        </el-tree>
      </div>
      <div
        class="table_div"
        :style="`width: calc(100vw - ${isCollapse ? '475' : '170'}px);`"
      >
        <div
          :title="isCollapse ? '点击展开' : '点击收起'"
          class="box_bgd"
          @click="isC"
        >
            <div class="table_div" :style="`width: calc(100vw - ${isCollapse ? '475' : '170'}px);`">
                <div :title="isCollapse ? '点击展开' : '点击收起'" class="box_bgd" @click="isC">
          <div class="upper_triangle"></div>
          <div class="corner">
            <!-- ç‚¹å‡»å±•开收起导航和切换对应图标 -->
            <i
              :class="
                        <i :class="
                !isCollapse ? 'el-icon-arrow-left' : 'el-icon-arrow-right'
              "
            ></i>
              "></i>
          </div>
          <div class="under_triangle"></div>
        </div>
        <div class="main_table_div">
          <div class="table_top_div">
            <el-input
              class="table_top_input"
              size="small"
              v-model="codeNameModel"
              prefix-icon="el-icon-search"
              placeholder="请输入编号/设备名称/型号规格"
              clearable
            >
                        <el-input class="table_top_input" size="small" v-model="codeNameModel" prefix-icon="el-icon-search"
                            placeholder="请输入编号/设备名称/型号规格" clearable>
            </el-input>
            <el-button size="mini" @click="reset"><span>重 ç½®</span></el-button>
            <el-button
              size="mini"
              type="primary"
              @click="selectSearch"
              style="background: #004EA2;"
              ><span>查 è¯¢</span></el-button
            >
            <el-select
              @change="staueValueChange"
              v-model="staue_value"
              size="small"
              placeholder="请选择设备状态"
              class="table_top"
            >
              <el-option
                label="运行"
                style="color: #66c03b"
                value="1"
              ></el-option>
              <el-option
                label="报废"
                style="color: #ac9299"
                value="2"
              ></el-option>
              <el-option
                label="检修"
                style="color: #52d6c0"
                value="3"
              ></el-option>
              <el-option
                label="故障"
                style="color: #f36b6c"
                value="4"
              ></el-option>
              <el-option
                label="空闲"
                style="color: #fcb642"
                value="5"
              ></el-option>
                        <el-button size="mini" type="primary" @click="selectSearch" style="background: #004EA2;"><span>查
                                è¯¢</span></el-button>
                        <el-select @change="staueValueChange" v-model="staue_value" size="small" placeholder="请选择设备状态"
                            class="table_top">
                            <el-option label="运行" style="color: #66c03b" value="1"></el-option>
                            <el-option label="报废" style="color: #ac9299" value="2"></el-option>
                            <el-option label="检修" style="color: #52d6c0" value="3"></el-option>
                            <el-option label="故障" style="color: #f36b6c" value="4"></el-option>
                            <el-option label="空闲" style="color: #fcb642" value="5"></el-option>
            </el-select>
          </div>
          <el-table
            :data="tableData"
            border
            height="calc(100vh - 220px)"
            style="padding: 10px;"
          >
                    <el-table :data="tableData" border height="calc(100vh - 220px)" style="padding: 10px;">
            <el-table-column prop="date" label="序号" width="60">
              <template v-slot="scope">
                {{ scope.$index + 1 }}
@@ -331,67 +143,24 @@
            <el-table-column prop="name" label="仪器设备名称" width="125">
            </el-table-column>
            <el-table-column prop="userName" label="保管人"> </el-table-column>
            <el-table-column
              prop="DATE_FORMAT(end_measure, '%Y-%m-%d')"
              label="计量截至有效期"
              width="147"
            >
                        <el-table-column prop="DATE_FORMAT(end_measure, '%Y-%m-%d')" label="计量截至有效期" width="147">
            </el-table-column>
            <el-table-column prop="device_status" label="使用状态">
              <template slot-scope="scope">
                <el-tag
                  v-if="scope.row.device_status == 1"
                  disable-transitions
                  type="success"
                  >运行</el-tag
                >
                <el-tag
                  v-else-if="scope.row.device_status == 2"
                  disable-transitions
                  type="info"
                  >报废</el-tag
                >
                <el-tag
                  v-else-if="scope.row.device_status == 3"
                  style="color: #52d6c0"
                  disable-transitions
                  type="info"
                  >检修</el-tag
                >
                <el-tag
                  v-else-if="scope.row.device_status == 4"
                  disable-transitions
                  type="danger"
                  >故障</el-tag
                >
                <el-tag
                  v-else-if="scope.row.device_status == 5"
                  style="color: #fcb642"
                  disable-transitions
                  type="info"
                  >空闲</el-tag
                >
                                <el-tag v-if="scope.row.device_status == 1" disable-transitions type="success">运行</el-tag>
                                <el-tag v-else-if="scope.row.device_status == 2" disable-transitions type="info">报废</el-tag>
                                <el-tag v-else-if="scope.row.device_status == 3" style="color: #52d6c0" disable-transitions
                                    type="info">检修</el-tag>
                                <el-tag v-else-if="scope.row.device_status == 4" disable-transitions type="danger">故障</el-tag>
                                <el-tag v-else-if="scope.row.device_status == 5" style="color: #fcb642" disable-transitions
                                    type="info">空闲</el-tag>
              </template>
            </el-table-column>
            <el-table-column
              prop="factory"
              label="厂家"
              :show-overflow-tooltip="true"
            >
                        <el-table-column prop="factory" label="厂家" :show-overflow-tooltip="true">
            </el-table-column>
            <!-- <el-table-column prop="inspectProject" label="检测项目">
            </el-table-column>
            <el-table-column prop="testSample" label="检验样品">
            </el-table-column>
            <el-table-column prop="user_name" label="检测人"> </el-table-column> -->
            <el-table-column prop="name" label="操作">
              <template v-slot="scope">
                <el-button
                  @click="handleClick(scope.row)"
                  type="text"
                  size="small"
                  >删除</el-button
                >
                                <el-button @click="handleClick(scope.row)" type="text" size="small">删除</el-button>
              </template>
            </el-table-column>
          </el-table>
@@ -406,7 +175,6 @@
  name: "LaboratoryManagement",
  data() {
    return {
      value: "",
      dialogVisible: false,
      checkTreeNode:{},
@@ -435,41 +203,61 @@
        name: "",
        rawInsProductId: "",
        type: "",
        // treedata:{
        //     father:'设备组1',
        // },
        equr:'',
      },
      delete:{},
      equip:1,
      rules: {
        name: [
          { required: true, message: "请输入仪器设备编号", trigger: "blur" },
          { min: 2, max: 25, message: "长度在 2 åˆ° 25 ä¸ªå­—符", trigger: "blur" }
        ],
        keeper: [
          { required: true, message: "请选择保管人", trigger: "change" }
        ],
        endMeasure: [
                    name: [{
                            required: true,
                            message: "请输入仪器设备编号",
                            trigger: "blur"
                        },
          {
                            min: 2,
                            max: 25,
                            message: "长度在 2 åˆ° 25 ä¸ªå­—符",
                            trigger: "blur"
                        }
                    ],
                    keeper: [{
                        required: true,
                        message: "请选择保管人",
                        trigger: "change"
                    }],
                    endMeasure: [{
            type: "date",
            required: true,
            message: "请选择计量截至有效期",
            trigger: "change"
                    }],
                    deviceStatus: [{
                        required: true,
                        message: "请选择设备状态",
                        trigger: "change"
                    }],
                    factory: [{
                            required: true,
                            message: "请输入厂家",
                            trigger: "blur"
                        },
                        {
                            min: 2,
                            max: 25,
                            message: "长度在 2 åˆ° 50 ä¸ªå­—符",
                            trigger: "blur"
          }
        ],
        deviceStatus: [
          { required: true, message: "请选择设备状态", trigger: "change" }
        ],
        factory: [
          { required: true, message: "请输入厂家", trigger: "blur" },
          { min: 2, max: 25, message: "长度在 2 åˆ° 50 ä¸ªå­—符", trigger: "blur" }
        ],
        rawInsProductId: [
          { required: true, message: "请选择检测项目", trigger: "change" }
        ],
        type: [{ required: true, message: "请选择设备用途", trigger: "change" }]
                    rawInsProductId: [{
                        required: true,
                        message: "请选择检测项目",
                        trigger: "change"
                    }],
                    type: [{
                        required: true,
                        message: "请选择设备用途",
                        trigger: "change"
                    }]
      },
      pickerOptions: {
        //禁用当前日期之前的日期
@@ -477,51 +265,19 @@
          //Date.now()是javascript中的内置函数,它返回自1970å¹´1月1日00:00:00 UTC以来经过的毫秒数。
          return time.getTime() < Date.now() - 8.64e7;
        }
      }
                },
    };
  },
  mounted() {
    // åˆå§‹åŒ–调用二级树
    this.twoTreeApi();
    // åˆå§‹åŒ–调用表格数据
    // this.tableDataApi();
    // this.selectDevice()
  },
  methods: {
    handleNodeClick(val) {
      this.checkTreeNode = val
      console.log(this.checkTreeNode);
        this.selectDevice()
    },
    selectInput(){
    },
    // querySearch(queryString, cb) {
    //   console.log(this.equaip);
    //     var restaurants = this.equaip;
    //     var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
    //     // è°ƒç”¨ callback è¿”回建议列表的数据
    //     cb(results);
    //   },
    //   createFilter(queryString) {
    //     return (restaurant) => {
    //       return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
    //     };
    //   },
    staueValueChange() {
      this.selectDevice()
      // this.tableData = [];
      // let val = 1;
      // if (this.radio1 === "false") {
      //   val = 2;
      // }
      // this.$axios
      //   .get(this.$api.url.tableDeviceList, {
      //     params: { type: val, deviceStatue: this.staue_value }
      //   })
      //   .then(res => {
      //     this.tableData = res.data;
      //   });
    },
    // åŠ¨æ€æŽ§åˆ¶å±•å¼€ä¸Žæ”¶èµ·å’Œåˆ‡æ¢å¯¹åº”å›¾æ ‡
    isC() {
@@ -535,25 +291,6 @@
      }
    },
    submitForm() {
      // this.$refs.ruleForm.validate(valid => {
      //   if (valid) {
      //     this.ruleForm.father = this.value;
      //     this.$axios
      //       .post(this.$api.url.addDeviceInstrument, this.ruleForm, {
      //         headers: {
      //           "Content-Type": "application/json"
      //         }
      //       })
      //       .then(res => {
      //         this.keeperList = res.data;
      //         // æˆåŠŸå…³é—­æ–°å¢žå¼¹å‡ºæ¡†
      //         this.dialogVisible = false;
      //       });
      //   } else {
      //     console.log("error submit!!");
      //     return false;
      //   }
      // });
      this.addApi()
      this.dialogVisible = false;
    },
@@ -582,18 +319,9 @@
        })
        .then(res =>{
          this.equaip = res.data
          // res.data.forEach(item=>{
          //   let obj={
          //     id: item,
          //     value: item
          //   }
          //   this.equaip.push(obj)
            console.log(this.equaip);
          // })
        })
    },
    RadioChange(val){
      console.log(val);
        this.equip = val
        this.twoTreeApi()
    },
@@ -603,24 +331,13 @@
            type:this.equip,
        }
      }).then(res => {
        // let list = res.data;
        // list.forEach(i => {
        //   if (i.name === undefined) {
        //     i.name = i.children[0].name;
        //     i.id = i.children[0].id;
        //     i.children = undefined;
        //   }
        // });
        this.towTree = res.data;
        this.$nextTick(() => {
                this.$refs.tree.setCurrentKey(this.towTree[0].father) // é»˜è®¤é€‰ä¸­èŠ‚ç‚¹ç¬¬ä¸€ä¸ª
            })
      console.log(this.towTree);
        let one=this.towTree[0]
        console.log(one);
        let name =one.father
        this.checkTreeNode.father = name
              console.log(name);
        this.selectDeviceStart(name)
        });
    },
@@ -633,7 +350,6 @@
          message:this.codeNameModel,
        }
      }).then(res =>{
        console.log(res);
        this.tableData = res.data
      }, {
                headers: {
@@ -641,7 +357,6 @@
                      }
      })
    },
    selectDevice() {//右边数据
      this.$axios.get(this.$api.url.selectDevice,{
        params:{
@@ -651,7 +366,6 @@
          message:this.codeNameModel,
        }
      }).then(res =>{
        console.log(res);
        this.tableData = res.data
      }, {
                headers: {
@@ -669,23 +383,17 @@
        keeper:this.ruleForm.keeper,
        name:this.ruleForm.name,
        type:this.ruleForm.type,
      }, {headers: {"Content-Type": "application/json"}
                }, {
                    headers: {
                        "Content-Type": "application/json"
                    }
    }).then(res =>{
      this.selectDevice()
                    this.twoTreeApi();
      this.$message.success('新增成功')
      this.ruleForm = {}
                    this.$refs.ruleForm.resetFields()
    })
    },
    // tableDataApi() {
    //   this.$axios.get(this.$api.url.tableDeviceList).then(res => {
    //     this.tableData = res.data;
    //   });
    // },
    reset() {
      // this.tableDataApi();
      // this.radio1 = "true";
      // this.codeNameModel = "";
      // this.staue_value = "";
      this.staue_value = ""
      this.codeNameModel = ""
      this.selectDevice()
@@ -698,7 +406,10 @@
      }
      this.$axios
        .get(this.$api.url.towTree, {
          params: { type: val, search_class: this.search_class }
                        params: {
                            type: val,
                            search_class: this.search_class
                        }
        })
        .then(res => {
          this.towTree = res.data;
@@ -706,24 +417,6 @@
    },
    selectSearch() {
      this.selectDevice()
      // this.tableData = [];
      // if (this.radio1 === "false") {
      //   this.$axios
      //     .get(this.$api.url.tableDeviceList, {
      //       params: { type: 1, codeNameModel: this.codeNameModel }
      //     })
      //     .then(res => {
      //       this.tableData = res.data;
      //     });
      // } else if (this.radio1 === "true") {
      //   this.$axios
      //     .get(this.$api.url.tableDeviceList, {
      //       params: { type: 2, codeNameModel: this.codeNameModel }
      //     })
      //     .then(res => {
      //       this.tableData = res.data;
      //     });
      // }
    },
    delDeviceById() {
      this.$axios.post(this.$api.url.delDeviceById,{
@@ -733,31 +426,9 @@
      });
    },
    handleClick(row) {
      console.log(row);
        this.delete = row
        this.delDeviceById()
        this.selectDevice()
      // this.$confirm("此操作将永久删除该设备, æ˜¯å¦ç»§ç»­?", "提示", {
      //   confirmButtonText: "确定",
      //   cancelButtonText: "取消",
      //   type: "warning"
      // }).then(() => {
      //   this.$axios
      //     .delete(this.$api.url.deleteDevice, { params: { deviceId: row.id } })
      //     .then(res => {
      //       this.$message({
      //         message: res.message,
      //         type: "success"
      //       });
      //       datas.splice(index, 1);
      //     })
      //     .catch(err => {
      //       this.$message({
      //         message: err.message,
      //         type: "warning"
      //       });
      //     });
      // });
    },
    remove(node, data) {
      this.$confirm("此操作将永久删除该设备, æ˜¯å¦ç»§ç»­?", "提示", {
@@ -765,16 +436,17 @@
        cancelButtonText: "取消",
        type: "warning"
      }).then(() => {
        console.log(`output->data`, data);
        let val = 1;
        if (this.radio1 === "false") {
          val = 2;
        }
        if (data.id === undefined) {
          console.log(`output->执行力`, "+++++++++++++++");
          this.$axios
            .delete(this.$api.url.deleteIdorFather, {
              params: { deviceFather: data.name, type: val }
                                params: {
                                    deviceFather: data.name,
                                    type: val
                                }
            })
            .then(res => {
              if (res.code === 200) {
@@ -792,9 +464,12 @@
              }
            });
        } else if (data.id !== undefined) {
          console.log(`output->执行力`, "----------------");
          this.$axios
            .delete(this.$api.url.deleteIdorFather, { params: { id: data.id } })
                            .delete(this.$api.url.deleteIdorFather, {
                                params: {
                                    id: data.id
                                }
                            })
            .then(res => {
              if (res.code === 200) {
                this.$message({
@@ -813,9 +488,7 @@
        }
      });
    },
  },
  watch: {
    "ruleForm.rawInsProductId": {
      //监听ruleForm.rawInsProductId
@@ -823,7 +496,9 @@
        if (newVal != null && newVal !== "") {
          this.$axios
            .get(this.$api.url.selectDeviceInspectMessage, {
              params: { inspectId: newVal }
                                params: {
                                    inspectId: newVal
                                }
            })
            .then(res => {
              this.showCodeNameModel = res.data;
@@ -831,17 +506,6 @@
        }
      }
    },
    // dialogVisible: {
    //   handler: function(newVal, oldVal) {
    //     if (newVal) {
    //       // æˆåŠŸæ¸…ç©ºè¾“å…¥å†…å®¹
    //       this.ruleForm = {};
    //       this.value = "";
    //       this.showCodeNameModel = {};
    //       this.$refs.ruleForm.resetFields();
    //     }
    //   }
    // },
    radio1: {
      handler: function(newVal, oldVal) {
        this.towTree = [];
@@ -851,7 +515,11 @@
          this.tableDataApi();
        } else if (newVal === "false") {
          this.$axios
            .get(this.$api.url.towTree, { params: { type: 2 } })
                            .get(this.$api.url.towTree, {
                                params: {
                                    type: 2
                                }
                            })
            .then(res => {
              let list = res.data;
              list.forEach(i => {
@@ -864,7 +532,11 @@
              this.towTree = res.data;
            });
          this.$axios
            .get(this.$api.url.tableDeviceList, { params: { type: 2 } })
                            .get(this.$api.url.tableDeviceList, {
                                params: {
                                    type: 2
                                }
                            })
            .then(res => {
              this.tableData = res.data;
            });
@@ -880,10 +552,12 @@
  border-color: transparent;
  background-color: transparent;
}
.el-tag.el-tag:hover {
  border-color: transparent;
  background-color: transparent;
}
.el-form-item >>> .el-form-item__error {
  color: #f56c6c;
  font-size: 12px;
@@ -893,63 +567,76 @@
  top: 100%;
  left: 18px;
}
/deep/ .el-icon-arrow-left {
  display: flex;
  line-height: 60px !important;
  justify-content: center;
}
/deep/ .el-icon-arrow-right {
  display: flex;
  line-height: 60px !important;
  justify-content: center;
}
.top_left_name {
  padding-left: 20px;
  line-height: 32px;
}
.left_row {
  height: calc(100vh - 165px);
  margin-top: 9px;
}
.frame_input {
  width: 90%;
  margin: 10px 0;
  transition: 1.5s;
}
.table_top_div {
  margin-left: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.el-dialog__footer {
  padding: 0px 20px 20px;
  text-align: right;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.table_top {
  float: right;
  width: 224px;
  margin-right: 52px;
}
.main_table_div {
  background-color: #fbfbfd;
  height: 100%;
}
.dialog-footer {
  display: block;
  text-align: center;
}
.table_div {
  padding-left: 5px;
  transition: 1s;
  float: left;
  position: relative;
}
.table_top_input {
  width: 20%;
  margin-right: 24px;
}
.custom-tree-node {
  flex: 1;
  display: flex;
@@ -959,23 +646,29 @@
  padding-right: 8px;
  width: 250px;
}
.el-tree {
  width: 280px;
  margin: 0 10px;
}
.custom-tree-node span {
  font-size: 14px !important;
}
.el-icon-delete {
  display: none;
  color: #004ea2;
}
.custom-tree-node:hover .el-icon-delete {
  display: inline;
}
.node_i {
  color: orange;
}
::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background: #f2f2f2;
  border: 0 !important;
@@ -984,6 +677,7 @@
  outline: none;
  box-shadow: none;
}
.class_sidebar {
  overflow: hidden;
  height: calc(100vh - 175px);
@@ -992,6 +686,7 @@
  float: left;
  background-color: #fdfdfe;
}
.box_bgd {
  width: 12px;
  height: 60px;
@@ -1000,28 +695,35 @@
  top: 40%;
  left: -10px;
}
.corner {
  height: 60px;
  background: #ebebec;
}
.upper_triangle {
  width: 0px; /*  å®½é«˜è®¾ç½®ä¸º0,很重要,否则达不到效果 */
        width: 0px;
        /*  å®½é«˜è®¾ç½®ä¸º0,很重要,否则达不到效果 */
  height: 0px;
  border: 6px solid #ebebec;
  border-left-color: transparent;
  border-top-color: transparent;
}
.under_triangle {
  width: 0px; /*  å®½é«˜è®¾ç½®ä¸º0,很重要,否则达不到效果 */
        width: 0px;
        /*  å®½é«˜è®¾ç½®ä¸º0,很重要,否则达不到效果 */
  height: 0px;
  border: 6px solid #ebebec;
  border-left-color: transparent;
  border-bottom-color: transparent;
}
.el-radio-button__inner {
  border: 1px solid #ececed;
  line-height: 14px;
}
.el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background: #fdfdfe;
  border: 1px solid #004da2;
@@ -1044,6 +746,7 @@
      box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41);
      padding: 0 12px;
    }
    .laboratoryMangement .table_top_div .el-button {
      height: 32px;
      border: 1px solid rgba(190, 190, 190, 0.44);
src/components/view/mbom.vue
@@ -18,10 +18,7 @@
                                <el-form-item label="类型:">
                                    <el-select v-model="search.type" size="small" placeholder="请选择"
                                        style="width: 224px;margin-right: 30px;">
                                        <el-option label="橡胶连接器" :value="0"></el-option>
                                        <el-option label="金属连接器" :value="1"></el-option>
                                        <el-option label="湿插拔电连接器" :value="2"></el-option>
                                        <el-option label="分支组件" :value="3"></el-option>
                                        <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
@@ -53,11 +50,6 @@
                        <el-table border :data="tableapi" height="calc(80vh - 250px)" style="width: 100%">
                            <el-table-column type="index" label="序号" width="70">
                            </el-table-column>
                            <!-- <el-table-column prop="date" label="供应商名称" width="180">
                                <template slot-scope="scope">
                                    <el-input v-model="scope.row.supplier" placeholder=""></el-input>
                                </template>
                            </el-table-column> -->
                            <el-table-column prop="" label="质量追溯号" width="180">
                                <template slot-scope="scope">
                                    <el-input v-model="scope.row.qualityTraceability" placeholder=""></el-input>
@@ -91,31 +83,19 @@
            <span>类型:</span>
            <el-select v-model="search.type" size="small" @change="TYpe" placeholder="请选择"
                style="width: 224px;margin-right: 30px;">
                <el-option label="橡胶连接器" :value="0"></el-option>
                <el-option label="金属连接器" :value="1"></el-option>
                <el-option label="湿插拔电连接器" :value="2"></el-option>
                <el-option label="分支组件" :value="3"></el-option>
                <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
            </el-select>
            <!-- <span>原材料名称:</span>
            <el-select v-model="search.name" size="small" placeholder="请选择" style="width: 224px;margin-right: 30px;">
                <el-option v-for="(a, ai) in process" key="ai" :label="a.name" :value="a.id"></el-option>
            </el-select>
            <el-button size="mini"><span>重 ç½®</span></el-button>
            <el-button size="mini" type="primary" style="background: #004EA2;"><span>查询</span></el-button> -->
        </div>
        <div class="thing">
            <div class="left">
                <el-input v-model="search.technology" @input="query" suffix-icon="el-icon-search" placeholder="请输入搜索内容"
                    size="small" clearable></el-input>
                <el-tree :data="list" ref="tree" style="overflow-y: auto;" highlight-current
                <el-tree :data="list" ref="tree" style="overflow-y: auto;padding-top: 8px;" highlight-current
                    :props="{children: 'children',label: 'name'}" node-key="name" default-expand-all
                    @node-click="handleNodeClick">
                    <div class="custom-tree-node" slot-scope="{ node, data }">
                        <span><i :class="`node_i ${data.code != '[2]'?'el-icon-folder-opened':'el-icon-tickets'}`"></i>
                            {{data.code}} {{ data.name }}</span>
                        <!-- <el-button type="text" size="mini" @click.stop="remove(node, data)">
                            <i class="el-icon-delete"></i>
                        </el-button> -->
                    </div>
                </el-tree>
            </div>
@@ -132,19 +112,12 @@
                    </el-table-column>
                    <el-table-column label="操作" width="130">
                        <template slot-scope="scope">
                            <!-- <span class="table_do" @click="upContent(scope.row)">编辑&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> -->
                            <span class="table_do" @click="deleteRow(scope.$index, scope.row)">删除</span>
                        </template>
                    </el-table-column>
                </el-table>
            </div>
        </div>
        <!-- <el-dialog title="编辑记录内容" :visible.sync="upDia" width="500px">
            <div class="body">
            </div>
        </el-dialog> -->
    </div>
</template>
<script>
@@ -173,16 +146,25 @@
                upData: {},
                form: {},
                dialogVisible: false,
                typeselect: 0,
                typeselect: '',
                input: '',
                craftapi: [],
                bigType: []
            }
        },
        mounted() {
            this.selectAllleft()
            this.selectAllMbom()
            this.chooseType()
        },
        methods: {
            chooseType() {
                this.$axios.get(this.$api.url.chooseType).then(res => {
                    this.bigType = res.data
                    this.typeselect = res.data[0]
                    this.search.type = res.data[0]
                    this.selectAllleft()
                    this.selectAllMbom()
                })
            },
            selectDataList() {
                this.list.forEach(a => {
                    a.code = '[1]'
@@ -257,12 +239,12 @@
            //左边
            selectAllleft() {
            this.$axios.get(this.$api.url.selectAllleft,{
                params:{type:this.typeselect,
                    params: {
                        type: this.typeselect,
                        message:this.search.technology
                }
            }).then(res => {
                this.list = res.data;
                console.log(this.list);
                this.selectDataList()
                this.$nextTick(() => {
                this.$refs.tree.setCurrentKey(this.list[0].children[0].name) // é»˜è®¤é€‰ä¸­èŠ‚ç‚¹ç¬¬ä¸€ä¸ª
@@ -270,9 +252,7 @@
                let one=this.list.filter(item=>{
                return item.children.length>0
                })[0]
                console.log(one);
                let name=one.children[0].id
                console.log(name);
                this.checkTreeNode.id = name
                this.selectAllMbomStart(name)
                this.selectDataList();
@@ -284,10 +264,11 @@
            },
            selectAllMbomStart(name) {
            this.$axios.get(this.$api.url.selectAllMbom,{
                params:{id:name}
                    params: {
                        id: name
                    }
            }).then(res => {
                this.tableData = res.data;
                console.log(this.tableData);
            }, {
                headers: {
                        "Content-Type": "application/json"
@@ -302,7 +283,6 @@
                    }
                }).then(res => {
                    this.tableData = res.data;
                    console.log(this.tableData);
                }, {
                    headers: {
                        "Content-Type": "application/json"
@@ -311,8 +291,6 @@
            },
            handleNodeClick(data){
                this.checkTreeNode = data
                console.log(data);
                console.log(this.checkTreeNode.id);
                this.selectAllMbom()
            },
            handleClose(done) {
@@ -363,7 +341,6 @@
                    return el.id
                })
                this.delete = cc.join(',')
                console.log(this.delete);
                this.delAllMbom()
                this.$message.success('删除完成')
            },
@@ -371,10 +348,7 @@
                this.selects = val;
            },
            deleteRow(index, rows) {
                console.log(rows);
                // this.tableData.splice(index,1)
                this.upData.id = rows.id
                console.log(this.upData);
                this.material(index)
            },
src/components/view/processInspection.vue
@@ -25,17 +25,16 @@
        <el-input size="small" style="width: 224px;margin-right: 30px;" v-model="search.techfather"
          placeholder="请输入工序"></el-input>
        <el-button size="mini"><span>重 ç½®</span></el-button>
        <el-button size="mini" @click="searchPro" type="primary" style="background: #004EA2;"><span>查 è¯¢</span></el-button>
                <el-button size="mini" @click="searchPro" type="primary" style="background: #004EA2;"><span>查
                        è¯¢</span></el-button>
      </div>
      <div class="content-body">
        <div class="inspectionTable">
          <el-table ref="inspectionTable" height="calc(100vh - 320px)" :cell-style="{ textAlign: 'center' }"
            :header-cell-style="{
                    <el-table ref="inspectionTable" height="calc(100vh - 320px)" :header-cell-style="{
              border: '0px',
              background: '#f5f7fa',
              color: '#606266',
              boxShadow: 'inset 0 1px 0 #ebeef5',
              textAlign: 'center'
            }" border :data="inspectionTable" style="width: 100%">
            <el-table-column type="selection" width="50"> </el-table-column>
            <el-table-column label="序号" type="index" width="60"></el-table-column>
@@ -46,21 +45,23 @@
            <el-table-column prop="techname" label="工艺名称" min-width="70" />
            <el-table-column prop="unit" label="单位" min-width="50" />
            <el-table-column prop="quantity" label="数量" min-width="50" />
            <el-table-column prop="createTime" label="报检日期" min-width="60" />
                        <el-table-column prop="createTime" label="报检日期" min-width="70" />
            <el-table-column prop="name" label="报检人" min-width="50" />
            <el-table-column prop="updateTime" label="检测日期" min-width="60" />
            <el-table-column prop="result" label="合格状态" min-width="80">
                        <el-table-column prop="updateTime" label="检测日期" min-width="70" />
                        <el-table-column prop="result" label="合格状态" min-width="60">
              <template slot-scope="scope">
                <span style="color: #34BD66;" v-if="scope.row.result == 1">合格</span>
                <span style="color: #E84738;" v-else-if="scope.row.result == 0">不合格</span>
              </template>
            </el-table-column>
            <el-table-column label="操作" min-width="80">
                        <el-table-column label="操作" min-width="75">
              <template slot-scope="scope">
                <el-button type="text" size="small" @click="handleClick(scope.row)" style="margin-left: 0;">详情</el-button>
                <el-button type="text" size="small">查看</el-button>
                                <el-button type="text" size="small" @click="handleClick(scope.row)" style="margin-left: 0;"><span
                                        style="font-size: 8px;">详情</span></el-button>
                                <el-button type="text" size="small" style="margin-left: 0;"><span
                                        style="font-size: 8px;">查看</span></el-button>
                <el-button v-if="scope.row.result == null" type="text" size="small" style="margin-left: 0;"
                  @click="updateInsInfo(scope.row)">编辑</el-button>
                                    @click="updateInsInfo(scope.row)"><span style="font-size: 8px;">编辑</span></el-button>
              </template>
            </el-table-column>
          </el-table>
@@ -68,8 +69,8 @@
        <!-- åˆ†é¡µå™¨ -->
        <div class="pagination">
          <el-pagination :current-page="currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="pageSize"
            layout="total, sizes, prev, pager, next, jumper" :total="inspectionTableTotal" @size-change="handleSizeChange"
            @current-change="handleCurrentChange" />
                        layout="total, sizes, prev, pager, next, jumper" :total="inspectionTableTotal"
                        @size-change="handleSizeChange" @current-change="handleCurrentChange" />
        </div>
      </div>
    </div>
@@ -98,9 +99,10 @@
              </el-col>
              <el-col :span="7">
                <el-form-item label="产品名称:">
                  <el-select style="width: 210px;" size="small" @change="selectSample" v-model="processInspectVo.material"
                    placeholder="请选择产品">
                    <el-option v-for="item in optionsSamplename" :key="item.value" :label="item.name" :value="item.name">
                                    <el-select style="width: 210px;" size="small" @change="selectSample"
                                        v-model="processInspectVo.material" placeholder="请选择产品">
                                        <el-option v-for="item in optionsSamplename" :key="item.value" :label="item.name"
                                            :value="item.name">
                    </el-option>
                  </el-select>
                </el-form-item>
@@ -148,7 +150,8 @@
              </el-col>
              <el-col :span="7">
                <el-form-item label="数量:">
                  <el-input style="width: 210px;" size="small" v-model="processInspectVo.quantity" placeholder="请输入数量" />
                                    <el-input style="width: 210px;" size="small" v-model="processInspectVo.quantity"
                                        placeholder="请输入数量" />
                </el-form-item>
              </el-col>
              <el-col :span="10" style="display: flex;justify-content: end;">
@@ -192,21 +195,16 @@
          </el-table-column>
          <el-table-column prop="dname" label="试验设备" min-width="100">
            <template slot-scope="scope">
              <el-button v-if="!scope.row.isSelectDevice" type="text" @click="clickTableSelect(scope)">{{
                scope.row.dname == null ? "请选择" : scope.row.dname
                            <el-button type="text" @click="clickTableSelect(scope)">{{
                              scope.row.deviceId == null ? "请选择" : scope.row.deviceName
              }}</el-button>
              <el-select v-if="scope.row.isSelectDevice" style="width: 100%;" @change="clickNodeSure(scope.row)"
                v-model="filterText" placeholder="请选择">
                <el-option v-for="item in materialOptions" :key="item.id" :label="item.device" :value="item.id">
                </el-option>
              </el-select>
            </template>
          </el-table-column>
          <el-table-column label="结论">
            <template slot-scope="scope">
              <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-show="scope.row.result === null">暂未结论</span>
                            <span v-show="scope.row.result === null">{{null}}</span>
            </template>
          </el-table-column>
          <!-- <el-table-column v-if="detailId == null" label="操作" width="100">
@@ -248,7 +246,10 @@
import processInspectionUpdate from '../view/processInspectionUpdate.vue'
import processInspectionLook from '../view/processInspectionLook.vue'
export default {
  components: { processInspectionUpdate, processInspectionLook },
        components: {
            processInspectionUpdate,
            processInspectionLook
        },
  data() {
    return {
      showUp: false,
@@ -289,8 +290,7 @@
        unit: null
      },
      InspectioniD: null,
      addInspectionform: [
        {
                addInspectionform: [{
          number: "",
          username: "",
          projectname: "",
@@ -303,18 +303,15 @@
          group: "",
          worker: "",
          machine: ""
        }]
      ,
                }],
      inspectionItems: [], // æ–°å¢žæ£€éªŒé¡¹ç›®è¡¨æ ¼
      inspectionResultForm: [
        {
                inspectionResultForm: [{
          id: "",
          name: "",
          inspecter: "",
          conclusion: "",
          operation: ""
        }
      ],
                }],
      options: [],
      value: "",
      rowList: [],
@@ -406,10 +403,7 @@
    },
    // ç‚¹å‡»è¡¨æ ¼é€‰æ‹©è§¦å‘
    clickTableSelect(scope) {
      // this.centerDialogVisible = true;
      if (this.clickSelectDevice.index != null) {
        this.$set(this.inspectionItems[this.clickSelectDevice.index], 'isSelectDevice', false)
      }
                this.centerDialogVisible = true;
      this.clickSelectDevice.index = scope.$index;
      this.clickSelectDevice.rpId = scope.row.id;
      this.getOptions(scope.row)
@@ -469,7 +463,9 @@
          inspectionItemId: row.id,
          inspectionValue: str.slice(0, -1)
        }, {
          headers: { "Content-Type": "application/json" }
                        headers: {
                            "Content-Type": "application/json"
                        }
        }).then(res => {
          if (res.message === '内控值输入格式有问题!') {
            this.$message({
@@ -493,7 +489,12 @@
      this.search.countSize = val;
      this.defaultInitializationTable();
    },
    handleSpanMethod({ row, column, rowIndex, columnIndex }) {
            handleSpanMethod({
                row,
                column,
                rowIndex,
                columnIndex
            }) {
      if (columnIndex === 0) {
        const _row = this.spanArr[rowIndex];
        const _col = _row > 0 ? 1 : 0;
@@ -554,7 +555,9 @@
        techId: Number(val.technologyId),
        unit: val.unit
      }, {
        headers: { "Content-Type": "application/json" }
                    headers: {
                        "Content-Type": "application/json"
                    }
      }).then(res => {
        if (res.code === 201) {
          this.$message({
@@ -690,8 +693,7 @@
    },
    // åˆ é™¤æ£€éªŒå€¼åˆ—
    clickDeleteInspectionColumn() {
      if (this.empiricalValueAdd - 1 === 0) {
      } else {
                if (this.empiricalValueAdd - 1 === 0) {} else {
        if (this.empiricalValueAddMaxNumber != this.empiricalValueAdd - 1) {
          this.empiricalValueAdd = this.empiricalValueAdd - 1;
          this.inspectionItems.forEach(i => {
src/components/view/processInspectionUpdate.vue
@@ -6,8 +6,6 @@
                <el-col :span="12">编辑过程检验单</el-col>
                <el-col :span="12" style="text-align: right;">
                    <!-- ç‚¹å‡»è¿”回,当前页面值为false -->
                    <!-- <el-button type="primary" size="mini" style="background: #004EA2; "
              icon="el-icon-circle-plus-outline">新增</el-button> -->
                    <el-button @click="combackFather" type="primary" size="mini" icon="el-icon-back"
                        style="background: #004EA2; ">返回</el-button>
                </el-col>
@@ -26,31 +24,29 @@
                            <el-form-item label="产品名称:">
                                <el-select style="width: 210px;" size="small" disabled @change="selectSample"
                                    v-model="processInspectVo.material" placeholder="请选择产品">
                                    <el-option v-for="item in optionsSamplename" :key="item.value" :label="item.name"
                                        :value="item.name">
                                    <el-option v-for="item in optionsSamplename" :key="item.value" :label="item.name" :value="item.name">
                                    </el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="7">
                            <el-form-item label="产品编码:">
                                <el-input style="width: 210px;" size="small" disabled
                                    v-model="processInspectVo.materialCode" placeholder="请输入产品编码" />
                                <el-input style="width: 210px;" size="small" disabled v-model="processInspectVo.materialCode"
                                    placeholder="请输入产品编码" />
                            </el-form-item>
                        </el-col>
                    </el-row>
                    <el-row :gutter="230">
                        <el-col :span="7">
                            <el-form-item label="规格型号:">
                                <el-input style="width: 210px;" size="small" disabled
                                    v-model="processInspectVo.specificationsModel" placeholder="请输入规格型号" />
                                <el-input style="width: 210px;" size="small" disabled v-model="processInspectVo.specificationsModel"
                                    placeholder="请输入规格型号" />
                            </el-form-item>
                        </el-col>
                        <el-col :span="7">
                            <el-form-item label="工序名称:">
                                <el-select @change="changeOptionSoptionSprocesses" disabled
                                    v-model="processInspectVo.techfather" placeholder="请选择" style="width: 210px;"
                                    size="small">
                                <el-select @change="changeOptionSoptionSprocesses" disabled v-model="processInspectVo.techfather"
                                    placeholder="请选择" style="width: 210px;" size="small">
                                    <el-option v-for="item in optionSoptionSprocesses" :key="item.name" :label="item.name"
                                        :value="item.name">
                                    </el-option>
@@ -59,8 +55,8 @@
                        </el-col>
                        <el-col :span="7">
                            <el-form-item label="工艺名称:">
                                <el-select v-model="processInspectVo.techname" disabled placeholder="请选择"
                                    style="width: 210px;" size="small">
                                <el-select v-model="processInspectVo.techname" disabled placeholder="请选择" style="width: 210px;"
                                    size="small">
                                    <el-option v-for="item in optionTechnology" :key="item.id" :label="item.name"
                                        :value="item.id + '-' + item.name">
                                    </el-option>
@@ -93,8 +89,7 @@
                <el-col :span="12" class="inspectionProject_span">检验项目</el-col>
                <el-col v-if="!isUpBtn" :span="12" class="inspectionProject_span">
                    <el-button size="mini" @click="clickDeleteInspectionColumn()">删除检验值列</el-button>
                    <el-button style="margin-right: 30px;" size="mini"
                        @click="clickAddInspectionColumn()">添加检验值列</el-button>
                    <el-button style="margin-right: 30px;" size="mini" @click="clickAddInspectionColumn()">添加检验值列</el-button>
                    <!-- <el-button
              size="mini"
              style="margin-right: 30px;"
@@ -124,15 +119,9 @@
                <el-table-column prop="dname" label="试验设备" min-width="100">
                    <template slot-scope="scope">
                        <el-col>
                            <el-button v-if="!scope.row.isSelectDevice" type="text" @click="clickTableSelect(scope)">{{
                                scope.row.dname == null ? "请选择" : scope.row.dname
                            }}</el-button>
                            <el-select @blur="blurNode(scope)" v-else-if="scope.row.isSelectDevice" style="width: 100%;"
                                @change="clickNodeSure(scope.row)" v-model="filterText" placeholder="请选择">
                                <el-option v-for="item in materialOptions" :key="item.id" :label="item.device"
                                    :value="item.id">
                                </el-option>
                            </el-select>
                            <el-button type="text" @click="clickTableSelect(scope)">
                                {{scope.row.dname == null ? "请选择" : scope.row.dname}}
                            </el-button>
                        </el-col>
                    </template>
                </el-table-column>
@@ -140,7 +129,7 @@
                    <template slot-scope="scope">
                        <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-show="scope.row.result === null">暂未结论</span>
                        <span v-show="scope.row.result === null">{{null}}</span>
                    </template>
                </el-table-column>
                <!-- <el-table-column v-if="detailId == null" label="操作" width="100">
@@ -174,15 +163,19 @@
        </div>
        <el-dialog title="请选择设备" :visible.sync="centerDialogVisible" width="20%">
            <div class="div_device_dialog">
                <!-- <el-select style="width: 100%;" @change="clickNodeSure()" v-model="filterText" placeholder="请选择">
                    <el-option v-for="item in materialOptions" :key="item.id" :label="item.device" :value="item.id">
                    </el-option>
                </el-select> -->
                <el-input placeholder="输入关键字进行过滤" v-model="filterText" style="margin-bottom: 6px;">
                </el-input>
                <el-tree class="filter-tree" :data="materialOptions" :props="defaultProps" default-expand-all highlight-current
                    @node-click="nodeClick" :filter-node-method="filterNode" ref="tree">
                    <div class="custom-tree-node" slot-scope="{ data }">
                        <span><i :class="`node_i ${data.children ? 'el-icon-folder-opened' : 'el-icon-tickets'}`"></i>{{ data.name }}</span>
            </div>
            <!-- <span slot="footer" class="dialog-footer">
                </el-tree>
            </div>
            <span slot="footer" class="dialog-footer">
                <el-button @click="centerDialogVisible = false">取 æ¶ˆ</el-button>
                <el-button type="primary" @click="clickNodeSure()">ç¡® å®š</el-button>
            </span> -->
            </span>
        </el-dialog>
    </div>
</template>
@@ -228,8 +221,7 @@
                unit: null
            },
            InspectioniD: null,
            addInspectionform: [
                {
                addInspectionform: [{
                    number: "",
                    username: "",
                    projectname: "",
@@ -242,18 +234,15 @@
                    group: "",
                    worker: "",
                    machine: ""
                }]
            ,
                }],
            inspectionItems: [], // æ–°å¢žæ£€éªŒé¡¹ç›®è¡¨æ ¼
            inspectionResultForm: [
                {
                inspectionResultForm: [{
                    id: "",
                    name: "",
                    inspecter: "",
                    conclusion: "",
                    operation: ""
                }
            ],
                }],
            options: [],
            value: "",
            rowList: [],
@@ -355,7 +344,6 @@
        },
        handleClick() { },
        updateInsInfo(row) {
            console.log(row);
            this.row = row
            this.showUp = true
        },
@@ -370,7 +358,6 @@
        },
        // èŽ·å–è®¾å¤‡æ ‘å†…å®¹
        getOptions(row) {
            this.filterText = 0
            this.$axios.get(this.$api.url.inspectionItemChooseDev, {
                params: {
                    father: row.father,
@@ -387,7 +374,6 @@
                    return
                }
                row.isSelectDevice = true
                this.filterText = row.did
            });
        },
        //返回
@@ -396,52 +382,34 @@
        },
        // ç‚¹å‡»è¡¨æ ¼é€‰æ‹©è§¦å‘
        clickTableSelect(scope) {
            // return scope;
            // this.centerDialogVisible = true;
            if (this.clickSelectDevice.index != null) {
                this.$set(this.inspectionItems[this.clickSelectDevice.index], 'isSelectDevice', false)
            }
                this.centerDialogVisible = true;
            this.clickSelectDevice.index = scope.$index;
            this.clickSelectDevice.rpId = scope.row.id;
            this.getOptions(scope.row);
        },
        // ç‚¹å‡»æ ‘里面的确定
        clickNodeSure(row) {
            console.log(row);
            let select = this.materialOptions.filter(item => {
                return item.id === this.filterText
            })[0]
            this.nodeData.id = select.id
            this.nodeData.name = select.device
            this.$axios
                .post(this.$api.url.inspectionItemUpdateDevByInsId, {
                    id: this.clickSelectDevice.rpId,
                    type: 1,
                    devId: this.nodeData.id
                })
                .then(res => {
                    row.isSelectDevice = false
                    console.log("row", row);
                    this.filterText = 0
                    this.getTableData()
            clickNodeSure() {
                if (this.detailId == null) {
                    this.projectTable[this.clickSelectDevice.index].deviceId = this.nodeData.id;
                    this.projectTable[this.clickSelectDevice.index].deviceName = this.nodeData.name;
                    this.centerDialogVisible = false;
                } else {
                    this.$axios.post(this.$api.url.inspectionItemUpdateDevByInsId, {
                        id: this.clickSelectDevice.rpId,
                        devId: this.nodeData.id,
                        type: 1
                    }).then(res => {
                        this.centerDialogVisible = false;
                        this.inspectionItems.forEach(a=>{
                            if(a.id == this.clickSelectDevice.rpId){
                                a.dname = this.nodeData.name
                            }
                        })
                });
                }
        },
        changeState(row, index) {
            if (row.did != null && row.did != '') {
                // let val = row.empiricalValueAddss.filter(item => {
                //     return item != '' && item != null
                // })
                // let eq = val.filter(item => {
                //     return /^[^><=]/.test(item)
                // })
                // if (eq.length > 0) {
                //     this.$message({
                //         message: "检测值[" + eq + "]格式首位应包含>,<或者=",
                //         type: 'warning'
                //     });
                //     return
                // }
                let str = ""
                row.empiricalValueAddss.forEach(e => {
                    str += e + ","
@@ -454,7 +422,9 @@
                    inspectionItemId: row.id,
                    inspectionValue: str.slice(0, -1)
                }, {
                    headers: { "Content-Type": "application/json" }
                        headers: {
                            "Content-Type": "application/json"
                        }
                }).then(res => {
                    row.result = res.data.result
                    row.username = res.data.username
@@ -471,7 +441,12 @@
            this.search.countSize = val;
            this.defaultInitializationTable();
        },
        handleSpanMethod({ row, column, rowIndex, columnIndex }) {
            handleSpanMethod({
                row,
                column,
                rowIndex,
                columnIndex
            }) {
            if (columnIndex === 0) {
                const _row = this.spanArr[rowIndex];
                const _col = _row > 0 ? 1 : 0;
@@ -532,7 +507,9 @@
                technologyId: val.technologyId,
                unit: val.unit
            }, {
                headers: { "Content-Type": "application/json" }
                    headers: {
                        "Content-Type": "application/json"
                    }
            }).then(res => {
                if (res.code === 201) {
                    this.$message({
@@ -583,7 +560,6 @@
                        }
                        uName.push(c['username'])
                        c.isSelectDevice = false
                        this.filterText = 0
                        arr.push(c)
                    })
                })
@@ -680,8 +656,7 @@
        },
        // åˆ é™¤æ£€éªŒå€¼åˆ—
        clickDeleteInspectionColumn() {
            if (this.empiricalValueAdd - 1 === 0) {
            } else {
                if (this.empiricalValueAdd - 1 === 0) {} else {
                if (this.empiricalValueAddMaxNumber != this.empiricalValueAdd - 1) {
                    this.empiricalValueAdd = this.empiricalValueAdd - 1;
                    this.inspectionItems.forEach(i => {
src/components/view/raw-ins.vue
@@ -82,74 +82,36 @@
      <el-row>
        <el-col :span="12" style="line-height: 32px;">原材料检验</el-col>
        <el-col :span="12" style="text-align: right;">
          <el-button
            type="primary"
            icon="el-icon-plus"
            style="background: #004EA2;"
            @click="goDetail(null)"
            >新增</el-button
          >
                    <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;"
                        @click="goDetail(null)">新增</el-button>
          <el-button icon="el-icon-download">导出</el-button>
        </el-col>
      </el-row>
    </div>
    <div class="choose">
      <span>来料日期:</span>
      <el-date-picker
        v-model="search.formTime"
        size="small"
        placeholder="请输入"
        style="width: 13vw;margin-right: 5px;"
        clearable
        value-format="yyyy-MM-dd"
      ></el-date-picker>
            <el-date-picker v-model="search.formTime" size="small" placeholder="请输入" style="width: 13vw;margin-right: 5px;"
                clearable value-format="yyyy-MM-dd"></el-date-picker>
      <span>原材料编码:</span>
      <el-input
        v-model="search.code"
        placeholder="请输入"
        size="small"
        style="width: 13vw;margin-right: 5px;"
        clearable
      ></el-input>
            <el-input v-model="search.code" placeholder="请输入" size="small" style="width: 13vw;margin-right: 5px;"
                clearable></el-input>
      <span>检测状态:</span>
      <el-select
        v-model="search.insState"
        size="small"
        placeholder="请选择"
        style="width: 13vw;margin-right: 5px;"
      >
            <el-select v-model="search.insState" size="small" placeholder="请选择" style="width: 13vw;margin-right: 5px;">
        <el-option label="全部" :value="2"></el-option>
        <el-option label="未检测" :value="0"></el-option>
        <el-option label="已检测" :value="1"></el-option>
      </el-select>
      <span>原材料名称:</span>
      <el-input
        v-model="search.name"
        size="small"
        placeholder="请输入"
        style="width: 13vw;margin-right: 5px;"
        clearable
      ></el-input>
            <el-input v-model="search.name" size="small" placeholder="请输入" style="width: 13vw;margin-right: 5px;"
                clearable></el-input>
      <el-button size="mini" @click="clean()"><span>重 ç½®</span></el-button>
      <el-button
        size="mini"
        type="primary"
        style="background: #004EA2;"
        @click="selectRawInspectsList()"
        ><span>查 è¯¢</span></el-button
      >
            <el-button size="mini" type="primary" style="background: #004EA2;" @click="selectRawInspectsList()"><span>查
                    è¯¢</span></el-button>
    </div>
    <div class="thing">
      <el-table
        :data="tableData"
        border
        style="width: 100%;overflow-y: auto;min-height: calc(100% - 50px)"
        max-height="calc(100% - 50px)"
        @selection-change="handleSelectionChange"
        default-expand-all
        :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
        row-key="id"
      >
            <el-table :data="tableData" border style="width: 100%;overflow-y: auto;min-height: calc(100% - 50px)"
                max-height="calc(100% - 50px)" @selection-change="handleSelectionChange" default-expand-all
                :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" row-key="id">
        <el-table-column type="selection" width="50"> </el-table-column>
        <el-table-column type="index" label="序号" width="70">
        </el-table-column>
@@ -165,45 +127,27 @@
        <el-table-column prop="createTime" label="检验日期"> </el-table-column>
        <el-table-column prop="createTime" label="检测状态" width="100">
          <template slot-scope="scope">
            <span style="color: #34BD66;" v-if="scope.row.ins_state == 1"
              >已检测</span
            >
            <span style="color: #E84738;" v-else-if="scope.row.ins_state == 0"
              >未检测</span
            >
                        <span style="color: #34BD66;" v-if="scope.row.ins_state == 1">已检测</span>
                        <span style="color: #E84738;" v-else-if="scope.row.ins_state == 0">未检测</span>
          </template>
        </el-table-column>
        <el-table-column prop="judge_state" label="合格状态" width="100">
          <template slot-scope="scope">
            <span style="color: #34BD66;" v-if="scope.row.judge_state == 1"
              >合格</span
            >
            <span style="color: #E84738;" v-else-if="scope.row.judge_state == 0"
              >不合格</span
            >
                        <span style="color: #34BD66;" v-if="scope.row.judge_state == 1">合格</span>
                        <span style="color: #E84738;" v-else-if="scope.row.judge_state == 0">不合格</span>
          </template>
        </el-table-column>
        <el-table-column label="操作" width="100">
          <template slot-scope="scope">
            <span class="table_do" @click="changeShowDetail(scope.row)"
              >查看</span
            >
                        <span class="table_do" @click="changeShowDetail(scope.row)">查看</span>
            <span class="table_do">打印</span>
          </template>
        </el-table-column>
      </el-table>
      <el-col
        style="height: 50px;display: flex;align-items: center;justify-content: right;"
      >
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="1"
          :page-sizes="[10, 15, 20, 30, 50]"
          :page-size="search.co"
          layout="total, sizes, prev, pager, next, jumper"
          :total="total"
        >
            <el-col style="height: 50px;display: flex;align-items: center;justify-content: right;">
                <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="1"
                    :page-sizes="[10, 15, 20, 30, 50]" :page-size="search.co" layout="total, sizes, prev, pager, next, jumper"
                    :total="total">
        </el-pagination>
      </el-col>
    </div>
@@ -245,7 +189,9 @@
    },
    selectRawInspectsList() {
      this.$axios
        .get(this.$api.url.selectRawInspectsList, { params: this.search })
                    .get(this.$api.url.selectRawInspectsList, {
                        params: this.search
                    })
        .then(res => {
          this.tableData = res.data.row;
          this.total = res.data.total;
@@ -262,7 +208,9 @@
      };
      this.selectRawInspectsList();
    },
    changeShowDetail({ id }) {
            changeShowDetail({
                id
            }) {
      this.goDetail(id);
      // console.log(id)
      // const res = await this.$axios.post(this.$api.url.selectRawInspectsListById,{params:{id}})
src/components/view/rawInsBox.vue
@@ -1,4 +1,3 @@
<style scoped>
</style>
@@ -14,15 +13,17 @@
import RawIns from './raw-ins.vue'
import RawInsDetail from './rawInsDetail.vue'
export default {
    components:{RawIns,RawInsDetail},
        components: {
            RawIns,
            RawInsDetail
        },
    data() {
        return {
            showDetail: false,
            id:0
        }
    },
    mounted(){
    },
        mounted() {},
    methods:{
        goDetail(id) {
            this.showDetail = true
src/components/view/rawInsDetail.vue
@@ -4,140 +4,74 @@
      <el-row>
        <el-col :span="12" style="line-height: 32px;">原材料检验</el-col>
        <el-col :span="12" style="text-align: right;">
          <el-button
            icon="el-icon-circle-plus-outline"
            v-show="detailId === null"
            @click="addNewRawInspect"
            style="background-color: #004ea2; color: #ffffff;"
            >提 äº¤</el-button
          >
          <el-button
            icon="el-icon-back"
            @click="
                    <el-button icon="el-icon-circle-plus-outline" v-show="detailId === null" @click="addNewRawInspect"
                        style="background-color: #004ea2; color: #ffffff;">提 äº¤</el-button>
                    <el-button icon="el-icon-back" @click="
              () => {
                goBack();
              }
            "
            >返 å›ž</el-button
          >
            ">返 å›ž</el-button>
        </el-col>
      </el-row>
    </div>
    <div
      class="raw-detail-info"
      :class="detailId === null ? 'raw-detail-info-edit' : ''"
    >
        <div class="raw-detail-info" :class="detailId === null ? 'raw-detail-info-edit' : ''">
      <el-form v-model="detailInfo" label-position="right" label-width="120px">
        <el-row>
          <el-col :span="7">
            <el-form-item label="来料日期:">
              <el-input
                v-if="detailId !== null"
                :disabled="detailId !== null"
                v-model="detailInfo.formTime"
              ></el-input>
              <el-date-picker
                v-else
                type="date"
                value-format="yyyy-MM-dd"
                v-model="detailInfo.formTime"
                placeholder="选择日期"
              >
                            <el-input v-if="detailId !== null" :disabled="detailId !== null" v-model="detailInfo.formTime"></el-input>
                            <el-date-picker v-else type="date" value-format="yyyy-MM-dd" v-model="detailInfo.formTime"
                                placeholder="选择日期">
              </el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="7">
            <el-form-item label="原材料名称:">
              <el-input
                v-if="detailId !== null"
                :disabled="detailId !== null"
                v-model="detailInfo.name"
              ></el-input>
              <el-input
                v-else
                v-model="detailInfo.name"
                placeholder="请输入原材料名称"
              ></el-input> </el-form-item
          ></el-col>
                            <el-input v-if="detailId !== null" :disabled="detailId !== null" v-model="detailInfo.name"></el-input>
                            <el-input v-else v-model="detailInfo.name" placeholder="请输入原材料名称"></el-input> </el-form-item></el-col>
          <el-col :span="7">
            <el-form-item label="原材料编码:">
              <el-input
                v-if="detailId !== null"
                :disabled="detailId !== null"
                v-model="detailInfo.code"
              ></el-input>
              <el-input
                v-else
                v-model="detailInfo.code"
                placeholder="请输入原材料编码"
              ></el-input>
                            <el-input v-if="detailId !== null" :disabled="detailId !== null" v-model="detailInfo.code"></el-input>
                            <el-input v-else v-model="detailInfo.code" placeholder="请输入原材料编码"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="7">
            <el-form-item label="规格型号:">
              <el-input
                v-if="detailId !== null"
                :disabled="detailId !== null"
                v-model="detailInfo.specifications"
              ></el-input>
              <el-input
                v-else
                v-model="detailInfo.specifications"
                placeholder="请输入规格型号"
              ></el-input>
                            <el-input v-if="detailId !== null" :disabled="detailId !== null"
                                v-model="detailInfo.specifications"></el-input>
                            <el-input v-else v-model="detailInfo.specifications" placeholder="请输入规格型号"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="7">
            <el-form-item label="单位:">
              <el-input
                v-if="detailId !== null"
                :disabled="detailId !== null"
                v-model="detailInfo.runit"
              ></el-input>
              <el-input
                v-else
                placeholder="请输入检验单位"
                :disabled="detailId !== null"
                v-model="detailInfo.unit"
              ></el-input>
                            <el-input v-if="detailId !== null" :disabled="detailId !== null" v-model="detailInfo.runit"></el-input>
                            <el-input v-else placeholder="请输入检验单位" :disabled="detailId !== null" v-model="detailInfo.unit"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="7">
            <el-form-item label="数量:">
              <el-input
                :placeholder="detailId !== null ? '' : '请输入检验数量'"
                :disabled="detailId !== null"
                v-model="detailInfo.number"
              ></el-input>
                            <el-input :placeholder="detailId !== null ? '' : '请输入检验数量'" :disabled="detailId !== null"
                                v-model="detailInfo.number"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="7">
            <el-form-item label="供应商名称:">
              <el-input
                :placeholder="detailId !== null ? '' : '请输入供应商名称'"
                :disabled="detailId !== null"
                v-model="detailInfo.supplier"
              ></el-input>
                            <el-input :placeholder="detailId !== null ? '' : '请输入供应商名称'" :disabled="detailId !== null"
                                v-model="detailInfo.supplier"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="7">
            <el-form-item v-show="detailId !== null" label="报检日期:">
              <el-input
                :disabled="detailId !== null"
                v-model="detailInfo.creatTime"
              ></el-input>
                            <el-input :disabled="detailId !== null" v-model="detailInfo.creatTime"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="7">
            <el-form-item v-show="detailId !== null" label="报检人:">
              <el-input
                :disabled="detailId !== null"
                v-model="detailInfo.userName"
              ></el-input>
                            <el-input :disabled="detailId !== null" v-model="detailInfo.userName"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
@@ -147,22 +81,10 @@
      <el-row>
        <el-col :span="12" style="line-height: 32px;">检验项目</el-col>
        <el-col :span="12" style="line-height: 32px; padding-top: 6px;">
          <el-button
            style="float: right;"
            @click="clickDeleteInspectionColumn()"
            >删除检验值列</el-button
          >
          <el-button
            style="float: right;margin-right: 30px;"
            @click="clickAddInspectionColumn()"
            >添加检验值列</el-button
          >
          <el-button
            v-if="detailId == null"
            style="float: right;margin-right: 30px;"
            @click="clickAddLine()"
            >添加检验行</el-button
          >
                    <el-button style="float: right;" @click="clickDeleteInspectionColumn()">删除检验值列</el-button>
                    <el-button style="float: right;margin-right: 30px;" @click="clickAddInspectionColumn()">添加检验值列</el-button>
                    <el-button v-if="detailId == null" style="float: right;margin-right: 30px;"
                        @click="clickAddLine()">添加检验行</el-button>
        </el-col>
      </el-row>
    </div>
@@ -172,65 +94,35 @@
        </el-table-column>
        <el-table-column prop="rpName" label="项目" width="212">
          <template slot-scope="scope">
            <el-input
              v-if="detailId == null"
              v-model="scope.row.name"
              placeholder="请输入项目名称"
            ></el-input>
                        <el-input v-if="detailId == null" v-model="scope.row.name" placeholder="请输入项目名称"></el-input>
            <el-input v-else v-model="scope.row.rpName" disabled></el-input>
          </template>
        </el-table-column>
        <el-table-column prop="unit" label="单位" width="148">
          <template slot-scope="scope">
            <el-input
              v-if="detailId == null"
              v-model="scope.row.unit"
              placeholder="请输入单位"
            ></el-input>
                        <el-input v-if="detailId == null" v-model="scope.row.unit" placeholder="请输入单位"></el-input>
            <el-input v-else v-model="scope.row.rpUnit" disabled></el-input>
          </template>
        </el-table-column>
        <el-table-column prop="required" label="标准值" min-width="150">
          <template slot-scope="scope">
            <el-input
              :disabled="detailId != null"
              @blur="assertTest(scope.row)"
              v-model="scope.row.required"
              placeholder="请输入标准值"
            ></el-input>
                        <el-input :disabled="detailId != null" @blur="assertTest(scope.row)" v-model="scope.row.required"
                            placeholder="请输入标准值"></el-input>
          </template>
        </el-table-column>
        <el-table-column prop="internal" label="内控值" min-width="150">
          <template slot-scope="scope">
            <el-input
              @blur="assertTest(scope.row)"
              :disabled="detailId != null"
              v-model="scope.row.internal"
              placeholder="请输入内控值"
            ></el-input>
                        <el-input @blur="assertTest(scope.row)" :disabled="detailId != null" v-model="scope.row.internal"
                            placeholder="请输入内控值"></el-input>
          </template>
        </el-table-column>
        <el-table-column
          prop="testValue"
          label="检测值"
          min-width="150"
          v-for="(item, index) in empiricalValueAdd"
          :key="index"
        >
                <el-table-column prop="testValue" label="检测值" min-width="150" v-for="(item, index) in empiricalValueAdd"
                    :key="index">
          <template slot-scope="scope">
            <el-tooltip
              :disabled="scope.row.deviceId != null"
              class="item"
              effect="dark"
              content="请先选择设备!"
              placement="top-start"
            >
              <el-input
                :disabled="scope.row.deviceId == null"
                v-model="scope.row.testValueList[index]"
                @blur="changeState(scope.row, index)"
                placeholder="请输入检测值"
              ></el-input>
                        <el-tooltip :disabled="scope.row.deviceId != null" class="item" effect="dark" content="请先选择设备!"
                            placement="top-start">
                            <el-input :disabled="scope.row.deviceId == null" v-model="scope.row.testValueList[index]"
                                @blur="changeState(scope.row, index)" placeholder="请输入检测值"></el-input>
            </el-tooltip>
          </template>
        </el-table-column>
@@ -241,28 +133,17 @@
            }}</el-button>
          </template>
        </el-table-column>
        <el-table-column
          v-if="detailId !== null"
          prop="testState"
          label="结论"
          min-width="100"
        >
                <el-table-column v-if="detailId !== null" prop="testState" label="结论" min-width="100">
          <template slot-scope="scope">
            <span
              v-show="scope.row.testState != null"
              :style="{
                        <span v-show="scope.row.testState != null" :style="{
                color: scope.row.testState === 1 ? '#67C23A' : '#F56C6C'
              }"
              >{{ scope.row.testState === 1 ? "合格" : "不合格" }}</span
            >
              }">{{ scope.row.testState === 1 ? "合格" : "不合格" }}</span>
            <span v-show="scope.row.testState == null">暂未结论</span>
          </template>
        </el-table-column>
        <el-table-column v-if="detailId == null" label="操作" width="100">
          <template slot-scope="scope">
            <el-button type="text" @click="clickDeleteline(scope)"
              >删除</el-button
            >
                        <el-button type="text" @click="clickDeleteline(scope)">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
@@ -278,68 +159,38 @@
        <el-table-column prop="name" label="物料名称"> </el-table-column>
        <el-table-column v-if="detailId != null" prop="uName" label="检验员">
          <template slot-scope="scope">
            <span
              v-for="item in scope.row.uName"
              :key="item && item.uName"
              :style="{ marginRight: '8px' }"
              >{{ item }}</span
            >
                        <span v-for="item in scope.row.uName" :key="item && item.uName"
                            :style="{ marginRight: '8px' }">{{ item }}</span>
          </template>
        </el-table-column>
        <el-table-column prop="testState" label="检验结论">
          <template slot-scope="scope">
            <span
              v-show="scope.row.testState != null"
              :style="{
                        <span v-show="scope.row.testState != null" :style="{
                color: scope.row.testState === 1 ? '#67C23A' : '#F56C6C'
              }"
              >{{ scope.row.testState === 1 ? "合格" : "不合格" }}</span
            >
              }">{{ scope.row.testState === 1 ? "合格" : "不合格" }}</span>
            <span v-show="scope.row.testState == null">暂未结论</span>
          </template>
        </el-table-column>
        <el-table-column v-if="detailId !== null" label="操作" width="120">
          <template>
            <el-button type="text" size="small" @click.once="submitSave"
              >上报</el-button
            >
                        <el-button type="text" size="small" @click.once="submitSave">上报</el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <el-dialog
      title="请选择设备"
      :visible.sync="centerDialogVisible"
      width="20%"
    >
        <el-dialog title="请选择设备" :visible.sync="centerDialogVisible" width="20%">
      <div class="div_device_dialog">
        <el-input
          placeholder="输入关键字进行过滤"
          v-model="filterText"
          style="margin-bottom: 6px;"
        >
                <el-input placeholder="输入关键字进行过滤" v-model="filterText" style="margin-bottom: 6px;">
        </el-input>
        <el-tree
          class="filter-tree"
          :data="materialOptions"
          :props="defaultProps"
          default-expand-all
          highlight-current
          @node-click="nodeClick"
          :filter-node-method="filterNode"
          ref="tree"
        >
                <el-tree class="filter-tree" :data="materialOptions" :props="defaultProps" default-expand-all highlight-current
                    @node-click="nodeClick" :filter-node-method="filterNode" ref="tree">
          <div class="custom-tree-node" slot-scope="{ data }">
            <span
              ><i
                :class="
                        <span><i :class="
                  `node_i ${
                    data.children ? 'el-icon-folder-opened' : 'el-icon-tickets'
                  }`
                "
              ></i>
              {{ data.name }}</span
            >
                "></i>
                            {{ data.name }}</span>
          </div>
        </el-tree>
      </div>
@@ -352,10 +203,14 @@
</template>
<script>
import { triggerRef } from "vue";
    import {
        triggerRef
    } from "vue";
import RawIns from "./raw-ins.vue";
export default {
  components: { RawIns },
        components: {
            RawIns
        },
  props: ["goBack", "detailId"],
  created() {
    // æ¸…空
@@ -455,7 +310,9 @@
    async getDetailInfo() {
      await this.$axios
        .get(this.$api.url.selectRawInspectsListById + `${this.detailId}`, {
          params: { id: this.detailId }
                        params: {
                            id: this.detailId
                        }
        })
        .then(res => {
          console.log(res);
@@ -499,9 +356,13 @@
      });
      this.detailInfo.rawInsProducts = this.projectTable;
      this.$axios.post(
        this.$api.url.addRawInspects,
        { ...this.detailInfo },
        { headers: { "Content-Type": "application/json" } }
                    this.$api.url.addRawInspects, {
                        ...this.detailInfo
                    }, {
                        headers: {
                            "Content-Type": "application/json"
                        }
                    }
      ).then(res=>{
        console.log(res);
        if(res.code=="201"){
@@ -538,7 +399,7 @@
        this.$message.success("提交成功");
        this.getDetailInfo();
        this.goBack()
  Â  Â  });
                });
    },
    // èŽ·å–è®¾å¤‡æ ‘å†…å®¹
    getOptions() {
@@ -599,8 +460,7 @@
    },
    // åˆ é™¤æ£€éªŒå€¼åˆ—
    clickDeleteInspectionColumn() {
      if (this.empiricalValueAdd - 1 === 0) {
      } else {
                if (this.empiricalValueAdd - 1 === 0) {} else {
        if (this.empiricalValueAddMaxNumber != this.empiricalValueAdd - 1) {
          this.empiricalValueAdd = this.empiricalValueAdd - 1;
          this.projectTable.forEach(i => {
@@ -621,10 +481,12 @@
.node_i {
  color: orange;
}
.div_device_dialog {
  min-height: 400px;
  overflow: auto;
}
.rawInsBox {
  height: 100%;
  width: 100%;
@@ -632,24 +494,29 @@
  display: flex;
  flex-direction: column;
}
.el-table__fixed-body-wrapper {
  top: 48px;
}
.rawInsBox .title .el-button {
  height: 32px;
  border: 1px solid rgba(190, 190, 190, 0.44);
  box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41);
  padding: 0 12px;
}
.rawInsBox .title {
  margin-bottom: 10px;
  padding: 0 20px;
}
/* æ£€éªŒè¯¦æƒ… */
.raw-detail-info {
  background: #fff;
  padding: 26px 0px 11px 80px;
}
.raw-detail-info >>> .el-form-item__label {
  color: rgb(51, 51, 51);
  font-family: å¾®è½¯é›…黑;
@@ -657,12 +524,15 @@
  font-weight: 400;
  letter-spacing: 0px;
}
.raw-detail-info .el-input {
  width: auto;
}
.raw-detail-info.raw-detail-info-edit >>> .el-input__inner {
  background: #fff;
}
.raw-detail-info >>> .el-input__inner {
  width: 224px;
  height: 32px;
@@ -671,9 +541,11 @@
  border: 1px solid rgb(221, 221, 221);
  border-radius: 4px;
}
.raw-detail-info .el-form-item {
  margin-bottom: 24px;
}
.raw-detail-info .el-form-item .el-button {
  height: 32px;
  border: 1px solid rgba(190, 190, 190, 0.44);
@@ -689,6 +561,7 @@
  /* max-height: 360px; */
  /* overflow-y: hidden; */
}
/* æ£€éªŒç»“论 */
.raw-conclusion-table {
  padding: 9px 14px;
src/components/view/record-content.vue
@@ -5,42 +5,26 @@
                <el-col :span="12" style="line-height: 32px;">生产记录维护</el-col>
                <el-col :span="12" style="text-align: right;">
                    <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;" @click="addend">新增</el-button>
                    <!-- <el-button icon="el-icon-edit-outline" @click="modify">修改</el-button> -->
                    <el-button icon="el-icon-delete" @click="dels">删除</el-button>
                </el-col>
            </el-row>
        </div>
        <div class="choose">
            <span>类型:</span>
            <el-select v-model="search.type" size="small" @change="TYpe" placeholder="请选择" style="width: 224px;margin-right: 30px;">
                <el-option label="橡胶连接器" :value="0"></el-option>
                <el-option label="金属连接器" :value="1"></el-option>
                <el-option label="湿插拔电连接器" :value="2"></el-option>
                <el-option label="分支组件" :value="3"></el-option>
            <el-select v-model="search.type" size="small" @change="TYpe" placeholder="请选择"
                style="width: 224px;margin-right: 30px;">
                <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
            </el-select>
            <!-- <span>工序:</span>
            <el-select v-model="search.name" size="small" placeholder="请选择" style="width: 224px;margin-right: 30px;">
                <el-option v-for="(a, ai) in process" key="ai" :label="a.name" :value="a.id"></el-option>
            </el-select>
            <el-button size="mini" @click="clean()"><span>重 ç½®</span></el-button>
            <el-button size="mini" type="primary" style="background: #004EA2;"><span>查
                    è¯¢</span></el-button> -->
                <!-- :style="{height: scrollerHeight,overflow:'auto',display: 'flex'}" -->
        </div>
        <div class="thing">
            <div class="left">
                <el-input v-model="search.technology" suffix-icon="el-icon-search" placeholder="请输入搜索内容" size="small" clearable @input="query"></el-input>
                <el-tree :data="list" ref="tree"
                :props="{children: 'children',label: 'name'}" node-key="name" default-expand-all
                    @node-click="handleNodeClick" highlight-current
                    :key="upIndex">
                <el-input v-model="search.technology" suffix-icon="el-icon-search" placeholder="请输入搜索内容" size="small" clearable
                    @input="query"></el-input>
                <el-tree :data="list" ref="tree" :props="{children: 'children',label: 'name'}" node-key="name"
                    default-expand-all @node-click="handleNodeClick" highlight-current :key="upIndex" style="padding-top: 8px;">
                    <div class="custom-tree-node" slot-scope="{ node, data }">
                        <span><i :class="`node_i ${data.code != '[2]'?'el-icon-folder-opened':'el-icon-tickets'}`"></i>
                            {{ data.code }}{{ data.name }}</span>
                        <!-- <el-button type="text" size="mini" @click.stop="remove(node, data)">
                            <i class="el-icon-delete"></i>
                        </el-button> -->
                    </div>
                </el-tree>
            </div>
@@ -73,10 +57,7 @@
                    <el-col :span="16" :offset="1">
                        <template>
                        <el-select v-model="edit.type" disabled placeholder="请选择" style="width: 310px;">
                            <el-option label="橡胶连接器" :value="0"></el-option>
                            <el-option label="金属连接器" :value="1"></el-option>
                            <el-option label="湿插拔电连接器" :value="2"></el-option>
                            <el-option label="分支组件" :value="3"></el-option>
                                <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
                        </el-select>
                        </template>
                    </el-col>
@@ -85,16 +66,8 @@
                    <el-col :span="4"  style="font-size: 14px;text-align: right;">工序:</el-col>
                    <el-col :span="16" :offset="1">
                        <template>
                        <el-select v-model="edit.techFather"
                        placeholder="请选择"
                        disabled
                        @change="workevent"
                        style="width: 310px;">
                            <el-option
                            v-for="item in process"
                            :key="item.name"
                            :label="item.name"
                            :value="item.name">
                            <el-select v-model="edit.techFather" placeholder="请选择" disabled @change="workevent" style="width: 310px;">
                                <el-option v-for="item in process" :key="item.name" :label="item.name" :value="item.name">
                            </el-option>
                        </el-select>
                        </template>
@@ -105,11 +78,7 @@
                    <el-col :span="16" :offset="1">
                        <template>
                        <el-select v-model="edit.techName"  disabled placeholder="请选择" style="width: 310px;">
                            <el-option
                            v-for="item in craftapi"
                            :key="item.id"
                            :label="item.name"
                            :value="item.id">
                                <el-option v-for="item in craftapi" :key="item.id" :label="item.name" :value="item.id">
                            </el-option>
                         </el-select>
                        </template>
@@ -140,31 +109,20 @@
            </span>
        </el-dialog>
        <!-- æ–°å¢žå¼¹çª— -->
        <el-dialog title="生产记录新增" :visible.sync="dialogVisible" :rules="Rules"
        ref="ruleForm" width="35%">
        <el-dialog title="生产记录新增" :visible.sync="dialogVisible" :rules="Rules" ref="ruleForm" width="35%">
            <div>
                <el-form ref="form" :model="form" label-width="80px">
                <el-form-item label="类型" prop="type">
                    <template>
                        <el-select v-model="form.type"
                        @change="edittype" placeholder="请选择" style="width: 100%;">
                            <el-option label="橡胶连接器" :value="0"></el-option>
                            <el-option label="金属连接器" :value="1"></el-option>
                            <el-option label="湿插拔电连接器" :value="2"></el-option>
                            <el-option label="分支组件" :value="3"></el-option>
                            <el-select v-model="form.type" @change="edittype" placeholder="请选择" style="width: 100%;">
                                <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
                        </el-select>
                        </template>
                </el-form-item>
                <el-form-item label="工序" prop="work">
                    <template>
                        <el-select v-model="form.work"
                        @change="workevent"
                        placeholder="请选择" style="width: 100%;">
                            <el-option
                            v-for="item in process"
                            :key="item.name"
                            :label="item.name"
                            :value="item.name">
                            <el-select v-model="form.work" @change="workevent" placeholder="请选择" style="width: 100%;">
                                <el-option v-for="item in process" :key="item.name" :label="item.name" :value="item.name">
                            </el-option>
                        </el-select>
                        </template>
@@ -172,11 +130,7 @@
                <el-form-item label="工艺名称" prop="name">
                    <template>
                        <el-select v-model="form.craft" placeholder="请选择" style="width: 100%;">
                            <el-option
                            v-for="item in craftapi"
                            :key="item.id"
                            :label="item.name"
                            :value="item.id">
                                <el-option v-for="item in craftapi" :key="item.id" :label="item.name" :value="item.id">
                            </el-option>
                        </el-select>
                        </template>
@@ -195,63 +149,6 @@
            <span slot="footer" class="dialog-footer">
                <el-button type="primary" @click="add(form)">ç¡® å®š</el-button>
                <el-button @click="dialogVisible = false">取 æ¶ˆ</el-button>
            </span>
        </el-dialog>
        <!-- ä¿®æ”¹å¼¹çª— -->
        <el-dialog title="工序编辑" :visible.sync="modifyVisible" width="35%">
            <div>
                <el-form ref="form" :model="form" label-width="80px">
                <el-form-item label="类型">
                    <template>
                        <el-select v-model="value" placeholder="请选择" style="width: 480px;">
                            <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                            </el-option>
                        </el-select>
                        </template>
                </el-form-item>
                <el-form-item label="工序">
                    <template>
                        <el-select v-model="value" placeholder="请选择" style="width: 480px;">
                            <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                            </el-option>
                        </el-select>
                        </template>
                </el-form-item>
                <el-form-item label="工艺名称">
                    <template>
                        <el-select v-model="value" placeholder="请选择" style="width: 480px;">
                            <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                            </el-option>
                        </el-select>
                        </template>
                </el-form-item>
                <el-form-item label="记录">
                    <el-input v-model="form.record"></el-input>
                </el-form-item>
                <el-form-item label="备注">
                    <el-input v-model="form.remarks"></el-input>
                </el-form-item>
                <el-form-item label="单位">
                    <el-input v-model="form.unit"></el-input>
                </el-form-item>
                </el-form>
            </div>
            <span slot="footer" class="dialog-footer">
                <el-button type="primary" @click="modifyVisible = false">ç¡® å®š</el-button>
                <el-button @click="modifyVisible = false">取 æ¶ˆ</el-button>
            </span>
        </el-dialog>
    </div>
@@ -285,11 +182,32 @@
                    unit:'',
                },
                Rules:{
                    type:{validator:checktype,required:true,message:'类型不能为空',trigger:'change'},
                    work:{required:true,message:'工序不能为空',trigger:'change'},
                    name:{required:true,message:'工艺不能为空',trigger:'change'},
                    record:{required:true,message:'记录不能为空',trigger:'blur'},
                    unit:{required:true,message:'单位不能为空',trigger:'blur'},
                    type: {
                        validator: checktype,
                        required: true,
                        message: '类型不能为空',
                        trigger: 'change'
                    },
                    work: {
                        required: true,
                        message: '工序不能为空',
                        trigger: 'change'
                    },
                    name: {
                        required: true,
                        message: '工艺不能为空',
                        trigger: 'change'
                    },
                    record: {
                        required: true,
                        message: '记录不能为空',
                        trigger: 'blur'
                    },
                    unit: {
                        required: true,
                        message: '单位不能为空',
                        trigger: 'blur'
                    },
                },
                modifyVisible:false,
                dialogVisible:false,
@@ -317,20 +235,28 @@
                    type:'',
                    unit:'',
                },
                bigType: []
            }
        },
        mounted() {
            this.selectAllleft()
            this.selectjilu()
            this.chooseType()
        },
        methods: {
            chooseType() {
                this.$axios.get(this.$api.url.chooseType).then(res => {
                    this.bigType = res.data
                    this.typeselect = res.data[0]
                    this.search.type = res.data[0]
                    this.selectAllleft()
                    this.selectjilu()
                })
            },
            delQueById() {
                this.$axios.get(this.$api.url.delQueById,)
            },
            childrenClick() {},
            TYpe(val) {
                this.typeselect = val
                console.log(this.typeselect);
                this.selectAllleft()
            },
            edittype(val) {
@@ -339,17 +265,16 @@
            },
            //新增
            workevent(val){
                console.log(val);
                let idx = this.process.findIndex(el => el.name === val)
                this.craftapi = this.process[idx].children
                console.log( this.craftapi);
            },
            chooseTechFath() {
            this.$axios.get(this.$api.url.chooseTechFath,{
                params:{type:this.typeselect}
                    params: {
                        type: this.typeselect
                    }
            }).then(res => {
                this.process = res.data;
                console.log(this.process);
            }, {
                headers: {
                        "Content-Type": "application/json"
@@ -364,27 +289,18 @@
                    note:this.form.remarks,
                    techTemId:this.form.craft,
                    unit:this.form.unit,
                }
                , {
                }, {
                    headers: {
                        "Content-Type": "application/json"
                      }
                }
                ).then(res =>{
                }).then(res => {
                    this.$message.success('添加成功')
                    this.selectjilu()
                })
            },
            add(formName) {
                this.dialogVisible = false
                this.addRecord()
                // this.$refs[formName].validate((valid) => {
                // if (valid) {
                //     alert('submit!');
                // } else {
                //     console.log('error submit!!');
                //     return false;
                // }
                // });
                this.form = {};
            },
            query() {
@@ -393,21 +309,20 @@
            //主体左
            selectAllleft() {
            this.$axios.get(this.$api.url.selectAllleft,{
                params:{type:this.typeselect,message:this.search.technology}
                    params: {
                        type: this.typeselect,
                        message: this.search.technology
                    }
            }).then(res => {
                this.list = res.data;
                this.selectDataList()
                this.$nextTick(() => {
                this.$refs.tree.setCurrentKey(this.list[0].children[0].name) // é»˜è®¤é€‰ä¸­èŠ‚ç‚¹ç¬¬ä¸€ä¸ª
            })
            console.log("=======");
            console.log(this.list);
            let one=this.list.filter(item=>{
            return item.children.length>0
            })[0]
            console.log(one);
            let name=one.children[0].id
            console.log(name);
            this.checkTreeNode.id = name
            this.selectjiluStart(name)
            this.selectDataList();
@@ -416,20 +331,21 @@
            //默认
            selectjiluStart(name) {
            this.$axios.get(this.$api.url.selectjilu,{
                params:{id:name}
                    params: {
                        id: name
                    }
            }).then(res => {
                this.tableData = res.data;
                console.log(this.tableData);
            })
            },
            //selectjilu  checkTreeNode
            selectjilu() {
                console.log(this.checkTreeNode.id);
            this.$axios.get(this.$api.url.selectjilu,{
                params:{id:this.checkTreeNode.id}
                    params: {
                        id: this.checkTreeNode.id
                    }
            }).then(res => {
                this.tableData = res.data;
                console.log(this.tableData);
            })
            },
            modify(){
@@ -470,11 +386,9 @@
                this.upIndex++
            },
            handleNodeClick(data) {
                if(data.code != '[2]') return
                this.checkTreeNode = data
                this.selectjilu()
                if(data.code=='[3]'){
                    console.log(data);
                }
            },
            nodeOpen(data, node, el) {
                $($(el.$el).find('.node_i')[0]).attr('class', 'node_i el-icon-folder-opened')
@@ -498,7 +412,6 @@
                    return el.id
                })
                this.delete = cc.join(',')
                console.log(this.delete);
                this.delAllRecord()
                this.$message.success('删除完成')
            },
@@ -519,14 +432,11 @@
                this.tableData.splice(index,1)
                this.upData.id = rows.id
                this.delQueByIdapi()
                // this.selectjilu()
            },
            //编辑
            upContent(ob) {
                this.upData = ob
                // console.log(this.upData);
                this.selecRecord()
                // this.chooseTechFath()
                this.upDia = true
            },
            selecRecord() {
@@ -539,7 +449,6 @@
                })
            },
            writeRecordById() {
                // console.log(this.upData.id);
                this.$axios.post(this.$api.url.writeRecordById + '?id=' + this.upData.id,{
                    name:this.upData.name,
                    note:this.upData.note,
@@ -556,16 +465,7 @@
            submitUpData() {
                this.writeRecordById()
                this.$message.success('修改成功')
                this.upDia = false
                    // this.tableData.forEach(a => {
                //     if (a.id == this.upData.id) {
                //         a.name = this.upData.name
                //         a.unit = this.upData.unit
                //         a.thing = this.upData.thing
                //     }
                // })
                // console.log(this.upData);
            }
        }
    }
@@ -679,5 +579,3 @@
        border-radius: 2px;
    }
</style>
src/components/view/sale.vue
@@ -118,7 +118,6 @@
                    <el-button type="success" @click="syncOrder"
                        :icon="isSync ? 'el-icon-loading' : 'el-icon-refresh'">同步</el-button>
                    <el-button type="primary" icon="el-icon-plus" @click="openAddDia">新增</el-button>
                    <!-- <el-button icon="el-icon-edit-outline">修改</el-button> -->
                    <el-button icon="el-icon-delete" @click="delSales">删除</el-button>
                    <el-button icon="el-icon-download">导出</el-button>
                </el-col>
@@ -164,7 +163,7 @@
                </el-table-column>
                <el-table-column prop="交货日期" label="交货日期" width="150">
                </el-table-column>
                <el-table-column prop="note" label="备注" width="150">
                <el-table-column prop="note" label="备注" width="150" show-overflow-tooltip>
                </el-table-column>
                <el-table-column prop="type" label="状态" width="100">
                    <template slot-scope="scope">
src/components/view/technology.vue
@@ -96,12 +96,7 @@
  color: #004ea2;
}
.record_content
  .thing
  .left
  .el-tree--highlight-current
  .el-tree-node.is-current
  > .el-tree-node__content {
    .record_content .thing .left .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  background: rgba(58, 124, 253, 0.2);
  color: #004ea2;
}
@@ -118,313 +113,128 @@
      <el-row>
        <el-col :span="12" style="line-height: 32px">工艺路线维护</el-col>
        <el-col :span="12" style="text-align: right">
          <el-button
            type="primary"
            icon="el-icon-plus"
            style="background: #004ea2"
            @click="addend"
            >新增</el-button
          >
          <!-- <el-button icon="el-icon-edit-outline" @click="modify">修改</el-button> -->
                    <el-button type="primary" icon="el-icon-plus" style="background: #004ea2" @click="addend">新增</el-button>
          <el-button icon="el-icon-delete" @click="dels">删除</el-button>
        </el-col>
      </el-row>
    </div>
    <div class="choose">
      <span>类型:</span>
      <el-select
        v-model="search.type"
        size="small"
        placeholder="请选择"
        @change="type"
        style="width: 224px; margin-right: 30px"
      >
        <el-option label="橡胶连接器" :value="0"></el-option>
        <el-option label="金属连接器" :value="1"></el-option>
        <el-option label="湿插拔电连接器" :value="2"></el-option>
        <el-option label="分支组件" :value="3"></el-option>
            <el-select v-model="search.type" size="small" placeholder="请选择" @change="type"
                style="width: 224px; margin-right: 30px">
                <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
      </el-select>
      <!-- <span>工序:</span>
            <el-select v-model="search.name" size="small" placeholder="请选择" style="width: 224px;margin-right: 30px;">
                <el-option v-for="(a, ai) in process" key="ai" :label="a.name" :value="a.id"></el-option>
            </el-select>
            <span>设备组:</span>
            <el-select v-model="search.name" size="small" placeholder="请选择" style="width: 224px;margin-right: 30px;">
                <el-option v-for="(a, ai) in product" key="ai" :label="a.name" :value="a.id"></el-option>
            </el-select> -->
      <!-- <el-button size="mini" @click="clean()"><span>重 ç½®</span></el-button>
            <el-button size="mini" type="primary" style="background: #004EA2;"><span>查
                    è¯¢</span></el-button> -->
    </div>
    <div class="thing">
      <div class="left">
        <el-input
          v-model="search.technology"
          suffix-icon="el-icon-search"
          placeholder="请输入搜索内容"
          size="small"
          clearable
          @input="query"
        >
          <!-- clearable @input="(val)=>$refs.tree.filter(val)"> -->
                <el-input v-model="search.technology" suffix-icon="el-icon-search" placeholder="请输入搜索内容" size="small" clearable
                    @input="query">
        </el-input>
        <el-tree
          :data="towTree"
          ref="tree"
          :props="{ children: 'children', label: 'father' }"
          node-key="father"
          default-expand-all
          @node-click="handleNodeClick"
          :key="upIndex"
          highlight-current
        >
                <el-tree :data="towTree" ref="tree" :props="{ children: 'children', label: 'father' }" node-key="father"
                    default-expand-all @node-click="handleNodeClick" :key="upIndex" highlight-current style="padding-top: 8px;">
          <div class="custom-tree-node" slot-scope="{ node, data }">
            <span
              ><i
                :class="`node_i ${
                        <span><i :class="`node_i ${
                  data.code != '[2]'
                    ? 'el-icon-folder-opened'
                    : 'el-icon-tickets'
                }`"
              ></i>
              {{ data.father }}</span
            >
            <!-- <el-button type="text" size="mini" @click.stop="remove(node, data)">
                            <i class="el-icon-delete"></i>
                        </el-button> -->
                }`"></i>
                            {{ data.father }}</span>
          </div>
        </el-tree>
      </div>
      <div class="right">
        <el-table
          :data="tableData"
          border
          style="width: 100%; overflow-y: auto; min-height: 100%"
          max-height="100%"
          @selection-change="handleSelectionChange"
          default-expand-all
        >
                <el-table :data="tableData" border style="width: 100%; overflow-y: auto; min-height: 100%" max-height="100%"
                    @selection-change="handleSelectionChange" default-expand-all>
          <el-table-column type="selection" width="50"> </el-table-column>
          <el-table-column type="index" label="序号" width="70">
          </el-table-column>
          <el-table-column prop="name" label="工艺名称"> </el-table-column>
          <el-table-column prop="device_group" label="设备组">
          </el-table-column>
          <el-table-column label="元件">
            <template slot-scope="scope">
              <el-tag type="info" style="margin-right: 10px;" v-for="(a, index) in JSON.parse(scope.row.element)" :key="index">{{ a }}</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="操作" width="130">
            <template slot-scope="scope">
              <span class="table_do" @click="upContent(scope.row)"
                >编辑&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span
              >
              <span class="table_do" @click="deleteRow(scope.$index, scope.row)"
                >删除</span
              >
                            <span class="table_do" @click="upContent(scope.row)">编辑&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                            <span class="table_do" @click="deleteRow(scope.$index, scope.row)">删除</span>
            </template>
          </el-table-column>
        </el-table>
      </div>
    </div>
    <el-dialog title="编辑记录内容" :visible.sync="upDia" width="500px">
        <el-dialog title="编辑工艺信息" :visible.sync="upDia" width="500px">
      <div class="body">
        <el-row style="line-height: 46px">
          <el-col :span="4" style="font-size: 14px; text-align: right"
            >类型:</el-col
          >
                    <el-col :span="4" style="font-size: 14px; text-align: right">类型:</el-col>
          <el-col :span="16" :offset="1">
            <template>
              <el-select
                v-model="edit.type"
                placeholder="请选择"
                disabled
                style="width: 310px"
              >
                <el-option label="橡胶连接器" :value="0"></el-option>
                <el-option label="金属连接器" :value="1"></el-option>
                <el-option label="湿插拔电连接器" :value="2"></el-option>
                <el-option label="分支组件" :value="3"></el-option>
                            <el-select v-model="edit.type" placeholder="请选择" disabled style="width: 310px">
                                <el-option v-for="(a, ai) in bigType" :key="ai" :value="a"></el-option>
              </el-select>
            </template>
          </el-col>
        </el-row>
        <el-row style="line-height: 46px">
          <el-col :span="4" style="font-size: 14px; text-align: right"
            >工序:</el-col
          >
                    <el-col :span="4" style="font-size: 14px; text-align: right">工序:</el-col>
          <el-col :span="16" :offset="1">
            <el-select
              v-model="edit.father"
              style="width: 310px"
              disabled
              placeholder="请选择"
            >
              <el-option
                v-for="item in procedure"
                :key="item"
                :label="item"
                disabled
                :value="item"
              >
                        <el-select v-model="edit.father" style="width: 310px" disabled placeholder="请选择">
                            <el-option v-for="item in procedure" :key="item" :label="item" disabled :value="item">
              </el-option>
            </el-select>
          </el-col>
        </el-row>
        <el-row style="line-height: 46px">
          <el-col :span="4" style="font-size: 14px; text-align: right"
            >元件:</el-col
          >
          <el-col :span="16" :offset="1">
            <el-input v-model="cell"
             placeholder="请输入元件名称"
             style="width: 200px">
            </el-input>
            <!-- <el-select
              v-model="cell"
              style="width: 310px"
              disabled
              multiple
              placeholder="请选择"
            >
              <el-option
                v-for="item in element"
                :key="item.id"
                :label="item.name"
                :value="item.id"
              >
              </el-option>
            </el-select> -->
          </el-col>
        </el-row>
        <el-row style="line-height: 46px">
          <el-col :span="4" style="font-size: 14px; text-align: right"
            >工艺名称:</el-col
          >
                    <el-col :span="4" style="font-size: 14px; text-align: right">工艺名称:</el-col>
          <el-col :span="16" :offset="1">
            <el-input v-model="edit.name" size="small" clearable></el-input>
          </el-col>
        </el-row>
        <el-row style="line-height: 46px">
          <el-col :span="4" style="font-size: 14px; text-align: right"
            >设备组:</el-col
          >
                    <el-col :span="4" style="font-size: 14px; text-align: right">设备组:</el-col>
          <el-col :span="16" :offset="1">
            <!-- <el-input
              v-model="upData.device_group"
              size="small"
              clearable
            ></el-input> -->
            <template>
              <el-select
                v-model="upData.device_group"
                placeholder="请选择"
                style="width: 306px"
              >
                <el-option
                  v-for="item in equipment"
                  :key="item.index"
                  :label="item.father"
                  :value="item.father"
                >
                            <el-select v-model="upData.device_group" placeholder="请选择" style="width: 306px">
                                <el-option v-for="item in equipment" :key="item.index" :label="item.father" :value="item.father">
                </el-option>
              </el-select>
            </template>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitUpData">ç¡® å®š</el-button>
        <el-button @click="upDia = false">取 æ¶ˆ</el-button>
      </span>
    </el-dialog>
    <!-- å·¥è‰ºè·¯çº¿æ–°å¢ž -->
    <el-dialog title="工艺路线新增" :visible.sync="dialogVisible" width="35%">
      <div>
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="类型">
            <template>
              <el-select
                v-model="form.type"
                placeholder="请选择"
                style="width: 100%"
                @change="edittype"
              >
                <el-option label="橡胶连接器" :value="0"></el-option>
                <el-option label="金属连接器" :value="1"></el-option>
                <el-option label="湿插拔电连接器" :value="2"></el-option>
                <el-option label="分支组件" :value="3"></el-option>
                            <el-select v-model="form.type" allow-create filterable placeholder="请选择" style="width: 100%"
                                @change="edittype">
                                <el-option v-for="(a,ai) in bigType" :key="ai" :value="a">
                                </el-option>
              </el-select>
            </template>
          </el-form-item>
          <el-form-item label="工序">
            <template>
              <el-select
                v-model="form.father"
                allow-create
                filterable
                @create=""
                placeholder="请选择"
                style="width: 100%"
              >
                <el-option
                  v-for="item in procedure"
                  :key="item"
                  :label="item"
                  :value="item"
                >
                            <el-select v-model="form.father" allow-create filterable @create="" placeholder="请选择" style="width: 100%">
                                <el-option v-for="item in procedure" :key="item" :label="item" :value="item">
                </el-option>
              </el-select>
            </template>
          </el-form-item>
          <el-form-item label="设备组">
            <template>
              <el-select
                v-model="form.deviceGroup"
                placeholder="请选择"
                style="width: 100%"
              >
                <el-option
                  v-for="item in equipment"
                  :key="item.index"
                  :label="item.father"
                  :value="item.father"
                >
                            <el-select v-model="form.deviceGroup" placeholder="请选择" style="width: 100%">
                                <el-option v-for="item in equipment" :key="item.index" :label="item.father" :value="item.father">
                </el-option>
              </el-select>
            </template>
          </el-form-item>
          <el-row>
            <el-col :span="12">
              <el-form-item label="元件">
                <template>
                  <el-input v-model="form.elementId" placeholder="请输入元件名称" style="width: 100%"></el-input>
                  <!-- <el-select
                    v-model="form.elementId"
                    multiple
                    placeholder="请选择"
                    style="width: 200px"
                  >
                    <el-option
                      v-for="item in element"
                      :key="item.id"
                      :label="item.name"
                      :value="item.id"
                    >
                    </el-option>
                  </el-select> -->
                </template>
              </el-form-item>
            </el-col>
            <el-col :span="12">
                        <el-col :span="24">
              <el-form-item label="工艺名称">
                <el-input placeholder="请输入工艺名称" v-model="form.name" style="width: 100%"></el-input>
              </el-form-item>
@@ -437,80 +247,6 @@
        <el-button @click="Deleteapi">取 æ¶ˆ</el-button>
      </span>
    </el-dialog>
    <!-- å·¥è‰ºè·¯çº¿ä¿®æ”¹ -->
    <el-dialog title="工艺路线新增" :visible.sync="modifyevent" width="35%">
      <div>
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="类型">
            <template>
              <el-select
                v-model="value"
                placeholder="请选择"
                style="width: 480px"
              >
                <!-- <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item."
                            :value="item.value">
                            </el-option> -->
                <el-option label="橡胶连接器" :value="0"></el-option>
                <el-option label="金属连接器" :value="1"></el-option>
                <el-option label="湿插拔电连接器" :value="2"></el-option>
                <el-option label="分支组件" :value="3"></el-option>
              </el-select>
            </template>
          </el-form-item>
          <el-form-item label="工序">
            <template>
              <el-select
                v-model="value"
                placeholder="请选择"
                style="width: 480px"
              >
                <el-option
                  v-for="item in procedure"
                  :key="item.value"
                  :label="item.j"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </template>
          </el-form-item>
          <el-row>
            <el-col :span="10">
              <el-form-item label="工艺名称">
                <template>
                  <el-select
                    v-model="value"
                    placeholder="请选择"
                    style="width: 200px"
                  >
                    <el-option
                      v-for="item in options"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    >
                    </el-option>
                  </el-select>
                </template>
              </el-form-item>
            </el-col>
            <el-col :span="10" :offset="2">
              <el-form-item label="元件">
                <el-input v-model="form.name" style="width: 200px"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="modifyevent = false">ç¡® å®š</el-button>
        <el-button @click="modifyevent = false">取 æ¶ˆ</el-button>
      </span>
    </el-dialog>
  </div>
</template>
@@ -519,7 +255,7 @@
  data() {
    return {
      search: {
        type: 0,
                    type: '',
        technology: null,
      },
      options: {},
@@ -530,9 +266,6 @@
        elementId: "",
        deviceGroup: "",
      },
      // search: {
      //   type: "",
      // },
      delete: [],
      treetrunk: [],
      process: [],
@@ -552,11 +285,9 @@
      element: [],
      equipment: [0],
      cell:[],
      AAA: [
        {
                AAA: [{
          id: "",
        },
      ],
                }, ],
      edit: {
        deviceGroup: "",
        father: "",
@@ -571,23 +302,29 @@
        father: "",
        type: "",
      },
      typeselect: 0,
                typeselect: '',
      newdata: {
        type: "",
      },
      upIndex: 0,
      treeList:[],
    elerow:{},
                bigType: []
    };
  },
  mounted() {
    this.selectAllTechTem();
    this.selectAllTechNam();
    console.log(this.treeList);
            this.chooseType()
  },
  methods: {
            chooseType() {
                this.$axios.get(this.$api.url.chooseType).then(res => {
                    this.bigType = res.data
                    this.typeselect = res.data[0]
                    this.search.type = res.data[0]
                    this.selectAllTechTem();
                    this.selectAllTechNam();
                })
            },
    selectDataList() {
      this.towTree.forEach((a) => {
        a.code = "[1]";
@@ -616,21 +353,14 @@
      this.form = {};
    },
    addTechTemp() {
      console.log(this.form.elementId.split(','));
      this.$axios
        .post(
          this.$api.url.addTechTemp,
          {
                        this.$api.url.addTechTemp, {
            deviceGroup: this.form.deviceGroup,
            // elementId: JSON.stringify(this.form.elementId).replace("[","").replace("]",""),
            // element:this.form.elementId.split(','),
            element:JSON.stringify(this.form.elementId.split(',')),
            father: this.form.father,
            name: this.form.name,
            type: this.form.type,
          },
          {
                        }, {
            headers: {
              "Content-Type": "application/json",
            },
@@ -638,29 +368,16 @@
        )
        .then((res) => {
          console.log(res);
          /* this.selectAllTechNam(); */
          this.form = {};
          this.$parent.removeAllTab()
        });
    },
    //元件
    // chooseElement() {
    //   this.$axios.get(this.$api.url.chooseElement).then((res) => {
    //     this.element = res.data;
    //     console.log(this.element);
    //   });
    // },
    //设备
    chooseDevGroup() {
      this.$axios.get(this.$api.url.chooseDevGroup).then((res) => {
        this.equipment = res.data;
        // console.log(this.equipment);
      });
    },
    // onTypeBlur(e) {
    // if (e.target.value) {
    // this.type = e.target.value;}},
    //工序
    chooseTech() {
      this.$axios.get(this.$api.url.chooseTech,{
@@ -668,7 +385,6 @@
            type:this.typeselect
          }
      }).then(res =>{
        console.log(res);
        this.procedure = res.data
      })
    },
@@ -678,7 +394,6 @@
            },
    //批量删除
    delAllTech() {
      console.log(this.delete);
      this.$axios.post(this.$api.url.delAllTech, {
        ids: this.delete,
      }).then(res=>{
@@ -687,7 +402,6 @@
    },
    //删除
    delTechById() {
      console.log(this.$api.url.delTechById, this.upData.id);
      this.$axios.post(this.$api.url.delTechById, {
        id: this.upData.id,
      }).then(res=>{
@@ -696,95 +410,71 @@
    },
    //编辑
    writeTechById() {
      // console.log(JSON.stringify(this.edit.children));
      // console.log(JSON.stringify(this.edit.children));
      // var str = ''
      // this.edit.children.forEach((a,ai)=>{
      //   str += a.id
      //   if(ai!=this.edit.children.length-1) str+=','
      // })
      this.$axios
        .post(
          this.$api.url.writeTechById + `?id=${this.upData.id}`,
            {
                        this.$api.url.writeTechById + `?id=${this.upData.id}`, {
                deviceGroup: this.upData.device_group,
                element:JSON.stringify(this.cell.split(',')),
                // element:JSON.stringify(this.form.elementId.split(','))
                father: this.edit.father,
                name: this.edit.name,
                type: this.edit.type
          },
          {
                        }, {
            headers: {
              "Content-Type": "application/json",
            },
          }
        )
        .then((res) => {
          /* this.selectAllTechNam(), */
                        this.$message.success("修改成功");
          this.$parent.removeAllTab()
        });
    },
    query(val) {
      this.selectAllTechTem();
    },
     selectAllTechTem() {
       this.$axios
        .get(this.$api.url.selectAllTechTem, {
          params: { type: this.typeselect, message: this.search.technology },
                        params: {
                            type: this.typeselect,
                            message: this.search.technology
                        },
        })
        .then((res) => {
          this.towTree = res.data;
          console.log(this.towTree);
          this.$nextTick(() => {
                this.$refs.tree.setCurrentKey(this.towTree[0].father) // é»˜è®¤é€‰ä¸­èŠ‚ç‚¹ç¬¬ä¸€ä¸ª
            })
          // let one=this.towTree.filter(item=>{
            // return item.children.length>0
          // })[0]
          // let name=one.children[0].name
      // this.checkTreeNode.name=name
          // this.selectAllTechNamStart(name)
      //     this.selectDataList();
      let one=this.towTree[0]
        let name =one.father
        this.checkTreeNode.father = name
              console.log(name);
        this.selectAllTechNamStart(name)
        });
    },
    handleNodeClick(data, node) {
        console.log(data);
      this.checkTreeNode = data;
      // this.treetrunk = node;
      // console.log(this.treetrunk);
      // console.log(this.checkTreeNode);
      this.selectAllTechNam();
    },
    selectAllTechNam() {
      this.$axios
        .get(this.$api.url.selectAllTechNam, {
          params: { father: this.checkTreeNode.father },
                        params: {
                            father: this.checkTreeNode.father
                        },
        })
        .then((res) => {
          this.tableData = res.data;
          let kk =this.tableData.map(el =>{
            console.log(el);
            return el.element
                })[0]
            // console.log(kk.replace('[','').replace(']','') );
            // console.log(kk.split(','));
            this.elerow = kk
        });
    },
    selectAllTechNamStart(name) {
      this.$axios
        .get(this.$api.url.selectAllTechNam, {
          params: { father: name },
                        params: {
                            father: name
                        },
        })
        .then((res) => {
          this.tableData = res.data;
@@ -792,12 +482,7 @@
    },
    addend() {
      this.dialogVisible = true;
      this.chooseTech();
      this.chooseDevGroup();
      // this.chooseElement();
    },
    modify() {
      this.modifyevent = true;
    },
    filterNode(value, data) {
      if (!value) return true;
@@ -815,18 +500,6 @@
        })
        .catch((e) => {});
    },
    // selectDataList() {
    //     this.list.forEach(a => {
    //         a.code = '[1]'
    //         if (a.children != undefined) {
    //             a.children.forEach(b => {
    //                 b.code = '[2]'
    //             })
    //         }
    //     })
    //     this.upIndex++
    // },
    nodeOpen(data, node, el) {
      $($(el.$el).find(".node_i")[0]).attr(
        "class",
@@ -870,28 +543,6 @@
        })
        .then((res) => {
          this.edit = res.data[0];
          this.cell = this.edit.element
          console.log(this.cell);
          let cc = JSON.parse(this.cell).join(",")
          console.log(cc);
          this.cell = cc
          console.log(this.cell);
        //   this.cell = this.edit.children.map(el => {
                //     return el.id
                // })
        //   this.cell = this.cell.join(',')
        //   this.cell = nn
        //   console.log(this.cell);
          //  let cc = this.edit.element.join(", ")
          //  let str = cc.join(", ");
            // let cc = JSON.parse(this.edit.element)
            // console.log(cc);
            // console.log(gg);
            // console.log(json.parse(gg));
        });
    },
    //编辑内容
@@ -901,19 +552,11 @@
      this.selecTechById()
      this.upDia = true;
    },
    submitUpData() {
      // this.tableData.forEach(a => {
      //     if (a.id == this.upData.id) {
      //         a.name = this.upData.name
      //         a.ask = this.upData.device_group
      //     }
      // })
      this.writeTechById();
      this.$message.success("修改成功");
      this.upIndex++;
      this.upDia = false;
    },
            }
  },
};
</script>
src/main.js
@@ -23,7 +23,7 @@
Vue.use(qs);
Vue.use(api);
const javaApi = 'http://127.0.0.1:8001'
const javaApi = 'http://10.20.102.112:8001'
// localhost 127.0.0.1
// const javaApi = 'http://127.0.0.1:8001/'
src/view/index.vue
@@ -358,12 +358,6 @@
                                u: ""
                            },
                            {
                                k: 16,
                                v: "回单管理",
                                i: "font icon-shouye",
                                u: ""
                            },
                            {
                                k: 17,
                                v: "半成品库存",
                                i: "font icon-shouye",
@@ -413,7 +407,7 @@
                            },
                            {
                                k: 6,
                                v: "成品检验",
                                v: "产品检验",
                                i: "font icon-shouye",
                                u: "finishedProductInspection"
                            },
@@ -472,12 +466,6 @@
                                u: "record-content"
                            },
                            {
                                k: 24,
                                v: "自检项目维护",
                                i: "font icon-shouye",
                                u: "self-inspection"
                            },
                            {
                                k: 25,
                                v: "技术指标维护",
                                i: "font icon-shouye",
@@ -500,12 +488,6 @@
                                v: "物料清单维护",
                                i: "font icon-shouye",
                                u: "mbom"
                            },
                            {
                                k: 30,
                                v: "生产工艺维护",
                                i: "font icon-shouye",
                                u: "equipmentmaintain"
                            }
                        ]
                    }