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