11.16
This commit is contained in:
parent
6f1406f8c6
commit
0747a79c6f
@ -1,5 +1,23 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 油品大类
|
||||||
|
export function getoiltype() {
|
||||||
|
return request({
|
||||||
|
url: 'system/dict/data/type/oil_type',
|
||||||
|
method: 'get',
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function getoilName(query) {
|
||||||
|
return request({
|
||||||
|
url: 'business/petrolStationManagement/oilNumber/getOilName',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 查询消费有礼活动列表
|
// 查询消费有礼活动列表
|
||||||
export function listActiveConsumption(query) {
|
export function listActiveConsumption(query) {
|
||||||
return request({
|
return request({
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
|
||||||
// 查询折扣营销列表
|
// 查询折扣营销列表
|
||||||
export function listActiveDiscount(query) {
|
export function listActiveDiscount(query) {
|
||||||
return request({
|
return request({
|
||||||
@ -8,6 +9,14 @@ export function listActiveDiscount(query) {
|
|||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getoilName(query) {
|
||||||
|
return request({
|
||||||
|
url: 'business/petrolStationManagement/oilNumber/getOilName',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 查询折扣营销详细
|
// 查询折扣营销详细
|
||||||
export function getActiveDiscount(id) {
|
export function getActiveDiscount(id) {
|
||||||
|
@ -8,6 +8,13 @@ export function listActiveFullminus(query) {
|
|||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getoilName(query) {
|
||||||
|
return request({
|
||||||
|
url: 'business/petrolStationManagement/oilNumber/getOilName',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 查询满减营销详细
|
// 查询满减营销详细
|
||||||
export function getActiveFullminus(id) {
|
export function getActiveFullminus(id) {
|
||||||
|
@ -8,6 +8,13 @@ export function listActiveNewlyweds(query) {
|
|||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getoilName(query) {
|
||||||
|
return request({
|
||||||
|
url: 'business/petrolStationManagement/oilNumber/getOilName',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 查询新人有礼活动详细
|
// 查询新人有礼活动详细
|
||||||
export function getActiveNewlyweds(id) {
|
export function getActiveNewlyweds(id) {
|
||||||
|
@ -31,6 +31,13 @@ export function getActiveRecommend(id) {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getoilName(query) {
|
||||||
|
return request({
|
||||||
|
url: 'business/petrolStationManagement/oilNumber/getOilName',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 新增推荐有礼
|
// 新增推荐有礼
|
||||||
export function addActiveRecommend(data) {
|
export function addActiveRecommend(data) {
|
||||||
|
@ -125,8 +125,9 @@
|
|||||||
|
|
||||||
<el-form-item label="可用油品" prop="adaptOil" >
|
<el-form-item label="可用油品" prop="adaptOil" >
|
||||||
<el-checkbox-group v-model="form.adaptOil">
|
<el-checkbox-group v-model="form.adaptOil">
|
||||||
<el-checkbox v-for="city in oillist" :label="city" :key="city">{{city}}</el-checkbox>
|
<el-checkbox v-for="(item,index) in oillist" :label="item.id" :key="index">{{item.oilType}}{{item.oilName}}</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="适用用户" prop="adaptUserType">
|
<el-form-item label="适用用户" prop="adaptUserType">
|
||||||
<el-radio-group v-model="form.adaptUserType">
|
<el-radio-group v-model="form.adaptUserType">
|
||||||
@ -553,7 +554,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listActiveConsumption,listExchange,listLJGoods, getActiveConsumption, delActiveConsumption, addActiveConsumption, updateActiveConsumption,listFavorable } from "@/api/EventMarketing/activeConsumption";
|
import { getoiltype,getoilName, listActiveConsumption,listExchange,listLJGoods, getActiveConsumption, delActiveConsumption, addActiveConsumption, updateActiveConsumption,listFavorable } from "@/api/EventMarketing/activeConsumption";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ActiveConsumption",
|
name: "ActiveConsumption",
|
||||||
@ -708,6 +709,8 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
// this.getoiltypeliet()
|
||||||
|
this.getoilName()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询消费有礼活动列表 */
|
/** 查询消费有礼活动列表 */
|
||||||
@ -719,8 +722,22 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
swchange(e){
|
// 查询油类
|
||||||
|
getoiltypeliet(){
|
||||||
|
getoiltype().then(res=>{
|
||||||
|
console.log(res)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//
|
||||||
|
getoilName(){
|
||||||
|
getoilName().then(res=>{
|
||||||
|
console.log(res)
|
||||||
|
this.oillist = res.data
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
swchange(e){
|
||||||
console.log(this.shopdata)
|
console.log(this.shopdata)
|
||||||
},
|
},
|
||||||
// 请求实物
|
// 请求实物
|
||||||
|
@ -75,7 +75,6 @@
|
|||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
|
|
||||||
>修改</el-button>
|
>修改</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -140,7 +139,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="可用油品" prop="adaptOil" >
|
<el-form-item label="可用油品" prop="adaptOil" >
|
||||||
<el-checkbox-group v-model="form.adaptOil">
|
<el-checkbox-group v-model="form.adaptOil">
|
||||||
<el-checkbox v-for="city in oillist" :label="city" :key="city">{{city}}</el-checkbox>
|
<el-checkbox v-for="(item,index) in oillist" :label="item.id" :key="index">{{item.oilType}}{{item.oilName}}</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="柴油会员等级" prop="dieselUserLevel">
|
<el-form-item label="柴油会员等级" prop="dieselUserLevel">
|
||||||
@ -215,7 +214,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listActiveDiscount, getActiveDiscount, delActiveDiscount, addActiveDiscount, updateActiveDiscount } from "@/api/EventMarketing/activeDiscount";
|
import { listActiveDiscount, getActiveDiscount, delActiveDiscount, addActiveDiscount, updateActiveDiscount } from "@/api/EventMarketing/activeDiscount";
|
||||||
import {getActiveConsumption, updateActiveConsumption} from "@/api/EventMarketing/activeConsumption";
|
import {getActiveConsumption, getoilName, updateActiveConsumption} from "@/api/EventMarketing/activeConsumption";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ActiveDiscount",
|
name: "ActiveDiscount",
|
||||||
@ -303,6 +302,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.getoilName();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询折扣营销列表 */
|
/** 查询折扣营销列表 */
|
||||||
@ -315,6 +315,14 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getoilName(){
|
||||||
|
getoilName().then(res=>{
|
||||||
|
console.log(res)
|
||||||
|
this.oillist = res.data
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
// 新增
|
// 新增
|
||||||
addactiveDiscountChildList(){
|
addactiveDiscountChildList(){
|
||||||
let data = {
|
let data = {
|
||||||
|
@ -146,7 +146,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="可用油品" prop="adaptOil" >
|
<el-form-item label="可用油品" prop="adaptOil" >
|
||||||
<el-checkbox-group v-model="form.adaptOil">
|
<el-checkbox-group v-model="form.adaptOil">
|
||||||
<el-checkbox v-for="city in oillist" :label="city" :key="city">{{city}}</el-checkbox>
|
<el-checkbox v-for="(item,index) in oillist" :label="item.id" :key="index">{{item.oilType}}{{item.oilName}}</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="柴油会员等级" prop="dieselUserLevel">
|
<el-form-item label="柴油会员等级" prop="dieselUserLevel">
|
||||||
@ -222,6 +222,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { listActiveFullminus, getActiveFullminus, delActiveFullminus, addActiveFullminus, updateActiveFullminus } from "@/api/EventMarketing/activeFullminus";
|
import { listActiveFullminus, getActiveFullminus, delActiveFullminus, addActiveFullminus, updateActiveFullminus } from "@/api/EventMarketing/activeFullminus";
|
||||||
import {getActiveDiscount, updateActiveDiscount} from "@/api/EventMarketing/activeDiscount";
|
import {getActiveDiscount, updateActiveDiscount} from "@/api/EventMarketing/activeDiscount";
|
||||||
|
import {getoilName} from "@/api/EventMarketing/activeConsumption";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ActiveFullminus",
|
name: "ActiveFullminus",
|
||||||
@ -307,6 +308,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.getoilName()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询满减营销列表 */
|
/** 查询满减营销列表 */
|
||||||
@ -318,6 +320,14 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getoilName(){
|
||||||
|
getoilName().then(res=>{
|
||||||
|
console.log(res)
|
||||||
|
this.oillist = res.data
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
// 新增
|
// 新增
|
||||||
addactiveDiscountChildList(){
|
addactiveDiscountChildList(){
|
||||||
let data = {
|
let data = {
|
||||||
|
@ -432,7 +432,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listActiveNewlyweds, getActiveNewlyweds, delActiveNewlyweds, addActiveNewlyweds, updateActiveNewlyweds } from "@/api/EventMarketing/activeNewlyweds";
|
import { listActiveNewlyweds, getActiveNewlyweds, delActiveNewlyweds, addActiveNewlyweds, updateActiveNewlyweds } from "@/api/EventMarketing/activeNewlyweds";
|
||||||
import {listExchange, listFavorable} from "@/api/EventMarketing/activeConsumption";
|
import {getoilName, listExchange, listFavorable} from "@/api/EventMarketing/activeConsumption";
|
||||||
import QRCode from "qrcodejs2";
|
import QRCode from "qrcodejs2";
|
||||||
import {getActiveFullminus, updateActiveFullminus} from "@/api/EventMarketing/activeFullminus";
|
import {getActiveFullminus, updateActiveFullminus} from "@/api/EventMarketing/activeFullminus";
|
||||||
|
|
||||||
@ -543,6 +543,14 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getoilName(){
|
||||||
|
getoilName().then(res=>{
|
||||||
|
console.log(res)
|
||||||
|
this.oillist = res.data
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
qrcodelook(url) {
|
qrcodelook(url) {
|
||||||
this.loadingdialog = true
|
this.loadingdialog = true
|
||||||
this.centerDialogVisible = true
|
this.centerDialogVisible = true
|
||||||
|
@ -167,11 +167,14 @@
|
|||||||
<el-select v-model="ruleForm.oilType" placeholder="请选择" >
|
<el-select v-model="ruleForm.oilType" placeholder="请选择" >
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in oilList"
|
v-for="dict in oilList"
|
||||||
:key="dict.oilName"
|
|
||||||
|
:key="dict.id.toString()"
|
||||||
:label="dict.oilName"
|
:label="dict.oilName"
|
||||||
:value="dict.oilName">
|
|
||||||
|
:value="dict.id.toString()">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<!-- <el-radio-group v-model="ruleForm.oilType" >-->
|
<!-- <el-radio-group v-model="ruleForm.oilType" >-->
|
||||||
<!-- <el-radio-->
|
<!-- <el-radio-->
|
||||||
<!-- v-for="dict in oilList"-->
|
<!-- v-for="dict in oilList"-->
|
||||||
@ -325,12 +328,22 @@
|
|||||||
watch:{
|
watch:{
|
||||||
'ruleForm.rechargeBalance':{
|
'ruleForm.rechargeBalance':{
|
||||||
handler: function() {
|
handler: function() {
|
||||||
this.ruleForm.incomeLitres = this.ruleForm.rechargeBalance / this.ruleForm.lockupPrice
|
if(this.ruleForm.rechargeBalance != 0 && this.ruleForm.lockupPrice != 0 ){
|
||||||
|
this.ruleForm.incomeLitres = this.ruleForm.rechargeBalance / this.ruleForm.lockupPrice
|
||||||
|
}else {
|
||||||
|
this.ruleForm.incomeLitres = 0
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'ruleForm.lockupPrice':{
|
'ruleForm.lockupPrice':{
|
||||||
handler: function() {
|
handler: function() {
|
||||||
this.ruleForm.incomeLitres = this.ruleForm.rechargeBalance / this.ruleForm.lockupPrice
|
|
||||||
|
if(this.ruleForm.rechargeBalance != 0 && this.ruleForm.lockupPrice != 0 ){
|
||||||
|
this.ruleForm.incomeLitres = this.ruleForm.rechargeBalance / this.ruleForm.lockupPrice
|
||||||
|
}else {
|
||||||
|
this.ruleForm.incomeLitres = 0
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -346,6 +359,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods:{
|
methods:{
|
||||||
|
//
|
||||||
radiovalue(){
|
radiovalue(){
|
||||||
|
|
||||||
this.oilList = []
|
this.oilList = []
|
||||||
@ -371,6 +385,7 @@
|
|||||||
lockupPrice: 0 ,
|
lockupPrice: 0 ,
|
||||||
rechargeBalance:0,
|
rechargeBalance:0,
|
||||||
incomeLitres:0,
|
incomeLitres:0,
|
||||||
|
|
||||||
points:'',
|
points:'',
|
||||||
activeTime:'1',
|
activeTime:'1',
|
||||||
activeStatus:'1',
|
activeStatus:'1',
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@riophae/vue-treeselect": "0.4.0",
|
"@riophae/vue-treeselect": "0.4.0",
|
||||||
"axios": "0.24.0",
|
"axios": "0.24.0",
|
||||||
|
"bignumber.js": "^9.1.2",
|
||||||
"clipboard": "2.0.8",
|
"clipboard": "2.0.8",
|
||||||
"core-js": "3.25.3",
|
"core-js": "3.25.3",
|
||||||
"echarts": "4.9.0",
|
"echarts": "4.9.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user