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