Explorar o código

新增vip学员

加可排课数
mo %!s(int64=2) %!d(string=hai) anos
pai
achega
0e7c73d452
Modificáronse 1 ficheiros con 31 adicións e 10 borrados
  1. 31 10
      src/views/vipClass/vipDetail/components/vipStudentList.vue

+ 31 - 10
src/views/vipClass/vipDetail/components/vipStudentList.vue

@@ -48,6 +48,7 @@
         </el-table-column>
         <el-table-column label="手机号" align="center" prop="phone" width="180">
         </el-table-column>
+
         <el-table-column prop="studentStatus" align="center" label="学员状态">
           <template slot-scope="scope">
             <div>
@@ -62,6 +63,7 @@
             </div>
           </template>
         </el-table-column>
+
         <el-table-column prop="applyDate" align="center" label="报名时间">
           <template slot-scope="scope">
             <div>
@@ -172,11 +174,21 @@
             </div>
           </template>
         </el-table-column>
+                <el-table-column
+          label="剩余排课数"
+          align="center"
+          prop="totalClassTimes"
+        >
+        <template slot-scope="scope">
+          <div>
+            {{scope.row.totalClassTimes}}节
+          </div>
+        </template>
+        </el-table-column>
         <el-table-column prop="studentId" label="线上课单价">
           <!--    v-if="activeStudent == scope.row.id" 202109/10跟辜经理确认过所有乐理课也不能改钱-->
           <template slot-scope="scope">
             <el-input-number
-
               style="width: 90% !important"
               class="number-input"
               v-model="scope.row.onlineClassesUnitPrice"
@@ -191,7 +203,6 @@
           <!--    v-if="activeStudent == scope.row.id" -->
           <template slot-scope="scope">
             <el-input-number
-
               style="width: 90% !important"
               class="number-input"
               v-model="scope.row.offlineClassesUnitPrice"
@@ -573,18 +584,28 @@ export default {
                 //     this.leaveSchool(scope);
                 //   })
                 //   .catch((res) => {});
-                scope.row.fee = res.data.suplusCourseFee
-              const h = this.$createElement;
+                scope.row.fee = res.data.suplusCourseFee;
+                const h = this.$createElement;
                 this.$msgbox({
                   title: "消息",
-                  closeOnClickModal:false,
+                  closeOnClickModal: false,
                   message: h("p", null, [
                     h("p", null, "请输入退课金额 "),
-                    h("input", { class: "el-input__inner",'attrs':{'value':res.data.suplusCourseFee},'on':{input:function(event){
-                        scope.row.fee = event.target.value;
-                     this.$emit('input',event.target.value)
-                    }.bind(this)}}),
-                    h('p',{style: "color: red;marginTop:20px"},"退费金额暂不进入账户余额")
+                    h("input", {
+                      class: "el-input__inner",
+                      attrs: { value: res.data.suplusCourseFee },
+                      on: {
+                        input: function (event) {
+                          scope.row.fee = event.target.value;
+                          this.$emit("input", event.target.value);
+                        }.bind(this),
+                      },
+                    }),
+                    h(
+                      "p",
+                      { style: "color: red;marginTop:20px" },
+                      "退费金额暂不进入账户余额"
+                    ),
                   ]),
                   showCancelButton: true,
                   confirmButtonText: "确定",