Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
396c15cc93
@ -443,6 +443,113 @@
|
||||
</template>
|
||||
|
||||
|
||||
<template v-if="ruleForm.deptType == '3'">
|
||||
<el-row >
|
||||
<el-col :span="20">
|
||||
<el-form-item label="计费方式" prop="turnoverType">
|
||||
<span v-if="isTopDept">
|
||||
<el-radio-group :disabled="isTopDept" v-model="ruleForm.turnoverType" @input="changeTheBillingRule">
|
||||
<el-radio v-if="ruleForm.turnoverType=='1'" label=1>无限制</el-radio>
|
||||
<el-radio v-if="ruleForm.turnoverType=='2'" label=2>时间限制</el-radio>
|
||||
</el-radio-group>
|
||||
</span>
|
||||
<span v-else>
|
||||
<el-radio-group :disabled="isTopDept" v-model="ruleForm.turnoverType" @input="changeTheBillingRule">
|
||||
<el-radio label=1>无限制</el-radio>
|
||||
<el-radio label=2>时间限制</el-radio>
|
||||
</el-radio-group>
|
||||
</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
<el-row>
|
||||
|
||||
<template v-if="ruleForm.turnoverType === '2'">
|
||||
<el-col :span="12">
|
||||
<el-row>
|
||||
<el-form-item label="时间限制" prop="turnoverType" >
|
||||
<el-date-picker
|
||||
v-model="beginTime"
|
||||
:disabled="isTopDept"
|
||||
style="width: 140px"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="开始日期">
|
||||
</el-date-picker>
|
||||
至
|
||||
<el-date-picker
|
||||
v-model="endTime"
|
||||
:disabled="isTopDept"
|
||||
style="width: 140px"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</el-col>
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
|
||||
<template v-if="ruleForm.turnoverType === '5'">
|
||||
<el-col :span="10">
|
||||
<el-row>
|
||||
<el-form-item label="时间范围">
|
||||
<el-date-picker
|
||||
:disabled="isTopDept"
|
||||
v-model="beginTime"
|
||||
style="width: 140px"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="开始日期">
|
||||
</el-date-picker>
|
||||
至
|
||||
<el-date-picker
|
||||
:disabled="isTopDept"
|
||||
v-model="endTime"
|
||||
style="width: 140px"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="价格">
|
||||
<el-input :disabled="isTopDept" v-model="ruleForm.prepaidAmount">
|
||||
<template slot="append">万元</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
<template v-if="ruleForm.turnoverType === '6'">
|
||||
<el-col :span="10">
|
||||
|
||||
<el-form-item label="可创建油站数量" label-width="110px">
|
||||
<!-- <el-input-number :disabled="isTopDept" v-model="ruleForm.storeNum" @change="handleChangeInputNumber" :min="1"-->
|
||||
<!-- :max="1000" label="可创建油站数量"></el-input-number>-->
|
||||
<el-input type="number" :disabled="isTopDept" v-model="ruleForm.storeNum":min="1" style="width: 200px" @blur="getMax"
|
||||
:max="maxNumber">
|
||||
<template slot="append">个</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="已建油站数量" label-width="110px">
|
||||
<span>{{ruleForm.storeNums || 0}}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</template>
|
||||
</el-row>
|
||||
</template>
|
||||
|
||||
|
||||
<el-row v-if="ruleForm.deptType !== '3'">
|
||||
<el-col span="3">
|
||||
<el-form-item label="设置油站数量">
|
||||
|
@ -3151,7 +3151,11 @@
|
||||
if (this.consumeRefuelMoney>0){
|
||||
type = 1;
|
||||
}else {
|
||||
type = 0;
|
||||
if (this.consumeAmount>0){
|
||||
type = 0;
|
||||
}else {
|
||||
type = 2;
|
||||
}
|
||||
}
|
||||
// 数据清零
|
||||
this.oilDiscount = 0
|
||||
|
Loading…
Reference in New Issue
Block a user