11
WXL
2023-09-19 970660e0f54a635c2ea1c17e1a3d5d37ed671573
11
已修改4个文件
82 ■■■■ 文件已修改
src/views/project/fund/applyDetail/index.vue 77 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fund/expertFeeApply/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fund/officeExpenseApply/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/travelexpenseapply/travelexpensedetail/index.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fund/applyDetail/index.vue
@@ -779,6 +779,16 @@
        >
        <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
@@ -935,10 +945,10 @@
                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>
@@ -1406,7 +1416,7 @@
      exportLoading: false,
      usernamedata: "",
      jurisdiction: false,
      Routinglevel: 1,
      // 表单参数
      form: {},
      experthear: "",
@@ -1944,7 +1954,17 @@
    },
    /** 上报按钮操作 */
    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: "取消",
@@ -1961,6 +1981,7 @@
                type: "success",
                message: "申请成功"
              });
              this.cancel()
            } else {
              this.$message({
                type: "error",
@@ -2207,24 +2228,35 @@
            // });
          }
          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),
@@ -2249,8 +2281,10 @@
    // 取消按钮
    cancel() {
      // this.reset();
      console.log(-this.Routinglevel);
      this.$store.dispatch("tagsView/delView", this.$route);
      this.$router.go(-1);
        this.$router.go(-this.Routinglevel);
    },
    //获取当前用户信息
@@ -2352,6 +2386,7 @@
    getFeeUnitList() {
      listReportname("org").then(res => {
        this.feeUnitList = res.data;
        console.log(this.feeUnitList);
      });
    },
@@ -2562,12 +2597,12 @@
    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)))
@@ -3509,7 +3544,9 @@
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  destroyed() {
    window.removeEventListener("beforeunload", e => this.beforeunloadFn(e));
  }, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能,这个函数会触发
};
</script>
src/views/project/fund/expertFeeApply/index.vue
@@ -1559,6 +1559,7 @@
    /** 上报按钮操作 */
    handleUp(row) {
      console.log(row);
      this.$confirm("是否确认将登记记录上报?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
src/views/project/fund/officeExpenseApply/index.vue
@@ -700,6 +700,7 @@
      });
    },
    handleup(row) {
      console.log(row);
      this.$confirm("是否确认将登记记录上报?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
src/views/project/travelexpenseapply/travelexpensedetail/index.vue
@@ -1348,6 +1348,9 @@
      this.$refs["table"].doLayout();
    });
  },
  destroyed() {
    window.removeEventListener('beforeunload', e => this.beforeunloadFn(e))
  }, //生命周期 - 销毁完成
  methods: {
    // 浏览器页面关闭或刷新提示