|
@@ -4,11 +4,12 @@
|
|
|
<avue-form :option="optionForm" v-model="query" class="form-mb">
|
|
|
<tempalte slot="button" slot-scope="{ row }">
|
|
|
<span style="display: flex;justify-content: end;">
|
|
|
- <el-button icon="el-icon-arrow-down" size="small" @click="searchShow = true,showHight()" v-if="!searchShow">展
|
|
|
+ <el-button icon="el-icon-arrow-down" size="small" @click="searchShow = true, showHight()" v-if="!searchShow">展
|
|
|
开</el-button>
|
|
|
- <el-button icon="el-icon-arrow-up" size="small" @click="searchShow = false,showHight()" v-if="searchShow">收 缩</el-button>
|
|
|
- <el-button type="primary" size="small" plain @click="inItial">初始入账
|
|
|
- </el-button>
|
|
|
+ <el-button icon="el-icon-arrow-up" size="small" @click="searchShow = false, showHight()" v-if="searchShow">收
|
|
|
+ 缩</el-button>
|
|
|
+ <!-- <el-button type="primary" size="small" plain @click="inItial">初始入账
|
|
|
+ </el-button> -->
|
|
|
<el-button type="success" size="small" plain @click="outExport">导出
|
|
|
</el-button>
|
|
|
</span>
|
|
@@ -60,7 +61,7 @@ import {
|
|
|
getList,
|
|
|
getAllList,
|
|
|
getTreelist,
|
|
|
- fingenlegInitialization
|
|
|
+ initialization
|
|
|
} from "@/api/iosBasicData/accountsDetails";
|
|
|
import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
import { dateFormat } from "@/util/date";
|
|
@@ -475,17 +476,27 @@ export default {
|
|
|
},
|
|
|
//初始入账
|
|
|
inItial() {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
this.$confirm('是否继续初始入账?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- fingenlegInitialization()
|
|
|
- // this.$message({
|
|
|
- // type: 'success',
|
|
|
- // message: '初始入账成功!'
|
|
|
- // });
|
|
|
- })
|
|
|
+ initialization().then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '初始入账成功!'
|
|
|
+ });
|
|
|
+ this.getTreelist()
|
|
|
+ })
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
|
|
|
},
|
|
|
//重置特殊值
|