This commit is contained in:
邱贞招 2024-09-13 22:24:59 +08:00
parent bad5c665fa
commit c29fd7f110
4 changed files with 30 additions and 3 deletions

View File

@ -212,7 +212,7 @@
<el-row>
<el-col :span="24">
<el-form-item label="绑定运营区" label-width="90">
<el-select style="width: 85%" v-model="form.areaIds" multiple placeholder="请绑定运营区">
<el-select style="width: 91%" v-model="form.areaIds" multiple placeholder="请绑定运营区">
<el-option
v-for="item in areaOptions"
:key="item.areaId"
@ -223,6 +223,20 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="支付渠道" label-width="90" prop="payChannel">
<el-select style="width: 91%" v-model="form.payChannel" placeholder="请绑定支付渠道">
<el-option
v-for="item in channelOptions"
:key="item.channelId"
:label="item.name"
:value="item.channelId"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<div v-if="form.parentId != 0">
<el-row>
<!-- <el-col :span="12">-->
@ -370,6 +384,7 @@ import { listArea } from '../../../api/system/area'
import { fastSearch } from '@/api/user/user'
import { getUser } from '@/api/system/user'
import { withdraw } from '@/api/system/flow'
import { listChannel } from '@/api/system/channel'
export default {
name: "Dept",
@ -434,6 +449,8 @@ export default {
options: [],
//
areaOptions: [],
//
channelOptions: [],
//
defaultSort: {prop: 'createTime', order: 'descending'},
//
@ -478,6 +495,9 @@ export default {
handlingCharge: [
{ required: true, message: "手续费不能为空", trigger: "blur" }
],
payChannel: [
{ required: true, message: "支付渠道不能为空", trigger: "blur" }
],
// orderNum: [
// { required: true, message: "", trigger: "blur" }
// ],
@ -670,6 +690,9 @@ export default {
this.areaOptions = response.rows;
this.form.parentId = 100;
});
listChannel(this.queryParams).then(response => {
this.channelOptions = response.rows;
});
});
},
/** 展开/折叠操作 */
@ -698,6 +721,9 @@ export default {
listArea({ pageNum: 1, pageSize: 999}).then(response => {
this.areaOptions = response.rows;
});
listChannel(this.queryParams).then(response => {
this.channelOptions = response.rows;
});
listDeptExcludeChild(row.deptId).then(response => {
this.deptOptions = this.handleTree(response.data, "deptId");
if (this.deptOptions.length == 0) {

View File

@ -1027,7 +1027,7 @@ export default {
{ key: 13, label: `车辆状态`, visible: true },
{ key: 14, label: ``, visible: true },
{ key: 15, label: `网络`, visible: true },
{ key: 16, label: `二维码`, visible: false },
{ key: 16, label: `二维码`, visible: true },
{ key: 17, label: `创建时间`, visible: false },
],
showPlaceSearchMap: false,

View File

@ -401,7 +401,7 @@
{{ form.rule.name }}
</span><br />
<span>
{{ form.rule.description }}
{{ form.description }}
</span><br />
</el-form-item>
</el-col>

View File

@ -438,6 +438,7 @@ export default {
dividendStatus: undefined,
status: "0",
remark: undefined,
payChannel: undefined,
areaIds: [],
postIds: [],
roleIds: []