From f07b70558d5b84f1070470229037629bc1ace006 Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期六, 22 六月 2024 14:39:30 +0800 Subject: [PATCH] 接口对接 --- policy/policyApply/policyApply.vue | 41 +++++++++++++++++++++++++++++++++++++---- 1 files changed, 37 insertions(+), 4 deletions(-) diff --git a/policy/policyApply/policyApply.vue b/policy/policyApply/policyApply.vue index 49ff902..2144073 100644 --- a/policy/policyApply/policyApply.vue +++ b/policy/policyApply/policyApply.vue @@ -41,7 +41,7 @@ 鎵ф硶鍐呭 </view> <view class="back"> - <u--textarea :height="120" v-model="form.regionReason" placeholder="璇疯緭鍏�" count maxlength="500"></u--textarea> + <u--textarea :height="120" v-model="form.enforceContent" placeholder="璇疯緭鍏�" count maxlength="500"></u--textarea> </view> </view> </view> @@ -166,9 +166,10 @@ applyDeptName: '', enforceType: 1, isNoticeCompany: 0, - regionReason: '', + regionReason: 0, planTimeStr: '', - peers: [] + peers: [], + orderStatus: 1 }, show: false, columns: [], @@ -227,7 +228,39 @@ } return options; }, + authFile() { + if(!this.form.enforceReason){ + return '璇峰~鍐欎富棰�' + } + if(!this.form.companyName){ + return '璇峰~鍐欑‘璁ゆ墽娉曞璞�' + } + if(!this.form.companyId) { + return '璇风偣鍑绘悳绱㈢‘璁ゆ墽娉曞璞�' + } + if(!this.form.planTimeStr) { + return '璇峰~鍐欐墽娉曟椂闂�' + } + if(!this.form.enforceTypeName){ + return '璇烽�夋嫨鎵ф硶绫诲瀷' + } + if(!this.form.regionReason) { + return '璇峰~鍐欐墽娉曞唴瀹�' + } + if(!this.form.peers.length){ + return '璇锋坊鍔犲悓琛屼汉' + } + return '' + }, submitApply(){ + const res = this.authFile() + if(res){ + uni.showToast({ + title: res, + icon: 'none' + }) + return + } orderAdd(this.form).then(val => { if(val.data.code == 200) { uni.showToast({ @@ -303,7 +336,7 @@ peerDeptName: item.dept.deptName, peerId: item.userId, peerPhone: item.phonenumber, - peerType: 3, + peerType: 2, peerUser: item.nickName }) } -- Gitblit v1.9.1