user-baseinfo.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <el-form
  3. label-width="160px"
  4. :model="form"
  5. ref="form"
  6. label-suffix=": "
  7. >
  8. <el-form-item
  9. label="缴费类型"
  10. prop="leixing"
  11. :rules="[{required: true, message: '请选择缴费类型', trigger: 'change'}]"
  12. v-if="typeof paymentType === 'undefined'"
  13. >
  14. <el-radio-group style="width: 100%" v-model="form.leixing">
  15. <el-radio label="1">乐团课程</el-radio>
  16. <el-radio label="2">临时加课</el-radio>
  17. </el-radio-group>
  18. </el-form-item>
  19. <!-- <el-form-item
  20. label="乐团模式"
  21. prop="moshi"
  22. v-if="isCommon"
  23. :rules="[{required: true, message: '请选择乐团模式', trigger: 'change'}]"
  24. >
  25. <el-select
  26. style="width: 100%!important;"
  27. v-model="form.moshi"
  28. placeholder="请选择乐团模式"
  29. @change="$listeners.getCharges"
  30. >
  31. <el-option
  32. v-for="item in typeList"
  33. :key="item.id"
  34. :label="item.name"
  35. :value="item.id">
  36. </el-option>
  37. </el-select>
  38. </el-form-item> -->
  39. <el-form-item
  40. label="收费标准"
  41. prop="musicGroupOrganizationCourseSettingId"
  42. v-if="isCommon"
  43. :rules="[{required: true, message: '请选择收费标准', trigger: 'change'}]"
  44. >
  45. <el-select style="width: 100%!important;" v-model="form.musicGroupOrganizationCourseSettingId" placeholder="请选择收费标准">
  46. <el-option
  47. v-for="item in charges"
  48. :key="item.id"
  49. :label="item.name"
  50. :value="item.id">
  51. </el-option>
  52. </el-select>
  53. </el-form-item>
  54. <el-alert
  55. :closable="false"
  56. style="margin-left: 160px;width: auto;"
  57. v-if="paymentType != 0 && isCommon"
  58. type="warning">
  59. <template #title>
  60. <p>该乐团为3.0模式,若需创建其他模式的收费标准,请先乐团基本信息的乐团模式
  61. <strong style="font-weight: 600;margin-left: 10px;cursor: pointer;" @click="$listeners.changeActive({name: '1'})">立即修改>></strong>
  62. </p>
  63. </template>
  64. </el-alert>
  65. </el-form>
  66. </template>
  67. <script>
  68. export default {
  69. props: ['form', 'isCommon', 'isUserType', 'typeList', 'charges', 'paymentType'],
  70. mounted() {
  71. console.log(this.form)
  72. },
  73. }
  74. </script>
  75. <style lang="less" scoped>
  76. .number-input{
  77. /deep/ .el-input__inner {
  78. text-align: left;
  79. }
  80. width: 100%;
  81. }
  82. </style>