chunk-402666c2.83d5625c.js.map 17 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/order.vue?a585","webpack:///./src/views/order.vue?06c8","webpack:///src/views/order.vue","webpack:///./src/views/order.vue?9644","webpack:///./src/views/order.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","attrs","voicyPartList","on","onChange","model","value","callback","$$v","voicyPart","expression","_s","schoolName","_l","data","index","key","id","userName","amount","payTime","name","grade","gClass","subName","split","reverse","remark","pushStatus","status","$event","adjust","couresList","adjustStatus","adjustSelect","staticRenderFns","component"],"mappings":"kHAAA,yBAAmiB,EAAG,G,gECAtiB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,SAAS,CAACJ,EAAIO,GAAG,kBAAkBH,EAAG,oBAAoB,CAACA,EAAG,oBAAoB,CAACI,MAAM,CAAC,QAAUR,EAAIS,eAAeC,GAAG,CAAC,OAASV,EAAIW,UAAUC,MAAM,CAACC,MAAOb,EAAa,UAAEc,SAAS,SAAUC,GAAMf,EAAIgB,UAAUD,GAAKE,WAAW,gBAAgB,IAAI,GAAGb,EAAG,KAAK,CAACJ,EAAIO,GAAGP,EAAIkB,GAAGlB,EAAImB,eAAef,EAAG,WAAW,CAACA,EAAG,UAAU,CAACI,MAAM,CAAC,MAAQ,SAAS,CAACJ,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,QAAQA,EAAG,OAAO,CAACJ,EAAIO,GAAG,QAAQH,EAAG,OAAO,CAACJ,EAAIO,GAAG,QAAQH,EAAG,OAAO,CAACJ,EAAIO,GAAG,UAAUH,EAAG,OAAO,CAACJ,EAAIO,GAAG,YAAYH,EAAG,MAAM,CAACE,YAAY,WAAWN,EAA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R,aACQ,KAAR,GACQ,OAAR,GACQ,MAAR,mBACQ,KAAR,gBACQ,KAAR,sBACA,iBACQ,EAAR,gCAGI,aA1BJ,SA0BA,GAAM,IAAN,OACM,KAAN,iDACQ,SAAR,KACQ,MAAR,QACQ,OAAR,yBACA,iBACA,mBACU,EAAV,mBACU,EAAV,6BACU,EAAV,oBAII,OAvCJ,SAuCA,GAEA,+BACQ,KAAR,gBACQ,KAAR,kBAGI,SA9CJ,SA8CA,GAAM,IAAN,OAEA,QACM,KAAN,aAAQ,MAAR,IACM,KAAN,kCACQ,GAAR,YAEU,IAAV,cACU,EAAV,sBC3K+U,I,wBCQ3UC,EAAY,eACd,EACA5C,EACA2C,GACA,EACA,KACA,WACA,MAIa,aAAAC,E","file":"js/chunk-402666c2.83d5625c.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./order.vue?vue&type=style&index=0&id=74e82e8e&lang=less&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./order.vue?vue&type=style&index=0&id=74e82e8e&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"order\"},[_c('header',[_vm._v(\"支付列表\\n \"),_c('van-dropdown-menu',[_c('van-dropdown-item',{attrs:{\"options\":_vm.voicyPartList},on:{\"change\":_vm.onChange},model:{value:(_vm.voicyPart),callback:function ($$v) {_vm.voicyPart=$$v},expression:\"voicyPart\"}})],1)],1),_c('h2',[_vm._v(_vm._s(_vm.schoolName))]),_c('van-tabs',[_c('van-tab',{attrs:{\"title\":\"缴费信息\"}},[_c('div',{staticClass:\"orderList\"},[_c('div',{staticClass:\"table\"},[_c('div',{staticClass:\"title\"},[_c('span'),_c('span',[_vm._v(\"姓名\")]),_c('span',[_vm._v(\"声部\")]),_c('span',[_vm._v(\"支付金额\")]),_c('span',[_vm._v(\"到账时间\")])]),_c('div',{staticClass:\"content\"},_vm._l((_vm.dataList),function(data,index){return _c('div',{key:data.id},[_c('span',[_vm._v(\" \"+_vm._s(++index)+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(data.userName)+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(data.voicyPart)+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(data.amount)+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(data.payTime)+\" \")])])}),0)])])]),_c('van-tab',{attrs:{\"title\":\"报名信息\"}},[_c('div',{staticClass:\"table\"},[_c('div',{staticClass:\"title\"},[_c('span'),_c('span',[_vm._v(\"姓名\")]),_c('span',[_vm._v(\"班级\")]),_c('span',[_vm._v(\"声部\")]),_c('span',[_vm._v(\"备注\")]),_c('span',[_vm._v(\"调剂\")])]),_c('div',{staticClass:\"content\"},_vm._l((_vm.studentList),function(data,index){return _c('div',{key:data.id},[_c('span',[_vm._v(\" \"+_vm._s(++index)+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(data.name)+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(data.grade + data.gClass)+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(data.subName ? data.subName.split('.').reverse()[0] : data.subName)+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(data.remark)+\" \")]),_c('span',[_c('van-button',{attrs:{\"disabled\":data.pushStatus <= 1 && data.status == 0 ? false : true,\"round\":\"\",\"type\":\"danger\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.adjust(data)}}},[_vm._v(\"调剂\")])],1)])}),0)]),_c('van-action-sheet',{attrs:{\"actions\":_vm.couresList,\"cancel-text\":\"取消\"},on:{\"cancel\":function($event){_vm.adjustStatus = false},\"select\":_vm.adjustSelect},model:{value:(_vm.adjustStatus),callback:function ($$v) {_vm.adjustStatus=$$v},expression:\"adjustStatus\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"order\">\r\n <header>支付列表\r\n <van-dropdown-menu>\r\n <van-dropdown-item @change=\"onChange\" v-model=\"voicyPart\" :options=\"voicyPartList\" />\r\n </van-dropdown-menu>\r\n </header>\r\n <h2>{{schoolName}}</h2>\r\n <van-tabs>\r\n <van-tab title=\"缴费信息\">\r\n <div class=\"orderList\">\r\n <div class=\"table\">\r\n <div class=\"title\">\r\n <span></span>\r\n <span>姓名</span>\r\n <span>声部</span>\r\n <span>支付金额</span>\r\n <span>到账时间</span>\r\n </div>\r\n <div class=\"content\">\r\n <div v-for=\"(data, index) in dataList\" :key=\"data.id\">\r\n <!-- <div> -->\r\n <span> {{ ++index }} </span>\r\n <span> {{ data.userName }} </span>\r\n <span> {{ data.voicyPart }} </span>\r\n <span> {{ data.amount }} </span>\r\n <span> {{ data.payTime }} </span>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n </div>\r\n </van-tab>\r\n <van-tab title=\"报名信息\">\r\n <div class=\"table\">\r\n <div class=\"title\">\r\n <span></span>\r\n <span>姓名</span>\r\n <span>班级</span>\r\n <span>声部</span>\r\n <span>备注</span>\r\n <span>调剂</span>\r\n </div>\r\n <div class=\"content\">\r\n <div v-for=\"(data, index) in studentList\" :key=\"data.id\">\r\n <!-- <div> -->\r\n <span> {{ ++index }} </span>\r\n <span> {{ data.name }} </span>\r\n <span> {{ data.grade + data.gClass }} </span>\r\n <span> {{ data.subName ? data.subName.split('.').reverse()[0] : data.subName }} </span>\r\n <span> {{ data.remark }} </span>\r\n <span> <van-button \r\n :disabled=\"data.pushStatus <= 1 && data.status == 0 ? false : true\" \r\n round \r\n @click = \"adjust(data)\"\r\n type = \"danger\" \r\n size = \"small\">调剂</van-button> \r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n <van-action-sheet\r\n v-model=\"adjustStatus\"\r\n :actions=\"couresList\"\r\n cancel-text=\"取消\"\r\n @cancel=\"adjustStatus = false\"\r\n @select=\"adjustSelect\" />\r\n </van-tab>\r\n </van-tabs>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport qs from 'qs'\r\nexport default {\r\n name: 'order',\r\n data() {\r\n return {\r\n classId: this.$route.query.classId,\r\n schoolName: this.$route.query.schoolName,\r\n dataList: {}, // 订单列表\r\n studentList: {}, // 学生列表\r\n couresList: [], // 课程列表\r\n voicyPart: 0,\r\n voicyPartList: [{\r\n text: '全部声部',\r\n value: 0\r\n }],\r\n adjustStatus: false, //\r\n changeStudent: null, // 修改的学生对象\r\n }\r\n },\r\n mounted() {\r\n // 获取所有课程\r\n this.$axios.post('/user/getCourses ', qs.stringify({\r\n clazzId: this.classId\r\n })).then(c => {\r\n let result = c.data.data\r\n result.forEach(r => {\r\n this.couresList.push({\r\n name: r.subName.split('.').reverse()[0],\r\n subId: r.subId,\r\n id: r.id\r\n })\r\n\r\n this.voicyPartList.push({\r\n text: r.subName.split('.').reverse()[0],\r\n value: r.subId\r\n })\r\n })\r\n })\r\n \r\n // 获取订单信息\r\n this.getOrderList()\r\n // 获取学生列表信息\r\n this.getStudents()\r\n },\r\n methods: {\r\n getOrderList(voicyPart) {\r\n // 获取订单信息\r\n this.$axios.post('/order/checkOrderList', qs.stringify({\r\n classId: this.classId,\r\n voicyPart: voicyPart ? voicyPart : '',\r\n type: 1\r\n })).then(r => {\r\n this.dataList = r.data.data\r\n })\r\n },\r\n getStudents(item) {\r\n if(!item) {\r\n item = {}\r\n }\r\n this.$axios.post('/user/getMusicTeamStu', qs.stringify({\r\n musicTeamId: this.classId, // 乐团Id\r\n name: '', // 学生姓名\r\n status: '', // 学生状态\r\n subId: item.subId ? item.subId : '', // 声部编号\r\n page: item.page ? item.page : 1, //默认1第一页\r\n rows: item.rows ? item.rows : 9999 // 默认20条数据\r\n })).then(r => {\r\n this.studentList = r.data.data.rows\r\n })\r\n },\r\n adjustSelect(item) {\r\n this.$axios.post('/user/updateUserSub', qs.stringify({\r\n courseId: item.id,\r\n subId: item.subId,\r\n userId: this.changeStudent.id\r\n })).then(student => {\r\n if(student.data.code == 200) {\r\n this.$toast(student.data.msg)\r\n this.changeStudent.subName = item.name\r\n this.adjustStatus = false\r\n }\r\n })\r\n },\r\n adjust(item) {\r\n // 开始调剂\r\n if(item.pushStatus <= 1 && item.status == 0) {\r\n this.adjustStatus = true\r\n this.changeStudent = item\r\n }\r\n },\r\n onChange(value) {\r\n // 切换声部时\r\n let subId = value ? value : ''\r\n this.getStudents({ subId: subId })\r\n this.voicyPartList.forEach(vp => {\r\n if(vp.value == value) {\r\n // 如果选择全部则传空\r\n let text = value ? vp.text : ''\r\n this.getOrderList(text)\r\n }\r\n })\r\n \r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"less\" scoped>\r\n.order {\r\n background: #fff;\r\n min-height: 100vh;\r\n}\r\nheader {\r\n height: .40rem;\r\n line-height: .40rem;\r\n color: #000;\r\n font-size: .17rem;\r\n background: #fff;\r\n box-shadow: 0px 1px 8px 0px rgba(0,0,0,0.07);\r\n text-align: center;\r\n}\r\nh2 {\r\n font-size: .16rem;\r\n color: #fff;\r\n padding: .1rem 0;\r\n text-align: center;\r\n background: #14928a;\r\n}\r\n\r\n\r\n.table {\r\n .title {\r\n display: flex;\r\n align-items: center;\r\n text-align: center;\r\n border-bottom: 1px solid #eaeaea;\r\n }\r\n\r\n span {\r\n flex: 1;\r\n padding: .08rem 0;\r\n font-size: .14rem;\r\n &:first-child {\r\n width: .3rem;\r\n flex: inherit;\r\n }\r\n }\r\n\r\n .content > div{\r\n // border: 1px solid #ccc;\r\n // border-left: 0;\r\n // border-right: 0;\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n text-align: center;\r\n &:nth-child(2n+2) {\r\n background: #eaeaea;\r\n }\r\n\r\n }\r\n}\r\n/deep/.van-dropdown-menu {\r\n height: .4rem;\r\n position: absolute;\r\n right: .15rem;\r\n top: 0;\r\n}\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./order.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./order.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./order.vue?vue&type=template&id=74e82e8e&scoped=true&\"\nimport script from \"./order.vue?vue&type=script&lang=js&\"\nexport * from \"./order.vue?vue&type=script&lang=js&\"\nimport style0 from \"./order.vue?vue&type=style&index=0&id=74e82e8e&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"74e82e8e\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}