|
|
@@ -122,25 +122,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);
|
|
|
- // }
|
|
|
- // });
|
|
|
-
|
|
|
- yyysbmd({ yearAndMonth: this.params.yearAndMonth }).then(({ data }) => {
|
|
|
- if (data.code == 200) {
|
|
|
- this.$message.success("引用预算表成功");
|
|
|
- this.page.currentPage = 1;
|
|
|
- this.getList(this.page);
|
|
|
- }
|
|
|
- });
|
|
|
+ this.$confirm('确认要引用项目预算表中的数据吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ yyysbmd({ yearAndMonth: this.params.yearAndMonth }).then(({ data }) => {
|
|
|
+ if (data.code == 200) {
|
|
|
+ this.$message.success("引用预算表成功");
|
|
|
+ this.page.currentPage = 1;
|
|
|
+ this.getList(this.page);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
},
|
|
|
handleExport() {
|
|
|
exportBloByPost(`/api/kd-scientific/technician/xm/monthly/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|