应用层PC端前端服务

batchSignature.vue 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div>
  3. <!-- 批量签名 -->
  4. <el-dialog title="批量签名" :visible="caseVisableSignature" destroy-on-close width="30%" @close="cancel('courtReviewform')" center>
  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.deptId"
  28. ></el-option>
  29. </el-select>
  30. </el-form-item>
  31. </el-form>
  32. <div slot="footer" class="dialog-footer">
  33. <el-button type="primary" class="endbutton" @click="witnessing"><span>确认签名</span></el-button>
  34. <el-button class="endbutton" @click="cancel('courtReviewform')"><span>取 消</span></el-button>
  35. </div>
  36. </el-dialog>
  37. </div>
  38. </template>
  39. <script>
  40. import { arbitrAtor} from "@/api/formationCourt/formationCourt";
  41. import {getSignUrlBatch} from '@/api/batchManagement/batchManagement.js'
  42. export default {
  43. props: ["caseVisableSignature","queryParams","signatureData"],
  44. dicts: ["manager_type"],
  45. data() {
  46. return {
  47. courtReviewform: {
  48. Arbitor: "",
  49. },
  50. Arbitor: "",
  51. atoDataList:[],
  52. paramsdata:{
  53. batchNumber:0,
  54. psnAccount:""
  55. },
  56. };
  57. },
  58. watch: {
  59. caseVisableSignature(val) {
  60. if (val) {
  61. console.log(this.atoDataList)
  62. }
  63. }
  64. },
  65. created() {
  66. this.getarbitrAtor()
  67. },
  68. methods: {
  69. // 获取仲裁员信息
  70. getarbitrAtor() {
  71. arbitrAtor({}).then((res) => {
  72. this.atoDataList = res.rows;
  73. });
  74. },
  75. changeArbitor(val) {
  76. this.paramsdata.psnAccount =val.slice(0,11)
  77. },
  78. // 确认签名提交
  79. witnessing(){
  80. this.$refs["courtReviewform"].validate((valid) => {
  81. if(valid){
  82. this.paramsdata.batchNumber= this.signatureData.batchNumber
  83. console.log(this.paramsdata)
  84. getSignUrlBatch(this.paramsdata).then(res=>{
  85. this.$modal.msgSuccess("确认成功");
  86. this.cancel();
  87. this.$emit("getList", this.queryParams);
  88. window.open(res.data.signUrl)
  89. }).catch((err) => {
  90. });
  91. }
  92. })
  93. },
  94. cancel(formName) {
  95. this.$refs[formName].resetFields();
  96. this.$emit("cancelCaseSignature");
  97. },
  98. },
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. ::v-deep .el-dialog {
  103. background: #ffffff;
  104. border-radius: 20px;
  105. }
  106. </style>