Browse Source

fix: 零星收费

lex-wxl 1 month ago
parent
commit
1dc766055b
1 changed files with 35 additions and 2 deletions
  1. 35 2
      src/views/sporadicManager/sporadicList.vue

+ 35 - 2
src/views/sporadicManager/sporadicList.vue

@@ -14,6 +14,7 @@
       >
         <el-form-item>
           <el-input
+            style="width: 100% !important"
             placeholder="标题或学生姓名"
             clearable
             v-model.trim="searchForm.search"
@@ -215,6 +216,7 @@
       width="675px"
     >
       <el-form
+        v-if="zeroVisible1"
         :model="maskForm"
         :rules="maskRules"
         label-width="90px"
@@ -330,6 +332,16 @@
             ></el-option>
           </el-select>
         </el-form-item>
+        <el-form-item
+          label="是否支持注册"
+          prop="isSupportUserRegister"
+          label-width="120px"
+        >
+          <el-radio-group v-model="maskForm.isSupportUserRegister" :disabled="!isNew">
+            <el-radio :label="1">支持</el-radio>
+            <el-radio :label="0">不支持</el-radio>
+          </el-radio-group>
+        </el-form-item>
         <el-form-item label="查看链接" v-if="!isNew">
           <el-input
             style="width: 400px !important"
@@ -369,6 +381,7 @@
       width="650px"
     >
       <el-form
+        v-if="zeroVisible1"
         :model="maskForm1"
         :rules="maskRules1"
         label-width="90px"
@@ -441,6 +454,16 @@
             ></el-option>
           </el-select>
         </el-form-item>
+        <el-form-item
+          label="是否支持注册"
+          prop="isSupportUserRegister"
+          label-width="120px"
+        >
+          <el-radio-group v-model="maskForm.isSupportUserRegister" :disabled="!isNew1">
+            <el-radio :label="1">支持</el-radio>
+            <el-radio :label="0">不支持</el-radio>
+          </el-radio-group>
+        </el-form-item>
         <el-form-item label="查看链接" v-if="!isNew1">
           <el-input
             style="width: 400px !important"
@@ -574,6 +597,7 @@ export default {
         title: "",
         code: "",
         musicGroupId: "",
+        isSupportUserRegister: 0,
         maxAmount: null,
         openMaxTerm: null,
         subMoney: ""
@@ -614,6 +638,7 @@ export default {
         desc: null,
         title: null,
         code: null,
+        isSupportUserRegister: 0,
         musicGroupId: null,
         studentId: null,
         studentName: null
@@ -692,6 +717,7 @@ export default {
           money: null,
           maxAmount: null,
           openMaxTerm: null,
+          isSupportUserRegister: 0,
           desc: null,
           title: null,
           code: null
@@ -704,6 +730,7 @@ export default {
           desc: null,
           title: null,
           code: null,
+          isSupportUserRegister: 0,
           studentId: null,
           studentName: null
         };
@@ -739,7 +766,7 @@ export default {
         this.title1 = "查看个人收费";
         let url =
           vaildStudentUrl() +
-          `/#/sporadicPay?id=${row.id}&userId=${row.userId}`;
+          `/#/sporadicPay?id=${row.id}&userId=${row.userId}&isRegister=${row.isSupportUserRegister? 1 : 0}`;
         this.qrCodeUrl = url;
         maskForm.code = url;
         maskForm.studentId = row.userId;
@@ -749,10 +776,12 @@ export default {
         this.isNew = false;
         this.zeroVisible = true;
         this.title = "查看公用收费";
-        let url = vaildStudentUrl() + `/#/sporadicLogin?id=${row.id}`;
+        let url = vaildStudentUrl() + `/#/sporadicLogin?id=${row.id}&isRegister=${row.isSupportUserRegister? 1 : 0}`;
         this.qrCodeUrl = url;
         maskForm.code = url;
       }
+      console.log(row, "row")
+      maskForm.isSupportUserRegister = row.isSupportUserRegister ? 1 : 0;
       maskForm.type = parseInt(row.chargeType);
       maskForm.id = row.id;
       maskForm.desc = row.detail;
@@ -765,6 +794,7 @@ export default {
       maskForm.maxAmount = row.maxAmount;
       maskForm.openMaxTerm = row.openMaxTerm;
       maskForm.musicGroupId = row.musicGroupId ? row.musicGroupId : null;
+      console.log(maskForm, "maskForm")
       if (row.userId) {
         queryUserMusicInfos({ userId: row.userId }).then(studentInfo => {
           if (studentInfo.code == 200) {
@@ -824,6 +854,7 @@ export default {
             detail: maskForm.desc,
             title: maskForm.title,
             organId: maskForm.organId ? maskForm.organId.join(",") : "",
+            isSupportUserRegister: maskForm.isSupportUserRegister ? true : false,
             amount: maskForm.money,
             musicGroupId: maskForm.musicGroupId,
             discountAmount: maskForm.subMoney
@@ -856,6 +887,7 @@ export default {
             detail: maskForm1.desc,
             title: maskForm1.title,
             musicGroupId: this.maskForm1.musicGroupId,
+            isSupportUserRegister: maskForm1.isSupportUserRegister ? true : false,
             userId: maskForm1.studentId,
             amount: maskForm1.money
           };
@@ -1023,6 +1055,7 @@ export default {
           title: "",
           maxAmount: null,
           openMaxTerm: null,
+          isSupportUserRegister: 0,
           code: ""
         };
         // this.$refs['maskForm'].resetFields()