quite-team.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <template>
  2. <div>
  3. <el-form
  4. :model="quitForm"
  5. ref="quitForm"
  6. label-width="150px"
  7. :rules="quitRules"
  8. :inline="true"
  9. >
  10. <el-row>
  11. <el-col :span="10">
  12. <el-form-item label="学员姓名" >
  13. <span>{{quitForm.studentName}}</span>
  14. </el-form-item>
  15. </el-col>
  16. <el-col :span="12">
  17. <el-form-item label="乐团名称">
  18. <span>{{quitForm.musicGroupName}}</span>
  19. </el-form-item>
  20. </el-col>
  21. </el-row>
  22. <el-row>
  23. <el-form-item label="是否回访" prop="isVisit" >
  24. <el-radio v-model.trim="quitForm.isVisit" :label="true"
  25. :disabled='isDisabled'
  26. >是</el-radio
  27. >
  28. <el-radio :disabled='isDisabled' v-model.trim="quitForm.isVisit" :label="false"
  29. >否</el-radio
  30. >
  31. </el-form-item>
  32. <el-form-item label="回访时间" v-if="quitForm.isVisit" :rules="[{required: true, message: '请选择回访回访时间'}]">
  33. <el-date-picker
  34. :disabled='isDisabled'
  35. v-model.trim="quitForm.visitTime"
  36. align="right"
  37. type="date"
  38. style="width: 180px !important"
  39. placeholder="选择日期"
  40. value-format="yyyy-MM-dd"
  41. :picker-options="pickerOptions"
  42. ></el-date-picker>
  43. </el-form-item>
  44. </el-row>
  45. <!-- <el-row>
  46. <el-form-item label="是否退费">
  47. <el-radio v-model.trim="quitForm.isQuiteFee" :label="true"
  48. >是</el-radio
  49. >
  50. <el-radio v-model.trim="quitForm.isQuiteFee" :label="false"
  51. >否</el-radio
  52. >
  53. </el-form-item>
  54. </el-row> -->
  55. <!-- v-if="quitForm.isQuiteFee" -->
  56. <div>
  57. <el-row>
  58. <el-form-item
  59. label="退还会员费用"
  60. prop="isReturnMemberFee"
  61. v-if="quitForm.courseViewType == 2"
  62. :rules="[{required: true, message: '请选择是否退还会员费用'}]"
  63. >
  64. <el-radio :disabled='isDisabled' v-model.trim="quitForm.isReturnMemberFee" :label="true"
  65. >是</el-radio
  66. >
  67. <el-radio :disabled='isDisabled' v-model.trim="quitForm.isReturnMemberFee" :label="false"
  68. >否</el-radio
  69. >
  70. </el-form-item>
  71. <el-form-item
  72. label="退还会员金额"
  73. :rules="[{required: true, message: '请输入会员金额'}]"
  74. prop="memberFee"
  75. v-if="
  76. quitForm.isReturnMemberFee
  77. "
  78. >
  79. <el-input
  80. :disabled='isDisabled'
  81. type="number"
  82. v-model.trim="quitForm.memberFee"
  83. style="width: 180px"
  84. >
  85. <template slot="append">元</template>
  86. </el-input>
  87. </el-form-item>
  88. </el-row>
  89. <!-- v-if="activeRow.cloudTeacherAmount > 0" -->
  90. <el-row>
  91. <el-form-item label="退还课程费用" prop="isReturnCourseFee" :rules="[{required: true, message: '请选择是否退还课程费用'}]">
  92. <el-radio :disabled='isDisabled' v-model.trim="quitForm.isReturnCourseFee" :label="true"
  93. >是</el-radio
  94. >
  95. <el-radio :disabled='isDisabled' v-model.trim="quitForm.isReturnCourseFee" :label="false"
  96. >否</el-radio
  97. >
  98. </el-form-item>
  99. <el-form-item
  100. label="退还课程金额"
  101. prop="courseFee"
  102. v-if="
  103. quitForm.isReturnCourseFee
  104. "
  105. >
  106. <el-input
  107. disabled
  108. type="number"
  109. v-model.trim="quitForm.courseFee"
  110. style="width: 180px"
  111. >
  112. <template slot="append">元</template>
  113. </el-input>
  114. </el-form-item>
  115. </el-row>
  116. <el-row>
  117. <el-form-item label="退还乐器费用" prop="isReturnMusicalFee" :rules="[{required: true, message: '请选择是否退还乐器费用'}]">
  118. <el-radio
  119. :disabled='isDisabled'
  120. v-model.trim="quitForm.isReturnMusicalFee"
  121. :label="true"
  122. >是</el-radio
  123. >
  124. <el-radio
  125. :disabled='isDisabled'
  126. v-model.trim="quitForm.isReturnMusicalFee"
  127. :label="false"
  128. >否</el-radio
  129. >
  130. </el-form-item>
  131. <el-form-item
  132. label="退还乐器金额"
  133. prop="musicalFee"
  134. v-if="
  135. quitForm.isReturnMusicalFee
  136. "
  137. >
  138. <el-input
  139. type="number"
  140. disabled
  141. v-model.trim="quitForm.musicalFee"
  142. style="width: 180px"
  143. >
  144. <template slot="append">元</template>
  145. </el-input>
  146. </el-form-item>
  147. </el-row>
  148. <el-row>
  149. <el-form-item
  150. :rules="[{required: true, message: '请选择是否退还教辅费用'}]"
  151. label="退还教辅费用"
  152. prop="isReturnAccessoriesFee"
  153. >
  154. <el-radio
  155. :disabled='isDisabled'
  156. v-model.trim="quitForm.isReturnAccessoriesFee"
  157. :label="true"
  158. >是</el-radio
  159. >
  160. <el-radio
  161. :disabled='isDisabled'
  162. v-model.trim="quitForm.isReturnAccessoriesFee"
  163. :label="false"
  164. >否</el-radio
  165. >
  166. </el-form-item>
  167. <el-form-item
  168. label="退还教辅金额"
  169. prop="accessoriesFee"
  170. v-if="quitForm.isReturnAccessoriesFee"
  171. >
  172. <el-input
  173. disabled
  174. type="number"
  175. v-model.trim="quitForm.accessoriesFee"
  176. style="width: 180px"
  177. >
  178. <template slot="append">元</template>
  179. </el-input>
  180. </el-form-item>
  181. </el-row>
  182. <el-row>
  183. <el-form-item
  184. label="退还乐保费用"
  185. :rules="[{required: true, message: '请选择是否退还乐保费用'}]"
  186. prop="isReturnMaintenanceFee"
  187. v-if="quitForm.hasMaintenance"
  188. >
  189. <el-radio
  190. :disabled='isDisabled'
  191. v-model.trim="quitForm.isReturnMaintenanceFee" :label="true"
  192. >是</el-radio
  193. >
  194. <el-radio
  195. :disabled='isDisabled'
  196. v-model.trim="quitForm.isReturnMaintenanceFee" :label="false"
  197. >否</el-radio
  198. >
  199. </el-form-item>
  200. <el-form-item
  201. label="退还乐保金额"
  202. :rules="[{required: true, message: '请输入乐保金额'}]"
  203. prop="maintenanceFee"
  204. v-if="quitForm.hasMaintenance&&quitForm.isReturnMaintenanceFee"
  205. >
  206. <el-input
  207. type="number"
  208. v-model="quitForm.maintenanceFee"
  209. style="width: 180px"
  210. >
  211. <template slot="append">元</template>
  212. </el-input>
  213. </el-form-item>
  214. </el-row>
  215. </div>
  216. <el-row>
  217. <el-form-item label="申请理由" prop="userComment">
  218. <el-input
  219. type="textarea"
  220. :rows="3"
  221. :disabled='isDisabled'
  222. v-model.trim="quitForm.userComment"
  223. style="width: 455px !important"
  224. ></el-input>
  225. </el-form-item>
  226. </el-row>
  227. <el-form-item label="审批理由" prop="reason">
  228. <el-input
  229. :disabled='isDisabled'
  230. type="textarea"
  231. :rows="3"
  232. v-model.trim="quitForm.reason"
  233. style="width: 455px !important"
  234. ></el-input>
  235. </el-form-item>
  236. </el-form>
  237. </div>
  238. </template>
  239. <script>
  240. export default {
  241. props: ["quitForm",'isDisabled'],
  242. mounted() {
  243. console.log("quitForm", this.quitForm);
  244. },
  245. data() {
  246. return {
  247. quitRules: {
  248. isCloudTeacherAmount: [{ required: true, message: "请输入云教练费用" }],
  249. cloudTeacherAmount: [
  250. { required: true, message: "请输入云教练金额", trigger: "blur" },
  251. ],
  252. isRefundCourseFee: [
  253. { required: true, message: "请选择是否退还课程费用" },
  254. ],
  255. isRefundInstrumentFee: [
  256. { required: true, message: "选择是否退还乐器费用" },
  257. ],
  258. isRefundTeachingAssistantsFee: [
  259. { required: true, message: "选择是否退还教辅费用" },
  260. ],
  261. isMaintenanceFee: [{ required: true, message: "选择是否退还乐保费用" }],
  262. maintenanceFee: [{ required: true, message: "请输入退还乐保金额" }],
  263. reason: [{ required: true, message: "请填写退团退费原因" }],
  264. isRefundMemberFee: [
  265. { required: true, message: "请选择是否退还会员费用" },
  266. ],
  267. },
  268. pickerOptions: {
  269. firstDayOfWeek: 1,
  270. disabledDate(time) {
  271. return time.getTime() > new Date().getTime();
  272. },
  273. },
  274. };
  275. },
  276. };
  277. </script>
  278. <style lang="scss" scoped>
  279. </style>