| | |
| | | <el-input size="small" placeholder="请输入" clearable v-model="queryParams.name" |
| | | @keyup.enter="refreshTable()"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="标准分类" prop="industryId"> |
| | | <el-select v-model="queryParams.industryId" size="small" clearable filterable placeholder="请选择" |
| | | style="width: 180px"> |
| | | <el-option v-for="item in industryOptions" :key="item.id" :label="item.laboratoryName" |
| | | :value="item.id"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" size="small" @click="refreshTable">查询</el-button> |
| | | <el-button size="small" @click="refresh">重置</el-button> |
| | |
| | | <!-- 新增/编辑 --> |
| | | <el-dialog :title="title" v-model="addDlog" width="500px"> |
| | | <el-form :model="addForm" ref="addForm" :rules="addRules" label-position="right" label-width="120px"> |
| | | <el-form-item label="行业" prop="industryIds"> |
| | | <el-select v-model="addForm.industryIds" multiple filterable clearable collapse-tags placeholder="请选择行业" |
| | | <el-form-item label="标准分类" prop="industryIds"> |
| | | <el-select v-model="addForm.industryIds" multiple filterable clearable collapse-tags placeholder="请选择标准分类" |
| | | style="width: 100%"> |
| | | <el-option v-for="item in industryOptions" :key="item.id" :label="item.laboratoryName" :value="item.id"/> |
| | | </el-select> |
| | |
| | | <el-input size="small" placeholder="请输入" clearable v-model="addForm.remark"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="资质" prop="qualificationId"> |
| | | <el-form-item v-if="title === '编辑'" label="资质" prop="qualificationId"> |
| | | <el-select v-model="addForm.qualificationId" size="small" clearable placeholder="请选择" style="width: 100%"> |
| | | <el-option v-for="item in qualificationList" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="是否启用" prop="isUse"> |
| | | <el-select v-model="addForm.isUse" size="small" clearable placeholder="请选择" style="width: 100%"> |
| | | <el-option label="否" :value="0"></el-option> |
| | | <el-option label="是" :value="1"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="是否查新" prop="needSearchNew"> |
| | | <el-select v-model="addForm.needSearchNew" size="small" placeholder="请选择" style="width: 100%"> |
| | | <el-option label="否" :value="0"></el-option> |
| | | <el-option label="是" :value="1"></el-option> |
| | | </el-select> |
| | |
| | | addPower: true, |
| | | title: "新增", |
| | | inPower: true, |
| | | queryParams: {}, |
| | | queryParams: {industryId: ''}, |
| | | tableData: [], |
| | | column: [ |
| | | {label: "行业", prop: "industryNames", width: "140px"}, |
| | | {label: "标准分类", prop: "industryNames", width: "140px"}, |
| | | {label: "标准编号", prop: "code", width: "100px"}, |
| | | {label: "标准描述", prop: "name", width: "100px"}, |
| | | {label: "备注", prop: "remark"}, |
| | | {label: "资质", prop: "qualificationId"}, |
| | | { |
| | | label: "是否产品标准", |
| | | prop: "isProduct", |
| | |
| | | return "primary"; |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | label: "是否查新", |
| | | prop: "needSearchNew", |
| | | width: "90px", |
| | | dataType: "tag", |
| | | formatData: (value) => value == 1 ? "是" : "否", |
| | | formatType: (value) => value == 1 ? "success" : "info", |
| | | }, |
| | | {label: "创建人", prop: "createUserName"}, |
| | | {label: "创建时间", prop: "createTime"}, |
| | |
| | | isUse: [ |
| | | {required: true, message: "请选择是否启用", trigger: "change"}, |
| | | ], |
| | | needSearchNew: [ |
| | | {required: true, message: "请选择是否查新", trigger: "change"}, |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | this.tableLoading = true; |
| | | let param = {...this.queryParams, ...this.page}; |
| | | delete param.total; |
| | | if (param.industryId === '' || param.industryId === null) delete param.industryId; |
| | | selectStandardMethodList({...param}) |
| | | .then((res) => { |
| | | this.tableLoading = false; |
| | |
| | | refresh() { |
| | | this.loadIndustryOptions(); |
| | | this.page.current = 1; |
| | | this.queryParams = {}; |
| | | this.queryParams = {industryId: ''}; |
| | | this.getList(); |
| | | }, |
| | | openAdd() { |
| | | this.title = "新增"; |
| | | this.addForm = {industryIds: [], isProduct: 1, isUse: 1}; |
| | | this.addForm = {industryIds: [], isProduct: 1, isUse: 1, needSearchNew: 0}; |
| | | this.pendingFiles = []; |
| | | this.addDlog = true; |
| | | }, |
| | |
| | | this.addDlog = true; |
| | | this.addForm = this.HaveJson(row) |
| | | this.addForm.industryIds = this.addForm.industryIds || []; |
| | | if (this.addForm.needSearchNew == null) this.addForm.needSearchNew = 0; |
| | | }, |
| | | getQualificationList() { |
| | | this.getDicts("cnas_method_qualification").then((response) => { |