Commit 379c7156 authored by 吴春's avatar 吴春
parents 9d4249e8 d663bd9f
...@@ -47,7 +47,7 @@ module.exports = function(ctx) { ...@@ -47,7 +47,7 @@ module.exports = function(ctx) {
vueRouterMode: 'history', // available values: 'hash', 'history' vueRouterMode: 'history', // available values: 'hash', 'history'
env: ctx.dev ? { env: ctx.dev ? {
API: 'http://localhost:5001/api', API: 'http://localhost:8300/api',
// API: 'http://192.168.10.128:8300/api', // API: 'http://192.168.10.128:8300/api',
// API: 'https://eduapi.oytour.com/api', // API: 'https://eduapi.oytour.com/api',
API_ZC: 'http://192.168.5.238:8087/api', API_ZC: 'http://192.168.5.238:8087/api',
......
...@@ -26,10 +26,9 @@ export function CommonConfig() { ...@@ -26,10 +26,9 @@ export function CommonConfig() {
return { return {
FileConfig: { FileConfig: {
FileUrl: 'http://192.168.5.214:8130', //本地服务器文件预览地址 FileUrl: 'http://192.168.5.214:8130', //本地服务器文件预览地址
UploadUrl:'http://192.168.5.214:8120' UploadUrl: 'http://192.168.5.214:8120'
} }
} }
} }
/** /**
...@@ -174,7 +173,6 @@ export function UploadBolbFileToSystem(uploadConfig, fileFullPath, fileObj, uplo ...@@ -174,7 +173,6 @@ export function UploadBolbFileToSystem(uploadConfig, fileFullPath, fileObj, uplo
ExtFile: tempArray ExtFile: tempArray
} }
if (successCall) { if (successCall) {
successCall(uploadResult); successCall(uploadResult);
} }
} }
...@@ -290,60 +288,72 @@ export function UploadFileToSystem(uploadConfig, fileFullPath, fileObj, uploadLo ...@@ -290,60 +288,72 @@ export function UploadFileToSystem(uploadConfig, fileFullPath, fileObj, uploadLo
* 上传文件到阿里云 * 上传文件到阿里云
*/ */
export function UploadFileToALi(uploadConfig, fileFullPath, fileObj, uploadLoadding, successCall) { export function UploadFileToALi(uploadConfig, fileFullPath, fileObj, uploadLoadding, successCall) {
var OSS = require('ali-oss'); let str = '';
var oss = new OSS({ //str = "/2024/"
region: uploadConfig.Region, var newFileName = str + fileFullPath;
accessKeyId: uploadConfig.SecretId, let fileConfig = CommonConfig();
accessKeySecret: uploadConfig.SecretKey, let locationName = window.location.hostname;
bucket: uploadConfig.Bucket if (locationName.indexOf('localhost') !== -1) {
}) uploadConfig.UploadDomain = fileConfig.FileConfig.UploadUrl;
var result = oss.multipartUpload(fileFullPath, fileObj, { }
progress: function* (p) {} let url = uploadConfig.UploadDomain + "/Upload/UploadToALiOSS?isDomain=1&filePath=" + newFileName;
}).then(res => { let formData = new FormData()
formData.append('myfile', fileObj)
let xhr = new XMLHttpRequest()
xhr.onload = function () {
uploadLoadding.hide(); uploadLoadding.hide();
var jsonObj = JSON.parse(xhr.responseText);
if (jsonObj.StatusCode === 1 && successCall) {
var uploadResult = { var uploadResult = {
Code: 1, Code: 1,
FileName: fileObj.name, FileName: fileObj.name,
FileUrl: res.res.requestUrls[0].split('?')[0].replace('http', 'https') FileUrl: jsonObj.FilePath,
VideoCoverImg: uploadConfig.CustomDomain + jsonObj.VideoCoverImg,
Message: jsonObj.Message
} }
if (successCall) { if (successCall) {
successCall(uploadResult); successCall(uploadResult);
} }
}) }
}
xhr.open('post', url, true)
xhr.send(formData)
} }
/** /**
* 上传文件到腾讯云 * 上传文件到腾讯云
*/ */
export function UploadFileToTencent(uploadConfig, fileFullPath, fileObj, uploadLoadding, successCall) { export function UploadFileToTencent(uploadConfig, fileFullPath, fileObj, uploadLoadding, successCall) {
var COS = require('cos-js-sdk-v5'); let str = '';
var cos = new COS({ //str = "/2024/"
SecretId: uploadConfig.SecretId, var newFileName = str + fileFullPath;
SecretKey: uploadConfig.SecretKey, let fileConfig = CommonConfig();
}); let locationName = window.location.hostname;
cos.putObject({ if (locationName.indexOf('localhost') !== -1) {
Bucket: uploadConfig.Bucket, uploadConfig.UploadDomain = fileConfig.FileConfig.UploadUrl;
Region: uploadConfig.Region, //存储桶所在地域,必须字段 }
Key: fileFullPath, //文件名 let url = uploadConfig.UploadDomain + "/Upload/UploadToTecent?isDomain=1&filePath=" + newFileName;
StorageClass: 'STANDARD', let formData = new FormData()
Body: fileObj, // 上传文件对象 formData.append('myfile', fileObj)
onProgress: function (progressData) {} let xhr = new XMLHttpRequest()
}, function (err, data) { xhr.onload = function () {
uploadLoadding.hide(); uploadLoadding.hide();
if (data && data.statusCode == 200) { var jsonObj = JSON.parse(xhr.responseText);
if (jsonObj.StatusCode === 1 && successCall) {
var uploadResult = { var uploadResult = {
Code: 1, Code: 1,
FileName: fileObj.name, FileName: fileObj.name,
FileUrl: "https://" + data.Location FileUrl: jsonObj.FilePath,
VideoCoverImg: uploadConfig.CustomDomain + jsonObj.VideoCoverImg,
Message: jsonObj.Message
} }
if (successCall) { if (successCall) {
successCall(uploadResult); successCall(uploadResult);
} }
} else {
/*上传文件异常*/
console.log(err || data);
} }
}); }
xhr.open('post', url, true)
xhr.send(formData)
} }
/*** /***
...@@ -578,10 +588,7 @@ export function wechatUploadSelfFile(path, file, callback, configObj) { ...@@ -578,10 +588,7 @@ export function wechatUploadSelfFile(path, file, callback, configObj) {
//用户登录缓存 //用户登录缓存
//配置写死的 腾讯云 //配置写死的 腾讯云
var uploadConfig = { var uploadConfig = {
Region: "ap-chengdu",
SecretId: "AKIDDPnbIzi8C1eqEOPP8dw6MNAg9H9ldDKd",
SecretKey: "PdcLtOjslUzNFYdU4OSI1fKtdHpFT2Ob",
Bucket: "viitto-1301420277"
}; };
//获取文件扩展名 //获取文件扩展名
var index = file.name.lastIndexOf("."); var index = file.name.lastIndexOf(".");
......
...@@ -281,6 +281,18 @@ export function SetStuStudyInfo(data) { ...@@ -281,6 +281,18 @@ export function SetStuStudyInfo(data) {
}) })
} }
/**
*删除学员学习情况
*/
export function RemoveStuStudyInfo(data) {
return request({
url: '/Scroll/RemoveStuStudyInfo',
method: 'post',
data
})
}
/** /**
* 获取已报名学员列表 * 获取已报名学员列表
*/ */
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
cursor: pointer; cursor: pointer;
color: #2961FE; color: #2961FE;
} }
</style> </style>
<template> <template>
<div class="monthStatisticslist"> <div class="monthStatisticslist">
...@@ -187,11 +188,8 @@ ...@@ -187,11 +188,8 @@
} }
return managerName; return managerName;
}, },
//点击学生姓名弹出 //点击学生姓名弹出
getStuRight(obj) { getStuRight(obj) {
console.log("我进来啦",obj);
if (obj) { if (obj) {
this.stuOption = obj; this.stuOption = obj;
this.BelongType = 3; this.BelongType = 3;
...@@ -205,4 +203,5 @@ ...@@ -205,4 +203,5 @@
}, },
} }
}; };
</script> </script>
...@@ -5,21 +5,26 @@ ...@@ -5,21 +5,26 @@
<template v-if="saveObj==2"> <template v-if="saveObj==2">
<div class="row q-col-gutter-md"> <div class="row q-col-gutter-md">
<q-input class="col-6" filled v-model="SaveMsg.StudyValue" dense label="时间"></q-input> <q-input class="col-6" filled v-model="SaveMsg.StudyValue" dense label="时间"></q-input>
<q-input class="col-6" filled v-model="SaveMsg.Words" type="number" dense label="单词背诵"></q-input> <q-input class="col-6" filled v-model="SaveMsg.Words" maxlength="180" dense label="单词背诵"></q-input>
</div> </div>
<div class="q-mt-xs row q-col-gutter-md"> <div class="q-mt-xs row q-col-gutter-md">
<q-input class="col-6" filled v-model="SaveMsg.Practice" type="number" dense label="练习题"></q-input> <q-input class="col-6" filled v-model="SaveMsg.Practice" maxlength="180" dense label="练习题"></q-input>
<q-input class="col-6" filled v-model="SaveMsg.ReadingAloud" type="number" dense label="朗读/背诵"></q-input> <q-input class="col-6" filled v-model="SaveMsg.ReadingAloud" maxlength="180" dense label="朗读/背诵"></q-input>
</div> </div>
<div class="q-mt-xs row q-col-gutter-md"> <div class="q-mt-xs row q-col-gutter-md">
<p>其他 <i class="el-icon-plus text-blue cursor-pointer" @click="SetStudentStudyOther"></i></p> <q-input class="col-6" filled v-model="SaveMsg.Other" maxlength="180" dense label="其他"></q-input>
<!-- <p>其他 <i class="el-icon-plus text-blue cursor-pointer" @click="SetStudentStudyOther"></i></p> -->
</div> </div>
<div class="q-mt-xs row q-col-gutter-md" v-if='SaveMsg.Other&& SaveMsg.Other.length>0' v-for=" ( itemOther, indexOther ) in SaveMsg.Other " :key="indexOther"> <!-- <template v-if='SaveMsg.Other&& SaveMsg.Other.length>0'>
<el-input class="col-6" placeholder="请输入" filled v-model="itemOther.Name" autofocus/> <div class="q-mt-xs row q-col-gutter-md" v-for=" ( itemOther, indexOther ) in SaveMsg.Other "
<el-input class="col-4" placeholder="请输入" filled v-model="itemOther.Score" type="number" autofocus/> :key="indexOther">
<i class="el-icon-delete text-blue cursor-pointer col-2" @click="DelStudentStudyOther(indexOther)" style="margin-top:11px;"></i> <q-input class="col-6" placeholder="请输入项目名称" filled v-model="itemOther.Name" autofocus :dense="true" />
<q-input class="col-4" placeholder="请输入得分" filled v-model="itemOther.Score" type="number" :dense="true"
autofocus />
<i class="el-icon-delete text-blue cursor-pointer col-2" @click="DelStudentStudyOther(indexOther)"
style="margin-top:11px;"></i>
</div> </div>
</template> -->
</template> </template>
<template v-if="saveObj==3"> <template v-if="saveObj==3">
<div class="q-mt-xs row q-col-gutter-md"> <div class="q-mt-xs row q-col-gutter-md">
...@@ -45,7 +50,6 @@ ...@@ -45,7 +50,6 @@
meta: { meta: {
title: "学员考试信息" title: "学员考试信息"
}, },
components: {}, components: {},
props: { props: {
saveObj: { saveObj: {
...@@ -63,52 +67,53 @@ ...@@ -63,52 +67,53 @@
//客户对象 //客户对象
SaveMsg: { SaveMsg: {
CourseId: 0, CourseId: 0,
StuId:0, StuId: 0,
GuestId:0, GuestId: 0,
ClassScrollType:0, ClassScrollType: 0,
OrderId:0, OrderId: 0,
StudyID:0, StudyID: 0,
Words:'', Words: '',
Practice:'', Practice: '',
ReadingAloud:'', ReadingAloud: '',
Other:[], Other: '',
ChapterId:0, ChapterId: 0,
StudyType:0, StudyType: 0,
Remarks:'', Remarks: '到勤情况:\n课堂表现:\n作业情况:\n评价建议:',
StudyValue:'', StudyValue: '',
}, },
nowOther:{ nowOther: {
Name:"", Name: "",
Score:"", Score: "",
}, },
}; };
}, },
created() { created() {},
},
mounted() {}, mounted() {},
methods: { methods: {
SetStudentStudyOther(){ SetStudentStudyOther() {
this.SaveMsg.Other.push(JSON.parse(JSON.stringify(this.nowOther))) this.SaveMsg.Other.push(JSON.parse(JSON.stringify(this.nowOther)))
}, },
DelStudentStudyOther(indexOther){ DelStudentStudyOther(indexOther) {
if( this.SaveMsg.Other&& this.SaveMsg.Other.length>0){ if (this.SaveMsg.Other && this.SaveMsg.Other.length > 0) {
this.SaveMsg.Other.splice(indexOther, 1); this.SaveMsg.Other.splice(indexOther, 1);
} }
}, },
//保存信息 //保存信息
SaveStudentStudy(){ SaveStudentStudy() {
this.SaveMsg.CourseId=this.BaseInfo.CourseId, this.SaveMsg.CourseId = this.BaseInfo.CourseId;
this.SaveMsg.StuId=this.BaseInfo.StuId, this.SaveMsg.StuId = this.BaseInfo.StuId;
this.SaveMsg.GuestId=this.BaseInfo.GuestId, this.SaveMsg.GuestId = this.BaseInfo.GuestId;
this.SaveMsg.OrderId=this.BaseInfo.OrderId; this.SaveMsg.OrderId = this.BaseInfo.OrderId;
if(this.saveObj==3){ if (this.saveObj == 3) {
this.SaveMsg.Words=0; this.SaveMsg.Words = '';
this.SaveMsg.Practice=0; this.SaveMsg.Practice = '';
this.SaveMsg.ReadingAloud=0; this.SaveMsg.ReadingAloud = '';
this.SaveMsg.ChapterId=0; this.SaveMsg.ChapterId = 0;
this.SaveMsg.Other=''; this.SaveMsg.Other = '';
} else {
this.SaveMsg.Remarks = '';
} }
this.SaveMsg.StudyType=this.saveObj; this.SaveMsg.StudyType = this.saveObj;
SetStuStudyInfo(this.SaveMsg).then(res => { SetStuStudyInfo(this.SaveMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
...@@ -125,36 +130,32 @@ ...@@ -125,36 +130,32 @@
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
// this.SaveMsg.Remarks=this.obj.Remarks,
// this.SaveMsg.StudyValue=this.obj.StudyValue,
}, },
closeSaveForm() { closeSaveForm() {
this.$emit("close"); this.$emit("close");
this.persistent = false; this.persistent = false;
}, },
clearSaveMsg(){ clearSaveMsg() {
this.SaveMsg.CourseId= 0, this.SaveMsg.CourseId = 0;
this.SaveMsg.StuId=0, this.SaveMsg.StuId = 0;
this.SaveMsg.GuestId=0, this.SaveMsg.GuestId = 0;
this.SaveMsg.ClassScrollType=0, this.SaveMsg.ClassScrollType = 0;
this.SaveMsg.OrderId=0, this.SaveMsg.OrderId = 0;
this.SaveMsg.StudyID=0, this.SaveMsg.StudyID = 0;
this.SaveMsg.Words=0, this.SaveMsg.Words = '';
this.SaveMsg.Practice=0, this.SaveMsg.Practice = '';
this.SaveMsg.ReadingAloud=0, this.SaveMsg.ReadingAloud = '';
this.SaveMsg.Other=[], this.SaveMsg.Other = '';
this.SaveMsg.ChapterId=0, this.SaveMsg.ChapterId = 0;
this.SaveMsg.StudyType=0, this.SaveMsg.StudyType = 0;
this.SaveMsg.Remarks='', this.SaveMsg.Remarks = '到勤情况:\n课堂表现:\n作业情况:\n评价建议:';
this.SaveMsg.StudyValue='' this.SaveMsg.StudyValue = '';
}, },
closeForm() { closeForm() {
this.clearSaveMsg(); this.clearSaveMsg();
this.$emit("close"); this.$emit("close");
}, },
} }
}; };
</script> </script>
...@@ -72,22 +72,39 @@ ...@@ -72,22 +72,39 @@
<th width="100">操作</th> <th width="100">操作</th>
</tr> </tr>
<template v-if='dataObj&& dataObj.length>0'> <template v-if='dataObj&& dataObj.length>0'>
<tr v-for=" ( item , index ) in dataObj " :key="index"> <tr v-for=" (item,index) in dataObj " :key="index">
<td> <td>
<el-input v-if="Edit.index==index" placeholder="请输入" v-model="item.ClassDate" size="mini" autofocus/> <q-input v-if="Edit.index==index" placeholder="请输入" v-model="item.ClassDate" size="mini" autofocus />
<span v-else> {{ item.ClassDate }}</span> <span v-else> {{ item.ClassDate }}</span>
</td> </td>
<td style="text-align:left;padding-left:5px;">
<td>
<div> <div>
<el-input type="textarea" v-if="Edit.index==index" :autosize="{ minRows: 2, maxRows: 50}" placeholder="请输入内容"v-model="item.Remarks"></el-input> <q-input type="textarea" v-if="Edit.index==index" :autosize="{ minRows: 1, maxRows: 10}"
<span v-else> {{ item.Remarks }}</span> placeholder="请输入内容" v-model="item.Remarks" :dense="true" />
<pre v-else>
<p v-html="item.Remarks"></p>
</pre>
</div> </div>
</td> </td>
<td> <td>
<div class="text-blue cursor-pointer" > <div class="text-blue cursor-pointer">
<i class="el-icon-edit" @click="SetStudentStudy(item,index)" style="margin-right:15px;"></i> <i v-if="Edit.index!=index" class="el-icon-edit" @click="SetStudentStudy(item,index)"
<i class="el-icon-check" v-if="(item.Words||item.Practice||item.ReadingAloud||(item.Other&&item.Other.length>0))||item.StudyID>0" @click="SaveStudentStudy(item)"></i> style="margin-right:15px;">
<q-tooltip :offset="[10, 10]">
点击修改
</q-tooltip>
</i>
<i class="el-icon-check" v-if="Edit.index==index" @click="SaveStudentStudy(item)"
style="margin-right:15px;">
<q-tooltip :offset="[10, 10]">
点击保存
</q-tooltip>
</i>
<i class="el-icon-delete" v-if="item.StudyID>0" @click="deleteStudy(item)">
<q-tooltip :offset="[10, 10]">
点击删除
</q-tooltip>
</i>
</div> </div>
</td> </td>
</tr> </tr>
...@@ -103,13 +120,9 @@ ...@@ -103,13 +120,9 @@
</div> </div>
</template> </template>
<script> <script>
import {
saveStudentBaseInfo, //保存学员信息
} from "../../../api/school/index";
import { import {
SetStuStudyInfo, SetStuStudyInfo,
RemoveStuStudyInfo,
} from '../../../api/studyabroad/index' } from '../../../api/studyabroad/index'
import UeEditor from "../../editor/UeEditor"; import UeEditor from "../../editor/UeEditor";
export default { export default {
...@@ -159,26 +172,26 @@ ...@@ -159,26 +172,26 @@
}, },
SaveMsg: { SaveMsg: {
CourseId: 0, CourseId: 0,
StuId:0, StuId: 0,
GuestId:0, GuestId: 0,
ClassScrollType:0, ClassScrollType: 0,
OrderId:0, OrderId: 0,
StudyID:0, StudyID: 0,
Words:0, Words: 0,
Practice:0, Practice: 0,
ReadingAloud:0, ReadingAloud: 0,
Other:[], Other: [],
ChapterId:0, ChapterId: 0,
StudyType:0, StudyType: 0,
Remarks:'', Remarks: '',
StudyValue:'', StudyValue: '',
}, },
nowOther:{ nowOther: {
Name:"", Name: "",
Score:"", Score: "",
}, },
Edit:{ Edit: {
index:-1, index: -1,
}, },
}; };
}, },
...@@ -188,40 +201,55 @@ ...@@ -188,40 +201,55 @@
} }
}, },
methods: { methods: {
//刷新表格 //刷新表格
refreshTable() { refreshTable() {
this.$emit("success"); this.$emit("success");
}, },
getTeacherManager(row) { deleteStudy(item) {
let managerName = "<span class='text-grey-4'>暂无</span>"; let that = this
if (row.AssistList && row.AssistList.length > 0) { this.$q.dialog({
row.AssistList.forEach(y => { title: '删除确认',
if (y.AssistType == 4) { message: '删除且无法恢复,你确定要删除吗',
managerName = `<span class='text-dark'>${y.AssistName}</span>`; cancel: {
label: "取消",
flat: true
},
ok: {
label: "确认",
flat: true,
focus: true,
color: "negative"
} }
}); }).onOk(() => {
RemoveStuStudyInfo({
StudyID: item.StudyID
}).then(res => {
if (res.Code === 1) {
that.$message.success("操作成功")
that.clearSaveMsg();
that.refreshTable();
} }
return managerName; })
})
}, },
SetStudentStudy(obj,index){ SetStudentStudy(obj, index) {
this.Edit.index=index; this.Edit.index = index;
}, },
//保存信息 //保存信息
SaveStudentStudy(obj){ SaveStudentStudy(obj) {
this.SaveMsg.CourseId=this.BaseInfo.CourseId, this.SaveMsg.CourseId = this.BaseInfo.CourseId;
this.SaveMsg.StuId=this.BaseInfo.StuId, this.SaveMsg.StuId = this.BaseInfo.StuId;
this.SaveMsg.GuestId=this.BaseInfo.GuestId, this.SaveMsg.GuestId = this.BaseInfo.GuestId;
this.SaveMsg.OrderId=this.BaseInfo.OrderId, this.SaveMsg.OrderId = this.BaseInfo.OrderId;
this.SaveMsg.StudyID=obj.StudyID, this.SaveMsg.StudyID = obj.StudyID;
this.SaveMsg.Practice=0, this.SaveMsg.Practice = "";
this.SaveMsg.ReadingAloud=0, this.SaveMsg.ReadingAloud = "";
this.SaveMsg.Words=0, this.SaveMsg.Words = "";
this.SaveMsg.Other=''; this.SaveMsg.Other = '';
this.SaveMsg.Remarks=obj.Remarks, this.SaveMsg.Remarks = obj.Remarks;
this.SaveMsg.StudyValue=obj.ClassDate; this.SaveMsg.StudyValue = obj.ClassDate;
this.SaveMsg.ChapterId=0, this.SaveMsg.ChapterId = 0;
this.SaveMsg.StudyType=3, this.SaveMsg.StudyType = 3;
SetStuStudyInfo(this.SaveMsg).then(res => { SetStuStudyInfo(this.SaveMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
...@@ -239,36 +267,33 @@ ...@@ -239,36 +267,33 @@
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
}, },
SetStudentStudyOther(index){ SetStudentStudyOther(index) {
this.dataObj[index].Other.push(JSON.parse(JSON.stringify(this.nowOther))) this.dataObj[index].Other.push(JSON.parse(JSON.stringify(this.nowOther)))
}, },
DelStudentStudyOther(obj,index,indexOther){ DelStudentStudyOther(obj, index, indexOther) {
if(obj.Other&&obj.Other.length>0){ if (obj.Other && obj.Other.length > 0) {
obj.Other.splice(indexOther, 1); obj.Other.splice(indexOther, 1);
} }
this.dataObj[index] = obj this.dataObj[index] = obj
}, },
clearSaveMsg(){ clearSaveMsg() {
this.SaveMsg.CourseId= 0, this.SaveMsg.CourseId = 0;
this.SaveMsg.StuId=0, this.SaveMsg.StuId = 0;
this.SaveMsg.GuestId=0, this.SaveMsg.GuestId = 0;
this.SaveMsg. ClassScrollType=0, this.SaveMsg.ClassScrollType = 0;
this.SaveMsg. OrderId=0, this.SaveMsg.OrderId = 0;
this.SaveMsg. StudyID=0, this.SaveMsg.StudyID = 0;
this.SaveMsg.Words=0, this.SaveMsg.Words = "";
this.SaveMsg.Practice=0, this.SaveMsg.Practice = "";
this.SaveMsg.ReadingAloud=0, this.SaveMsg.ReadingAloud = "";
this.SaveMsg.Other=[], this.SaveMsg.Other = "";
this.SaveMsg. ChapterId=0, this.SaveMsg.ChapterId = 0;
this.SaveMsg.StudyType=0, this.SaveMsg.StudyType = 0;
this.SaveMsg.Remarks='', this.SaveMsg.Remarks = '';
this.SaveMsg. StudyValue='', this.SaveMsg.StudyValue = '';
this.Edit.index=-1; this.Edit.index = -1;
}, },
//关闭弹窗 //关闭弹窗
closeStuForm() { closeStuForm() {
this.isShowStuRight = false; this.isShowStuRight = false;
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<th width="80">金额</th> <th width="80">金额</th>
<th style="min-width:250px;">基本情况</th> <th style="min-width:250px;">基本情况</th>
<th width="200">续费课程</th> <th width="200">续费课程</th>
<th width="80">续费级别</th> <!-- <th width="80">续费级别</th> -->
<th width="80">续费金额</th> <th width="80">续费金额</th>
<th width="80">最新进度</th> <th width="80">最新进度</th>
<th width="90">负责人</th> <th width="90">负责人</th>
...@@ -153,12 +153,12 @@ ...@@ -153,12 +153,12 @@
<span>{{sItem.CourseName}}</span> <span>{{sItem.CourseName}}</span>
</div> </div>
</td> </td>
<td> <!-- <td>
<div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;" <div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;"
:key="sIndex+40000"> :key="sIndex+40000">
<span>{{ sItem.CourseRateName?sItem.CourseRateName:'-' }}</span> <span>{{ sItem.CourseRateName?sItem.CourseRateName:'-' }}</span>
</div> </div>
</td> </td> -->
<td> <td>
<div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;" <div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;"
:key="sIndex+50000"> :key="sIndex+50000">
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<td> <td>
{{ item.CreateByName?item.CreateByName:'-' }} {{ item.CreateByName?item.CreateByName:'-' }}
</td> </td>
<td > <td>
<div class="text-blue cursor-pointer" @click="getStudentStudy(item)"> <div class="text-blue cursor-pointer" @click="getStudentStudy(item)">
学习情况 学习情况
</div> </div>
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
</div> </div>
</div> </div>
<div style="width:100%;margin-bottom:15px;" v-if="customObj.EditType==3"> <div style="width:100%;margin-bottom:15px;" v-if="customObj.EditType==3">
<div style="width:13%;display:inline-block;vertical-align:top;">基本<br/>情况:</div> <div style="width:13%;display:inline-block;vertical-align:top;">基本<br />情况:</div>
<div style="width:86%;display:inline-block;"> <div style="width:86%;display:inline-block;">
<UeEditor v-model="customObj.Remark" class="q-pb-sm" :config="config"></UeEditor> <UeEditor v-model="customObj.Remark" class="q-pb-sm" :config="config"></UeEditor>
</div> </div>
...@@ -389,8 +389,8 @@ ...@@ -389,8 +389,8 @@
var qObj = { var qObj = {
StuId: obj.StuId, StuId: obj.StuId,
StuName: obj.StuName, StuName: obj.StuName,
GuestId:obj.GuestId, GuestId: obj.GuestId,
CourseRateName:obj.CourseRateName, CourseRateName: obj.CourseRateName,
}; };
this.OpenNewUrl('/teacher/studentStudy', qObj) this.OpenNewUrl('/teacher/studentStudy', qObj)
}, },
......
This diff is collapsed.
...@@ -61,18 +61,14 @@ ...@@ -61,18 +61,14 @@
<li @click="tiggerMax" class="source"> <li @click="tiggerMax" class="source">
原图 原图
</li> </li>
<!-- <li class="save" @click="outerVisible=true">
保存
</li> -->
<li class="save" @click="getFileBase64(2)"> <li class="save" @click="getFileBase64(2)">
保存 保存
</li> </li>
<li class="down" @click="getFileBase64(1)"> <li class="down" @click="getFileBase64(1)">
下载 下载
</li> </li>
<!-- <li class="return" @click="returnback">
返回
</li> -->
</ul> </ul>
<div class="property-box" v-if='currentNode.type==0 && !isMax'> <div class="property-box" v-if='currentNode.type==0 && !isMax'>
<el-form ref="form" :model="currentNode" label-width="80px"> <el-form ref="form" :model="currentNode" label-width="80px">
...@@ -172,12 +168,7 @@ ...@@ -172,12 +168,7 @@
</div> </div>
<div class="property-box" v-if='currentNode.type==1 && !isMax'> <div class="property-box" v-if='currentNode.type==1 && !isMax'>
<el-form ref="form" :model="currentNode" label-width="80px"> <el-form ref="form" :model="currentNode" label-width="80px">
<!-- <el-form-item label="宽度:">
<el-input-number v-model="currentNode.width" :min="0"></el-input-number>
</el-form-item>
<el-form-item label="高度">
<el-input-number v-model="currentNode.height" :min="0"></el-input-number>
</el-form-item> -->
<el-form-item label="圆角:"> <el-form-item label="圆角:">
<el-input-number v-model="currentNode.radius" :min="0"></el-input-number> <el-input-number v-model="currentNode.radius" :min="0"></el-input-number>
<label class="remark">修改块的圆角弧度(有背景色时体现)</label> <label class="remark">修改块的圆角弧度(有背景色时体现)</label>
...@@ -399,7 +390,7 @@ ...@@ -399,7 +390,7 @@
import browserMD5File from 'browser-md5-file'; import browserMD5File from 'browser-md5-file';
import vueWaterfallEasy from 'vue-waterfall-easy' import vueWaterfallEasy from 'vue-waterfall-easy'
import h2c from 'html2canvas' import h2c from 'html2canvas'
// import Canvas2Image from 'Canvas2Image'
import { import {
getAdvertisingList, getAdvertisingList,
saveMakeAd, saveMakeAd,
...@@ -502,19 +493,15 @@ ...@@ -502,19 +493,15 @@
} }
}, },
mounted() { mounted() {
if (this.$route.query.id) { if (this.$route.query.id) {
this.dataId = this.$route.query.id this.dataId = this.$route.query.id
} }
// this.user = JSON.parse(window.localStorage.userInfo)
if (this.dataId != 0) { if (this.dataId != 0) {
this.bg = ' ' this.bg = ' '
this.loadObj() this.loadObj()
} else { } else {
this.isLoading = false this.isLoading = false
} }
// this.loadingFont(this.nodes[0])
this.nodes.forEach(x => { this.nodes.forEach(x => {
this.currentZIndex = x.zindex > this.currentZIndex ? x.zindex : this.currentZIndex this.currentZIndex = x.zindex > this.currentZIndex ? x.zindex : this.currentZIndex
this.currentMaxId = x.nodeId > this.currentMaxId ? x.nodeId : this.currentMaxId this.currentMaxId = x.nodeId > this.currentMaxId ? x.nodeId : this.currentMaxId
...@@ -587,7 +574,7 @@ ...@@ -587,7 +574,7 @@
'label': '叶根友毛笔行书体', 'label': '叶根友毛笔行书体',
'value': 'YGYXSZITI' 'value': 'YGYXSZITI'
}) })
// this.getline()
this.getaddatas(0) this.getaddatas(0)
var sUserAgent = navigator.userAgent; var sUserAgent = navigator.userAgent;
var isWin = (navigator.platform == "Win32") || (navigator.platform == "Windows"); var isWin = (navigator.platform == "Win32") || (navigator.platform == "Windows");
...@@ -622,7 +609,8 @@ ...@@ -622,7 +609,8 @@
this.currentMaxId = y.nodeId > this.currentMaxId ? y.nodeId : this.currentMaxId this.currentMaxId = y.nodeId > this.currentMaxId ? y.nodeId : this.currentMaxId
}) })
let reg = /^http(s)?:\/\/(.*?)\// let reg = /^http(s)?:\/\/(.*?)\//
let getBlob = this.getFileBlob(data.pictureUrl.replace(reg, ''), 'aa.jpg') console.log("getMyAdDetail",data.pictureUrl);
let getBlob = this.getAnyFileBlob(data.pictureUrl.replace(reg, ''))
let that = this let that = this
getBlob.then(blob => { getBlob.then(blob => {
that.blobToDataURL(blob, function (e) { that.blobToDataURL(blob, function (e) {
...@@ -658,9 +646,6 @@ ...@@ -658,9 +646,6 @@
}) })
} }
}) })
}, },
uuid(len, radix) { uuid(len, radix) {
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split(''); var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
...@@ -701,7 +686,8 @@ ...@@ -701,7 +686,8 @@
this.st = x.SamplePicturesUrl + '?width=470' this.st = x.SamplePicturesUrl + '?width=470'
this.templateId = x.ID this.templateId = x.ID
let reg = /^http(s)?:\/\/(.*?)\// let reg = /^http(s)?:\/\/(.*?)\//
let getBlob = this.getFileBlob(x.PictureUrl.replace(reg, ''), 'aa.jpg')
let getBlob = this.getAnyFileBlob(x.PictureUrl.replace(reg, ''))
let that = this let that = this
getBlob.then(blob => { getBlob.then(blob => {
that.blobToDataURL(blob, function (e) { that.blobToDataURL(blob, function (e) {
......
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
text-align: right; text-align: right;
} }
</style> </style>
<template> <template>
<div class="flexOne currentManage page-body" style="position: relative;"> <div class="flexOne currentManage page-body" style="position: relative;">
<div class="query-box" style="border-bottom:0"> <div class="query-box" style="border-bottom:0">
<ul> <ul>
...@@ -73,9 +73,8 @@ ...@@ -73,9 +73,8 @@
</div> </div>
<div class="cm_content _scrollbar" <div class="cm_content _scrollbar"
style="position: absolute;top:83px;bottom: 20px;left: 15px;right:15px;overflow-y: scroll;"> style="position: absolute;top:83px;bottom: 20px;left: 15px;right:15px;overflow-y: scroll;">
<table class="po_content singeRowTable" <table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0"
style="border:1px solid #E6E6E6;" cellspacing="0" v-loading="loading">
cellpadding="0" v-loading="loading">
<tr> <tr>
<th>币种名称</th> <th>币种名称</th>
<th>汇率类型</th> <th>汇率类型</th>
...@@ -117,7 +116,8 @@ ...@@ -117,7 +116,8 @@
<el-col :span="5"> <el-col :span="5">
<el-form-item label="币种类型" prop="CurrencyId"> <el-form-item label="币种类型" prop="CurrencyId">
<el-select filterable v-model='addMsg.CurrencyId' @change="getType"> <el-select filterable v-model='addMsg.CurrencyId' @change="getType">
<el-option v-for="item in currencyTypeList" :key="item.ID" :value="item.ID" :label="item.Name"></el-option> <el-option v-for="item in currencyTypeList" :key="item.ID" :value="item.ID" :label="item.Name">
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -141,8 +141,8 @@ ...@@ -141,8 +141,8 @@
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import bankForm from './suject/bank' import bankForm from './suject/bank'
import cashForm from './suject/cash' import cashForm from './suject/cash'
import costForm from './suject/cost' import costForm from './suject/cost'
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
}, },
dataList: [], dataList: [],
loading: false, loading: false,
currencyTypeList:[] currencyTypeList: []
} }
}, },
created() { created() {
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
}, },
methods: { methods: {
Delete(item){ Delete(item) {
let _this = this let _this = this
let msg = { let msg = {
Id: item.Id Id: item.Id
...@@ -231,8 +231,8 @@ ...@@ -231,8 +231,8 @@
ok: "确定", ok: "确定",
cancel: "取消", cancel: "取消",
}).onOk(() => { }).onOk(() => {
this.apipost('Financial_post_DelKingdeeCurrency',msg, res => { this.apipost('Financial_post_DelKingdeeCurrency', msg, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
color: 'accent', color: 'accent',
...@@ -252,9 +252,9 @@ ...@@ -252,9 +252,9 @@
}); });
}, },
// 获取币种名称 // 获取币种名称
getType(ID){ getType(ID) {
this.currencyTypeList.forEach(item=>{ this.currencyTypeList.forEach(item => {
if(item.ID==ID){ if (item.ID == ID) {
this.addMsg.CurrencyName = item.Name this.addMsg.CurrencyName = item.Name
} }
}) })
...@@ -325,11 +325,10 @@ ...@@ -325,11 +325,10 @@
}, },
clickEdit(item) { clickEdit(item) {
this.addShow = false this.addShow = false
if(item){ if (item) {
this.text = '编辑金蝶币种' this.text = '编辑金蝶币种'
console.log(item)
this.addMsg = JSON.parse(JSON.stringify(item)) this.addMsg = JSON.parse(JSON.stringify(item))
}else{ } else {
this.text = '新增金蝶币种' this.text = '新增金蝶币种'
} }
this.addShow = true this.addShow = true
...@@ -348,5 +347,4 @@ ...@@ -348,5 +347,4 @@
}, },
} }
</script> </script>
\ No newline at end of file
<style scoped> <style scoped>
@import "../css/cssReset.css"; @import "../css/cssReset.css";
.suject-title-box { .suject-title-box {
border-bottom: 1px solid #dedede; border-bottom: 1px solid #dedede;
} }
...@@ -74,9 +75,8 @@ ...@@ -74,9 +75,8 @@
</div> </div>
<div class="cm_content _scrollbar" <div class="cm_content _scrollbar"
style="position: absolute;top:83px;bottom: 20px;left: 15px;right:15px;overflow-y: scroll;"> style="position: absolute;top:83px;bottom: 20px;left: 15px;right:15px;overflow-y: scroll;">
<table class="po_content singeRowTable" <table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0"
style="border:1px solid #E6E6E6;" cellspacing="0" v-loading="loading">
cellpadding="0" v-loading="loading">
<tr> <tr>
<th width="260px">校区/公司名称</th> <th width="260px">校区/公司名称</th>
<th>项目名称</th> <th>项目名称</th>
...@@ -119,7 +119,8 @@ ...@@ -119,7 +119,8 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="校区" prop="BranchId"> <el-form-item label="校区" prop="BranchId">
<el-select filterable v-model='addMsg.BranchId' @change="getType"> <el-select filterable v-model='addMsg.BranchId' @change="getType">
<el-option v-for="item in CompanyList" :key="item.SId" :value="item.SId" :label="item.SName"></el-option> <el-option v-for="item in CompanyList" :key="item.SId" :value="item.SId" :label="item.SName">
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -189,7 +190,7 @@ ...@@ -189,7 +190,7 @@
}, },
dataList: [], dataList: [],
loading: false, loading: false,
CompanyList:[] CompanyList: []
} }
}, },
created() { created() {
...@@ -200,7 +201,7 @@ ...@@ -200,7 +201,7 @@
}, },
methods: { methods: {
Delete(item){ Delete(item) {
let _this = this let _this = this
let msg = { let msg = {
Id: item.Id Id: item.Id
...@@ -213,8 +214,8 @@ ...@@ -213,8 +214,8 @@
ok: "确定", ok: "确定",
cancel: "取消", cancel: "取消",
}).onOk(() => { }).onOk(() => {
this.apipost('Financial_post_DelKingdeeItem',msg, res => { this.apipost('Financial_post_DelKingdeeItem', msg, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
color: 'accent', color: 'accent',
...@@ -233,7 +234,7 @@ ...@@ -233,7 +234,7 @@
}); });
}, },
getBranchList() {//获取校区 getBranchList() { //获取校区
getSchoolDropdown({}).then(res => { getSchoolDropdown({}).then(res => {
this.CompanyList = res.Data; this.CompanyList = res.Data;
// var obj = { // var obj = {
...@@ -246,9 +247,9 @@ ...@@ -246,9 +247,9 @@
}) })
}, },
// 获取金蝶项目名称 // 获取金蝶项目名称
getType(ID){ getType(ID) {
this.CompanyList.forEach(item=>{ this.CompanyList.forEach(item => {
if(item.SId==ID){ if (item.SId == ID) {
this.addMsg.BranchName = item.SName this.addMsg.BranchName = item.SName
} }
}) })
...@@ -304,11 +305,10 @@ ...@@ -304,11 +305,10 @@
}, },
clickEdit(item) { clickEdit(item) {
this.addShow = false this.addShow = false
if(item){ if (item) {
this.text = '编辑金蝶项目' this.text = '编辑金蝶项目'
console.log(item)
this.addMsg = JSON.parse(JSON.stringify(item)) this.addMsg = JSON.parse(JSON.stringify(item))
}else{ } else {
this.text = '新增金蝶项目' this.text = '新增金蝶项目'
} }
this.addShow = true this.addShow = true
......
<style> <style>
.baseSet_Title { .baseSet_Title {
width: 120px !important; width: 120px !important;
padding: 18px 0 0 16px; padding: 18px 0 0 16px;
text-align: right; text-align: right;
} }
.userCommissionDetails .border-bottom { .userCommissionDetails .border-bottom {
/* border-bottom: 1px dashed #EEE; */ /* border-bottom: 1px dashed #EEE; */
padding-bottom: 5px; padding-bottom: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
.userCommissionDetails .text-bottom { .userCommissionDetails .text-bottom {
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.userCommissionDetails ._icon_btn i.icon-sousuo { .userCommissionDetails ._icon_btn i.icon-sousuo {
background-color: #47bf8c; background-color: #47bf8c;
} }
.userCommissionDetails ._icon_btn i { .userCommissionDetails ._icon_btn i {
width: 30px; width: 30px;
height: 30px; height: 30px;
display: inline-block; display: inline-block;
...@@ -32,12 +32,13 @@ ...@@ -32,12 +32,13 @@
margin-right: 10px; margin-right: 10px;
cursor: pointer; cursor: pointer;
outline: none; outline: none;
} }
.userCommissionDetails .el-table td, .userCommissionDetails .el-table td,
.el-table th { .el-table th {
padding: 5px 0; padding: 5px 0;
} }
</style> </style>
<template> <template>
<div class="page-body userCommissionDetails"> <div class="page-body userCommissionDetails">
...@@ -48,9 +49,9 @@ ...@@ -48,9 +49,9 @@
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-select @input="getList" filled stack-label option-value="Id" option-label="EmployeeName" use-input input-debounce="0" <q-select @input="getList" filled stack-label option-value="Id" option-label="EmployeeName" use-input
v-model="msg.UserId" :options="PersionList" label="销售" :dense="false" input-debounce="0" v-model="msg.UserId" :options="PersionList" label="销售" :dense="false" emit-value
emit-value map-options @filter="filterFn2"> map-options @filter="filterFn2">
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
...@@ -66,34 +67,26 @@ ...@@ -66,34 +67,26 @@
</div> </div>
</div> </div>
<template> <template>
<el-table <el-table ref="filterTable" :data="tableData" v-loading="loading"
ref="filterTable" :header-cell-style="{ backgroundColor: '#f5f6f7', color: '#a8a8b3' }" border style="width: 100%">
:data="tableData"
v-loading="loading"
:header-cell-style="{ backgroundColor: '#f5f6f7', color: '#a8a8b3' }"
border
style="width: 100%"
>
<el-table-column prop="SchoolName" width="130" label="校区"></el-table-column> <el-table-column prop="SchoolName" width="130" label="校区"></el-table-column>
        <el-table-column prop="DeptName" width="100" label="部门"></el-table-column>         <el-table-column prop="DeptName" width="100" label="部门"></el-table-column>
 <el-table-column prop="AccountName" width="100"  label="销售"></el-table-column>  <el-table-column prop="AccountName" width="100"  label="销售"></el-table-column>
       <el-table-column prop="OrderId" width="80" label="订单号">        <el-table-column prop="OrderId" width="80" label="订单号">
<template slot-scope="scope"> <template slot-scope="scope">
<div <div style="cursor: pointer;text-decoration: underline;"
style="cursor: pointer;text-decoration: underline;" @click="goUrlorderList('/sale/orderStatistics',scope.row)">{{ scope.row.OrderId }}</div>
@click="goUrlorderList('/sale/orderStatistics',scope.row)"
>{{ scope.row.OrderId }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="OrderGuestNum" width="80" label="订单人数"></el-table-column> <el-table-column prop="OrderGuestNum" width="80" label="订单人数"></el-table-column>
        <el-table-column prop="OrderIncom" width="85" label="订单实收"></el-table-column>         <el-table-column prop="OrderIncom" width="85" label="订单实收"></el-table-column>
<el-table-column prop="OrderMoney" width="85" label="提成金额"> <el-table-column prop="OrderMoney" width="85" label="提成金额">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="color: rgb(233, 82, 82);">{{ scope.row.OrderMoney }}</div> <div style="color: rgb(233, 82, 82);">{{ scope.row.OrderMoney }}</div>
</template> </template>
</el-table-column> </el-table-column>
  <el-table-column prop="ClassName" width="180" label="班级"></el-table-column>   <el-table-column prop="ClassName" width="180" label="班级"></el-table-column>
        <el-table-column prop="ClassGuestNum" width="80" label="班级人数"></el-table-column>         <el-table-column prop="ClassGuestNum" width="80" label="班级人数"></el-table-column>
<el-table-column prop="Periods" width="80" label="期数"></el-table-column> <el-table-column prop="Periods" width="80" label="期数"></el-table-column>
<el-table-column prop="Remarks" width="" label="备注"></el-table-column> <el-table-column prop="Remarks" width="" label="备注"></el-table-column>
</el-table> </el-table>
...@@ -101,21 +94,23 @@ ...@@ -101,21 +94,23 @@
</div> </div>
</template> </template>
<script> <script>
import { date } from 'quasar' import {
import { date
} from 'quasar'
import {
GetClassTypePageList, GetClassTypePageList,
} from '../../../api/system/index'; } from '../../../api/system/index';
import { import {
GetLanguagePeriodDetails, GetLanguagePeriodDetails,
getSellAchievementsChangeLog getSellAchievementsChangeLog
} from '../../../api/finance/index' } from '../../../api/finance/index'
import { import {
queryEmployee queryEmployee
} from '../../../api/users/user' } from '../../../api/users/user'
import { import {
getClassDropDownList, getClassDropDownList,
} from "../../../api/school/index"; } from "../../../api/school/index";
export default { export default {
meta: { meta: {
title: "员工提成明细列表" title: "员工提成明细列表"
}, },
...@@ -140,12 +135,12 @@ export default { ...@@ -140,12 +135,12 @@ export default {
department: [], department: [],
ClassList: [], ClassList: [],
allClassList: [], allClassList: [],
ChangeLog:'', ChangeLog: '',
PersionList: [], //员工列表 PersionList: [], //员工列表
AllemployeeList: [], //所有员工 AllemployeeList: [], //所有员工
} }
}, },
created() { }, created() {},
mounted() { mounted() {
if (this.$route.query && this.$route.query.userId) { if (this.$route.query && this.$route.query.userId) {
this.msg.UserId = Number(this.$route.query.userId) this.msg.UserId = Number(this.$route.query.userId)
...@@ -180,34 +175,11 @@ export default { ...@@ -180,34 +175,11 @@ export default {
SchoolName: '合计', SchoolName: '合计',
OrderMoney: 0, OrderMoney: 0,
} }
console.log("obj",obj);
this.tableData.forEach((x) => { this.tableData.forEach((x) => {
obj.OrderMoney += x.OrderMoney obj.OrderMoney += x.OrderMoney
}) })
console.log("obj",obj);
this.tableData.push(obj) this.tableData.push(obj)
}, },
// accAdd(arg1, arg2) { //js 加法精确计算
// var r1, r2, m;
// try {
// r1 = arg1.toString().split(".")[1].length;
// } catch (e) {
// r1 = 0;
// }
// try {
// r2 = arg2.toString().split(".")[1].length;
// } catch (e) {
// r2 = 0;
// }
// m = Math.pow(10, Math.max(r1, r2));
// return (arg1 * m + arg2 * m) / m;
// },
//选择班级 //选择班级
setClass(item) { setClass(item) {
this.isShowClass = true; this.isShowClass = true;
...@@ -222,7 +194,6 @@ export default { ...@@ -222,7 +194,6 @@ export default {
ClassName: '不限' ClassName: '不限'
} }
jsonData.unshift(obj) jsonData.unshift(obj)
if (jsonData && jsonData.length > 0) { if (jsonData && jsonData.length > 0) {
this.ClassList = JSON.parse(JSON.stringify(jsonData)); this.ClassList = JSON.parse(JSON.stringify(jsonData));
this.allClassList = JSON.parse(JSON.stringify(jsonData));; this.allClassList = JSON.parse(JSON.stringify(jsonData));;
...@@ -302,32 +273,32 @@ export default { ...@@ -302,32 +273,32 @@ export default {
goreturn() { goreturn() {
this.$router.go(-1); this.$router.go(-1);
}, },
goUrlorderList(path, row) {//订单跳转 goUrlorderList(path, row) { //订单跳转
if(row.OrderId!=-1){ if (row.OrderId != -1) {
this.OpenNewUrl(path, { this.OpenNewUrl(path, {
OrderId: row.OrderId, OrderId: row.OrderId,
// EnterID:row.UserId // EnterID:row.UserId
}); });
}else{ } else {
// row.IsDept==2 // row.IsDept==2
let newDate = row.Periods.split('-') let newDate = row.Periods.split('-')
let MonthDayNum = new Date(newDate[0], newDate[1], 0).getDate(); //计算当月的天数 let MonthDayNum = new Date(newDate[0], newDate[1], 0).getDate(); //计算当月的天数
this.OpenNewUrl(path, { this.OpenNewUrl(path, {
OrderId: row.OrderId, OrderId: row.OrderId,
startTime: row.Periods+'-01', startTime: row.Periods + '-01',
endTime: row.Periods+'-'+MonthDayNum, endTime: row.Periods + '-' + MonthDayNum,
createBy: row.UserId createBy: row.UserId
}); });
} }
}, },
goUrlclass(path, Names) {//班级 goUrlclass(path, Names) { //班级
let Name = encodeURI(Names) let Name = encodeURI(Names)
this.OpenNewUrl(path, { this.OpenNewUrl(path, {
ClassName: Name, ClassName: Name,
}); });
}, },
goUrlkehao(path, row) {//跳转到学生课耗 goUrlkehao(path, row) { //跳转到学生课耗
let StartMonth = '' let StartMonth = ''
let EndMonth = '' let EndMonth = ''
if (row.IsFirstCommission == 1) { if (row.IsFirstCommission == 1) {
...@@ -350,7 +321,7 @@ export default { ...@@ -350,7 +321,7 @@ export default {
comefrom: 1, comefrom: 1,
}); });
}, },
getmingxi(row){//明细 getmingxi(row) { //明细
getSellAchievementsChangeLog({ getSellAchievementsChangeLog({
OrderId: row.OrderId, OrderId: row.OrderId,
UserId: row.UserId, UserId: row.UserId,
...@@ -364,9 +335,10 @@ export default { ...@@ -364,9 +335,10 @@ export default {
} }
}, },
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass')
@import url('~assets/css/table.sass')
</style> </style>
...@@ -116,7 +116,8 @@ ...@@ -116,7 +116,8 @@
<div class="Myprint Receipt_boxNew" :class="[GetDetail.Type==1 || GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'> <div class="Myprint Receipt_boxNew" :class="[GetDetail.Type==1 || GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'>
<div class="11" v-show="disabled"> <div class="11" v-show="disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index"> <template v-for="(val,index) in loopNumN">
<div v-if="index==1" class="_border_1" :key="index">
<el-tooltip class="item" effect="dark" content="追加团款" placement="top"> <el-tooltip class="item" effect="dark" content="追加团款" placement="top">
<span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span> <span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span>
</el-tooltip> </el-tooltip>
...@@ -317,9 +318,12 @@ ...@@ -317,9 +318,12 @@
</template> </template>
</div> </div>
</div> </div>
</template>
</div> </div>
<div class="22" v-show="!disabled"> <div class="22" v-show="!disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index"> <template v-for="(val,index) in loopNumN">
<div v-if="index==1" class="_border_1" :key="index">
<el-tooltip class="item" effect="dark" content="追加团款" placement="top"> <el-tooltip class="item" effect="dark" content="追加团款" placement="top">
<span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span> <span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span>
</el-tooltip> </el-tooltip>
...@@ -545,6 +549,8 @@ ...@@ -545,6 +549,8 @@
</template> </template>
</div> </div>
</div> </div>
</template>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -94,7 +94,8 @@ ...@@ -94,7 +94,8 @@
<template v-if="GetDetail&&GetDetail.DetailList.length>0"> <template v-if="GetDetail&&GetDetail.DetailList.length>0">
<div class="Receipt_box" :class="[GetDetail.Type==1?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'> <div class="Receipt_box" :class="[GetDetail.Type==1?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'>
<div v-show="disabled"> <div v-show="disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index"> <template v-for="(val,index) in loopNumN">
<div v-if="index==1" class="_border_1" :key="index">
<div class="_sanjiao_"></div> <div class="_sanjiao_"></div>
<p class="rb_tit">{{GetDetail.CompanyName}}</p> <p class="rb_tit">{{GetDetail.CompanyName}}</p>
<table class="Receipt_table" border="1" :class="[GetDetail.Type==1?'_border_color_r':'_border_color_b',isPrintPage?'_border_color_p':'']" :bordercolor="GetDetail.Type==1?'#c94052':'#106BAF'" style="border-collapse:collapse;"> <table class="Receipt_table" border="1" :class="[GetDetail.Type==1?'_border_color_r':'_border_color_b',isPrintPage?'_border_color_p':'']" :bordercolor="GetDetail.Type==1?'#c94052':'#106BAF'" style="border-collapse:collapse;">
...@@ -217,9 +218,12 @@ ...@@ -217,9 +218,12 @@
</tr> </tr>
</table>` </table>`
</div> </div>
</template>
</div> </div>
<div v-show="!disabled"> <div v-show="!disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index"> <template v-for="(val,index) in loopNumN">
<div v-if="index==1" class="_border_1" :key="index">
<div class="_sanjiao_"></div> <div class="_sanjiao_"></div>
<p class="rb_tit"> <p class="rb_tit">
<el-input size="small" style="width:auto" v-model="GetDetail.CompanyName" placeholder="请输入"></el-input> <el-input size="small" style="width:auto" v-model="GetDetail.CompanyName" placeholder="请输入"></el-input>
...@@ -369,6 +373,8 @@ ...@@ -369,6 +373,8 @@
</tr> </tr>
</table> </table>
</div> </div>
</template>
</div> </div>
</div> </div>
......
...@@ -98,7 +98,8 @@ ...@@ -98,7 +98,8 @@
<template v-if="GetDetail.DetailList.length>0" > <template v-if="GetDetail.DetailList.length>0" >
<div class="Myprint Receipt_boxNew" :class="[GetDetail.Type==1|| GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'> <div class="Myprint Receipt_boxNew" :class="[GetDetail.Type==1|| GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'>
<div v-show="disabled"> <div v-show="disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index"> <template v-for="(val,index) in loopNumN">
<div v-if="index==1" class="_border_1" :key="index">
<p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p> <p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p>
<p class="rb_stit" style="position:relative"> <p class="rb_stit" style="position:relative">
<span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span> <span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span>
...@@ -264,7 +265,7 @@ ...@@ -264,7 +265,7 @@
</tr> </tr>
<tr v-if="isPrintPage"> <tr v-if="isPrintPage">
<td height="26px">{{$t('hotel.hotel_remark')}}</td> <td height="26px">{{$t('hotel.hotel_remark')}}</td>
<td height="26px" colspan="7"> <td height="26px" colspan="7" v-if="GetDetail.AuditSteps&&GetDetail.AuditSteps.length">
{{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : '无'}} {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : '无'}}
</td> </td>
</tr> </tr>
...@@ -280,10 +281,12 @@ ...@@ -280,10 +281,12 @@
</template> </template>
</div> </div>
</div> </div>
</template>
</div> </div>
<div v-show="!disabled"> <div v-show="!disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index"> <template v-for="(val,index) in loopNumN">
<div v-if="index==1" class="_border_1" :key="index">
<p class="rb_tit" style="font-size: 16px !important;"> <p class="rb_tit" style="font-size: 16px !important;">
<el-input :disabled="disabled" size="small" style="width:135px" v-model="GetDetail.CompanyName" placeholder="请输入"></el-input> <el-input :disabled="disabled" size="small" style="width:135px" v-model="GetDetail.CompanyName" placeholder="请输入"></el-input>
(<el-input :disabled="disabled" size="small" style="width:80px" v-model="GetDetail.BranchName" placeholder="请输入"></el-input>) (<el-input :disabled="disabled" size="small" style="width:80px" v-model="GetDetail.BranchName" placeholder="请输入"></el-input>)
...@@ -478,7 +481,7 @@ ...@@ -478,7 +481,7 @@
</tr> </tr>
<tr v-if="isPrintPage"> <tr v-if="isPrintPage">
<td height="26px">{{$t('hotel.hotel_remark')}}</td> <td height="26px">{{$t('hotel.hotel_remark')}}</td>
<td height="26px" colspan="7"> <td height="26px" colspan="7" v-if="GetDetail.AuditSteps&&GetDetail.AuditSteps.length">
<el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark" placeholder="请输入"></el-input> <el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark" placeholder="请输入"></el-input>
<!-- {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : '无'}} --> <!-- {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : '无'}} -->
...@@ -496,6 +499,7 @@ ...@@ -496,6 +499,7 @@
</template> </template>
</div> </div>
</div> </div>
</template>
</div> </div>
......
...@@ -276,7 +276,8 @@ ...@@ -276,7 +276,8 @@
<template> <template>
<div class="CapitalDetail"> <div class="CapitalDetail">
<div class="11" v-show="disabled"> <div class="11" v-show="disabled">
<div v-for="(val,index) in loopNumN" :key="index" style="margin-bottom:20px"> <template v-for="(val,index) in loopNumN">
<div v-if="index==1" :key="index" style="margin-bottom:20px">
<div class="myCapital"> <div class="myCapital">
<div> <div>
<div class="Ca_title">{{dataList.CompanyName}}</div> <div class="Ca_title">{{dataList.CompanyName}}</div>
...@@ -418,9 +419,12 @@ ...@@ -418,9 +419,12 @@
</div> </div>
</div> </div>
</div> </div>
</template>
</div> </div>
<div class="22" v-show="!disabled"> <div class="22" v-show="!disabled">
<div v-for="(val,index) in loopNumN" :key="index" style="margin-bottom:20px"> <template v-for="(val,index) in loopNumN">
<div v-if="index==1" :key="index" style="margin-bottom:20px">
<div class="myCapital"> <div class="myCapital">
<div class="Ca_leftOrder"> <div class="Ca_leftOrder">
<div class="Ca_title"> <div class="Ca_title">
...@@ -551,6 +555,8 @@ ...@@ -551,6 +555,8 @@
</div> </div>
</div> </div>
</div> </div>
</template>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -25,31 +25,41 @@ ...@@ -25,31 +25,41 @@
<div class="_PrintPage"> <div class="_PrintPage">
<div class="_PrintPage_box"> <div class="_PrintPage_box">
<template v-if="type==='2'&&(Merge==='0'||Merge===null)"> <template v-if="type==='2'&&(Merge==='0'||Merge===null)">
<div class="_border_1" v-for="(item,index) in loopNumT"> <template v-for="(item,index) in loopNumT">
<div v-if="index==1" class="_border_1">
<my-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-Bill> <my-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-Bill>
</div> </div>
</template> </template>
</template>
<template v-else-if="type==='1'&&(Merge==='0'||Merge===null)"> <template v-else-if="type==='1'&&(Merge==='0'||Merge===null)">
<div class="_border_1" v-for="(item,index) in loopNumN"> <template v-for="(item,index) in loopNumN">
<div v-if="index==1" class="_border_1">
<my-RVB-Bill v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :OrderSource="OrderSource" :color="colorSon" :name='index+1'></my-RVB-Bill> <my-RVB-Bill v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :OrderSource="OrderSource" :color="colorSon" :name='index+1'></my-RVB-Bill>
</div> </div>
</template> </template>
</template>
<template v-if="type==='7'&&(Merge==='0'||Merge===null)"> <template v-if="type==='7'&&(Merge==='0'||Merge===null)">
<div class="_border_1" v-for="(item,index) in loopNumT"> <template v-for="(item,index) in loopNumT">
<div v-if="index==1" class="_border_1">
<my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-GZ-Bill> <my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-GZ-Bill>
</div> </div>
</template> </template>
</template>
<!-- 收据3 --> <!-- 收据3 -->
<template v-if="type==='3'"> <template v-if="type==='3'">
<div class="_border_1" v-for="(item,index) in loopNumT"> <template v-for="(item,index) in loopNumT">
<div v-if="index==1" class="_border_1">
<my-SJ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-SJ-Bill> <my-SJ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-SJ-Bill>
</div> </div>
</template> </template>
</template>
<template v-if="Merge==='1'"> <template v-if="Merge==='1'">
<div class="_border_1" v-for="(item,index) in loopNumN"> <template v-for="(item,index) in loopNumN">
<div v-if="index==1" class="_border_1">
<my-HB-Bill v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :name='index+1'></my-HB-Bill> <my-HB-Bill v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :name='index+1'></my-HB-Bill>
</div> </div>
</template> </template>
</template>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -67,11 +67,13 @@ ...@@ -67,11 +67,13 @@
</div> </div>
</template> </template>
<template v-if="type==='7'&&(Merge==='0'||Merge===null)"> <template v-if="type==='7'&&(Merge==='0'||Merge===null)">
<div class="_border_1" v-for="(item,index) in loopNumT"> <template v-for="(item,index) in loopNumT">
<div v-if="index==1" class="_border_1">
<my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" <my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource"
:name='index+1'></my-GZ-Bill> :name='index+1'></my-GZ-Bill>
</div> </div>
</template> </template>
</template>
<template v-if="(Merge==='1' && hedan==2)"> <template v-if="(Merge==='1' && hedan==2)">
<div class="SetDiv"> <div class="SetDiv">
<span @click="goUrl(2)">切换</span> <span @click="goUrl(2)">切换</span>
......
...@@ -475,9 +475,11 @@ ...@@ -475,9 +475,11 @@
._TCIDAndTCNUMList { ._TCIDAndTCNUMList {
display: flex; display: flex;
} }
.caoz i{
.caoz i {
margin-bottom: 5px; margin-bottom: 5px;
} }
</style> </style>
<template> <template>
...@@ -487,9 +489,8 @@ ...@@ -487,9 +489,8 @@
<el-row style="padding:15px 20px 0 0;"> <el-row style="padding:15px 20px 0 0;">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="交易日期:"> <el-form-item label="交易日期:">
<el-date-picker class="h34" v-model="transactionDate" <el-date-picker class="h34" v-model="transactionDate" @change="timeAdd(3)" type="daterange"
@change="timeAdd(3)" type="daterange" :picker-options="pickerOptions" :picker-options="pickerOptions" value-format="yyyy-MM-dd">
value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -504,7 +505,9 @@ ...@@ -504,7 +505,9 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div style="display: inline-block;padding: 0 5px;height: 42px;line-height: 40px;font-weight: bold;font-size: 14px;border-radius: 4px;box-sizing: border-box;white-space: nowrap;margin: 0px 0px 4px 28px;"><span > <div
style="display: inline-block;padding: 0 5px;height: 42px;line-height: 40px;font-weight: bold;font-size: 14px;border-radius: 4px;box-sizing: border-box;white-space: nowrap;margin: 0px 0px 4px 28px;">
<span>
总收入:</span> <span style="color:red;">{{DataList.Income}}</span> <span style="padding-left:20px;"> 总收入:</span> <span style="color:red;">{{DataList.Income}}</span> <span style="padding-left:20px;">
总支出:</span><span style="color:red;">{{DataList.Expenditure}}</span></div> 总支出:</span><span style="color:red;">{{DataList.Expenditure}}</span></div>
<ul class="clearfix"> <ul class="clearfix">
...@@ -520,10 +523,11 @@ ...@@ -520,10 +523,11 @@
<div v-if="DataList.Result.length>0" v-for="(item,index) in DataList.Result" :index="index"> <div v-if="DataList.Result.length>0" v-for="(item,index) in DataList.Result" :index="index">
<div style="text-align:center;height:50px;padding-top:20px;font-weight:bold;"><span>{{item.Alias}}</span> <div style="text-align:center;height:50px;padding-top:20px;font-weight:bold;"><span>{{item.Alias}}</span>
<span>{{item.BankNo}}</span><span style="padding-left:20px;">收入:{{item.Income}}</span><span style="padding-left:20px;">支出{{item.Expenditure}}</span> <span>{{item.BankNo}}</span><span style="padding-left:20px;">收入:{{item.Income}}</span><span
style="padding-left:20px;">支出{{item.Expenditure}}</span>
</div> </div>
<el-table :data="item.FinanceList" border style="width: 100%;font-size: 12px"> <el-table :data="item.FinanceList" border style="width: 100%;font-size: 12px">
<el-table-column prop="CreateDate"label="交易日期" width="150"> <el-table-column prop="CreateDate" label="交易日期" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.CreateDate}}</span> <span>{{scope.row.CreateDate}}</span>
</template> </template>
...@@ -538,12 +542,12 @@ ...@@ -538,12 +542,12 @@
<span v-if="scope.row.Type==2"> {{scope.row.Money}}</span> <span v-if="scope.row.Type==2"> {{scope.row.Money}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="RemitterName" label="对方单位" > <el-table-column prop="RemitterName" label="对方单位">
<template slot-scope="scope"> <template slot-scope="scope">
<span> {{scope.row.RemitterName}}</span> <span> {{scope.row.RemitterName}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="RemitterName" label="对方账号" > <el-table-column prop="RemitterName" label="对方账号">
<template slot-scope="scope"> <template slot-scope="scope">
<span> {{scope.row.CardNum}}</span> <span> {{scope.row.CardNum}}</span>
</template> </template>
...@@ -573,7 +577,8 @@ ...@@ -573,7 +577,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div style="width: 100%;height: 50px;line-height: 50px;text-align: center;" v-if="DataList.Result!=null&&DataList.Result.length==0">暂无数据</div> <div style="width: 100%;height: 50px;line-height: 50px;text-align: center;"
v-if="DataList.Result!=null&&DataList.Result.length==0">暂无数据</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -596,7 +601,7 @@ ...@@ -596,7 +601,7 @@
import { import {
getSchoolDropdown getSchoolDropdown
} from '../../../api/school/index' } from '../../../api/school/index'
import treeItemVue from 'src/components/common/tree-table/tree-item.vue'; import treeItemVue from 'src/components/common/tree-table/tree-item.vue';
export default { export default {
data() { data() {
...@@ -604,7 +609,10 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue'; ...@@ -604,7 +609,10 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue';
selectDate: '', selectDate: '',
// 日期时间范围在一个月以内 // 日期时间范围在一个月以内
pickerOptions: { pickerOptions: {
onPick: ({ maxDate, minDate }) => { onPick: ({
maxDate,
minDate
}) => {
this.selectDate = minDate.getTime() this.selectDate = minDate.getTime()
if (maxDate) { if (maxDate) {
this.selectDate = '' this.selectDate = ''
...@@ -626,8 +634,8 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue'; ...@@ -626,8 +634,8 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue';
searchList: [], searchList: [],
widthSon: '700px', widthSon: '700px',
colorSon: "#f5f5f5", colorSon: "#f5f5f5",
Finance_InvoiceUpdate:false, Finance_InvoiceUpdate: false,
Finance_ExpenseType:false, Finance_ExpenseType: false,
msg: { msg: {
FrID: '', FrID: '',
sDate: '', sDate: '',
...@@ -738,13 +746,13 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue'; ...@@ -738,13 +746,13 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue';
SName: "", SName: "",
Status: '-1' Status: '-1'
}, },
modifydjfp:{ modifydjfp: {
}, },
xgfpBox:false, xgfpBox: false,
getInvoiceList:[], getInvoiceList: [],
costmode:false,//费用类型的修改弹窗 costmode: false, //费用类型的修改弹窗
trabeList:[],//修改费用类型的下啦数据 trabeList: [], //修改费用类型的下啦数据
} }
}, },
created() { created() {
...@@ -792,10 +800,10 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue'; ...@@ -792,10 +800,10 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue';
let ActionMenuList = JSON.parse(localStorageData).data.ActionMenuList let ActionMenuList = JSON.parse(localStorageData).data.ActionMenuList
if (ActionMenuList && ActionMenuList.length > 0) { if (ActionMenuList && ActionMenuList.length > 0) {
ActionMenuList.forEach(x => { ActionMenuList.forEach(x => {
if (x.FunctionCode == 'Finance_InvoiceUpdate') {//发票修改权限 if (x.FunctionCode == 'Finance_InvoiceUpdate') { //发票修改权限
this.Finance_InvoiceUpdate = true this.Finance_InvoiceUpdate = true
} }
if(x.FunctionCode == 'Finance_ExpenseType'){//费用类型修改权限 if (x.FunctionCode == 'Finance_ExpenseType') { //费用类型修改权限
this.Finance_ExpenseType = true this.Finance_ExpenseType = true
} }
}) })
...@@ -880,11 +888,9 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue'; ...@@ -880,11 +888,9 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue';
if (!this.msg.KJCostTypeId) this.msg.KJCostTypeId = 0; if (!this.msg.KJCostTypeId) this.msg.KJCostTypeId = 0;
if (!this.msg.IsSelectKJSetCostType) this.msg.IsSelectKJSetCostType = 0; if (!this.msg.IsSelectKJSetCostType) this.msg.IsSelectKJSetCostType = 0;
this.loading = true; this.loading = true;
console.log("进方法啦");
this.apipost('Financial_post_GetEduALLPageList', this.msg, res => { this.apipost('Financial_post_GetEduALLPageList', this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DataList = res.data.data; this.DataList = res.data.data;
console.log("this.DataList",this.DataList);
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.loading = false; this.loading = false;
} else { } else {
...@@ -916,7 +922,6 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue'; ...@@ -916,7 +922,6 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue';
mathMoney(n) { // 数字转中文大写 1 mathMoney(n) { // 数字转中文大写 1
this.ChineseStr = this.$commonUtils.changeMoneyToChinese(n) this.ChineseStr = this.$commonUtils.changeMoneyToChinese(n)
}, },
timeAdd(t) { // 日期格式 timeAdd(t) { // 日期格式
if (t == 3) { //交易日期 if (t == 3) { //交易日期
if (!this.transactionDate) { if (!this.transactionDate) {
...@@ -924,7 +929,6 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue'; ...@@ -924,7 +929,6 @@ import treeItemVue from 'src/components/common/tree-table/tree-item.vue';
this.msg.eTradeDate = ''; this.msg.eTradeDate = '';
return return
} }
console.log("this.transactionDate",this.transactionDate);
this.msg.sTradeDate = this.transactionDate[0]; this.msg.sTradeDate = this.transactionDate[0];
this.msg.eTradeDate = this.transactionDate[1]; this.msg.eTradeDate = this.transactionDate[1];
} }
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
height: 40px; height: 40px;
background-color: rgb(238, 238, 239); background-color: rgb(238, 238, 239);
} }
</style> </style>
<template> <template>
<div class="page-body studentTracking"> <div class="page-body studentTracking">
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,7 @@
<div class="col-2" style="width: 13%"> <div class="col-2" style="width: 13%">
<q-field filled dense> <q-field filled dense>
<el-date-picker v-model="msg.StartTime" type="month" value-format="yyyy-MM" placeholder="订单日期" size="small" <el-date-picker v-model="msg.StartTime" type="month" value-format="yyyy-MM" placeholder="订单日期" size="small"
style="width: 100%" @change="resetSearch" clear-icon="iconfont icon-guanbi" > style="width: 100%" @change="resetSearch" clear-icon="iconfont icon-guanbi">
</el-date-picker> </el-date-picker>
</q-field> </q-field>
</div> </div>
...@@ -104,7 +105,8 @@ ...@@ -104,7 +105,8 @@
<span>{{dataList.totalPriceXia}}</span> <span>{{dataList.totalPriceXia}}</span>
</div> </div>
<div v-if="dataList.sourceList&&dataList.sourceList.length>0" v-for=" ( itemSource , indexSource ) in dataList.sourceList " :key="indexSource"> <div v-if="dataList.sourceList&&dataList.sourceList.length>0"
v-for=" ( itemSource , indexSource ) in dataList.sourceList " :key="indexSource">
<div class="col stics"> <div class="col stics">
<span class="stics-name">{{itemSource.CreateTypeStr}}</span> <span class="stics-name">{{itemSource.CreateTypeStr}}</span>
...@@ -116,8 +118,8 @@ ...@@ -116,8 +118,8 @@
</div> </div>
<div style="width: 100%;margin-top: 20px"> <div style="width: 100%;margin-top: 20px">
<monthStatisticslist :dataObj="dataList" @success="refreshPage" <monthStatisticslist :dataObj="dataList" @success="refreshPage" :loading="loading" ref="monthStatisticslist">
:loading="loading" ref="monthStatisticslist"></monthStatisticslist> </monthStatisticslist>
</div> </div>
</div> </div>
...@@ -177,7 +179,7 @@ ...@@ -177,7 +179,7 @@
let firstDay = new Date(); let firstDay = new Date();
var year = firstDay.getFullYear(); //年 var year = firstDay.getFullYear(); //年
var month = firstDay.getMonth() + 1; //月 var month = firstDay.getMonth() + 1; //月
this.msg.StartTime=year + '-' + month; this.msg.StartTime = year + '-' + month;
}, },
...@@ -235,16 +237,13 @@ ...@@ -235,16 +237,13 @@
getList() { getList() {
this.loading = true; this.loading = true;
let msg = JSON.parse(JSON.stringify(this.msg)) let msg = JSON.parse(JSON.stringify(this.msg))
GetStudentMonthList(msg).then(res => { GetStudentMonthList(msg).then(res => {
this.loading = false; this.loading = false;
console.log("res.Data",res.Data.list);
this.dataList = res.Data; this.dataList = res.Data;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
}, },
//获取客户类型 //获取客户类型
getCustomTypeList() { getCustomTypeList() {
...@@ -273,9 +272,11 @@ ...@@ -273,9 +272,11 @@
}, },
}, },
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
<style scoped> <style scoped>
/deep/.el-input__inner, /deep/.el-input__inner,
...@@ -302,4 +303,5 @@ ...@@ -302,4 +303,5 @@
.roatImg { .roatImg {
transform: rotate(180deg); transform: rotate(180deg);
} }
</style> </style>
...@@ -552,12 +552,10 @@ ...@@ -552,12 +552,10 @@
this.orderHandoverMsg.UserId = row.EmAccountId this.orderHandoverMsg.UserId = row.EmAccountId
this.orderIsDetails = true this.orderIsDetails = true
}, },
// 协助老师交接 // 协助老师交接
teacherHandover(row) { teacherHandover(row) {
console.log("row", row);
this.teacherHandoverMsg.UserId = row.EmAccountId; this.teacherHandoverMsg.UserId = row.EmAccountId;
this.teacherHandoverMsg.EmployeeName=row.EmployeeName; this.teacherHandoverMsg.EmployeeName = row.EmployeeName;
this.teacherIsDetails = true this.teacherIsDetails = true
}, },
saveOrderHandoverInfo() { //保存 saveOrderHandoverInfo() { //保存
...@@ -639,7 +637,6 @@ ...@@ -639,7 +637,6 @@
UserId: this.teacherHandoverMsg.UserId, UserId: this.teacherHandoverMsg.UserId,
ReceiveId: this.teacherHandoverMsg.ReceiveId ReceiveId: this.teacherHandoverMsg.ReceiveId
} }
console.log("开始保存咔咔咔咔咔咔");
SetUserLeaveTearchCareOf(msg).then(res => { SetUserLeaveTearchCareOf(msg).then(res => {
if (res.Code == 1) if (res.Code == 1)
this.$q.notify({ this.$q.notify({
......
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
</template> </template>
<template v-slot:body-cell-Using="props"> <template v-slot:body-cell-Using="props">
<q-td :props="props"> <q-td :props="props">
<div class="site_ListDiv">空间名称(Bucket):{{props.row.Bucket}}</div> <!-- <div class="site_ListDiv">空间名称(Bucket):{{props.row.Bucket}}</div>
<div class="site_ListDiv">所属地域:{{props.row.Region}}</div> <div class="site_ListDiv">所属地域:{{props.row.Region}}</div>
<div class="site_ListDiv">自定义域名:{{props.row.CustomDomain}}</div> <div class="site_ListDiv">自定义域名:{{props.row.CustomDomain}}</div> -->
<div class="site_ListDiv">SecretId:{{props.row.SecretId}}</div> <!-- <div class="site_ListDiv">SecretId:{{props.row.SecretId}}</div>
<div>SecretKey:{{props.row.SecretKey}}</div> <div>SecretKey:{{props.row.SecretKey}}</div> -->
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
......
...@@ -53,14 +53,12 @@ ...@@ -53,14 +53,12 @@
<div class="page-body studentTracking"> <div class="page-body studentTracking">
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<p style="margin-bottom:10px;"> 学生姓名:<strong style="color:red;">{{this.$route.query.StuName}}</strong></p> <p style="margin-bottom:10px;"> 学生姓名:<strong style="color:red;">{{this.$route.query.StuName}}</strong></p>
<q-select dense filled option-value="CourseId" option-label="CourseName" v-model="msg.CourseId" <q-select dense filled option-value="CourseId" option-label="CourseName" v-model="msg.CourseId"
:options="allCourseList" emit-value map-options label="课程名称" :options="allCourseList" emit-value map-options label="课程名称" @update:model-value="getCourseId"
@update:model-value="getCourseId" @input="refreshPage" /> @input="refreshPage" />
</div> </div>
</div> </div>
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增考试" @click="AddExam(2)" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增考试" @click="AddExam(2)" />
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增月度总结" @click="AddExam(3)" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增月度总结" @click="AddExam(3)" />
...@@ -70,12 +68,13 @@ ...@@ -70,12 +68,13 @@
<el-tab-pane label="月度总结" name="second"></el-tab-pane> <el-tab-pane label="月度总结" name="second"></el-tab-pane>
</el-tabs> </el-tabs>
<div style="width: 100%;margin-top: 20px" v-if="activeName=='first'"> <div style="width: 100%;margin-top: 20px" v-if="activeName=='first'">
<stufollowlist :dataObj="dataList" :CourseRateName="CourseRateName" :BaseInfo="msg" @success="refreshPage" :titlelist="titlelist" <stufollowlist :dataObj="dataList" :CourseRateName="CourseRateName" :BaseInfo="msg" @success="refreshPage"
:loading="loading" ref="stuFollowList" :AuthObj="AuthObj"></stufollowlist> :titlelist="titlelist" :loading="loading" ref="stuFollowList" :AuthObj="AuthObj"></stufollowlist>
</div> </div>
<div style="width: 100%;margin-top: 20px" v-if="activeName=='second'"> <div style="width: 100%;margin-top: 20px" v-if="activeName=='second'">
<studentStudylMonthlist :dataObj="dataList" :CourseRateName="CourseRateName" :BaseInfo="msg" @success="refreshPage" :titlelist="titlelist" <studentStudylMonthlist :dataObj="dataList" :CourseRateName="CourseRateName" :BaseInfo="msg"
:loading="loading" ref="studentStudylMonthlist" :AuthObj="AuthObj"></studentStudylMonthlist> @success="refreshPage" :titlelist="titlelist" :loading="loading" ref="studentStudylMonthlist"
:AuthObj="AuthObj"></studentStudylMonthlist>
</div> </div>
<q-dialog persistent v-model="isShowManagerForm"> <q-dialog persistent v-model="isShowManagerForm">
<studentStudyAddForm :saveObj="managerOption" :BaseInfo="msg" @close="closeStuForm" @success="refreshPage"> <studentStudyAddForm :saveObj="managerOption" :BaseInfo="msg" @close="closeStuForm" @success="refreshPage">
...@@ -93,22 +92,13 @@ ...@@ -93,22 +92,13 @@
queryStuOrderPage, //学员订单分页列表 queryStuOrderPage, //学员订单分页列表
} from '../../api/customerstudent/customerstudent'; } from '../../api/customerstudent/customerstudent';
import {
EduDownLoad
} from "../../api/common/common";
import {
GetStudentAdvisorConfigList,
} from "../../api/customerstudent/customerstudent";
import stufollowlist from "../../components/school/student/studentStudylist"; import stufollowlist from "../../components/school/student/studentStudylist";
import studentStudylMonthlist from "../../components/school/student/studentStudylMonthlist"; import studentStudylMonthlist from "../../components/school/student/studentStudylMonthlist";
import studentStudyAddForm from "../../components/school/student/studentStudyAddForm"; import studentStudyAddForm from "../../components/school/student/studentStudyAddForm";
import {
mapState
} from "vuex";
export default { export default {
meta: { meta: {
title: "学员学情况" title: "学员学情况"
}, },
props: {}, props: {},
components: { components: {
...@@ -123,20 +113,20 @@ ...@@ -123,20 +113,20 @@
IsLeave: 1, IsLeave: 1,
titlelist: [], titlelist: [],
msg: { msg: {
CourseId: 0, //课程 "StuId":1746,"CourseId":322,"GuestId":1162,"ClassScrollType":2 CourseId: 0,
StuId:0, StuId: 0,
GuestId:0, GuestId: 0,
ClassScrollType:0, ClassScrollType: 0,
OrderId:0, OrderId: 0,
}, },
loading: false, loading: false,
isShowManagerForm:false, isShowManagerForm: false,
dataList: null, //列表数据 dataList: null, //列表数据
managerOption: 0, managerOption: 0,
PageCount: 0, PageCount: 0,
CourseRateName: '', CourseRateName: '',
allCourseList: [], //课程 allCourseList: [], //课程
myCourseList:[], myCourseList: [],
customMsg: { customMsg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10000, pageSize: 10000,
...@@ -157,54 +147,37 @@ ...@@ -157,54 +147,37 @@
} }
if (this.$route.query.ClassScrollType) { if (this.$route.query.ClassScrollType) {
this.msg.ClassScrollType = this.customMsg.ClassScrollType = parseInt(this.$route.query.ClassScrollType) this.msg.ClassScrollType = this.customMsg.ClassScrollType = parseInt(this.$route.query.ClassScrollType)
} if (this.$route.query.CourseRateName) { }
if (this.$route.query.CourseRateName) {
this.CourseRateName = this.$route.query.CourseRateName this.CourseRateName = this.$route.query.CourseRateName
} }
} }
this.getCourseList(); //获取课程下拉 this.getCourseList(); //获取课程下拉
}, },
computed: mapState({ mounted() {},
//是否有下载权限
isHaveDownLoad(state) {
if (state.user.userInfo && state.user.userInfo.ActionMenuList && state.user.userInfo.ActionMenuList.length >
0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "studentTracking_download") {
return x;
}
});
return action && action.FunctionCode;
}
return false;
}
}),
mounted() {
},
methods: { methods: {
handleClick(tab, event) { handleClick(tab, event) {
this.refreshPage() this.refreshPage()
}, },
AddExam(type) { AddExam(type) {
this.isShowManagerForm = true; this.isShowManagerForm = true;
this.managerOption=type; this.managerOption = type;
}, },
//关闭表单 //关闭表单
closeStuForm() { closeStuForm() {
this.isShowManagerForm = false; this.isShowManagerForm = false;
}, },
getCourseId(val){ getCourseId(val) {
for(let i =0;i<this.allCourseList.length;i++){ for (let i = 0; i < this.allCourseList.length; i++) {
if(this.allCourseList[i].CourseId==val){ if (this.allCourseList[i].CourseId == val) {
this.msg.ClassScrollType=this.allCourseList[i].ClassScrollType this.msg.ClassScrollType = this.allCourseList[i].ClassScrollType
this.msg.OrderId=this.allCourseList[i].OrderId this.msg.OrderId = this.allCourseList[i].OrderId
} }
} }
console.log("我进来了哈哈哈哈1");
this.refreshPage() this.refreshPage()
}, },
//刷新页面 //刷新页面
refreshPage() { refreshPage() {
console.log("我进来了哈哈哈哈21");
this.getList() this.getList()
}, },
//获取课程 //获取课程
...@@ -214,10 +187,10 @@ ...@@ -214,10 +187,10 @@
let data = res.Data.PageData let data = res.Data.PageData
this.allCourseList = JSON.parse(JSON.stringify(data)); this.allCourseList = JSON.parse(JSON.stringify(data));
this.myCourseList = JSON.parse(JSON.stringify(data)); this.myCourseList = JSON.parse(JSON.stringify(data));
if(this.allCourseList&&this.allCourseList.length>0){ if (this.allCourseList && this.allCourseList.length > 0) {
this.msg.CourseId=this.allCourseList[0].CourseId this.msg.CourseId = this.allCourseList[0].CourseId
this.msg.ClassScrollType=this.allCourseList[0].ClassScrollType this.msg.ClassScrollType = this.allCourseList[0].ClassScrollType
this.msg.OrderId=this.allCourseList[0].OrderId this.msg.OrderId = this.allCourseList[0].OrderId
this.getList(); //获取列表 this.getList(); //获取列表
} }
} }
...@@ -226,7 +199,7 @@ ...@@ -226,7 +199,7 @@
getList() { getList() {
this.loading = true; this.loading = true;
let msg = JSON.parse(JSON.stringify(this.msg)) let msg = JSON.parse(JSON.stringify(this.msg))
if(this.activeName=='first'){ if (this.activeName == 'first') {
GetStuStudyList(this.msg).then(res => { GetStuStudyList(this.msg).then(res => {
this.loading = false; this.loading = false;
var pageData = JSON.parse(JSON.stringify(res.Data)); var pageData = JSON.parse(JSON.stringify(res.Data));
...@@ -235,8 +208,7 @@ ...@@ -235,8 +208,7 @@
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
} } else if (this.activeName == 'second') {
else if(this.activeName=='second'){
GetStuStudyMonthList(this.msg).then(res => { GetStuStudyMonthList(this.msg).then(res => {
this.loading = false; this.loading = false;
var pageData = JSON.parse(JSON.stringify(res.Data)); var pageData = JSON.parse(JSON.stringify(res.Data));
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment