From b1c1d68f7a17d552f597f50cf86e9f21c972e8bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Wed, 4 Jan 2023 10:05:39 +0800 Subject: [PATCH] up --- .env.development | 2 +- .env.staging | 2 +- src/views/order/component/actions.vue | 51 +++++++++++++++++++++++++-- src/views/order/orderList.vue | 9 +++-- 4 files changed, 56 insertions(+), 8 deletions(-) diff --git a/.env.development b/.env.development index 31fed3c..ae62b32 100644 --- a/.env.development +++ b/.env.development @@ -2,5 +2,5 @@ ENV = 'development' # base api -VUE_APP_BASE_API = http://yybtest.ali251.langye.net/ +VUE_APP_BASE_API = https://yybtest.ali251.langye.net/ #VUE_APP_BASE_API = https://yunyubang.ali251.langye.net/ diff --git a/.env.staging b/.env.staging index 07bbc85..d0b1856 100644 --- a/.env.staging +++ b/.env.staging @@ -4,5 +4,5 @@ NODE_ENV = production ENV = 'staging' # base api -VUE_APP_BASE_API = http://yybtest.ali251.langye.net/ +VUE_APP_BASE_API = https://yybtest.ali251.langye.net/ diff --git a/src/views/order/component/actions.vue b/src/views/order/component/actions.vue index e8ec86f..3c98482 100644 --- a/src/views/order/component/actions.vue +++ b/src/views/order/component/actions.vue @@ -21,7 +21,9 @@ export default { isShow:false, action:'', content:'', - + operations:{}, + operationsLen:false, + manuallyRefundFee:0, form:{ follow:{ content:'', @@ -29,6 +31,7 @@ export default { product_id:"", merchant_name:"", product_name:"", + manually_refund_fee:'' } } } @@ -179,7 +182,28 @@ export default {
产品名称
{this.content.vo?.order?.order_name}
-
+
+{this.operationsLen?
+
本次分发已产生佣金
+ +
+ { + this.form.follow.manually_refund_fee = e + } + }}> + + + +
+
:''} +
内容
@@ -224,7 +248,24 @@ export default { }).then(res => { this.content = res console.log(this.content) - this.isShow = true + this.isShow = true; + this.operations=res.operations; + + if(JSON.stringify(this.operations)!="{}"&&this.operations.length!=0){ + let manually_refund_fee=0; + let data=this.operations; + Object.keys(data).map((key,item)=>{ + console.log(key,data[key]);//key=>属性名 data[key]=>属性= + manually_refund_fee=data[key]?.fee_ratio; + }); + console.log("manually_refund_fee",(manually_refund_fee/100)) + console.log("res.vo.current_assigned_fee",res.vo.current_assigned_fee) + this.form.follow.manually_refund_fee=(manually_refund_fee/100)*res.vo.current_assigned_fee; + this.manually_refund_fee=manually_refund_fee; + this.operationsLen=true; + } + else this.operationsLen=false; + }) }, actionClick(){ @@ -245,6 +286,10 @@ export default { action:this.action, remark:this.form.follow.content } + if(this.operationsLen){ + data.manually_refund_fee=this.form.follow.manually_refund_fee; + } + break; } itemAction(data).then(res => { console.log(res) diff --git a/src/views/order/orderList.vue b/src/views/order/orderList.vue index 6c9632c..47f4284 100644 --- a/src/views/order/orderList.vue +++ b/src/views/order/orderList.vue @@ -297,7 +297,8 @@ row.order.member_address ? row.order.member_address : "修改服务地址" }
) } - }, + }, + { label: "用户信息", Fprop: 'member', @@ -379,8 +380,10 @@ }, { - prop: "order.remark", - label: "备注" + prop: "order.member_comment", + label: "备注", + align: "left", + minWidth: 320 } ], }