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

复制单据时,不复制箱量和费用

wfg 5 hónapja
szülő
commit
94b0cc0de5

+ 10 - 2
src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

@@ -1965,10 +1965,18 @@ export default {
                 background: 'rgba(255,255,255,0.7)'
             });
             billsCopyBills({ id }).then(res => {
-                if (type == '复制费用' || type == '') {
+                let types = typeof type == "string" ? type.split(",") : []
+                // if (type == '复制费用' || type == '') {
+                //     res.data.data.preContainersList = []
+                // }
+                // if (type == '复制箱型箱量' || type == '') {
+                //     res.data.data.feeCenterListD = []
+                //     res.data.data.feeCenterListC = []
+                // }
+                if(types.indexOf("复制箱型箱量")<0){
                     res.data.data.preContainersList = []
                 }
-                if (type == '复制箱型箱量' || type == '') {
+                if(types.indexOf("复制费用")<0){
                     res.data.data.feeCenterListD = []
                     res.data.data.feeCenterListC = []
                 }

+ 1 - 1
src/views/iosBasicData/SeafreightExportF/bills/index.vue

@@ -1896,7 +1896,7 @@ export default {
             this.isShow = false
             this.$nextTick(() => {
                 this.$refs.billsDetails.pageLoading = true
-                this.$refs.billsDetails.billsCopyBillsfun(this.selectionList[0].id, '复制费用,复制箱型箱量')
+                this.$refs.billsDetails.billsCopyBillsfun(this.selectionList[0].id, '') // 复制费用,复制箱型箱量
             })
             this.$store.commit("IN_SEAFE_DETAIL");
         },