应用层PC端前端服务

batchSignatures.vue 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <div>
  3. <!-- 批量签名 -->
  4. <el-dialog title="批量签名" width="65%" :visible="signatureVisable" @close="cancel" center :distroy-on-close="true">
  5. <el-form ref="courtReviewform" :model="courtReviewform">
  6. <el-form-item
  7. label="仲裁员:"
  8. prop="Arbitor"
  9. :rules="[
  10. {
  11. required: true,
  12. message: '仲裁员不能为空',
  13. trigger: 'change',
  14. },
  15. ]"
  16. >
  17. <el-select
  18. placeholder="请选择仲裁员"
  19. @change="changeArbitor"
  20. v-model="courtReviewform.Arbitor"
  21. clearable
  22. >
  23. <el-option
  24. v-for="item in atoDataList"
  25. :key="item.value"
  26. :label="item.nickName"
  27. :value="item.phonenumber+item.userId"
  28. ></el-option>
  29. </el-select>
  30. </el-form-item>
  31. </el-form>
  32. <el-table v-loading="loading" :data="dataList" style="width: 100%" @selection-change="handleSelectionChange">
  33. <el-table-column type="selection">
  34. </el-table-column>
  35. <el-table-column label="序号" type="index" align="center">
  36. <template slot-scope="scope">
  37. <span>{{
  38. (queryParamsData.pageNum - 1) * queryParamsData.pageSize + scope.$index + 1
  39. }}</span>
  40. </template>
  41. </el-table-column>
  42. <el-table-column label="案件编号" prop="caseNum" align="center" width="150" :show-overflow-tooltip="true" />
  43. <el-table-column label="申请人" align="center" prop="applicantName" :show-overflow-tooltip="true" />
  44. <el-table-column label="案件标的" align="center" prop="caseSubjectAmount" />
  45. <el-table-column label="仲裁方式" align="center" prop="arbitratMethodName" :show-overflow-tooltip="true" />
  46. <!-- 仲裁员 -->
  47. <el-table-column label="仲裁员" align="center" prop="arbitratorName" />
  48. <!-- 开庭日期 -->
  49. <el-table-column label="开庭日期" align="center" prop="hearDate" :show-overflow-tooltip="true" />
  50. <el-table-column label="案件状态" align="center" prop="caseStatusName">
  51. <template slot-scope="scope">
  52. <el-tag type="success">
  53. {{ scope.row.caseStatusName }}
  54. </el-tag>
  55. </template>
  56. </el-table-column>
  57. </el-table>
  58. <pagination :total="total" :page.sync="queryParamsData.pageNum"
  59. :limit.sync="queryParamsData.pageSize" @pagination="getBatchComfirmation(queryParamsData)"/>
  60. <div slot="footer" class="dialog-footer">
  61. <el-button @click="cancel" class="endbutton"><span>取 消</span></el-button>
  62. <el-button
  63. type="primary"
  64. class="endbutton"
  65. :disabled="dataList.length == 0 || batchData.length == 0"
  66. @click="witnessing"><span>确认签名</span></el-button>
  67. </div>
  68. </el-dialog>
  69. </div>
  70. </template>
  71. <script>
  72. import {selectBatchSignUrl,pageSignAdjudicate} from '@/api/caseAccess/caseEntry'
  73. import { arbitrAtor} from "@/api/formationCourt/formationCourt";
  74. export default {
  75. props:["signatureVisable"],
  76. data() {
  77. return {
  78. // 遮罩层
  79. loading: true,
  80. // 总条数
  81. total:0,
  82. // 查询参数
  83. queryParamsData: {
  84. caseStatus: 13,//待定
  85. pageNum: 1,
  86. pageSize: 10,
  87. },
  88. // 表格数据
  89. dataList: [],
  90. batchData: [],
  91. atoDataList:[],
  92. courtReviewform: {},
  93. Arbitor: "",
  94. paramsdata:{
  95. ids:[],
  96. psnAccount:""
  97. },
  98. }
  99. },
  100. watch: {
  101. signatureVisable(val) {
  102. if (val) {
  103. this.getBatchSignation(this.queryParamsData)
  104. this.getarbitrAtor()
  105. }
  106. }
  107. },
  108. created(){
  109. this.getBatchSignation(this.queryParamsData)
  110. // this.getarbitrAtor()
  111. },
  112. methods:{
  113. // 列表查询
  114. getBatchSignation(val){
  115. this.loading = true;
  116. pageSignAdjudicate(val).then(res=>{
  117. this.dataList = res.rows
  118. this.total = res.total;
  119. this.loading = false;
  120. })
  121. },
  122. // 选择勾选框
  123. handleSelectionChange(val){
  124. this.batchData = [];
  125. val.forEach(item => {
  126. this.batchData.push(item.signFlowId)
  127. this.paramsdata.ids = this.batchData
  128. })
  129. },
  130. // 获取仲裁员信息
  131. getarbitrAtor() {
  132. this.atoDataList =[]
  133. arbitrAtor({}).then((res) => {
  134. this.atoDataList = res.rows;
  135. // this.total = res.total;
  136. });
  137. },
  138. changeArbitor(val) {
  139. this.paramsdata.psnAccount = val.slice(0,11)
  140. },
  141. // 确认签名
  142. witnessing(){
  143. this.$refs["courtReviewform"].validate((valid) => {
  144. if (valid) {
  145. console.log(this.paramsdata)
  146. selectBatchSignUrl(this.paramsdata).then((res) => {
  147. this.$modal.msgSuccess("确认成功");
  148. this.cancel();
  149. this.getBatchSignation(this.queryParamsData)
  150. window.open(res.data.signUrl)
  151. // this.$emit("getcaseApply", this.queryParams);
  152. })
  153. .catch((err) => {});
  154. }
  155. });
  156. },
  157. cancel() {
  158. this.$emit("signatureOperate");
  159. },
  160. }
  161. }
  162. </script>