Explorar el Código

feat:工作台状态更新后刷新节点

snow hace 1 año
padre
commit
391ff110e5

+ 4 - 4
src/components/manage/src/letter/index.vue

@@ -186,15 +186,15 @@ export default {
 
       this.updateLoading(false)
 
+      if(letter.code === 0){
+        this.abnormal()
+      }
+
       if(fileUrl){
         this.searchList()
         return
       }
 
-      if(letter.code === 0){
-        this.abnormal()
-      }
-
       if(letter.code !== 1) return
       //创建获取获取新id进入编辑页...
       this.$router.push(`/customerService/letterEditing?id=${letter.data.id}&from=${form}&type=create`)

+ 4 - 0
src/components/manage/src/letter/xlsxUploadModal.vue

@@ -330,6 +330,10 @@ export default {
       const { code } = await this.requsetMethod(planinfo, this.file_url, this.storeId)
       this.loading = false
 
+      if(code === 0){
+        this.innerVisible = false
+      }
+
       if(code !== 1){
         return
       }

+ 5 - 9
src/views/customerService/workbench/detail.vue

@@ -357,7 +357,6 @@ export default {
       })
     },
     async requsetProjectLetter(plan_info, file, store_id){
-        // id: this.selected.activity[0],
       const params = {
         store_id,
         req_id:this.sitem.id,
@@ -366,16 +365,13 @@ export default {
         file
       }
 
-      return asyncRequest.planCreate(params)
-    },
-    async reqsetActivityLetter(_, file_activty_url){
-      const params = {
-        status: 2,
-        id: this.selected.evalute[0],
-        file_activty_url
+      const result = await asyncRequest.planCreate(params)
+
+      if(result.code === 0){
+        this.abnormal()
       }
 
-      return asyncRequest.planStatus(params)
+      return result
     },
     async requestBudgetLetter(plan_info,file, store_id){
       const params = {