examineFile.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <view class="office_page">
  3. <fileCard :isoffice="isoffice" :isleader="isleader" :isinfo="true"></fileCard>
  4. <view class="office_main">
  5. <view class="office_title">
  6. <uni-section v-if="isoffice" titleColor="#36a7f3" class="mb-10" title="办公室拟办" type="line"></uni-section>
  7. <uni-section v-if="isleader" titleColor="#36a7f3" class="mb-10" title="领导批示" type="line"></uni-section>
  8. </view>
  9. <view class="office_info">
  10. <u--form v-if="isoffice" :model="auditForm" labelWidth="130px" class="u-form default_title"
  11. labelPosition="left" ref="auditForm">
  12. <u-form-item label="办公室拟办" borderBottom prop="title">
  13. <u--textarea placeholder=""></u--textarea>
  14. </u-form-item>
  15. <u-form-item label="转发领导" borderBottom prop="teDate">
  16. <jp-picker placeholder="请选择转发领导" :range="leaderList" rangeKey="name" rangeValue="id"></jp-picker>
  17. </u-form-item>
  18. <u-form-item label="科室承办" borderBottom prop="teDate">
  19. <office-user-select placeholder="请选择科室承办" title="科室承办"></office-user-select>
  20. </u-form-item>
  21. <u-form-item label="备注" borderBottom prop="message">
  22. <u--input placeholder="请输入备注" border="none"></u--input>
  23. </u-form-item>
  24. <view class="submit_btn flex ">
  25. <!-- <u-button @click="formSubmit" color="#36a7f3" plain hairline type="primary" text="暂存待办"></u-button> -->
  26. <u-button disabled="" type="primary" text="确认签字"></u-button>
  27. </view>
  28. </u--form>
  29. <u--form v-if="isleader" :model="auditForm" labelWidth="130px" class="u-form default_title"
  30. labelPosition="left" ref="auditForm">
  31. <u-form-item label="领导批示" borderBottom prop="title">
  32. <u--textarea placeholder=""></u--textarea>
  33. </u-form-item>
  34. <view class="submit_btn flex ">
  35. <u-button disabled="" type="primary" text="确认签字"></u-button>
  36. </view>
  37. </u--form>
  38. <!-- <signInput ref="sign" canvasId="twoDrowCanvas" canvasIds="twoRotateCanvas" :header="header"
  39. :action="action" @signToUrl="signToUrl">
  40. </signInput> -->
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import fileCard from "./fileCard.vue"
  47. import signInput from "@/components/am-sign-input/am-sign-input.vue"
  48. import officeUserSelect from "@/components/office-user-select/office-user-select.vue"
  49. import userService from "@/api/sys/userService"
  50. export default {
  51. components: {
  52. fileCard,
  53. signInput,
  54. officeUserSelect
  55. },
  56. mounted() {
  57. this.searchForm.officeDTO.id="1770354910488272897"
  58. userService.list({
  59. current: this.tablePage.currentPage,
  60. size: this.tablePage.pageSize,
  61. orders: this.tablePage.orders,
  62. ...this.searchForm
  63. }).then(data => {
  64. console.log("user=============", data);
  65. this.leaderList = data.records
  66. })
  67. },
  68. data() {
  69. return {
  70. action: "", //上传服务器的地址
  71. header: {}, //图片上传携带头部信息
  72. auditForm: {},
  73. isoffice: true,
  74. isleader: false,
  75. leaderList: [],
  76. tablePage: {
  77. total: 0,
  78. currentPage: 1,
  79. pageSize: 1000,
  80. orders: [{
  81. column: "a.create_time",
  82. asc: false
  83. }],
  84. },
  85. searchForm: {
  86. loginName: "",
  87. name: "",
  88. companyDTO: {
  89. id: "",
  90. },
  91. officeDTO: {
  92. id: "",
  93. },
  94. },
  95. }
  96. },
  97. methods: {
  98. /**
  99. * @param {Object} e
  100. * 签名完成回调
  101. */
  102. signToUrl(e) {
  103. if (e.error_code && e.error_code === '201') {
  104. uni.showToast({
  105. title: e.msg,
  106. icon: 'none'
  107. })
  108. return
  109. }
  110. },
  111. }
  112. }
  113. </script>
  114. <style>
  115. .office_main {
  116. width: 100%;
  117. margin: 5px 0;
  118. padding: 0 20px;
  119. background-color: #fefefe;
  120. }
  121. .office_main .office_title {
  122. width: 100%;
  123. border-bottom: 1px solid #eee;
  124. }
  125. .submit_btn {
  126. background-color: #fefefe;
  127. bottom: 10px;
  128. box-shadow: none;
  129. padding: 20px 0;
  130. }
  131. .submit_btn button {
  132. height: 40px;
  133. width: 40%;
  134. border-radius: 30px;
  135. }
  136. </style>