Browse Source

每月实际参研人员调整

ljb 10 months ago
parent
commit
d1ea8b650f

+ 3 - 3
src/api/techPerson/monthSjcyry.js

@@ -31,10 +31,10 @@ export const remove = (ids) => {
 }
 }
 
 
 // 直接引用预算表名单
 // 直接引用预算表名单
-export const yyysbmd = (data) => {
+export const yyysbmd = (params) => {
   return request({
   return request({
     url: '/apikd-scientific/technician/xm/monthly/yyysbmd',
     url: '/apikd-scientific/technician/xm/monthly/yyysbmd',
-    method: 'post',
-    data
+    method: 'get',
+    params
   })
   })
 }
 }

+ 1 - 1
src/option/techPerson/monthSjcyry.js

@@ -12,6 +12,7 @@ export default {
   searchLabelWidth: 140,
   searchLabelWidth: 140,
   labelWidth: 100,
   labelWidth: 100,
   menu: true,
   menu: true,
+  menuWidth: 100,
   dialogClickModal: false,
   dialogClickModal: false,
   dialogWidth: 500,
   dialogWidth: 500,
   dialogType: "drawer",
   dialogType: "drawer",
@@ -29,7 +30,6 @@ export default {
       label: '研发项目名称',
       label: '研发项目名称',
       prop: 'xmmc',
       prop: 'xmmc',
       span: 24,
       span: 24,
-      search: true,
       minWidth: 140,
       minWidth: 140,
       showOverflowTooltip: true,
       showOverflowTooltip: true,
     },
     },

+ 14 - 14
src/views/tech-person/month-cjcyry.vue

@@ -39,9 +39,9 @@
         </div>
         </div>
       </template>
       </template>
 
 
-      <template slot="xmmcSearch">
+      <!-- <template slot="xmmcSearch">
         <project-select ref="projectSelectRef" placeholder="请选择项目名称" multiple v-model="params.xmId"></project-select>
         <project-select ref="projectSelectRef" placeholder="请选择项目名称" multiple v-model="params.xmId"></project-select>
-      </template>
+      </template> -->
 
 
       <template slot="xmmcForm">
       <template slot="xmmcForm">
         <project-select placeholder="请选择项目名称" v-model="form.xmId" @change="handleProjectChange"></project-select>
         <project-select placeholder="请选择项目名称" v-model="form.xmId" @change="handleProjectChange"></project-select>
@@ -117,19 +117,19 @@ export default window.$crudCommon({
       };
       };
     },
     },
     handleZjyyClick() {
     handleZjyyClick() {
-      if (!this.params.xmId) {
-        this.$message.error("请设置“研发项目”后,再操作!");
-        return;
-      }
-      let xmList = [];
-      let proList = this.$refs.projectSelectRef.projectList;
-      proList.forEach(item => {
-        if (this.params.xmId.indexOf(item.id) > -1) {
-          xmList.push(item);
-        }
-      });
+      // if (!this.params.xmId) {
+      //   this.$message.error("请设置“研发项目”后,再操作!");
+      //   return;
+      // }
+      // let xmList = [];
+      // let proList = this.$refs.projectSelectRef.projectList;
+      // proList.forEach(item => {
+      //   if (this.params.xmId.indexOf(item.id) > -1) {
+      //     xmList.push(item);
+      //   }
+      // });
 
 
-      yyysbmd({ xmList, yearAndMonth: this.params.yearAndMonth }).then(({ data }) => {
+      yyysbmd({ yearAndMonth: this.params.yearAndMonth }).then(({ data }) => {
         if (data.code == 200) {
         if (data.code == 200) {
           this.$message.success("引用预算表成功");
           this.$message.success("引用预算表成功");
           this.page.currentPage = 1;
           this.page.currentPage = 1;