do-and-check.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <view class="com-plan-content">
  3. <view class="title">
  4. <text>{{ title }}</text>
  5. </view>
  6. <template v-for="(item, i) in list">
  7. <view class="item-view">
  8. <view class="top-action">
  9. <text>改善确认(1)</text>
  10. <text class="blue-text">删除</text>
  11. </view>
  12. <view class="main">
  13. <view class="row">
  14. <view class="label-view">
  15. <text>过程记录</text>
  16. </view>
  17. <view class="content">
  18. <textarea class="textarea"
  19. :key="title"
  20. placeholder="请输入"
  21. placeholder-style="color: #B8BECC"
  22. :maxlength="-1"
  23. auto-height
  24. />
  25. </view>
  26. </view>
  27. <view class="row row-heigth">
  28. <view class="label-view">
  29. <text>计划日期</text>
  30. </view>
  31. <view class="content">
  32. <text>选择计划日期</text>
  33. </view>
  34. </view>
  35. <tm-upload-img
  36. :filePaths="['/static/img-icon.png', '/static/img-icon.png']"
  37. />
  38. </view>
  39. </view>
  40. </template>
  41. <view class="add-btn" @click="addRecord">
  42. <text class="blue-text">
  43. <text class="big">+</text>
  44. 增加一条记录
  45. </text>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. // 执行过程记录(Do)和 改善确认(Check)
  51. export default {
  52. props: {
  53. // 多行文本框标题
  54. title: {
  55. type: String,
  56. default: '执行过程记录(Do)'
  57. }
  58. },
  59. data() {
  60. return {
  61. // list长度 控制个数
  62. list: [
  63. {gcjl: '', date: '', imgPath: '' },
  64. {gcjl: '', date: '', imgPath: '' }
  65. ]
  66. }
  67. },
  68. methods: {
  69. changeVal(e) {
  70. if(this.label === '改善计划'){
  71. this.planvalue = e.target.value;
  72. }else {
  73. this.actionvalue = e.target.value;
  74. }
  75. },
  76. // 新增一条记录
  77. addRecord() {
  78. this.list = [...this.list, {gcjl: '', date: '', imgPath: '' }]
  79. }
  80. },
  81. }
  82. </script>
  83. <style lang="less">
  84. .com-plan-content {
  85. height: 100%;
  86. padding-top: 35rpx;
  87. .title {
  88. line-height: 35rpx;
  89. padding: 0 25rpx;
  90. text {
  91. font-size: 35rpx;
  92. color: #292C33;
  93. }
  94. }
  95. .blue-text {
  96. font-size: 23.75rpx;
  97. color: #3377FF !important;
  98. .big {
  99. font-size: 28.75rpx;
  100. }
  101. }
  102. .item-view {
  103. .top-action {
  104. display: flex;
  105. align-items: center;
  106. justify-content: space-between;
  107. margin-top: 25rpx;
  108. margin-bottom: 15rpx;
  109. height: 22.5rpx;
  110. padding: 0 25rpx;
  111. text {
  112. font-size: 22.5rpx;
  113. color: #666F80;
  114. }
  115. }
  116. .main {
  117. background-color: #fff;
  118. .row {
  119. display: flex;
  120. border-bottom: 0.62rpx solid #DADEE6;
  121. padding-left: 25rpx;
  122. .label-view {
  123. width: 175rpx;
  124. line-height: 22.5rpx;
  125. padding: 31.25rpx 0;
  126. >text {
  127. font-size: 22.5rpx;
  128. color: #666F80;
  129. }
  130. }
  131. .content {
  132. flex: 1;
  133. padding: 25rpx 0;
  134. .textarea {
  135. width: 100%;
  136. min-height: 200rpx;
  137. padding: 0 25rpx;
  138. line-height: 38rpx;
  139. font-size: 22.5rpx;
  140. color: #525866;
  141. box-sizing: border-box;
  142. }
  143. >text {
  144. font-size: 22.5rpx;
  145. color: #B8BECC;
  146. }
  147. }
  148. }
  149. .row-heigth {
  150. .label-view {
  151. line-height: 22.5rpx;
  152. padding: 31.25rpx 0;
  153. }
  154. }
  155. }
  156. }
  157. .add-btn {
  158. display: flex;
  159. justify-content: center;
  160. align-items: center;
  161. height: 75rpx;
  162. background-color: #fff;
  163. border-top: 0.62rpx solid #DADEE6;
  164. }
  165. }
  166. </style>