|
|
|
@ -55,7 +55,7 @@
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
|
|
<el-form-item label="检测项方案编号" prop="projectTypeCode">
|
|
|
|
|
<el-input v-model="form.projectTypeCode" placeholder="请输入检测项方案编号" />
|
|
|
|
|
<el-input v-model="form.projectTypeCode" placeholder="请输入检测项方案编号" disabled/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="检测项方案名称" prop="projectTypeName">
|
|
|
|
|
<el-input v-model="form.projectTypeName" placeholder="请输入检测项方案名称" />
|
|
|
|
@ -77,7 +77,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listQcProjectType, projectTypeTree, getQcProjectType, delQcProjectType, addQcProjectType, updateQcProjectType } from "@/api/quality/qcProjectType";
|
|
|
|
|
import { listQcProjectType, projectTypeTree, getQcProjectType,getQcProjectTypeByCode, delQcProjectType, addQcProjectType, updateQcProjectType } from "@/api/quality/qcProjectType";
|
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
import ItemSelectMaterial from "../qcIncome/selectMaterial.vue";
|
|
|
|
@ -201,8 +201,7 @@ export default {
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(typeCode) {
|
|
|
|
|
this.reset();
|
|
|
|
|
const obj = this.projectList.find(obj => obj.projectTypeCode === typeCode);
|
|
|
|
|
getQcProjectType(obj.id).then((response) => {
|
|
|
|
|
getQcProjectTypeByCode(typeCode).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改方案";
|
|
|
|
|