Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before
| | |
| | | upStandardTemplate: "/StandardTemplate/upStandardTemplate", //修改检验模板 |
| | | delStandardTemplate: "/StandardTemplate/delStandardTemplate", //删除检验模板 |
| | | getStandardTemplate: "/StandardTemplate/getStandardTemplate", //查询原始记录模板枚举 |
| | | getEditTemplatePreparation: "/StandardTemplate/getEditTemplatePreparation" |
| | | } |
| | | |
| | | const insReport = { |
| | |
| | | <el-tree :data="list" ref="tree" :props="{ children: 'children', label: 'name' }" node-key="id" |
| | | :filter-node-method="filterNode" @node-click="handleNodeClick" highlight-current @node-expand="nodeOpen" |
| | | @node-collapse="nodeClose" v-loading="treeLoad" :expand-on-click-node="false" |
| | | :default-expanded-keys="expandedKeys" :default-checked-keys="defaultCheckedKeys"> |
| | | :default-expanded-keys="expandedKeys"> |
| | | <div class="custom-tree-node" slot-scope="{ node, data }"> |
| | | <el-row style="width: 100%;"> |
| | | <el-col :span="21" :class="{sort:node.level>3}"> |
| | |
| | | selectField: {}, |
| | | upUserDepardLimsIdPower: true |
| | | }, |
| | | defaultCheckedKeys:[] |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.treeLoad = true |
| | | this.$axios.get(this.$api.department.selectDepartmentLim).then(res => { |
| | | this.list = res.data |
| | | this.refresh() |
| | | this.list.forEach(a => { |
| | | a.children.forEach(b => { |
| | | this.expandedKeys.push(b.id) |
| | | }) |
| | | }) |
| | | this.treeLoad = false |
| | | this.defaultCheckedKeys = [this.list[0].id] |
| | | this.componentData.entity.departLimsId = this.list[0].id; |
| | | this.selectTree = this.list[0].name |
| | | this.refreshTable() |
| | |
| | | this.addPower = add |
| | | }, |
| | | templateWrite(row) { |
| | | this.isShow = true |
| | | this.row = row |
| | | this.$axios.get(this.$api.StandardTemplate.getEditTemplatePreparation + '?id=' + row.id).then(res => { |
| | | this.row = row |
| | | this.row.thing = res.data |
| | | this.isShow = true |
| | | }) |
| | | }, |
| | | closed() { |
| | | this.loading = true |
| | |
| | | return this.$message.error('请选择检验项') |
| | | } |
| | | this.moreEditLoad = true |
| | | for(let a in this.moreInfo){ |
| | | if(this.moreInfo[a]==''){ |
| | | delete this.moreInfo[a] |
| | | } |
| | | } |
| | | this.$axios.post(this.$api.standardTree.upStandardProducts, { |
| | | ids: this.moreSelects.map(a => a.id), |
| | | standardProductList: this.moreInfo |
| | |
| | | i: "font icon-erjidaohang", |
| | | u: "a6-personnel-overview", |
| | | g: "6.2 人员", |
| | | p: "selectUserList" |
| | | p: "selectPersonnelOverview" |
| | | }, { |
| | | v: "人员明细", |
| | | i: "font icon-erjidaohang", |