| | |
| | | const laboratoryScope = { |
| | | selectItemParameter: "/laboratoryScope/selectItemParameter", //查询实验室管理列表 |
| | | addParameter: "/laboratoryScope/addParameter", //添加实验室参数 |
| | | delItemParameter: "/laboratoryScope/delParameter", //删除实验室参数 |
| | | upItemParameter: "/laboratoryScope/upParameter", //修改实验室参数 |
| | | delParameter: "/laboratoryScope/delParameter", //删除实验室参数 |
| | | upParameter: "/laboratoryScope/upParameter", //修改实验室参数 |
| | | obtainItemParameterList: "/laboratoryScope/obtainItemParameterList", //获取实验室名称 |
| | | } |
| | | |
| | | const systemLog = { |
| | |
| | | }, |
| | | bsm:{ |
| | | select: [] |
| | | }, |
| | | inspectionValueType:{ |
| | | select:[] |
| | | }, |
| | | laboratory:{ |
| | | select:[] |
| | | } |
| | | }, |
| | | selectField: { |
| | |
| | | }, |
| | | bsm:{ |
| | | select: [] |
| | | }, |
| | | inspectionValueType:{ |
| | | select:[] |
| | | }, |
| | | laboratory:{ |
| | | select:[] |
| | | } |
| | | }, |
| | | requiredAdd: ['inspectionItem', 'manHour', 'inspectionItemType','inspectionItemClassify','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','valueType'], |
| | | requiredUp: ['inspectionItem', 'manHour', 'inspectionItemType','inspectionItemClassify','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','valueType'] |
| | | requiredAdd: ['inspectionItem', 'manHour', 'inspectionItemType','inspectionValueType','inspectionItemClassify','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','valueType'], |
| | | requiredUp: ['inspectionItem', 'manHour', 'inspectionItemType','inspectionValueType','inspectionItemClassify','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','valueType'] |
| | | }, |
| | | testObjectData: { |
| | | entity: { |
| | |
| | | this.selectEnumByCategory() |
| | | this.selectEnumByCategoryForValue() |
| | | this.selectEnumByCategoryForSpecial() |
| | | this.selectEnumByCategoryForInspectionValueType() |
| | | this.obtainItemParameterList() |
| | | this.getPower('0') |
| | | }, |
| | | methods: { |
| | |
| | | this.itemParameterData.tagField.bsm.select = res.data |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForInspectionValueType() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "检验值类型" |
| | | }).then(res => { |
| | | this.itemParameterData.selectField.inspectionValueType.select = res.data |
| | | this.itemParameterData.tagField.inspectionValueType.select = res.data |
| | | }) |
| | | }, |
| | | obtainItemParameterList() { |
| | | this.$axios.get(this.$api.laboratoryScope.obtainItemParameterList).then(res => { |
| | | let data = [] |
| | | res.data.forEach(a=>{ |
| | | data.push({ |
| | | label: a.laboratoryName, |
| | | value: a.laboratoryName |
| | | }) |
| | | }) |
| | | this.itemParameterData.selectField.laboratory.select = data |
| | | this.itemParameterData.tagField.laboratory.select = data |
| | | }) |
| | | }, |
| | | // 权限分配 |
| | | getPower(radio) { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | |
| | | c: [{ |
| | | v: "标准库", |
| | | i: "font icon-24gl-clipboardList", |
| | | u: "", |
| | | u: "b2-standard", |
| | | p: "" |
| | | }, { |
| | | v: "标准模板", |