This commit is contained in:
zhaohengkun 2024-10-14 16:32:01 +08:00
parent 987ecc70df
commit 1aee452526
3 changed files with 54 additions and 95 deletions

View File

@ -136,6 +136,9 @@
prop="paymentType"
label="支付方式"
>
<template slot-scope="scope">
{{ getPaymentTypeStr(scope.row.paymentType) }}
</template>
</el-table-column>
<el-table-column
align="center"
@ -322,7 +325,8 @@
v-if="dict.value!='APPLET_CODE'"
:key="dict.value"
:label="dict.value"
:value="dict.value">{{dict.label}}</el-checkbox>
:value="dict.value">{{ dict.label }}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label=" 会员标签">
@ -386,21 +390,21 @@
</el-col>
</div>
</el-form-item>
<!-- <el-form-item label="适用加油升数" required>-->
<!-- <el-col :span="11">-->
<!-- <el-form-item prop="literMin">-->
<!-- <el-input v-model="ruleForm1.literMin"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="2">-->
<!-- <div style="margin-left: 5px"></div>-->
<!-- </el-col>-->
<!-- <el-col :span="11">-->
<!-- <el-form-item prop="literMax">-->
<!-- <el-input v-model="ruleForm1.literMax"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="适用加油升数" required>-->
<!-- <el-col :span="11">-->
<!-- <el-form-item prop="literMin">-->
<!-- <el-input v-model="ruleForm1.literMin"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="2">-->
<!-- <div style="margin-left: 5px"></div>-->
<!-- </el-col>-->
<!-- <el-col :span="11">-->
<!-- <el-form-item prop="literMax">-->
<!-- <el-input v-model="ruleForm1.literMax"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-form-item>-->
<el-form-item label="最大优惠金额" prop="disMax">
<el-input v-model="ruleForm1.disMax"></el-input>
</el-form-item>
@ -600,7 +604,7 @@ export default {
ruleForm1: {
activeType: 1,
timeType: 0,
consumeType:'',
consumeType: '',
paymentType: []
}
}
@ -610,11 +614,27 @@ export default {
this.getRuleList()
},
methods: {
//
getPaymentTypeStr(value) {
let valueList = value.split(",");
console.log(this.dict.type.payment_type)
let newValueList = valueList.map((item) => {
let matchedLabel = this.dict.type.payment_type.find((item1) => item1.value === item)?.label;
return matchedLabel || item; // label item
});
//
return newValueList.join(",")
},
//
resetRule() {
this.ruleForm1 = {
activeType: 1,
consumeType:'',
consumeType: '',
timeType: 0,
paymentType: []
}
@ -656,12 +676,12 @@ export default {
},
//
submitRuleForm() {
if (this.ruleForm1.consumeType == 1){
if (!this.ruleForm1.literMin || !this.ruleForm1.literMax){
if (this.ruleForm1.consumeType == 1) {
if (!this.ruleForm1.literMin || !this.ruleForm1.literMax) {
this.$message.error("请填写消费条件信息")
}
}else {
if (!this.ruleForm1.moneyMin || !this.ruleForm1.moneyMax){
} else {
if (!this.ruleForm1.moneyMin || !this.ruleForm1.moneyMax) {
this.$message.error("请填写消费条件信息")
}
}
@ -701,7 +721,7 @@ export default {
},
//
getTimeShareList() {
getRequestList({pageNo: 1, pageSize: 10000,activeType:1}).then(res => {
getRequestList({pageNo: 1, pageSize: 10000, activeType: 1}).then(res => {
this.timeShareList = res.data.records
})
},

View File

@ -73,6 +73,7 @@
AND ap.active_type = #{entity.activeType}
</if>
</where>
order by create_time desc
</select>
<select id="getLevel" resultType="com.fuint.repository.model.MtUserGrade">
select * from mt_user_grade

View File

@ -1123,79 +1123,17 @@ export default {
},
//
resetting1(){
let _this = this;
this.authCode = "";
if (_this.isPaySuccess == true){
// _this.isPay = false;
_this.oilAmount = 0;
_this.oilActualPay = 0;
_this.oilDiscount = 0;
_this.goodsAmount = 0;
_this.goodsActualPay = 0;
_this.goodsDiscount = 0;
_this.consumeAmount = 0;
_this.consumeRefuelMoney = 0;
_this.oilTotal = 0;
_this.goodsTotal = 0;
_this.oilCardAmount = 0;
_this.isMember = false;
_this.isSure = false;
_this.oilOrder = []
_this.goodsOrder = []
_this.amount = 0
_this.seekZero = 0;
_this.fullReduction = 0;
_this.fullReduceDiscount = []
_this.checkAll1 = false
_this.gradeDiscount = []
_this.checkAll2 = false
_this.checkAll3 = false
_this.checkAll4 = false
_this.checkAll5 = false
};
this.userNo = ""
this.map = {
allAmount:0,
//
authCode:'',
//
oilOrder:"",
//
goodsOrder:"",
//
payType:"WECHAT",
//
oilAmount:0,
//
goodsAmount:0,
//
oilActualPay:0,
//
goodsActualPay:0,
//
payUser:"",
//
oilDiscount:0,
//
goodsDiscount:0,
// id
couponId:"",
//
commissionAmount:0,
// 使
usePoint:0,
//
pointAmount:0,
//
terminal:"PC",
//
goodsNum:0,
//
consumeAmount:0,
typeIdex:'',
};
this.payType = "WECHAT"
//
this.userMobile=null
//
this.oilGunClearing={}
//
this.goodsList=[]
this.userInfo=false
//
this.payType = "ALIPAY"
},
//
queryPayStatus(){