From a1bbf87a3bee300226d4d13416961dde9e12cdb6 Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期六, 22 六月 2024 19:59:37 +0800 Subject: [PATCH] 登录页面修改 --- policy/policyApply/policyApply.vue | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 41 insertions(+), 4 deletions(-) diff --git a/policy/policyApply/policyApply.vue b/policy/policyApply/policyApply.vue index 49ff902..399b8f0 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,11 @@ applyDeptName: '', enforceType: 1, isNoticeCompany: 0, - regionReason: '', + // regionReason: 0, planTimeStr: '', - peers: [] + peers: [], + orderStatus: 1, + enforceContent: "" }, show: false, columns: [], @@ -190,6 +192,9 @@ this.getInfo() this.getDicts() this.enforceList() + }, + onShow() { + }, methods: { enforceList() { @@ -227,7 +232,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.enforceContent) { + 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 +340,7 @@ peerDeptName: item.dept.deptName, peerId: item.userId, peerPhone: item.phonenumber, - peerType: 3, + peerType: 2, peerUser: item.nickName }) } -- Gitblit v1.9.1