|
@@ -117,11 +117,7 @@
|
|
|
/> </el-form-item
|
|
/> </el-form-item
|
|
|
></el-col>
|
|
></el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
|
|
- label="接收人"
|
|
|
|
|
- prop="receiveUserId"
|
|
|
|
|
-
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item label="接收人" prop="receiveUserId">
|
|
|
<el-select
|
|
<el-select
|
|
|
v-model="form.receiveUserId"
|
|
v-model="form.receiveUserId"
|
|
|
@change="changeExecutor"
|
|
@change="changeExecutor"
|
|
@@ -174,7 +170,7 @@
|
|
|
import deptSelect from '@/components/CommomSelect/dept-select.vue';
|
|
import deptSelect from '@/components/CommomSelect/dept-select.vue';
|
|
|
import { getUserPage } from '@/api/system/organization';
|
|
import { getUserPage } from '@/api/system/organization';
|
|
|
import { recordingMethodList } from '@/utils/util.js';
|
|
import { recordingMethodList } from '@/utils/util.js';
|
|
|
-
|
|
|
|
|
|
|
+ import { getCode } from '@/api/login/index.js';
|
|
|
const defaultForm = {
|
|
const defaultForm = {
|
|
|
id: null,
|
|
id: null,
|
|
|
executeDeptId: '',
|
|
executeDeptId: '',
|
|
@@ -528,9 +524,12 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
//获取工单检测方案
|
|
//获取工单检测方案
|
|
|
- await getById(this.form.qualityWorkOrderId).then((res) => {
|
|
|
|
|
|
|
+ await getById(this.form.qualityWorkOrderId).then(async (res) => {
|
|
|
this.templateList = res.data.templateList;
|
|
this.templateList = res.data.templateList;
|
|
|
this.qualitySampleList = res.data.qualitySampleList;
|
|
this.qualitySampleList = res.data.qualitySampleList;
|
|
|
|
|
+ if (!this.form.name) {
|
|
|
|
|
+ this.form.name = this.qualitySampleList[0].categoryName+ await getCode('inspection_project_task_name');
|
|
|
|
|
+ }
|
|
|
this.recordingMethodChange();
|
|
this.recordingMethodChange();
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.table.setSelectedRowKeys(this.templateIdS);
|
|
this.$refs.table.setSelectedRowKeys(this.templateIdS);
|