lex-xin 4 rokov pred
rodič
commit
d8c1f46a6f

+ 0 - 1
src/api/systemManage.js

@@ -344,7 +344,6 @@ export function updateEducationTeacherId (data) {
   })
 }
 
-
 // 获取员工所在分部列表(管理员查看所有的分部)
 export function queryEmployeeOrganByUser(data) {
   return request({

BIN
src/assets/images/base/login-bg.png


+ 0 - 1
src/views/arrearage-students/index.vue

@@ -220,7 +220,6 @@ export default {
   mounted() {
     const { query } = this.$route
     if (query.organId) {
-      console.log(query.organId)
       this.searchForm.organIds = [Number(query.organId)]
     }
     if(query.result) {

+ 9 - 12
src/views/businessManager/orderManager/orderAudit-taoqi/index.vue

@@ -20,12 +20,10 @@
                      filterable
                      clearable
                      placeholder="请选择分部">
-            <el-option
-              v-for="(item, index) in selects.branchs"
-              :key="index"
-              :label="item.name"
-              :value="item.id"
-            ></el-option>
+            <el-option v-for="(item,index) in organList"
+                       :key="index"
+                       :label="item.name"
+                       :value="item.id"></el-option>
           </el-select>
         </el-form-item>
         <el-form-item>
@@ -229,13 +227,12 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    // getEmployeeOrgan().then((res) => {
-    //   if (res.code == 200) {
-    //     this.organList = res.data;
-    //   }
-    // });
+    getEmployeeOrgan().then((res) => {
+      if (res.code == 200) {
+        this.organList = res.data;
+      }
+    });
     // 获取分部
-     this.$store.dispatch("setBranchs");
     goodsQuery({ status: 1, rows: 99999 }).then((res) => {
       if (res.code === 200) {
         this.shopList = res.data.rows;

+ 6 - 8
src/views/businessManager/orderManager/orderAudit-taoqi/orderAuditDetail.vue

@@ -29,11 +29,11 @@
           style="width: 100% !important"
         >
           <el-option
-              v-for="(item, index) in selects.branchs"
-              :key="index"
-              :label="item.name"
-              :value="item.id"
-            ></el-option>
+            v-for="(item, index) in organList"
+            :key="index"
+            :label="item.name"
+            :value="item.id"
+          ></el-option>
         </el-select>
       </el-form-item>
       <el-form-item
@@ -303,7 +303,7 @@ import {
 import { orderServerList } from "@/utils/searchArray";
 import { getCooperation } from "@/api/buildTeam";
 export default {
-  props: ["orderId", "shopList", "isLook"],
+  props: ["orderId", "shopList", "organList", "isLook"],
   data() {
     return {
       formLabelWidth: "100px",
@@ -373,8 +373,6 @@ export default {
         }
       });
     }
-    // 获取分部
-     this.$store.dispatch("setBranchs");
   },
   methods: {
     changeOrgin(val) {

+ 2 - 1
src/views/businessManager/orderManager/orderAudit/index.vue

@@ -177,6 +177,7 @@
       <orderAuditDetail
         :orderId="activceId"
         :shopList="shopList"
+        :organList="organList"
         :isLook="isLook"
         ref="orderAuditDetail"
         v-if="orderVisible"
@@ -237,7 +238,7 @@ export default {
         type: null,
       },
       tableList: [],
-      // organList: [],
+      organList: [],
       orderServerList,
       orderAuditTypeList,
       rules: {

+ 8 - 9
src/views/businessManager/orderManager/orderAudit/orderAuditDetail.vue

@@ -29,11 +29,11 @@
           style="width: 100% !important"
         >
           <el-option
-              v-for="(item, index) in selects.branchs"
-              :key="index"
-              :label="item.name"
-              :value="item.id"
-            ></el-option>
+            v-for="(item, index) in organList"
+            :key="index"
+            :label="item.name"
+            :value="item.id"
+          ></el-option>
         </el-select>
       </el-form-item>
       <el-form-item
@@ -291,6 +291,7 @@
     <div
       class="lookTitle"
       v-if="auditStatus == 'ING'"
+      v-permission="'routeOrder/auditOutOrder'"
     >
       审核意见
     </div>
@@ -298,6 +299,7 @@
       :model="submitForm"
       v-if="auditStatus == 'ING'"
       ref="submitForm"
+      v-permission="'routeOrder/auditOutOrder'"
     >
       <el-form-item
         prop="memo"
@@ -326,7 +328,7 @@ import Tooltip from "@/components/Tooltip/index";
 let that;
 export default {
   components: { Tooltip },
-  props: ["orderId", "shopList", "isLook"],
+  props: ["orderId", "shopList", "organList", "isLook"],
   data() {
     return {
       formLabelWidth: "100px",
@@ -389,7 +391,6 @@ export default {
             calenderId: orderInfo.calenderId ? orderInfo.calenderId : "",
           };
           this.auditStatus = orderInfo.auditStatus;
-          console.log(orderInfo)
           this.$set(
             this.form,
             "goodsList",
@@ -400,8 +401,6 @@ export default {
         }
       });
     }
-    // 获取分部
-     this.$store.dispatch("setBranchs");
   },
   methods: {
     changeOrgin(val) {

+ 3 - 3
src/views/teamBuild/signupList.vue

@@ -75,9 +75,6 @@
             延长报名
           </div>
           <div class="newBand" @click="onCreateQRCode('payment')">报名链接</div>
-          <div class="newBand" @click="onCreateQRCode('rePayment')">
-            报名链接(无乐器)
-          </div>
           <div class="newBand" @click="onCreateQRCode('detail')">缴费详情</div>
           <div
             class="newBand"
@@ -111,6 +108,9 @@
           >
             合并学员
           </div>
+          <div class="newBand" style="background-color: #f97215; border: 1px solid #f97215;" @click="onCreateQRCode('rePayment')">
+            报名链接(无乐器)
+          </div>
         </div>
       </div>
       <el-dialog

+ 19 - 4
src/views/teamDetail/components/modals/classroom-setting-item.vue

@@ -15,7 +15,9 @@
         <template slot-scope="scope">
           <div>
             <el-form-item
-              :prop="'classs.' + type + '.cycle.' + scope.$index + '.coreTeacher'"
+              :prop="
+                'classs.' + type + '.cycle.' + scope.$index + '.coreTeacher'
+              "
               label-width="88px"
               :rules="[{ required: true, message: '请选择主教老师' }]"
             >
@@ -25,7 +27,7 @@
                 clearable
                 filterable
               >
-              <!--     @change="changecoreTeacher" -->
+                <!--     @change="changecoreTeacher" -->
                 <el-option
                   v-for="(item, index) in teacherList"
                   :key="index"
@@ -40,7 +42,10 @@
               v-if="
                 activeType != 'HIGH' &&
                 activeType != 'HIGH_ONLINE' &&
-                activeType != 'MUSIC_NETWORK'
+                activeType != 'MUSIC_NETWORK' &&
+                type != 'HIGH' &&
+                type != 'HIGH_ONLINE' &&
+                type != 'MUSIC_NETWORK'
               "
             >
               <!-- <remote-search :commit="'setTeachers'" v-model="form.assistant"  :multiple='true'/> -->
@@ -268,7 +273,17 @@ for (const item of classTimeList) {
 }
 
 export default {
-  props: ["form", "type", "surplustime", "prices", "selectPrice", "holidays","teacherList","activeType",'cooperationList'],
+  props: [
+    "form",
+    "type",
+    "surplustime",
+    "prices",
+    "selectPrice",
+    "holidays",
+    "teacherList",
+    "activeType",
+    "cooperationList",
+  ],
   data() {
     return {
       classTimeListByType,

+ 53 - 48
src/views/teamDetail/components/modals/classroom-setting.vue

@@ -102,9 +102,9 @@
           <courseItem
             :surplustime="surplustime[key]"
             @setUserTime="setUserTime"
-             :teacherList="teacherList"
-             :activeType="activeType"
-              :cooperationList="cooperationList"
+            :teacherList="teacherList"
+            :activeType="activeType"
+            :cooperationList="cooperationList"
             :type="key"
             :form="item"
             :prices="prices"
@@ -156,10 +156,10 @@ import {
 import courseItem from "./classroom-setting-item";
 import { classTimeList } from "@/utils/searchArray";
 import MusicStore from "@/views/resetTeaming/store";
-import { sysConfigList } from '@/api/generalSettings'
+import { sysConfigList } from "@/api/generalSettings";
 import { queryByOrganIdAndCourseType } from "@/views/resetTeaming/api";
 import { isEmpty } from "lodash";
-import classromePreview from './classroom-preview'
+import classromePreview from "./classroom-preview";
 
 const classTimeListByType = {};
 for (const item of classTimeList) {
@@ -205,7 +205,7 @@ export default {
   ],
   components: {
     courseItem,
-    'classrome-preview': classromePreview
+    "classrome-preview": classromePreview,
   },
   data() {
     return {
@@ -269,15 +269,15 @@ export default {
     } catch (error) {}
     this.setCourseTypeListByName();
     this.formatClasss();
-    this.FetchHoliday()
+    this.FetchHoliday();
   },
   methods: {
     async FetchHoliday() {
       try {
         const res = await sysConfigList({
-          group: 'holiday'
-        })
-        this.holidays = JSON.parse(res.data[0].paranValue)
+          group: "holiday",
+        });
+        this.holidays = JSON.parse(res.data[0].paranValue);
       } catch (error) {}
     },
     setCourseTypeListByName() {
@@ -288,9 +288,9 @@ export default {
       this.courseTypeListByName = courseTypeListByName;
     },
     async formatClasss() {
+      let coreid = "";
+      const assistant = [];
       if (this.detail) {
-        let coreid = "";
-        const assistant = [];
         const { classGroupTeacherMapperList } = this.detail;
         for (const item of classGroupTeacherMapperList || []) {
           if (item.teacherRole === "BISHOP") {
@@ -341,6 +341,8 @@ export default {
             cycle: [
               {
                 time: this.selectPrices ? this.selectPrices[key] : undefined,
+                coreTeacher: coreid,
+                assistant: assistant,
               },
             ],
           };
@@ -363,11 +365,13 @@ export default {
       for (const key in this.musicCourseSettings) {
         if (Object.hasOwnProperty.call(this.musicCourseSettings, key)) {
           const allTime = this.musicCourseSettings[key];
-          const useTime = this.musicSurplus[key]
+          const useTime = this.musicSurplus[key];
 
           if (useTime > allTime) {
-            this.$message.error(this.courseTypeListByName[key] + ' 课程时长不足')
-            return
+            this.$message.error(
+              this.courseTypeListByName[key] + " 课程时长不足"
+            );
+            return;
           }
         }
       }
@@ -395,19 +399,19 @@ export default {
                 students: this.studentSubmitedData?.seleched,
                 courseTimes: item.cycle.length,
                 courseTimeDtoList: item.cycle.map((_) => ({
-                  classGroupTeacherMapperList:this.formatTeacher(_),
+                  classGroupTeacherMapperList: this.formatTeacher(_),
                   courseType: key,
                   dayOfWeek: _.dayOfWeek,
                   endClassTime: _.endClassTime,
                   startClassTime: _.startClassTime,
-                  startDate:_.startDate,
-                  endDate:_.endDate,
+                  startDate: _.startDate,
+                  endDate: _.endDate,
                   holiday: _.holiday,
-                  expectCourseNum:_.expectCourseNum
+                  expectCourseNum: _.expectCourseNum,
                 })),
-              }
-              if (type && typeof type === 'string') {
-                data[type] = true
+              };
+              if (type && typeof type === "string") {
+                data[type] = true;
               }
               list.push(data);
             }
@@ -415,11 +419,15 @@ export default {
           try {
             if (this.detail) {
               let result = await classGroupUpdate(list);
-              this.previewVisible = false
+              this.previewVisible = false;
               if (result.code == 207) {
-                await this.$confirm((result.msg || `当前课程课酬预计为0,是否继续`), "提示", {
-                  type: "warning",
-                })
+                await this.$confirm(
+                  result.msg || `当前课程课酬预计为0,是否继续`,
+                  "提示",
+                  {
+                    type: "warning",
+                  }
+                );
                 // obj.allowZeroSalary = true;
                 list.forEach((item) => {
                   item.allowZeroSalary = true;
@@ -430,8 +438,8 @@ export default {
                 return;
               }
               if (result.code == 206) {
-                this.previewVisible = true
-                this.previewList = result.data
+                this.previewVisible = true;
+                this.previewList = result.data;
                 return;
               }
               this.$message.success("排课修改成功");
@@ -478,36 +486,33 @@ export default {
       this.collapses = val;
     },
     changecoreTeacher(val) {},
-    updateMusicSurplus() {
-
-    },
+    updateMusicSurplus() {},
     setUserTime(time, type) {
       // console.log(time, type)
-      this.$set(this.musicSurplus, type, (time || 0))
+      this.$set(this.musicSurplus, type, time || 0);
       // console.log(this.musicSurplus)
-       this.$forceUpdate()
+      this.$forceUpdate();
       // this.$nextTick(res=>{
       //   this.musicSurplus[type] = time;
       //       console.log(this.musicSurplus[type])
       // })
-
     },
-    formatTeacher(row){
-      console.log(row)
-    let arr = []
-      if(row.coreTeacher){
-           let obj ={}
-        obj.teacherRole = 'BISHOP'
-        obj.userId = row.coreTeacher
-        arr.push(obj)
+    formatTeacher(row) {
+      console.log(row);
+      let arr = [];
+      if (row.coreTeacher) {
+        let obj = {};
+        obj.teacherRole = "BISHOP";
+        obj.userId = row.coreTeacher;
+        arr.push(obj);
       }
-      if(row.assistant?.length>0){
-        row.assistant.forEach(ass=>{
-          arr.push({teacherRole:'TEACHING',userId:ass})
-        })
+      if (row.assistant?.length > 0) {
+        row.assistant.forEach((ass) => {
+          arr.push({ teacherRole: "TEACHING", userId: ass });
+        });
       }
-      return arr
-    }
+      return arr;
+    },
   },
   // watch:{
   //   musicSurplus(){

+ 9 - 4
src/views/teamDetail/teamCourseList.vue

@@ -780,6 +780,10 @@ export default {
         this.searchForm.timer = [nowTime, nowTime];
       }
     }
+    // 课程时间段异常,不需要时间搜索
+    if(query.searchType == 'COURSE_TIME_ERROR') {
+      this.searchForm.timer = []
+    }
 
     if (query.organId) {
       this.searchForm.organIdList = Number(query.organId);
@@ -861,10 +865,11 @@ export default {
           count++;
         }
       }
-      if (count <= 0) {
-        this.$message.error("请至少选择一个搜索条件");
-        return false;
-      }
+      //  课程时间段异常,不需要时间搜索,则课表列表搜索可以不要条件搜索
+      // if (count <= 0) {
+      //   this.$message.error("请至少选择一个搜索条件");
+      //   return false;
+      // }
       const { creatTimer, timer, ...rest } = searchForm;
       return {
         ...rest,