Переглянути джерело

修复缴费金额设置

1
mo 3 роки тому
батько
коміт
8e8ab7d90c

+ 2 - 3
src/views/chargeManager/two.vue

@@ -210,11 +210,11 @@ export default {
     onSporadicSubmit(formName) {
       this.$refs[formName].validate(valid => {
         if (valid) {
-          let params = {
+          let params = [{
             id: this.sporadicId,
             paranValue: JSON.stringify(this.formSporadic),
             paramName: "sporadic_channel"
-          };
+          }];
           sysConfigUpdate(params).then(res => {
             if (res.code == 200) {
               this.messageTips("保存", res);
@@ -243,7 +243,6 @@ export default {
           res.data.forEach((item, index) => {
             if (item.paramName === "amount_channel") {
               paranValue = item.paranValue ? JSON.parse(item.paranValue) : [];
-              con
               this.selectId = item.id;
               if(paranValue.length > 0) {
                 this.result.domains = []

+ 86 - 8
src/views/resetTeaming/components/payInfoDetail.vue

@@ -7,13 +7,64 @@
     >
     </el-page-header>
     <div class="m-core">
-      <el-form >
-        <el-alert
-          style="margin: 20px 0"
-          title="缴费基本信息"
-          :closable="false"
-          type="info"
-        ></el-alert>
+      <el-form :inline="true" :model="form">
+        <div class="payTitle">
+          <div class="squrt"></div>
+          <p>基础信息设置</p>
+        </div>
+        <el-form-item   :rules="[{ required: false, message: '请选择缴费时间', trigger: 'blur' }]">
+          <template slot="label">
+            <p style="position: relative">
+              缴费时间
+              <el-tooltip placement="top" popper-class="mTooltip">
+                <div slot="content">在改时间段内学员才可缴费</div>
+                <i
+                  class="el-icon-question"
+                  style="
+                    font-size: 18px;
+                    color: #f56c6c;
+                    position: relative;
+                    top: 2px;
+                  "
+                ></i>
+              </el-tooltip>
+            </p>
+          </template>
+          <el-date-picker
+            v-model="form.paymentDate"
+            type="daterange"
+            style="width: 400px"
+            :picker-options="pickerOptions"
+            range-separator="至"
+            start-placeholder="开始日期"
+            end-placeholder="结束日期"
+          >
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item
+          label="备注"
+          prop="memo"
+          :rules="[{ required: false, message: '请输入备注', trigger: 'blur' }]"
+        >
+          <template slot="label">
+            <p style="position: relative">
+              备注
+              <el-tooltip placement="top" popper-class="mTooltip">
+                <div slot="content">本次缴费的内容描述</div>
+                <i
+                  class="el-icon-question"
+                  style="
+                    font-size: 18px;
+                    color: #f56c6c;
+                    position: relative;
+                    top: 2px;
+                  "
+                ></i>
+              </el-tooltip>
+            </p>
+          </template>
+          <el-input type="textarea" v-model="form.memo"></el-input>
+        </el-form-item>
       </el-form>
     </div>
   </div>
@@ -21,7 +72,11 @@
 <script>
 export default {
   data() {
-    return {};
+    return {
+      form: {
+        memo: "",
+      },
+    };
   },
   mounted() {},
   methods: {
@@ -50,3 +105,26 @@ export default {
   },
 };
 </script>
+<style lang="scss" scoped>
+.payTitle {
+  display: flex;
+  flex-direction: row;
+  align-items: center;
+  font-size: 18px;
+  font-weight: 600;
+  color: #1a1a1a;
+  height: 25px;
+
+  p {
+    line-height: 25px;
+  }
+  .squrt {
+    width: 4px;
+    height: 16px;
+    background: #14928a;
+    margin-right: 5px;
+    position: relative;
+    top: -1px;
+  }
+}
+</style>

+ 1 - 1
src/views/studentManager/components/studentInfo.vue

@@ -71,7 +71,7 @@
                 是否是新用户
                 <el-tooltip placement="top" popper-class="mTooltip">
                   <div slot="content">
-                    没有有效的VIP课程或未参与2020年双十一活动的用户为新用户
+                    在改时间段内学员才可缴费
                   </div>
                   <i
                     class="el-icon-question"