Browse Source

托书-批量推送U8/批量推送装箱单发票

jingbb 5 months ago
parent
commit
10635f6bf8
1 changed files with 31 additions and 2 deletions
  1. 31 2
      src/views/book/book-list.vue

+ 31 - 2
src/views/book/book-list.vue

@@ -137,6 +137,8 @@
         <a-button type="primary" @click="addBookDrawer" icon="plus">新增</a-button>
         <a-button type="primary" @click="batchSubmit()"  icon="plus">批量提交</a-button>
         <a-button type="primary" @click="batchCanaleSubmit()" icon="plus">批量取消提交</a-button>
+        <a-button type="primary" @click="batchPushU8()" icon="plus">批量推送U8</a-button>
+        <a-button type="primary" @click="batchPushInvoice()" icon="plus">批量推送装箱单发票  </a-button>
       </div>
 
       <!-- 子表 -->
@@ -229,7 +231,7 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import JEllipsis from '@/components/jeecg/JEllipsis'
 import moment from 'moment'
 
-import { downFile } from '@/api/manage'
+import { downFile ,getAction,deleteAction,postActio} from '@/api/manage'
 
 import addBookDrawer from '@views/book/addBookDrawer.vue'
 import detailsBookDrawer from '@views/book/detailsBookDrawer.vue'
@@ -545,7 +547,34 @@ export default {
         })
       })
     },
-
+    //批量推送U8
+    batchPushU8(){
+      if(this.selectedRowKeys.length==0){
+        this.$message.success('请勾选数据')
+      }else{
+        getAction('/syShippingOrder/syShippingOrder/expensesU8Batch',{ids:this.selectedRowKeys.join(',')}).then((res) => {
+          if (res.success) {
+            this.getBookList('await')
+          }else{
+            this.$message.warning(res.message);
+          }
+        })
+      }
+    },
+    //批量推送装箱单发票 
+    batchPushInvoice(){
+      if(this.selectedRowKeys.length==0){
+        this.$message.success('请勾选数据')
+      }else{
+        getAction('/syShippingOrder/syShippingOrder/updateTimeStutaBatch',{ids:this.selectedRowKeys.join(',')}).then((res) => {
+          if (res.success) {
+            this.getBookList('await')
+          }else{
+            this.$message.warning(res.message);
+          }
+        })
+      }
+    },
     //推送U8
     pushU8(record){
       pushU8({ id: record.id}).then(res => {