| | |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | @click="handleup" |
| | | v-if=" |
| | | operationType == 'add' || |
| | | operationType == 'update' || |
| | | ismanager == true |
| | | " |
| | | >上报</el-button |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | @click="checksubmit" |
| | | v-if="operationType == 'check'" |
| | | >提交审核</el-button |
| | |
| | | style="width: 100%" |
| | | > |
| | | <el-option |
| | | v-for="(spec, index) in unitList" |
| | | v-for="(spec, index) in feeUnitList" |
| | | :key="index" |
| | | :label="spec.organizationname" |
| | | :value="spec.organizationname" |
| | | :label="spec.reportName" |
| | | :value="spec.reportName" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | exportLoading: false, |
| | | usernamedata: "", |
| | | jurisdiction: false, |
| | | |
| | | Routinglevel: 1, |
| | | // 表单参数 |
| | | form: {}, |
| | | experthear: "", |
| | |
| | | }, |
| | | |
| | | /** 上报按钮操作 */ |
| | | handleUp() { |
| | | handleup() { |
| | | if ( |
| | | (JSON.stringify(this.form) == sessionStorage.getItem("apiform") && |
| | | JSON.stringify(this.rbDetails) == |
| | | sessionStorage.getItem("apifunddetail")) || |
| | | !sessionStorage.getItem("apifunddetail") |
| | | ){ |
| | | }else{ |
| | | this.$message.error('请保存后再进行上报'); |
| | | return |
| | | } |
| | | this.$confirm("是否确认将登记记录上报?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | |
| | | type: "success", |
| | | message: "申请成功" |
| | | }); |
| | | this.cancel() |
| | | } else { |
| | | this.$message({ |
| | | type: "error", |
| | |
| | | // }); |
| | | } |
| | | |
| | | addorupdateFund(this.form).then(response => { |
| | | if (response.code === 200) { |
| | | this.$modal.msgSuccess("申请单保存成功!"); |
| | | } else { |
| | | this.$modal.msgError("申请单保存失败:" + response.msg); |
| | | } |
| | | }); |
| | | sessionStorage.setItem( |
| | | "apifunddetail", |
| | | JSON.stringify(this.rbDetails) |
| | | ); |
| | | sessionStorage.setItem("apiform", JSON.stringify(this.form)); |
| | | |
| | | addorupdateFund(this.form).then(response => { |
| | | console.log(response, "保存返参"); |
| | | if (response.code === 200) { |
| | | this.$modal.msgSuccess("申请单保存成功!"); |
| | | this.$store.dispatch("tagsView/delView", this.$route); |
| | | this.$router.push({ |
| | | path: "/finance/applyDetail/", |
| | | query: { |
| | | id: response.data, |
| | | businessType: "2", |
| | | operationType: "update", |
| | | curCase: this.curCase |
| | | } |
| | | }); |
| | | this.Routinglevel++; |
| | | } else { |
| | | this.$modal.msgError("申请单保存失败:" + response.msg); |
| | | } |
| | | }); |
| | | //关闭窗口 |
| | | this.loading = false; |
| | | // this.getfundList(); |
| | | this.$store.dispatch("tagsView/delView", this.$route); |
| | | this.$router.go(-1); |
| | | // this.$store.dispatch("tagsView/delView", this.$route); |
| | | // this.$router.go(-1); |
| | | } |
| | | }); |
| | | }, 500), |
| | |
| | | // 取消按钮 |
| | | cancel() { |
| | | // this.reset(); |
| | | console.log(-this.Routinglevel); |
| | | this.$store.dispatch("tagsView/delView", this.$route); |
| | | this.$router.go(-1); |
| | | this.$router.go(-this.Routinglevel); |
| | | |
| | | }, |
| | | |
| | | //获取当前用户信息 |
| | |
| | | getFeeUnitList() { |
| | | listReportname("org").then(res => { |
| | | this.feeUnitList = res.data; |
| | | console.log(this.feeUnitList); |
| | | }); |
| | | }, |
| | | |
| | |
| | | calculateTax(row, type) { |
| | | let targetValue = 0; |
| | | for (let i = 0; i < this.rbDetails.length; i++) { |
| | | if(!this.rbDetails[i].amount){ |
| | | this.rbDetails[i].amount=0; |
| | | if (!this.rbDetails[i].amount) { |
| | | this.rbDetails[i].amount = 0; |
| | | } |
| | | targetValue += parseFloat(this.rbDetails[i].amount); // 假设每个对象中的特定值存储在'specificValue'属性下 |
| | | } |
| | | console.log(targetValue,'合计'); |
| | | console.log(targetValue, "合计"); |
| | | this.form.pretaxcost = targetValue; |
| | | |
| | | //if (isNaN(parseFloat(tempDetail.taxedamount))) |
| | |
| | | beforeUpdate() {}, //生命周期 - 更新之前 |
| | | updated() {}, //生命周期 - 更新之后 |
| | | beforeDestroy() {}, //生命周期 - 销毁之前 |
| | | destroyed() {}, //生命周期 - 销毁完成 |
| | | destroyed() { |
| | | window.removeEventListener("beforeunload", e => this.beforeunloadFn(e)); |
| | | }, //生命周期 - 销毁完成 |
| | | activated() {} //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | }; |
| | | </script> |