出行配置,套餐加等级
This commit is contained in:
parent
9b38be4697
commit
835a1615ce
|
@ -30,13 +30,25 @@
|
|||
</el-select>
|
||||
</div>
|
||||
<div style="position: relative; display: inline-block">
|
||||
<span>城市:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入城市"
|
||||
v-model="city"
|
||||
>
|
||||
</el-input>
|
||||
<span>状态:</span>
|
||||
<el-select
|
||||
clearable
|
||||
v-model="status"
|
||||
style="width: 150px; margin-left: 10px">
|
||||
<el-option value="1" label="上线"></el-option>
|
||||
<el-option value="2" label="下线"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div style="position: relative; display: inline-block">
|
||||
<span>等级:</span>
|
||||
<el-select
|
||||
clearable
|
||||
v-model="level"
|
||||
style="width: 150px; margin-left: 10px">
|
||||
<el-option value="3" label="新手"></el-option>
|
||||
<el-option value="4" label="专家"></el-option>
|
||||
<el-option value="5" label="资深"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div style="position: relative; display: inline-block">
|
||||
<span>项目名称:</span>
|
||||
|
@ -47,14 +59,13 @@
|
|||
</el-input>
|
||||
</div>
|
||||
<div style="position: relative; display: inline-block">
|
||||
<span>状态:</span>
|
||||
<el-select
|
||||
clearable
|
||||
v-model="status"
|
||||
style="width: 150px; margin-left: 10px">
|
||||
<el-option value="1" label="上线"></el-option>
|
||||
<el-option value="2" label="下线"></el-option>
|
||||
</el-select>
|
||||
<span>城市:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入城市"
|
||||
v-model="city"
|
||||
>
|
||||
</el-input>
|
||||
</div>
|
||||
<el-button
|
||||
style="margin: 10px"
|
||||
|
@ -101,6 +112,11 @@
|
|||
{{ showDictValue(scope.row.classifyId, fwData) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="等级" fixed="left" prop="level">
|
||||
<template slot-scope="scope">
|
||||
{{ showLevelValue(scope.row.level, levelData) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="title"
|
||||
label="名称"
|
||||
|
@ -343,6 +359,21 @@
|
|||
</el-select
|
||||
>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right"
|
||||
>套餐等级:</span
|
||||
>
|
||||
<el-select clearable v-model="level" style="width: 50%">
|
||||
<el-option
|
||||
v-for="item in levelData"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select
|
||||
>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right"
|
||||
>名称:</span
|
||||
|
@ -1171,6 +1202,7 @@ export default {
|
|||
tableDataLoading: false,
|
||||
tableData: {},
|
||||
typeDictData: [],
|
||||
levelData:[{id:3,value:'新手'},{id:4,value:'专家'},{id:5,value:'资深'}],
|
||||
id: "",//编号
|
||||
title: "",//标题
|
||||
type: "",//服务包类型
|
||||
|
@ -1188,6 +1220,7 @@ export default {
|
|||
city: "",//城市
|
||||
createTime: "",//创建时间
|
||||
fwxmtype:"",//服务项目类型 104服务套餐
|
||||
level:"",
|
||||
page: 1,
|
||||
limit: 10,
|
||||
dialogFormVisibleSales: false,
|
||||
|
@ -1258,6 +1291,10 @@ export default {
|
|||
const dictItem = datas.find(item => data === item.id);
|
||||
return dictItem ? dictItem.value : '';
|
||||
},
|
||||
showLevelValue(data, datas){
|
||||
const dictItem = datas.find(item => data === item.id);
|
||||
return dictItem ? dictItem.value : '';
|
||||
},
|
||||
// 服务包类型
|
||||
typeDictSelect() {
|
||||
this.$http({
|
||||
|
@ -1297,7 +1334,8 @@ export default {
|
|||
classifyId: this.classifyId,
|
||||
city: this.city,
|
||||
title: this.title,
|
||||
status: this.status
|
||||
status: this.status,
|
||||
level: this.level,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
|
@ -1327,6 +1365,7 @@ export default {
|
|||
this.city = "";
|
||||
this.title = "";
|
||||
this.status = "";
|
||||
this.level = "";
|
||||
this.page = 1;
|
||||
this.handleSelect();
|
||||
},
|
||||
|
@ -1587,6 +1626,7 @@ export default {
|
|||
this.sales = row.sales;
|
||||
this.labels = row.labels;
|
||||
this.city = row.city;
|
||||
this.level = row.level;
|
||||
this.createTime = row.createTime;
|
||||
if (row.city != "" && row.city != "不限") {
|
||||
this.city = row.city;
|
||||
|
@ -1646,6 +1686,15 @@ export default {
|
|||
});
|
||||
return;
|
||||
}
|
||||
if (this.level == "") {
|
||||
this.$notify({
|
||||
title: "提示",
|
||||
duration: 1800,
|
||||
message: "请设置套餐等级",
|
||||
type: "warning",
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (this.title == "") {
|
||||
this.$notify({
|
||||
title: "提示",
|
||||
|
@ -1728,6 +1777,7 @@ export default {
|
|||
sales: this.sales,
|
||||
labels: this.labelsArr.toString(),
|
||||
city: this.city,
|
||||
level: this.level,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
|
@ -1788,6 +1838,7 @@ export default {
|
|||
this.labels= "";//标签
|
||||
this.city= "";//城市
|
||||
this.createTime= "";//创建时间
|
||||
this.level= "";
|
||||
this.page= 1;
|
||||
this.limit= 10;
|
||||
this.dialogFormVisibleSales= false;
|
||||
|
@ -2083,6 +2134,7 @@ export default {
|
|||
this.storeAddre = "请选择城市";
|
||||
this.type = "";
|
||||
this.jianjie = "";
|
||||
this.level = "";
|
||||
this.serviceCount = 1;
|
||||
this.intervalDays = 0;
|
||||
this.dialogFormVisibleAddMassage = true;
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" v-if="dataForm.pricingType == 2">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="夜间出行费(元)" prop="nightTravelExpenses">
|
||||
<el-input-number v-model="dataForm.nightTravelExpenses" controls-position="right" :precision="2" :min="0" :step="1"/>
|
||||
</el-form-item>
|
||||
|
|
Loading…
Reference in New Issue