From ab95709b5d4009b414bf096cd81f2fe6fcae3d00 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期三, 03 一月 2024 10:15:26 +0800 Subject: [PATCH] 客户管理-展示对应客户的详细信息 --- src/views/other/payment/collectionPlan/AddCollectionPlan.vue | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue index e1eea7a..fad9749 100644 --- a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue +++ b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue @@ -198,7 +198,7 @@ amount: 130, sourceType: this.editCommonConfig.sourceType, // 婧愬崟绫诲瀷 1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁� sourceId: this.editCommonConfig.infomation.id, - principalId: 0, + principalId: '', planAmount: 0, // 璁″垝閲戦 firstDate: this.getCurrentDate(1), collectionType: 1, @@ -213,6 +213,21 @@ this.getCommonData() }, methods: { + getCookie(cookieName) { + var cookieValue = null; + if (document.cookie && document.cookie !== '') { + var cookies = document.cookie.split(';'); + for (var i = 0; i < cookies.length; i++) { + var cookie = cookies[i].trim(); + // 蹇界暐涓嶅畬鏁寸殑cookie + if (cookie.startsWith(cookieName + '=')) { + cookieValue = cookie.substring(cookieName.length + 1, cookie.length); + break; + } + } + } + return cookieValue; + }, // 璁剧疆鍒濆鍊� setData() { this.amount = @@ -222,7 +237,8 @@ this.editConfig.infomation = { collectionType: this.collectionType, moneyType: "浜烘皯甯�", - amountTotal: this.editCommonConfig.infomation.amountTotal + amountTotal: this.editCommonConfig.infomation.amountTotal, + principalId:'' } }, getCommonData() { @@ -321,7 +337,7 @@ id: 0, moneyType: "浜烘皯甯�", percent: ratio, - principalId: this.principalId, + principalId: Number(this.principalId), remark: "", sourceId: this.sourceId, sourceType: this.sourceType, -- Gitblit v1.8.0