dev_202304
wangchenguang 2 years ago
parent 8c048f6ba1
commit da5c40c0af
  1. 27
      src/views/order/AddOrder.vue

@ -71,7 +71,7 @@
</el-form-item>
<el-form-item prop="orderType" label="订单类型">
<el-select :disabled="viewDisabled"
v-model="form.orderType" clearable placeholder="请选择订单类型">
v-model="form.orderType" clearable placeholder="请选择订单类型" @change="updateOrderType">
<el-option v-for="(item,index) in orderTypeList" :key="index"
:label="item.name" :value="item.value"></el-option>
</el-select>
@ -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){

Loading…
Cancel
Save