| | |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <!-- <div class="search_thing"> |
| | | <div class="search_label" style="width:90px"><span class="required-span">* </span>试验室:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="connect.sonLaboratory" placeholder="请选择" style="width: 100%;" filterable> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="connectVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="confirmConnect" :loading="loading">确 定</el-button> |
| | |
| | | connectVisible:false, |
| | | connect:{ |
| | | connectPerson:'', |
| | | sonLaboratory:'' |
| | | // sonLaboratory:'' |
| | | }, |
| | | loading:false, |
| | | currentTime: null, |
| | |
| | | this.orderId = row.id |
| | | this.connect = {} |
| | | this.connectVisible=true; |
| | | this.$axios.post(this.$api.insOrderPlan.upPlanUser2, { |
| | | orderId:this.orderId, |
| | | }).then(res => { |
| | | if (res.code === 200&&res.data.length>0) { |
| | | this.sonLaboratoryList = []; |
| | | res.data.forEach(m=>{ |
| | | this.sonLaboratoryList.push({ |
| | | value:m, |
| | | label:m |
| | | }) |
| | | }) |
| | | this.connect.sonLaboratory = this.sonLaboratoryList[0].value |
| | | } |
| | | }) |
| | | // this.$axios.post(this.$api.insOrderPlan.upPlanUser2, { |
| | | // orderId:this.orderId, |
| | | // }).then(res => { |
| | | // if (res.code === 200&&res.data.length>0) { |
| | | // this.sonLaboratoryList = []; |
| | | // res.data.forEach(m=>{ |
| | | // this.sonLaboratoryList.push({ |
| | | // value:m, |
| | | // label:m |
| | | // }) |
| | | // }) |
| | | // // this.connect.sonLaboratory = this.sonLaboratoryList[0].value |
| | | // } |
| | | // }) |
| | | }, |
| | | confirmConnect(){ |
| | | if(this.connect.connectPerson==null||this.connect.connectPerson==''||this.connect.connectPerson==undefined){ |
| | | this.$message.error('未选择交接人员') |
| | | return |
| | | } |
| | | if(this.connect.sonLaboratory==null||this.connect.sonLaboratory==''||this.connect.sonLaboratory==undefined){ |
| | | this.$message.error('未选择试验室') |
| | | return |
| | | } |
| | | // if(this.connect.sonLaboratory==null||this.connect.sonLaboratory==''||this.connect.sonLaboratory==undefined){ |
| | | // this.$message.error('未选择试验室') |
| | | // return |
| | | // } |
| | | this.loading = true; |
| | | this.$axios.post(this.$api.insOrderPlan.upPlanUser, { |
| | | orderId:this.orderId, |
| | | userId:this.connect.connectPerson, |
| | | sonLaboratory:this.connect.sonLaboratory, |
| | | sonLaboratory:this.componentData.entity.sonLaboratory, |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.loading = false; |