AcrossVip.vue 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079
  1. <template>
  2. <div class="context">
  3. <div class="panel">
  4. <h5>跨店会员</h5>
  5. <div class="panel-body">
  6. <div class="panel_control">
  7. <el-row :gutter="20">
  8. <el-col :span="4">
  9. <em>用户名:</em>
  10. <el-input v-model="panel.usercode" placeholder="请输入用户名"></el-input>
  11. </el-col>
  12. <el-col :span="4">
  13. <em>姓名:</em>
  14. <el-input v-model="panel.name" placeholder="请输入姓名"></el-input>
  15. </el-col>
  16. <el-col :span="4">
  17. <em>手机号:</em>
  18. <el-input v-model="panel.phone" placeholder="请输入手机号" type="number"></el-input>
  19. </el-col>
  20. <el-col :span="4">
  21. <el-button size="" type="primary" @click="query" plain :disabled="serachBtnStatus">查询
  22. </el-button>
  23. </el-col>
  24. </el-row>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="change">
  29. <el-button @click="addMember" v-if="userLevel != 4" type="primary">新增会员</el-button>
  30. <el-button @click="delList" v-if="userLevel != 4">删除会员</el-button>
  31. </div>
  32. <div class="table">
  33. <el-table
  34. :data="tableData"
  35. border
  36. is-horizontal-resize
  37. :default-sort="{prop: 'date', order: 'descending'}"
  38. element-loading-background="rgba(0, 0, 0, 0.8)"
  39. class=""
  40. @selection-change="handleSelectionChange" @current-change="clickChange"
  41. >
  42. >
  43. <el-table-column label="选择" width="55">
  44. <template slot-scope="scope">
  45. <el-radio v-model="tableRadio" :label="scope.row"><i></i></el-radio>
  46. </template>
  47. </el-table-column>
  48. <el-table-column
  49. type="index"
  50. label="序号"
  51. align="center"
  52. width="50"
  53. >
  54. </el-table-column>
  55. <el-table-column
  56. prop="Usercode"
  57. label="用户名"
  58. sortable
  59. >
  60. </el-table-column>
  61. <el-table-column
  62. prop="Name"
  63. label="会员名"
  64. width="90"
  65. >
  66. </el-table-column>
  67. <el-table-column
  68. prop="Phone"
  69. label="手机号"
  70. width="110"
  71. sortable
  72. >
  73. </el-table-column>
  74. <el-table-column
  75. prop="LastLoginTime"
  76. label="上次登陆时间"
  77. :formatter="filterFmtDate"
  78. sortable
  79. >
  80. </el-table-column>
  81. <el-table-column
  82. prop="GroupName"
  83. label="分组名称"
  84. sortable
  85. >
  86. </el-table-column>
  87. <el-table-column
  88. prop="SumNormalHour"
  89. label="剩余课时"
  90. width="105"
  91. sortable
  92. >
  93. </el-table-column>
  94. <el-table-column
  95. prop="SumGiftHour"
  96. label="剩余赠送"
  97. sortable
  98. >
  99. </el-table-column>
  100. </el-table>
  101. <br>
  102. <el-pagination
  103. background
  104. :total="pageination.total"
  105. :page-size="pageination.pageItem"
  106. @current-change="pageChange"
  107. ></el-pagination>
  108. </div>
  109. <el-dialog :title="dialogTitle" :visible.sync="dialogMemberVisible"
  110. width="650px">
  111. <div class="dialogContent">
  112. <div>
  113. <el-form ref="form" :model="form" label-width="80px">
  114. <el-form-item label="会员账号" v-if="form.btnType == 0">
  115. <el-select v-model="form.userId " filterable placeholder="请选择会员账号">
  116. <el-option
  117. v-for="item in form.vipList"
  118. :key="item.value"
  119. :label="item.label"
  120. :value="item.value"
  121. ></el-option>
  122. </el-select>
  123. </el-form-item>
  124. <el-form-item label="商家分组" v-if="form.btnType == 0">
  125. <el-select v-model="form.groupId " filterable placeholder="请选择商家分组">
  126. <el-option
  127. v-for="item in form.groupList"
  128. :key="item.value"
  129. :label="item.label"
  130. :value="item.value"
  131. ></el-option>
  132. </el-select>
  133. </el-form-item>
  134. </el-form>
  135. </div>
  136. </div>
  137. <div class="dialogFooter">
  138. <el-button type="primary" size="small" v-if="form.btnType == 0" @click="confirmMember">确定</el-button>
  139. <el-button size="small" @click="dialogMemberVisible = false">取消</el-button>
  140. </div>
  141. </el-dialog>
  142. </div>
  143. </template>
  144. <script>
  145. import Global from '../Global.js'
  146. import {
  147. AcrossVipUserQuery,
  148. VipUserSimpleQueryByAdmin,
  149. ShopGroupQuery,
  150. AcrossVipUserAdd,
  151. AcrossVipUserDel,
  152. VipUserStatusEdit,
  153. VipUserHourEdit,
  154. VipUserExpEdit,
  155. VipUserClassEdit,
  156. QueryTakeCustomerByName,
  157. BindTakeCustomer,
  158. } from "../api/getApiRes";
  159. let qs = require('qs');
  160. export default {
  161. data() {
  162. return {
  163. imageUrl: '',
  164. token: {}, // 七牛云的上传地址,根据自己所在地区选择,我这里是华南区
  165. domain: 'https://up-z1.qiniup.com', // 这是七牛云空间的外链默认域名
  166. qiniuaddr: 'qjzpcd34v.hb-bkt.clouddn.com',
  167. dialogVisible: false,//其他dialog
  168. TakeVisible: false,//take dialog
  169. dialogMemberVisible: false,//新增会员dialog
  170. dialogLesson: false,//课时调整
  171. dialogGift: false,//赠送课时调整
  172. dialogExpTime: false,//有效期调整
  173. dialogLessonTable: false,//会员课程
  174. dialogTitle: '新增会员',
  175. dialogValue: [],
  176. Takevalue: 0,
  177. Takeoptions: [],
  178. TakeHid: 0,
  179. sexOptions: [
  180. {value: 1, label: '男'},//性别 1:男, 2:女
  181. {value: 2, label: '女'},
  182. ],
  183. yearOptions: getyearOptions(15),
  184. // panel 配置项目
  185. panel: {
  186. usercode: '',
  187. username: '',
  188. compname: '',
  189. keyword: '',
  190. USERCODE: '',
  191. endType: '',
  192. taskstatus: 99,
  193. draw: 1,
  194. start: 0,
  195. recordsTotal: 0,
  196. tableData: [],
  197. allTableData: [],
  198. limit: '10',
  199. multipleSort: false,
  200. loading: false,
  201. fileList: [],
  202. multipleSelection: [],
  203. detectedmac: '',
  204. vipType: '',
  205. expDay: '',
  206. vipOptions: vipOptions(0),
  207. endTypeOptions: endTypeOptions(),
  208. time1: globalBt(),
  209. },
  210. multipleSelection: [],
  211. pageination: {
  212. pageItem: 20,
  213. pageoptions: pageOptions(),
  214. total: 100,
  215. pageIndex: 1,
  216. },
  217. form: {
  218. phone: '',
  219. name: '',
  220. userCode: '',
  221. shopId: '',
  222. Id: '',
  223. userId: '',
  224. height: '',
  225. weight: '',
  226. staticHr: '',
  227. head: '',
  228. birthday: '',
  229. sex: 1,
  230. vipType: 1,
  231. normalhour: 0,
  232. newnormalhour: 0,
  233. gifthour: 0,
  234. newgifthour: 0,
  235. btnType: 0,//0新建,1编辑编辑
  236. memo: '',
  237. expTime: '',
  238. vipList: [],
  239. groupList: [],
  240. classlist: [],
  241. dialogdata: [],//穿梭待选
  242. dialogValue: [],//穿梭已选
  243. },
  244. memberTypes: vipOptions(1),
  245. tableData: [],
  246. tableRadio: [],
  247. userLevel: localStorage.userLevel,
  248. serachBtnStatus: false
  249. }
  250. },
  251. mounted() {
  252. // 加载课程选项
  253. this.getClassVipuserQueryByAdmin();
  254. this.getShopGroupQuery();
  255. // 读取列表
  256. this.getTableQuery();
  257. },
  258. methods: {
  259. // 获取本课程下的会员列表
  260. getClassVipuserQueryByAdmin() {
  261. let that = this;
  262. let param = {
  263. token: localStorage.token,
  264. };
  265. let postdata = qs.stringify(param);
  266. VipUserSimpleQueryByAdmin(postdata).then(res => {
  267. let json = res;
  268. if (json.Code == 0) {
  269. that.form.vipList = turnResToOptionBySimViper(json.Rs);
  270. } else {
  271. that.$message.error(json.Memo);
  272. }
  273. })
  274. },
  275. getShopGroupQuery() {
  276. let that = this;
  277. let param = {
  278. token: localStorage.token,
  279. };
  280. let postdata = qs.stringify(param);
  281. ShopGroupQuery(postdata).then(res => {
  282. let json = res;
  283. if (json.Code == 0) {
  284. that.form.groupList = turnResToOptionByGroup(json.Rs);
  285. } else {
  286. that.$message.error(json.Memo);
  287. }
  288. })
  289. },
  290. // 关联手机号跳转
  291. goRelevance(row) {
  292. this.$router.push({path: '/relevancePhone', query: {userId: row.UserInfo.Id}});
  293. },
  294. // 上传文件到七牛云
  295. upqiniu(req) {
  296. let that = this;
  297. const config = {
  298. headers: {'Content-Type': 'multipart/form-data'}
  299. };
  300. let filetype = '';
  301. if (req.file.type === 'image/png') {
  302. filetype = 'png'
  303. } else {
  304. filetype = 'jpg'
  305. }
  306. // 重命名要上传的文件
  307. const keyname = 'GoAllOut' + new Date().valueOf() + Math.floor(Math.random() * 100) + '.' + filetype;
  308. // 从后端获取上传凭证token
  309. let param = {
  310. token: localStorage.token,
  311. };
  312. let postdata = qs.stringify(param);
  313. this.axios.post(headapi + 'v1/QiNiu/GetSimpleQiNiuToken', postdata).then(res => {
  314. const formdata = new FormData();
  315. formdata.append('file', req.file);
  316. formdata.append('token', res.data.QiNinToken);
  317. formdata.append('key', keyname);
  318. // 获取到凭证之后再将文件上传到七牛云空间
  319. this.axios.post(this.domain, formdata, config).then(res => {
  320. this.imageUrl = 'http://' + this.qiniuaddr + '/' + res.data.key;
  321. this.form.head = 'http://' + this.qiniuaddr + '/' + keyname;
  322. })
  323. })
  324. },
  325. // 验证文件合法性
  326. beforeUpload(file) {
  327. const isJPG = file.type === 'image/jpeg' || file.type === 'image/png';
  328. const isLt2M = file.size / 1024 / 1024 < 2;
  329. if (!isJPG) {
  330. this.$message.error('上传头像图片只能是 JPG 格式!')
  331. }
  332. if (!isLt2M) {
  333. this.$message.error('上传头像图片大小不能超过 2MB!')
  334. }
  335. return isJPG && isLt2M
  336. },
  337. // 打开take绑定和拉取take数据
  338. addTake(row) {
  339. let that = this;
  340. let param = {
  341. token: localStorage.token,
  342. userId: row.UserInfo.Id,
  343. };
  344. this.TakeHid = row.UserInfo.HId;
  345. let postdata = qs.stringify(param);
  346. QueryTakeCustomerByName(postdata).then(res => {
  347. let json = res;
  348. if (json.Code == 0) {
  349. if (json.Rs != '') {
  350. that.Takeoptions = json.Rs;
  351. that.Takevalue = json.Rs[0].Id;
  352. // 有值才能打开
  353. this.TakeVisible = true;
  354. } else {
  355. that.$message.error('当前用户没有可用的Take账号');
  356. this.TakeVisible = false;
  357. console.log('null');
  358. }
  359. } else {
  360. that.$message.error(json.Memo);
  361. }
  362. })
  363. },
  364. // 绑定take
  365. confirmTake() {
  366. let that = this;
  367. let param = {
  368. token: localStorage.token,
  369. hId: this.TakeHid,
  370. customerId: this.Takevalue,
  371. memo: '后台管理手动绑定',
  372. };
  373. let postdata = qs.stringify(param);
  374. BindTakeCustomer(postdata).then(res => {
  375. let json = res;
  376. if (json.Code == 0) {
  377. that.$message({
  378. showClose: true,
  379. message: 'Take绑定成功!',
  380. type: 'success'
  381. });
  382. this.TakeVisible = false;
  383. // 读取列表
  384. this.getTableQuery();
  385. } else {
  386. that.$message.error(json.Memo);
  387. }
  388. })
  389. },
  390. clickChange(item) {
  391. this.tableRadio = item
  392. },
  393. // 编辑
  394. editMember(row) {
  395. let that = this;
  396. this.clearForm();
  397. this.form.phone = row.UserInfo.Phone;
  398. this.form.name = row.UserInfo.Name;
  399. this.form.memo = row.UserInfo.Memo;
  400. this.imageUrl = row.UserInfo.Head;
  401. this.form.height = row.UserInfo.Height;
  402. this.form.weight = parseInt(row.UserInfo.Weight) / 10;
  403. // this.form.staticHr = row.UserInfo.StaticHr;
  404. this.form.sex = row.UserInfo.Sex;
  405. this.form.birthday = row.UserInfo.Birthday;
  406. this.form.ubId = row.UserInfo.UbId;
  407. this.form.btnType = 1;
  408. this.form.shopId = row.UserInfo.ShopId;
  409. this.form.Id = row.UserInfo.Id;
  410. this.dialogMemberVisible = true;
  411. this.dialogTitle = '编辑会员'
  412. },
  413. // 禁用
  414. pauseRow(row) {
  415. let that = this;
  416. this.$confirm('是否禁用用户' + row.UserInfo.Name + '?', '禁用操作', {
  417. confirmButtonText: '确定',
  418. cancelButtonText: '取消',
  419. type: 'warning'
  420. }).then(() => {
  421. let param = {
  422. token: localStorage.token,
  423. userId: row.UserInfo.Id,
  424. status: 8,//状态 8:禁用 1:启用 9:删除
  425. };
  426. let postdata = qs.stringify(param);
  427. VipUserStatusEdit(postdata).then(res => {
  428. let json = res;
  429. if (json.Code == 0) {
  430. that.$message({
  431. showClose: true,
  432. message: row.UserInfo.Name + '禁用成功!',
  433. type: 'success'
  434. });
  435. // table 重载
  436. that.getTableQuery();
  437. } else {
  438. that.$message.error(json.Memo);
  439. }
  440. })
  441. }).catch(() => {
  442. this.$message({
  443. type: 'info',
  444. message: '已取消禁用'
  445. });
  446. });
  447. },
  448. // 启用
  449. runRow(row) {
  450. let that = this;
  451. this.$confirm('是否启用用户' + row.UserInfo.Name + '?', '启用操作', {
  452. confirmButtonText: '确定',
  453. cancelButtonText: '取消',
  454. type: 'warning'
  455. }).then(() => {
  456. let param = {
  457. token: localStorage.token,
  458. userId: row.UserInfo.Id,
  459. status: 1,//状态 8:禁用 1:启用 9:删除
  460. };
  461. let postdata = qs.stringify(param);
  462. VipUserStatusEdit(postdata).then(res => {
  463. let json = res;
  464. if (json.Code == 0) {
  465. that.$message({
  466. showClose: true,
  467. message: row.UserInfo.Name + '启用成功!',
  468. type: 'success'
  469. });
  470. // table 重载
  471. that.getTableQuery();
  472. } else {
  473. that.$message.error(json.Memo);
  474. }
  475. })
  476. }).catch(() => {
  477. this.$message({
  478. type: 'info',
  479. message: '已取消启用'
  480. });
  481. });
  482. },
  483. // 关闭所有
  484. allDialogClose() {
  485. this.dialogVisible = false;
  486. this.dialogGift = false;
  487. this.dialogLesson = false;
  488. this.dialogExpTime = false;
  489. this.dialogLessonTable = false;
  490. },
  491. // 有效期调整
  492. ExpTimeChange() {
  493. // 仅针对年费用户,使用日期格式
  494. this.allDialogClose();
  495. if (this.tableRadio.length == 0) {
  496. this.$message.error("请先选中一条记录");
  497. return false
  498. }
  499. let row = this.tableRadio;
  500. if (parseInt(row.UserInfo.VipType) == 2) {
  501. this.$message({
  502. showClose: true,
  503. message: '错了哦,充值会员不能调整有效期',
  504. type: 'error'
  505. });
  506. return false
  507. }
  508. this.form.rowName = row.UserInfo.Name;
  509. this.form.userId = row.UserInfo.Id;
  510. this.form.expTime = row.UserInfo.ExpTime
  511. this.dialogVisible = true;
  512. this.dialogExpTime = true;
  513. },
  514. // 课时调整
  515. lessonChange() {
  516. this.allDialogClose();
  517. if (this.tableRadio.length == 0) {
  518. this.$message.error("请先选中一条记录");
  519. return false
  520. }
  521. let row = this.tableRadio;
  522. this.form.normalhour = row.UserInfo.RemainNormalhour;
  523. this.form.newnormalhour = 0;
  524. this.form.rowName = row.UserInfo.Name;
  525. this.form.userId = row.UserInfo.Id;
  526. this.dialogVisible = true;
  527. this.dialogLesson = true;
  528. },
  529. // 赠送调整
  530. giftChange() {
  531. this.allDialogClose();
  532. if (this.tableRadio.length == 0) {
  533. this.$message.error("请先选中一条记录");
  534. return false
  535. }
  536. let row = this.tableRadio;
  537. this.form.gifthour = row.UserInfo.RemainGifthour;
  538. this.form.newgifthour = 0;
  539. this.form.rowName = row.UserInfo.Name;
  540. this.form.userId = row.UserInfo.Id;
  541. this.dialogVisible = true;
  542. this.dialogGift = true;
  543. },
  544. // 增删会员课程
  545. lessonStudenChange() {
  546. let that = this;
  547. this.allDialogClose();
  548. // 重载课程列表选项
  549. if (this.tableRadio.length == 0) {
  550. that.$message.error("请先选中一条记录");
  551. return false
  552. }
  553. let row = this.tableRadio;
  554. this.form.rowName = row.UserInfo.Name;
  555. this.form.userId = row.UserInfo.Id;
  556. if (row.ClassInfo) {
  557. row.ClassInfo.map(function (item) {
  558. that.form.dialogValue.push(item.ClassId)
  559. })
  560. }
  561. this.dialogVisible = true;
  562. this.dialogLessonTable = true;
  563. },
  564. // 确认提交新增会员
  565. confirmMember() {
  566. let that = this;
  567. // checkNum
  568. if (!that.form.userId) {
  569. this.$message.error('错了哦,会员不能为空');
  570. return false
  571. }
  572. if (!that.form.groupId) {
  573. this.$message.error('错了哦,商家分组不能为空');
  574. return false
  575. }
  576. let param = {
  577. token: localStorage.token,
  578. shopId: localStorage.shopId,
  579. userId: that.form.userId,
  580. groupId: that.form.groupId,
  581. };
  582. let postdata = qs.stringify(param);
  583. AcrossVipUserAdd(postdata).then(res => {
  584. let json = res;
  585. if (json.Code == 0) {
  586. // 关闭弹窗
  587. that.dialogMemberVisible = false;
  588. // 重载列表
  589. that.getTableQuery();
  590. that.$message({
  591. showClose: true,
  592. message: '跨店会员添加成功!',
  593. type: 'success'
  594. });
  595. } else {
  596. that.$message.error(json.Memo);
  597. }
  598. })
  599. },
  600. // 确认提交课时
  601. confirmLesson() {
  602. let that = this;
  603. // checkNum
  604. let param = {
  605. token: localStorage.token,
  606. userId: that.form.userId,
  607. chgHour: that.form.newnormalhour,
  608. chgType: 1,//课时类型 1:普通课时 2:赠送课时
  609. };
  610. let postdata = qs.stringify(param);
  611. VipUserHourEdit(postdata).then(res => {
  612. let json = res;
  613. if (json.Code == 0) {
  614. // 关闭弹窗
  615. that.dialogVisible = false;
  616. // 重载列表
  617. that.getTableQuery();
  618. that.$message({
  619. showClose: true,
  620. message: '课时调整成功!',
  621. type: 'success'
  622. });
  623. } else {
  624. that.$message.error(json.Memo);
  625. }
  626. })
  627. },
  628. // 确认提交赠送
  629. confirmGift() {
  630. let that = this;
  631. let param = {
  632. token: localStorage.token,
  633. userId: that.form.userId,
  634. chgHour: that.form.newgifthour,
  635. chgType: 2,//课时类型 1:普通课时 2:赠送课时
  636. };
  637. let postdata = qs.stringify(param);
  638. VipUserHourEdit(postdata).then(res => {
  639. let json = res;
  640. if (json.Code == 0) {
  641. // 关闭弹窗
  642. that.dialogVisible = false;
  643. // 重载列表
  644. that.getTableQuery();
  645. that.$message({
  646. showClose: true,
  647. message: '赠送课时调整成功!',
  648. type: 'success'
  649. });
  650. } else {
  651. that.$message.error(json.Memo);
  652. }
  653. })
  654. },
  655. // 确认提交有效期
  656. confirmExpTime() {
  657. let that = this;
  658. // checkNum
  659. let param = {
  660. token: localStorage.token,
  661. userId: that.form.userId,
  662. expTime: nonTfmtDate(that.form.expTime, 16),
  663. };
  664. let postdata = qs.stringify(param);
  665. VipUserExpEdit(postdata).then(res => {
  666. let json = res;
  667. if (json.Code == 0) {
  668. // 关闭弹窗
  669. that.dialogVisible = false;
  670. // 重载列表
  671. that.getTableQuery();
  672. that.$message({
  673. showClose: true,
  674. message: '赠送课时调整成功!',
  675. type: 'success'
  676. });
  677. } else {
  678. that.$message.error(json.Memo);
  679. }
  680. })
  681. },
  682. // 确认提交会员课程
  683. confirmLessonTable() {
  684. let that = this;
  685. // checkNum
  686. let classList = that.form.dialogValue ? that.form.dialogValue.toString() : '';
  687. let param = {
  688. token: localStorage.token,
  689. userId: that.form.userId,
  690. classList: classList,
  691. };
  692. let postdata = qs.stringify(param);
  693. VipUserClassEdit(postdata).then(res => {
  694. let json = res;
  695. if (json.Code == 0) {
  696. // 关闭弹窗
  697. that.dialogVisible = false;
  698. // 重载列表
  699. that.getTableQuery();
  700. that.$message({
  701. showClose: true,
  702. message: '会员课程调整成功!',
  703. type: 'success'
  704. });
  705. } else {
  706. that.$message.error(json.Memo);
  707. }
  708. })
  709. },
  710. // 新增会员
  711. addMember() {
  712. this.clearForm();
  713. this.dialogMemberVisible = true;
  714. this.btnType = 0;
  715. this.form.btnType = 0;
  716. this.dialogTitle = '新增会员'
  717. },
  718. // 删除
  719. delList() {
  720. let that = this;
  721. if (this.tableRadio.length == 0) {
  722. that.$message.error("请先选中一条记录");
  723. return false
  724. }
  725. let row = this.tableRadio;
  726. let param = {
  727. token: localStorage.token,
  728. userId: row.UserId,
  729. auId: row.AuId,
  730. };
  731. let postdata = qs.stringify(param);
  732. this.$confirm('此操作将永久删除该跨店会员, 是否继续?', '提示', {
  733. confirmButtonText: '确定',
  734. cancelButtonText: '取消',
  735. type: 'warning'
  736. }).then(() => {
  737. AcrossVipUserDel(postdata).then(res => {
  738. let json = res;
  739. if (json.Code == 0) {
  740. that.$message({
  741. showClose: true,
  742. message: '选中的跨店会员已删除!',
  743. type: 'success'
  744. });
  745. // 重载列表
  746. that.getTableQuery();
  747. } else {
  748. that.$message.error(json.Memo);
  749. }
  750. });
  751. }).catch(() => {
  752. this.$message({
  753. type: 'info',
  754. message: '已取消删除'
  755. });
  756. });
  757. },
  758. handleSelectionChange(val) {
  759. this.multipleSelection = val;
  760. },
  761. // 查询按钮
  762. query() {
  763. let that = this;
  764. that.serachBtnStatus = true;
  765. that.getTableQuery();
  766. that.$message.success('查询完毕');
  767. let totalTime = 2
  768. let clock = window.setInterval(() => {
  769. totalTime--
  770. if (totalTime < 0) {
  771. totalTime = 2;
  772. that.serachBtnStatus = false;
  773. }
  774. }, 1000)
  775. },
  776. clearForm() {
  777. // clear
  778. this.form.name = '';
  779. this.form.head = '';
  780. this.imageUrl = '';
  781. this.form.phone = '';
  782. this.form.memo = '';
  783. this.form.normalhour = 0;
  784. this.form.gifthour = 0;
  785. this.form.height = '';
  786. this.form.weight = '';
  787. this.form.staticHr = 0;
  788. this.form.sex = 1;
  789. this.form.birthday = '';
  790. this.form.userCode = '';
  791. this.form.shopId = '';
  792. this.form.classlist = [];
  793. },
  794. // 页面数据查询
  795. getTableQuery() {
  796. let that = this;
  797. that.loading = true;
  798. let param = {
  799. token: localStorage.token,
  800. vipType: that.panel.vipType,//
  801. phone: that.panel.phone,//
  802. usercode: that.panel.usercode,//
  803. name: that.panel.name,//
  804. expDay: that.panel.expDay,//
  805. start: 1,//
  806. tableMax: 9999,//
  807. };
  808. let postdata = qs.stringify(param);
  809. AcrossVipUserQuery(postdata).then(res => {
  810. let json = res;
  811. if (json.Code == 0) {
  812. that.loading = false;
  813. if (json.Rs) {
  814. that.allTableData = json.Rs;
  815. that.recordsTotal = json.Rs.length;
  816. } else {
  817. that.allTableData = [];
  818. that.recordsTotal = 0;
  819. }
  820. // 设置分页数据
  821. that.setPaginations();
  822. } else {
  823. that.$message.error(json.Memo);
  824. }
  825. })
  826. },
  827. // 设置分页数据
  828. setPaginations() {
  829. // 分页属性
  830. let that = this;
  831. that.pageination.total = that.recordsTotal;
  832. // 默认分页
  833. that.tableData = that.allTableData.filter((item, index) => {
  834. return index < that.pageination.pageItem;
  835. });
  836. },
  837. // 每页显示数量
  838. handleSizeChange() {
  839. let that = this;
  840. that.tableData = that.allTableData.filter((item, index) => {
  841. return index < that.pageination.pageItem;
  842. });
  843. that.draw = that.pageination.pageItem;
  844. // that.getTableQuery();
  845. },
  846. // 翻页
  847. pageChange(pageIndex) {
  848. let that = this;
  849. // 获取当前页
  850. let index = that.pageination.pageItem * (pageIndex - 1);
  851. // 数据总数
  852. let nums = that.pageination.pageItem * pageIndex;
  853. // 容器
  854. let tables = [];
  855. for (var i = index; i < nums; i++) {
  856. if (that.allTableData[i]) {
  857. tables.push(that.allTableData[i])
  858. }
  859. this.tableData = tables;
  860. }
  861. that.start = index * that.draw;
  862. // that.getTableQuery();
  863. },
  864. // 过滤时间
  865. filterFmtDate(value, row, column) {
  866. let that = this;
  867. if (column == "0001-01-01T08:05:43+08:05" || column == "0001-01-01T00:00:00Z") {
  868. return '无有效期';
  869. } else {
  870. return nonTfmtDatetoLength(column, 16);
  871. }
  872. },
  873. }
  874. ,
  875. watch: {
  876. $route(to) {
  877. if (to.name == 'AcrossVip') {
  878. // 加载课程选项
  879. this.getClassVipuserQueryByAdmin();
  880. this.getShopGroupQuery();
  881. // 读取列表
  882. this.getTableQuery();
  883. }
  884. }
  885. ,
  886. }
  887. ,
  888. }
  889. </script>
  890. <style scoped>
  891. @import "../assets/css/panel.css";
  892. .context {
  893. border-radius: 12px;
  894. height: 770px;
  895. overflow-y: scroll;
  896. display: block;
  897. margin: 0 auto;
  898. background-color: #fff !important;
  899. padding: 30px;
  900. padding-bottom: 30px;
  901. }
  902. .panel-body {
  903. padding: 20px;
  904. background: #F0F2F5;
  905. }
  906. .change {
  907. width: 100%;
  908. overflow: hidden;
  909. display: block;
  910. margin: 0 auto;
  911. padding-top: 10px;
  912. padding-bottom: 10px;
  913. }
  914. .change button {
  915. float: left;
  916. }
  917. .change button.pull-right {
  918. float: right;
  919. }
  920. .dialogTitle {
  921. width: 100%;
  922. overflow: hidden;
  923. display: block;
  924. margin: 0 auto;
  925. color: #000000;
  926. font-size: 18px;
  927. text-align: center;
  928. }
  929. .dialogTitle em {
  930. float: none;
  931. font-style: normal;
  932. color: #3799FF;
  933. margin: 0;
  934. }
  935. /deep/ .el-transfer-panel__item .el-checkbox__input {
  936. left: 40px;
  937. }
  938. .dialogFooter {
  939. width: 90%;
  940. overflow: hidden;
  941. display: block;
  942. margin: 0 auto;
  943. margin-top: 10px;
  944. }
  945. .dialogFooter button {
  946. float: right;
  947. margin-left: 10px;
  948. }
  949. .dialogContent {
  950. width: 100%;
  951. overflow: hidden;
  952. display: block;
  953. margin: 0 auto;
  954. }
  955. .dialogContent .pull-left {
  956. width: 40%;
  957. float: left;
  958. }
  959. .dialogContent .pull-right {
  960. width: 60%;
  961. float: right;
  962. }
  963. .tabwild {
  964. width: 100% !important;
  965. overflow: hidden;
  966. display: block;
  967. margin: 0 auto;
  968. }
  969. .lessonSpan {
  970. width: 78px;
  971. height: 22px;
  972. border-radius: 11px;
  973. margin-right: 5px;
  974. float: left;
  975. margin-bottom: 3px;
  976. text-align: center;
  977. color: #000;
  978. font-size: 12px;
  979. }
  980. .btn {
  981. float: left !important;
  982. margin-right: 5px;
  983. }
  984. /deep/ table .el-button + .el-button {
  985. margin-left: 0;
  986. margin-right: 3px;
  987. /*float: left;*/
  988. padding: 7px 6px;
  989. }
  990. table {
  991. width: 100%;
  992. display: block;
  993. margin: 0 auto;
  994. overflow: scroll;
  995. }
  996. .pull-left /deep/ .el-form .el-form-item {
  997. width: 50%;
  998. float: left;
  999. }
  1000. .pull-left /deep/ .el-form-item__content {
  1001. margin-left: 20px;
  1002. }
  1003. .pull-left .el-input-number {
  1004. width: 130px;
  1005. }
  1006. .cell img {
  1007. overflow: hidden;
  1008. display: block;
  1009. margin: 0 auto;
  1010. }
  1011. .el-date-editor.el-input__inner {
  1012. width: 156px;
  1013. }
  1014. .avatar-uploader {
  1015. border: 1px solid #ccc;
  1016. cursor: pointer;
  1017. border-radius: 5px;
  1018. }
  1019. /deep/ .el-upload {
  1020. width: 100%;
  1021. overflow: hidden;
  1022. display: block;
  1023. margin: 0 auto;
  1024. }
  1025. /deep/ .el-upload img {
  1026. width: 70px;
  1027. height: 70px;
  1028. float: left;
  1029. }
  1030. .relevance {
  1031. margin-top: 10px;
  1032. }
  1033. </style>
  1034. �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������