浏览代码

出运明细提交参数修改

jbb 2 年之前
父节点
当前提交
c90c0e0507
共有 2 个文件被更改,包括 10 次插入2 次删除
  1. 1 1
      src/views/book/book-list.vue
  2. 9 1
      src/views/shipment-details/shipmentList.vue

+ 1 - 1
src/views/book/book-list.vue

@@ -373,7 +373,7 @@ export default {
     // //批量提交
     batchSubmit(){
       this.$nextTick(() => {
-        submitPackingList({ ids: this.selectedRowKeys, type: '1' ,grouyIdList:this.selectedRowKeys}).then(res => {
+        submitPackingList({ ids: this.selectedRowKeys, type: '1'}).then(res => {
           if (res.success) {
           //  record.theDocumentsState = '1'
            this.getBookList()

+ 9 - 1
src/views/shipment-details/shipmentList.vue

@@ -839,7 +839,15 @@ export default {
         //     return
         //   }
         // }
-        submitShipment({ submitListId: this.selectedRowKeys, type: '1' }).then(res => {
+        var grouyIdList = []
+        this.shipmentListData.map(item =>{
+          this.selectedRowKeys.map(e=>{
+            if(item.itemIds == e){
+              grouyIdList.push(item.groupId)
+            }
+          })
+        })
+        submitShipment({ submitListId: this.selectedRowKeys, type: '1' ,grouyIdList:grouyIdList}).then(res => {
           if (res.success) {
             console.log('提交成功,单据状态改为【已提交】')
             this.shipmentListData.submitStatus = '1'