bug
zhouhailu
2021-03-04 c986cd9c0c50950852bea27dc0a5d45903d4d653
bug
4个文件已修改
103 ■■■■ 已修改文件
src/router/routers.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/accessReport/accessReportList.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/accessReport/chooseAssess.vue 68 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/reportForms/reportFormsManage.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/routers.js
@@ -43,7 +43,7 @@
        path: '/home',
        name: 'home',
        meta: {
          title: '项目管理',
          title: '项目列表',
          notCache: true,
          icon: 'custom custom-xiangmuguanli'
        },
@@ -162,7 +162,7 @@
        meta: {
          notCache: true,
          icon: 'custom custom-gongkaixinxi2',
          title: '报表管理'
          title: '报表列表'
        },
        component: () => import('@/view/reportForms/reportFormsManage.vue')
      },
src/view/accessReport/accessReportList.vue
@@ -31,12 +31,12 @@
          <template slot="action" slot-scope="params">
            <Tooltip content="查看" class="tableActionMargin"  theme="light" transfer max-width="200"
                     placement="top" v-show="params.row.EvaState===4">
              <Icon custom="custom custom-chakan" size="18"
              <Icon custom="custom custom-chakanjindu" size="18"
                    :class="defaultassetsmode? 'disabledIcon' : 'actionIcon'" @click="CheckAccessColumns(params.row)"/>
            </Tooltip>
            <Tooltip content="查看" v-show="params.row.EvaState!=4" class="tableActionMargin"  theme="light" transfer max-width="200"
                     placement="top">
              <Icon custom="custom custom-chakan" size="18"
              <Icon custom="custom custom-chakanjindu" size="18"
                    :class="defaultassetsmode||params.row.EvaState!=4 ? 'disabledIcon' : 'actionIcon'"/>
            </Tooltip>
            <Tooltip content="编辑" class="tableActionMargin"  theme="light" transfer max-width="200"
@@ -185,7 +185,7 @@
           **/
    editAccessColumns (params) {
      console.log(params)
      this.$router.push({path: '/chooseAssess', query: {pid: params.ProjectId,FlowId:params.FlowId,Id:params.Id}})
      this.$router.push({name: 'chooseAssess', query: {pid: params.ProjectId,FlowId:params.FlowId,Id:params.Id}})
    },
    /**
           * 添加报告
src/view/accessReport/chooseAssess.vue
@@ -532,7 +532,9 @@
      loadingSixthDown:false,
      jumpTime:8,
      // opreateBtn:false
      CompanyId:0
      CompanyId:0,
      RIdList:[],
      auth_timetimer:""
    }
  },
  mounted () {
@@ -565,6 +567,10 @@
      }
    }
  },
  beforeDestroy(){
    console.log("破坏")
    clearInterval(this.auth_timetimer);
  },
  methods: {
    getSevenList(){
      let data={
@@ -577,10 +583,10 @@
        method: 'post'
      }).then(res => {
        if (res.data.Check) {
          let auth_timetimer = setInterval(() => {
          this.auth_timetimer = setInterval(() => {
            this.jumpTime--;
            if (this.jumpTime <= 1) {
              clearInterval(auth_timetimer);
              clearInterval(this.auth_timetimer);
              this.$router.push({path: '/accessReportList'})
            }
          }, 1000)
@@ -1577,14 +1583,16 @@
    },
    validFourth(){
      console.log(this.ReportTypeList)
      let data = {
        BSId:this.ReportTypeList[0].Children[0].BSId
      }
      axios.request({
        url: '/FinCapitalAndDebtEx/CheckCapTotal',
        data,
        method: 'post'
      }).then(res => {
      let bisList=[]
      if(this.ReportTypeList.length===1){
        let data = {
          BSId:this.ReportTypeList[0].Children[0].BSId
        }
        axios.request({
          url: '/FinCapitalAndDebtEx/CheckCapTotal',
          data,
          method: 'post'
        }).then(res => {
          if (res.data.Check) {
            this.$Message.success("符合资产总计=负债总计+所有者权益(或股东权益)总计")
            this.DontGofouth=true
@@ -1601,9 +1609,43 @@
            this.idParams=this.ReportTypeList[0].Children[0].id
            this.DontGofouth=false
          }
      }, res => {
        }, res => {
      })
        })
      }else if(this.ReportTypeList.length>1){
        this.ReportTypeList.forEach((val,index)=>{
          bisList.push(val.Children[0].BSId)
        })
        bisList=bisList.join(",")
        console.log(bisList)
          axios.request({
          url: '/FinCapitalAndDebtEx/CheckCapTotal',
          data:{
            BSId:bisList
          },
          method: 'post'
        }).then(res => {
          if (res.data.Check) {
            this.$Message.success("符合资产总计=负债总计+所有者权益(或股东权益)总计")
            this.DontGofouth=true
          } else {
            this.CheckCapTotal=true
            this.FromTypeParams=false
            this.PeriodParams=this.ReportTypeList[0].Period
            this.ProjIdParams=this.ReportTypeList[0].ProjectId
            this.ReportTypeParams=this.ReportTypeList[0].ReportType
            this.ShortTimeParams=this.ReportTypeList[0].ReportDate
            this.SubjectIdParams=this.ReportTypeList[0].SubjectId
            this.TimeStartParams=this.ReportTypeList[0].ReportDate
            this.TitleParams=this.ReportTypeList[0].Title
            this.idParams=this.ReportTypeList[0].Children[0].id
            this.DontGofouth=false
          }
        }, res => {
        })
      }
    },
    /**
         *  操作步骤下一步
src/view/reportForms/reportFormsManage.vue
@@ -486,7 +486,7 @@
              </FormItem>
            </div>
            <div class="ipt_form_style">
              <label style="width:160px;display: inline-block;text-align:left;line-height: 40px;white-space: nowrap"><span v-show="firstTab!='tab3'&&firstTab!='tab2'">期末余额(元)</span><span v-show="firstTab==='tab3'||firstTab==='tab2'">本期余额(元)</span></label>
              <label style="width:160px;display: inline-block;text-align:left;line-height: 40px;white-space: nowrap"><span v-show="firstTab!='tab3'&&firstTab!='tab2'">期末余额(元)</span><span v-show="firstTab==='tab3'||firstTab==='tab2'">本期金额(元)</span></label>
              <FormItem prop="Endingbalance" style="width:calc(100% - 160px)!important;">
                <div class="list_edit" style="padding-left: 0px;">
                  <cashInput v-model="formItem.Endingbalance"
@@ -506,7 +506,7 @@
              <label style="width:160px;display: inline-block;text-align:left;margin-left: 45px;line-height: 0;margin-top: -22px;line-height: 20px">=</label>
            </div>
            <div class="ipt_form_style" v-show="firstTab!='tab3'">
              <label style="width:160px;display: inline-block;text-align:left;white-space: nowrap"><span v-show="firstTab==='tab1'">经营部分期末余额(元)</span><span v-show="firstTab!='tab1'&&firstTab!='tab3'">经营部分本期余额(元)</span></label>
              <label style="width:160px;display: inline-block;text-align:left;white-space: nowrap"><span v-show="firstTab==='tab1'">经营部分期末余额(元)</span><span v-show="firstTab!='tab1'&&firstTab!='tab3'">经营部分本期金额(元)</span></label>
              <FormItem prop="Operatingbalance" style="width:calc(100% - 160px)!important;">
                <div class="list_edit" style="padding-left: 0px;">
                  <cashInput v-model="formItem.Operatingbalance"
@@ -526,7 +526,7 @@
              <label style="width:160px;display: inline-block;text-align:left;margin-left: 45px;line-height: 0;margin-top: -27px;line-height: 20px">+</label>
            </div>
            <div class="ipt_form_style" v-show="firstTab!='tab3'">
              <label style="width:160px;display: inline-block;text-align:left;white-space: nowrap"><span v-show="firstTab==='tab1'">金融部分期末余额(元)</span><span v-show="firstTab!='tab1'&&firstTab!='tab3'">金融部分本期余额(元)</span></label>
              <label style="width:160px;display: inline-block;text-align:left;white-space: nowrap"><span v-show="firstTab==='tab1'">金融部分期末余额(元)</span><span v-show="firstTab!='tab1'&&firstTab!='tab3'">金融部分本期金额(元)</span></label>
              <FormItem prop="Financialbalance" style="width:calc(100% - 160px)!important;">
                <div class="list_edit" style="padding-left: 0px;" >
                  <cashInput v-model="formItem.Financialbalance"
@@ -1707,8 +1707,19 @@
        this.editformatDate = 'yyyy' + '-' + '06-30'
        this.edittypeDate = 'year'
      } else if (params.value === '季报') {
        this.editformatDate = 'yyyy' + '-03-31'
        this.edittypeDate = 'month'
        let date22=this.editReportModel.assetsDate
        let month = parseInt(date.getMonth() + 1)
        if (month===3) {
          this.editformatDate = 'yyyy'+'03-31'
          this.edittypeDate = 'month'
        }else if(month===9){
          this.editformatDate = 'yyyy'+'09-30'
          this.edittypeDate = 'month'
        }else{
          this.editformatDate = 'yyyy-MM-dd'
          this.edittypeDate = 'date'
        }
      } else {
        let date = this.editReportModel.assetsDate
        let month = parseInt(date.getMonth() + 1)
@@ -2156,7 +2167,7 @@
        }
      })
      columns.push({
        title: '经营金融期末余额(元)',
        title: '经营金融本期金额(元)',
        key: 'BusinessMoney',
        align: 'right',
        minWidth: 200,
@@ -2183,7 +2194,7 @@
        }
      })
      columns.push({
        title: '金融金额期末余额(元)',
        title: '金融金额本期金额(元)',
        key: 'FinancialMoney',
        align: 'right',
        minWidth: 200,