讲师管理bug

This commit is contained in:
zhangsir
2024-12-31 13:31:44 +08:00
parent 13101873f3
commit 31e4608137
4 changed files with 55 additions and 5 deletions

View File

@@ -150,6 +150,8 @@ const handleConfirm = () => {
if(!ids.length){
return message.error('暂无可提交的数据')
}
modalVisible.value = false;
emit('example',true)
api.teacherExpenseConfirm({ids:ids?.join(',')}).then(res=>{
console.log(res,'resssss')
api.submitApproval({ids:res.data?.data?.join(',')}).then(res=>{
@@ -158,12 +160,14 @@ const handleConfirm = () => {
close()
closeDrawer()
emit('visibleFalse',false)
emit('example',false)
}).catch(err=>{
message.destroy()
message.error(err.data.msg)
close()
closeDrawer()
emit('visibleFalse',false)
emit('example',false)
})
}).catch(err=>{
message.destroy()
@@ -485,15 +489,18 @@ const qureyDrawer = () => {
dialog({
content: '是否确认讲师费信息无误?提交后按“培训发生组织”汇总至审批中心,等待验证后“提交”进入审批流程。',
ok: () => {
emit('example',true)
api.teacherExpenseConfirm({ids:ids?.join(',')}).then(res=>{
console.log(res,'resssss')
message.success('提交成功')
closeDrawer()
emit('example',false)
emit('visibleFalse',false)
}).catch(err=>{
message.destroy()
message.error(err.data.msg)
closeDrawer()
emit('example',false)
emit('visibleFalse',false)
})
}

View File

@@ -779,6 +779,7 @@ export default {
dialog({
content: '请仔细核对讲师费信息,确认无误后,将自动进入(BPM系统)审批流程',
ok: ()=>{
emits.emit('example',true)
isConfirm({
id: props.id,
status: 2
@@ -788,7 +789,9 @@ export default {
emits.emit('successParams',true)
closeDrawer();
}
emits.emit('example',false)
}).catch(err=>{
emits.emit('example',false)
if(err.message=='timeout of 15000ms exceeded'){
message.destroy()
message.error('请求超时,请重试')

View File

@@ -227,7 +227,10 @@
</a-modal>
</div>
<!-- <div> <Upload/> </div> -->
<LecturerAppEdit @successParams="successParams" v-model:visible="editTeacherDialog" :id="editId" ></LecturerAppEdit>
<LecturerAppEdit @example="getExample" @successParams="successParams" v-model:visible="editTeacherDialog" :id="editId" ></LecturerAppEdit>
<div class="example" v-if="example">
<a-spin />
</div>
</div>
</template>
<script lang="jsx">
@@ -277,6 +280,7 @@
})
const router = useRouter()
const state = reactive({
example: false,
editId: null,
editTeacherDialog: false,
tableDataExamineLoading: false,
@@ -734,6 +738,9 @@
const successParams = () => {
getTableDate();
}
const getExample = (val) => {
state.example = val
}
const withdraw = (record) => {
console.log(record,'record')
dialog({
@@ -1097,6 +1104,7 @@
tabsChange,
withdraw,
successParams,
getExample,
goDdit,
cancel,
handleOperate,
@@ -1118,6 +1126,18 @@
};
</script>
<style lang="scss" scoped >
.example{
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.45);
position: fixed;
top: 0;
left: 0;
z-index: 999999;
display: flex;
justify-content: center;
align-items: center;
}
.select .ant-picker {
width: 410px !important;
}

View File

@@ -562,9 +562,12 @@
</div>
</a-drawer>
<ImportWork v-model:showWork="showWork" :template="'讲师费导入模板-20241220.xlsx'" :url="'/admin/export/importTeacherExpense'" :fileName="uploadFile" :title="title"></ImportWork>
</div>
<div class="example" v-if="example">
<a-spin />
</div>
<!-- 一键确认讲师费 -->
<ConfirmLecturer @visibleFalse="visibleAll" :ids="selectsIds" v-model:visible="visibleConfirm" :name="'确认讲师费'" />
<ConfirmLecturer @example="getexample" @visibleFalse="visibleAll" :ids="selectsIds" v-model:visible="visibleConfirm" :name="'确认讲师费'" />
<!-- 批量确认讲师费 -->
<BatchLecturer @selectedRowKeys="selectedRowKey" v-model:visible="allFeedialog" :name="'批量审批'" />
</template>
@@ -608,6 +611,7 @@
setup() {
const formRef = ref();
const state = reactive({
example: false,
tableDataSee: [],
SeeLoading: false,
orgList: [],
@@ -1542,6 +1546,9 @@ getAllLevelList().then((res) => {
state.allFeedialog = val
searchSubmit()
}
const getexample = (val) => {
state.example = val
}
const selectedRowKey = (val) => {
state.selectsIds = val?.join(',');
state.visibleConfirm = true;
@@ -1855,6 +1862,7 @@ const column = ref([
allFee,
selectedRowKey,
visibleAll,
getexample,
column,
tableDatas,
tlevelChange,
@@ -1874,6 +1882,18 @@ const column = ref([
.select .ant-picker {
width: 410px !important;
}
.example{
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.45);
position: fixed;
top: 0;
left: 0;
z-index: 999999;
display: flex;
justify-content: center;
align-items: center;
}
.headers {
height: 57px;
border-bottom: 1px solid #e8e8e8;