From 9e007f676d0e55c4bf0cc2a78bc7dc96be188d50 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期四, 14 十二月 2023 19:45:52 +0800 Subject: [PATCH] 隐藏生成计划和服务收费管理模块 --- src/views/other/payment/collectionPlan/AddCollectionPlan.vue | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue index e1eea7a..52cd7d5 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: this.getCookie('username')||0, 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:this.getCookie('username') } }, getCommonData() { -- Gitblit v1.8.0