|
@@ -48,7 +48,7 @@
|
|
|
<el-form-item label="" prop="quota">
|
|
|
<el-input-number v-model="form.quota" controls-position="right" :min="0" placeholder="请输入"></el-input-number>
|
|
|
</el-form-item>
|
|
|
- <span>{{ form.type == 1 ? '元':'折' }}</span>
|
|
|
+ <span>{{ form.type == 1 ? '元':'%' }}</span>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="发放数量:" prop="issuseNum">
|
|
@@ -374,7 +374,7 @@ export default {
|
|
|
...res.data,
|
|
|
grantTime: [res.data.issuseStartDate,res.data.issuseEndDate], // 发放时间段
|
|
|
imag: res.data.imag?res.data.imag.split(','):[],
|
|
|
- quota: res.data.type == 1?res.data.quota:(res.data.quota)*10
|
|
|
+ quota: res.data.type == 1?res.data.quota:res.data.quota
|
|
|
}
|
|
|
if(obj.useType == 1) {
|
|
|
obj['useDate'] = [res.data.useStartDate,res.data.useEndDate] // 使用指定时间
|
|
@@ -458,7 +458,7 @@ export default {
|
|
|
if(this.form.type == 1){
|
|
|
param['quota'] = this.form.quota
|
|
|
}else {
|
|
|
- param['quota'] = (this.form.quota)/10
|
|
|
+ param['quota'] = this.form.quota
|
|
|
}
|
|
|
delete param.grantTime
|
|
|
delete param.useDate
|
|
@@ -598,7 +598,7 @@ export default {
|
|
|
return {
|
|
|
disabledDate: (time) => {
|
|
|
if(useType == 1 && datas && datas.length>0) {
|
|
|
- let now = new Date(moment(datas[1]).startOf('day').format('YYYY-MM-DD HH:mm:ss'))
|
|
|
+ let now = new Date(datas[1]) // moment(datas[1]).startOf('day').format('YYYY-MM-DD HH:mm:ss')
|
|
|
return time.getTime() > now.getTime();
|
|
|
}else {
|
|
|
return false
|
|
@@ -611,7 +611,7 @@ export default {
|
|
|
return {
|
|
|
disabledDate: (time) => {
|
|
|
if(datas && datas.length>0) {
|
|
|
- let now = new Date(moment(datas[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss'))
|
|
|
+ let now = new Date(moment(datas[0])) // moment(datas[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss')
|
|
|
return time.getTime() < now.getTime()
|
|
|
}else {
|
|
|
return false
|