更新
This commit is contained in:
parent
2f7c5bdf68
commit
7c0d09c627
|
@ -148,6 +148,7 @@ export const DeviceLockStatus = {
|
||||||
export const AreaJoinType = {
|
export const AreaJoinType = {
|
||||||
JOIN: "1", // 加盟
|
JOIN: "1", // 加盟
|
||||||
COOPERATE: "2", // 合伙
|
COOPERATE: "2", // 合伙
|
||||||
|
OPERATION: "3", // 运维
|
||||||
}
|
}
|
||||||
|
|
||||||
// 订单状态
|
// 订单状态
|
||||||
|
|
|
@ -14,18 +14,20 @@
|
||||||
</form-col>
|
</form-col>
|
||||||
<form-col :span="span" label="类型" prop="type">
|
<form-col :span="span" label="类型" prop="type">
|
||||||
<el-select v-model="form.type" placeholder="请选择类型" style="width: 100%;">
|
<el-select v-model="form.type" placeholder="请选择类型" style="width: 100%;">
|
||||||
|
<template v-for="dict in dict.type.area_join_type">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.area_join_type"
|
v-if="types.includes(dict.value)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
></el-option>
|
/>
|
||||||
|
</template>
|
||||||
</el-select>
|
</el-select>
|
||||||
</form-col>
|
</form-col>
|
||||||
<form-col :span="span" label="绑定用户" prop="userPhone">
|
<form-col :span="span" label="绑定用户" prop="userPhone">
|
||||||
<el-input v-model="form.userPhone" placeholder="请输入绑定用户手机号" />
|
<el-input v-model="form.userPhone" placeholder="请输入绑定用户手机号" />
|
||||||
</form-col>
|
</form-col>
|
||||||
<form-col :span="span" label="分成比例" prop="point">
|
<form-col :span="span" label="分成比例" prop="point" v-if="form.type !== AreaJoinType.OPERATION">
|
||||||
<el-input v-model="form.point" placeholder="请输入分成比例">
|
<el-input v-model="form.point" placeholder="请输入分成比例">
|
||||||
<template slot="append">%</template>
|
<template slot="append">%</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
|
@ -70,6 +72,10 @@ export default {
|
||||||
initData: {
|
initData: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => ({})
|
default: () => ({})
|
||||||
|
},
|
||||||
|
types: {
|
||||||
|
type: Array,
|
||||||
|
default: () => []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -123,7 +129,7 @@ export default {
|
||||||
reset() {
|
reset() {
|
||||||
this.form = {
|
this.form = {
|
||||||
id: null,
|
id: null,
|
||||||
type: AreaJoinType.JOIN,
|
type: this.types?.[0],
|
||||||
areaId: null,
|
areaId: null,
|
||||||
userId: null,
|
userId: null,
|
||||||
point: null,
|
point: null,
|
||||||
|
|
|
@ -11,12 +11,14 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="类型" prop="type">
|
<el-form-item label="类型" prop="type">
|
||||||
<el-select v-model="queryParams.type" placeholder="请选择类型" clearable @change="handleQuery">
|
<el-select v-model="queryParams.type" placeholder="请选择类型" clearable @change="handleQuery">
|
||||||
|
<template v-for="dict in dict.type.area_join_type">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.area_join_type"
|
v-if="types.includes(dict.value)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="用户" prop="userName">
|
<el-form-item label="用户" prop="userName">
|
||||||
|
@ -145,6 +147,7 @@
|
||||||
:id="editId"
|
:id="editId"
|
||||||
:init-data="initData"
|
:init-data="initData"
|
||||||
@success="getList"
|
@success="getList"
|
||||||
|
:types="types"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -212,10 +215,13 @@ export default {
|
||||||
userId: null,
|
userId: null,
|
||||||
remark: null,
|
remark: null,
|
||||||
createId: null
|
createId: null
|
||||||
}
|
},
|
||||||
|
types: [], // 类型列表
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.types = this.$route.query?.types?.split(',') || [];
|
||||||
|
this.queryParams.types = this.types;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -41,7 +41,7 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
// 二维码文本
|
// 二维码文本
|
||||||
qrCodeText() {
|
qrCodeText() {
|
||||||
return "https://wc.chuangtewl.com/xl/xd?s=" + this.sn;
|
return "https://wx.ccttiot.com/x/d?s=" + this.sn;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<collapse-panel :value="true" title="运营信息">
|
<collapse-panel :value="true" title="运营信息">
|
||||||
<el-descriptions :column="1">
|
<el-descriptions :column="1">
|
||||||
<el-descriptions-item label="运营区">{{ detail.areaName | dv }}</el-descriptions-item>
|
<el-descriptions-item label="运营区">{{ detail.areaName | dv }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="运营商">{{ detail.mchName | dv }}</el-descriptions-item>
|
<el-descriptions-item label="车辆归属">{{ detail.mchName | dv }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="车型名称">{{ detail.modelName | dv }}</el-descriptions-item>
|
<el-descriptions-item label="车型名称">{{ detail.modelName | dv }}</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</collapse-panel>
|
</collapse-panel>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user