| | |
| | | <el-col :span="11"> |
| | | <el-form-item label="规格型号:"> |
| | | <el-select v-model="addPointerForm.specificationsModels" size="small" placeholder="请先选择样品名称"> |
| | | <el-option v-for="options in model_spe_options" :value="options.value" |
| | | <el-option v-for="options in model_sta_options" :value="options.value" |
| | | :key="options.key">{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | <el-row :gutter="50"> |
| | | |
| | |
| | | <el-input type="text" v-model="addPointerForm.unit" placeholder="请输入单位" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | <el-col :span="11"> |
| | | <el-form-item label="样品数量:"> |
| | | <el-input type="text" v-model="addPointerForm.samplesNumber" placeholder="请输入数量" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | <el-row :gutter="50"> |
| | | <el-col :span="9"> |
| | |
| | | </el-col> |
| | | <el-col :span="41"> |
| | | <el-form-item label="备注:"> |
| | | <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 20}" style="width: 200px;" v-model="addPointerForm.remarks" placeholder="请输入备注" autocomplete="off" /> |
| | | <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 20}" style="width: 200px;" |
| | | v-model="addPointerForm.remarks" placeholder="请输入备注" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | value: '' |
| | | }], |
| | | model_spe_options: [], |
| | | model_sta_options: [], |
| | | model_options: [], |
| | | sampleDeliveryMode: [{ |
| | | key: '1', |
| | | value: '送样' |
| | |
| | | dialogueFormVisible: false, |
| | | showDetail: false, |
| | | viewId: null |
| | | } |
| | | }, |
| | | watch: { |
| | | addPointerForm: { |
| | | handler: function(val) { |
| | | if(val.addway!=""){ |
| | | this.model_sta_options = [] |
| | | this.model_options.forEach(a=>{ |
| | | if(a.specificationsName==val.addway){ |
| | | this.model_sta_options = a.children.map(item=>{ |
| | | return{ |
| | | key: item.modelId, |
| | | value: item.modelName |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | deep: true |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | const res = await getModelSpecification({ |
| | | materialId: val |
| | | }) |
| | | this.model_options = res.data |
| | | this.model_spe_options = res.data.map((item) => { |
| | | return { |
| | | key: item.specificationsId, |
| | |
| | | for (let i = 1; i < this.addPointerForm.experiment.length; i++) { |
| | | exper += ',' + this.addPointerForm.experiment[i] |
| | | } |
| | | |
| | | |
| | | // console.log(exper) |
| | | this.addPointerForm.experiment = exper |
| | | let tmp = this.addPointerForm |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content-main{ |
| | | padding: 20px 40px; |
| | | background-color: #f0f2f5; |
| | | width: 100%; |
| | | height: 100vh; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | // align-items: center; |
| | | .content-main { |
| | | padding: 20px 40px; |
| | | background-color: #f0f2f5; |
| | | width: 100%; |
| | | height: 100vh; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | // align-items: center; |
| | | |
| | | .firstBox { |
| | | .title { |