| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="供应商" prop="supplier"> |
| | | <el-select v-model="form.supplier" clearable filterable placeholder="请选择" size="small" style="width: 100%"> |
| | | <el-option v-for="item in supplierOptions" :key="item.value" :label="item.label" :value="item.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="出厂编号" prop="factoryNum"> |
| | | <el-input v-model="form.factoryNum" clearable size="small"></el-input> |
| | | </el-form-item> |
| | |
| | | <el-input v-model="form.manageNum" clearable size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="不确定度" prop="uncertainty"> |
| | | <el-input v-model="form.uncertainty" clearable size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="数量" prop="quantity"> |
| | | <el-input v-model="form.quantity" clearable size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="单位" prop="unit"> |
| | | <el-input v-model="form.unit" clearable size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | <el-input v-model="form.fileNum" clearable size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="存放位置" prop="position"> |
| | | <el-input v-model="form.position" clearable size="small"></el-input> |
| | | </el-form-item> |
| | |
| | | import { |
| | | addStandardSubstance |
| | | } from "@/api/cnas/resourceDemand/standardMaterial/standardMaterial"; |
| | | import { selectQualifiedSupplierManagementPage } from "@/api/cnas/externalService/supplierManage/supplierManage"; |
| | | |
| | | export default { |
| | | name: 'formDia', |
| | |
| | | name: '', |
| | | model: '', |
| | | factoryManufacturer: '', |
| | | supplier: '', |
| | | factoryNum: '', |
| | | manageNum: '', |
| | | uncertainty: '', |
| | | quantity: '', |
| | | unit: '', |
| | | acquisitionDate: '', |
| | | effectiveDate: '', |
| | | fileNum: '', |
| | |
| | | rules: { |
| | | name: [{required: true, message: '请填写标准物质名称',trigger: 'blur'}], |
| | | model: [{required: true, message: '请填写规格型号',trigger: 'blur'}], |
| | | factoryManufacturer: [{required: true, message: '请填写生产厂家',trigger: 'blur'}], |
| | | factoryNum: [{required: true, message: '请填写出厂编号',trigger: 'blur'}], |
| | | manageNum: [{required: true, message: '请填写管理编号',trigger: 'blur'}], |
| | | uncertainty: [{required: true, message: '请填写不确定度',trigger: 'blur'}], |
| | |
| | | position: [{required: true, message: '请填写存放位置',trigger: 'blur'}], |
| | | }, |
| | | operationType: '', |
| | | supplierOptions: [], |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | methods: { |
| | | // 打开弹框 |
| | | openDia (type, row) { |
| | | this.loadSuppliers() |
| | | this.formDia = true |
| | | this.operationType = type |
| | | if (type !== 'add') { |
| | | this.form = row |
| | | } |
| | | }, |
| | | loadSuppliers () { |
| | | selectQualifiedSupplierManagementPage({ current: 1, size: 999 }).then(res => { |
| | | if (res.code === 200) { |
| | | this.supplierOptions = (res.data.records || []).map(item => ({ |
| | | label: item.supplierName, |
| | | value: item.supplierName |
| | | })) |
| | | } |
| | | }) |
| | | }, |
| | | // 提交弹框数据 |
| | | handleEdit () { |
| | | this.$refs['form'].validate((valid) => { |