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>
<el-form-item prop="orderType" label="订单类型"> <el-form-item prop="orderType" label="订单类型">
<el-select :disabled="viewDisabled" <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" <el-option v-for="(item,index) in orderTypeList" :key="index"
:label="item.name" :value="item.value"></el-option> :label="item.name" :value="item.value"></el-option>
</el-select> </el-select>
@ -989,7 +989,7 @@ export default {
this.searchTimer = setTimeout(() => { this.searchTimer = setTimeout(() => {
this.getDataJurisdiction(); this.getDataJurisdiction();
}, 500); }, 500);
}, }
}, },
async created() { async created() {
this.getTeam() 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) { setStartDate(renewList, orderOther) {
let list = orderOther.map(e => { let list = orderOther.map(e => {
e.settlementPriceUnit = e.settlementPrice e.settlementPriceUnit = e.settlementPrice
@ -1806,6 +1825,10 @@ export default {
}, },
// 使 // 使
deadLine(e,row,options, isDate) { deadLine(e,row,options, isDate) {
console.log('e=>',e)
console.log('row=>',row)
console.log('options=>',options)
console.log('isDate=>',isDate)
let optionsData = '' let optionsData = ''
if(e > 0){ if(e > 0){
if (options == 1){ if (options == 1){

Loading…
Cancel
Save