certificate_conformity_jangnan_template.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <template>
  2. <div
  3. id="print"
  4. style="
  5. display: flex;
  6. align-items: center;
  7. justify-content: center;
  8. flex-direction: column;
  9. "
  10. >
  11. <div
  12. style="
  13. position: relative;
  14. width: 100%;
  15. display: flex;
  16. flex-direction: column;
  17. align-items: center;
  18. "
  19. >
  20. <div
  21. style="
  22. font-size: 24px;
  23. font-weight: 800;
  24. text-align: center;
  25. width: 100%;
  26. margin-bottom: 10px;
  27. "
  28. >
  29. 半成品验收合格证
  30. </div>
  31. <div style="width: 100%; font-size: 14px; margin-bottom: 10px">
  32. <span
  33. style="
  34. min-width: 65px;
  35. border-bottom: 1px solid #000;
  36. display: inline-block;
  37. text-align: center;
  38. "
  39. >{{ form.contractor || ' ' }}</span
  40. >
  41. 厂生产的下述半成品,经我们按产品图及技术条件要求验收合格,准予按序流转。
  42. </div>
  43. <div
  44. style="
  45. width: 100%;
  46. font-size: 14px;
  47. text-align: right;
  48. margin-bottom: 10px;
  49. "
  50. >
  51. {{ form.createTime ? form.createTime.split(' ')[0] : '' }}
  52. </div>
  53. </div>
  54. <table
  55. cellspacing="0"
  56. border
  57. style="
  58. width: 100%;
  59. table-layout: fixed;
  60. word-break: break-all;
  61. word-wrap: break-word;
  62. font-size: 12px;
  63. border-collapse: collapse;
  64. "
  65. >
  66. <thead>
  67. <tr align="center">
  68. <td style="padding: 5px">产品名称(代号)</td>
  69. <td style="padding: 5px">半成品名称(代号)</td>
  70. <td style="padding: 5px">批号</td>
  71. <td style="padding: 5px">交验数</td>
  72. <td style="padding: 5px">合格数</td>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <tr align="center" v-if="form?.productName">
  77. <td style="padding: 5px">{{ form.luxuryProductName }}</td>
  78. <td style="padding: 5px">{{ form.productName }}</td>
  79. <td style="padding: 5px">{{ form.batchNo }}</td>
  80. <td style="padding: 5px">{{ form.quantity }}</td>
  81. <td style="padding: 5px">{{ form.qualifiedQuantity }}</td>
  82. </tr>
  83. <tr align="center">
  84. <td style="padding: 5px"></td>
  85. <td style="padding: 5px"></td>
  86. <td style="padding: 5px"></td>
  87. <td style="padding: 5px"></td>
  88. <td style="padding: 5px">&nbsp;</td>
  89. </tr>
  90. <tr>
  91. <td colspan="5" style="padding: 5px; text-align: left">
  92. <div style="width: 100%; height: 100px">
  93. 重要记事:
  94. <span v-if="type == 'print'"> {{ form.remark }}</span>
  95. <el-input
  96. v-else
  97. type="textarea"
  98. v-model="form.remark"
  99. autosize
  100. ></el-input>
  101. </div>
  102. </td>
  103. </tr>
  104. </tbody>
  105. </table>
  106. <div
  107. style="
  108. width: 100%;
  109. font-size: 14px;
  110. margin-top: 10px;
  111. display: flex;
  112. justify-content: space-around;
  113. "
  114. >
  115. <div>主管:{{ form.createUserName }}</div>
  116. <div>验收者:{{ form.approvalUserName }}</div>
  117. </div>
  118. </div>
  119. </template>
  120. <script>
  121. import { mapGetters } from 'vuex';
  122. export default {
  123. name: 'print',
  124. computed: {
  125. ...mapGetters(['user'])
  126. },
  127. props: {
  128. type: String
  129. },
  130. data() {
  131. return {
  132. form: {}
  133. };
  134. },
  135. methods: {
  136. async init(row) {
  137. this.form = row||{};
  138. },
  139. getValue() {
  140. return this.form;
  141. },
  142. }
  143. };
  144. </script>
  145. <style lang="scss"></style>