This commit was merged in pull request #45.
This commit is contained in:
gyj
2024-03-08 10:59:11 +08:00
19 changed files with 1020 additions and 853 deletions
+2
View File
@@ -49,7 +49,9 @@
"postcss": true "postcss": true
}, },
"optimization": { "optimization": {
"subPackages": {
"subPackages": true "subPackages": true
}
}, },
"usingComponents": true, "usingComponents": true,
"permission": {} "permission": {}
+291 -127
View File
@@ -3,14 +3,16 @@
<view class="assignrbitrators"> <view class="assignrbitrators">
<uni-forms ref="form" :modelValue="formData" :rules="rules"> <uni-forms ref="form" :modelValue="formData" :rules="rules">
<uni-section title="案件信息" type="line" padding></uni-section> <uni-section title="案件信息" type="line" padding></uni-section>
<uni-forms-item label="案件压缩包:" name="headZip" label-width="120px">
<uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileListZip"
:auto-upload="false" @select="selectZip" :limit='1' />
</uni-forms-item>
<uni-forms-item label="申请人调解请求:" name="arbitratClaims" label-width="120px" required <uni-forms-item label="申请人调解请求:" name="arbitratClaims" label-width="120px" required
:rules="[{required: true,errorMessage: '申请人调解请求不能为空'}]" :rules="[{required: true,errorMessage: '申请人调解请求不能为空'}]">
>
<uni-easyinput v-model="formData.arbitratClaims" type="textarea" placeholder="请输入申请人调解请求" /> <uni-easyinput v-model="formData.arbitratClaims" type="textarea" placeholder="请输入申请人调解请求" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="事实和理由:" name="facts" label-width="120px" required <uni-forms-item label="事实和理由:" name="facts" label-width="120px" required
:rules="[{required: true,errorMessage: '事实和理由不能为空'}]" :rules="[{required: true,errorMessage: '事实和理由不能为空'}]">
>
<uni-easyinput v-model="formData.facts" type="textarea" placeholder="请输入事实和理由" /> <uni-easyinput v-model="formData.facts" type="textarea" placeholder="请输入事实和理由" />
</uni-forms-item> </uni-forms-item>
<!-- <uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="120px" required <!-- <uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="120px" required
@@ -24,7 +26,8 @@
<uni-data-select :localdata="templateList" v-model="formData.templateId"></uni-data-select> <uni-data-select :localdata="templateList" v-model="formData.templateId"></uni-data-select>
</uni-forms-item> --> </uni-forms-item> -->
<uni-forms-item label="申请人案件证据资料上传:" name="headImage" label-width="120px"> <uni-forms-item label="申请人案件证据资料上传:" name="headImage" label-width="120px">
<uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList" :auto-upload="false" @select="select" :limit='1' /> <uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList"
:auto-upload="false" @select="select" :limit='1' />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="证据:" label-width="120px" v-if="ids"> <uni-forms-item label="证据:" label-width="120px" v-if="ids">
<view class="" v-for="item in formData.caseAttachList"> <view class="" v-for="item in formData.caseAttachList">
@@ -40,67 +43,62 @@
</uni-forms-item> </uni-forms-item>
<uni-section title="双方信息" type="line" padding></uni-section> <uni-section title="双方信息" type="line" padding></uni-section>
<uni-forms-item label="选择机构或自然人" label-width="120px" name="objectiJuris"> <uni-forms-item label="选择机构或自然人" label-width="120px" name="objectiJuris">
<uni-data-checkbox class='checkbox' <uni-data-checkbox class='checkbox' :disabled="ids?true:false" :localdata="objectiJurisArr"
:disabled="ids?true:false" v-model="formData.affiliate.organizeFlag" @change='clearValidate'></uni-data-checkbox>
:localdata="objectiJurisArr"
v-model="formData.affiliate.organizeFlag"
@change='clearValidate'></uni-data-checkbox>
</uni-forms-item> </uni-forms-item>
<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName" name="affiliate.applicationName" label-width="120px" required > <uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName"
<uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text" :placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'"/> name="affiliate.applicationName" label-width="120px" required>
<uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text"
:placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code" label-width="120px" required <uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code"
:rules="rulesappNo"> label-width="120px" required :rules="rulesappNo">
<uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text" :placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" /> <uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text"
:placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0" name="affiliate.applicationEmail" label-width="120px" required <uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0"
name="affiliate.applicationEmail" label-width="120px" required>
> <uni-easyinput v-model="formData.affiliate.applicationEmail" :disabled="disabledApplicat"
<uni-easyinput v-model="formData.affiliate.applicationEmail"
:disabled="disabledApplicat"
type="text" placeholder="请输入申请人邮箱" /> type="text" placeholder="请输入申请人邮箱" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="申请人电话:" v-if="formData.affiliate.organizeFlag==0" name="affiliate.applicationPhone" label-width="120px" required <uni-forms-item label="申请人电话:" v-if="formData.affiliate.organizeFlag==0"
name="affiliate.applicationPhone" label-width="120px" required>
> <uni-easyinput v-model="formData.affiliate.applicationPhone" :disabled="disabledApplicat"
<uni-easyinput v-model="formData.affiliate.applicationPhone" :disabled="disabledApplicat" type="text" placeholder="请输入申请人电话" /> type="text" placeholder="请输入申请人电话" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="法定代表人:" v-if="formData.affiliate.organizeFlag==1" name="affiliate.compLegalPerson" label-width="120px" required <uni-forms-item label="法定代表人:" v-if="formData.affiliate.organizeFlag==1"
name="affiliate.compLegalPerson" label-width="120px" required>
>
<uni-easyinput v-model="formData.affiliate.compLegalPerson" type="text" placeholder="请输入法定代表人" /> <uni-easyinput v-model="formData.affiliate.compLegalPerson" type="text" placeholder="请输入法定代表人" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="申请人住所:" name="affiliate.applicantHome" label-width="120px" required <uni-forms-item label="申请人住所:" name="affiliate.applicantHome" label-width="120px" required
:rules="[{required: true,errorMessage: '申请人住所不能为空'}]" :rules="[{required: true,errorMessage: '申请人住所不能为空'}]">
>
<uni-easyinput v-model="formData.affiliate.applicantHome" type="text" placeholder="请输入申请人住所" /> <uni-easyinput v-model="formData.affiliate.applicantHome" type="text" placeholder="请输入申请人住所" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="申请人联系地址:" name="affiliate.applicantAddress" label-width="120px" required <uni-forms-item label="申请人联系地址:" name="affiliate.applicantAddress" label-width="120px" required
:rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]" :rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]">
>
<uni-easyinput v-model="formData.affiliate.applicantAddress" type="text" placeholder="请输入申请人联系地址" /> <uni-easyinput v-model="formData.affiliate.applicantAddress" type="text" placeholder="请输入申请人联系地址" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="代理人联系电话:" label-width="120px"> <uni-forms-item label="代理人联系电话:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text" placeholder="请输入代理人联系电话" /> <uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text"
placeholder="请输入代理人联系电话" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="代理人姓名:" label-width="120px"> <uni-forms-item label="代理人姓名:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.nameAgent" :disabled="disabledVal" type="text" placeholder="请输入委托代理人姓名" /> <uni-easyinput v-model="formData.affiliate.nameAgent" :disabled="disabledVal" type="text"
placeholder="请输入委托代理人姓名" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="代理人邮箱:" label-width="120px"> <uni-forms-item label="代理人邮箱:" label-width="120px">
<uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text" placeholder="请输入代理人邮箱" /> <uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text"
placeholder="请输入代理人邮箱" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="被申请人姓名:" name="affiliate.respondentName" label-width="120px" required <uni-forms-item label="被申请人姓名:" name="affiliate.respondentName" label-width="120px" required
:rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]" :rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]">
>
<uni-easyinput v-model="formData.affiliate.respondentName" type="text" placeholder="请输入被申请人姓名" /> <uni-easyinput v-model="formData.affiliate.respondentName" type="text" placeholder="请输入被申请人姓名" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="被申请人联系电话:" name="affiliate.respondentPhone" label-width="120px" required <uni-forms-item label="被申请人联系电话:" name="affiliate.respondentPhone" label-width="120px" required :rules="[
:rules="[
{required: true,errorMessage: '被申请人联系电话不能为空'}, {required: true,errorMessage: '被申请人联系电话不能为空'},
{pattern:'^[1][3,4,5,6,7,8,9][0-9]{9}$',errorMessage:'被申请人联系电话格式不正确'} {pattern:'^[1][3,4,5,6,7,8,9][0-9]{9}$',errorMessage:'被申请人联系电话格式不正确'}
]" ]">
>
<uni-easyinput v-model="formData.affiliate.respondentPhone" type="text" placeholder="请输入被申请人联系电话" /> <uni-easyinput v-model="formData.affiliate.respondentPhone" type="text" placeholder="请输入被申请人联系电话" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="被申请人身份证号:" name="affiliate.respondentIdentityNum" label-width="120px" required <uni-forms-item label="被申请人身份证号:" name="affiliate.respondentIdentityNum" label-width="120px" required
@@ -108,40 +106,33 @@
{required: true,errorMessage: '被申请人身份证号不能为空'}, {required: true,errorMessage: '被申请人身份证号不能为空'},
{pattern:'^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$',errorMessage:'被申请人身份证格式错误'} {pattern:'^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$',errorMessage:'被申请人身份证格式错误'}
]" ]">
> <uni-easyinput v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur" type="text"
<uni-easyinput v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur" type="text" placeholder="请输入被申请人身份证号" /> placeholder="请输入被申请人身份证号" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="被申请人性别" label-width="120px" required> <uni-forms-item label="被申请人性别" label-width="120px" required>
<uni-data-checkbox class='checkbox' <uni-data-checkbox class='checkbox' :disabled='true' v-model="formData.affiliate.respondentSex"
:disabled='true'
v-model="formData.affiliate.respondentSex"
:localdata="respondentSexy"></uni-data-checkbox> :localdata="respondentSexy"></uni-data-checkbox>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="被申请人出生年月日" label-width="120px"> <uni-forms-item label="被申请人出生年月日" label-width="120px">
<uni-datetime-picker v-model="formData.affiliate.respondentBirth" :disabled='true' type="date" :clear-icon="false" /> <uni-datetime-picker v-model="formData.affiliate.respondentBirth" :disabled='true' type="date"
:clear-icon="false" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="被申请人住所:" name="affiliate.respondentHome" label-width="120px" required <uni-forms-item label="被申请人住所:" name="affiliate.respondentHome" label-width="120px" required
:rules="[{required: true,errorMessage: '被申请人住所不能为空'}]" :rules="[{required: true,errorMessage: '被申请人住所不能为空'}]">
>
<uni-easyinput v-model="formData.affiliate.respondentHome" type="text" placeholder="请输入被申请人住所" /> <uni-easyinput v-model="formData.affiliate.respondentHome" type="text" placeholder="请输入被申请人住所" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="被申请人邮箱:" name="affiliate.respondentEmail" label-width="120px" required <uni-forms-item label="被申请人邮箱:" name="affiliate.respondentEmail" label-width="120px" required :rules="[
:rules="[
{required: true,errorMessage: '被申请人邮箱不能为空'}, {required: true,errorMessage: '被申请人邮箱不能为空'},
{pattern:'^\\S+?@\\S+?\\.\\S+?$',errorMessage:'邮箱格式不正确'} {pattern:'^\\S+?@\\S+?\\.\\S+?$',errorMessage:'邮箱格式不正确'}
]" ]">
>
<uni-easyinput v-model="formData.affiliate.respondentEmail" type="text" placeholder="请输入被申请人邮箱" /> <uni-easyinput v-model="formData.affiliate.respondentEmail" type="text" placeholder="请输入被申请人邮箱" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
<view class="determine" style="text-align: center;"> <view class="determine" style="text-align: center;">
<button class="mini-btn" <button class="mini-btn" type="primary" size="mini" @tap="submitReasont">确定</button>
type="primary" size="mini" <button style="margin-left:30rpx;" class="mini-btn" type="default" size="mini"
@tap="submitReasont">确定</button>
<button style="margin-left:30rpx;" class="mini-btn"
type="default" size="mini"
@tap="cencalBut">取消</button> @tap="cencalBut">取消</button>
</view> </view>
</view> </view>
@@ -149,7 +140,14 @@
</template> </template>
<script> <script>
import {getTemplate,getInfoByIdCard,caseApplicationInsert,updateComfire,caseApplicationSelectById,getUserInfo} from '../../../api/handlecase/index.js' import {
getTemplate,
getInfoByIdCard,
caseApplicationInsert,
updateComfire,
caseApplicationSelectById,
getUserInfo
} from '../../../api/handlecase/index.js'
import { import {
getToken getToken
} from '@/utils/auth' } from '@/utils/auth'
@@ -157,19 +155,21 @@
export default { export default {
data() { data() {
return { return {
baseUrl : config.baseUrlTJ, baseUrl: config.baseUrlTJ,
formData:{ formZipData: {},
affiliate:{ formData: {
affiliate: {
organizeFlag: 0, organizeFlag: 0,
respondentSex: 0, respondentSex: 0,
}, },
columnValueList: [], columnValueList: [],
caseAttachList: [], caseAttachList: [],
}, },
getUserInfoList:{}, getUserInfoList: {},
ids:null, ids: null,
tempFilePaths: null, tempFilePaths: null,
templateList:[], tempFilePathsZip: null,
templateList: [],
objectiJurisArr: [{ objectiJurisArr: [{
text: '自然人', text: '自然人',
value: 0 value: 0
@@ -177,85 +177,81 @@
text: '机构', text: '机构',
value: 1 value: 1
}], }],
respondentSexy: [ respondentSexy: [{
{
text: '女', text: '女',
value: 1 value: 1
}, { }, {
text: '男', text: '男',
value: 0 value: 0
} }],
], disabledVal: false,
disabledVal:false, disabledApplicat: false,
disabledApplicat:false,
fileList: {}, fileList: {},
rules:{}, fileListZip: {},
rulesappName: [ rules: {},
{ rulesappName: [{
required: true, required: true,
errorMessage: '输入信息不能为空', errorMessage: '输入信息不能为空',
},{ }, {
validateFunction: (rule, value, data, callback) => { validateFunction: (rule, value, data, callback) => {
//判断手机号格式时候正确 //判断手机号格式时候正确
if (value.length<1) { if (value.length < 1) {
if(this.formData.affiliate.organizeFlag == 0){ if (this.formData.affiliate.organizeFlag == 0) {
callback('请输入申请人姓名') callback('请输入申请人姓名')
}else{ } else {
callback('请输入机构名称') callback('请输入机构名称')
} }
} }
return true return true
} }
} }],
], rulesappNo: [{
rulesappNo: [
{
required: true, required: true,
errorMessage:'输入信息不能为空', errorMessage: '输入信息不能为空',
},{ }, {
validateFunction: (rule, value, data, callback) => { validateFunction: (rule, value, data, callback) => {
//判断手机号格 //判断手机号格
if(this.formData.affiliate.organizeFlag == 0){ if (this.formData.affiliate.organizeFlag == 0) {
let pNoReg = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/ let pNoReg =
if(!pNoReg.test(value)){ /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
if (!pNoReg.test(value)) {
callback('请输入正确的身份证号码') callback('请输入正确的身份证号码')
} }
}else{ } else {
if(!value){ if (!value) {
callback('请输入正确的机构信息') callback('请输入正确的机构信息')
} }
} }
return true return true
} }
} }]
]
} }
}, },
methods:{ methods: {
submitReasont(){ submitReasont() {
this.$refs.form.validate().then(res=>{ this.$refs.form.validate().then(res => {
console.log(this.ids) console.log(this.ids)
if(this.ids){ if (this.ids) {
this.modifyData(this.formData) this.modifyData(this.formData)
}else{ } else {
this.insertFn(this.formData) this.insertFn(this.formData)
} }
}).catch(err =>{ }).catch(err => {
}) })
}, },
// 获取新增默认值 // 获取新增默认值
getUserInfoNumber(){ getUserInfoNumber() {
getUserInfo().then(res =>{ getUserInfo().then(res => {
this.getUserInfoList = res.data this.getUserInfoList = res.data
if(this.formData.affiliate.organizeFlag == 0){ if (this.formData.affiliate.organizeFlag == 0) {
this.$set(this.formData.affiliate, 'applicationName', res.data.nickName) this.$set(this.formData.affiliate, 'applicationName', res.data.nickName)
this.$set(this.formData.affiliate, 'code', res.data.idCard) this.$set(this.formData.affiliate, 'code', res.data.idCard)
this.$set(this.formData.affiliate, 'applicationEmail', res.data.email) this.$set(this.formData.affiliate, 'applicationEmail', res.data.email)
@@ -263,7 +259,7 @@
// this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName) // this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
this.disabledVal = false this.disabledVal = false
this.disabledApplicat = true this.disabledApplicat = true
}else if(this.formData.affiliate.organizeFlag == 1){ } else if (this.formData.affiliate.organizeFlag == 1) {
console.log(this.formData.affiliate.organizeFlag) console.log(this.formData.affiliate.organizeFlag)
this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName) this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
this.$set(this.formData.affiliate, 'agentEmail', res.data.email) this.$set(this.formData.affiliate, 'agentEmail', res.data.email)
@@ -274,25 +270,88 @@
}) })
}, },
clearValidate(val){ clearValidate(val) {
if(this.formData.affiliate.organizeFlag == 0){ if (this.formData.affiliate.organizeFlag == 0) {
this.$set(this.formData.affiliate, 'applicationName', this.getUserInfoList.nickName) this.$set(this.formData.affiliate, 'applicationName', this.getUserInfoList.nickName)
this.$set(this.formData.affiliate, 'code', this.getUserInfoList.idCard) this.$set(this.formData.affiliate, 'code', this.getUserInfoList.idCard)
this.$set(this.formData.affiliate, 'applicationEmail', this.getUserInfoList.email) this.$set(this.formData.affiliate, 'applicationEmail', this.getUserInfoList.email)
this.$set(this.formData.affiliate, 'applicationPhone', this.getUserInfoList.phonenumber) this.$set(this.formData.affiliate, 'applicationPhone', this.getUserInfoList.phonenumber)
if (this.formZipData.affiliate) {
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
.applicantAddress);
this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData
.affiliate.contactTelphoneAgent);
this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate
.nameAgent);
this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate
.agentEmail);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
.respondentEmail);
this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
.compLegalPerson);
} else {
this.$set(this.formData.affiliate, 'nameAgent', null) this.$set(this.formData.affiliate, 'nameAgent', null)
this.$set(this.formData.affiliate, 'agentEmail', null) this.$set(this.formData.affiliate, 'agentEmail', null)
this.$set(this.formData.affiliate, 'contactTelphoneAgent', null) this.$set(this.formData.affiliate, 'contactTelphoneAgent', null)
}
this.disabledVal = false this.disabledVal = false
this.disabledApplicat = true this.disabledApplicat = true
}else if(this.formData.affiliate.organizeFlag == 1){ } else if (this.formData.affiliate.organizeFlag == 1) {
this.$set(this.formData.affiliate, 'nameAgent', this.getUserInfoList.nickName) this.$set(this.formData.affiliate, 'nameAgent', this.getUserInfoList.nickName)
this.$set(this.formData.affiliate, 'agentEmail', this.getUserInfoList.email) this.$set(this.formData.affiliate, 'agentEmail', this.getUserInfoList.email)
this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.getUserInfoList.phonenumber) this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.getUserInfoList.phonenumber)
if (this.formZipData.affiliate) {
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
this.$set(this.formData.affiliate, 'applicationName', this.formZipData.affiliate
.applicationName);
this.$set(this.formData.affiliate, 'code', this.formZipData.affiliate.code);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
.applicantAddress);
this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
.compLegalPerson);
this.$set(this.formData.affiliate, 'applicationEmail', this.formZipData.affiliate
.applicationEmail);
this.$set(this.formData.affiliate, 'applicationPhone', this.formZipData.affiliate
.applicationPhone);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
.respondentEmail);
} else {
this.$set(this.formData.affiliate, 'applicationName', null) this.$set(this.formData.affiliate, 'applicationName', null)
this.$set(this.formData.affiliate, 'code', null) this.$set(this.formData.affiliate, 'code', null)
this.$set(this.formData.affiliate, 'applicationEmail', null) this.$set(this.formData.affiliate, 'applicationEmail', null)
this.$set(this.formData.affiliate, 'applicationPhone', null) this.$set(this.formData.affiliate, 'applicationPhone', null)
}
this.disabledVal = true this.disabledVal = true
this.disabledApplicat = false this.disabledApplicat = false
} }
@@ -304,25 +363,28 @@
getTemplateFn(data) { getTemplateFn(data) {
getTemplate(data).then((res) => { getTemplate(data).then((res) => {
//this.templateList = res.rows; //this.templateList = res.rows;
res.rows.forEach(item=>{ res.rows.forEach(item => {
this.templateList.push({value:item.id,text:item.temName}) this.templateList.push({
value: item.id,
text: item.temName
})
}) })
}); });
}, },
/** 根据案件id获取对应信息 */ /** 根据案件id获取对应信息 */
caseApplicationSelectByIdFn(data) { caseApplicationSelectByIdFn(data) {
caseApplicationSelectById(data).then(res=>{ caseApplicationSelectById(data).then(res => {
res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex) res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex)
this.formData = res.data this.formData = res.data
console.log( this.formData) console.log(this.formData)
}) })
}, },
// 被申请人获取性别出生年月 // 被申请人获取性别出生年月
handleBlur(){ handleBlur() {
let idCards = { let idCards = {
idCard: this.formData.affiliate.respondentIdentityNum, idCard: this.formData.affiliate.respondentIdentityNum,
}; };
getInfoByIdCard(idCards).then(res=>{ getInfoByIdCard(idCards).then(res => {
this.formData.affiliate.respondentSex = Number(res.respondentSex); this.formData.affiliate.respondentSex = Number(res.respondentSex);
this.formData.affiliate.respondentBirth = res.respondentBirth; this.formData.affiliate.respondentBirth = res.respondentBirth;
}) })
@@ -336,11 +398,8 @@
duration: 1000 duration: 1000
}) })
uni.navigateTo({ uni.navigateTo({
url:'../index' url: '../index'
}) })
// uni.navigateBack({
// delta:1
// })
// this.$router.go(-1) // this.$router.go(-1)
}); });
}, },
@@ -352,14 +411,113 @@
icon: 'none', icon: 'none',
duration: 1000 duration: 1000
}) })
// uni.navigateTo({ uni.navigateTo({
// url:'../index' url: '../index'
// })
uni.navigateBack({
delta:1
}) })
}); });
}, },
// 压缩包上传
selectZip(e) {
if (e.tempFiles[0].extname != 'zip') {
uni.showToast({
title: '上传类型为zip',
icon: 'none',
duration: 1000
})
return
}
// loading
this.tempFilePathsZip = e.tempFilePaths;
uni.showLoading({
title: '上传中'
});
uni.uploadFile({
url: config.baseUrlTJ + "/caseApplication/userIdentify",
filePath: this.tempFilePathsZip[0],
header: {
Authorization: getToken() || '',
},
name: 'file',
success: (res) => {
let result = JSON.parse(res.data)
uni.showToast({
title: '上传成功',
icon: 'none',
duration: 1000
})
this.formZipData = result.data;
if (this.formData.affiliate.organizeFlag == 0) {
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
.applicantAddress);
this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData
.affiliate.contactTelphoneAgent);
this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate
.nameAgent);
this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate
.agentEmail);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
.respondentEmail);
this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
.compLegalPerson);
} else if (this.formData.affiliate.organizeFlag == 1) {
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
this.$set(this.formData.affiliate, 'applicationName', this.formZipData.affiliate
.applicationName);
this.$set(this.formData.affiliate, 'code', this.formZipData.affiliate.code);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
.applicantAddress);
this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
.compLegalPerson);
this.$set(this.formData.affiliate, 'applicationEmail', this.formZipData.affiliate
.applicationEmail);
this.$set(this.formData.affiliate, 'applicationPhone', this.formZipData.affiliate
.applicationPhone);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
.respondentEmail);
}
uni.hideLoading();
},
fail: (err) => {
uni.showToast({
title: '上传失败',
icon: 'none',
duration: 1000
})
uni.hideLoading()
}
})
},
// 文件上传 // 文件上传
select(e) { select(e) {
this.tempFilePaths = e.tempFilePaths; this.tempFilePaths = e.tempFilePaths;
@@ -402,7 +560,7 @@
} }
}) })
}, },
cencalBut(){ cencalBut() {
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}) })
@@ -410,11 +568,17 @@
}, },
onLoad(data) { onLoad(data) {
this.ids = data.id this.ids = data.id
if(this.ids){ if (this.ids) {
this.caseApplicationSelectByIdFn({id:data.id}) this.caseApplicationSelectByIdFn({
uni.setNavigationBarTitle({title:"案件修改"}) id: data.id
}else{ })
uni.setNavigationBarTitle({title:"案件新增"}) uni.setNavigationBarTitle({
title: "案件修改"
})
} else {
uni.setNavigationBarTitle({
title: "案件新增"
})
} }
this.getTemplateFn() this.getTemplateFn()
this.getUserInfoNumber() this.getUserInfoNumber()
@@ -423,14 +587,14 @@
this.$refs.form.setRules(this.rules) this.$refs.form.setRules(this.rules)
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
page { page {
background-color: #ffffff; background-color: #ffffff;
} }
.assignrbitrators{
.assignrbitrators {
margin: 30rpx; margin: 30rpx;
} }
</style> </style>
@@ -176,11 +176,11 @@
:key="item.mediatorId"> :key="item.mediatorId">
<view> <view>
<checkbox color="blue" style="transform:scale(0.7)" <checkbox color="blue" style="transform:scale(0.7)"
:value="item.mediatorId + ''" /> :value="item.mediatorId + ''" :checked="item.echoFlag" />
</view> </view>
<view class="main"> <view class="main">
<view class=""> <view class="">
仲裁员姓名:{{item.mediatorName}} 调解员:{{item.mediatorName}}
</view> </view>
<view class=""> <view class="">
专业:{{item.specialty || '暂无信息'}} 专业:{{item.specialty || '暂无信息'}}
@@ -239,7 +239,7 @@
</view> </view>
</view> </view>
<view class="" style="margin-top: 40rpx;"> <view class="" style="margin-top: 40rpx;">
<view>仲裁申请书</view> <view>调解申请书</view>
<view v-for="item in formData.caseAttachList"> <view v-for="item in formData.caseAttachList">
<uni-link v-if="item.annexType==3" :href="item.annexPath" color="#007BFF" <uni-link v-if="item.annexType==3" :href="item.annexPath" color="#007BFF"
:text="item.annexName"></uni-link> :text="item.annexName"></uni-link>
@@ -511,8 +511,8 @@
}) })
}, },
// 获取仲裁员列表 // 获取仲裁员列表
getArbitratorList() { getArbitratorList(val) {
arbitratorList().then(res => { arbitratorList({caseAppliId: val}).then(res => {
this.items = res.data; this.items = res.data;
}) })
}, },
@@ -593,7 +593,7 @@
this.sysType = uni.getStorageSync('sysType') this.sysType = uni.getStorageSync('sysType')
this.getData(data.id); this.getData(data.id);
this.subnitForm.caseId = Number(data.id); this.subnitForm.caseId = Number(data.id);
this.getArbitratorList() this.getArbitratorList(data.id)
} }
} }
+14 -12
View File
@@ -6,7 +6,7 @@
<text class="title">仲裁平台</text> <text class="title">仲裁平台</text>
</view> </view>
<view class="logo-content align-center justify-center flex" v-if="logSyste==2"> <view class="logo-content align-center justify-center flex" v-if="logSyste==2">
<image style="width: 100rpx;height: 100rpx;" src="../static/refree.png" mode="widthFix"> <image style="width: 100rpx;height: 100rpx;" src="https://txroom.xayunmei.com/refree.png" mode="widthFix">
</image> </image>
<text class="title">调解平台</text> <text class="title">调解平台</text>
</view> </view>
@@ -28,7 +28,7 @@
</view> </view>
<view class="ageen-read"> <view class="ageen-read">
<checkbox-group @change="handleAgreeChange"> <checkbox-group @change="handleAgreeChange">
<checkbox value="agree"/> <checkbox value="agree" />
<text class="agreen-text">阅读并同意</text> <text class="agreen-text">阅读并同意</text>
<text @click="equityNotice" class="text-blue">《权益告知书》</text> <text @click="equityNotice" class="text-blue">《权益告知书》</text>
</checkbox-group> </checkbox-group>
@@ -65,7 +65,7 @@
return { return {
codeUrl: "", codeUrl: "",
captchaEnabled: true, captchaEnabled: true,
logSyste:0, logSyste: 0,
// 用户注册开关 // 用户注册开关
register: true, register: true,
globalConfig: getApp().globalData.config, globalConfig: getApp().globalData.config,
@@ -76,14 +76,14 @@
uuid: '', uuid: '',
}, },
isSelectAgree:[] isSelectAgree: []
} }
}, },
created() { created() {
this.getCode() this.getCode()
}, },
methods: { methods: {
handleAgreeChange(e){ handleAgreeChange(e) {
this.isSelectAgree = e.detail.value this.isSelectAgree = e.detail.value
}, },
// 用户注册 // 用户注册
@@ -91,7 +91,7 @@
this.$tab.redirectTo(`/pages/realName`) this.$tab.redirectTo(`/pages/realName`)
}, },
// 权益告知书 // 权益告知书
equityNotice(){ equityNotice() {
//this.$tab.redirectTo(`/pages/personalInfoCollection`) //this.$tab.redirectTo(`/pages/personalInfoCollection`)
this.$tab.navigateTo(`/pages/personalInfoCollection?title=权益告知书`) this.$tab.navigateTo(`/pages/personalInfoCollection?title=权益告知书`)
}, },
@@ -120,7 +120,7 @@
const sysType = uni.getStorageSync('sysType') const sysType = uni.getStorageSync('sysType')
if (this.loginForm.username === "") { if (this.loginForm.username === "") {
this.$modal.msgError("请输入您的账号") this.$modal.msgError("请输入您的账号")
}else if(this.isSelectAgree.length < 1){ } else if (this.isSelectAgree.length < 1) {
this.$modal.msgError("请先阅读个人信息收集条款并同意") this.$modal.msgError("请先阅读个人信息收集条款并同意")
} else if (this.loginForm.password === "") { } else if (this.loginForm.password === "") {
this.$modal.msgError("请输入您的密码") this.$modal.msgError("请输入您的密码")
@@ -149,7 +149,7 @@
this.$tab.reLaunch('/pages/work/index') this.$tab.reLaunch('/pages/work/index')
}) })
}, },
onLoad(options){ onLoad(options) {
let vals = decodeURIComponent(options.values); let vals = decodeURIComponent(options.values);
this.logSyste = vals this.logSyste = vals
} }
@@ -234,10 +234,12 @@
width: 200rpx; width: 200rpx;
} }
} }
.ageen-read{
margin-top:65rpx; .ageen-read {
.agreen-text{ margin-top: 65rpx;
padding-left:20rpx;
.agreen-text {
padding-left: 20rpx;
color: #999; color: #999;
} }
} }
+10 -11
View File
@@ -11,7 +11,8 @@
</swiper> </swiper>
</uni-swiper-dot> </uni-swiper-dot>
<!-- 调解轮播图 --> <!-- 调解轮播图 -->
<uni-swiper-dot v-if="sysType==2" class="uni-swiper-dot-box" :info="refreesVal" :current="current" field="content"> <uni-swiper-dot v-if="sysType==2" class="uni-swiper-dot-box" :info="refreesVal" :current="current"
field="content">
<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper"> <swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
<swiper-item v-for="(item, index) in refreesVal" :key="index"> <swiper-item v-for="(item, index) in refreesVal" :key="index">
<view class="swiper-item" @click="clickBannerItem(item)"> <view class="swiper-item" @click="clickBannerItem(item)">
@@ -124,18 +125,16 @@
image: 'https://img.tukuppt.com/bg_grid/00/81/07/DGEl4suqeV.jpg!/fh/350' image: 'https://img.tukuppt.com/bg_grid/00/81/07/DGEl4suqeV.jpg!/fh/350'
} }
], ],
refreesVal :[ refreesVal: [{
{ image: 'https://txroom.xayunmei.com/tiaojie1.png'
image:'../../static/tiaojie1.png' }, {
},{ image: 'https://txroom.xayunmei.com/tiaojie2.png'
image:'../../static/tiaojie2.png' }, {
},{ image: 'https://txroom.xayunmei.com/tiaojie4.png'
image:'../../static/tiaojie4.png' }],
}
],
certificationStatus: "", certificationStatus: "",
eidToken: "", eidToken: "",
sysType:null sysType: null
} }
}, },
methods: { methods: {
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 719 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 483 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long