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){