Forráskód Böngészése

托书-推送-取消等待

jingbb 11 hónapja
szülő
commit
1c9d27fc8f
1 módosított fájl, 6 hozzáadás és 5 törlés
  1. 6 5
      src/views/book/book-list.vue

+ 6 - 5
src/views/book/book-list.vue

@@ -362,10 +362,11 @@ export default {
   methods: {
     moment,
     //获取表格数据
-    getBookList(){
+    getBookList(data){
       this.$nextTick(() => {
         // this.queryParam.pageSize = 50
         this.loading = true
+        if(data=='await'){this.loading = false}
         bookList(this.queryParam).then(res => {
           this.loading = false
           if (res.success) {
@@ -527,9 +528,9 @@ export default {
     pushU8(record){
       pushU8({ id: record.id}).then(res => {
           if (res.success) {
-           this.$message.success('推送U8成功')
+          //  this.$message.success('推送U8成功')
           //  record.theDocumentsState = '0'
-           this.getBookList()
+           this.getBookList('await')
           }else {
              this.$message.error(res.message);
           }
@@ -538,9 +539,9 @@ export default {
     pushPackLst(record){
       pushPackeList({ id: record.id}).then(res => {
           if (res.success) {
-           this.$message.success('推送装箱单发票成功')
+          //  this.$message.success('推送装箱单发票成功')
           //  record.theDocumentsState = '0'
-           this.getBookList()
+           this.getBookList('await')
           }else {
              this.$message.error(res.message);
           }