| | |
| | | |
| | | export default { |
| | | state: { |
| | | RealName:'', |
| | | userName: '', |
| | | userId: '', |
| | | defaultworkflow: '', |
| | |
| | | }, |
| | | setUserName(state, name) { |
| | | state.userName = name |
| | | }, |
| | | setRealName(state,RealName){ |
| | | state.RealName = RealName |
| | | }, |
| | | setAccess(state, access) { |
| | | state.access = access |
| | |
| | | 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'){ |
| | |
| | | import axios from '@/libs/api.request' |
| | | import Cookies from 'js-cookie' |
| | | import {mapActions} from 'vuex' |
| | | // import {mapActions} from 'vuex' |
| | | export default { |
| | | name: 'accountInformation', |
| | | data () { |
| | |
| | | homeTypeList: [ |
| | | { |
| | | title: '基本信息', |
| | | type: 'baseMessage' |
| | | type:'baseMessage', |
| | | }, |
| | | { |
| | | title: '修改密码', |
| | | type: 'changePassword' |
| | | type:'changePassword', |
| | | } |
| | | ], // 页面类型列表 |
| | | accountMsg: { |
| | |
| | | Mail: '', |
| | | QQ: '', |
| | | Wechat: '', |
| | | Address: '' |
| | | Address: '', |
| | | // AccountLimit: '', |
| | | // CompanyName: '', |
| | | // CompanyChar: '', |
| | |
| | | ], |
| | | Wechat: [ |
| | | {pattern: /^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$/, message: '请输入正确的微信号'} |
| | | ] |
| | | ], |
| | | }, |
| | | savePassLoading: false, // 修改密码loading |
| | | editPasswordForm: { |
| | |
| | | oldpwd: '', |
| | | newpwd: '', |
| | | ConfirmPassword: '' |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | mounted () { |
| | |
| | | }, |
| | | 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', |
| | |
| | | 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 { |
| | | |
| | |
| | | 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 { |
| | | |
| | | } |
| | |
| | | this.savePassLoading = false |
| | | this.$Message.error('服务器错误!') |
| | | }) |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | } |
| | | }, |
| | | watch:{ |
| | | getRealName(newCount, oldCount){ |
| | | console.log('重新请求接口') |
| | | this.getcustodianList() |
| | | }, |
| | | /** |
| | | * 监听邮箱数据变化 |
| | | **/ |
| | |
| | | } |
| | | }, |
| | | 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 |
| | |
| | | } |
| | | this.addfundmodel=this.editFundList1 |
| | | },3000) |
| | | |
| | | }, |
| | | watch:{ |
| | | |
| | | }, |
| | | methods:{ |
| | |
| | | }).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 { |
| | | |
| | | } |
| | |
| | | }, |
| | | }, |
| | | 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({ |
| | |
| | | |
| | | <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' }, |
| | | // ], |
| | |
| | | importFormFile: null, |
| | | importFormModal: false, |
| | | fundMonitoringmodel: { |
| | | PlanState: '-1', |
| | | IsOverdue: '-1', |
| | | PlanState:"-1", |
| | | IsOverdue:"-1", |
| | | SubjectName: '' |
| | | }, |
| | | formItem: { |
| | |
| | | }, |
| | | 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 |
| | |
| | | ExpireRule: '', |
| | | CpType: true |
| | | }, |
| | | Navigation: '添加', |
| | | Navigation:"添加", |
| | | addfundmodelValid: { |
| | | SubjectName: [ |
| | | { required: true, trigger: 'blur' } |
| | |
| | | ], |
| | | Custodian: [ |
| | | { required: true, trigger: 'change' } |
| | | ] |
| | | ], |
| | | }, |
| | | addExpirationModal: false, // 添加规则弹框modal |
| | | |
| | |
| | | whatis: '确认', // 改变弹框 名称 |
| | | deleteId: '', // 删除ID |
| | | loading_01: '', // loading |
| | | overdue: '确认', // 改变弹框 名称 |
| | | overduesave: '保存', |
| | | overdue:"确认", //改变弹框 名称 |
| | | overduesave:"保存", |
| | | secondipt_01: '', |
| | | secondipt_02: '', |
| | | secondipt_03: '', |
| | |
| | | choosetranser: [], // 选中的key |
| | | emaileventarr: [], // 邮箱数据存储 |
| | | custodianlist: [], // 管理人数据 |
| | | loading_02: '', // loading |
| | | loading_02:"",//loading |
| | | fundtableList: [], // table表格数据 |
| | | pid: 0, // 保存时pid的获取 |
| | | saveAfterTable: false, // table显示控制 |
| | |
| | | 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: [], |
| | |
| | | custodianListCopy: [], |
| | | shareListCopy: [], |
| | | loading_copy: false, |
| | | copyparams: '' |
| | | copyparams:"" |
| | | } |
| | | }, |
| | | watch: { |
| | | // sharedivarr(data){ |
| | | // console.log(data) |
| | | // this.shareFun() |
| | | // }, |
| | | getRealName(newCount, oldCount){ |
| | | console.log('重新请求接口') |
| | | this.getReceivablesList() |
| | | this.getcustodianList() |
| | | }, |
| | | /** |
| | | * 监听邮箱数据变化 |
| | | **/ |
| | |
| | | } |
| | | }, |
| | | 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') |
| | |
| | | } |
| | | }) |
| | | }) |
| | | 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) => { |
| | |
| | | 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 { |
| | | |
| | |
| | | }, res => { |
| | | this.fileError = false |
| | | this.importFormModal = false |
| | | |
| | | }) |
| | | }, |
| | | /** |
| | |
| | | this.importFormLoading = false |
| | | }, res => { |
| | | this.importFormLoading = false |
| | | |
| | | }) |
| | | } else { |
| | | this.$Message.error('请选择需要上传的文件!') |
| | |
| | | CapitalId: 0, |
| | | DebtId: 0, |
| | | OperateId: 0, |
| | | TemplateFlag: bool === true |
| | | TemplateFlag: bool === true ? true : false |
| | | } |
| | | axios.request({ |
| | | url: '/AssessFile/DownloadAssessFile', |
| | |
| | | let data = { |
| | | keyword: this.addfundmodel.SubjectName |
| | | } |
| | | if (this.addfundmodel.SubjectName != '') { |
| | | if(this.addfundmodel.SubjectName!=""){ |
| | | setTimeout(() => { |
| | | axios.request({ |
| | | url: '/QiChaCha/FuzzySearch', |
| | |
| | | method: 'post' |
| | | }).then(res => { |
| | | if (res.data.Check) { |
| | | this.loadingsele = false |
| | | this.loadingsele = false; |
| | | this.cityList = res.data.Data |
| | | // b= a.map(item => { |
| | | // return { |
| | |
| | | }, res => { |
| | | |
| | | }) |
| | | }, 200) |
| | | }, 200); |
| | | } else { |
| | | this.cityList = [] |
| | | this.loadingsele = false |
| | |
| | | changePlanModalfun () { |
| | | let data = { |
| | | Id: this.changePlanId, |
| | | CpType: true |
| | | CpType:true, |
| | | } |
| | | axios.request({ |
| | | url: '/MonPlanTable/UpdMonPlanState', |
| | |
| | | }) |
| | | }, |
| | | 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 |
| | |
| | | * 删除事件 |
| | | **/ |
| | | 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() |
| | |
| | | // 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 = [] |
| | |
| | | // 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) |
| | |
| | | this.formItem = this.deepcloneList |
| | | this.tableId = params.Id |
| | | this.addTableshow = true |
| | | this.tableFont = '编辑' |
| | | this.tableFont="编辑" |
| | | }, |
| | | /** |
| | | * 保存第二层table事件 |
| | |
| | | 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) |
| | |
| | | |
| | | }) |
| | | } else { |
| | | this.$Message.error('请填写相关选项!') |
| | | this.$Message.error('请填写相关选项!'); |
| | | } |
| | | } else { |
| | | // this.formItem.ActualAmount="" |
| | | // this.formItem.RecyclingAmount="" |
| | | this.$Message.error('回收金额必须小于等于实际回收金额!') |
| | | this.$Message.error('回收金额必须小于等于实际回收金额!'); |
| | | return false |
| | | } |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | /** |
| | |
| | | **/ |
| | | 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, |
| | |
| | | getfundtableList () { |
| | | this.loading_03 = true |
| | | let data = { |
| | | PId: this.pid |
| | | PId:this.pid, |
| | | } |
| | | axios.request({ |
| | | url: '/MonRecycleTable/GetMonRecycleTableList', |
| | |
| | | method: 'post' |
| | | }).then(res => { |
| | | if (res.data.Check) { |
| | | this.fundtableList = res.data.Data |
| | | this.fundtableList=res.data.Data; |
| | | this.loading_03 = false |
| | | } else { |
| | | |
| | |
| | | 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) { |
| | |
| | | }) |
| | | }, |
| | | 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 |
| | |
| | | // }) |
| | | }, |
| | | clickdivremindemail () { |
| | | $('.divarrclass04add input').focus() |
| | | $(".divarrclass04add input").focus() |
| | | }, |
| | | /** |
| | | * email的change事件 |
| | |
| | | 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&®.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("请输入正确的邮箱地址") |
| | | } |
| | | } |
| | | } |
| | |
| | | * 邮箱的添加 |
| | | **/ |
| | | 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&®.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&®.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', |
| | |
| | | this.loading_01 = true |
| | | let data = { |
| | | PId: this.pid, |
| | | CpType: true |
| | | CpType:true, |
| | | } |
| | | axios.request({ |
| | | url: '/MonRemindEmail/GetMonRemindEmailList', |
| | |
| | | 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 { |
| | | |
| | | } |
| | |
| | | */ |
| | | saveTranser () { |
| | | this.sharedivarr = [] |
| | | let a = [] |
| | | let a=[]; |
| | | let b = [] |
| | | console.log(this.choosetranser) |
| | | this.sharePeople.forEach((val, index) => { |
| | |
| | | } |
| | | }) |
| | | }) |
| | | a = a.join(',') |
| | | b = b.join(',') |
| | | a = a.join(",") |
| | | b = b.join(",") |
| | | let data = { |
| | | PId: this.pid, |
| | | ShareOneName: b, |
| | |
| | | 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; |
| | | }, |
| | | /** |
| | | * 共享数据的获取 |
| | |
| | | this.sharePeople = [] |
| | | this.pushhandarr = [] |
| | | this.sharedivarr = [] |
| | | let a = '' |
| | | let a="" |
| | | this.loading_02 = true |
| | | let data = { |
| | | CompanyId: this.CompanyId, |
| | |
| | | // } |
| | | // } |
| | | 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) => { |
| | |
| | | |
| | | }) |
| | | // }) |
| | | |
| | | } else { |
| | | this.loading_02 = false |
| | | } |
| | |
| | | // }, res => { |
| | | // |
| | | // }) |
| | | this.addfundMonitoring = true |
| | | this.addfundMonitoring=true; |
| | | }, |
| | | /** |
| | | * 删除逾期规则确认 |
| | |
| | | this.divarr02.push(val.RuleName) |
| | | }) |
| | | } else { |
| | | this.overdueList = [] |
| | | this.divarr02 = [] |
| | | this.overdueList=[]; |
| | | this.divarr02=[]; |
| | | } |
| | | this.loading_01 = false |
| | | } else { |
| | |
| | | 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.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="保存" |
| | | }, |
| | | /** |
| | | * 添加逾期规则数据确认 |
| | |
| | | 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({ |
| | |
| | | this.divarr.push(val.RuleName) |
| | | }) |
| | | } else { |
| | | this.expirationList = [] |
| | | this.divarr = [] |
| | | this.expirationList=[]; |
| | | this.divarr=[]; |
| | | } |
| | | // if(this.addiptisnot===false){ |
| | | // this.expirationList=res.data.Data |
| | |
| | | **/ |
| | | 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 = '' |
| | | } |
| | | }, |
| | |
| | | */ |
| | | 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({ |
| | |
| | | }, |
| | | 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="保存" |
| | | }, |
| | | /** |
| | | * 添加新建收款计划保存按钮 |
| | |
| | | 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) => { |
| | |
| | | }) |
| | | } |
| | | 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 |
| | | } |
| | | }) |
| | | |
| | |
| | | |
| | | }) |
| | | } else { |
| | | this.$Message.error('请填写相关选项!') |
| | | this.$Message.error('请填写相关选项!'); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | this.getReceivablesList() |
| | | this.fundshow = true |
| | | this.addfundshow = false |
| | | this.Navigation = '添加' |
| | | this.Navigation="添加"; |
| | | }, |
| | | /** |
| | | * 添加收款计划 |
| | |
| | | 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: '', |
| | |
| | | CpType: true |
| | | } |
| | | this.fundtableList = [] |
| | | this.sharedivarr = [] |
| | | this.sharedivarr=[]; |
| | | this.divarr02 = [] |
| | | this.emaileventarr = [] |
| | | this.divarr = [] |
| | | this.expirationList = [] |
| | | this.overdueList = [] |
| | | this.addfundmodel.SubjectName = '' |
| | | this.addfundmodel.SubjectName="" |
| | | }, |
| | | /** |
| | | * 修改分页 |
| | |
| | | this.$nextTick(() => { |
| | | $('#fundplan').animate({scrollTop: 0}, 'slow') |
| | | }) |
| | | document.getElementById('fundplan').scrollIntoView() |
| | | document.getElementById('fundplan').scrollIntoView(); |
| | | this.getReceivablesList() |
| | | }, |
| | | /** |
| | |
| | | } |
| | | }, |
| | | 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', |
| | |
| | | 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: '应回收金额(元)', |
| | |
| | | return h('span', this.CustomMethods.numTo$(params.row.RecyclingAmount)) |
| | | }, |
| | | align: 'right', |
| | | minWidth: 200 |
| | | minWidth:200, |
| | | // maxWidth:220 |
| | | }) |
| | | columns.push({ |
| | |
| | | return h('span', this.CustomMethods.numTo$(params.row.ActualAmount)) |
| | | }, |
| | | align: 'right', |
| | | minWidth: 200 |
| | | minWidth:200, |
| | | // maxWidth:220 |
| | | }) |
| | | columns.push({ |
| | |
| | | } else { |
| | | return h('span', '否') |
| | | } |
| | | } |
| | | }, |
| | | }) |
| | | columns.push({ |
| | | title: '备注', |
| | |
| | | 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: '操作', |
| | |
| | | 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: '操作', |
| | |
| | | slot: 'action', |
| | | minWidth: 250, |
| | | maxWidth: 280, |
| | | align: 'center' |
| | | align: 'center', |
| | | |
| | | }) |
| | | return columns |
| | | }, |
| | | fundColumns () { |
| | | let columns = [] |
| | | let columns = []; |
| | | columns.push({ |
| | | title: '序号', |
| | | key: 'Id', |
| | |
| | | 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: '首个未收款金额(元)', |
| | |
| | | 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: '逾期金额(元)', |
| | |
| | | align: 'right', |
| | | render: (h, params) => { |
| | | return h('span', this.CustomMethods.numTo$(params.row.OverdueAmount)) |
| | | } |
| | | }, |
| | | }) |
| | | columns.push({ |
| | | title: '状态', |
| | |
| | | } else { |
| | | return h('span', '无效') |
| | | } |
| | | } |
| | | }, |
| | | }) |
| | | columns.push({ |
| | | title: '操作', |
| | |
| | | minWidth: 230, |
| | | maxWidth: 250, |
| | | align: 'center', |
| | | fixed: 'right' |
| | | fixed: 'right', |
| | | }) |
| | | return columns |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | 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' }, |
| | | // ], |
| | |
| | | }, |
| | | 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 |
| | |
| | | ExpireRule: '', |
| | | CpType: false |
| | | }, |
| | | Navigation: '添加', |
| | | Navigation:"添加", |
| | | addfundmodelValid: { |
| | | SubjectName: [ |
| | | { required: true, trigger: 'blur' } |
| | |
| | | // ], |
| | | Custodian: [ |
| | | { required: true, trigger: 'blur' } |
| | | ] |
| | | ], |
| | | // ShareOne:[ |
| | | // { required: true,trigger: 'blur',validator:transerRule} |
| | | // ], |
| | |
| | | whatis: '确认', // 改变弹框 名称 |
| | | deleteId: '', // 删除ID |
| | | loading_01: '', // loading |
| | | overdue: '确认', // 改变弹框 名称 |
| | | overduesave: '保存', |
| | | overdue:"确认", //改变弹框 名称 |
| | | overduesave:"保存", |
| | | secondipt_01: '', |
| | | secondipt_02: '', |
| | | secondipt_03: '', |
| | |
| | | choosetranser: [], // 选中的key |
| | | emaileventarr: [], // 邮箱数据存储 |
| | | custodianlist: [], // 管理人数据 |
| | | loading_02: '', // loading |
| | | loading_02:"",//loading |
| | | fundtableList: [], // table表格数据 |
| | | pid: 0, // 保存时pid的获取 |
| | | saveAfterTable: false, // table显示控制 |
| | |
| | | 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: [], |
| | |
| | | custodianListCopy: [], |
| | | shareListCopy: [], |
| | | loading_copy: false, |
| | | copyparams: '' |
| | | copyparams:"" |
| | | } |
| | | }, |
| | | watch: { |
| | | getRealName(newCount, oldCount){ |
| | | console.log('重新请求接口') |
| | | this.getReceivablesList() |
| | | this.getcustodianList() |
| | | }, |
| | | /** |
| | | * 监听邮箱数据变化 |
| | | **/ |
| | |
| | | } |
| | | }, |
| | | 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() |
| | |
| | | } |
| | | }) |
| | | }) |
| | | 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) => { |
| | |
| | | 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 { |
| | | |
| | |
| | | }, res => { |
| | | this.fileError = false |
| | | this.importFormModal = false |
| | | |
| | | }) |
| | | }, |
| | | /** |
| | |
| | | this.importFormLoading = false |
| | | }, res => { |
| | | this.importFormLoading = false |
| | | |
| | | }) |
| | | } else { |
| | | this.$Message.error('请选择需要上传的文件!') |
| | |
| | | CapitalId: 0, |
| | | DebtId: 0, |
| | | OperateId: 0, |
| | | TemplateFlag: bool === true |
| | | TemplateFlag: bool === true ? true : false |
| | | } |
| | | axios.request({ |
| | | url: '/AssessFile/DownloadAssessFile', |
| | |
| | | let data = { |
| | | keyword: this.addfundmodel.SubjectName |
| | | } |
| | | if (this.addfundmodel.SubjectName != '') { |
| | | if(this.addfundmodel.SubjectName!=""){ |
| | | setTimeout(() => { |
| | | axios.request({ |
| | | url: '/QiChaCha/FuzzySearch', |
| | |
| | | method: 'post' |
| | | }).then(res => { |
| | | if (res.data.Check) { |
| | | this.loadingsele = false |
| | | this.loadingsele = false; |
| | | this.cityList = res.data.Data |
| | | // b= a.map(item => { |
| | | // return { |
| | |
| | | }, res => { |
| | | |
| | | }) |
| | | }, 200) |
| | | }, 200); |
| | | } else { |
| | | this.cityList = [] |
| | | this.loadingsele = false |
| | |
| | | changePlanModalfun () { |
| | | let data = { |
| | | Id: this.changePlanId, |
| | | CpType: false |
| | | CpType:false, |
| | | } |
| | | axios.request({ |
| | | url: '/MonPlanTable/UpdMonPlanState', |
| | |
| | | }) |
| | | }, |
| | | 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 |
| | |
| | | * 删除事件 |
| | | **/ |
| | | 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() |
| | |
| | | // 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 = [] |
| | |
| | | // 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) |
| | |
| | | this.formItem = this.deepcloneList |
| | | this.tableId = params.Id |
| | | this.addTableshow = true |
| | | this.tableFont = '编辑' |
| | | this.tableFont="编辑" |
| | | }, |
| | | /** |
| | | * 保存第二层table事件 |
| | |
| | | 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) |
| | |
| | | |
| | | }) |
| | | } else { |
| | | this.$Message.error('请填写相关选项!') |
| | | this.$Message.error('请填写相关选项!'); |
| | | } |
| | | } else { |
| | | // this.formItem.ActualAmount="" |
| | | // this.formItem.RecyclingAmount="" |
| | | this.$Message.error('回收金额必须小于等于实际回收金额!') |
| | | this.$Message.error('回收金额必须小于等于实际回收金额!'); |
| | | return false |
| | | } |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | /** |
| | |
| | | **/ |
| | | 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, |
| | |
| | | getfundtableList () { |
| | | this.loading_03 = true |
| | | let data = { |
| | | PId: this.pid |
| | | PId:this.pid, |
| | | } |
| | | axios.request({ |
| | | url: '/MonRecycleTable/GetMonRecycleTableList', |
| | |
| | | method: 'post' |
| | | }).then(res => { |
| | | if (res.data.Check) { |
| | | this.fundtableList = res.data.Data |
| | | this.fundtableList=res.data.Data; |
| | | this.loading_03 = false |
| | | } else { |
| | | |
| | |
| | | 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) { |
| | |
| | | }) |
| | | }, |
| | | 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 |
| | |
| | | // }) |
| | | }, |
| | | clickdivremindemail () { |
| | | $('.divarrclass04add input').focus() |
| | | $(".divarrclass04add input").focus() |
| | | }, |
| | | /** |
| | | * email的change事件 |
| | |
| | | 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&®.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("请输入正确的邮箱地址") |
| | | } |
| | | } |
| | | } |
| | |
| | | * 邮箱的添加 |
| | | **/ |
| | | 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&®.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&®.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', |
| | |
| | | this.loading_01 = true |
| | | let data = { |
| | | PId: this.pid, |
| | | CpType: false |
| | | CpType:false, |
| | | } |
| | | axios.request({ |
| | | url: '/MonRemindEmail/GetMonRemindEmailList', |
| | |
| | | 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 { |
| | | |
| | | } |
| | |
| | | */ |
| | | saveTranser () { |
| | | this.sharedivarr = [] |
| | | let a = [] |
| | | let a=[]; |
| | | let b = [] |
| | | console.log(this.choosetranser) |
| | | this.sharePeople.forEach((val, index) => { |
| | |
| | | } |
| | | }) |
| | | }) |
| | | a = a.join(',') |
| | | b = b.join(',') |
| | | a = a.join(",") |
| | | b = b.join(",") |
| | | let data = { |
| | | PId: this.pid, |
| | | ShareOneName: b, |
| | |
| | | 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; |
| | | }, |
| | | /** |
| | | * 共享数据的获取 |
| | |
| | | this.sharePeople = [] |
| | | this.pushhandarr = [] |
| | | this.sharedivarr = [] |
| | | let a = '' |
| | | let a="" |
| | | this.loading_02 = true |
| | | let data = { |
| | | CompanyId: this.CompanyId, |
| | |
| | | } 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) => { |
| | |
| | | |
| | | }) |
| | | // }) |
| | | |
| | | } else { |
| | | this.loading_02 = false |
| | | } |
| | |
| | | // }, res => { |
| | | // |
| | | // }) |
| | | this.addfundMonitoring = true |
| | | this.addfundMonitoring=true; |
| | | }, |
| | | /** |
| | | * 删除逾期规则确认 |
| | |
| | | this.divarr02.push(val.RuleName) |
| | | }) |
| | | } else { |
| | | this.overdueList = [] |
| | | this.divarr02 = [] |
| | | this.overdueList=[]; |
| | | this.divarr02=[]; |
| | | } |
| | | this.loading_01 = false |
| | | } else { |
| | |
| | | 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 |
| | | }, |
| | | /** |
| | |
| | | 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({ |
| | |
| | | this.divarr.push(val.RuleName) |
| | | }) |
| | | } else { |
| | | this.expirationList = [] |
| | | this.divarr = [] |
| | | this.expirationList=[]; |
| | | this.divarr=[]; |
| | | } |
| | | // if(this.addiptisnot===false){ |
| | | // this.expirationList=res.data.Data |
| | |
| | | **/ |
| | | 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 = '' |
| | | |
| | | } |
| | | }, |
| | | /** |
| | |
| | | */ |
| | | 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({ |
| | |
| | | }, |
| | | 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="保存" |
| | | }, |
| | | /** |
| | | * 添加新建收款计划保存按钮 |
| | |
| | | // 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) { |
| | |
| | | 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) { |
| | |
| | | |
| | | }) |
| | | } else { |
| | | this.$Message.error('请填写相关选项!') |
| | | this.$Message.error('请填写相关选项!'); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | this.getReceivablesList() |
| | | this.fundshow = true |
| | | this.addfundshow = false |
| | | this.Navigation = '添加' |
| | | this.Navigation="添加"; |
| | | }, |
| | | /** |
| | | * 添加收款计划 |
| | |
| | | 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: '', |
| | |
| | | CpType: false |
| | | } |
| | | this.fundtableList = [] |
| | | this.sharedivarr = [] |
| | | this.sharedivarr=[]; |
| | | this.divarr02 = [] |
| | | this.emaileventarr = [] |
| | | this.divarr = [] |
| | | this.expirationList = [] |
| | | this.overdueList = [] |
| | | this.addfundmodel.SubjectName = '' |
| | | this.addfundmodel.SubjectName="" |
| | | }, |
| | | /** |
| | | * 修改分页 |
| | |
| | | this.$nextTick(() => { |
| | | $('#fundplan').animate({scrollTop: 0}, 'slow') |
| | | }) |
| | | document.getElementById('fundplan').scrollIntoView() |
| | | document.getElementById('fundplan').scrollIntoView(); |
| | | this.getReceivablesList() |
| | | }, |
| | | /** |
| | |
| | | } |
| | | }, |
| | | 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', |
| | |
| | | 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: '应支付金额(元)', |
| | |
| | | return h('span', this.CustomMethods.numTo$(params.row.RecyclingAmount)) |
| | | }, |
| | | align: 'right', |
| | | minWidth: 200 |
| | | minWidth:200, |
| | | // maxWidth:220 |
| | | }) |
| | | columns.push({ |
| | |
| | | return h('span', this.CustomMethods.numTo$(params.row.ActualAmount)) |
| | | }, |
| | | align: 'right', |
| | | minWidth: 200 |
| | | minWidth:200, |
| | | // maxWidth:220 |
| | | }) |
| | | columns.push({ |
| | |
| | | } else { |
| | | return h('span', '否') |
| | | } |
| | | } |
| | | }, |
| | | }) |
| | | columns.push({ |
| | | title: '备注', |
| | |
| | | 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: '操作', |
| | |
| | | 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: '操作', |
| | |
| | | slot: 'action', |
| | | minWidth: 250, |
| | | maxWidth: 280, |
| | | align: 'center' |
| | | align: 'center', |
| | | |
| | | }) |
| | | return columns |
| | | }, |
| | | fundColumns () { |
| | | let columns = [] |
| | | let columns = []; |
| | | columns.push({ |
| | | title: '序号', |
| | | key: 'Id', |
| | |
| | | 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: '首个未付款金额(元)', |
| | |
| | | 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: '逾期金额(元)', |
| | |
| | | align: 'right', |
| | | render: (h, params) => { |
| | | return h('span', this.CustomMethods.numTo$(params.row.OverdueAmount)) |
| | | } |
| | | }, |
| | | }) |
| | | columns.push({ |
| | | title: '状态', |
| | |
| | | } else { |
| | | return h('span', '无效') |
| | | } |
| | | } |
| | | }, |
| | | }) |
| | | columns.push({ |
| | | title: '操作', |
| | |
| | | minWidth: 230, |
| | | maxWidth: 250, |
| | | align: 'center', |
| | | fixed: 'right' |
| | | fixed: 'right', |
| | | }) |
| | | return columns |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | this.changePageSize() |
| | | window.addEventListener('resize', this.changePageSize) |
| | | }, |
| | | watch:{ |
| | | getRealName(newCount, oldCount){ |
| | | console.log('重新请求接口') |
| | | this.getProjectList() |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapActions([ |
| | | 'getUserInfo' |
| | |
| | | }, |
| | | }, |
| | | 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({ |