From cfcdd5c92b57d15ecccc178aa7b6b6230266b6b6 Mon Sep 17 00:00:00 2001 From: hanchaobo Date: Tue, 20 Feb 2024 17:20:48 +0800 Subject: [PATCH 1/2] 0120bug --- src/api/deliveryRecord/deliveryRecord.js | 20 ++++ src/api/login.js | 19 ++++ .../caseManagement/components/addCase.vue | 64 +++++------ .../caseManagement/components/payDialog.vue | 2 +- .../components/paymentdetailsDialog.vue | 11 +- .../components/respondentPay.vue | 2 +- src/views/deliveryRecord/emailRecord.vue | 104 ++++++++++++++++++ src/views/deliveryRecord/smsRecord.vue | 100 +++++++++++++++++ src/views/register.vue | 81 ++++++++++++-- vue.config.js | 8 +- 10 files changed, 350 insertions(+), 61 deletions(-) create mode 100644 src/api/deliveryRecord/deliveryRecord.js create mode 100644 src/views/deliveryRecord/emailRecord.vue create mode 100644 src/views/deliveryRecord/smsRecord.vue diff --git a/src/api/deliveryRecord/deliveryRecord.js b/src/api/deliveryRecord/deliveryRecord.js new file mode 100644 index 0000000..8c9a19e --- /dev/null +++ b/src/api/deliveryRecord/deliveryRecord.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +// 查询邮件列表 +export function emailList(data) { + return request({ + url: '/sendMailRecord/list', + method: 'get', + params: data + }) +} + +// 查询短信列表 +export function smsList(data,params) { + return request({ + url: '/caseApplication/smsRecord', + method: 'post', + data: data, + params:params + }) +} \ No newline at end of file diff --git a/src/api/login.js b/src/api/login.js index 649f59c..f810acb 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -56,4 +56,23 @@ export function getCodeImg() { method: 'get', timeout: 20000 }) +} +// 获取手机验证码 +export function sendCode(data) { + return request({ + url: '/weChatUser/sendCode', + method: 'get', + params:data + }) +} +// 注册方法 +export function wxregister(data) { + return request({ + url: '/weChatUser/registerUser', + headers: { + isToken: false + }, + method: 'post', + data: data + }) } \ No newline at end of file diff --git a/src/views/caseManagement/components/addCase.vue b/src/views/caseManagement/components/addCase.vue index 2192949..f512b83 100644 --- a/src/views/caseManagement/components/addCase.vue +++ b/src/views/caseManagement/components/addCase.vue @@ -490,13 +490,15 @@ export default { applicantEvidence: [], //申请人证据 respondentEvidence: [], //被申请人证据 buttonFlag: true, - getUserInfoList: {} + getUserInfoList: {}, + applicationFlag: null }; }, watch: { addModifyData(val) { if (val == 1) { this.title = "新增案件"; + this.getUserInfoFn(); this.modelFlag = false; this.buttonFlag = true; this.formData = { @@ -524,48 +526,12 @@ export default { if (this.addModifyData != 1) { this.caseApplicationSelectByIdFn(this.caseData.id); } - if (this.formData.affiliate.organizeFlag == 0) { - this.formData.affiliate.applicationName = this.getUserInfoList.nickName; - this.formData.affiliate.code = this.getUserInfoList.idCard; - this.formData.affiliate.applicationEmail = this.getUserInfoList.email; - this.formData.affiliate.applicationPhone = this.getUserInfoList.phonenumber; - } else if (this.formData.affiliate.organizeFlag == 1) { - this.formData.affiliate.nameAgent = this.getUserInfoList.nickName; - this.formData.affiliate.agentEmail = this.getUserInfoList.email; - this.formData.affiliate.contactTelphoneAgent = this.getUserInfoList.phonenumber; - } } }, - formData: { - handler(newVal) { - if (newVal) { - console.log('newVal========newVal==========newVal', newVal); - if (newVal.affiliate.organizeFlag == 0) { - this.formData.affiliate.applicationName = this.getUserInfoList.nickName; - this.formData.affiliate.code = this.getUserInfoList.idCard; - this.formData.affiliate.applicationEmail = this.getUserInfoList.email; - this.formData.affiliate.applicationPhone = this.getUserInfoList.phonenumber; - // this.formData.affiliate.nameAgent = ''; - // this.formData.affiliate.agentEmail = ''; - // this.formData.affiliate.contactTelphoneAgent = ''; - } else if (newVal.affiliate.organizeFlag == 1) { - // this.formData.affiliate.applicationName = ""; - // this.formData.affiliate.code = ""; - // this.formData.affiliate.applicationEmail = ""; - // this.formData.affiliate.applicationPhone = ""; - this.formData.affiliate.nameAgent = this.getUserInfoList.nickName; - this.formData.affiliate.agentEmail = this.getUserInfoList.email; - this.formData.affiliate.contactTelphoneAgent = this.getUserInfoList.phonenumber; - } - } - }, - deep: true, // 深度监听 - immediate: true, // 初始化监听 - } }, created() { console.log(this.formData, "000000000000000000") - this.getUserInfoFn(); + // this.getUserInfoFn(); }, methods: { /** 切换申请类型 */ @@ -576,8 +542,11 @@ export default { /**获取申请人信息 */ getUserInfoFn() { getUserInfo().then(res => { - console.log(res, "信息信息信息信息信息信息信息信息信息信息信息信息信息信息"); this.getUserInfoList = res.data; + this.$set(this.formData.affiliate, "applicationName", this.getUserInfoList.nickName); + this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard); + this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email); + this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber); }) }, /** 根据案件id获取对应信息 */ @@ -671,6 +640,23 @@ export default { }); }, clearValidate(val) { + if (val == 0) { + this.$set(this.formData.affiliate, "applicationName", this.getUserInfoList.nickName); + this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard); + this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email); + this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber); + this.formData.affiliate.nameAgent = null; + this.formData.affiliate.agentEmail = null; + this.formData.affiliate.contactTelphoneAgent = null; + } else if (val == 1) { + this.$set(this.formData.affiliate, "nameAgent", this.getUserInfoList.nickName); + this.$set(this.formData.affiliate, "agentEmail", this.getUserInfoList.email); + this.$set(this.formData.affiliate, "contactTelphoneAgent", this.getUserInfoList.phonenumber); + this.formData.affiliate.applicationName = null; + this.formData.affiliate.code = null; + this.formData.affiliate.applicationEmail = null; + this.formData.affiliate.applicationPhone = null; + } this.$refs["ruleForm"].clearValidate() }, cancel() { diff --git a/src/views/caseManagement/components/payDialog.vue b/src/views/caseManagement/components/payDialog.vue index c127571..52c6be4 100644 --- a/src/views/caseManagement/components/payDialog.vue +++ b/src/views/caseManagement/components/payDialog.vue @@ -12,7 +12,7 @@ {{ formPayDetail.caseSubjectAmount }} - {{ + {{ formPayDetail.feePayable }} {{ diff --git a/src/views/caseManagement/components/paymentdetailsDialog.vue b/src/views/caseManagement/components/paymentdetailsDialog.vue index a9d6cdb..2dac014 100644 --- a/src/views/caseManagement/components/paymentdetailsDialog.vue +++ b/src/views/caseManagement/components/paymentdetailsDialog.vue @@ -1,17 +1,20 @@