| | |
| | | templateId:{ |
| | | select:[] |
| | | }, |
| | | sonLaboratory: {select:[]} |
| | | sonLaboratory: {select:[]}, |
| | | unit: {select:[]}, |
| | | sample: {select:[]}, |
| | | dic: {select:[]}, |
| | | }, |
| | | selectField: { |
| | | inspectionItemType: { |
| | |
| | | templateId:{ |
| | | select:[] |
| | | }, |
| | | method:{select:[]}, |
| | | method:{select:[],choose: true}, |
| | | deviceGroup:{select:[]}, |
| | | sample: {select:[]}, |
| | | sonLaboratory: {select:[]} |
| | | sonLaboratory: {select:[]}, |
| | | unit: {select:[]}, |
| | | dic:{select:[]}, |
| | | }, |
| | | requiredAdd: ['sonLaboratory','inspectionItem', 'manHour', 'inspectionItemType','inspectionItemSubclass','inspectionValueType','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','sample'], |
| | | requiredUp: ['sonLaboratory','inspectionItem', 'manHour', 'inspectionItemType','inspectionItemSubclass','inspectionValueType','laboratory','unit','method','price','manDay','deviceGroup','checkoutNumber','sample'] |
| | | requiredAdd: ['sonLaboratory','inspectionItem', 'manHour', 'inspectionItemType','inspectionItemSubclass','inspectionValueType','laboratory','unit','method','price','manDay','deviceGroup','sample'], |
| | | requiredUp: ['sonLaboratory','inspectionItem', 'manHour', 'inspectionItemType','inspectionItemSubclass','inspectionValueType','laboratory','unit','method','price','manDay','deviceGroup','sample'] |
| | | }, |
| | | testObjectData: { |
| | | entity: { |
| | |
| | | this.selectTestObjectByName() |
| | | this.getStandardTemplate() |
| | | this.selectEnumByCategoryForSLaboratory() |
| | | this.selectDocUnit() |
| | | this.selectEnumByCategoryForUnit() |
| | | this.getPower('0') |
| | | }, |
| | | methods: { |
| | |
| | | this.itemParameterData.tagField.sonLaboratory.select = res.data |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForUnit() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "单位" |
| | | }).then(res => { |
| | | this.itemParameterData.selectField.unit.select = res.data |
| | | this.itemParameterData.tagField.unit.select = res.data |
| | | }) |
| | | }, |
| | | selectDocUnit() { |
| | | this.$axios.post(this.$api.enums.getDic).then(res => { |
| | | this.itemParameterData.selectField.dic.select = res.data.map(m=>{ |
| | | return { |
| | | label: m, |
| | | value:m |
| | | } |
| | | }) |
| | | this.itemParameterData.tagField.dic.select = res.data.map(m=>{ |
| | | return { |
| | | label: m, |
| | | value:m |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | obtainItemParameterList() { |
| | | this.$axios.get(this.$api.laboratoryScope.obtainItemParameterList).then(res => { |
| | | let data = [] |
| | |
| | | res.data.forEach(a => { |
| | | data.push({ |
| | | label: a.specimenName, |
| | | value: a.specimenName |
| | | value: a.id, |
| | | type: 'success' |
| | | }) |
| | | }) |
| | | this.itemParameterData.selectField.sample.select = data |
| | | this.itemParameterData.tagField.sample.select = data |
| | | }) |
| | | }, |
| | | getStandardTemplate() { |