应用层PC端前端服务

judgmentInformation.vue 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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-form-item label="审核意见:" prop="checkOpinion" v-if="flag == 2 || flag == 4">
  81. <el-input type="textarea" autosize placeholder="请输入内容" v-model="arbitrateRecord.checkOpinion" />
  82. </el-form-item>
  83. <el-form-item label="驳回原因" label-width="100px" v-if="flag==1 && arbitrateRecord.arbitrateReject">
  84. <div style="width:800px;">{{arbitrateRecord.arbitrateReject}}lllllllllllllll</div>
  85. </el-form-item>
  86. <el-form-item label="驳回原因" prop="arbitrateReject" v-if="flag == 2 || flag == 4">
  87. <el-input type="textarea" :rows="2" placeholder="请输入拒绝原因" v-model="arbitrateRecord.arbitrateReject"></el-input>
  88. </el-form-item>
  89. </el-form>
  90. <!-- 画布 -->
  91. <!-- <h4 v-if="flag == 3">签名区域</h4>
  92. <div class="esign" v-if="flag == 3">
  93. <vue-esign ref="esign" :width="900" :height="300" bgColor="#ffffff" />
  94. </div> -->
  95. <!-- 清除画布 -->
  96. <div slot="footer" class="dialog-footer">
  97. <!-- <el-button type="danger" @click="submitForm(4)" v-if="flag == 1">重新生成裁决书</el-button> -->
  98. <el-button type="primary" @click="submitForm(0)" v-if="flag == 1">提 交</el-button>
  99. <el-button type="primary" @click="submitForm(1)" v-if="flag == 2">同 意</el-button>
  100. <el-button type="danger" @click="submitForm(2)" v-if="flag == 2">驳 回</el-button>
  101. <el-button type="primary" @click="submitForm(3)" v-if="flag == 3">提 交</el-button>
  102. <el-button type="primary" @click="submitForm(5)" v-if="flag == 4">同 意</el-button>
  103. <el-button type="danger" @click="submitForm(6)" v-if="flag == 4">驳 回</el-button>
  104. <el-button @click="cancel">取 消</el-button>
  105. </div>
  106. </el-dialog>
  107. </div>
  108. </template>
  109. <script>
  110. import {
  111. verificationArbitrateRecord,
  112. checkArbitrateRecord,
  113. adjudicationSignature,
  114. regenerationDocument,
  115. arbitratorCheckArbitrateRecord
  116. } from "@/api/awardManagement/awardManagement";
  117. export default {
  118. props: ["openDialogInfor", "title", "flag", "awardDetailform","queryParams"],
  119. data() {
  120. return {
  121. // key: value
  122. arbitrateRecordt: {},
  123. form: {},
  124. arbitrateRecord: {
  125. // checkOpinion:"同意"
  126. checkOpinion: ""
  127. },
  128. // 表单校验
  129. rules: {
  130. evidenDetermi: [
  131. {
  132. required: true,
  133. message: "不能为空",
  134. trigger: "blur",
  135. },
  136. ],
  137. factDetermi: [
  138. {
  139. required: true,
  140. message: "不能为空",
  141. trigger: "blur",
  142. },
  143. ],
  144. caseSketch: [
  145. {
  146. required: true,
  147. message: "不能为空",
  148. trigger: "blur",
  149. },
  150. ],
  151. arbitrateThink: [
  152. {
  153. required: true,
  154. message: "不能为空",
  155. trigger: "blur",
  156. },
  157. ],
  158. rulingFollows: [
  159. {
  160. required: true,
  161. message: "不能为空",
  162. trigger: "blur",
  163. },
  164. ],
  165. verificaOpinion: [
  166. {
  167. required: true,
  168. message: "意见不能为空",
  169. trigger: "blur",
  170. },
  171. ],
  172. checkOpinion: [
  173. {
  174. required: true,
  175. message: "意见不能为空",
  176. trigger: "blur",
  177. },
  178. ],
  179. // arbitrateReject: [
  180. // {
  181. // required: true,
  182. // message: "拒绝原因不能为空",
  183. // trigger: "blur",
  184. // },
  185. // ],
  186. },
  187. applicantFileArr: [], //申请人
  188. applicantPathArr: [], //申请人
  189. respondentFileArr: [], //被申请人
  190. respondenPathArr: [], //被申请人
  191. awardFileArr: [], //庭审笔录文件
  192. awardPathArr: [], //庭审笔录路径
  193. bookFileArr: [], //裁决书文件
  194. bookPathArr: [], //庭审笔录路径
  195. };
  196. },
  197. watch: {
  198. awardDetailform: {
  199. handler(val) {
  200. if (val) {
  201. (this.applicantFileArr = []), //申请人
  202. (this.applicantPathArr = []), //申请人
  203. (this.respondentFileArr = []), //被申请人
  204. (this.respondenPathArr = []), //被申请人
  205. (this.awardFileArr = []), //裁决书
  206. (this.awardPathArr = []), //裁决书
  207. // setTimeout(() => {
  208. this.form = this.awardDetailform;
  209. console.log(this.form)
  210. // if(this.form.arbitrateRecord && this.form.arbitrateRecord.checkOpinion == null ){
  211. // this.form.arbitrateRecord.checkOpinion = '同意';
  212. this.arbitrateRecord.checkOpinion = '';
  213. // }
  214. this.arbitrateRecord = {};
  215. if (this.form.arbitrateRecord) {
  216. this.arbitrateRecord.id = this.form.arbitrateRecord.id;
  217. }
  218. this.evidenceFile(this.form);
  219. // }, 1000);
  220. }
  221. },
  222. },
  223. },
  224. methods: {
  225. // 申请人裁决书
  226. evidenceFile(val) {
  227. if (val) {
  228. this.applicantFileArr = [];
  229. this.applicantPathArr = [];
  230. this.respondentFileArr = [];
  231. this.respondenPathArr = [];
  232. this.awardFileArr = [];
  233. this.awardPathArr = [];
  234. this.bookFileArr = [];
  235. this.bookPathArr = [];
  236. val.caseAttachList.forEach((item) => {
  237. if (item.annexType == 2) {
  238. this.applicantFileArr.push(item.annexName);
  239. this.applicantPathArr.push(item.annexPath);
  240. } else if (item.annexType == 6) {
  241. this.respondentFileArr.push(item.annexName);
  242. this.respondenPathArr.push(item.annexPath);
  243. } else if (item.annexType == 3) {
  244. this.awardFileArr.push(item.annexName);
  245. this.awardPathArr.push(item.annexPath);
  246. } else if (item.annexType == 7) {
  247. this.bookFileArr.push(item.annexName);
  248. this.bookPathArr.push(item.annexPath);
  249. }
  250. });
  251. }
  252. },
  253. // 预览文件
  254. toFile(index, val) {
  255. let headPath = window.location.origin + "/API";
  256. if (val == 2) {
  257. window.open(headPath + this.applicantPathArr[index], "_blank");
  258. } else if (val == 6) {
  259. window.open(headPath + this.respondenPathArr[index], "_blank");
  260. } else if (val == 3) {
  261. window.open(headPath + this.awardPathArr[index], "_blank");
  262. } else if (val == 7) {
  263. window.open(headPath + this.bookPathArr[index], "_blank");
  264. }
  265. },
  266. // 校验裁决书
  267. verificationArbitrateRecordFn(parms) {
  268. verificationArbitrateRecord(parms).then((res) => {
  269. this.cancel();
  270. // this.$emit("updataList");
  271. this.$emit("getcaseApply", this.queryParams);
  272. this.$message("成功");
  273. });
  274. },
  275. //审核裁决书
  276. checkArbitrateRecordFn(parms) {
  277. checkArbitrateRecord(parms).then((res) => {
  278. this.cancel();
  279. // this.$emit("updataList");
  280. this.$emit("getcaseApply", this.queryParams);
  281. this.$message("成功");
  282. });
  283. },
  284. // 仲裁员审核裁决书
  285. arbitratorCheckArbitrateRecordFn(parms) {
  286. arbitratorCheckArbitrateRecord(parms).then((res) => {
  287. this.cancel();
  288. // this.$emit("updataList");
  289. this.$emit("getcaseApply", this.queryParams);
  290. this.$message("成功");
  291. });
  292. },
  293. // 签名
  294. adjudicationSignatureFn(parms) {
  295. adjudicationSignature(parms).then((res) => {
  296. this.cancel();
  297. // this.$emit("updataList");
  298. this.$emit("getcaseApply", this.queryParams);
  299. this.$message("成功");
  300. })
  301. },
  302. // 重新生成裁决书
  303. getRegenerationDocument(params) {
  304. regenerationDocument(params).then(res => {
  305. console.log(res.data, "重新生成裁决书");
  306. this.awardFileArr = [];
  307. this.awardPathArr = [];
  308. this.awardFileArr[0] = res.data.annexName;
  309. this.awardPathArr[0] = res.data.annexPath;
  310. })
  311. },
  312. submitForm(parms) {
  313. let that = this;
  314. this.$refs["form"].validate((valid) => {
  315. if (valid) {
  316. if (parms == 0) {
  317. this.verificationArbitrateRecordFn({
  318. id: this.form.id,
  319. arbitrateRecord: this.arbitrateRecord,
  320. });
  321. } else if (parms == 1) {
  322. this.checkArbitrateRecordFn({
  323. id: this.form.id,
  324. agreeOrNotCheck: 1,
  325. arbitrateRecord: this.arbitrateRecord,
  326. });
  327. } else if (parms == 2) {
  328. if (!that.arbitrateRecord.arbitrateReject == "") {
  329. this.$message.error('请输入拒绝原因');
  330. return
  331. } else {
  332. this.arbitrateRecord.deptorReject = this.arbitrateRecord.arbitrateReject;
  333. delete this.arbitrateRecord.arbitrateReject;
  334. this.checkArbitrateRecordFn({
  335. id: this.form.id,
  336. agreeOrNotCheck: 2,
  337. arbitrateRecord: this.arbitrateRecord,
  338. });
  339. }
  340. } else if (parms == 3) {
  341. this.adjudicationSignatureFn({
  342. id: this.form.id,
  343. });
  344. } else if (parms == 4) {
  345. let paramsData = {};
  346. paramsData.arbitrateRecord = this.arbitrateRecord;
  347. paramsData.id = this.form.id
  348. this.getRegenerationDocument(paramsData)
  349. } else if (parms == 5) {
  350. this.arbitratorCheckArbitrateRecordFn({
  351. id: this.form.id,
  352. agreeOrNotCheck: 1,
  353. arbitrateRecord: this.arbitrateRecord,
  354. });
  355. } else if (parms == 6) {
  356. debugger
  357. if (!that.arbitrateRecord.arbitrateReject) {
  358. this.$message.error('请输入拒绝原因');
  359. return
  360. } else {
  361. this.arbitratorCheckArbitrateRecordFn({
  362. id: this.form.id,
  363. agreeOrNotCheck: 2,
  364. arbitrateRecord: this.arbitrateRecord,
  365. });
  366. }
  367. }
  368. }
  369. });
  370. },
  371. cancel() {
  372. this.$emit("cancelpaymentdetailsCom");
  373. },
  374. },
  375. };
  376. </script>
  377. <style lang="scss" scoped>
  378. ::v-deep .el-dialog {
  379. border-radius: 30px;
  380. }
  381. .esign {
  382. border: 1px solid;
  383. }
  384. a {
  385. color: blue;
  386. }
  387. </style>