应用层PC端前端服务

judgmentInformation.vue 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. <template>
  2. <div>
  3. <el-dialog :title="title" :visible="openDialogInfor" width="1000px" @close="cancel" :destroy-on-close="true">
  4. <el-descriptions title="案件信息" border style="margin-bottom: 30px">
  5. <el-descriptions-item label="案件编号">{{
  6. form.caseNum
  7. }}</el-descriptions-item>
  8. <el-descriptions-item label="案件标的">{{
  9. form.caseSubjectAmount
  10. }}</el-descriptions-item>
  11. <el-descriptions-item label="借款开始日期">{{
  12. form.loanStartDate
  13. }}</el-descriptions-item>
  14. <el-descriptions-item label="借款结束日期">{{
  15. form.loanEndDate
  16. }}</el-descriptions-item>
  17. <el-descriptions-item label="合同编号">{{
  18. form.contractNumber
  19. }}</el-descriptions-item>
  20. <el-descriptions-item label="申请人主张欠本金">{{
  21. form.claimPrinciOwed
  22. }}</el-descriptions-item>
  23. <el-descriptions-item label="申请人主张欠利息">{{
  24. form.claimInterestOwed
  25. }}</el-descriptions-item>
  26. <el-descriptions-item label="申请人主张违约金">{{
  27. form.claimLiquidDamag
  28. }}</el-descriptions-item>
  29. <el-descriptions-item label="申请人案件证据资料">
  30. <p @click="toFile(index, 2)" v-for="(item, index) in applicantFileArr" :key="index">
  31. <a href="#">{{ item }}</a>
  32. </p>
  33. </el-descriptions-item>
  34. <el-descriptions-item label="被申请人案件证据资料">
  35. <p v-for="(item, index) in respondentFileArr" :key="index" @click="toFile(index, 6)">
  36. <a href="#">{{ item }}</a>
  37. </p>
  38. </el-descriptions-item>
  39. <el-descriptions-item label="裁决书附件">
  40. <p v-for="(item, index) in awardFileArr" :key="index" @click="toFile(index, 3)">
  41. <a href="#">{{ item }}</a>
  42. </p>
  43. </el-descriptions-item>
  44. <el-descriptions-item label="庭审笔录附件">
  45. <p v-for="(item, index) in bookFileArr" :key="index" @click="toFile(index, 7)">
  46. <a href="#">{{ item }}</a>
  47. </p>
  48. </el-descriptions-item>
  49. </el-descriptions>
  50. <el-form ref="form" :model="arbitrateRecord" label-width="300px" label-position="left" :rules="rules"
  51. :disabled="flag == 3">
  52. <!-- <el-form-item label="经庭审质证,对各方提供的证据认定如下" prop="evidenDetermi">
  53. <el-input type="textarea" autosize :disabled="flag == 2" placeholder="请输入内容"
  54. v-model="arbitrateRecord.evidenDetermi" />
  55. </el-form-item>
  56. <el-form-item label="仲裁庭经审理查明(写明仲裁庭认定的事实)" prop="factDetermi">
  57. <el-input type="textarea" autosize :disabled="flag == 2" placeholder="请输入内容"
  58. v-model="arbitrateRecord.factDetermi" />
  59. </el-form-item>
  60. <el-form-item label="综上所述" prop="caseSketch">
  61. <el-input type="textarea" autosize :disabled="flag == 2" placeholder="请输入内容"
  62. v-model="arbitrateRecord.caseSketch" />
  63. </el-form-item>
  64. <el-form-item label="本庭认为" prop="arbitrateThink">
  65. <el-input type="textarea" autosize :disabled="flag == 2" placeholder="请输入内容"
  66. v-model="arbitrateRecord.arbitrateThink" />
  67. </el-form-item>
  68. <el-form-item label="裁决如下" prop="rulingFollows">
  69. <el-input type="textarea" autosize :disabled="flag == 2" placeholder="请输入内容"
  70. v-model="arbitrateRecord.rulingFollows" />
  71. </el-form-item>
  72. <el-form-item label="核验裁决书意见:" prop="verificaOpinion">
  73. <el-input type="textarea" autosize :disabled="flag == 2" placeholder="请输入内容"
  74. v-model="arbitrateRecord.verificaOpinion" />
  75. </el-form-item> -->
  76. <!-- <el-form-item label="笔录内容:" prop="responCrossOpin">
  77. <el-input type="textarea" :autosize="{ minRows: 6 }" v-model="arbitrateRecordt.responCrossOpin"
  78. placeholder="请输入" />
  79. </el-form-item> -->
  80. <el-col :span="24">
  81. <el-form-item label="上传裁决书:" label-width="100px" v-if="flag==1|| flag==4">
  82. <el-upload
  83. class="upload-demo"
  84. accept=".doc,.docx"
  85. ref="upload"
  86. :action="UploadUrls()"
  87. :headers="headers"
  88. :data="filedatas"
  89. :before-remove="beforeRemoves"
  90. :limit="2"
  91. :on-change="beforeUpload"
  92. :on-success="handlSuccessAw"
  93. :file-list="fileListAw"
  94. :before-upload="beforeAvatarUploads"
  95. >
  96. <el-button slot="trigger" size="small" type="primary"
  97. >选取文件</el-button
  98. >
  99. <div slot="tip" class="el-upload__tip">
  100. 只能上传.doc,docx文件
  101. </div>
  102. </el-upload>
  103. </el-form-item>
  104. </el-col>
  105. <el-form-item label="驳回原因:" label-width="100px" v-if="flag==1 && awardDetailform.arbitrateReject">
  106. <div style="width:800px;">{{awardDetailform.arbitrateReject}}</div>
  107. </el-form-item>
  108. <el-form-item label="驳回原因:" label-width="100px" v-if="flag==4 && awardDetailform.deptorReject">
  109. <div style="width:800px;">{{awardDetailform.deptorReject}}</div>
  110. </el-form-item>
  111. <el-form-item label-width="100px" label="审核意见:" prop="checkOpinion" v-if="flag == 2 || flag == 4">
  112. <el-input type="textarea" autosize placeholder="请输入内容" v-model.trim="arbitrateRecord.checkOpinion" />
  113. </el-form-item>
  114. <!-- 判断是否驳回 -->
  115. <el-form-item label-width="100px" label="是否驳回:" v-if="flag == 2 || flag == 4">
  116. <el-radio-group v-model="agreeOrNotCheck">
  117. <el-radio :label="1">同意</el-radio>
  118. <el-radio :label="2">驳回</el-radio>
  119. </el-radio-group>
  120. </el-form-item>
  121. <el-form-item label-width="100px" label="驳回原因" v-if="agreeOrNotCheck==2 && flag == 4" prop="arbitrateReject"
  122. :rules="[
  123. { required: true, message: '请输入驳回原因', trigger: 'blur' }
  124. ]">
  125. <el-input type="textarea" :rows="2" placeholder="请输入驳回原因" v-model.trim="arbitrateRecord.arbitrateReject"></el-input>
  126. </el-form-item>
  127. <el-form-item label-width="100px" label="驳回原因" v-if="agreeOrNotCheck==2 && flag ==2" prop="deptorReject"
  128. :rules="[
  129. { required: true, message: '请输入驳回原因', trigger: 'blur' }
  130. ]">
  131. <el-input type="textarea" :rows="2" placeholder="请输入驳回原因" v-model.trim="arbitrateRecord.deptorReject"></el-input>
  132. </el-form-item>
  133. </el-form>
  134. <!-- 画布 -->
  135. <!-- <h4 v-if="flag == 3">签名区域</h4>
  136. <div class="esign" v-if="flag == 3">
  137. <vue-esign ref="esign" :width="900" :height="300" bgColor="#ffffff" />
  138. </div> -->
  139. <!-- 清除画布 -->
  140. <div slot="footer" class="dialog-footer">
  141. <!-- <el-button type="danger" @click="submitForm(4)" v-if="flag == 1">重新生成裁决书</el-button> -->
  142. <el-button type="primary" @click="submitForm(0)" v-if="flag == 1" :loading="buttonFlag">提 交</el-button>
  143. <el-button type="primary" @click="submitForm(1)" v-if="flag == 2" :loading="buttonFlag">提交</el-button>
  144. <!-- <el-button type="danger" @click="submitForm(2)" v-if="flag == 2">驳 回</el-button> -->
  145. <!-- <el-button type="primary" @click="submitForm(3)" v-if="flag == 3">提 交</el-button> -->
  146. <!-- <el-button type="primary" @click="submitForm(5)" v-if="flag == 4">同 意</el-button> -->
  147. <el-button type="primary" @click="submitForm(6)" v-if="flag == 4" :loading="buttonFlag">提交</el-button>
  148. <el-button @click="cancel">取 消</el-button>
  149. </div>
  150. </el-dialog>
  151. </div>
  152. </template>
  153. <script>
  154. import {
  155. verificationArbitrateRecord,
  156. checkArbitrateRecord,
  157. adjudicationSignature,
  158. regenerationDocument,
  159. arbitratorCheckArbitrateRecord
  160. } from "@/api/awardManagement/awardManagement";
  161. import { getToken } from "@/utils/auth";
  162. export default {
  163. props: ["openDialogInfor", "title", "flag", "awardDetailform","queryParams"],
  164. data() {
  165. return {
  166. buttonFlag:false,
  167. // key: value
  168. arbitrateRecordt: {},
  169. agreeOrNotCheck:1,
  170. form: {},
  171. headers: {
  172. Authorization: "Bearer " + getToken(),
  173. },
  174. filedatas: {
  175. annexType: 3,
  176. id:null
  177. },
  178. fileListAw:[],
  179. arbitrateRecord: {
  180. // checkOpinion:"同意"
  181. checkOpinion: ""
  182. },
  183. // 表单校验
  184. rules: {
  185. evidenDetermi: [
  186. {
  187. required: true,
  188. message: "不能为空",
  189. trigger: "blur",
  190. },
  191. ],
  192. factDetermi: [
  193. {
  194. required: true,
  195. message: "不能为空",
  196. trigger: "blur",
  197. },
  198. ],
  199. caseSketch: [
  200. {
  201. required: true,
  202. message: "不能为空",
  203. trigger: "blur",
  204. },
  205. ],
  206. arbitrateThink: [
  207. {
  208. required: true,
  209. message: "不能为空",
  210. trigger: "blur",
  211. },
  212. ],
  213. rulingFollows: [
  214. {
  215. required: true,
  216. message: "不能为空",
  217. trigger: "blur",
  218. },
  219. ],
  220. verificaOpinion: [
  221. {
  222. required: true,
  223. message: "意见不能为空",
  224. trigger: "blur",
  225. },
  226. ],
  227. checkOpinion: [
  228. {
  229. required: true,
  230. message: "意见不能为空",
  231. trigger: "blur",
  232. }
  233. ],
  234. // arbitrateReject: [
  235. // {
  236. // required: true,
  237. // message: "拒绝原因不能为空",
  238. // trigger: "blur",
  239. // },
  240. // ],
  241. },
  242. applicantFileArr: [], //申请人
  243. applicantPathArr: [], //申请人
  244. respondentFileArr: [], //被申请人
  245. respondenPathArr: [], //被申请人
  246. awardFileArr: [], //庭审笔录文件
  247. awardPathArr: [], //庭审笔录路径
  248. bookFileArr: [], //裁决书文件
  249. bookPathArr: [], //庭审笔录路径
  250. };
  251. },
  252. watch: {
  253. openDialogInfor:{
  254. handler(val) {
  255. if (val) {
  256. this.agreeOrNotCheck = 1;
  257. }
  258. },
  259. },
  260. awardDetailform: {
  261. handler(val) {
  262. if (val) {
  263. (this.applicantFileArr = []), //申请人
  264. (this.applicantPathArr = []), //申请人
  265. (this.respondentFileArr = []), //被申请人
  266. (this.respondenPathArr = []), //被申请人
  267. (this.awardFileArr = []), //裁决书
  268. (this.awardPathArr = []), //裁决书
  269. // setTimeout(() => {
  270. this.form = this.awardDetailform;
  271. console.log(this.form)
  272. // if(this.form.arbitrateRecord && this.form.arbitrateRecord.checkOpinion == null ){
  273. // this.form.arbitrateRecord.checkOpinion = '同意';
  274. this.arbitrateRecord.checkOpinion = '';
  275. // }
  276. this.arbitrateRecord = {};
  277. if (this.form.arbitrateRecord) {
  278. this.arbitrateRecord.id = this.form.arbitrateRecord.id;
  279. }
  280. this.evidenceFile(this.form);
  281. // }, 1000);
  282. }
  283. },
  284. },
  285. },
  286. methods: {
  287. // 申请人裁决书
  288. evidenceFile(val) {
  289. if (val) {
  290. this.applicantFileArr = [];
  291. this.applicantPathArr = [];
  292. this.respondentFileArr = [];
  293. this.respondenPathArr = [];
  294. this.awardFileArr = [];
  295. this.awardPathArr = [];
  296. this.bookFileArr = [];
  297. this.bookPathArr = [];
  298. val.caseAttachList.forEach((item) => {
  299. if (item.annexType == 2) {
  300. this.applicantFileArr.push(item.annexName);
  301. this.applicantPathArr.push(item.annexPath);
  302. } else if (item.annexType == 6) {
  303. this.respondentFileArr.push(item.annexName);
  304. this.respondenPathArr.push(item.annexPath);
  305. } else if (item.annexType == 3) {
  306. this.awardFileArr.push(item.annexName);
  307. this.awardPathArr.push(item.annexPath);
  308. } else if (item.annexType == 7) {
  309. this.bookFileArr.push(item.annexName);
  310. this.bookPathArr.push(item.annexPath);
  311. }
  312. });
  313. }
  314. },
  315. // 预览文件
  316. toFile(index, val) {
  317. let headPath = window.location.origin + "/API";
  318. if (val == 2) {
  319. window.open(headPath + this.applicantPathArr[index], "_blank");
  320. } else if (val == 6) {
  321. window.open(headPath + this.respondenPathArr[index], "_blank");
  322. } else if (val == 3) {
  323. window.open(headPath + this.awardPathArr[index], "_blank");
  324. } else if (val == 7) {
  325. window.open(headPath + this.bookPathArr[index], "_blank");
  326. }
  327. },
  328. // 校验裁决书
  329. verificationArbitrateRecordFn(parms) {
  330. this.buttonFlag = true;
  331. verificationArbitrateRecord(parms).then((res) => {
  332. this.cancel();
  333. this.buttonFlag = false;
  334. // this.$emit("updataList");
  335. this.$emit("getcaseApply", this.queryParams);
  336. // this.$message("成功");
  337. this.$modal.msgSuccess("提交成功");
  338. });
  339. },
  340. //审核裁决书
  341. checkArbitrateRecordFn(parms) {
  342. this.buttonFlag = true;
  343. checkArbitrateRecord(parms).then((res) => {
  344. this.cancel();
  345. this.buttonFlag = false;
  346. // this.$emit("updataList");
  347. this.$emit("getcaseApply", this.queryParams);
  348. // this.$message("成功");
  349. this.$modal.msgSuccess("提交成功");
  350. });
  351. },
  352. // 仲裁员审核裁决书
  353. arbitratorCheckArbitrateRecordFn(parms) {
  354. this.buttonFlag = true;
  355. console.log(parms)
  356. arbitratorCheckArbitrateRecord(parms).then((res) => {
  357. this.cancel();
  358. this.buttonFlag = false;
  359. // this.$emit("updataList");
  360. this.$emit("getcaseApply", this.queryParams);
  361. // this.$message("成功");
  362. this.$modal.msgSuccess("提交成功");
  363. });
  364. },
  365. // 签名
  366. adjudicationSignatureFn(parms) {
  367. this.buttonFlag = true;
  368. adjudicationSignature(parms).then((res) => {
  369. this.cancel();
  370. this.buttonFlag = false;
  371. // this.$emit("updataList");
  372. this.$emit("getcaseApply", this.queryParams);
  373. this.$message("成功");
  374. })
  375. },
  376. // 上传裁决书
  377. UploadUrls() {
  378. return window.location.origin + "/API/evidence/uploadRecord";
  379. },
  380. beforeRemoves(file,fileList){
  381. return this.$confirm(`确定移除 ${file.name}?`);
  382. },
  383. beforeUpload(flie, fileList) {
  384. // this.fileList = fileList;
  385. },
  386. // 上传文件成功
  387. handlSuccessAw(res, file) {
  388. // this.fileListAw.push(file);
  389. },
  390. beforeAvatarUploads(){
  391. this.filedatas.id = this.awardDetailform.id;
  392. },
  393. submitForm(parms) {
  394. let that = this;
  395. this.$refs["form"].validate((valid) => {
  396. if (valid) {
  397. if (parms == 0) {
  398. this.verificationArbitrateRecordFn({
  399. id: this.form.id,
  400. arbitrateRecord: this.arbitrateRecord,
  401. });
  402. } else if (parms == 1) {
  403. if(this.agreeOrNotCheck==1){
  404. //部门长同意
  405. this.checkArbitrateRecordFn({
  406. id: this.form.id,
  407. agreeOrNotCheck: 1,
  408. arbitrateRecord: this.arbitrateRecord,
  409. });
  410. }else if(this.agreeOrNotCheck==2){
  411. // 部门长驳回
  412. this.checkArbitrateRecordFn({
  413. id: this.form.id,
  414. agreeOrNotCheck: 2,
  415. arbitrateRecord: this.arbitrateRecord,
  416. });
  417. }
  418. } else if (parms == 2) {
  419. } else if (parms == 3) {
  420. this.adjudicationSignatureFn({
  421. id: this.form.id,
  422. });
  423. }else if (parms == 6) {
  424. if(this.agreeOrNotCheck==1){
  425. //仲裁员同意
  426. this.arbitratorCheckArbitrateRecordFn({
  427. id: this.form.id,
  428. agreeOrNotCheck: 1,
  429. arbitrateRecord: this.arbitrateRecord,
  430. });
  431. }else if(this.agreeOrNotCheck==2){
  432. //仲裁员驳回
  433. this.arbitratorCheckArbitrateRecordFn({
  434. id: this.form.id,
  435. agreeOrNotCheck: 2,
  436. arbitrateRecord: this.arbitrateRecord,
  437. });
  438. }
  439. }
  440. }
  441. });
  442. },
  443. cancel() {
  444. this.$emit("cancelpaymentdetailsCom");
  445. },
  446. },
  447. };
  448. </script>
  449. <style lang="scss" scoped>
  450. ::v-deep .el-dialog {
  451. border-radius: 30px;
  452. }
  453. .esign {
  454. border: 1px solid;
  455. }
  456. a {
  457. color: blue;
  458. }
  459. </style>