应用层PC端前端服务

judgmentInformation.vue 14KB

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