@@ -113,7 +113,7 @@
</el-row>
</div>
- <ReimbursementComponent ref="reimbursementComponent" @changeLoading="handleChangeLoading">
+ <ReimbursementComponent ref="reimbursementComponent">
</ReimbursementComponent>
<!-- 报销单图片预览 -->
<ReimbursementImage ref="reimbursementImage"></ReimbursementImage>
@@ -315,7 +315,6 @@ export default {
isConfirm: "",
tableRef: null,
tableData: [],
- screenLoading: null
}
},
@@ -2058,17 +2057,6 @@ export default {
handleShowReimbursementImage() {
this.$refs.reimbursementImage.visible = true
- handleChangeLoading(status) {
- if (status) {
- this.screenLoading = this.$loading({
- lock: true,
- text: '数据处理中,请稍后...',
- background: 'rgba(0, 0, 0, 0.7)',
- })
- } else {
- this.screenLoading.close()
- }
</script>
@@ -322,7 +322,6 @@ export default {
*/
async newUpload(auth, fileList, directory, maxValue, dividerName, uploadFlag, delFlag, showDivider, toCompany, uniqueId) {
this.loading = true
- this.$emit('changeLoading', true)
this.uploadKey = Math.random()
await this.fileLoadingFalse()
if (this.commonJS.isEmpty(fileList)) {
@@ -397,7 +396,6 @@ export default {
// 防止数据未更新完成,用户操作上传
this.loading = false
- this.$emit('changeLoading', false)
// this.dataList = JSON.parse(JSON.stringify(fileList))
// this.dataListNew = JSON.parse(JSON.stringify(fileList))
if (this.commonJS.isEmpty(showDivider)) {
@@ -1436,6 +1436,7 @@ export default {
data() {
return {
+ screenLoading: null,
insertBtn: true,
status: "",
companyName: "",
@@ -3330,8 +3331,16 @@ export default {
handleChangeLoading(value) {
this.loading = value
- this.$emit('changeLoading', value)
-
+ // this.$emit('changeLoading', value)
+ if (value) {
+ this.screenLoading = this.$loading({
+ lock: true,
+ text: '数据处理中,请稍后...',
+ background: 'rgba(0, 0, 0, 0.7)',
+ })
+ } else {
+ this.screenLoading.close()
+ }
// 校验文件上传
checkProgress() {
@@ -84,7 +84,7 @@
@@ -281,7 +281,6 @@ export default {
isDgsbxBmzr: false,
payment: '',
@@ -1963,17 +1962,7 @@ export default {
+
</el-form-item>
</el-col>
@@ -285,7 +285,6 @@ export default {
provide() {
@@ -2332,17 +2331,6 @@ export default {
@@ -284,7 +284,6 @@ export default {
@@ -2139,17 +2138,7 @@ export default {
@@ -91,7 +91,7 @@
@@ -272,7 +272,6 @@ export default {
isKjsz: false,
@@ -2007,17 +2006,7 @@ export default {
@@ -82,7 +82,7 @@
@@ -383,7 +383,6 @@ export default {
@@ -2165,17 +2164,7 @@ export default {