| | |
| | | :data="detectionInfo" style="width: 100%;margin-bottom: 20px;"> |
| | | <el-table-column type="index" label="序号" min-width="10%" /> |
| | | <el-table-column prop="sampleNumber" label="样品编号" min-width="8%" /> |
| | | |
| | | <el-table-column prop="sampleName" label="样品名称" min-width="10%" /> |
| | | |
| | | <el-table-column prop="specificationsModels" label="规格型号" min-width="10%" /> |
| | | <el-table-column prop="unit" label="单位" min-width="8%" /> |
| | | <el-table-column prop="samplesNumber" label="数量" min-width="8%" /> |
| | | <el-table-column prop="addway" label="添加方式" min-width="8%"> |
| | | <!-- <el-table-column prop="addway" label="添加方式" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.addway === 0"> |
| | | <el-tag type="success" disable-transitions>扫描</el-tag> |
| | |
| | | </div> |
| | | <div v-else></div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column prop="remarks" label="备注" min-width="8%" /> |
| | | <el-table-column label="操作" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | |
| | | <el-col :span="5"> |
| | | <el-form-item label="送样方式:"> |
| | | <el-select style="width: 200px;" v-model="infoForm.way" size="small" placeholder="送样"> |
| | | <el-option v-for="options in sampleDeliveryMode" :key="options.key" |
| | | :value="options.value">{{ options.value }}</el-option> |
| | | <el-option v-for="options in sampleDeliveryMode" :key="options.key" :value="options.key" |
| | | :label="options.value">{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | getlink, |
| | | addInspection, |
| | | isIfViewUUID, |
| | | getProductList |
| | | getProductList, |
| | | getContractsSampleInfo |
| | | } from '@/api/inspection/commisioninspection' |
| | | export default { |
| | | data() { |
| | |
| | | key: '4', |
| | | label: '绝缘部分交流耐压试验' |
| | | }], |
| | | sampleoptions: [{ |
| | | key: '1', |
| | | value: '选项1' |
| | | }, { |
| | | key: '2', |
| | | value: '选项2' |
| | | }], |
| | | samplecodeoptions: [{ |
| | | key: '1', |
| | | value: '' |
| | | }], |
| | | sampleoptions: [], |
| | | samplecodeoptions: [], |
| | | model_spe_options: [], |
| | | model_sta_options: [], |
| | | model_options: [], |
| | |
| | | if (!res.data) { |
| | | this.$message.error('当前链接不在有效期内,系统自动关闭') |
| | | this.$router.push('/404') |
| | | } else { |
| | | this.getContractsSampleInfo() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | for (let i = 1; i < this.addPointerForm.experiment.length; i++) { |
| | | exper += ',' + this.addPointerForm.experiment[i] |
| | | } |
| | | |
| | | // console.log(exper) |
| | | this.addPointerForm.experiment = exper |
| | | let tmp = this.addPointerForm |
| | | this.detectionInfo.push(tmp) |
| | |
| | | this.infoForm.commisioncode = res.data |
| | | if (res.data) { |
| | | this.$message({ |
| | | message: '恭喜你!', |
| | | message: '添加成功!', |
| | | type: 'success' |
| | | }) |
| | | this.showDetail = true |
| | |
| | | return item.name |
| | | }) |
| | | }) |
| | | }, |
| | | getContractsSampleInfo() { |
| | | getContractsSampleInfo({ |
| | | viewId: this.viewId |
| | | }).then(res => { |
| | | this.infoForm = { |
| | | commisioncode: res.data.entrustCoding, |
| | | deadline: res.data.completionDeadline, |
| | | address: res.data.contactAddress, |
| | | tel: res.data.contactNumber, |
| | | contacter: res.data.contacts, |
| | | other: res.data.entrustRemarks, |
| | | department: res.data.entrusted, |
| | | time: res.data.inspectionTime, |
| | | detectionInfo: res.data.linkDetectionList, |
| | | num: res.data.reportNumber, |
| | | way: '' + res.data.sampleDeliveryMode, |
| | | sendertel: res.data.sampleDeliveryPhone, |
| | | sender: res.data.sampleSender |
| | | } |
| | | this.detectionInfo = res.data.linkDetectionList |
| | | }) |
| | | } |
| | | } |
| | | } |