| | |
| | | <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="speName" label="规格型号" min-width="10%"> |
| | | </el-table-column> |
| | | <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-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="报告数:"> |
| | | <el-input style="width: 200px;" v-model="infoForm.num" placeholder="请输入报告数" autocomplete="off" |
| | | <el-input type="number" min="0" style="width: 200px;" v-model="infoForm.num" placeholder="请输入报告数" autocomplete="off" |
| | | size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-form-item label="样品名称:"> |
| | | <el-select v-model="addPointerForm.sampleName" size="small" placeholder="请选择样品名称" |
| | | @change="upMaterialName"> |
| | | <el-option v-for="options in sampleoptions" :value="options.key" :label="options.value"></el-option> |
| | | <el-option v-for="(options,index) in sampleoptions" :key="index" :value="options.key" :label="options.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | addInspection, |
| | | isIfViewUUID, |
| | | getProductList, |
| | | getContractsSampleInfo |
| | | getContractsSampleInfo, |
| | | getSpecificationsName |
| | | } from '@/api/inspection/commisioninspection' |
| | | export default { |
| | | data() { |
| | |
| | | experiment: [], |
| | | addway: '' |
| | | }, |
| | | experList: [{ |
| | | key: '1', |
| | | label: '外观检查' |
| | | }, { |
| | | key: '2', |
| | | label: '动作电压试验' |
| | | }, { |
| | | key: '3', |
| | | label: '电阻管泄漏电流试验' |
| | | }, { |
| | | key: '4', |
| | | label: '绝缘部分交流耐压试验' |
| | | }], |
| | | experList: [], |
| | | sampleoptions: [], |
| | | samplecodeoptions: [], |
| | | model_spe_options: [], |
| | |
| | | let res = await getContractsSampleInfo({ |
| | | viewId |
| | | }) |
| | | console.log(res.data); |
| | | }, |
| | | async getSampleName() { |
| | | const res = await getSampleName() |
| | |
| | | }, |
| | | addInspection() { |
| | | let exper = this.addPointerForm.experiment[0] |
| | | this.addPointerForm.addway = 1 |
| | | for (let i = 1; i < this.addPointerForm.experiment.length; i++) { |
| | | exper += ',' + this.addPointerForm.experiment[i] |
| | | } |
| | | this.addPointerForm.experiment = exper |
| | | let tmp = this.addPointerForm |
| | | this.sampleoptions.forEach(a => { |
| | | if (a.key == tmp.sampleName) tmp.sampleName = a.value |
| | | }) |
| | | tmp.speName = tmp.addway + '-' + tmp.speName |
| | | tmp.addway = 1 |
| | | this.detectionInfo.push(tmp) |
| | | this.dialogueFormVisible = false |
| | | this.addPointerForm = { |
| | |
| | | samplesNumber: '', |
| | | remarks: '', |
| | | experiment: [], |
| | | addway: '' |
| | | addway: '', |
| | | speName: '' |
| | | } |
| | | }, |
| | | async submitInspection() { |
| | |
| | | reportNumber: parseInt(this.infoForm.num), |
| | | sampleDeliveryMode: sampledeliveryway, |
| | | sampleDeliveryPhone: this.infoForm.sendertel, |
| | | sampleSender: this.infoForm.sender |
| | | sampleSender: this.infoForm.sender, |
| | | speName: this.infoForm.speName |
| | | }) |
| | | this.infoForm.commisioncode = res.data |
| | | if (res.data) { |
| | |
| | | return item.name |
| | | }) |
| | | }) |
| | | this.model_sta_options.forEach(a => { |
| | | if (a.key == val) { |
| | | this.addPointerForm.speName = a.value |
| | | } |
| | | }) |
| | | }, |
| | | getContractsSampleInfo() { |
| | | getContractsSampleInfo({ |
| | |
| | | } |
| | | this.detectionInfo = res.data.linkDetectionList |
| | | }) |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |