版本更新
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="app-container" v-loading="pageLoading">
|
||||
<el-row :gutter="10" class="mb8" v-if="viewStatus">
|
||||
<el-col :span="1.5">
|
||||
<el-button v-if="viewStatus != 'view'" plain type="primary" icon="Edit" @click="handelApply"
|
||||
@@ -545,6 +545,7 @@ const row = ref({});
|
||||
const rowIndex = ref(-1);
|
||||
const totalAmount = ref(0);
|
||||
const purposeTypeListOptions = ref(undefined);
|
||||
const pageLoading = ref(false)
|
||||
const props = defineProps({
|
||||
sourceTypeListOptions: {
|
||||
type: Object,
|
||||
@@ -916,8 +917,10 @@ function handleReject() {
|
||||
});
|
||||
}
|
||||
function handelApply() {
|
||||
pageLoading.value = true
|
||||
requisitionIssueApproved(route.query.supplyBusNo).then((res) => {
|
||||
if (res.code == 200) {
|
||||
pageLoading.value = false
|
||||
proxy.$modal.msgSuccess('操作成功');
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
store.clearCurrentDataLYCK();
|
||||
@@ -927,6 +930,8 @@ function handelApply() {
|
||||
query: { type: 'requisitionManagement' },
|
||||
});
|
||||
}
|
||||
}).catch(() => {
|
||||
pageLoading.value = false
|
||||
});
|
||||
}
|
||||
/** 提交审核按钮 */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="app-container" v-loading="pageLoading" loading-text="审批中。。。">
|
||||
<el-row :gutter="10" class="mb8" v-if="viewStatus">
|
||||
<el-col :span="1.5">
|
||||
<el-button v-if="viewStatus != 'view'" plain type="primary" icon="Edit" @click="handelApply"
|
||||
@@ -573,6 +573,7 @@ const visible = ref(false);
|
||||
const row = ref({});
|
||||
const rowIndex = ref(-1);
|
||||
const totalAmount = ref(0);
|
||||
const pageLoading = ref(false)
|
||||
const props = defineProps({
|
||||
sourceTypeListOptions: {
|
||||
type: Object,
|
||||
@@ -987,8 +988,10 @@ function handleReject() {
|
||||
});
|
||||
}
|
||||
function handelApply() {
|
||||
pageLoading.value = true
|
||||
returnIssueApproved(route.query.supplyBusNo).then((res) => {
|
||||
if (res.code == 200) {
|
||||
pageLoading.value = false
|
||||
proxy.$modal.msgSuccess('操作成功');
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
store.clearCurrentDataLYTK();
|
||||
@@ -998,6 +1001,8 @@ function handelApply() {
|
||||
query: { type: 'returningInventory' },
|
||||
});
|
||||
}
|
||||
}).catch(() => {
|
||||
pageLoading.value = false
|
||||
});
|
||||
}
|
||||
/** 提交审核按钮 */
|
||||
|
||||
Reference in New Issue
Block a user