From 55fda92e9ab86be67a9038f5e86059aba9f93fc0 Mon Sep 17 00:00:00 2001 From: linfso Date: Sun, 1 Dec 2024 21:16:38 +0800 Subject: [PATCH] md --- src/views/oms/EmisBaseTools/GoodsInput.vue | 1 + src/views/oms/emisWaybill/OrderRecord.vue | 82 +++++++++++-------- .../oms/emisWaybill/SendOrderbillList.vue | 8 +- 3 files changed, 55 insertions(+), 36 deletions(-) diff --git a/src/views/oms/EmisBaseTools/GoodsInput.vue b/src/views/oms/EmisBaseTools/GoodsInput.vue index dbde1ab..cdc8504 100644 --- a/src/views/oms/EmisBaseTools/GoodsInput.vue +++ b/src/views/oms/EmisBaseTools/GoodsInput.vue @@ -36,6 +36,7 @@
+ + {{ $t('添加申报货物') }} @@ -448,13 +449,18 @@
- + + + @@ -939,6 +945,8 @@ watch: { // 选择产品后报价 if(this.$route.query.action=="preOrderByProd"){ this.reset(); + this.initData(); + let routeParams=this.$route.query.routeParams; let postForm=JSON.parse(routeParams); @@ -977,9 +985,14 @@ created() { } else if(this.$route.query.action=="preOrderByProd"){ this.reset(); + + this.initData(); + let routeParams=this.$route.query.routeParams; let postForm=JSON.parse(routeParams); + console.log("==preOrderByProd=>",postForm); + this.form.sendDate =parseTime(new Date()); this.form.transLine=postForm.transLine; @@ -988,13 +1001,15 @@ created() { this.form.productType=postForm.productType; - this.form.reciever.country=postForm.reciever.country; - this.form.reciever.province=postForm.reciever.province; - - - this.form.sender.country=postForm.sender.country; - this.form.sender.province=postForm.sender.province; + if(postForm.reciever!=null){ + this.form.reciever.country=postForm.reciever.country; + this.form.reciever.province=postForm.reciever.province; + } + if(postForm.sender!=null){ + this.form.sender.country=postForm.sender.country; + this.form.sender.province=postForm.sender.province; + } this.form.customsClear=postForm.customsClear; this.form.customsEclaration=postForm.customsEclaration; @@ -1003,13 +1018,8 @@ created() { this.form.dispatchUnderlingSiteCode=postForm.dispatchUnderlingSiteCode; - - - this.form.productTypeSelArr=[this.form.transLine,this.form.productType]; - - } else{ this.initData(); @@ -1064,19 +1074,31 @@ methods: { // 获取默认专属业务员 this.initPrivSalesmen(); + + // 默认的收寄件地址 this.initDefaultAddress(); - // 默认的收寄件地址 + // 默认申报产品 + this.handleAddGoods(); - // 月结客户OMS登录 - let customerType=this.$store.getters.customerType; - if(customerType==2){ + // 初始化月结账号 + this.initMonthpayAccount(); + + this.productFeeList=[]; + } + + + }, + initMonthpayAccount(){ + // 月结客户OMS登录 + let customerType=this.$store.getters.customerType; + if(customerType==2){ // 获取默认的月结账号 this.form.paymentType='2'; this.form.custNo=this.$store.getters.userName; let qParams = { - pageNumber:1, + pageNum:1, pageSize:10 }; listSimpleEmisMonthpayAccount(qParams).then(response => { @@ -1089,11 +1111,7 @@ methods: { } }); - } - this.productFeeList=[]; } - - }, handlePrivSalesmen(row) { this.$router.push({ path: '/BaseMgnt/PrivSalesmen', query: { }}) @@ -1605,13 +1623,13 @@ methods: { border-bottom: none!important; } -.el-table .el-table__cell:first-child .cell { - padding: 0px; -} +// .el-table .el-table__cell:first-child .cell { +// padding: 0px; +// } -.el-table .cell { - padding: 0px; -} +// .el-table .cell { +// padding: 0px; +// } .cargoList{ .el-input__inner { diff --git a/src/views/oms/emisWaybill/SendOrderbillList.vue b/src/views/oms/emisWaybill/SendOrderbillList.vue index a5756c2..2476c9a 100644 --- a/src/views/oms/emisWaybill/SendOrderbillList.vue +++ b/src/views/oms/emisWaybill/SendOrderbillList.vue @@ -113,7 +113,7 @@ - + +