| | |
| | | </el-select> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6" v-if="addObj.formType==='其他成品'"> |
| | | <div class="search_label">零件号:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" :placeholder="active>1 ? '' : '请输入'" clearable v-model="addObj.partNo" |
| | | :readonly="active>1"></el-input> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="search_thing" :span="6" v-if="addObj.formType!='其他成品'&&addObj.formType"> |
| | | <div class="search_label"><span class="required-span">* </span>下发至对象:</div> |
| | | <div class="search_input"> |
| | |
| | | <div class="search_input"> |
| | | <!-- <el-input size="small" placeholder="请输入" clearable v-model="addObj.production" |
| | | :readonly="active>1"></el-input> --> |
| | | <el-input size="small" v-model="addObj.production" placeholder="选择生产单位"> |
| | | <el-input size="small" v-model="addObj.production" placeholder="选择生产单位" :readonly="active>1"> |
| | | <template slot="append"><el-button slot="append" icon="el-icon-search" @click="selectUserDia = true,createState=2" |
| | | :disabled="active>1"></el-button></template> |
| | | </el-input> |
| | |
| | | companyId: null, |
| | | prepareUser:null, |
| | | departmentLimsId:null, |
| | | departmentLims:null |
| | | departmentLims:null, |
| | | partNo: null, // 零件号 |
| | | }, |
| | | sample: { |
| | | sampleCode: null, |
| | |
| | | } |
| | | }else if(this.createState==2){ |
| | | this.addObj.production = selects.company |
| | | this.addObj.productionEn = selects.companyEn |
| | | // 如果选择的单位是没有对应的英文名称就用'/'代替 |
| | | if (!selects.companyEn) { |
| | | this.addObj.productionEn = '/' |
| | | } else { |
| | | this.addObj.productionEn = selects.companyEn |
| | | } |
| | | } |
| | | this.selectUserDia = false |
| | | }, |
| | |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }).then(res => { |
| | | this.getProductLoad = false |
| | | res.data.forEach(a => { |
| | | a.state = 0 |
| | | }) |
| | | row.insProduct = this.HaveJson(res.data) |
| | | this.getProductLoad = false |
| | | this.productList = row.insProduct |
| | | this.productList0 = JSON.parse(JSON.stringify(this.productList)) |
| | | this.$refs.sampleTable.setCurrentRow(row) |
| | |
| | | if (a.state == 1) this.toggleSelection(a) |
| | | }) |
| | | }, 200) |
| | | }).catch(e => { |
| | | this.getProductLoad = false |
| | | }) |
| | | this.searchProject() |
| | | this.searchTemList() |
| | |
| | | }, |
| | | selectDepartmentEnum(){ |
| | | this.$axios.get(this.$api.department.selectDepartmentLimsEnum).then(res=>{ |
| | | this.deaprtEnum = res.data |
| | | this.deaprtEnum = res.data.filter(item=>item.name === '质量部' || item.name === '检测中心') |
| | | }) |
| | | } |
| | | } |