Prechádzať zdrojové kódy

Merge branch 'test' of https://git.agilestar.cn/spfm-group/spfm-market-front into test

wangguangping 3 rokov pred
rodič
commit
cc58ceb17a

+ 75 - 3
src/pages/main/cooOperation/index.vue

@@ -143,6 +143,7 @@
 					</el-button>
 					<el-button v-if="titname != '查看' && vision == '审批'" type="primary" @click="dialogCli(1)">打 回
 					</el-button>
+                    <el-button v-if="titname == '添加'" type="primary" @click="temp">保 存</el-button>
 					<el-button v-if="titname == '添加'" type="primary" @click="checkexa = true">确 定</el-button>
 					<el-button v-if="titname == '查看'" @click="dialogCli(3)">确 定</el-button>
 					<el-button @click="dialogCli(3)">取 消</el-button>
@@ -280,9 +281,53 @@
                 closeList: false,
                 visionchonly: false,
                 depttype: 0,
+                tempSave: false,
 			}
 		},
+        watch:{
+            tempSave (value) {
+                if (value) {
+                    // 监听编辑状态,每20秒请求一次,注意函数不加()
+                    this.timer = window.setInterval(this.temp, 20000)
+                } else {
+                    // 停止监听
+                    clearInterval(this.timer)
+                }
+            }
+        },
 		methods: {
+            temp() {
+                if (JSON.stringify(this.infolist)=='{}') {
+                    return;
+                }
+                let params = {};
+                params.infolist = this.infolist
+                params.fileList = [];
+                params.attList = [];
+                this.attList.forEach(item => {
+                    let file = {
+                        id: item.fileCode,
+                        fileCode: item.fileCode,
+                        fileName: item.fileName,
+                        name: item.fileName
+                    };
+                    params.fileList.push(file);
+                    params.attList.push(file);
+                });
+                this.$http({
+                    url: "/market/bpmTemp/temp",
+                    method: "post",
+                    headers: {
+                        "Content-Type": "application/json",
+                    },
+                    data: {
+                        bpmType: "5",
+                        content: JSON.stringify(params),
+                    },
+                }).then((res) => {
+                    //console.log(res)
+                });
+            },
             deletes() {
             	this.treeListonly = {};
             	this.closeList = !this.closeList;
@@ -344,9 +389,23 @@
 					this.titname = '审批';
 					this.disableStatus = true;
 				} else if (v === 3) {
-					this.titname = '添加';
-					this.disableStatus = false;
-					return
+                    this.$http({
+                        url: '/market/bpmTemp/query',
+                        method: "post",
+                        headers: {"Content-Type": "application/json",},
+                        data: {bpmType: "5"},
+                    }).then((res) => {
+                        if (res.data) {
+                            let content = JSON.parse(res.data.content);
+                            this.infolist = content.infolist;
+                            this.attList = content.attList;
+                            this.fileInfo.fileList =  content.fileList;
+                        }
+                        this.tempSave = true;
+                        this.titname = '添加';
+                        this.disableStatus = false;
+                    });
+                    return
 				}
 				this.$http({
 					url: '/bpm/api/taskInit',
@@ -492,6 +551,19 @@
 							});
 						}
 						param.params.attList = JSON.stringify(attList)
+
+                        this.$http({
+                            url: "/market/bpmTemp/del",
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: {
+                                bpmType: "5",
+                            },
+                        }).then((res) => {
+                            //console.log(res)
+                        });
 					}
 					this.submitInfo("/bpm/api/submitTask", param);
 				}

+ 77 - 4
src/pages/main/demandDevelop/index.vue

@@ -179,6 +179,7 @@
 					</el-button>
 					<el-button v-if="titname != '查看' && visionsts == '2'" type="primary" @click="dialogCli(1)">打 回
 					</el-button>
+                    <el-button v-if="titname == '添加'" type="primary" @click="temp">保 存</el-button>
 					<el-button v-if="titname == '添加'" type="primary" @click="checkexa = true">确 定</el-button>
 					<el-button v-if="titname == '查看'" @click="dialogCli(3)">确 定</el-button>
 					<el-button @click="dialogCli(3)">取 消</el-button>
@@ -337,9 +338,53 @@
 				    url: '/market/cChannelDemand/demandCarryImport',
 				    fileList: []
 				},
+                tempSave: false,
 			}
 		},
+        watch:{
+            tempSave (value) {
+                if (value) {
+                    // 监听编辑状态,每20秒请求一次,注意函数不加()
+                    this.timer = window.setInterval(this.temp, 20000)
+                } else {
+                    // 停止监听
+                    clearInterval(this.timer)
+                }
+            }
+        },
 		methods: {
+		    temp() {
+                if (JSON.stringify(this.infolist)=='{}') {
+                    return;
+                }
+                let params = {};
+                params.infolist = this.infolist
+                params.fileList = [];
+                params.attList = [];
+                this.attList.forEach(item => {
+                    let file = {
+                        id: item.fileCode,
+                        fileCode: item.fileCode,
+                        fileName: item.fileName,
+                        name: item.fileName
+                    };
+                    params.fileList.push(file);
+                    params.attList.push(file);
+                });
+                this.$http({
+                    url: "/market/bpmTemp/temp",
+                    method: "post",
+                    headers: {
+                        "Content-Type": "application/json",
+                    },
+                    data: {
+                        bpmType: "1",
+                        content: JSON.stringify(params),
+                    },
+                }).then((res) => {
+                    //console.log(res)
+                });
+            },
 			deletes() {
 				this.treeListonly = {};
 				this.closeList = !this.closeList;
@@ -400,9 +445,23 @@
 					this.titname = '审批';
 					this.disableStatus = true;
 				} else if (v === 3) {
-					this.titname = '添加';
-					this.visionchonly = false;
-					this.disableStatus = false;
+                    this.$http({
+                        url: '/market/bpmTemp/query',
+                        method: "post",
+                        headers: {"Content-Type": "application/json",},
+                        data: {bpmType: "1"},
+                    }).then((res) => {
+                        if (res.data) {
+                            let content = JSON.parse(res.data.content);
+                            this.infolist = content.infolist;
+                            this.attList = content.attList;
+                            this.fileInfo.fileList =  content.fileList;
+                        }
+                        this.tempSave = true;
+                        this.titname = '添加';
+                        this.visionchonly = false;
+                        this.disableStatus = false;
+                    });
 					return
 				}
 				this.$http({
@@ -517,6 +576,7 @@
 					this.attList = [];
 					this.fileInfo.fileList = [];
                     this.checkexa = false;
+                    this.tempSave = false;
 					return
 				}
 				let _this = this;
@@ -613,7 +673,20 @@
 									attchFileId: this.attList[i].attchFileId,
 								});
 							}
-							param.params.attList = JSON.stringify(attList)
+							param.params.attList = JSON.stringify(attList);
+
+                            this.$http({
+                                url: "/market/bpmTemp/del",
+                                method: "post",
+                                headers: {
+                                    "Content-Type": "application/json",
+                                },
+                                data: {
+                                    bpmType: "1",
+                                },
+                            }).then((res) => {
+                                //console.log(res)
+                            });
 						}
 						this.submitInfo("/bpm/api/submitTask", param);
 					}

+ 75 - 3
src/pages/main/development/index.vue

@@ -149,6 +149,7 @@
 				<div slot="footer" class="dialog-footer myfooter">
 					<el-button v-if="titname != '查看' && vision == '记录开发信息'" type="primary" @click="dialogCli(2)">确 定
 					</el-button>
+                    <el-button v-if="titname == '添加'" type="primary" @click="temp">保 存</el-button>
 					<el-button v-if="titname == '添加'" type="primary" @click="checkexa = true">确 定</el-button>
 					<el-button v-if="vision == '结束'||titname == '查看'" @click="dialogCli(3)">确 定</el-button>
 					<el-button @click="dialogCli(3)">取 消</el-button>
@@ -287,9 +288,53 @@
                 closeList: false,
                 visionchonly: false,
                 depttype: 0,
+                tempSave: false,
 			}
 		},
+        watch:{
+            tempSave (value) {
+                if (value) {
+                    // 监听编辑状态,每20秒请求一次,注意函数不加()
+                    this.timer = window.setInterval(this.temp, 20000)
+                } else {
+                    // 停止监听
+                    clearInterval(this.timer)
+                }
+            }
+        },
 		methods: {
+            temp() {
+                if (JSON.stringify(this.infolist)=='{}') {
+                    return;
+                }
+                let params = {};
+                params.infolist = this.infolist
+                params.fileList = [];
+                params.attList = [];
+                this.attList.forEach(item => {
+                    let file = {
+                        id: item.fileCode,
+                        fileCode: item.fileCode,
+                        fileName: item.fileName,
+                        name: item.fileName
+                    };
+                    params.fileList.push(file);
+                    params.attList.push(file);
+                });
+                this.$http({
+                    url: "/market/bpmTemp/temp",
+                    method: "post",
+                    headers: {
+                        "Content-Type": "application/json",
+                    },
+                    data: {
+                        bpmType: "4",
+                        content: JSON.stringify(params),
+                    },
+                }).then((res) => {
+                    //console.log(res)
+                });
+            },
             deletes() {
             	this.treeListonly = {};
             	this.closeList = !this.closeList;
@@ -344,9 +389,23 @@
 					this.titname = '审批';
 					this.disableStatus = true;
 				} else if (v === 3) {
-					this.titname = '添加';
-					this.disableStatus = false;
-					return
+                    this.$http({
+                        url: '/market/bpmTemp/query',
+                        method: "post",
+                        headers: {"Content-Type": "application/json",},
+                        data: {bpmType: "4"},
+                    }).then((res) => {
+                        if (res.data) {
+                            let content = JSON.parse(res.data.content);
+                            this.infolist = content.infolist;
+                            this.attList = content.attList;
+                            this.fileInfo.fileList =  content.fileList;
+                        }
+                        this.tempSave = true;
+                        this.titname = '添加';
+                        this.disableStatus = false;
+                    });
+                    return
 				}
 				this.$http({
 					url: '/bpm/api/taskInit',
@@ -480,6 +539,19 @@
 							});
 						}
 						param.params.attList = JSON.stringify(attList)
+
+                        this.$http({
+                            url: "/market/bpmTemp/del",
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: {
+                                bpmType: "4",
+                            },
+                        }).then((res) => {
+                            //console.log(res)
+                        });
 					}
 					this.submitInfo("/bpm/api/submitTask", param);
 				}

+ 76 - 4
src/pages/main/introduce/index.vue

@@ -158,6 +158,7 @@
 					</el-button>
 					<el-button v-if="titname != '查看' && vision == '审批'" type="primary" @click="dialogCli(1)">驳 回
 					</el-button>
+                    <el-button v-if="titname == '添加'" type="primary" @click="temp">保 存</el-button>
 					<el-button v-if="titname == '添加'" type="primary" @click="checkexa = true">确 定</el-button>
 					<el-button v-if="vision == '结束'||titname == '查看'" @click="dialogCli(3)">确 定</el-button>
 					<el-button @click="dialogCli(3)">取 消</el-button>
@@ -284,10 +285,53 @@
                 closeList: false,
                 visionchonly: false,
                 depttype: 0,
-
+                tempSave: false,
 			}
 		},
+        watch:{
+            tempSave (value) {
+                if (value) {
+                    // 监听编辑状态,每20秒请求一次,注意函数不加()
+                    this.timer = window.setInterval(this.temp, 20000)
+                } else {
+                    // 停止监听
+                    clearInterval(this.timer)
+                }
+            }
+        },
 		methods: {
+            temp() {
+                if (JSON.stringify(this.infolist)=='{}') {
+                    return;
+                }
+                let params = {};
+                params.infolist = this.infolist
+                params.fileList = [];
+                params.attList = [];
+                this.attList.forEach(item => {
+                    let file = {
+                        id: item.fileCode,
+                        fileCode: item.fileCode,
+                        fileName: item.fileName,
+                        name: item.fileName
+                    };
+                    params.fileList.push(file);
+                    params.attList.push(file);
+                });
+                this.$http({
+                    url: "/market/bpmTemp/temp",
+                    method: "post",
+                    headers: {
+                        "Content-Type": "application/json",
+                    },
+                    data: {
+                        bpmType: "3",
+                        content: JSON.stringify(params),
+                    },
+                }).then((res) => {
+                    //console.log(res)
+                });
+            },
             deletes() {
             	this.treeListonly = {};
             	this.closeList = !this.closeList;
@@ -343,9 +387,23 @@
 					this.titname = '审批';
 					this.disableStatus = true;
 				} else if (v === 3) {
-					this.titname = '添加';
-					this.disableStatus = false;
-					return
+                    this.$http({
+                        url: '/market/bpmTemp/query',
+                        method: "post",
+                        headers: {"Content-Type": "application/json",},
+                        data: {bpmType: "3"},
+                    }).then((res) => {
+                        if (res.data) {
+                            let content = JSON.parse(res.data.content);
+                            this.infolist = content.infolist;
+                            this.attList = content.attList;
+                            this.fileInfo.fileList =  content.fileList;
+                        }
+                        this.tempSave = true;
+                        this.titname = '添加';
+                        this.disableStatus = false;
+                    });
+                    return
 				}
 				this.$http({
 					url: '/bpm/api/taskInit',
@@ -427,6 +485,7 @@
 					this.attList = [];
 					this.fileInfo.fileList = [];
                     this.checkexa = false;
+                    this.tempSave = false;
 					return
 				}
 				let _this = this;
@@ -502,6 +561,19 @@
 							});
 						}
 						param.params.attList = JSON.stringify(attList)
+
+                        this.$http({
+                            url: "/market/bpmTemp/del",
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: {
+                                bpmType: "3",
+                            },
+                        }).then((res) => {
+                            //console.log(res)
+                        });
 					}
 					this.submitInfo("/bpm/api/submitTask", param);
 				}

+ 76 - 2
src/pages/main/officialAccount/officialAccountadd.vue

@@ -56,6 +56,7 @@
 					</div>
 				</div>
 				<div class="t-footer">
+                    <el-button type="primary" @click="temp">保 存</el-button>
 					<el-button type="primary" @click="checkexa = true">确 定</el-button>
 					<el-button @click="dialogCli(1)">取 消</el-button>
 				</div>
@@ -135,7 +136,8 @@
 				treeListonly: {},
 				defaultList: [],
 				closeList: false,
-				depttype: 0
+				depttype: 0,
+                tempSave: false,
 			}
 		},
 		methods: {
@@ -197,6 +199,19 @@
 				this.infolist.sts = '1';
 				this.infolist.stsDesc = '待审核';
 				this.submitInfo("/market/cemscnpl/add");
+
+                this.$http({
+                    url: "/market/bpmTemp/del",
+                    method: "post",
+                    headers: {
+                        "Content-Type": "application/json",
+                    },
+                    data: {
+                        bpmType: "2",
+                    },
+                }).then((res) => {
+                    //console.log(res)
+                });
 			},
 			submitInfo(u, v) {
 				let _this = this;
@@ -251,11 +266,70 @@
                         o:'全选',
                     })
 				});
-			}
+			},
+            temp() {
+			    if (JSON.stringify(this.infolist)=='{}') {
+			        return;
+                }
+                let params = {};
+                params.infolist = this.infolist
+                params.fileList = [];
+                params.attList = [];
+                this.attList.forEach(item => {
+                    let file = {
+                        id: item.fileCode,
+                        fileCode: item.fileCode,
+                        fileName: item.fileName,
+                        name: item.fileName
+                    };
+                    params.fileList.push(file);
+                    params.attList.push(file);
+                });
+                this.$http({
+                    url: "/market/bpmTemp/temp",
+                    method: "post",
+                    headers: {
+                        "Content-Type": "application/json",
+                    },
+                    data: {
+                        bpmType: "2",
+                        content: JSON.stringify(params),
+                    },
+                }).then((res) => {
+                    //console.log(res)
+                });
+            },
 		},
+
+        watch:{
+            tempSave (value) {
+                if (value) {
+                    // 监听编辑状态,每20秒请求一次,注意函数不加()
+                    this.timer = window.setInterval(this.temp, 20000)
+                } else {
+                    // 停止监听
+                    clearInterval(this.timer)
+                }
+            }
+        },
 		mounted() {
 			this.getUser();
 			this.getRegion();
+
+            this.$http({
+                url: '/market/bpmTemp/query',
+                method: "post",
+                headers: {"Content-Type": "application/json",},
+                data: {bpmType: "2"},
+            }).then((res) => {
+                if (res.data) {
+                    let content = JSON.parse(res.data.content);
+                    this.infolist = content.infolist;
+                    this.attList = content.attList;
+                    this.fileInfo.fileList =  content.fileList;
+                }
+                this.tempSave = true;
+            });
 		},
 		created() {
 

+ 77 - 3
src/pages/main/productOnSale/index.vue

@@ -151,6 +151,7 @@
 					</el-button>
 					<el-button v-if="titname != '查看' && vision == '审批'" type="primary" @click="dialogCli(1)">打 回
 					</el-button>
+                    <el-button v-if="titname == '添加'" type="primary" @click="temp">保 存</el-button>
 					<el-button v-if="titname == '添加'" type="primary" @click="checkexa = true">确 定</el-button>
 					<el-button v-if="titname == '查看'" @click="dialogCli(3)">确 定</el-button>
 					<el-button @click="dialogCli(3)">取 消</el-button>
@@ -288,9 +289,54 @@
                 closeList: false,
                 visionchonly: false,
                 depttype: 0,
+                tempSave: false,
 			}
 		},
+        watch:{
+            tempSave (value) {
+                if (value) {
+                    // 监听编辑状态,每20秒请求一次,注意函数不加()
+                    this.timer = window.setInterval(this.temp, 20000)
+                } else {
+                    // 停止监听
+                    clearInterval(this.timer)
+                }
+            }
+        },
 		methods: {
+            temp() {
+                if (JSON.stringify(this.infolist)=='{}') {
+                    return;
+                }
+                let params = {};
+                params.infolist = this.infolist
+                params.infodatas = this.infodatas;
+                params.fileList = [];
+                params.attList = [];
+                this.attList.forEach(item => {
+                    let file = {
+                        id: item.fileCode,
+                        fileCode: item.fileCode,
+                        fileName: item.fileName,
+                        name: item.fileName
+                    };
+                    params.fileList.push(file);
+                    params.attList.push(file);
+                });
+                this.$http({
+                    url: "/market/bpmTemp/temp",
+                    method: "post",
+                    headers: {
+                        "Content-Type": "application/json",
+                    },
+                    data: {
+                        bpmType: "6",
+                        content: JSON.stringify(params),
+                    },
+                }).then((res) => {
+                    //console.log(res)
+                });
+            },
             deletes() {
             	this.treeListonly = {};
             	this.closeList = !this.closeList;
@@ -354,9 +400,24 @@
 					this.titname = '审批';
 					this.disableStatus = true;
 				} else if (v === 3) {
-					this.titname = '添加';
-					this.disableStatus = false;
-					return
+                    this.$http({
+                        url: '/market/bpmTemp/query',
+                        method: "post",
+                        headers: {"Content-Type": "application/json",},
+                        data: {bpmType: "6"},
+                    }).then((res) => {
+                        if (res.data) {
+                            let content = JSON.parse(res.data.content);
+                            this.infolist = content.infolist;
+                            this.infodatas = content.infodatas;
+                            this.attList = content.attList;
+                            this.fileInfo.fileList =  content.fileList;
+                        }
+                        this.tempSave = true;
+                        this.titname = '添加';
+                        this.disableStatus = false;
+                    });
+                    return
 				}
 				this.$http({
 					url: '/bpm/api/taskInit',
@@ -508,6 +569,19 @@
 							});
 						}
 						param.params.attList = JSON.stringify(attList)
+
+                        this.$http({
+                            url: "/market/bpmTemp/del",
+                            method: "post",
+                            headers: {
+                                "Content-Type": "application/json",
+                            },
+                            data: {
+                                bpmType: "6",
+                            },
+                        }).then((res) => {
+                            //console.log(res)
+                        });
 					}
 					this.submitInfo("/bpm/api/submitTask", param);
 				}