Browse Source

每月实际参研人员调整

ljb 10 months ago
parent
commit
206f9cbd7b
2 changed files with 30 additions and 7 deletions
  1. 26 2
      src/option/techPerson/monthSjcyry.js
  2. 4 5
      src/views/tech-person/month-cjcyry.vue

+ 26 - 2
src/option/techPerson/monthSjcyry.js

@@ -9,8 +9,7 @@ export default {
   selection: true,
   addBtn: true,
   editBtn: false,
-  searchLabelWidth: 140,
-  labelWidth: 100,
+  labelWidth: 120,
   menu: true,
   menuWidth: 100,
   dialogClickModal: false,
@@ -28,10 +27,34 @@ export default {
     },
     {
       label: '研发项目名称',
+      prop: 'xmId',
+      span: 24,
+      hide: true,
+      rules: [{
+        required: true,
+        message: '请选择研发项目名称',
+        trigger: 'blur'
+      }]
+    },
+    {
+      label: '研发项目名称',
       prop: 'xmmc',
       span: 24,
       minWidth: 140,
       showOverflowTooltip: true,
+      search: true,
+      display: false,
+    },
+    {
+      label: '姓名',
+      prop: 'unicode',
+      span: 24,
+      hide: true,
+      rules: [{
+        required: true,
+        message: '请选择参研人员姓名',
+        trigger: 'blur'
+      }]
     },
     {
       label: '姓名',
@@ -41,6 +64,7 @@ export default {
       align: 'center',
       search: true,
       showOverflowTooltip: true,
+      display: false
     },
     {
       label: '工号',

+ 4 - 5
src/views/tech-person/month-cjcyry.vue

@@ -43,13 +43,13 @@
         <project-select ref="projectSelectRef" placeholder="请选择项目名称" multiple v-model="params.xmId"></project-select>
       </template> -->
 
-      <template slot="xmmcForm">
+      <template slot="xmIdForm">
         <project-select placeholder="请选择项目名称" v-model="form.xmId" :params="{ yearAndMonth: params.yearAndMonth }" @change="handleProjectChange"></project-select>
       </template>
 
-      <template slot="nameForm">
-        <el-select placeholder="请选择 参研人员姓名" v-model="form.technicianId" :disabled="!form.xmId">
-          <el-option v-for="item of technicianList" :key="item.id" :value="item.id" :label="item.name"></el-option>
+      <template slot="unicodeForm">
+        <el-select placeholder="请选择 参研人员姓名" v-model="form.unicode" :disabled="!form.xmId">
+          <el-option v-for="item of technicianList" :key="item.unicode" :value="item.unicode" :label="item.name"></el-option>
         </el-select>
       </template>
       
@@ -104,7 +104,6 @@ export default window.$crudCommon({
   },
   methods: {
     getSearchParams() {
-      console.log(this)
       return {
         ...this.params,
         xmId: this.params.xmId ? this.params.xmId.join(',') : undefined