uploadEvidence.vue 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. <template>
  2. <view class="">
  3. <uni-section title="">
  4. <!-- 选项卡 -->
  5. <view class="">
  6. <uni-segmented-control :current="current" :values="itemsT" :style-type="styleType"
  7. :active-color="activeColor" @clickItem="onClickItem" />
  8. </view>
  9. <!-- 选项卡内容 -->
  10. <view class="conent">
  11. <view v-show="current === 0">
  12. <view class="assignrbitrators">
  13. <view class="from">
  14. <uni-forms ref="form" :modelValue="subnitForm" :rules="rules">
  15. <!-- <view class="title">案件详情</view> -->
  16. <view class="box">
  17. <uni-forms-item label="案件编号:" name="caseNum" label-width="120px" required>
  18. <uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.caseNum"
  19. placeholder="" />
  20. </uni-forms-item>
  21. <uni-forms-item label="申请人:" name="applicantName" label-width="120px" required>
  22. <uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.applicantName"
  23. placeholder="" />
  24. </uni-forms-item>
  25. <uni-forms-item label="被申请人:" name="respondentName" label-width="120px" required>
  26. <uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.respondentName"
  27. placeholder="" />
  28. </uni-forms-item>
  29. <uni-forms-item label="借款开始日期:" name="loanStartDate" label-width="120px" required>
  30. <uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.loanStartDate"
  31. placeholder="" />
  32. </uni-forms-item>
  33. <uni-forms-item label="借款结束日期:" name="loanEndDate" label-width="120px" required>
  34. <uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.loanEndDate"
  35. placeholder="" />
  36. </uni-forms-item>
  37. <uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="120px" required>
  38. <uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.caseSubjectAmount"
  39. placeholder="" />
  40. </uni-forms-item>
  41. <uni-forms-item label="申请人主张欠本金:" name="claimPrinciOwed" label-width="120px" required>
  42. <uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.claimPrinciOwed"
  43. placeholder="" />
  44. </uni-forms-item>
  45. <uni-forms-item label="申请人主张欠利息:" name="claimInterestOwed" label-width="120px" required>
  46. <uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.claimInterestOwed"
  47. placeholder="" />
  48. </uni-forms-item>
  49. <uni-forms-item label="申请人主张违约金:" name="claimLiquidDamag" label-width="120px" required>
  50. <uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.claimLiquidDamag"
  51. placeholder="" />
  52. </uni-forms-item>
  53. <!-- <uni-forms-item label="是否有异议需要举证" label-width="120px" name="objectionAddEviden" required>
  54. <uni-data-checkbox class='checkbox' v-model="subnitForm.objectionAddEviden"
  55. :localdata="maintenancetypeArr" @change='uploadEvidenceChange'></uni-data-checkbox>
  56. </uni-forms-item> -->
  57. <!-- <uni-forms-item label="是否需要开庭审理" label-width="120px" name="openCourtHear" required>
  58. <uni-data-checkbox class='checkbox' v-model="subnitForm.openCourtHear"
  59. :localdata="arbitrationmethodArr" @change='arbitrationmethod'></uni-data-checkbox>
  60. </uni-forms-item> -->
  61. <!-- <uni-forms-item label="是否指派仲裁员" label-width="120px" name="pendingAppointArbotrar" required>
  62. <uni-data-checkbox class='checkbox' v-model="subnitForm.pendingAppointArbotrar"
  63. :localdata="uploadEvidence" @change='maintenancetypeChange'></uni-data-checkbox>
  64. </uni-forms-item> -->
  65. <uni-forms-item label="是否仲裁反请求" label-width="120px" name="objectiJuris" required>
  66. <uni-data-checkbox class='checkbox' v-model="subnitForm.objectiJuris"
  67. :localdata="objectiJurisArr" @change='objectiJurisChange'></uni-data-checkbox>
  68. </uni-forms-item>
  69. <!-- <uni-forms-item label="是否管辖异议申请" label-width="120px" name="adjudicaCounter" required>
  70. <uni-data-checkbox class='checkbox' v-model="subnitForm.adjudicaCounter"
  71. :localdata="adjudicaCounterArr"></uni-data-checkbox>
  72. </uni-forms-item> -->
  73. <!-- <uni-forms-item label="上传证据" name="headImage" label-width="120px" v-if="caseFlag">
  74. <uni-file-picker ref="files" :auto-upload="false" @select="select" :limit='1' />
  75. </uni-forms-item> -->
  76. </view>
  77. </uni-forms>
  78. <!-- 自定义弹窗层组件 -->
  79. <uni-popup scroll-y="true" ref="popup" :is-mask-click="false" type="bottom">
  80. <view class="content_list">
  81. <uni-card>
  82. <view class="" style="text-align: center;font-size: 35rpx;font-weight: bold;">
  83. <text>权力和义务告知书</text>
  84. </view>
  85. 根据《中华人民共和国仲裁法》的规定,仲裁当事人在仲裁活动中依法享有权利并承担义务。
  86. <view class="">
  87. 一、当事人的权利
  88. 1.依据仲裁协议提请仲裁;撤回仲裁申请或者变更、放弃仲裁请求;承认或者反驳仲裁请求;提出仲裁反请求。
  89. 2.对仲裁协议效力提出异议。
  90. 3.委托代理人进行仲裁活动。
  91. 4.申请财产保全、证据保全。
  92. 5.约定、选定仲裁庭的组成方式;选定或者委托本会主任指定仲裁员;申请仲裁员、办案秘书、翻译人员、鉴定人员回避。
  93. 6.收集、提供证据。对证据进行质证,发表辩论意见,作最后陈述。
  94. 7.请求调解。自行和解的,可以请求仲裁庭根据和解协议作出裁决书。
  95. 8.认为开庭笔录对自己陈述的记录有遗漏或者差错的,申请补正。
  96. 9.对裁决书中的文字、计算错误或者仲裁庭已经裁决但在裁决书中遗漏的事项,请求补正或者作出补正裁决。
  97. 10.向人民法院申请撤销、执行或者不予执行仲裁裁决。
  98. </view>
  99. 二、当事人的义务
  100. 1.如实书写仲裁申请书和答辩书;在庭审中不得做虚假陈述。
  101. 2.对自己的主张按期提供证据,不得提供伪证。
  102. 3.遵守仲裁员回避制度。
  103. 4.按时参加开庭。
  104. 5.遵守开庭纪律和仲裁程序。
  105. 6.在庭审笔录上签字。
  106. 7.在仲裁文书的送达回证上签字盖章。
  107. 8.主动履行生效的仲裁裁决。
  108. 9.按规定交纳仲裁费用。
  109. 10.法律、法规和本会仲裁规则规定的其他义务。
  110. <view class="from" style="margin-top:30rpx;">
  111. <uni-forms ref="reasontFormData" >
  112. <uni-forms-item label="异议原因:" label-width="100px" required>
  113. <uni-easyinput v-model="reasontFormData.reasont"
  114. placeholder="请输入异议原因" />
  115. </uni-forms-item>
  116. </uni-forms>
  117. </view>
  118. <view class="determine">
  119. <button style="width: 150rpx;float: left;margin-left: 90rpx;" type="primary" @tap="submitReasont">确定</button>
  120. <button style="width: 150rpx;" @tap="cencalBut">取消</button>
  121. </view>
  122. </uni-card>
  123. </view>
  124. </uni-popup>
  125. <view class="uni-list" v-if="selectFlag">
  126. <radio-group @change="checkboxChange" style="width: 100%;">
  127. <label class="uni-list-cell uni-list-cell-pd" v-for="item in items" :key="item.userId">
  128. <view>
  129. <radio :value="item.userId + ''" />
  130. </view>
  131. <view class="main">
  132. <view class="">
  133. 仲裁员姓名:{{item.nickName}}
  134. </view>
  135. <view class="">
  136. 介绍:{{item.remark || ''}}
  137. </view>
  138. </view>
  139. </label>
  140. </radio-group>
  141. </view>
  142. <button type="primary" @click="submitImg">确认提交</button>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. <view v-show="current === 1" style="padding: 20rpx;">
  148. <view class="" style="margin-top: 50rpx;">
  149. <view>申请人</view>
  150. <view v-for="item in formData.evidenceMaterialList">
  151. <uni-link v-if="item.annexType==2" :href="item.annexPath" color="#007BFF" :text="item.fileName"></uni-link>
  152. </view>
  153. <view>被申请人</view>
  154. <view v-for="item in formData.evidenceMaterialList">
  155. <uni-link v-if="item.annexType==6" :href="item.annexPath" color="#007BFF" :text="item.fileName"></uni-link>
  156. </view>
  157. </view>
  158. <view class="" style="margin-top: 40rpx;">
  159. <view>仲裁申请书</view>
  160. <view v-for="item in formData.evidenceMaterialList">
  161. <uni-link v-if="item.annexType==1" :href="item.annexPath" color="#007BFF" :text="item.fileName"></uni-link>
  162. </view>
  163. </view>
  164. </view>
  165. </uni-section>
  166. </view>
  167. </template>
  168. <script>
  169. import {
  170. respondentDetail,
  171. arbitratorList,
  172. evidenceCrossexami
  173. } from '../../../api/handlecase/index.js'
  174. import {
  175. uploadImage
  176. } from '../../../api/upload.js'
  177. import {
  178. getToken
  179. } from '@/utils/auth'
  180. import moment from 'moment'
  181. import config from '@/config'
  182. const baseUrl = config.baseUrl
  183. const app = getApp()
  184. export default {
  185. data() {
  186. return {
  187. current:0,
  188. itemsT:['案件详情','案件资料'],
  189. styleType:'button',
  190. activeColor:'#007aff',
  191. reasontFormData:{
  192. reasont:''
  193. },
  194. isShowPopup:false,
  195. formData: {},
  196. subnitForm: {
  197. objectionAddEviden:0,
  198. pendingAppointArbotrar:0,
  199. objectiJuris:0,
  200. adjudicaCounter:0,
  201. adjudicaCounterReason:''
  202. },
  203. selectFlag: false,
  204. caseFlag: false,
  205. tempFilePaths: null,
  206. rules: {
  207. // 是否有异议需要举证
  208. objectionAddEviden: {
  209. rules: [{
  210. required: true,
  211. errorMessage: '请选择'
  212. }]
  213. },
  214. // 是否需要开庭审理
  215. openCourtHear: {
  216. rules: [{
  217. required: true,
  218. errorMessage: '请选择'
  219. }]
  220. },
  221. // 是否指派仲裁员
  222. pendingAppointArbotrar: {
  223. rules: [{
  224. required: true,
  225. errorMessage: '请选择'
  226. }]
  227. },
  228. },
  229. maintenancetypeArr: [{
  230. text: '是',
  231. value: 1
  232. }, {
  233. text: '否',
  234. value: 0
  235. }, ],
  236. arbitrationmethodArr: [{
  237. text: '是',
  238. value: 1
  239. }, {
  240. text: '否',
  241. value: 0
  242. }],
  243. uploadEvidence: [{
  244. text: '是',
  245. value: 1
  246. }, {
  247. text: '否',
  248. value: 0
  249. }],
  250. objectiJurisArr: [{
  251. text: '是',
  252. value: 1
  253. }, {
  254. text: '否',
  255. value: 0
  256. }],
  257. adjudicaCounterArr: [{
  258. text: '是',
  259. value: 1
  260. }, {
  261. text: '否',
  262. value: 0
  263. }],
  264. obligationsArr: [{
  265. text: '是',
  266. value: 1
  267. }, {
  268. text: '否',
  269. value: 0
  270. }],
  271. items: []
  272. }
  273. },
  274. methods: {
  275. onClickItem(e){
  276. console.log()
  277. if (this.current !== e.currentIndex) {
  278. this.current = e.currentIndex
  279. }
  280. },
  281. submitReasont(){
  282. if(this.reasontFormData.reasont){
  283. this.subnitForm.adjudicaCounterReason = this.reasontFormData.reasont
  284. this.$refs.popup.close()
  285. this.reasontFormData.reasont =''
  286. }else{
  287. this.$modal.msgError("请输入反意理由")
  288. }
  289. },
  290. cencalBut(){
  291. this.$refs.popup.close();
  292. this.subnitForm.objectiJuris = 0;
  293. },
  294. objectiJurisChange(value){
  295. let flag = value.detail.value;
  296. if(flag==1){
  297. this.$refs.popup.open('center')
  298. }
  299. },
  300. arbitrationmethod() {},
  301. uploadEvidenceChange(val) {
  302. console.log(val)
  303. let flag = val.detail.value;
  304. if (flag == 1) {
  305. this.caseFlag = true;
  306. } else if (flag == 0) {
  307. this.caseFlag = false;
  308. }
  309. },
  310. maintenancetypeChange(val) {
  311. let flag = val.detail.value;
  312. if (flag == 1) {
  313. this.selectFlag = true
  314. this.getArbitratorList()
  315. } else {
  316. this.selectFlag = false
  317. }
  318. },
  319. checkboxChange(e) {
  320. let params = parseInt(e.detail.value);
  321. console.log(params,"LLLLLLLLLL");
  322. let result = "";
  323. this.items.forEach(item=>{
  324. if(item.userId == params){
  325. result = item.nickName
  326. }
  327. })
  328. let arbitrators = [{id: params,arbitratorName: result}];
  329. console.log(result,"KKKKKKKKKKKKKKKK");
  330. // let idArr = e.detail.value;
  331. // let numberArray = idArr.map(str => parseInt(str));
  332. // const result = this.items.filter(item => numberArray.includes(item.userId));
  333. // result.forEach(item => {
  334. // arbitrators.push({
  335. // id: item.userId,
  336. // arbitratorName: item.nickName
  337. // })
  338. // })
  339. this.subnitForm.arbitrators = arbitrators;
  340. // console.log(this.subnitForm.arbitrators,"PPPPPPPPPPPPPP");
  341. },
  342. getData(parms) {
  343. respondentDetail(parms).then(res => {
  344. if(res.data.evidenceMaterialList.length > 0) {
  345. res.data.evidenceMaterialList.forEach(item =>{
  346. let names = item.annexPath.split('_')
  347. item['fileName'] = names[names.length -1]
  348. item.annexPath = baseUrl + item.annexPath
  349. })
  350. }
  351. console.log(res.data.evidenceMaterialList)
  352. this.formData = res.data
  353. this.formData.loanEndDate = moment(this.formData.loanEndDate).format('YYYY-MM-DD HH:mm:ss');
  354. this.formData.loanStartDate = moment(this.formData.loanStartDate).format(
  355. 'YYYY-MM-DD HH:mm:ss');
  356. this.formData.id = this.formData.id + ''
  357. })
  358. },
  359. // 文件上传
  360. select(e) {
  361. this.tempFilePaths = e.tempFilePaths;
  362. // loading
  363. uni.showLoading({
  364. title: '上传中'
  365. });
  366. uni.uploadFile({
  367. url: getApp().globalData.requestUrl + uploadImage,
  368. filePath: this.tempFilePaths[0],
  369. header: {
  370. Authorization: getToken() || '',
  371. },
  372. formData: {
  373. annexType: 6,
  374. id: this.formData.id
  375. },
  376. name: 'file',
  377. success: (res) => {
  378. let {
  379. data
  380. } = res
  381. uni.showToast({
  382. title: '上传成功',
  383. icon: 'none',
  384. duration: 1000
  385. })
  386. uni.hideLoading();
  387. },
  388. fail: (err) => {
  389. uni.showToast({
  390. title: '上传失败',
  391. icon: 'none',
  392. duration: 1000
  393. })
  394. uni.hideLoading()
  395. }
  396. })
  397. },
  398. // 获取仲裁员列表
  399. getArbitratorList() {
  400. arbitratorList().then(res => {
  401. this.items = res.rows;
  402. })
  403. },
  404. // 提交数据
  405. evidenceCrossexamiFn(parms) {
  406. evidenceCrossexami(parms).then(res => {
  407. uni.showToast({
  408. title: '提交成功',
  409. icon: 'none',
  410. duration: 1000
  411. })
  412. uni.navigateTo({
  413. url: '/pages/handlecase/index'
  414. })
  415. })
  416. },
  417. submitImg() {
  418. this.$refs.form.validate().then(res => {
  419. this.evidenceCrossexamiFn(this.subnitForm)
  420. }).catch(err => {
  421. console.log('表单错误信息:', err);
  422. })
  423. },
  424. // 证据清单
  425. evidenceList(){
  426. console.log(this.formData.evidenceMaterialList)
  427. this.$tab.navigateTo(`/pages/handlecase/component/evidenceList?title=证据清单&evidenceList=${encodeURIComponent(JSON.stringify(this.formData.evidenceMaterialList))}`)
  428. },
  429. // 仲裁申请书
  430. applicationArbitration(){
  431. }
  432. },
  433. onLoad(data) {
  434. this.getData(data.id);
  435. this.subnitForm.caseId = Number(data.id);
  436. // this.getArbitratorList()
  437. }
  438. }
  439. </script>
  440. <style lang="scss">
  441. page {
  442. background-color: #ffffff;
  443. }
  444. .content_list {
  445. height: 1060rpx;
  446. overflow-x: hidden;
  447. .scroll_view_style{
  448. height: 100%;
  449. }
  450. }
  451. .assignrbitrators {
  452. // text-align: center;
  453. padding: 20rpx;
  454. .box {
  455. background-color: #fff;
  456. padding: 20rpx;
  457. border-radius: 20rpx;
  458. }
  459. .flexd {
  460. padding-top: 20rpx;
  461. .btn {
  462. width: 80%;
  463. font-size: 26rpx;
  464. border-radius: 60rpx;
  465. }
  466. }
  467. .btn {
  468. margin-top: 20rpx;
  469. }
  470. .select-picker {
  471. display: flex;
  472. box-sizing: border-box;
  473. flex-direction: row;
  474. align-items: center;
  475. border: 1px solid #DCDFE6;
  476. border-radius: 8rpx;
  477. width: 100%;
  478. height: 100%;
  479. padding: 0 24rpx;
  480. font-size: 28rpx;
  481. }
  482. .table-content {
  483. background-color: #fff;
  484. padding: 20rpx;
  485. border-radius: 20rpx;
  486. .none {
  487. font-size: 24rpx;
  488. height: 60rpx;
  489. line-height: 60rpx;
  490. }
  491. }
  492. .box {
  493. /deep/.title {
  494. font-size: 28rpx;
  495. height: 60rpx;
  496. line-height: 60rpx;
  497. }
  498. }
  499. .htmltitle {
  500. font-size: 30rpx;
  501. height: 80rpx;
  502. line-height: 80rpx;
  503. display: flex;
  504. justify-content: space-between;
  505. .look {
  506. color: #0D91F9;
  507. }
  508. }
  509. .title {
  510. font-size: 30rpx;
  511. height: 80rpx;
  512. line-height: 80rpx;
  513. }
  514. .adsTitle {
  515. font-size: 30rpx;
  516. }
  517. .multiple {
  518. width: 75%;
  519. height: 72rpx;
  520. line-height: 72rpx;
  521. font-size: 24rpx;
  522. // @include text-overflow($width: 100%)
  523. }
  524. .uni-list {
  525. width: 100%;
  526. margin-top: 20rpx;
  527. .uni-list-cell {
  528. border-radius: 30rpx;
  529. margin-bottom: 10rpx;
  530. display: flex;
  531. align-items: center;
  532. justify-content: flex-start;
  533. background-color: #fff;
  534. .main {
  535. height: 100%;
  536. margin-left: 20rpx;
  537. }
  538. }
  539. }
  540. .determine{
  541. padding: left 50rpx;
  542. }
  543. }
  544. </style>