| | |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | <el-form-item label="规格型号:"> |
| | | <el-select v-model="addPointerForm.specificationsModels" size="small" placeholder="请先选择样品名称"> |
| | | <el-option v-for="options in model_sta_options" :value="options.value" |
| | | <el-select v-model="addPointerForm.specificationsModels" size="small" placeholder="请先选择样品名称" @change="getProductList"> |
| | | <el-option v-for="options in model_sta_options" :value="options.key" :label="options.value" |
| | | :key="options.key">{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="50"> |
| | | |
| | | <el-col :span="11"> |
| | | <el-form-item label="样品单位:"> |
| | | <el-input type="text" v-model="addPointerForm.unit" placeholder="请输入单位" autocomplete="off" /> |
| | |
| | | <el-col :span="9"> |
| | | <el-form-item label="添加项目:"> |
| | | <el-checkbox-group v-model="addPointerForm.experiment" style="display: flex; flex-direction: column;"> |
| | | <el-checkbox v-for="expers in experList" :label="expers.label" |
| | | :key="expers.key">{{ expers.label }}</el-checkbox> |
| | | <el-checkbox v-for="(expers, ai) in productList" :label="expers" |
| | | :key="ai">{{ expers }}</el-checkbox> |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | getModelSpecification, |
| | | getlink, |
| | | addInspection, |
| | | isIfViewUUID |
| | | isIfViewUUID, |
| | | getProductList |
| | | } from '@/api/inspection/commisioninspection' |
| | | export default { |
| | | data() { |
| | |
| | | }], |
| | | dialogueFormVisible: false, |
| | | showDetail: false, |
| | | viewId: null |
| | | viewId: null, |
| | | productList: [] |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | message: '恭喜你!', |
| | | type: 'success' |
| | | }) |
| | | // 跳转页面 |
| | | this.$router.push('/inspectionManagement/commissionInspection') |
| | | this.showDetail = true |
| | | } else { |
| | | this.$message.error(res.message) |
| | |
| | | } |
| | | }) |
| | | this.getModelSpecification(val) |
| | | }, |
| | | getProductList(val){ |
| | | getProductList({modelId: val}).then(res=>{ |
| | | this.productList = res.data.map(item=>{ |
| | | return item.name |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |