zhouhailu
2021-02-26 928936fa604e5eb51d8f3a6f200251be8e9701d4
极速版修复版
2个文件已修改
183 ■■■■■ 已修改文件
src/view/accessReport/accessReportList.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/accessReport/chooseAssess.vue 181 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/accessReport/accessReportList.vue
@@ -19,7 +19,7 @@
          <Button custom-icon="custom custom-chuangjian"
                  type="primary"
                  size="large"
                  :disabled="defaultmode" @click="addAccessBtn">新建评估报告</Button>
                  :disabled="defaultmode" @click="addAccessBtn">创建评估报告</Button>
        </div>
        <div style="clear: both"></div>
        <Spin v-show="loading_report" fix>
src/view/accessReport/chooseAssess.vue
@@ -368,7 +368,7 @@
                <Button @click="editIndex_in = -1">取消</Button>
              </div>
              <div v-else>
                <Button @click="handleEdit_in(row,index)">操作</Button>
                <Button @click="handleEdit_in(row,index)" :loading="row.opreateBtnIn">操作</Button>
              </div>
            </template>
          </Table>
@@ -592,7 +592,34 @@
    },
    handleEdit_in(params,index){
      this.editIndex_in=index;
      params.opreateBtnIn=true
        if(this.tableTwoIndustry.length>0){
          setTimeout(()=>{
          this.editIndex_in=index;
          params.opreateBtnIn=false
          },500)
        }else{
          this.$nextTick(()=>{
            let data={
              RangeFlag:"All"
            }
            axios.request({
              url: '/Industry/GetIndustryList',
              data,
              method: 'post'
            }).then(res => {
              if (res.data.Check) {
                this.tableTwoIndustry=res.data.Data
                this.editIndex_in=index;
                params.opreateBtnIn=false
              } else {
              }
            }, res => {
            })
          },0)
        }
    },
    handleSave_in(params) {
      let data={
@@ -624,7 +651,6 @@
        let data={
          RangeFlag:"All"
        }
        setTimeout(()=>{
          axios.request({
            url: '/Industry/GetIndustryList',
            data,
@@ -663,9 +689,7 @@
          }, res => {
            this.loadingT=false
          })
        },0)
      },0)
    },
    handleSave(params) {
      console.log(params)
@@ -717,7 +741,7 @@
    },
    changePageIndex (page) {
      this.pageIndex = page
      this.loading = true
      this.loadingPrompt = true
      let data={
        RId:this.paramsSave.row.RId,
        BSId:this.paramsSave.row.BSId,
@@ -740,6 +764,7 @@
            })
          }
          console.log(this.sixPromptChild)
          this.loadingPrompt = false
        } else {
        }
@@ -775,6 +800,7 @@
            this.sixPromptChild=res.data.Data.evaRecallPayParaIces
            if(this.sixPromptChild!=null){
              this.sixPromptChild.forEach((val,index)=>{
                val.opreateBtnIn=false
                if(val.children!=null){
                  val._showChildren=this.show_children
                }
@@ -1198,7 +1224,7 @@
          //       }
          //     }
          //   })
          this.validFourth()
          this.loadingfourth=false
        } else {
@@ -1544,9 +1570,40 @@
        }else if(this.current===4||this.current ==="4"){
          this.getFifthList()
        }else if(this.current===5||this.current==="5"){
          this.getSixthList()
          this.getSixthTwoList()
        }
      }
    },
    validFourth(){
      console.log(this.ReportTypeList)
      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
          } 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 => {
      })
    },
    /**
         *  操作步骤下一步
@@ -1618,62 +1675,68 @@
          this.getFourthList()
        }
      }else if(parseInt(this.current)===3){
        let typeList=[]
        let periodList=[]
        let dateList=[]
        let checkType=false
        let checkPeriod=false
        let checkDate=false
        this.fourthList.forEach((val,index)=>{
        if(this.DontGofouth===true){
          let typeList=[]
          let periodList=[]
          let dateList=[]
          let checkType=false
          let checkPeriod=false
          let checkDate=false
          this.fourthList.forEach((val,index)=>{
            typeList.push(val.ReportType)
            periodList.push(val.Period)
            dateList.push(val.ReportDate)
        })
        typeList.forEach((val,index)=>{
          if(val===null||val===""){
            checkType=false
          }else{
            checkType=true
          }
        })
        periodList.forEach((val,index)=>{
          if(val===null||val===""){
            checkPeriod=false
          }else{
            checkPeriod=true
          }
        })
        dateList.forEach((val,index)=>{
          if(val===null||val===""){
            checkDate=false
          }else{
            checkDate=true
          }
        })
        if(checkType===false||checkPeriod===false||checkDate===false){
          this.$Message.error("请填写完相关数据后再进行下一步操作")
          return false
        }else{
          let data = {
            FlowId: this.current+1,
            RId:this.RId,
            exReportTimes:this.ReportTypeList
          }
          axios.request({
            url: '/EvaSubjectEx/SelectReportTime',
            data,
            method: 'post'
          }).then(res => {
            if (res.data.Check) {
              this.current+=1
              this.getFifthList()
            } else {
              this.$Message.error(res.data.Data)
            }
          }, res => {
            this.$Message.error(res.data.Data)
          })
          typeList.forEach((val,index)=>{
            if(val===null||val===""){
              checkType=false
            }else{
              checkType=true
            }
          })
          periodList.forEach((val,index)=>{
            if(val===null||val===""){
              checkPeriod=false
            }else{
              checkPeriod=true
            }
          })
          dateList.forEach((val,index)=>{
            if(val===null||val===""){
              checkDate=false
            }else{
              checkDate=true
            }
          })
          if(checkType===false||checkPeriod===false||checkDate===false){
            this.$Message.error("请填写完相关数据后再进行下一步操作")
            return false
          }else{
            let data = {
              FlowId: this.current+1,
              RId:this.RId,
              exReportTimes:this.ReportTypeList
            }
            axios.request({
              url: '/EvaSubjectEx/SelectReportTime',
              data,
              method: 'post'
            }).then(res => {
              if (res.data.Check) {
                this.current+=1
                this.getFifthList()
              } else {
                this.$Message.error(res.data.Data)
              }
            }, res => {
              this.$Message.error(res.data.Data)
            })
          }
        }else{
          this.CheckCapTotal=true
          return false
        }
      }else if(parseInt(this.current)===4){
        this.current += 1
          this.getSixthList()