From da5c40c0af59349cdfc3acf323d4ebdd98de09fb Mon Sep 17 00:00:00 2001 From: wangchenguang <728837162@qq.com> Date: Tue, 18 Apr 2023 17:26:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/AddOrder.vue | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index 4c0467f..5f5d077 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -71,7 +71,7 @@ + v-model="form.orderType" clearable placeholder="请选择订单类型" @change="updateOrderType"> @@ -989,7 +989,7 @@ export default { this.searchTimer = setTimeout(() => { this.getDataJurisdiction(); }, 500); - }, + } }, async created() { this.getTeam() @@ -1127,6 +1127,25 @@ export default { }) }); }, + /** + * 订单类型更改触发的事件 + * type 正式为1 + * 试用为2 + */ + updateOrderType(type) { + console.log('options=>',type) + if (type ==1) { + this.coursePermissions.forEach(item=>{ + this.dealSettlePrice(item) + }) + }else { + this.coursePermissions.forEach(item=> { + item.finalPrice = 0 + item.settlementPrice = 0 + }) + } + console.log() + }, setStartDate(renewList, orderOther) { let list = orderOther.map(e => { e.settlementPriceUnit = e.settlementPrice @@ -1806,6 +1825,10 @@ export default { }, // 使用期限转换以及计算剩余天数 deadLine(e,row,options, isDate) { + console.log('e=>',e) + console.log('row=>',row) + console.log('options=>',options) + console.log('isDate=>',isDate) let optionsData = '' if(e > 0){ if (options == 1){