zhouhailu
2021-01-15 cc2f9738215a5eac135d953974fe2b35d2ef2c0c
综合版带用户监听
6个文件已修改
1070 ■■■■ 已修改文件
src/store/module/user.js 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/accountInformation/accountInformation.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/diligenceTools/editFundMonitoring.vue 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/diligenceTools/fundMonitoring.vue 492 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/diligenceTools/paymentMonitoring.vue 486 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/single-page/home/home.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/module/user.js
@@ -13,6 +13,7 @@
export default {
  state: {
    RealName:'',
    userName: '',
    userId: '',
    defaultworkflow: '',
@@ -42,6 +43,9 @@
    },
    setUserName(state, name) {
      state.userName = name
    },
    setRealName(state,RealName){
      state.RealName = RealName
    },
    setAccess(state, access) {
      state.access = access
@@ -124,17 +128,20 @@
          getUserInfo(state.token).then(res => {
            const data = res.data
            if (data.Check) {
              let ran = Math.random()
              commit('setRateGradeFlag', data.Data.defaultrategrade)
              commit('setAvator', data.Data.avator)
              commit('setUserName', data.Data.name)
              commit('setUserId', data.Data.user_id)
              commit('setDefaultworkflow', data.Data.defaultworkflow)
              commit('setAccess', data.Data.access)
              console.log('查看后台返回RealName',data.Data.releName)
              commit('setRealName',data.Data.releName + ran)
              localStorage.setItem('RateGradeFlag',data.Data.defaultrategrade)
              localStorage.setItem('RiskProjectId',data.Data.defaultproj_id)
              localStorage.setItem('RiskCompanyId',data.Data.company_id)
              localStorage.setItem('userId',data.Data.user_id)
              localStorage.setItem('releName', data.Data.releName)
              localStorage.setItem('RealName', data.Data.releName)
              localStorage.setItem('defaultworkflow',data.Data.defaultworkflow)
              localStorage.setItem('defaultmoneymonitorflag',data.Data.defaultmoneymonitorflag)
              if (data.Data.access[0] == 'super_admin'){
src/view/accountInformation/accountInformation.vue
@@ -84,6 +84,7 @@
import axios from '@/libs/api.request'
import Cookies from 'js-cookie'
import {mapActions} from 'vuex'
  // import {mapActions} from 'vuex'
export default {
  name: 'accountInformation',
  data () {
@@ -93,11 +94,11 @@
      homeTypeList: [
        {
          title: '基本信息',
          type: 'baseMessage'
            type:'baseMessage',
        },
        {
          title: '修改密码',
          type: 'changePassword'
            type:'changePassword',
        }
      ], // 页面类型列表
      accountMsg: {
@@ -108,7 +109,7 @@
        Mail: '',
        QQ: '',
        Wechat: '',
        Address: ''
          Address: '',
        // AccountLimit: '',
        // CompanyName: '',
        // CompanyChar: '',
@@ -163,7 +164,7 @@
        ],
        Wechat: [
          {pattern: /^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$/, message: '请输入正确的微信号'}
        ]
          ],
      },
      savePassLoading: false, // 修改密码loading
      editPasswordForm: {
@@ -171,7 +172,7 @@
        oldpwd: '',
        newpwd: '',
        ConfirmPassword: ''
      }
        },
    }
  },
  mounted () {
@@ -180,15 +181,15 @@
  },
  methods: {
    ...mapActions([
      'handleLogOut'
        'getUserInfo'
    ]),
    /**
       * 获取账号信息
       */
    getAccountInfo () {
      let data = {
        token: Cookies.get('riskControlToken'),
        id: localStorage.getItem('userId')
          token: Cookies.get("riskControlToken"),
          id:localStorage.getItem("userId")
      }
      axios.request({
        url: '/User/GetUserInfo',
@@ -204,7 +205,7 @@
            Mail: res.data.Data.Mail,
            QQ: res.data.Data.QQ,
            Wechat: res.data.Data.Wechat,
            Address: res.data.Data.Address
              Address: res.data.Data.Address,
          }
        } else {
@@ -226,13 +227,15 @@
            method: 'post'
          }).then(res => {
            if (res.data.Check) {
              this.handleLogOut().then(() => {
                this.loading = false
                this.$router.push({
                  name: 'login'
                })
                this.$Message.info('请重新登录!')
              })
                this.$emit('getsontemplate',false)
                this.getUserInfo()
                // this.handleLogOut().then(() => {
                //   this.loading = false
                //   this.$router.push({
                //     name: 'login'
                //   })
                //   this.$Message.info("请重新登录!")
                // })
            } else {
            }
@@ -273,7 +276,7 @@
        this.savePassLoading = false
        this.$Message.error('服务器错误!')
      })
    }
      },
  }
}
</script>
src/view/diligenceTools/editFundMonitoring.vue
@@ -513,6 +513,10 @@
      }
    },
    watch:{
      getRealName(newCount, oldCount){
        console.log('重新请求接口')
        this.getcustodianList()
      },
      /**
       * 监听邮箱数据变化
       **/
@@ -521,12 +525,12 @@
      }
    },
    mounted(){
      this.realName=localStorage.getItem('releName')
      this.realName=localStorage.getItem('RealName')
      this.UserIdinfo = localStorage.getItem('userId')
      this.loading_05=true
      this.CompanyId = localStorage.getItem('RiskCompanyId')
      this.getReceivablesList()
      //this.addfundmodel.Custodian=this.$store.state.user.userName
      this.UserIdinfo = localStorage.getItem('userId')
      this.pid=this.$route.query.Id
      this.GMFlag=this.$route.query.GMFlag
      this.cptype=this.$route.query.cptype
@@ -553,9 +557,6 @@
        }
        this.addfundmodel=this.editFundList1
      },3000)
    },
    watch:{
    },
    methods:{
@@ -624,15 +625,16 @@
        }).then(res => {
          if (res.data.Check) {
            this.custodianlist=res.data.Data;
            // if(this.custodianlist.length>0){
            //   this.custodianlist.forEach((val,index)=>{
            //     if(val.Id==this.UserIdinfo){
            //       this.addfundmodel.Custodian=val.RealName
            //     }
            //   })
            // }else{
            //
            // }
            console.log(this.UserIdinfo)
            if(this.custodianlist.length>0){
              this.custodianlist.forEach((val,index)=>{
                if(val.Id==this.UserIdinfo){
                  this.addfundmodel.Custodian=val.RealName
                }
              })
            }else{
            }
          } else {
          }
@@ -990,6 +992,11 @@
      },
    },
    computed:{
      getRealName(){
        console.log('获取realName',this.$store.state.user.RealName)
        console.log('获取userName',this.$store.state.user.userName)
        return this.$store.state.user.RealName
      },
      fundtableColumns(){
        let columns=[];
        columns.push({
src/view/diligenceTools/fundMonitoring.vue
@@ -881,61 +881,62 @@
<script>
import axios from '@/libs/api.request'
  import {mapActions} from 'vuex'
import $ from 'jquery'
export default {
  name: 'fundMonitoring',
        name: "fundMonitoring",
  data () {
    const ExpireRule = (rule, value, callback) => {
      if (this.divarr.length === 0) {
        $('.divarrclass').addClass('borderclass')
        callback(new Error('请填写相关选项'))
              $(".divarrclass").addClass("borderclass")
              callback(new Error('请填写相关选项'));
      } else {
        $('.divarrclass').removeClass('borderclass')
        callback()
              $(".divarrclass").removeClass("borderclass")
              callback();
      }
    }
          };
    const overdueRule = (rule, value, callback) => {
      if (this.divarr02.length === 0) {
        $('.divarrclass02').addClass('borderclass')
        callback(new Error('请填写相关选项'))
              $(".divarrclass02").addClass("borderclass")
              callback(new Error('请填写相关选项'));
      } else {
        $('.divarrclass02').removeClass('borderclass')
        callback()
              $(".divarrclass02").removeClass("borderclass")
              callback();
      }
    }
          };
    const transerRule = (rule, value, callback) => {
      if (this.sharedivarr.length === 0) {
        $('.divarrclass03').addClass('borderclass')
        callback(new Error('请填写相关选项'))
              $(".divarrclass03").addClass("borderclass")
              callback(new Error('请填写相关选项'));
      } else {
        $('.divarrclass03').removeClass('borderclass')
        callback()
              $(".divarrclass03").removeClass("borderclass")
              callback();
      }
    }
          };
    const remindEmailRule = (rule, value, callback) => {
      if (this.emaileventarr.length === 0) {
        $('.divarrclass04').addClass('borderclass')
        callback(new Error('请填写相关选项'))
              $(".divarrclass04").addClass("borderclass")
              callback(new Error('请填写相关选项'));
      } else {
        $('.divarrclass04').removeClass('borderclass')
        callback()
              $(".divarrclass04").removeClass("borderclass")
              callback();
      }
    }
    return {
      copyInfor: false,
      copyInforModelValid: {
        SubjectName: [
          { required: true, trigger: 'blur' }
                { required: true, trigger: 'blur' },
        ],
        NameOfCollPlan: [
          { required: true, trigger: 'blur' }
                { required: true, trigger: 'blur' },
        ],
        // ContractName:[
        //   { required: true, type: 'date', trigger: 'blur' },
        // ],
        Custodian: [
          { required: true, trigger: 'change' }
        ]
                { required: true,trigger: 'change' },
              ],
        // ShareOneName:[
        //   { required: true, type: 'date', trigger: 'blur' },
        // ],
@@ -952,8 +953,8 @@
      importFormFile: null,
      importFormModal: false,
      fundMonitoringmodel: {
        PlanState: '-1',
        IsOverdue: '-1',
              PlanState:"-1",
              IsOverdue:"-1",
        SubjectName: ''
      },
      formItem: {
@@ -965,17 +966,17 @@
      },
      formItemValidate: {
        CollectionDate: [
          { required: true, type: 'date', trigger: 'change' }
                { required: true, type: 'date', trigger: 'change' },
        ],
        RecyclingAmount: [
          { required: true, trigger: 'blur' }
        ]
                { required: true, trigger: 'blur' },
              ],
        // ActualAmount:[
        //   { required: true, trigger: 'blur' },
        // ],
      },
      goFundchange: [],
      tabsec: 'tab1', // 第二个table的tab
            tabsec:"tab1", //第二个table的tab
      emailevent: '', // email的textarea的值
      addRemindEmail: false, // 添加邮件框modal
      overdueList: [], // 逾期弹出框table的data
@@ -1015,7 +1016,7 @@
        ExpireRule: '',
        CpType: true
      },
      Navigation: '添加',
            Navigation:"添加",
      addfundmodelValid: {
        SubjectName: [
          { required: true, trigger: 'blur' }
@@ -1025,7 +1026,7 @@
        ],
        Custodian: [
          { required: true, trigger: 'change' }
        ]
              ],
      },
      addExpirationModal: false, // 添加规则弹框modal
@@ -1034,8 +1035,8 @@
      whatis: '确认', // 改变弹框 名称
      deleteId: '', // 删除ID
      loading_01: '', // loading
      overdue: '确认', // 改变弹框 名称
      overduesave: '保存',
            overdue:"确认", //改变弹框 名称
            overduesave:"保存",
      secondipt_01: '',
      secondipt_02: '',
      secondipt_03: '',
@@ -1048,7 +1049,7 @@
      choosetranser: [], // 选中的key
      emaileventarr: [], // 邮箱数据存储
      custodianlist: [], // 管理人数据
      loading_02: '', // loading
            loading_02:"",//loading
      fundtableList: [], // table表格数据
      pid: 0, // 保存时pid的获取
      saveAfterTable: false, // table显示控制
@@ -1062,14 +1063,14 @@
      NewState: true,
      overNewState: true,
      cityList: [],
      whatissave: '保存',
            whatissave:"保存",
      loadingsele: false,
      paramsGMFlag: false,
      fundPlanName: '',
      tableFont: '增加',
            fundPlanName:"",
            tableFont:"增加",
      loading_04: false,
      changePlanName: '',
      changePlanId: '',
            changePlanName:"",
            changePlanId:"",
      AlterCount: 0,
      changePlanModal: false,
      deepcloneList: [],
@@ -1082,14 +1083,15 @@
      custodianListCopy: [],
      shareListCopy: [],
      loading_copy: false,
      copyparams: ''
            copyparams:""
    }
  },
  watch: {
    // sharedivarr(data){
    //   console.log(data)
    //   this.shareFun()
    // },
          getRealName(newCount, oldCount){
            console.log('重新请求接口')
            this.getReceivablesList()
            this.getcustodianList()
          },
    /**
           * 监听邮箱数据变化
           **/
@@ -1098,7 +1100,7 @@
    }
  },
  mounted () {
    this.realName = localStorage.getItem('releName')
          this.realName=localStorage.getItem('RealName')
    this.UserIdinfo = localStorage.getItem('userId')
    // this.UserIdinfo=this.$store.state.user.setUserId
    this.CompanyId = localStorage.getItem('RiskCompanyId')
@@ -1151,19 +1153,19 @@
            }
          })
        })
        b = b.join(',')
      } else if (this.copyInforModel.ShareOneName != '' && this.copyInforModel.ShareOneName != undefined && this.copyInforModel.ShareOneName != null) {
              b=b.join(",")
            }else if(this.copyInforModel.ShareOneName!=""&&this.copyInforModel.ShareOneName!=undefined&&this.copyInforModel.ShareOneName!=null){
        this.shareListCopy.forEach((val, index) => {
          if (val.RealName === this.copyInforModel.ShareOneName) {
            b.push(val.Id)
          }
        })
        b = b.join(',')
              b=b.join(",")
      } else {
        b = ''
              b=""
      }
      let a
      a = this.copyInforModel.ShareOneName.join(',')
            a=this.copyInforModel.ShareOneName.join(",")
      let c
      if (this.custodianlist.length > 0) {
        this.custodianlist.forEach((val, index) => {
@@ -1221,7 +1223,7 @@
          this.copyInforModel.NameOfCollPlan = params.NameOfCollPlan
          this.copyInforModel.ContractName = params.ContractName
          this.copyInforModel.Custodian = params.Custodian
          this.copyInforModel.ShareOneName = params.ShareOneName.split(',')
                    this.copyInforModel.ShareOneName=params.ShareOneName.split(",")
          this.loading_copy = false
        } else {
@@ -1295,6 +1297,7 @@
      }, res => {
        this.fileError = false
        this.importFormModal = false
      })
    },
    /**
@@ -1328,6 +1331,7 @@
          this.importFormLoading = false
        }, res => {
          this.importFormLoading = false
        })
      } else {
        this.$Message.error('请选择需要上传的文件!')
@@ -1363,7 +1367,7 @@
        CapitalId: 0,
        DebtId: 0,
        OperateId: 0,
        TemplateFlag: bool === true
              TemplateFlag: bool === true ? true : false
      }
      axios.request({
        url: '/AssessFile/DownloadAssessFile',
@@ -1457,7 +1461,7 @@
      let data = {
        keyword: this.addfundmodel.SubjectName
      }
      if (this.addfundmodel.SubjectName != '') {
            if(this.addfundmodel.SubjectName!=""){
        setTimeout(() => {
          axios.request({
            url: '/QiChaCha/FuzzySearch',
@@ -1465,7 +1469,7 @@
            method: 'post'
          }).then(res => {
            if (res.data.Check) {
              this.loadingsele = false
                    this.loadingsele = false;
              this.cityList = res.data.Data
              // b= a.map(item => {
              //   return {
@@ -1488,7 +1492,7 @@
          }, res => {
          })
        }, 200)
              }, 200);
      } else {
        this.cityList = []
        this.loadingsele = false
@@ -1551,7 +1555,7 @@
    changePlanModalfun () {
      let data = {
        Id: this.changePlanId,
        CpType: true
              CpType:true,
      }
      axios.request({
        url: '/MonPlanTable/UpdMonPlanState',
@@ -1570,7 +1574,7 @@
      })
    },
    changeFund (params) {
      this.changePlanName = params.row.NameOfCollPlan
            this.changePlanName=params.row.NameOfCollPlan;
      this.changePlanId = params.row.Id
      this.AlterCount = params.row.AlterCount + 1
      this.changePlanModal = true
@@ -1586,8 +1590,8 @@
           * 删除事件
           **/
    deleteOnefund (params) {
      this.Id = params.Id
      this.deletefundModalOne = true
            this.Id=params.Id;
            this.deletefundModalOne=true;
      this.paramsGMFlag = params.GMFlag
      this.fundPlanName = params.NameOfCollPlan
      this.getReceivablesList()
@@ -1623,15 +1627,15 @@
      // this.$router.push({ path: '/editFundMonitoring',query: { Id: Id,editFundList:data}})
      this.NewState = false
      this.overNewState = false
      this.fundshow = false
      this.addfundshow = true
            this.fundshow=false;
            this.addfundshow=true;
      this.loading_04 = true
      this.addfundmodel = params
            this.addfundmodel=params;
      // this.addfundmodel.ShareOne=this.addfundmodel.ShareOne.split(",")
      this.pid = params.Id
      this.shareShowSelect = false
      this.saveAfterTable = true
      this.Navigation = '编辑'
            this.Navigation="编辑";
      this.divarr = []
      this.divarr02 = []
      this.sharedivarr = []
@@ -1673,7 +1677,7 @@
      //   this.emaileventarr= []
      // }
      setTimeout(() => {
        if (this.addfundmodel.SubjectName != '' && this.addfundmodel.SubjectName != undefined && this.addfundmodel.SubjectName != null) {
              if(this.addfundmodel.SubjectName!=""&&this.addfundmodel.SubjectName!=undefined&&this.addfundmodel.SubjectName!=null){
          this.loading_04 = false
        }
      }, 2000)
@@ -1713,7 +1717,7 @@
      this.formItem = this.deepcloneList
      this.tableId = params.Id
      this.addTableshow = true
      this.tableFont = '编辑'
            this.tableFont="编辑"
    },
    /**
           * 保存第二层table事件
@@ -1727,11 +1731,11 @@
        this.formItem.PId = this.pid
        this.formItem.CpType = true
        if (this.formItem.ActualAmount < 0 || this.formItem.RecyclingAmount < 0) {
          this.$Message.error('回收金额必须大于等于0')
                this.$Message.error("回收金额必须大于等于0")
          return false
        } else {
          if (this.formItem.RecyclingAmount >= this.formItem.ActualAmount) {
            if (this.formItem.ActualAmount === '' || this.formItem.ActualAmount === undefined || this.formItem.ActualAmount === null) {
                  if(this.formItem.ActualAmount===""||this.formItem.ActualAmount===undefined||this.formItem.ActualAmount===null){
              this.formItem.ActualAmount = 0
            }
            console.log(this.formItem.ActualAmount)
@@ -1764,15 +1768,16 @@
              })
            } else {
              this.$Message.error('请填写相关选项!')
                    this.$Message.error('请填写相关选项!');
            }
          } else {
            // this.formItem.ActualAmount=""
            // this.formItem.RecyclingAmount=""
            this.$Message.error('回收金额必须小于等于实际回收金额!')
                  this.$Message.error('回收金额必须小于等于实际回收金额!');
            return false
          }
        }
      })
    },
    /**
@@ -1780,14 +1785,14 @@
           **/
    addTableList () {
      this.addTableshow = true
      let a
            let a;
      // if(this.addfundmodel.InvoiceByDefault===true){
      //   a=true
      // }else{
      //   a=false
      // }
      this.tableId = 0
      this.tableFont = '增加'
            this.tableFont="增加"
      this.formItem = {
        CollectionDate: '',
        RecyclingAmount: 0,
@@ -1802,7 +1807,7 @@
    getfundtableList () {
      this.loading_03 = true
      let data = {
        PId: this.pid
              PId:this.pid,
      }
      axios.request({
        url: '/MonRecycleTable/GetMonRecycleTableList',
@@ -1810,7 +1815,7 @@
        method: 'post'
      }).then(res => {
        if (res.data.Check) {
          this.fundtableList = res.data.Data
                this.fundtableList=res.data.Data;
          this.loading_03 = false
        } else {
@@ -1847,7 +1852,8 @@
        method: 'post'
      }).then(res => {
        if (res.data.Check) {
          this.custodianlist = res.data.Data
                  this.custodianlist=res.data.Data;
                  console.log(this.UserIdinfo)
          if (this.custodianlist.length > 0) {
            this.custodianlist.forEach((val, index) => {
              if (val.Id == this.UserIdinfo) {
@@ -1865,8 +1871,8 @@
      })
    },
    closeTag (event, name) {
      const index = this.emaileventarr.indexOf(name)
      this.emaileventarr.splice(index, 1)
            const index = this.emaileventarr.indexOf(name);
            this.emaileventarr.splice(index, 1);
      // let data={
      //   CompanyId:this.CompanyId,
      //   MoneyMonitorId:2
@@ -1886,7 +1892,7 @@
      // })
    },
    clickdivremindemail () {
      $('.divarrclass04add input').focus()
            $(".divarrclass04add input").focus()
    },
    /**
           * email的change事件
@@ -1894,55 +1900,55 @@
    emailChange (event) {
      let email = this.emailevent.trim()
      if (event.keyCode === 186) {
        if (email.indexOf(';') >= 0) {
          let a = email.split(';')
                if(email.indexOf(";")>=0){
                  let a= email.split(";")
          let reg = /^[\w\-]+@[a-zA-Z\d\-]+(\.[a-zA-Z]{2,8}){1,2}$/
          reg.test(a[0])
          if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null && reg.test(a[0]) != false) {
                  if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null&&reg.test(a[0])!=false){
            this.emaileventarr.push(a[0])
            this.emailevent = ''
          } else if (a[0].trim() === '') {
            this.emailevent = ''
            this.$Message.error('请输入正确的邮箱地址')
                    this.emailevent=""
                  }else if(a[0].trim()===""){
                    this.emailevent=""
                    this.$Message.error("请输入正确的邮箱地址")
            return false
          } else {
            this.emailevent = this.emailevent.trim()
            this.$Message.error('请输入正确的邮箱地址')
                    this.$Message.error("请输入正确的邮箱地址")
            return false
          }
        } else if (email.indexOf(';') >= 0) {
          let a = email.split(';')
          if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null) {
                }else if(email.indexOf(";")>=0){
                  let a= email.split(";")
                  if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null){
            this.emaileventarr.push(a[0])
            this.emailevent = ''
          } else if (a[0].trim() === '') {
            this.emailevent = ''
            this.$Message.error('请输入正确的邮箱地址')
                    this.emailevent=""
                  }else if(a[0].trim()===""){
                    this.emailevent=""
                    this.$Message.error("请输入正确的邮箱地址")
            return false
          } else {
            this.emailevent = this.emailevent.trim()
            this.$Message.error('请输入正确的邮箱地址')
                    this.$Message.error("请输入正确的邮箱地址")
            return false
          }
        }
      } else if (event.keyCode === 188) {
        if (email.indexOf(',') >= 0) {
          let a = email.split(',')
          if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null) {
                if(email.indexOf(",")>=0){
                  let a= email.split(",")
                  if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null){
            this.emaileventarr.push(a[0])
            this.emailevent = ''
                    this.emailevent=""
          } else {
            this.emailevent = this.emailevent.trim()
            this.$Message.error('请输入正确的邮箱地址')
                    this.$Message.error("请输入正确的邮箱地址")
          }
        } else if (email.indexOf(',') >= 0) {
          let a = email.split(',')
          if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null) {
                }else if(email.indexOf(",")>=0){
                  let a= email.split(",")
                  if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null){
            this.emaileventarr.push(a[0])
            this.emailevent = ''
                    this.emailevent=""
          } else {
            this.emailevent = this.emailevent.trim()
            this.$Message.error('请输入正确的邮箱地址')
                    this.$Message.error("请输入正确的邮箱地址")
          }
        }
      }
@@ -1951,51 +1957,52 @@
           * 邮箱的添加
           **/
    addRemindEmailfun () {
      let b
            let b;
      if (this.emaileventarr.length === 0) {
        let email = this.emailevent.trim()
        let a = email.split(';')
              let a= email.split(";")
        let reg = /^[\w\-]+@[a-zA-Z\d\-]+(\.[a-zA-Z]{2,8}){1,2}$/
        reg.test(a[0])
        if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null && reg.test(a[0]) != false) {
              if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null&&reg.test(a[0])!=false){
          this.emaileventarr.push(a[0])
          this.emailevent = ''
        } else if (a[0].trim() === '') {
                this.emailevent=""
              }else if(a[0].trim()===""){
          this.addRemindEmail = false
        } else {
          this.emailevent = this.emailevent.trim()
          this.$Message.error('请输入正确的邮箱地址')
                this.$Message.error("请输入正确的邮箱地址")
          return false
          // this.addRemindEmail=false
        }
      } else if (this.emaileventarr.length > 0) {
        let email = this.emailevent.trim()
        let a = email.split(';')
              let a= email.split(";")
        let reg = /^[\w\-]+@[a-zA-Z\d\-]+(\.[a-zA-Z]{2,8}){1,2}$/
        reg.test(a[0])
        if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null && reg.test(a[0]) != false) {
              if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null&&reg.test(a[0])!=false){
          this.emaileventarr.push(a[0])
          this.emailevent = ''
        } else if (a[0].trim() === '') {
                this.emailevent=""
              }else if(a[0].trim()===""){
          this.addRemindEmail = false
        } else {
          this.emailevent = this.emailevent.trim()
          this.$Message.error('请输入正确的邮箱地址')
                this.$Message.error("请输入正确的邮箱地址")
          return false
          // this.addRemindEmail=false
        }
      }
      if (this.emaileventarr.length === 0) {
        b = ''
              b=""
      } else {
        b = this.emaileventarr.join(',')
              b=this.emaileventarr.join(",")
      }
      console.log(b)
      let data = {
        Id: 0,
        PId: this.pid,
        MonRemindName: b,
        CpType: true
              CpType:true,
      }
      axios.request({
        url: '/MonRemindEmail/AddOrUpdMonRemindEmail',
@@ -2017,7 +2024,7 @@
      this.loading_01 = true
      let data = {
        PId: this.pid,
        CpType: true
              CpType:true,
      }
      axios.request({
        url: '/MonRemindEmail/GetMonRemindEmailList',
@@ -2033,15 +2040,16 @@
          if (res.data.Data === [] || res.data.Data.length === 0) {
            this.emaileventarr = []
          } else {
            if (res.data.Data[0].MonRemindName === '' || res.data.Data[0].MonRemindName === null || res.data.Data[0].MonRemindName === undefined) {
                  if(res.data.Data[0].MonRemindName===""||res.data.Data[0].MonRemindName===null||res.data.Data[0].MonRemindName===undefined){
              c = []
            } else {
              c = res.data.Data[0].MonRemindName.split(',')
                    c= res.data.Data[0].MonRemindName.split(",")
            }
            this.emaileventarr = c
            console.log(this.emaileventarr)
            // this.emaileventarr=res.data.Data[0].MonRemindName;
          }
        } else {
        }
@@ -2089,7 +2097,7 @@
           */
    saveTranser () {
      this.sharedivarr = []
      let a = []
            let a=[];
      let b = []
      console.log(this.choosetranser)
      this.sharePeople.forEach((val, index) => {
@@ -2101,8 +2109,8 @@
          }
        })
      })
      a = a.join(',')
      b = b.join(',')
            a = a.join(",")
            b = b.join(",")
      let data = {
        PId: this.pid,
        ShareOneName: b,
@@ -2126,14 +2134,14 @@
      this.addfundMonitoring = false
    },
    render1 (item) {
      return item.label
             return item.label;
    },
    handleChange1 (newTargetKeys, direction, moveKeys) {
      this.choosetranser = newTargetKeys
      console.log(newTargetKeys) // 右边剩下的返回key
      console.log(direction) // 方向
      console.log(moveKeys) // 转移过去的key值
      this.targetKeys1 = newTargetKeys
            console.log(newTargetKeys); //右边剩下的返回key
            console.log(direction);     //方向
            console.log(moveKeys);    //转移过去的key值
            this.targetKeys1 = newTargetKeys;
    },
    /**
           * 共享数据的获取
@@ -2152,7 +2160,7 @@
      this.sharePeople = []
      this.pushhandarr = []
      this.sharedivarr = []
      let a = ''
            let a=""
      this.loading_02 = true
      let data = {
        CompanyId: this.CompanyId,
@@ -2210,22 +2218,24 @@
                //   }
                // }
                if (a != null && a.indexOf(',') != -1) {
                  this.sharedivarr = a.split(',')
                          this.sharedivarr= a.split(",")
                  console.log(this.sharedivarr)
                  this.sharedivarr.forEach((val, index) => {
                    if (val === this.addfundmodel.Custodian) {
                      this.sharedivarr.splice(index, 1)
                    }
                  })
                  this.sharedivarr.join(',')
                          this.sharedivarr.join(",")
                  console.log(this.sharedivarr)
                } else if (a != '' && a != undefined && a != null && a.indexOf(',') < 0) {
                        }else if(a!=""&&a!=undefined&&a!=null&&a.indexOf(",")<0){
                  if (a === this.addfundmodel.Custodian) {
                    this.sharedivarr = []
                  } else {
                    this.sharedivarr.push(a)
                  }
                } else if (a === '' || a === null) {
                        }else if(a===""||a===null){
                  this.sharedivarr = []
                }
                this.sharePeople.forEach((val_01, index_01) => {
@@ -2246,6 +2256,7 @@
          })
          // })
        } else {
          this.loading_02 = false
        }
@@ -2278,7 +2289,7 @@
      // }, res => {
      //
      // })
      this.addfundMonitoring = true
            this.addfundMonitoring=true;
    },
    /**
           * 删除逾期规则确认
@@ -2326,8 +2337,8 @@
              this.divarr02.push(val.RuleName)
            })
          } else {
            this.overdueList = []
            this.divarr02 = []
                  this.overdueList=[];
                  this.divarr02=[];
          }
          this.loading_01 = false
        } else {
@@ -2351,20 +2362,20 @@
    editoverdueList (getdata) {
      this.addOverdueModal = true
      this.deletefundname = getdata.RuleName
      this.overdue = '编辑'
      this.overduesave = '保存'
            this.overdue="编辑"
            this.overduesave="保存"
      let d
      this.Id = getdata.Id
      this.overduerule = getdata.ChoiceRadioFlag
      if (getdata.ChoiceRadioFlag === 'one') {
        this.secondipt_01 = getdata.RuleName.replace(/[^0-9]/ig, '')
        this.secondipt_02 = ''
        this.secondipt_03 = ''
      } else if (getdata.ChoiceRadioFlag === 'two') {
        d = getdata.RuleName.split(',')
        this.secondipt_02 = d[0].replace(/[^0-9]/ig, '')
        this.secondipt_03 = d[1].replace(/[^0-9]/ig, '')
        this.secondipt_01 = ''
            if(getdata.ChoiceRadioFlag==="one"){
              this.secondipt_01=getdata.RuleName.replace(/[^0-9]/ig,"")
              this.secondipt_02=""
              this.secondipt_03=""
            }else if(getdata.ChoiceRadioFlag==="two"){
              d=getdata.RuleName.split(",")
              this.secondipt_02=d[0].replace(/[^0-9]/ig,"")
              this.secondipt_03=d[1].replace(/[^0-9]/ig,"")
              this.secondipt_01=""
      }
    },
    /**
@@ -2372,13 +2383,13 @@
           **/
    addoverdue () {
      this.addOverdueModal = true
      this.secondipt_01 = ''
      this.secondipt_02 = ''
      this.secondipt_03 = ''
      this.overduerule = 'one'
            this.secondipt_01=""
            this.secondipt_02=""
            this.secondipt_03=""
            this.overduerule="one"
      this.Id = 0
      this.overdue = '添加'
      this.overduesave = '保存'
            this.overdue="添加"
            this.overduesave="保存"
    },
    /**
           * 添加逾期规则数据确认
@@ -2386,45 +2397,46 @@
    addOverduefun () {
      this.overNewState = true
      let data
      let reg = /^[0-9]\d*$/
      if (this.overduerule === 'one') {
        if (reg.test(this.secondipt_01) === false || this.secondipt_01 === '' || isNaN(parseInt(this.secondipt_01)) === true || this.secondipt_01 === undefined || this.secondipt_01 === null || parseInt(this.secondipt_01) < 0) {
          this.$Message.error('"逾期后xx天"请填写大于等于0的整数')
            let  reg=/^[0-9]\d*$/;
            if(this.overduerule==="one"){
              if(reg.test(this.secondipt_01)===false||this.secondipt_01===""||isNaN(parseInt(this.secondipt_01))===true||this.secondipt_01===undefined||this.secondipt_01===null||parseInt(this.secondipt_01)<0){
                this.$Message.error("\"逾期后xx天\"请填写大于等于0的整数")
          return false
        } else {
          data = {
            Id: this.Id,
            RuleName: '逾期后' + this.secondipt_01 + '天',
                  RuleName:"逾期后"+this.secondipt_01+"天",
            RuleType: false,
            ChoiceRadioFlag: this.overduerule,
            PId: this.pid,
            CpType: true
          }
          this.secondipt_02 = ''
          this.secondipt_03 = ''
                this.secondipt_02=""
                this.secondipt_03=""
        }
      } else if (this.overduerule === 'two') {
        if (reg.test(this.secondipt_02) === false || parseInt(this.secondipt_02) < 0 || isNaN(parseInt(this.secondipt_02)) === true || this.secondipt_02 === '' || this.secondipt_02 === undefined || this.secondipt_02 === null) {
          this.$Message.error('"逾期xx天后"请填写大于等于0的整数')
            }else if(this.overduerule==="two"){
              if(reg.test(this.secondipt_02)===false||parseInt(this.secondipt_02)<0||isNaN(parseInt(this.secondipt_02))===true||this.secondipt_02===""||this.secondipt_02===undefined||this.secondipt_02===null){
                this.$Message.error("\"逾期xx天后\"请填写大于等于0的整数")
          return false
        } else {
          if (reg.test(this.secondipt_03) === false || parseInt(this.secondipt_03) < 1 || this.secondipt_03 === '' || isNaN(parseInt(this.secondipt_03)) === true || this.secondipt_03 === undefined || this.secondipt_03 === null) {
            this.$Message.error('"每xx天"请填写大于等于1的整数')
                if(reg.test(this.secondipt_03)===false||parseInt(this.secondipt_03)<1||this.secondipt_03===""||isNaN(parseInt(this.secondipt_03))===true||this.secondipt_03===undefined||this.secondipt_03===null){
                  this.$Message.error("\"每xx天\"请填写大于等于1的整数")
            return false
          } else {
            data = {
              Id: this.Id,
              RuleName: '逾期' + this.secondipt_02 + '天后,每' + this.secondipt_03 + '天',
                    RuleName:"逾期"+this.secondipt_02+"天后,每"+this.secondipt_03+"天",
              RuleType: false,
              ChoiceRadioFlag: this.overduerule,
              PId: this.pid,
              CpType: true
            }
            this.secondipt_01 = ''
                  this.secondipt_01=""
          }
        }
      } else {
        this.$Message.error('请选择一个规则选项')
              this.$Message.error("请选择一个规则选项")
        return false
      }
      axios.request({
@@ -2504,8 +2516,8 @@
              this.divarr.push(val.RuleName)
            })
          } else {
            this.expirationList = []
            this.divarr = []
                  this.expirationList=[];
                  this.divarr=[];
          }
          // if(this.addiptisnot===false){
          //   this.expirationList=res.data.Data
@@ -2532,19 +2544,19 @@
           **/
    editexpirationList (getdata) {
      this.addExpirationModal = true
      this.whatis = '编辑'
      this.whatissave = '保存'
            this.whatis="编辑"
            this.whatissave="保存"
      let d
      this.Id = getdata.Id
      this.defalutaddrule = getdata.ChoiceRadioFlag
      if (getdata.ChoiceRadioFlag === 'one') {
        this.firstipt_01 = getdata.RuleName.replace(/[^0-9]/ig, '')
            if(getdata.ChoiceRadioFlag==="one"){
             this.firstipt_01=getdata.RuleName.replace(/[^0-9]/ig,"")
        this.firstipt_02 = ''
        this.firstipt_03 = ''
      } else if (getdata.ChoiceRadioFlag === 'two') {
        d = getdata.RuleName.split(',')
        this.firstipt_02 = d[0].replace(/[^0-9]/ig, '')
        this.firstipt_03 = d[1].replace(/[^0-9]/ig, '')
            }else if(getdata.ChoiceRadioFlag==="two"){
              d=getdata.RuleName.split(",")
              this.firstipt_02=d[0].replace(/[^0-9]/ig,"")
              this.firstipt_03=d[1].replace(/[^0-9]/ig,"")
        this.firstipt_01 = ''
      }
    },
@@ -2561,45 +2573,46 @@
           */
    addExpirationfun () {
      let data
      let reg = /^[0-9]\d*$/
      if (this.defalutaddrule === 'one') {
        if (this.firstipt_01 === '' || isNaN(parseInt(this.firstipt_01)) === true || this.firstipt_01 === undefined || this.firstipt_01 === null || parseInt(this.firstipt_01) < 0 || reg.test(this.firstipt_01) === false) {
          this.$Message.error('"提前xx天"请填写大于等于0的整数')
            let  reg=/^[0-9]\d*$/;
            if(this.defalutaddrule==="one"){
              if(this.firstipt_01===""||isNaN(parseInt(this.firstipt_01))===true||this.firstipt_01===undefined||this.firstipt_01===null||parseInt(this.firstipt_01)<0||reg.test(this.firstipt_01)===false){
                this.$Message.error("\"提前xx天\"请填写大于等于0的整数")
          return false
        } else {
          data = {
            Id: this.Id,
            RuleName: '提前' + this.firstipt_01 + '天',
                  RuleName:"提前"+this.firstipt_01+"天",
            RuleType: true,
            ChoiceRadioFlag: this.defalutaddrule,
            PId: this.pid,
            CpType: true
          }
          this.firstipt_02 = ''
          this.firstipt_03 = ''
                this.firstipt_02=""
                this.firstipt_03=""
        }
      } else if (this.defalutaddrule === 'two') {
        if (parseInt(this.firstipt_02) < 0 || isNaN(parseInt(this.firstipt_02)) === true || this.firstipt_02 === '' || this.firstipt_02 === undefined || this.firstipt_02 === null || reg.test(this.firstipt_02) === false) {
          this.$Message.error('"提前xx天"请填写大于等于0的整数')
            }else if(this.defalutaddrule==="two"){
              if(parseInt(this.firstipt_02)<0||isNaN(parseInt(this.firstipt_02))===true||this.firstipt_02===""||this.firstipt_02===undefined||this.firstipt_02===null||reg.test(this.firstipt_02)===false){
                this.$Message.error("\"提前xx天\"请填写大于等于0的整数")
          return false
        } else {
          if (parseInt(this.firstipt_03) < 1 || this.firstipt_03 === '' || isNaN(parseInt(this.firstipt_03)) === true || this.firstipt_03 === undefined || this.firstipt_03 === null || reg.test(this.firstipt_03) === false) {
            this.$Message.error('"每xx天"请填写大于等于1的整数')
                if(parseInt(this.firstipt_03)<1||this.firstipt_03===""||isNaN(parseInt(this.firstipt_03))===true||this.firstipt_03===undefined||this.firstipt_03===null||reg.test(this.firstipt_03)===false){
                  this.$Message.error("\"每xx天\"请填写大于等于1的整数")
            return false
          } else {
            data = {
              Id: this.Id,
              RuleName: '提前' + this.firstipt_02 + '天,每' + this.firstipt_03 + '天',
                    RuleName:"提前"+this.firstipt_02+"天,每"+this.firstipt_03+"天",
              RuleType: true,
              ChoiceRadioFlag: this.defalutaddrule,
              PId: this.pid,
              CpType: true
            }
            this.firstipt_01 = ''
                  this.firstipt_01=""
          }
        }
      } else {
        this.$Message.error('请选择一个规则选项')
              this.$Message.error("请选择一个规则选项")
        return false
      }
      axios.request({
@@ -2620,13 +2633,13 @@
    },
    addExpiration () {
      this.addExpirationModal = true
      this.firstipt_01 = ''
      this.firstipt_02 = ''
      this.firstipt_03 = ''
      this.defalutaddrule = 'one'
              this.firstipt_01=""
              this.firstipt_02=""
              this.firstipt_03=""
              this.defalutaddrule="one"
      this.Id = 0
      this.whatis = '添加'
      this.whatissave = '保存'
            this.whatis="添加"
            this.whatissave="保存"
    },
    /**
           * 添加新建收款计划保存按钮
@@ -2635,7 +2648,7 @@
      this.$refs[addfundmodelValid].validate((valid) => {
        this.addfundmodel.Id = this.pid
        this.addfundmodel.CompanyId = this.CompanyId
        let data = this.addfundmodel
              let data=this.addfundmodel;
        console.log(data)
        if (this.custodianlist.length > 0) {
          this.custodianlist.forEach((val, index) => {
@@ -2645,30 +2658,30 @@
          })
        }
        if (this.sharedivarr.length > 0) {
          data.ShareOne = this.sharedivarr.join(',')
                data.ShareOne=this.sharedivarr.join(",")
        } else {
          data.ShareOne = ''
                data.ShareOne=""
        }
        console.log(data)
        this.divarr02.forEach((val, index) => {
          if (index === 0) {
            data.OverdueRule = val
          } else {
            data.OverdueRule = data.OverdueRule + ',' + val
                  data.OverdueRule=data.OverdueRule+","+val
          }
        })
        this.divarr.forEach((val, index) => {
          if (index === 0) {
            data.ExpireRule = val
          } else {
            data.ExpireRule = data.ExpireRule + ',' + val
                  data.ExpireRule=data.ExpireRule+","+val
          }
        })
        this.emaileventarr.forEach((val, index) => {
          if (index === 0) {
            data.ReminderMail = val
          } else {
            data.ReminderMail = data.ReminderMail + ',' + val
                  data.ReminderMail=data.ReminderMail+","+val
          }
        })
@@ -2689,7 +2702,7 @@
          })
        } else {
          this.$Message.error('请填写相关选项!')
                this.$Message.error('请填写相关选项!');
        }
      })
    },
@@ -2700,7 +2713,7 @@
      this.getReceivablesList()
      this.fundshow = true
      this.addfundshow = false
      this.Navigation = '添加'
            this.Navigation="添加";
    },
    /**
           * 添加收款计划
@@ -2710,8 +2723,8 @@
      this.pid = 0
      this.NewState = true
      this.addiptisnot = true
      this.fundshow = false
      this.addfundshow = true
            this.fundshow=false;
            this.addfundshow=true;
      this.saveAfterTable = false
      this.addfundmodel = {
        SubjectName: '',
@@ -2729,13 +2742,13 @@
        CpType: true
      }
      this.fundtableList = []
      this.sharedivarr = []
            this.sharedivarr=[];
      this.divarr02 = []
      this.emaileventarr = []
      this.divarr = []
      this.expirationList = []
      this.overdueList = []
      this.addfundmodel.SubjectName = ''
            this.addfundmodel.SubjectName=""
    },
    /**
           * 修改分页
@@ -2746,7 +2759,7 @@
      this.$nextTick(() => {
        $('#fundplan').animate({scrollTop: 0}, 'slow')
      })
      document.getElementById('fundplan').scrollIntoView()
            document.getElementById('fundplan').scrollIntoView();
      this.getReceivablesList()
    },
    /**
@@ -2828,8 +2841,13 @@
    }
  },
  computed: {
        getRealName(){
          console.log('获取realName',this.$store.state.user.RealName)
          console.log('获取userName',this.$store.state.user.userName)
          return this.$store.state.user.RealName
        },
    fundtableColumns () {
      let columns = []
          let columns=[];
      columns.push({
        title: '序号',
        key: 'Id',
@@ -2838,14 +2856,14 @@
          return h('span', params.index + 1)
        },
        minWidth: 50,
        maxWidth: 70
            maxWidth:70,
      })
      columns.push({
        title: '回收日期',
        key: 'CollectionTime',
        align: 'center',
        minWidth: 130,
        maxWidth: 140
            maxWidth:140,
      })
      columns.push({
        title: '应回收金额(元)',
@@ -2854,7 +2872,7 @@
          return h('span', this.CustomMethods.numTo$(params.row.RecyclingAmount))
        },
        align: 'right',
        minWidth: 200
            minWidth:200,
        // maxWidth:220
      })
      columns.push({
@@ -2864,7 +2882,7 @@
          return h('span', this.CustomMethods.numTo$(params.row.ActualAmount))
        },
        align: 'right',
        minWidth: 200
            minWidth:200,
        // maxWidth:220
      })
      columns.push({
@@ -2879,7 +2897,7 @@
          } else {
            return h('span', '否')
          }
        }
            },
      })
      columns.push({
        title: '备注',
@@ -2893,17 +2911,17 @@
        slot: 'action',
        minWidth: 160,
        maxWidth: 180,
        align: 'center'
            align: 'center',
      })
      return columns
    },
    overdueListColumns () {
      let columns = []
          let columns=[];
      columns.push({
        title: '提醒规则',
        key: 'RuleName',
        align: 'center'
            align: 'center',
      })
      columns.push({
        title: '操作',
@@ -2911,17 +2929,17 @@
        slot: 'action',
        minWidth: 250,
        maxWidth: 280,
        align: 'center'
            align: 'center',
      })
      return columns
    },
    expirationListColumns () {
      let columns = []
          let columns=[];
      columns.push({
        title: '提醒规则',
        key: 'RuleName',
        align: 'center'
            align: 'center',
      })
      columns.push({
        title: '操作',
@@ -2929,13 +2947,13 @@
        slot: 'action',
        minWidth: 250,
        maxWidth: 280,
        align: 'center'
            align: 'center',
      })
      return columns
    },
    fundColumns () {
      let columns = []
          let columns = [];
      columns.push({
        title: '序号',
        key: 'Id',
@@ -2943,28 +2961,28 @@
        render: (h, params) => {
          return h('span', params.index + 1)
        },
        align: 'center'
            align: 'center',
      })
      columns.push({
        title: '付款方名称',
        key: 'SubjectName',
        minWidth: 190,
        maxWidth: 200,
        align: 'center'
            align: 'center',
      })
      columns.push({
        title: '回款计划名称',
        key: 'NameOfCollPlan',
        minWidth: 150,
        maxWidth: 160,
        align: 'center'
            align: 'center',
      })
      columns.push({
        title: '首个未收款日',
        key: 'FirstUnpaidTime',
        minWidth: 120,
        maxWidth: 150,
        align: 'center'
            align: 'center',
      })
      columns.push({
        title: '首个未收款金额(元)',
@@ -2974,14 +2992,14 @@
        align: 'right',
        render: (h, params) => {
          return h('span', this.CustomMethods.numTo$(params.row.FirstOutAmount))
        }
            },
      })
      columns.push({
        title: '逾期天数',
        key: 'DaysOverdue',
        minWidth: 100,
        maxWidth: 100,
        align: 'center'
            align: 'center',
      })
      columns.push({
        title: '逾期金额(元)',
@@ -2991,7 +3009,7 @@
        align: 'right',
        render: (h, params) => {
          return h('span', this.CustomMethods.numTo$(params.row.OverdueAmount))
        }
            },
      })
      columns.push({
        title: '状态',
@@ -3004,7 +3022,7 @@
          } else {
            return h('span', '无效')
          }
        }
            },
      })
      columns.push({
        title: '操作',
@@ -3013,10 +3031,10 @@
        minWidth: 230,
        maxWidth: 250,
        align: 'center',
        fixed: 'right'
            fixed: 'right',
      })
      return columns
    }
        },
  }
}
</script>
src/view/diligenceTools/paymentMonitoring.vue
@@ -838,64 +838,64 @@
import axios from '@/libs/api.request'
import $ from 'jquery'
export default {
  name: 'fundMonitoring',
    name: "fundMonitoring",
  data () {
    const ExpireRule = (rule, value, callback) => {
      if (this.divarr.length === 0) {
        $('.divarrclass').addClass('borderclass')
        callback(new Error('请填写相关选项'))
          $(".divarrclass").addClass("borderclass")
          callback(new Error('请填写相关选项'));
      } else {
        $('.divarrclass').removeClass('borderclass')
        callback()
          $(".divarrclass").removeClass("borderclass")
          callback();
      }
    }
      };
    const overdueRule = (rule, value, callback) => {
      if (this.divarr02.length === 0) {
        $('.divarrclass02').addClass('borderclass')
        callback(new Error('请填写相关选项'))
          $(".divarrclass02").addClass("borderclass")
          callback(new Error('请填写相关选项'));
      } else {
        $('.divarrclass02').removeClass('borderclass')
        callback()
          $(".divarrclass02").removeClass("borderclass")
          callback();
      }
    }
      };
    const transerRule = (rule, value, callback) => {
      if (this.sharedivarr.length === 0) {
        $('.divarrclass03').addClass('borderclass')
        callback(new Error('请填写相关选项'))
          $(".divarrclass03").addClass("borderclass")
          callback(new Error('请填写相关选项'));
      } else {
        $('.divarrclass03').removeClass('borderclass')
        callback()
          $(".divarrclass03").removeClass("borderclass")
          callback();
      }
    }
      };
    const remindEmailRule = (rule, value, callback) => {
      if (this.emaileventarr.length === 0) {
        $('.divarrclass04').addClass('borderclass')
        callback(new Error('请填写相关选项'))
          $(".divarrclass04").addClass("borderclass")
          callback(new Error('请填写相关选项'));
      } else {
        $('.divarrclass04').removeClass('borderclass')
        callback()
          $(".divarrclass04").removeClass("borderclass")
          callback();
      }
    }
    return {
      fundMonitoringmodel: {
        PlanState: '-1',
        IsOverdue: '-1',
          PlanState:"-1",
          IsOverdue:"-1",
        SubjectName: ''
      },
      copyInfor: false,
      copyInforModelValid: {
        SubjectName: [
          { required: true, trigger: 'blur' }
            { required: true, trigger: 'blur' },
        ],
        NameOfCollPlan: [
          { required: true, trigger: 'blur' }
            { required: true, trigger: 'blur' },
        ],
        // ContractName:[
        //   { required: true, type: 'date', trigger: 'blur' },
        // ],
        Custodian: [
          { required: true, trigger: 'change' }
        ]
            { required: true,trigger: 'change' },
          ],
        // ShareOneName:[
        //   { required: true, type: 'date', trigger: 'blur' },
        // ],
@@ -916,17 +916,17 @@
      },
      formItemValidate: {
        CollectionDate: [
          { required: true, type: 'date', trigger: 'change' }
            { required: true, type: 'date', trigger: 'change' },
        ],
        RecyclingAmount: [
          { required: true, trigger: 'blur' }
        ]
            { required: true, trigger: 'blur' },
          ],
        // ActualAmount:[
        //   { required: true, trigger: 'blur' },
        // ],
      },
      goFundchange: [],
      tabsec: 'tab1', // 第二个table的tab
        tabsec:"tab1", //第二个table的tab
      emailevent: '', // email的textarea的值
      addRemindEmail: false, // 添加邮件框modal
      overdueList: [], // 逾期弹出框table的data
@@ -966,7 +966,7 @@
        ExpireRule: '',
        CpType: false
      },
      Navigation: '添加',
        Navigation:"添加",
      addfundmodelValid: {
        SubjectName: [
          { required: true, trigger: 'blur' }
@@ -979,7 +979,7 @@
        // ],
        Custodian: [
          { required: true, trigger: 'blur' }
        ]
          ],
        // ShareOne:[
        //   { required: true,trigger: 'blur',validator:transerRule}
        // ],
@@ -1005,8 +1005,8 @@
      whatis: '确认', // 改变弹框 名称
      deleteId: '', // 删除ID
      loading_01: '', // loading
      overdue: '确认', // 改变弹框 名称
      overduesave: '保存',
        overdue:"确认", //改变弹框 名称
        overduesave:"保存",
      secondipt_01: '',
      secondipt_02: '',
      secondipt_03: '',
@@ -1019,7 +1019,7 @@
      choosetranser: [], // 选中的key
      emaileventarr: [], // 邮箱数据存储
      custodianlist: [], // 管理人数据
      loading_02: '', // loading
        loading_02:"",//loading
      fundtableList: [], // table表格数据
      pid: 0, // 保存时pid的获取
      saveAfterTable: false, // table显示控制
@@ -1033,14 +1033,14 @@
      NewState: true,
      overNewState: true,
      cityList: [],
      whatissave: '保存',
        whatissave:"保存",
      loadingsele: false,
      paramsGMFlag: false,
      fundPlanName: '',
      tableFont: '增加',
        fundPlanName:"",
        tableFont:"增加",
      loading_04: false,
      changePlanName: '',
      changePlanId: '',
        changePlanName:"",
        changePlanId:"",
      AlterCount: 0,
      changePlanModal: false,
      deepcloneList: [],
@@ -1055,10 +1055,15 @@
      custodianListCopy: [],
      shareListCopy: [],
      loading_copy: false,
      copyparams: ''
        copyparams:""
    }
  },
  watch: {
      getRealName(newCount, oldCount){
        console.log('重新请求接口')
        this.getReceivablesList()
        this.getcustodianList()
      },
    /**
       * 监听邮箱数据变化
       **/
@@ -1067,11 +1072,11 @@
    }
  },
  mounted () {
    this.realName = localStorage.getItem('releName')
      this.realName=localStorage.getItem('RealName')
    this.CompanyId = localStorage.getItem('RiskCompanyId')
      this.UserIdinfo = localStorage.getItem('userId')
    this.defaultmoneymonitorflag = localStorage.getItem('defaultmoneymonitorflag')
    console.log(this.defaultmoneymonitorflag)
    this.UserIdinfo = localStorage.getItem('setUserId')
    this.getReceivablesList()
    // this.getOverdueList()
    // this.getexpirationList()
@@ -1119,19 +1124,19 @@
            }
          })
        })
        b = b.join(',')
      } else if (this.copyInforModel.ShareOneName != '' && this.copyInforModel.ShareOneName != undefined && this.copyInforModel.ShareOneName != null) {
          b=b.join(",")
        }else if(this.copyInforModel.ShareOneName!=""&&this.copyInforModel.ShareOneName!=undefined&&this.copyInforModel.ShareOneName!=null){
        this.shareListCopy.forEach((val, index) => {
          if (val.RealName === this.copyInforModel.ShareOneName) {
            b.push(val.Id)
          }
        })
        b = b.join(',')
          b=b.join(",")
      } else {
        b = ''
          b=""
      }
      let a
      a = this.copyInforModel.ShareOneName.join(',')
        a=this.copyInforModel.ShareOneName.join(",")
      let c
      if (this.custodianlist.length > 0) {
        this.custodianlist.forEach((val, index) => {
@@ -1188,7 +1193,7 @@
          this.copyInforModel.NameOfCollPlan = params.NameOfCollPlan
          this.copyInforModel.ContractName = params.ContractName
          this.copyInforModel.Custodian = params.Custodian
          this.copyInforModel.ShareOneName = params.ShareOneName.split(',')
            this.copyInforModel.ShareOneName=params.ShareOneName.split(",")
          this.loading_copy = false
        } else {
@@ -1223,6 +1228,7 @@
      }, res => {
        this.fileError = false
        this.importFormModal = false
      })
    },
    /**
@@ -1256,6 +1262,7 @@
          this.importFormLoading = false
        }, res => {
          this.importFormLoading = false
        })
      } else {
        this.$Message.error('请选择需要上传的文件!')
@@ -1291,7 +1298,7 @@
        CapitalId: 0,
        DebtId: 0,
        OperateId: 0,
        TemplateFlag: bool === true
          TemplateFlag: bool === true ? true : false
      }
      axios.request({
        url: '/AssessFile/DownloadAssessFile',
@@ -1385,7 +1392,7 @@
      let data = {
        keyword: this.addfundmodel.SubjectName
      }
      if (this.addfundmodel.SubjectName != '') {
        if(this.addfundmodel.SubjectName!=""){
        setTimeout(() => {
          axios.request({
            url: '/QiChaCha/FuzzySearch',
@@ -1393,7 +1400,7 @@
            method: 'post'
          }).then(res => {
            if (res.data.Check) {
              this.loadingsele = false
                this.loadingsele = false;
              this.cityList = res.data.Data
              // b= a.map(item => {
              //   return {
@@ -1416,7 +1423,7 @@
          }, res => {
          })
        }, 200)
          }, 200);
      } else {
        this.cityList = []
        this.loadingsele = false
@@ -1479,7 +1486,7 @@
    changePlanModalfun () {
      let data = {
        Id: this.changePlanId,
        CpType: false
          CpType:false,
      }
      axios.request({
        url: '/MonPlanTable/UpdMonPlanState',
@@ -1498,7 +1505,7 @@
      })
    },
    changeFund (params) {
      this.changePlanName = params.row.NameOfCollPlan
        this.changePlanName=params.row.NameOfCollPlan;
      this.changePlanId = params.row.Id
      this.AlterCount = params.row.AlterCount + 1
      this.changePlanModal = true
@@ -1514,8 +1521,8 @@
       * 删除事件
       **/
    deleteOnefund (params) {
      this.Id = params.Id
      this.deletefundModalOne = true
        this.Id=params.Id;
        this.deletefundModalOne=true;
      this.paramsGMFlag = params.GMFlag
      this.fundPlanName = params.NameOfCollPlan
      this.getReceivablesList()
@@ -1551,13 +1558,13 @@
      // this.$router.push({ path: '/editFundMonitoring',query: { Id: Id,editFundList:data}})
      this.NewState = false
      this.overNewState = false
      this.fundshow = false
      this.addfundshow = true
        this.fundshow=false;
        this.addfundshow=true;
      this.loading_04 = true
      this.addfundmodel = params
        this.addfundmodel=params;
      this.pid = params.Id
      this.saveAfterTable = true
      this.Navigation = '编辑'
        this.Navigation="编辑";
      this.divarr = []
      this.divarr02 = []
      this.sharedivarr = []
@@ -1599,7 +1606,7 @@
      //   this.emaileventarr= []
      // }
      setTimeout(() => {
        if (this.addfundmodel.SubjectName != '' && this.addfundmodel.SubjectName != undefined && this.addfundmodel.SubjectName != null) {
          if(this.addfundmodel.SubjectName!=""&&this.addfundmodel.SubjectName!=undefined&&this.addfundmodel.SubjectName!=null){
          this.loading_04 = false
        }
      }, 2000)
@@ -1639,7 +1646,7 @@
      this.formItem = this.deepcloneList
      this.tableId = params.Id
      this.addTableshow = true
      this.tableFont = '编辑'
        this.tableFont="编辑"
    },
    /**
       * 保存第二层table事件
@@ -1653,11 +1660,11 @@
        this.formItem.PId = this.pid
        this.formItem.CpType = false
        if (this.formItem.ActualAmount < 0 || this.formItem.RecyclingAmount < 0) {
          this.$Message.error('回收金额必须大于等于0')
            this.$Message.error("回收金额必须大于等于0")
          return false
        } else {
          if (this.formItem.RecyclingAmount >= this.formItem.ActualAmount) {
            if (this.formItem.ActualAmount === '' || this.formItem.ActualAmount === undefined || this.formItem.ActualAmount === null) {
              if(this.formItem.ActualAmount===""||this.formItem.ActualAmount===undefined||this.formItem.ActualAmount===null){
              this.formItem.ActualAmount = 0
            }
            console.log(this.formItem.ActualAmount)
@@ -1690,15 +1697,16 @@
              })
            } else {
              this.$Message.error('请填写相关选项!')
                this.$Message.error('请填写相关选项!');
            }
          } else {
            // this.formItem.ActualAmount=""
            // this.formItem.RecyclingAmount=""
            this.$Message.error('回收金额必须小于等于实际回收金额!')
              this.$Message.error('回收金额必须小于等于实际回收金额!');
            return false
          }
        }
      })
    },
    /**
@@ -1706,14 +1714,14 @@
       **/
    addTableList () {
      this.addTableshow = true
      let a
        let a;
      // if(this.addfundmodel.InvoiceByDefault===true){
      //   a=true
      // }else{
      //   a=false
      // }
      this.tableId = 0
      this.tableFont = '增加'
        this.tableFont="增加"
      this.formItem = {
        CollectionDate: '',
        RecyclingAmount: 0,
@@ -1728,7 +1736,7 @@
    getfundtableList () {
      this.loading_03 = true
      let data = {
        PId: this.pid
          PId:this.pid,
      }
      axios.request({
        url: '/MonRecycleTable/GetMonRecycleTableList',
@@ -1736,7 +1744,7 @@
        method: 'post'
      }).then(res => {
        if (res.data.Check) {
          this.fundtableList = res.data.Data
            this.fundtableList=res.data.Data;
          this.loading_03 = false
        } else {
@@ -1773,7 +1781,8 @@
        method: 'post'
      }).then(res => {
        if (res.data.Check) {
          this.custodianlist = res.data.Data
            this.custodianlist=res.data.Data;
            console.log(this.UserIdinfo)
          if (this.custodianlist.length > 0) {
            this.custodianlist.forEach((val, index) => {
              if (val.Id == this.UserIdinfo) {
@@ -1791,8 +1800,8 @@
      })
    },
    closeTag (event, name) {
      const index = this.emaileventarr.indexOf(name)
      this.emaileventarr.splice(index, 1)
        const index = this.emaileventarr.indexOf(name);
        this.emaileventarr.splice(index, 1);
      // let data={
      //   CompanyId:this.CompanyId,
      //   MoneyMonitorId:2
@@ -1812,7 +1821,7 @@
      // })
    },
    clickdivremindemail () {
      $('.divarrclass04add input').focus()
        $(".divarrclass04add input").focus()
    },
    /**
       * email的change事件
@@ -1820,55 +1829,55 @@
    emailChange (event) {
      let email = this.emailevent.trim()
      if (event.keyCode === 186) {
        if (email.indexOf(';') >= 0) {
          let a = email.split(';')
          if(email.indexOf(";")>=0){
            let a= email.split(";")
          let reg = /^[\w\-]+@[a-zA-Z\d\-]+(\.[a-zA-Z]{2,8}){1,2}$/
          reg.test(a[0])
          if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null && reg.test(a[0]) != false) {
            if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null&&reg.test(a[0])!=false){
            this.emaileventarr.push(a[0])
            this.emailevent = ''
          } else if (a[0].trim() === '') {
            this.emailevent = ''
            this.$Message.error('请输入正确的邮箱地址')
              this.emailevent=""
            }else if(a[0].trim()===""){
              this.emailevent=""
              this.$Message.error("请输入正确的邮箱地址")
            return false
          } else {
            this.emailevent = this.emailevent.trim()
            this.$Message.error('请输入正确的邮箱地址')
              this.$Message.error("请输入正确的邮箱地址")
            return false
          }
        } else if (email.indexOf(';') >= 0) {
          let a = email.split(';')
          if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null) {
          }else if(email.indexOf(";")>=0){
            let a= email.split(";")
            if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null){
            this.emaileventarr.push(a[0])
            this.emailevent = ''
          } else if (a[0].trim() === '') {
            this.emailevent = ''
            this.$Message.error('请输入正确的邮箱地址')
              this.emailevent=""
            }else if(a[0].trim()===""){
              this.emailevent=""
              this.$Message.error("请输入正确的邮箱地址")
            return false
          } else {
            this.emailevent = this.emailevent.trim()
            this.$Message.error('请输入正确的邮箱地址')
              this.$Message.error("请输入正确的邮箱地址")
            return false
          }
        }
      } else if (event.keyCode === 188) {
        if (email.indexOf(',') >= 0) {
          let a = email.split(',')
          if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null) {
          if(email.indexOf(",")>=0){
            let a= email.split(",")
            if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null){
            this.emaileventarr.push(a[0])
            this.emailevent = ''
              this.emailevent=""
          } else {
            this.emailevent = this.emailevent.trim()
            this.$Message.error('请输入正确的邮箱地址')
              this.$Message.error("请输入正确的邮箱地址")
          }
        } else if (email.indexOf(',') >= 0) {
          let a = email.split(',')
          if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null) {
          }else if(email.indexOf(",")>=0){
            let a= email.split(",")
            if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null){
            this.emaileventarr.push(a[0])
            this.emailevent = ''
              this.emailevent=""
          } else {
            this.emailevent = this.emailevent.trim()
            this.$Message.error('请输入正确的邮箱地址')
              this.$Message.error("请输入正确的邮箱地址")
          }
        }
      }
@@ -1877,51 +1886,52 @@
       * 邮箱的添加
       **/
    addRemindEmailfun () {
      let b
        let b;
      if (this.emaileventarr.length === 0) {
        let email = this.emailevent.trim()
        let a = email.split(';')
          let a= email.split(";")
        let reg = /^[\w\-]+@[a-zA-Z\d\-]+(\.[a-zA-Z]{2,8}){1,2}$/
        reg.test(a[0])
        if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null && reg.test(a[0]) != false) {
          if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null&&reg.test(a[0])!=false){
          this.emaileventarr.push(a[0])
          this.emailevent = ''
        } else if (a[0].trim() === '') {
            this.emailevent=""
          }else if(a[0].trim()===""){
          this.addRemindEmail = false
        } else {
          this.emailevent = this.emailevent.trim()
          this.$Message.error('请输入正确的邮箱地址')
            this.$Message.error("请输入正确的邮箱地址")
          return false
          // this.addRemindEmail=false
        }
      } else if (this.emaileventarr.length > 0) {
        let email = this.emailevent.trim()
        let a = email.split(';')
          let a= email.split(";")
        let reg = /^[\w\-]+@[a-zA-Z\d\-]+(\.[a-zA-Z]{2,8}){1,2}$/
        reg.test(a[0])
        if (a[0].trim() != '' && a[0].trim() != undefined && a[0].trim() != null && reg.test(a[0]) != false) {
          if(a[0].trim()!=""&&a[0].trim()!=undefined&&a[0].trim()!=null&&reg.test(a[0])!=false){
          this.emaileventarr.push(a[0])
          this.emailevent = ''
        } else if (a[0].trim() === '') {
            this.emailevent=""
          }else if(a[0].trim()===""){
          this.addRemindEmail = false
        } else {
          this.emailevent = this.emailevent.trim()
          this.$Message.error('请输入正确的邮箱地址')
            this.$Message.error("请输入正确的邮箱地址")
          return false
          // this.addRemindEmail=false
        }
      }
      if (this.emaileventarr.length === 0) {
        b = ''
          b=""
      } else {
        b = this.emaileventarr.join(',')
          b=this.emaileventarr.join(",")
      }
      console.log(b)
      let data = {
        Id: 0,
        PId: this.pid,
        MonRemindName: b,
        CpType: false
          CpType:false,
      }
      axios.request({
        url: '/MonRemindEmail/AddOrUpdMonRemindEmail',
@@ -1943,7 +1953,7 @@
      this.loading_01 = true
      let data = {
        PId: this.pid,
        CpType: false
          CpType:false,
      }
      axios.request({
        url: '/MonRemindEmail/GetMonRemindEmailList',
@@ -1959,15 +1969,16 @@
          if (res.data.Data === [] || res.data.Data.length === 0) {
            this.emaileventarr = []
          } else {
            if (res.data.Data[0].MonRemindName === '' || res.data.Data[0].MonRemindName === null || res.data.Data[0].MonRemindName === undefined) {
              if(res.data.Data[0].MonRemindName===""||res.data.Data[0].MonRemindName===null||res.data.Data[0].MonRemindName===undefined){
              c = []
            } else {
              c = res.data.Data[0].MonRemindName.split(',')
                c= res.data.Data[0].MonRemindName.split(",")
            }
            this.emaileventarr = c
            console.log(this.emaileventarr)
            // this.emaileventarr=res.data.Data[0].MonRemindName;
          }
        } else {
        }
@@ -2015,7 +2026,7 @@
       */
    saveTranser () {
      this.sharedivarr = []
      let a = []
        let a=[];
      let b = []
      console.log(this.choosetranser)
      this.sharePeople.forEach((val, index) => {
@@ -2027,8 +2038,8 @@
          }
        })
      })
      a = a.join(',')
      b = b.join(',')
        a = a.join(",")
        b = b.join(",")
      let data = {
        PId: this.pid,
        ShareOneName: b,
@@ -2052,14 +2063,14 @@
      this.addfundMonitoring = false
    },
    render1 (item) {
      return item.label
        return item.label;
    },
    handleChange1 (newTargetKeys, direction, moveKeys) {
      this.choosetranser = newTargetKeys
      console.log(newTargetKeys) // 右边剩下的返回key
      console.log(direction) // 方向
      console.log(moveKeys) // 转移过去的key值
      this.targetKeys1 = newTargetKeys
        console.log(newTargetKeys); //右边剩下的返回key
        console.log(direction);     //方向
        console.log(moveKeys);    //转移过去的key值
        this.targetKeys1 = newTargetKeys;
    },
    /**
       * 共享数据的获取
@@ -2078,7 +2089,7 @@
      this.sharePeople = []
      this.pushhandarr = []
      this.sharedivarr = []
      let a = ''
        let a=""
      this.loading_02 = true
      let data = {
        CompanyId: this.CompanyId,
@@ -2118,21 +2129,23 @@
              } else {
                a = res.data.Data[0].ShareOneName
                if (a.indexOf(',') != -1) {
                  this.sharedivarr = a.split(',')
                    this.sharedivarr= a.split(",")
                  console.log(this.sharedivarr)
                  this.sharedivarr.forEach((val, index) => {
                    if (val === this.addfundmodel.Custodian) {
                      this.sharedivarr.splice(index, 1)
                    }
                  })
                  console.log(this.sharedivarr)
                } else if (a != '' && a != undefined && a != null && a.indexOf(',') < 0) {
                  }else if(a!=""&&a!=undefined&&a!=null&&a.indexOf(",")<0){
                  if (a === this.addfundmodel.Custodian) {
                    this.sharedivarr = []
                  } else {
                    this.sharedivarr.push(a)
                  }
                } else if (a === '') {
                  }else if(a===""){
                  this.sharedivarr = []
                }
                this.sharePeople.forEach((val_01, index_01) => {
@@ -2153,6 +2166,7 @@
          })
          // })
        } else {
          this.loading_02 = false
        }
@@ -2185,7 +2199,7 @@
      // }, res => {
      //
      // })
      this.addfundMonitoring = true
        this.addfundMonitoring=true;
    },
    /**
       * 删除逾期规则确认
@@ -2233,8 +2247,8 @@
              this.divarr02.push(val.RuleName)
            })
          } else {
            this.overdueList = []
            this.divarr02 = []
              this.overdueList=[];
              this.divarr02=[];
          }
          this.loading_01 = false
        } else {
@@ -2258,33 +2272,33 @@
    editoverdueList (getdata) {
      this.addOverdueModal = true
      this.deletefundname = getdata.RuleName
      this.overdue = '编辑'
      this.overduesave = '保存'
        this.overdue="编辑"
        this.overduesave="保存"
      let d
      this.Id = getdata.Id
      this.overduerule = getdata.ChoiceRadioFlag
      if (getdata.ChoiceRadioFlag === 'one') {
        this.secondipt_01 = getdata.RuleName.replace(/[^0-9]/ig, '')
        this.secondipt_02 = ''
        this.secondipt_03 = ''
      } else if (getdata.ChoiceRadioFlag === 'two') {
        d = getdata.RuleName.split(',')
        this.secondipt_02 = d[0].replace(/[^0-9]/ig, '')
        this.secondipt_03 = d[1].replace(/[^0-9]/ig, '')
        this.secondipt_01 = ''
        if(getdata.ChoiceRadioFlag==="one"){
          this.secondipt_01=getdata.RuleName.replace(/[^0-9]/ig,"")
          this.secondipt_02=""
          this.secondipt_03=""
        }else if(getdata.ChoiceRadioFlag==="two"){
          d=getdata.RuleName.split(",")
          this.secondipt_02=d[0].replace(/[^0-9]/ig,"")
          this.secondipt_03=d[1].replace(/[^0-9]/ig,"")
          this.secondipt_01=""
      }
    },
    /**
       * 添加逾期规则弹框
       **/
    addoverdue () {
      this.secondipt_01 = ''
      this.secondipt_02 = ''
      this.secondipt_03 = ''
      this.overduerule = 'one'
        this.secondipt_01=""
        this.secondipt_02=""
        this.secondipt_03=""
        this.overduerule="one"
      this.Id = 0
      this.overdue = '添加'
      this.overduesave = '保存'
        this.overdue="添加"
        this.overduesave="保存"
      this.addOverdueModal = true
    },
    /**
@@ -2293,46 +2307,47 @@
    addOverduefun () {
      this.overNewState = true
      let data
      let reg = /^[0-9]\d*$/
      if (this.overduerule === 'one') {
        if (reg.test(this.secondipt_01) === false || this.secondipt_01 === '' || isNaN(parseInt(this.secondipt_01)) === true || this.secondipt_01 === undefined || this.secondipt_01 === null || parseInt(this.secondipt_01) < 0) {
          this.$Message.error('"逾期后xx天"请填写大于等于0的整数')
        let  reg=/^[0-9]\d*$/;
        if(this.overduerule==="one"){
          if(reg.test(this.secondipt_01)===false||this.secondipt_01===""||isNaN(parseInt(this.secondipt_01))===true||this.secondipt_01===undefined||this.secondipt_01===null||parseInt(this.secondipt_01)<0){
            this.$Message.error("\"逾期后xx天\"请填写大于等于0的整数")
          this.secondipt_01 = 0
          return false
        } else {
          data = {
            Id: this.Id,
            RuleName: '逾期后' + this.secondipt_01 + '天',
              RuleName:"逾期后"+this.secondipt_01+"天",
            RuleType: false,
            ChoiceRadioFlag: this.overduerule,
            PId: this.pid,
            CpType: false
          }
          this.secondipt_02 = ''
          this.secondipt_03 = ''
            this.secondipt_02=""
            this.secondipt_03=""
        }
      } else if (this.overduerule === 'two') {
        if (reg.test(this.secondipt_02) === false || parseInt(this.secondipt_02) < 0 || isNaN(parseInt(this.secondipt_02)) === true || this.secondipt_02 === '' || this.secondipt_02 === undefined || this.secondipt_02 === null) {
          this.$Message.error('"逾期xx天后"请填写大于等于0的整数')
        }else if(this.overduerule==="two"){
          if(reg.test(this.secondipt_02)===false||parseInt(this.secondipt_02)<0||isNaN(parseInt(this.secondipt_02))===true||this.secondipt_02===""||this.secondipt_02===undefined||this.secondipt_02===null){
            this.$Message.error("\"逾期xx天后\"请填写大于等于0的整数")
          return false
        } else {
          if (reg.test(this.secondipt_03) === false || parseInt(this.secondipt_03) < 1 || this.secondipt_03 === '' || isNaN(parseInt(this.secondipt_03)) === true || this.secondipt_03 === undefined || this.secondipt_03 === null) {
            this.$Message.error('"每xx天"请填写大于等于1的整数')
            if(reg.test(this.secondipt_03)===false||parseInt(this.secondipt_03)<1||this.secondipt_03===""||isNaN(parseInt(this.secondipt_03))===true||this.secondipt_03===undefined||this.secondipt_03===null){
              this.$Message.error("\"每xx天\"请填写大于等于1的整数")
            return false
          } else {
            data = {
              Id: this.Id,
              RuleName: '逾期' + this.secondipt_02 + '天后,每' + this.secondipt_03 + '天',
                RuleName:"逾期"+this.secondipt_02+"天后,每"+this.secondipt_03+"天",
              RuleType: false,
              ChoiceRadioFlag: this.overduerule,
              PId: this.pid,
              CpType: false
            }
            this.secondipt_01 = ''
              this.secondipt_01=""
          }
        }
      } else {
        this.$Message.error('请选择一个规则选项')
          this.$Message.error("请选择一个规则选项")
        return false
      }
      axios.request({
@@ -2412,8 +2427,8 @@
              this.divarr.push(val.RuleName)
            })
          } else {
            this.expirationList = []
            this.divarr = []
              this.expirationList=[];
              this.divarr=[];
          }
          // if(this.addiptisnot===false){
          //   this.expirationList=res.data.Data
@@ -2440,20 +2455,21 @@
       **/
    editexpirationList (getdata) {
      this.addExpirationModal = true
      this.whatis = '编辑'
      this.whatissave = '保存'
        this.whatis="编辑"
        this.whatissave="保存"
      let d
      this.Id = getdata.Id
      this.defalutaddrule = getdata.ChoiceRadioFlag
      if (getdata.ChoiceRadioFlag === 'one') {
        this.firstipt_01 = getdata.RuleName.replace(/[^0-9]/ig, '')
        if(getdata.ChoiceRadioFlag==="one"){
          this.firstipt_01=getdata.RuleName.replace(/[^0-9]/ig,"")
        this.firstipt_02 = ''
        this.firstipt_03 = ''
      } else if (getdata.ChoiceRadioFlag === 'two') {
        d = getdata.RuleName.split(',')
        this.firstipt_02 = d[0].replace(/[^0-9]/ig, '')
        this.firstipt_03 = d[1].replace(/[^0-9]/ig, '')
        }else if(getdata.ChoiceRadioFlag==="two"){
          d=getdata.RuleName.split(",")
          this.firstipt_02=d[0].replace(/[^0-9]/ig,"")
          this.firstipt_03=d[1].replace(/[^0-9]/ig,"")
        this.firstipt_01 = ''
      }
    },
    /**
@@ -2469,46 +2485,47 @@
       */
    addExpirationfun () {
      let data
      let reg = /^[0-9]\d*$/
      if (this.defalutaddrule === 'one') {
        if (this.firstipt_01 === '' || isNaN(parseInt(this.firstipt_01)) === true || this.firstipt_01 === undefined || this.firstipt_01 === null || parseInt(this.firstipt_01) < 0 || reg.test(this.firstipt_01) === false) {
          this.$Message.error('"提前xx天"请填写大于等于0的整数')
        let  reg=/^[0-9]\d*$/;
        if(this.defalutaddrule==="one"){
          if(this.firstipt_01===""||isNaN(parseInt(this.firstipt_01))===true||this.firstipt_01===undefined||this.firstipt_01===null||parseInt(this.firstipt_01)<0||reg.test(this.firstipt_01)===false){
            this.$Message.error("\"提前xx天\"请填写大于等于0的整数")
          this.firstipt_01 = 0
          return false
        } else {
          data = {
            Id: this.Id,
            RuleName: '提前' + this.firstipt_01 + '天',
              RuleName:"提前"+this.firstipt_01+"天",
            RuleType: true,
            ChoiceRadioFlag: this.defalutaddrule,
            PId: this.pid,
            CpType: false
          }
          this.firstipt_02 = ''
          this.firstipt_03 = ''
            this.firstipt_02=""
            this.firstipt_03=""
        }
      } else if (this.defalutaddrule === 'two') {
        if (parseInt(this.firstipt_02) < 0 || isNaN(parseInt(this.firstipt_02)) === true || this.firstipt_02 === '' || this.firstipt_02 === undefined || this.firstipt_02 === null || reg.test(this.firstipt_02) === false) {
          this.$Message.error('"提前xx天"请填写大于等于0的整数')
        }else if(this.defalutaddrule==="two"){
          if(parseInt(this.firstipt_02)<0||isNaN(parseInt(this.firstipt_02))===true||this.firstipt_02===""||this.firstipt_02===undefined||this.firstipt_02===null||reg.test(this.firstipt_02)===false){
            this.$Message.error("\"提前xx天\"请填写大于等于0的整数")
          return false
        } else {
          if (parseInt(this.firstipt_03) < 1 || this.firstipt_03 === '' || isNaN(parseInt(this.firstipt_03)) === true || this.firstipt_03 === undefined || this.firstipt_03 === null || reg.test(this.firstipt_03) === false) {
            this.$Message.error('"每xx天"请填写大于等于1的整数')
            if(parseInt(this.firstipt_03)<1||this.firstipt_03===""||isNaN(parseInt(this.firstipt_03))===true||this.firstipt_03===undefined||this.firstipt_03===null||reg.test(this.firstipt_03)===false){
              this.$Message.error("\"每xx天\"请填写大于等于1的整数")
            return false
          } else {
            data = {
              Id: this.Id,
              RuleName: '提前' + this.firstipt_02 + '天,每' + this.firstipt_03 + '天',
                RuleName:"提前"+this.firstipt_02+"天,每"+this.firstipt_03+"天",
              RuleType: true,
              ChoiceRadioFlag: this.defalutaddrule,
              PId: this.pid,
              CpType: false
            }
            this.firstipt_01 = ''
              this.firstipt_01=""
          }
        }
      } else {
        this.$Message.error('请选择一个规则选项')
          this.$Message.error("请选择一个规则选项")
        return false
      }
      axios.request({
@@ -2529,13 +2546,13 @@
    },
    addExpiration () {
      this.addExpirationModal = true
      this.firstipt_01 = ''
      this.firstipt_02 = ''
      this.firstipt_03 = ''
      this.defalutaddrule = 'one'
        this.firstipt_01=""
        this.firstipt_02=""
        this.firstipt_03=""
        this.defalutaddrule="one"
      this.Id = 0
      this.whatis = '添加'
      this.whatissave = '保存'
        this.whatis="添加"
        this.whatissave="保存"
    },
    /**
       * 添加新建收款计划保存按钮
@@ -2545,7 +2562,7 @@
        // let Id=0;
        this.addfundmodel.Id = this.pid
        this.addfundmodel.CompanyId = this.CompanyId
        let data = this.addfundmodel
          let data=this.addfundmodel;
        if (this.custodianlist.length > 0) {
          this.custodianlist.forEach((val, index) => {
            if (data.Custodian === val.RealName) {
@@ -2557,28 +2574,28 @@
          if (index === 0) {
            data.ShareOne = val
          } else {
            data.ShareOne = data.ShareOne + ',' + val
              data.ShareOne=data.ShareOne+","+val
          }
        })
        this.divarr02.forEach((val, index) => {
          if (index === 0) {
            data.OverdueRule = val
          } else {
            data.OverdueRule = data.OverdueRule + ',' + val
              data.OverdueRule=data.OverdueRule+","+val
          }
        })
        this.divarr.forEach((val, index) => {
          if (index === 0) {
            data.ExpireRule = val
          } else {
            data.ExpireRule = data.ExpireRule + ',' + val
              data.ExpireRule=data.ExpireRule+","+val
          }
        })
        this.emaileventarr.forEach((val, index) => {
          if (index === 0) {
            data.ReminderMail = val
          } else {
            data.ReminderMail = data.ReminderMail + ',' + val
              data.ReminderMail=data.ReminderMail+","+val
          }
        })
        if (valid) {
@@ -2598,7 +2615,7 @@
          })
        } else {
          this.$Message.error('请填写相关选项!')
            this.$Message.error('请填写相关选项!');
        }
      })
    },
@@ -2609,7 +2626,7 @@
      this.getReceivablesList()
      this.fundshow = true
      this.addfundshow = false
      this.Navigation = '添加'
        this.Navigation="添加";
    },
    /**
       * 添加收款计划
@@ -2618,8 +2635,8 @@
      this.pid = 0
      this.NewState = true
      this.addiptisnot = true
      this.fundshow = false
      this.addfundshow = true
        this.fundshow=false;
        this.addfundshow=true;
      this.saveAfterTable = false
      this.addfundmodel = {
        SubjectName: '',
@@ -2637,13 +2654,13 @@
        CpType: false
      }
      this.fundtableList = []
      this.sharedivarr = []
        this.sharedivarr=[];
      this.divarr02 = []
      this.emaileventarr = []
      this.divarr = []
      this.expirationList = []
      this.overdueList = []
      this.addfundmodel.SubjectName = ''
        this.addfundmodel.SubjectName=""
    },
    /**
       * 修改分页
@@ -2654,7 +2671,7 @@
      this.$nextTick(() => {
        $('#fundplan').animate({scrollTop: 0}, 'slow')
      })
      document.getElementById('fundplan').scrollIntoView()
        document.getElementById('fundplan').scrollIntoView();
      this.getReceivablesList()
    },
    /**
@@ -2736,8 +2753,13 @@
    }
  },
  computed: {
      getRealName(){
        console.log('获取realName',this.$store.state.user.RealName)
        console.log('获取userName',this.$store.state.user.userName)
        return this.$store.state.user.RealName
      },
    fundtableColumns () {
      let columns = []
        let columns=[];
      columns.push({
        title: '序号',
        key: 'Id',
@@ -2746,14 +2768,14 @@
          return h('span', params.index + 1)
        },
        minWidth: 50,
        maxWidth: 70
          maxWidth:70,
      })
      columns.push({
        title: '支付日期',
        key: 'CollectionTime',
        align: 'center',
        minWidth: 130,
        maxWidth: 140
          maxWidth:140,
      })
      columns.push({
        title: '应支付金额(元)',
@@ -2762,7 +2784,7 @@
          return h('span', this.CustomMethods.numTo$(params.row.RecyclingAmount))
        },
        align: 'right',
        minWidth: 200
          minWidth:200,
        // maxWidth:220
      })
      columns.push({
@@ -2772,7 +2794,7 @@
          return h('span', this.CustomMethods.numTo$(params.row.ActualAmount))
        },
        align: 'right',
        minWidth: 200
          minWidth:200,
        // maxWidth:220
      })
      columns.push({
@@ -2787,7 +2809,7 @@
          } else {
            return h('span', '否')
          }
        }
          },
      })
      columns.push({
        title: '备注',
@@ -2801,17 +2823,17 @@
        slot: 'action',
        minWidth: 160,
        maxWidth: 180,
        align: 'center'
          align: 'center',
      })
      return columns
    },
    overdueListColumns () {
      let columns = []
        let columns=[];
      columns.push({
        title: '提醒规则',
        key: 'RuleName',
        align: 'center'
          align: 'center',
      })
      columns.push({
        title: '操作',
@@ -2819,17 +2841,17 @@
        slot: 'action',
        minWidth: 250,
        maxWidth: 280,
        align: 'center'
          align: 'center',
      })
      return columns
    },
    expirationListColumns () {
      let columns = []
        let columns=[];
      columns.push({
        title: '提醒规则',
        key: 'RuleName',
        align: 'center'
          align: 'center',
      })
      columns.push({
        title: '操作',
@@ -2837,13 +2859,13 @@
        slot: 'action',
        minWidth: 250,
        maxWidth: 280,
        align: 'center'
          align: 'center',
      })
      return columns
    },
    fundColumns () {
      let columns = []
        let columns = [];
      columns.push({
        title: '序号',
        key: 'Id',
@@ -2851,28 +2873,28 @@
        render: (h, params) => {
          return h('span', params.index + 1)
        },
        align: 'center'
          align: 'center',
      })
      columns.push({
        title: '收款方名称',
        key: 'SubjectName',
        minWidth: 190,
        maxWidth: 200,
        align: 'center'
          align: 'center',
      })
      columns.push({
        title: '支付计划名称',
        key: 'NameOfCollPlan',
        minWidth: 150,
        maxWidth: 160,
        align: 'center'
          align: 'center',
      })
      columns.push({
        title: '首个未付款日',
        key: 'FirstUnpaidTime',
        minWidth: 120,
        maxWidth: 150,
        align: 'center'
          align: 'center',
      })
      columns.push({
        title: '首个未付款金额(元)',
@@ -2882,14 +2904,14 @@
        align: 'right',
        render: (h, params) => {
          return h('span', this.CustomMethods.numTo$(params.row.FirstOutAmount))
        }
          },
      })
      columns.push({
        title: '逾期天数',
        key: 'DaysOverdue',
        minWidth: 100,
        maxWidth: 100,
        align: 'center'
          align: 'center',
      })
      columns.push({
        title: '逾期金额(元)',
@@ -2899,7 +2921,7 @@
        align: 'right',
        render: (h, params) => {
          return h('span', this.CustomMethods.numTo$(params.row.OverdueAmount))
        }
          },
      })
      columns.push({
        title: '状态',
@@ -2912,7 +2934,7 @@
          } else {
            return h('span', '无效')
          }
        }
          },
      })
      columns.push({
        title: '操作',
@@ -2921,10 +2943,10 @@
        minWidth: 230,
        maxWidth: 250,
        align: 'center',
        fixed: 'right'
          fixed: 'right',
      })
      return columns
    }
      },
  }
}
</script>
src/view/single-page/home/home.vue
@@ -393,6 +393,12 @@
      this.changePageSize()
      window.addEventListener('resize', this.changePageSize)
    },
    watch:{
      getRealName(newCount, oldCount){
        console.log('重新请求接口')
        this.getProjectList()
      }
    },
    methods: {
      ...mapActions([
        'getUserInfo'
@@ -776,6 +782,11 @@
      },
    },
    computed: {
      getRealName(){
        console.log('获取realName',this.$store.state.user.RealName)
        console.log('获取userName',this.$store.state.user.userName)
        return this.$store.state.user.RealName
      },
      projectListColumns() {
        let columns = []
        columns.push({