This commit is contained in:
磷叶 2025-04-16 15:02:17 +08:00
parent 2f7c5bdf68
commit 7c0d09c627
5 changed files with 30 additions and 17 deletions

View File

@ -148,6 +148,7 @@ export const DeviceLockStatus = {
export const AreaJoinType = {
JOIN: "1", // 加盟
COOPERATE: "2", // 合伙
OPERATION: "3", // 运维
}
// 订单状态

View File

@ -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,

View File

@ -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: {

View File

@ -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: {

View File

@ -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>