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

View File

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

View File

@@ -227,7 +227,10 @@
</a-modal> </a-modal>
</div> </div>
<!-- <div> <Upload/> </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> </div>
</template> </template>
<script lang="jsx"> <script lang="jsx">
@@ -277,6 +280,7 @@
}) })
const router = useRouter() const router = useRouter()
const state = reactive({ const state = reactive({
example: false,
editId: null, editId: null,
editTeacherDialog: false, editTeacherDialog: false,
tableDataExamineLoading: false, tableDataExamineLoading: false,
@@ -734,6 +738,9 @@
const successParams = () => { const successParams = () => {
getTableDate(); getTableDate();
} }
const getExample = (val) => {
state.example = val
}
const withdraw = (record) => { const withdraw = (record) => {
console.log(record,'record') console.log(record,'record')
dialog({ dialog({
@@ -1097,6 +1104,7 @@
tabsChange, tabsChange,
withdraw, withdraw,
successParams, successParams,
getExample,
goDdit, goDdit,
cancel, cancel,
handleOperate, handleOperate,
@@ -1118,6 +1126,18 @@
}; };
</script> </script>
<style lang="scss" scoped > <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 { .select .ant-picker {
width: 410px !important; width: 410px !important;
} }

View File

@@ -562,9 +562,12 @@
</div> </div>
</a-drawer> </a-drawer>
<ImportWork v-model:showWork="showWork" :template="'讲师费导入模板-20241220.xlsx'" :url="'/admin/export/importTeacherExpense'" :fileName="uploadFile" :title="title"></ImportWork> <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> </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="'批量审批'" /> <BatchLecturer @selectedRowKeys="selectedRowKey" v-model:visible="allFeedialog" :name="'批量审批'" />
</template> </template>
@@ -608,6 +611,7 @@
setup() { setup() {
const formRef = ref(); const formRef = ref();
const state = reactive({ const state = reactive({
example: false,
tableDataSee: [], tableDataSee: [],
SeeLoading: false, SeeLoading: false,
orgList: [], orgList: [],
@@ -1542,6 +1546,9 @@ getAllLevelList().then((res) => {
state.allFeedialog = val state.allFeedialog = val
searchSubmit() searchSubmit()
} }
const getexample = (val) => {
state.example = val
}
const selectedRowKey = (val) => { const selectedRowKey = (val) => {
state.selectsIds = val?.join(','); state.selectsIds = val?.join(',');
state.visibleConfirm = true; state.visibleConfirm = true;
@@ -1855,6 +1862,7 @@ const column = ref([
allFee, allFee,
selectedRowKey, selectedRowKey,
visibleAll, visibleAll,
getexample,
column, column,
tableDatas, tableDatas,
tlevelChange, tlevelChange,
@@ -1874,6 +1882,18 @@ const column = ref([
.select .ant-picker { .select .ant-picker {
width: 410px !important; 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 { .headers {
height: 57px; height: 57px;
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;