|
|
@@ -39,9 +39,9 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
- <template slot="xmmcSearch">
|
|
|
+ <!-- <template slot="xmmcSearch">
|
|
|
<project-select ref="projectSelectRef" placeholder="请选择项目名称" multiple v-model="params.xmId"></project-select>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
|
|
|
<template slot="xmmcForm">
|
|
|
<project-select placeholder="请选择项目名称" v-model="form.xmId" @change="handleProjectChange"></project-select>
|
|
|
@@ -117,19 +117,19 @@ export default window.$crudCommon({
|
|
|
};
|
|
|
},
|
|
|
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) {
|
|
|
this.$message.success("引用预算表成功");
|
|
|
this.page.currentPage = 1;
|