| | |
| | | <div v-show="!cableConfigShow&&!auxiliaryShow" style="margin-top: 10px"> |
| | | <div class="search"> |
| | | <el-descriptions class="order-detail" :column="4" border> |
| | | <el-descriptions-item label="检测依据">{{ addObj.sample || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="检测依据">{{ standardDisplayName(addObj.sample) }}</el-descriptions-item> |
| | | <el-descriptions-item label="样品名称">{{ addObj.sampleView || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="生产单位">{{ addObj.production || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="委托单位">{{ addObj.company || '-' }}</el-descriptions-item> |
| | |
| | | this.getInfo(); |
| | | }, |
| | | methods: { |
| | | standardDisplayName(value) { |
| | | if (!value) return '-'; |
| | | const separatorIndex = value.indexOf(' - '); |
| | | return separatorIndex > -1 ? value.slice(0, separatorIndex) : value; |
| | | }, |
| | | getInfo() { |
| | | this.selectStandardTreeList() |
| | | this.getAuthorizedPerson(); |
| | |
| | | }; |
| | | this.addObj.type = String(this.addObj.type) |
| | | this.sampleList = this.HaveJson(res.data.sampleProduct); |
| | | this.sampleCode = this.sampleList.length ? this.sampleList[0].sampleCode : '' |
| | | this.sampleCode = res.data.sampleCode || (this.sampleList.length ? this.sampleList[0].sampleCode : '') |
| | | this.boundTemplateList = (res.data.templateList || []).slice().sort((a, b) => (a.sort || 0) - (b.sort || 0)) |
| | | this.specialStandardMethod = this.sampleList[0].specialStandardMethod |
| | | this.getProNum() |