From b67db3c5770e0ecc0b8a36b9c297aee16aa44227 Mon Sep 17 00:00:00 2001 From: 李林 <z1292839451@163.com> Date: 星期二, 12 三月 2024 18:05:47 +0800 Subject: [PATCH] 功能调整 --- src/components/view/b2-standard.vue | 70 ++++++++++++++++++++++++++++++++-- 1 files changed, 65 insertions(+), 5 deletions(-) diff --git a/src/components/view/b2-standard.vue b/src/components/view/b2-standard.vue index a67a3e0..9a88a70 100644 --- a/src/components/view/b2-standard.vue +++ b/src/components/view/b2-standard.vue @@ -152,19 +152,19 @@ @selection-change="handleSelectionChange"> <el-table-column type="selection" width="65"></el-table-column> <el-table-column prop="inspectionItem" label="妫�楠岄」" show-overflow-tooltip></el-table-column> - <el-table-column prop="inspectionItemClassify" label="妫�楠岄」绫诲瀷" width="120" show-overflow-tooltip></el-table-column> - <el-table-column prop="inspectionItemSubclass" label="妫�楠岄」灏忕被" width="120" show-overflow-tooltip></el-table-column> + <!-- <el-table-column prop="inspectionItemClassify" label="妫�楠岄」绫诲瀷" width="120" show-overflow-tooltip></el-table-column> --> + <el-table-column prop="inspectionItemSubclass" label="妫�楠岄」瀛愰」" show-overflow-tooltip></el-table-column> <el-table-column prop="laboratory" label="瀹為獙瀹�" width="120" show-overflow-tooltip></el-table-column> <el-table-column prop="unit" label="璁¢噺鍗曚綅" width="100" show-overflow-tooltip></el-table-column> <el-table-column prop="price" label="鍗曚环" width="100" show-overflow-tooltip></el-table-column> <el-table-column prop="manHour" label="宸ユ椂" width="80" show-overflow-tooltip></el-table-column> <el-table-column prop="manHourGroup" label="宸ユ椂鍒嗙粍" width="100" show-overflow-tooltip></el-table-column> - <el-table-column prop="deviceGroup" label="璁惧缁�" show-overflow-tooltip></el-table-column> + <el-table-column prop="deviceGroup" label="璁惧缁�" width="120" show-overflow-tooltip></el-table-column> <el-table-column prop="section" label="鍖洪棿" width="120" show-overflow-tooltip></el-table-column> <el-table-column prop="ask" label="瑕佹眰鍊�" width="220px"> <template slot-scope="scope"> <el-input size="small" placeholder="瑕佹眰鍊�" v-model="scope.row.ask" clearable - @change="(value)=>upStandardProductList(value,scope.row.id)" v-if="upStandardProduct"></el-input> + @change="(value)=>upStandardProductList(value,scope.row.id)" v-if="upStandardProduct" type="textarea" :autosize="{ minRows: 1, maxRows: 3}"></el-input> <span v-else>{{scope.row.ask}}</span> </template> </el-table-column> @@ -311,7 +311,21 @@ showSelect: true, select: true, do: [], - tagField: {}, + tagField: { + inspectionItemType: { + select: [] + }, + valueType: { + select: [] + }, + bsm:{ + select: [] + }, + inspectionValueType:{ + select:[] + }, + deviceGroup:{select:[]} + }, selectField: {}, } } @@ -324,6 +338,11 @@ this.selectEnumByCategoryForsampleType() this.selectTestObjectByName() this.selectStandardMethods() + this.selectEnumByCategoryForDevice() + this.selectEnumByCategory() + this.selectEnumByCategoryForValue() + this.selectEnumByCategoryForSpecial() + this.selectEnumByCategoryForInspectionValueType() }, methods: { filterNode(value, data) { @@ -347,6 +366,11 @@ } this.selectTree = data2.replace(' - ', '') this.selectsStandardMethodByFLSSM() + let trees = this.selectTree.split(" - ") + this.addOb.factory = trees[0] + this.addOb.laboratory = trees[1] + this.addOb.sampleType = trees[2] + this.addOb.sample = trees[3] }, getNodeParent(val) { if (val.parent != null) { @@ -400,6 +424,42 @@ this.sampleType = res.data }) }, + selectEnumByCategoryForDevice() { + this.$axios.post(this.$api.enums.selectEnumByCategory, { + category: "璁惧鍒嗙被" + }).then(res => { + this.componentData.tagField.deviceGroup.select = res.data + }) + }, + selectEnumByCategory() { + this.$axios.post(this.$api.enums.selectEnumByCategory, { + category: "妫�楠岄」绫诲瀷" + }).then(res => { + res.data[1].type = 'info' + this.componentData.tagField.inspectionItemType.select = res.data + }) + }, + selectEnumByCategoryForValue() { + this.$axios.post(this.$api.enums.selectEnumByCategory, { + category: "鍙栧�肩被鍨�" + }).then(res => { + this.componentData.tagField.valueType.select = res.data + }) + }, + selectEnumByCategoryForSpecial() { + this.$axios.post(this.$api.enums.selectEnumByCategory, { + category: "鐗规畩鏍囪瘑" + }).then(res => { + this.componentData.tagField.bsm.select = res.data + }) + }, + selectEnumByCategoryForInspectionValueType() { + this.$axios.post(this.$api.enums.selectEnumByCategory, { + category: "妫�楠屽�肩被鍨�" + }).then(res => { + this.componentData.tagField.inspectionValueType.select = res.data + }) + }, selectStandardTreeList() { this.treeLoad = true this.$axios.get(this.$api.standardTree.selectStandardTreeList).then(res => { -- Gitblit v1.9.3