Procházet zdrojové kódy

出运明细批量删除改POST请求,取消提交增加字段

zengtx před 1 rokem
rodič
revize
579255ea52

+ 1 - 1
src/api/document/shipmentList.js

@@ -61,7 +61,7 @@ const deleteEdit = params => postAction('/shippingDetails/syShippingDetails/sing
 
 
 //  批量删除
-const deleteBatch = params => deleteAction('/shippingDetails/syShippingDetails/deleteBatch', params)
+const deleteBatch = params => postAction('/shippingDetails/syShippingDetails/deleteBatch', params)
 //报关要素查询按钮
 const queryLatelyDeclarationElements = params => getAction('/shippingDetails/syShippingDetails/queryLatelyDeclarationElements',params)
 

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

@@ -1067,8 +1067,16 @@ export default {
     cancelSubmit(record) {
       console.log('取消订单id:', record.id)
       this.$nextTick(() => {
+        var grouyIdList = []
         this.loading = true
-        cancelSubmitShipment({ submitListId: this.selectedRowKeys, type: '2' }).then(res => {
+        this.shipmentListData.map(item =>{
+          this.selectedRowKeys.map(e=>{
+            if(item.itemIds == e){
+              grouyIdList.push(item.groupId)
+            }
+          })
+        })
+        cancelSubmitShipment({ submitListId: this.selectedRowKeys, type: '2',grouyIdList:grouyIdList }).then(res => {
         this.loading = false
           if (res.success) {
             // this.shipmentListData.submitStatus = '0'