jiand před 3 měsíci
rodič
revize
704c3827c4

+ 2 - 1
src/views/myTrade/purchaseContractManagement/purchaseContractAdd.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="purchase-contract-add" v-loading="isLoading">
+  <div class="purchase-contract-add">
 
     <!-- 基础信息 -->
     <cy-info-title> 基础信息 </cy-info-title>
@@ -96,6 +96,7 @@ export default {
     save(flag) {
       let data = this.getParams()
       data.commit = flag
+      data.Loading = true
       this.isLoading = true
       submitInfo(data).then(() => {
         this.$message.success('提交成功')

+ 3 - 3
src/views/myTrade/purchaseContractManagement/purchaseContractSign.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="purchase-contract-sign" v-loading="isLoading">
+  <div class="purchase-contract-sign">
     <el-form
       ref="ruleFormRef"
       :model="ruleForm"
@@ -152,7 +152,7 @@ export default {
         if(flag) {
           this.isLoading = true
           if(this.$route.query.isChange || this.$route.query.isChange) {
-            submitChangeSign({ businessKey: this.$route.query.infoId, ...this.ruleForm }).then(() => {
+            submitChangeSign({ businessKey: this.$route.query.infoId, Loading: true, ...this.ruleForm }).then(() => {
               this.isLoading = false
               this.$message.success('提交成功')
               this.$router.go(-1)
@@ -160,7 +160,7 @@ export default {
               this.isLoading = false
             })
           } else {
-            submitSign({ businessKey: this.$route.query.infoId, ...this.ruleForm }).then(() => {
+            submitSign({ businessKey: this.$route.query.infoId, Loading: true, ...this.ruleForm }).then(() => {
               this.isLoading = false
               this.$message.success('提交成功')
               this.$router.go(-1)

+ 1 - 0
src/views/myTrade/purchaseContractManagement/purchaseContractUpdate.vue

@@ -162,6 +162,7 @@ export default {
     },
     submit() {
       let data = {
+        Loading: true,
         contractGoodsInfo: [ ...this.businessInfo.list ],
         businessKey: this.$route.query.infoId,
         ...this.ruleForm

+ 9 - 0
src/views/myTrade/settlementDocumentManagement/add.vue

@@ -569,6 +569,13 @@ export default {
         this.$message.error('请锁定业务编号后暂存')
         return
       }
+      const loading = this.$loading({
+        lock: true,
+        text: 'Loading',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
+
       // this.isLoading = true
       let data = new FormData()
       if(this.$route.query.key) {
@@ -630,7 +637,9 @@ export default {
         // this.isLoading = false
         this.$message.success('提交成功')
         this.$router.go(-1)
+        loading.close()
       }, () => {
+        loading.close()
         // this.isLoading = false
       })
     },

+ 1 - 1
src/views/myTrade/settlementDocumentManagement/editPrice.vue

@@ -245,13 +245,13 @@ export default {
     submit() {
       // this.isLoading = true
       let data = {
+        Loading: true,
         businessKey: this.$route.query.key,
         id: this.$route.query.key,
         settlementGoodsInfos: this.ruleForm.goodsList.map(item => {
           item.acceptanceGoodsInfoId = item.id
           return item
         }),
-        Loading: true,
         ...this.ruleForm
       }
       let arr = [...this.$refs.fileStorage.fileLists]

+ 1 - 1
src/views/myTrade/settlementDocumentManagement/signSettlement.vue

@@ -117,9 +117,9 @@ export default {
         url: '/bill/finalStatementsign',
         method: 'post',
         data: { 
+          Loading: true,
           taskId: this.$route.query.taskId,
           electronicInfoId: this.detailInfo.id,
-          Loading: true,
           ...this.ruleForm
         }
       }).then(() => {