Commit 12429021 authored by 黄奎's avatar 黄奎
parents dfb69fde 7a802be7
...@@ -81,8 +81,8 @@ ...@@ -81,8 +81,8 @@
<div class="page-content recordForm"> <div class="page-content recordForm">
<div class="row wrap" style="display:flex;justify-content:flex-end"> <div class="row wrap" style="display:flex;justify-content:flex-end">
<div class="col-3"> <div class="col-3">
<q-select filled stack-label option-value="TId" @input="getRecord()" option-label="TeacherName" <q-select filled stack-label option-value="TId" @input="changeRecord()" option-label="TeacherName"
v-model="msg.TeacherId" ref="Teacher_Id" :options="TeacherList" label="关联教师" :dense="false" v-model="TeacherId" ref="Teacher_Id" :options="TeacherList" label="关联教师" :dense="false"
class="col-6 q-pr-lg q-pb-lg" emit-value map-options /> class="col-6 q-pr-lg q-pb-lg" emit-value map-options />
</div> </div>
</div> </div>
...@@ -139,6 +139,7 @@ ...@@ -139,6 +139,7 @@
School_Id: 0, School_Id: 0,
ClassId: 0 ClassId: 0
}, },
TeacherId:0,
dataList: {}, dataList: {},
TeacherList: [], //关联老师下拉 TeacherList: [], //关联老师下拉
} }
...@@ -147,6 +148,7 @@ ...@@ -147,6 +148,7 @@
}, },
mounted() { mounted() {
this.TeacherId = this.setingObj.Teacher_Id;
this.getRecord(); this.getRecord();
this.GetTeacherList(); this.GetTeacherList();
}, },
...@@ -161,6 +163,17 @@ ...@@ -161,6 +163,17 @@
} }
}) })
}, },
changeRecord(){
this.msg.School_Id = this.setingObj.School_Id;
this.msg.ClassId = this.setingObj.ClassId;
this.msg.TeacherId = this.TeacherId;
GetClassPlanLogPageList(this.msg).then(res => {
if (res.Code == 1) {
this.dataList = res.Data.PageData;
}
})
},
//获取教师下拉 //获取教师下拉
GetTeacherList() { GetTeacherList() {
getTeacherDropDownList({}).then(res => { getTeacherDropDownList({}).then(res => {
......
...@@ -6,22 +6,24 @@ ...@@ -6,22 +6,24 @@
<q-card-section> <q-card-section>
<div class="text-h6">退课申请</div> <div class="text-h6">退课申请</div>
</q-card-section> </q-card-section>
<q-table :loading="loading" no-data-label="暂无相关学员数据" flat class="sticky-column-table" separator="none" <div style="margin:20px;">
:data="studentList" :columns="columns" hide-bottom row-key="Id"> <q-table :loading="loading" no-data-label="暂无相关学员数据" flat class="sticky-column-table" separator="none"
<template v-slot:body-cell-optioned="props"> :data="studentList" :columns="columns" hide-bottom row-key="Id">
<q-td :props="props"> <template v-slot:body-cell-optioned="props">
<div style="min-width:190px;width:100%"> <q-td :props="props">
<q-btn v-if="props.row.GuestState==1" flat size="xs" icon="iconfont icon-shenhe" color="info" <div style="min-width:190px;width:100%">
style="font-weight:400" class="q-mr-xs" label="申请" @click="clickItem(props.row,1)" /> <q-btn v-if="props.row.GuestState==1" flat size="xs" icon="iconfont icon-shenhe" color="info"
<q-btn v-if="props.row.AuditStatus==3" flat size="xs" icon="iconfont icon-ziyuan" color="warning" style="font-weight:400" class="q-mr-xs" label="申请" @click="clickItem(props.row,1)" />
style="font-weight:400" class="q-mr-xs" label="重新申请" @click="clickItem(props.row,2)" /> <q-btn v-if="props.row.AuditStatus==3" flat size="xs" icon="iconfont icon-ziyuan" color="warning"
</div> style="font-weight:400" class="q-mr-xs" label="重新申请" @click="clickItem(props.row,2)" />
</q-td> </div>
</template> </q-td>
</q-table> </template>
<q-input filled stack-label :dense="false" v-model="applyReason" style="margin-top: 20px" type="textarea" </q-table>
class="col-12" label="申请理由" /> <q-input filled stack-label :dense="false" v-model="applyReason" style="margin-top: 20px" type="textarea"
<q-separator /> class="col-12" label="申请理由" />
<q-separator />
</div>
<q-card-actions align="right" class="bg-white"> <q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="closeBackClassForm" /> <q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="closeBackClassForm" />
<q-btn label="确认申请" color="accent" class="q-px-md" style="font-weight:400 !important" <q-btn label="确认申请" color="accent" class="q-px-md" style="font-weight:400 !important"
......
...@@ -285,9 +285,9 @@ ...@@ -285,9 +285,9 @@
<span style="color: #02C499">{{item.OrderStateName}}</span> <span style="color: #02C499">{{item.OrderStateName}}</span>
</div> </div>
</td> </td>
<td style="border:none"> <td style="border:none;">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" @click="editOrder(item)" /> <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400;display:none;" label="编辑" @click="editOrder(item)" />
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;"> <q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;display:none;">
<q-list> <q-list>
<q-item clickable v-close-popup> <q-item clickable v-close-popup>
<q-item-section @click="gostudent(item)"> <q-item-section @click="gostudent(item)">
......
...@@ -271,6 +271,9 @@ ...@@ -271,6 +271,9 @@
import { import {
getEmployeeAddrBook getEmployeeAddrBook
} from '../../api/users/user' } from '../../api/users/user'
import {
UploadSelfFile
} from '../../api/common/common'
export default { export default {
data() { data() {
return { return {
...@@ -341,10 +344,14 @@ ...@@ -341,10 +344,14 @@
let newArr=[]; let newArr=[];
newArr.push(file.file) newArr.push(file.file)
let path="/Upload/Temporary/" let path="/Upload/Temporary/"
this.UploadSelfFileT(path,newArr,x=>{
let url = this.domainManager().ViittoFileUrl + x.data.FilePath UploadSelfFile('Temporary', file.file, x => {
this.appMsg.Image.push(url) if(x.Code==1){
this.fileList.push({url:url}) let url = x.FileUrl
this.appMsg.Image.push(url)
this.fileList.push({url: url})
}
}); });
}, },
handleRemove(file){ //删除 handleRemove(file){ //删除
...@@ -521,7 +528,7 @@ ...@@ -521,7 +528,7 @@
}); });
}, },
updateAapproval(path,cmd,submitCmd,workFlowId,templateId){ updateAapproval(path,cmd,submitCmd,workFlowId,templateId){
this.$router.push({ name: path, query:{cmd:cmd,submitCmd:submitCmd,workFlowId:workFlowId,templateId:templateId}}) this.$router.push({ path: path, query:{cmd:cmd,submitCmd:submitCmd,workFlowId:workFlowId,templateId:templateId}})
}, },
getBigpic(obj){ getBigpic(obj){
......
...@@ -146,12 +146,14 @@ ...@@ -146,12 +146,14 @@
let newArr = []; let newArr = [];
newArr.push(file.file) newArr.push(file.file)
UploadSelfFile('Temporary', file.file, x => { UploadSelfFile('Temporary', file.file, x => {
console.log(x) if(x.Code==1){
let url = x.FileUrl let url = x.FileUrl
this.submitFileList.push(url) this.submitFileList.push(url)
this.fileList.push({ this.fileList.push({
url: x.FileUrl url: x.FileUrl
}) })
}
}); });
}, },
handleRemove(file) { //删除 handleRemove(file) { //删除
......
...@@ -265,6 +265,9 @@ ...@@ -265,6 +265,9 @@
import { import {
getEmployeeAddrBook getEmployeeAddrBook
} from '../../api/users/user' } from '../../api/users/user'
import {
UploadSelfFile
} from '../../api/common/common'
export default { export default {
data() { data() {
return { return {
...@@ -335,10 +338,12 @@ ...@@ -335,10 +338,12 @@
let newArr=[]; let newArr=[];
newArr.push(file.file) newArr.push(file.file)
let path="/Upload/Temporary/" let path="/Upload/Temporary/"
this.UploadSelfFileT(path,newArr,x=>{ UploadSelfFile('Temporary', file.file, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath if(x.Code==1){
this.appMsg.Image.push(url) let url = x.FileUrl
this.fileList.push({url: url}) this.appMsg.Image.push(url)
this.fileList.push({url: url})
}
}); });
......
...@@ -267,6 +267,9 @@ ...@@ -267,6 +267,9 @@
setCareOf, setCareOf,
copyTomyaudit copyTomyaudit
} from '../../api/administration/administration'; } from '../../api/administration/administration';
import {
UploadSelfFile
} from '../../api/common/common'
export default { export default {
data() { data() {
return { return {
...@@ -337,10 +340,12 @@ ...@@ -337,10 +340,12 @@
let newArr=[]; let newArr=[];
newArr.push(file.file) newArr.push(file.file)
let path="/Upload/Temporary/" let path="/Upload/Temporary/"
this.UploadSelfFileT(path,newArr,x=>{ UploadSelfFile('Temporary', file.file, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath if(x.Code==1){
this.appMsg.Image.push(url) let url = x.FileUrl
this.fileList.push({url: url}) this.appMsg.Image.push(url)
this.fileList.push({url: url})
}
}); });
......
...@@ -809,7 +809,7 @@ ...@@ -809,7 +809,7 @@
</div> </div>
</div> </div>
<div style="padding-left: 75px;"> <div style="padding-left: 75px;">
<button class="hollowFixedBtn" v-if="(bossID===1 || bossID===5||bossID===1903) && (GetDetail.Status===2 || GetDetail.Status===5 || GetDetail.Status===1)" @click="bohui()">驳回</button> <!-- <button class="hollowFixedBtn" v-if="(bossID===1 || bossID===5||bossID===1903) && (GetDetail.Status===2 || GetDetail.Status===5 || GetDetail.Status===1)" @click="bohui()">驳回</button>-->
<button class="hollowFixedBtn" @click="AuditOrRefund()">返回</button> <button class="hollowFixedBtn" @click="AuditOrRefund()">返回</button>
</div> </div>
</div> </div>
......
...@@ -1088,14 +1088,17 @@ ...@@ -1088,14 +1088,17 @@
let path = "/Upload/Temporary/" let path = "/Upload/Temporary/"
this.$message.info(this.$t('tips.shangchuanzhong')) this.$message.info(this.$t('tips.shangchuanzhong'))
UploadSelfFile('Temporary', file.file, x => { UploadSelfFile('Temporary', file.file, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0); if(x.Code==1){
this.saveMsg.push({ let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
Content: x.FileUrl, this.saveMsg.push({
ID: 0, Content: x.FileUrl,
Type: fileTypeNumber, ID: 0,
Url: x.FileUrl, Type: fileTypeNumber,
}) Url: x.FileUrl,
this.$message.success(this.$t('tips.scchenggong')) })
this.$message.success(this.$t('tips.scchenggong'))
}
}, 1); }, 1);
}, },
AuditOrRefund() { AuditOrRefund() {
......
...@@ -989,46 +989,48 @@ ...@@ -989,46 +989,48 @@
let path = "/Upload/Temporary/" let path = "/Upload/Temporary/"
this.$message.info(this.$t('tips.shangchuanzhong')) this.$message.info(this.$t('tips.shangchuanzhong'))
UploadSelfFile('Temporary', file.file, x => { UploadSelfFile('Temporary', file.file, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0); if(x.Code==1){
this.saveMsg.push({ let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
Content: x.FileUrl, this.saveMsg.push({
ID: 0, Content: x.FileUrl,
Type: fileTypeNumber, ID: 0,
Url: x.FileUrl, Type: fileTypeNumber,
}) Url: x.FileUrl,
this.Success(this.$t('tips.scchenggong'))
if (this.bankType == 13 && x.data.Ocr.length > 0) {
var OcrStr = '';
x.data.Ocr.forEach(x => {
OcrStr += x.words
}) })
var wechat = []; this.Success(this.$t('tips.scchenggong'))
var zhifu = []; if (this.bankType == 13 && x.data.Ocr.length > 0) {
wechat = OcrStr.match(/商户单号.\d+/); var OcrStr = '';
zhifu = OcrStr.match(/商家可扫码退款或查询交易.\d+/); x.data.Ocr.forEach(x => {
let barcode = x.data.Barcode; OcrStr += x.words
if (wechat == null && zhifu == null && barcode == "") { })
return; var wechat = [];
} var zhifu = [];
if (zhifu == null && wechat != null && wechat.length > 0 && wechat[wechat.length - 1].length > 20) { wechat = OcrStr.match(/商户单号.\d+/);
this.setCode = wechat[wechat.length - 1].replace('商户单号', ''); zhifu = OcrStr.match(/商家可扫码退款或查询交易.\d+/);
} else if (wechat == null && zhifu != null && zhifu.length > 0 && zhifu[zhifu.length - 1].length > 20) { let barcode = x.data.Barcode;
this.setCode = zhifu[zhifu.length - 1].replace('商家可扫码退款或查询交易', ''); if (wechat == null && zhifu == null && barcode == "") {
} else if (barcode != "") { return;
this.setCode = barcode; }
} if (zhifu == null && wechat != null && wechat.length > 0 && wechat[wechat.length - 1].length > 20) {
this.$confirm('匹配到交易流水号是否替换?', '提示', { this.setCode = wechat[wechat.length - 1].replace('商户单号', '');
confirmButtonText: '确定', } else if (wechat == null && zhifu != null && zhifu.length > 0 && zhifu[zhifu.length - 1].length > 20) {
cancelButtonText: '取消', this.setCode = zhifu[zhifu.length - 1].replace('商家可扫码退款或查询交易', '');
type: 'warning' } else if (barcode != "") {
}).then(() => { this.setCode = barcode;
this.msg.AccountNumber = this.setCode }
}).catch(() => { this.$confirm('匹配到交易流水号是否替换?', '提示', {
this.$message({ confirmButtonText: '确定',
type: 'info', cancelButtonText: '取消',
message: '已取消删除' type: 'warning'
}).then(() => {
this.msg.AccountNumber = this.setCode
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
}); });
}); }
} }
}, 1); }, 1);
}, },
......
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