财务管理-收款金额设置

master
panqihua 2 years ago
parent a1bf7b14ec
commit c5d550d1e3
  1. 108
      src/views/platform/financial_management/collection_amount.vue

@ -0,0 +1,108 @@
<template>
<div class="app-container">
<el-form :inline="true">
<el-form-item>
<el-select v-model="queryParams.collectionAmount" placeholder="全部角色" clearable>
<el-option v-for="dict in dict.type.collection_role" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary">查询</el-button>
<el-button>重置</el-button>
</el-form-item>
<br />
<el-button type="primary" @click="dialog.add = true">新增</el-button>
</el-form>
<el-table :data="dataList" border class="table">
<el-table-column type="index" align="center" label="序号"></el-table-column>
<el-table-column align="center" label="角色">加盟店</el-table-column>
<el-table-column align="center" label="时长">1</el-table-column>
<el-table-column align="center" label="售价">5000.00</el-table-column>
<el-table-column align="center" label="原价">5000.00</el-table-column>
<el-table-column align="center" label="支付方式">企业微信企业支付宝对公账号</el-table-column>
<el-table-column align="center" label="创建时间">2022-12-31 12:31</el-table-column>
<el-table-column align="center" label="状态"><el-switch /></el-table-column>
<el-table-column align="center" label="操作">
<el-button type="text">编辑</el-button>
<el-button type="text">删除</el-button>
</el-table-column>
</el-table>
<el-dialog :visible.sync="dialog.add" title="新增">
<el-form label-width="80px" label-position="left">
<el-form-item label="用户角色">
<el-select v-model="form.collectionAmount" placeholder="全部角色" clearable>
<el-option v-for="dict in dict.type.collection_role" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
<el-form-item label="时长">
<el-input placeholder="请输入">
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="售价">
<el-input placeholder="请输入">
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="支付方式">
<el-select v-model="form.paymentMethod" placeholder="请选择" clearable>
<el-option v-for="dict in dict.type.payment_method" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
<el-form-item label="序号">
<el-input placeholder="数字越小排名越高">
</el-input>
</el-form-item>
<el-form-item label="是否启用">
<el-switch />
</el-form-item>
</el-form>
<div class="text-center">
<el-button type="primary" @click="save">保存</el-button>
<el-button>重置</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'CollectionAmount',
dicts: ['collection_role', 'payment_method'],
data() {
return {
dialog: {
add: false
},
dataList: [{}],
queryParams: {
collectionAmount: undefined
},
form: {
collectionAmount: undefined,
paymentMethod: undefined
}
}
},
methods: {
save() {
this.$modal.msgSuccess('保存成功')
this.dialog.add = false
}
}
}
</script>
<style>
.table {
margin-top: 10px;
}
.el-input {
width: 300px;
}
</style>
Loading…
Cancel
Save