| | |
| | | <el-table-column prop="entrusted" label="委托单位" min-width="12%" /> |
| | | <el-table-column prop="samples_number" label="样品数量" min-width="8%" /> |
| | | <el-table-column prop="sample_name" label="样品名称" min-width="8%" /> |
| | | <el-table-column prop="specifications_models" label="规格型号" min-width="12%" /> |
| | | <el-table-column prop="speName" label="规格型号" min-width="12%" /> |
| | | <el-table-column prop="inspectionTime" label="送样时间" min-width="8%" /> |
| | | <el-table-column prop="completionDeadline" label="完成期限" min-width="8%" /> |
| | | <el-table-column prop="contacts" label="委托编制人" min-width="8%" /> |
| | |
| | | selectViewUUID, |
| | | delLink, |
| | | chooseVersion, |
| | | lookProByVer |
| | | lookProByVer, |
| | | addInspect |
| | | } from '@/api/inspection/commisioninspection' |
| | | export default { |
| | | data() { |
| | |
| | | confirmBtn(formName) { |
| | | this.$refs[formName].validate((valid)=>{ |
| | | if(valid){ |
| | | // let dateArr = this.addInspectionForm.inspectionDate; |
| | | // //添加报检单 |
| | | // let val = this.checkData[0]; |
| | | // let obj = { |
| | | // "endTime": dateArr[1], |
| | | // "experiment": "", |
| | | // "formTime": val.createTime, |
| | | // "id": val.id, |
| | | // "mcode": val.materialCoding, |
| | | // "name": val.materialName, |
| | | // "num": val.quantity, |
| | | // "specifications": val.specificationsModels, |
| | | // "startTime": dateArr[0], |
| | | // "supplier": val.supplierName, |
| | | // "type": val.type, |
| | | // "unit": val.unit, |
| | | // "version": this.addInspectionForm.version |
| | | // } |
| | | // // this.createReport(obj); |
| | | // this.addReportDialog = false; |
| | | // this.initNewSelection(); |
| | | // this.showNewPage = true; |
| | | let dateArr = this.addInspectionForm.inspectionDate; |
| | | //添加报检单 |
| | | let val = this.checkData[0]; |
| | | let obj = { |
| | | "endTime": dateArr[1], |
| | | "mcode":"mcode", |
| | | "formTime": val.inspectionTime, |
| | | "id": val.id, |
| | | "name": val.sample_name, |
| | | "num": val.samples_number, |
| | | "specifications": val.speName, |
| | | "startTime": dateArr[0], |
| | | "supplier": val.entrusted, |
| | | "type": 2, |
| | | "version": this.addInspectionForm.version |
| | | } |
| | | this.createReport(obj); |
| | | this.addReportDialog = false; |
| | | } |
| | | }); |
| | | }, |
| | | //生成报检单请求 |
| | | async createReport(param) { |
| | | let res = await addInspect(param); |
| | | if(res.data==null)return |
| | | this.$message.success('报检成功') |
| | | this.$router.push(`/experiment/Viewdetails/${res.data}`) |
| | | }, |
| | | //生成报检单按钮 |
| | | addReportBtn() { |
| | |
| | | } else { |
| | | let mcode = this.checkData[0].entrust_coding; |
| | | let name = this.checkData[0].sample_name; |
| | | let specifications = this.checkData[0].specifications_models; |
| | | let specifications = this.checkData[0].speName; |
| | | let id = this.checkData[0].id; |
| | | this.getChooseVersionFun(mcode,name,specifications,id); |
| | | this.addReportDialog = true; |
| | |
| | | changeVersionFun(){ |
| | | let mCode = this.checkData[0].entrust_coding; |
| | | let name = this.checkData[0].sample_name; |
| | | let specifications = this.checkData[0].specifications_models; |
| | | let specifications = this.checkData[0].speName; |
| | | let version = this.addInspectionForm.version; |
| | | let id = this.checkData[0].id; |
| | | this.getProByVersion(mCode,name,specifications,version,id); |
| | |
| | | var vm = this; |
| | | this.chooseVersion = []; |
| | | await chooseVersion({ |
| | | mcode : mCode, |
| | | id : id, |
| | | name : name, |
| | | specifications : specifications |
| | | }).then((res)=>{ |