author-one.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <!-- -->
  2. <template>
  3. <div class="author" :class="{ downMode }" v-if="data">
  4. <h2 class="title">授权委托书</h2>
  5. <div class="content">
  6. <template v-for="(i, index) in data.authorList">
  7. <div class="item">
  8. <span>委托人:</span>
  9. <div class="input-box" style="min-width: 100px">
  10. <input style="width: 100px" v-model="i.name" />
  11. <div class="content-box">{{ i.name }}</div>
  12. </div>
  13. <span>性别:</span>
  14. <div class="input-box" style="min-width: 60px">
  15. <input style="width: 60px" v-model="i.sex" />
  16. <div class="content-box">{{ i.sex }}</div>
  17. </div>
  18. <span>年龄:</span>
  19. <div class="input-box" style="min-width: 60px">
  20. <input style="width: 60px" v-model="i.age" />
  21. <div class="content-box">{{ i.age }}</div>
  22. </div>
  23. <span>身份证号:</span>
  24. <div class="input-box" style="flex: 1">
  25. <input style="width: 100%" v-model="i.id" />
  26. <div class="content-box">{{ i.id }}</div>
  27. </div>
  28. </div>
  29. <div class="item">
  30. <span>住址:</span>
  31. <div style="flex: 1" class="input-box">
  32. <input style="width: 100%" v-model="i.address" />
  33. <div class="content-box">{{ i.address }}</div>
  34. </div>
  35. <span>联系方式:</span>
  36. <div class="input-box">
  37. <input style="width: 100%" v-model="i.phoneNum" />
  38. <div class="content-box">{{ i.phoneNum }}</div>
  39. </div>
  40. </div>
  41. </template>
  42. <div class="item" style="margin-top: 100px">
  43. <span>受委托人姓名:</span>
  44. <div style="flex: 1" class="input-box">
  45. <input style="width: 100%" v-model="data.authorByName" />
  46. <div class="content-box">{{ data.authorByName }}</div>
  47. </div>
  48. <span>性别:</span>
  49. <div class="input-box" style="min-width: 60px">
  50. <input style="width: 60px" v-model="data.authorBySex" />
  51. <div class="content-box">{{ data.authorBySex }}</div>
  52. </div>
  53. <span>年龄:</span>
  54. <div class="input-box" style="min-width: 60px">
  55. <input style="width: 60px" v-model="data.authorByAge" />
  56. <div class="content-box">{{ data.authorByAge }}</div>
  57. </div>
  58. <span>身份证号:</span>
  59. </div>
  60. <div class="item">
  61. <div style="flex: 1" class="input-box">
  62. <input style="width: 100%" v-model="data.authorById" />
  63. <div class="content-box">{{ data.authorById }}</div>
  64. </div>
  65. <span>工作单位:</span>
  66. <div class="input-box" style="min-width: 330px">
  67. <input style="width: 330px" v-model="data.authorByCompany" />
  68. <div class="content-box">{{ data.authorByCompany }}</div>
  69. </div>
  70. <span>住址及联系方式:</span>
  71. </div>
  72. <div class="item">
  73. <div style="flex: 1" class="input-box">
  74. <input style="width: 100%" v-model="data.authorByPhoneNum" />
  75. <div class="content-box left">{{ data.authorByPhoneNum }}</div>
  76. </div>
  77. </div>
  78. <div class="item" style="margin-top: 120px">
  79. <div style="text-indent: 2em">现委托上述受委托人参与:</div>
  80. <div style="flex: 1" class="input-box">
  81. <input style="width: 100%" v-model="data.message" />
  82. <div class="content-box">{{ data.message }}</div>
  83. </div>
  84. <span>一案</span>
  85. </div>
  86. <div class="item">
  87. <div>处理工作。</div>
  88. </div>
  89. <div class="item" style="margin-top: 100px">
  90. <span>受托人:</span>
  91. <div class="input-box">
  92. <input style="width: 100%" v-model="data.authorByName" />
  93. <div class="content-box">{{ data.authorByName }}</div>
  94. </div>
  95. <span>代理权限为:</span>
  96. </div>
  97. <div class="check-item" @click="checkOptions(checkData, index)" v-for="(i, index) in checkData.options">
  98. <div style="display: inline-block">
  99. <ui-icon :type="data.options.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
  100. <span>{{ i.title }}</span>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </template>
  106. <script setup>
  107. import { reactive, ref, toRefs, onBeforeMount, onMounted } from "vue";
  108. import { tables } from "@/store/tables";
  109. import { tablesInfo, setData } from "../data";
  110. const props = defineProps({
  111. downMode: { type: Boolean, default: false },
  112. isDownloadShow: { type: Boolean, default: false },
  113. });
  114. const data = ref(null);
  115. const checkOptions = (item, index) => {
  116. item.check = item.options[index].id;
  117. data.value[item.type].check = item.check;
  118. };
  119. const checkData = ref({
  120. check: 0,
  121. type: "options",
  122. options: [
  123. {
  124. id: 1,
  125. title: "一般代理。即代理为参与诉讼、调解,提供法律帮助。",
  126. },
  127. {
  128. id: 2,
  129. title: "特别授权,代为起诉,陈述事实,参加辩论和调解,代为提出、承认、放弃或变更赔偿请求, 提起反诉或上诉,签收法律文书。",
  130. },
  131. ],
  132. });
  133. const saveHandler = () => {
  134. return { type: "authorOne", data: data.value };
  135. };
  136. defineExpose({ saveHandler, data });
  137. onMounted(() => {
  138. if (props.isDownloadShow) {
  139. } else {
  140. setData("authorOne");
  141. }
  142. if (tablesInfo.authorOne) {
  143. data.value = tablesInfo.authorOne;
  144. }
  145. });
  146. </script>
  147. <style lang="scss" scoped>
  148. .content-box {
  149. width: 100%;
  150. height: 100%;
  151. display: flex;
  152. align-items: center;
  153. justify-content: center;
  154. border-bottom: 1px solid #000;
  155. padding: 0 10px;
  156. box-sizing: border-box;
  157. &.left {
  158. justify-content: flex-start;
  159. }
  160. }
  161. .input-box {
  162. input {
  163. width: 100%;
  164. height: 100%;
  165. border-bottom: 1px solid #000;
  166. padding: 0 10px;
  167. box-sizing: border-box;
  168. text-align: center;
  169. }
  170. }
  171. .author {
  172. color: #000;
  173. width: 100%;
  174. height: 100%;
  175. // font-family: sr, st;
  176. font-family: SimHei-Regular, SimHei;
  177. font-size: 24px;
  178. font-weight: 400;
  179. .content-box {
  180. display: none;
  181. }
  182. &.downMode {
  183. input {
  184. display: none;
  185. }
  186. .content-box {
  187. display: flex;
  188. }
  189. .content {
  190. .item {
  191. width: 100%;
  192. display: flex;
  193. align-items: flex-end;
  194. justify-content: flex-start;
  195. margin-bottom: 20px;
  196. }
  197. }
  198. }
  199. .title {
  200. text-align: center;
  201. margin-bottom: 70px;
  202. }
  203. .content {
  204. .item {
  205. width: 100%;
  206. display: flex;
  207. align-items: center;
  208. justify-content: flex-start;
  209. margin-bottom: 20px;
  210. }
  211. .check-item {
  212. margin-bottom: 30px;
  213. span {
  214. line-height: 30px;
  215. }
  216. }
  217. }
  218. }
  219. </style>