上传返回页面问题
This commit is contained in:
+2
-1
@@ -51,7 +51,8 @@
|
|||||||
"optimization": {
|
"optimization": {
|
||||||
"subPackages": true
|
"subPackages": true
|
||||||
},
|
},
|
||||||
"usingComponents" : true
|
"usingComponents": true,
|
||||||
|
"permission": {}
|
||||||
},
|
},
|
||||||
"vueVersion": "2",
|
"vueVersion": "2",
|
||||||
"h5": {
|
"h5": {
|
||||||
|
|||||||
@@ -1,35 +1,44 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="assignrbitrators">
|
<view class="assignrbitrators">
|
||||||
<view class="from">
|
<view class="from">
|
||||||
<uni-forms ref="form" :modelValue="formData" :rules="rules">
|
<uni-forms ref="form" :modelValue="subnitForm" :rules="rules">
|
||||||
<view class="title">案件详情</view>
|
<view class="title">案件详情</view>
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<uni-forms-item label="案件编号:" name="caseNum" label-width="120px" required>
|
<uni-forms-item label="案件编号:" name="caseNum" label-width="120px" required>
|
||||||
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.caseNum" placeholder="" />
|
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.caseNum"
|
||||||
|
placeholder="" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="申请人:" name="applicantName" label-width="120px" required>
|
<uni-forms-item label="申请人:" name="applicantName" label-width="120px" required>
|
||||||
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.applicantName" placeholder="" />
|
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.applicantName"
|
||||||
|
placeholder="" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="被申请人:" name="respondentName" label-width="120px" required>
|
<uni-forms-item label="被申请人:" name="respondentName" label-width="120px" required>
|
||||||
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.respondentName" placeholder="" />
|
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.respondentName"
|
||||||
|
placeholder="" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="借款开始日期:" name="loanStartDate" label-width="120px" required>
|
<uni-forms-item label="借款开始日期:" name="loanStartDate" label-width="120px" required>
|
||||||
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.loanStartDate" placeholder="" />
|
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.loanStartDate"
|
||||||
|
placeholder="" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="借款结束日期:" name="loanEndDate" label-width="120px" required>
|
<uni-forms-item label="借款结束日期:" name="loanEndDate" label-width="120px" required>
|
||||||
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.loanEndDate" placeholder="" />
|
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.loanEndDate"
|
||||||
|
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>
|
||||||
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.caseSubjectAmount" placeholder="" />
|
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.caseSubjectAmount"
|
||||||
|
placeholder="" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="申请人主张欠本金:" name="claimPrinciOwed" label-width="120px" required>
|
<uni-forms-item label="申请人主张欠本金:" name="claimPrinciOwed" label-width="120px" required>
|
||||||
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.claimPrinciOwed" placeholder="" />
|
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.claimPrinciOwed"
|
||||||
|
placeholder="" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="申请人主张欠利息:" name="claimInterestOwed" label-width="120px" required>
|
<uni-forms-item label="申请人主张欠利息:" name="claimInterestOwed" label-width="120px" required>
|
||||||
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.claimInterestOwed" placeholder="" />
|
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.claimInterestOwed"
|
||||||
|
placeholder="" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="申请人主张违约金:" name="claimLiquidDamag" label-width="120px" required>
|
<uni-forms-item label="申请人主张违约金:" name="claimLiquidDamag" label-width="120px" required>
|
||||||
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.claimLiquidDamag" placeholder="" />
|
<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.claimLiquidDamag"
|
||||||
|
placeholder="" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="是否有异议需要举证" label-width="120px" name="objectionAddEviden" required>
|
<uni-forms-item label="是否有异议需要举证" label-width="120px" name="objectionAddEviden" required>
|
||||||
<uni-data-checkbox class='checkbox' v-model="subnitForm.objectionAddEviden"
|
<uni-data-checkbox class='checkbox' v-model="subnitForm.objectionAddEviden"
|
||||||
@@ -43,7 +52,7 @@
|
|||||||
<uni-data-checkbox class='checkbox' v-model="subnitForm.pendingAppointArbotrar"
|
<uni-data-checkbox class='checkbox' v-model="subnitForm.pendingAppointArbotrar"
|
||||||
:localdata="uploadEvidence" @change='maintenancetypeChange'></uni-data-checkbox>
|
:localdata="uploadEvidence" @change='maintenancetypeChange'></uni-data-checkbox>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="上传证据" name="headImage" label-width="120px" required>
|
<uni-forms-item label="上传证据" name="headImage" label-width="120px" v-if="caseFlag">
|
||||||
<uni-file-picker ref="files" :auto-upload="false" @select="select" :limit='1' />
|
<uni-file-picker ref="files" :auto-upload="false" @select="select" :limit='1' />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
</view>
|
</view>
|
||||||
@@ -78,9 +87,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {respondentDetail,arbitratorList,evidenceCrossexami} from '../../../api/handlecase/index.js'
|
import {
|
||||||
import { uploadImage } from '../../../api/upload.js'
|
respondentDetail,
|
||||||
import { getToken } from '@/utils/auth'
|
arbitratorList,
|
||||||
|
evidenceCrossexami
|
||||||
|
} from '../../../api/handlecase/index.js'
|
||||||
|
import {
|
||||||
|
uploadImage
|
||||||
|
} from '../../../api/upload.js'
|
||||||
|
import {
|
||||||
|
getToken
|
||||||
|
} from '@/utils/auth'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
const app = getApp()
|
const app = getApp()
|
||||||
export default {
|
export default {
|
||||||
@@ -89,8 +106,31 @@
|
|||||||
formData: {},
|
formData: {},
|
||||||
subnitForm: {},
|
subnitForm: {},
|
||||||
selectFlag: false,
|
selectFlag: false,
|
||||||
|
caseFlag: false,
|
||||||
tempFilePaths: null,
|
tempFilePaths: null,
|
||||||
rules: {},
|
rules: {
|
||||||
|
// 是否有异议需要举证
|
||||||
|
objectionAddEviden: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请选择'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
// 是否需要开庭审理
|
||||||
|
openCourtHear: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请选择'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
// 是否指派仲裁员
|
||||||
|
pendingAppointArbotrar: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请选择'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
},
|
||||||
maintenancetypeArr: [{
|
maintenancetypeArr: [{
|
||||||
text: '是',
|
text: '是',
|
||||||
value: 1
|
value: 1
|
||||||
@@ -117,7 +157,14 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
arbitrationmethod() {},
|
arbitrationmethod() {},
|
||||||
uploadEvidenceChange(){},
|
uploadEvidenceChange(val) {
|
||||||
|
let flag = val.detail.value;
|
||||||
|
if (flag == 1) {
|
||||||
|
this.caseFlag = true;
|
||||||
|
} else if (flag == 0) {
|
||||||
|
this.caseFlag = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
maintenancetypeChange(val) {
|
maintenancetypeChange(val) {
|
||||||
let flag = val.detail.value;
|
let flag = val.detail.value;
|
||||||
if (flag == 1) {
|
if (flag == 1) {
|
||||||
@@ -144,7 +191,8 @@
|
|||||||
respondentDetail(parms).then(res => {
|
respondentDetail(parms).then(res => {
|
||||||
this.formData = res.data
|
this.formData = res.data
|
||||||
this.formData.loanEndDate = moment(this.formData.loanEndDate).format('YYYY-MM-DD HH:mm:ss');
|
this.formData.loanEndDate = moment(this.formData.loanEndDate).format('YYYY-MM-DD HH:mm:ss');
|
||||||
this.formData.loanStartDate = moment(this.formData.loanStartDate).format('YYYY-MM-DD HH:mm:ss');
|
this.formData.loanStartDate = moment(this.formData.loanStartDate).format(
|
||||||
|
'YYYY-MM-DD HH:mm:ss');
|
||||||
this.formData.id = this.formData.id + ''
|
this.formData.id = this.formData.id + ''
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -162,21 +210,20 @@
|
|||||||
Authorization: getToken() || '',
|
Authorization: getToken() || '',
|
||||||
},
|
},
|
||||||
formData: {
|
formData: {
|
||||||
annexType:2,
|
annexType: 6,
|
||||||
id: this.formData.id
|
id: this.formData.id
|
||||||
},
|
},
|
||||||
name: 'file',
|
name: 'file',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
let { data } = res
|
let {
|
||||||
|
data
|
||||||
|
} = res
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '上传成功',
|
title: '上传成功',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 1000
|
duration: 1000
|
||||||
})
|
})
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.navigateTo({
|
|
||||||
url:'/pages/handlecase/index'
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -202,11 +249,17 @@
|
|||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 1000
|
duration: 1000
|
||||||
})
|
})
|
||||||
uni.navigateBack({delta: 1})
|
uni.navigateTo({
|
||||||
|
url: '/pages/handlecase/index'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submitImg() {
|
submitImg() {
|
||||||
|
this.$refs.form.validate().then(res => {
|
||||||
this.evidenceCrossexamiFn(this.subnitForm)
|
this.evidenceCrossexamiFn(this.subnitForm)
|
||||||
|
}).catch(err => {
|
||||||
|
console.log('表单错误信息:', err);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(data) {
|
onLoad(data) {
|
||||||
@@ -304,9 +357,11 @@
|
|||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
// @include text-overflow($width: 100%)
|
// @include text-overflow($width: 100%)
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-list {
|
.uni-list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
|
|
||||||
.uni-list-cell {
|
.uni-list-cell {
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
@@ -314,6 +369,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
|
|||||||
@@ -9,7 +9,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from './component/list.vue'
|
import List from './component/list.vue'
|
||||||
import {respondentList} from '../../api/handlecase/index.js'
|
import {
|
||||||
|
respondentList
|
||||||
|
} from '../../api/handlecase/index.js'
|
||||||
import LuanqingEmpty from "@/components/luanqing-empty.vue"
|
import LuanqingEmpty from "@/components/luanqing-empty.vue"
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -90,18 +92,17 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
let obj = {
|
let obj = {
|
||||||
identityNum:"610425199505171615",
|
identityNum: "610528199802285713",
|
||||||
pageNum: this.pageNum,
|
pageNum: this.pageNum,
|
||||||
pageSize: this.pageSize
|
pageSize: this.pageSize
|
||||||
}
|
}
|
||||||
console.log(obj,"PPPPPPPPPPPPPPPPPP");
|
|
||||||
obj.pageNum = obj.pageNum + 1
|
obj.pageNum = obj.pageNum + 1
|
||||||
this.getList(obj)
|
this.getList(obj)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
let obj = {
|
let obj = {
|
||||||
identityNum:"610425199505171615",
|
identityNum: "610528199802285713",
|
||||||
pageNum: this.pageNum,
|
pageNum: this.pageNum,
|
||||||
pageSize: this.pageSize
|
pageSize: this.pageSize
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -8,12 +8,12 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
name: "",
|
name: "",
|
||||||
sendImg: "http://192.168.3.63:8081"
|
sendImg: ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad: function() {
|
onLoad: function() {
|
||||||
this.name = this.$store.state.user.name;
|
// this.name = this.$store.state.user.name;
|
||||||
this.sendImg = `https://txroom.xayunmei.com/`
|
this.sendImg = `https://txroom.xayunmei.com`
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
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
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-3
@@ -16,10 +16,7 @@
|
|||||||
"pages/common/textview/index",
|
"pages/common/textview/index",
|
||||||
"pages/certification/index",
|
"pages/certification/index",
|
||||||
"pages/handlecase/index",
|
"pages/handlecase/index",
|
||||||
"pages/handlecase/component/assignrbitrators",
|
|
||||||
"pages/handlecase/component/uploadEvidence",
|
"pages/handlecase/component/uploadEvidence",
|
||||||
"pages/handlecase/component/confirmationEvidence",
|
|
||||||
"pages/handlecase/component/chooseMethod",
|
|
||||||
"mp_ecard_sdk/index/index",
|
"mp_ecard_sdk/index/index",
|
||||||
"mp_ecard_sdk/protocol/eid/eid",
|
"mp_ecard_sdk/protocol/eid/eid",
|
||||||
"mp_ecard_sdk/protocol/privacy/privacy",
|
"mp_ecard_sdk/protocol/privacy/privacy",
|
||||||
@@ -59,5 +56,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"permission": {},
|
||||||
"usingComponents": {}
|
"usingComponents": {}
|
||||||
}
|
}
|
||||||
+3
-2
@@ -15,10 +15,11 @@
|
|||||||
"ignore": [],
|
"ignore": [],
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
}
|
},
|
||||||
|
"condition": false
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "3.0.1",
|
"libVersion": "3.1.1",
|
||||||
"appid": "wx91cb8459dca561b4",
|
"appid": "wx91cb8459dca561b4",
|
||||||
"projectname": "智慧仲裁",
|
"projectname": "智慧仲裁",
|
||||||
"condition": {},
|
"condition": {},
|
||||||
|
|||||||
Reference in New Issue
Block a user