Commit 098f79b2 by wusiyi

feat: 新增操作费管理

parent e3b6b5af
<script> <script lang="jsx">
export default { export default {
name: 'CustomForm', name: 'CustomForm',
components: {}, components: {},
...@@ -109,14 +109,23 @@ export default { ...@@ -109,14 +109,23 @@ export default {
inline inline
onSubmit={this.handleSubmit} onSubmit={this.handleSubmit}
onKeyupenterCapture={this.search}> onKeyupenterCapture={this.search}>
{this.formConfig?.map((item, index) => ( {this.formConfig?.map((item, index) => {
if (
typeof item.isShow === 'function' &&
!item.isShow(this.formData)
) {
return null
}
return (
<el-form-item <el-form-item
style={{ style={{
width: item.type === 'textarea' ? '100%' : this.formItemWidth width: item.type === 'textarea' ? '100%' : this.formItemWidth
}} }}
class={item.type === 'textarea' ? 'textClass' : ''} class={item.type === 'textarea' ? 'textClass' : ''}
prop={item.prop} prop={item.prop}
rules={(item.renderRules && item.renderRules(this.formData)) || []} rules={
(item.renderRules && item.renderRules(this.formData)) || []
}
label-width={item.labelWidth || this.formLabelWidth} label-width={item.labelWidth || this.formLabelWidth}
key={index} key={index}
label={item.name}> label={item.name}>
...@@ -126,6 +135,15 @@ export default { ...@@ -126,6 +135,15 @@ export default {
placeholder={item.placeholder || `请输入${item.name}`} placeholder={item.placeholder || `请输入${item.name}`}
clearable></el-input> clearable></el-input>
)} )}
{item.type === 'inputNumber' && (
<el-input-number
v-model={this.formData[item.prop]}
placeholder={item.placeholder || `请输入${item.name}`}
clearable
step={item.step || 1}
controls-position={item.position || 'right'}
style="width: 100%;"></el-input-number>
)}
{item.type === 'textarea' && ( {item.type === 'textarea' && (
<el-input <el-input
type="textarea" type="textarea"
...@@ -165,7 +183,8 @@ export default { ...@@ -165,7 +183,8 @@ export default {
</el-radio> </el-radio>
))} ))}
</el-form-item> </el-form-item>
))} )
})}
{this.isCustomButton && ( {this.isCustomButton && (
<el-form-item> <el-form-item>
<el-button <el-button
......
...@@ -8,6 +8,7 @@ import { ...@@ -8,6 +8,7 @@ import {
Form, Form,
FormItem, FormItem,
Input, Input,
InputNumber,
Message, Message,
MessageBox, MessageBox,
Pagination, Pagination,
...@@ -21,6 +22,7 @@ import { ...@@ -21,6 +22,7 @@ import {
Cascader, Cascader,
Radio, Radio,
RadioGroup, RadioGroup,
RadioButton,
Menu, Menu,
Submenu, Submenu,
MenuItem, MenuItem,
...@@ -36,6 +38,7 @@ import { ...@@ -36,6 +38,7 @@ import {
Tooltip, Tooltip,
ColorPicker, ColorPicker,
CheckboxGroup, CheckboxGroup,
CheckboxButton,
Divider, Divider,
Popover, Popover,
Upload Upload
...@@ -49,6 +52,7 @@ const components = [ ...@@ -49,6 +52,7 @@ const components = [
Form, Form,
FormItem, FormItem,
Input, Input,
InputNumber,
DatePicker, DatePicker,
Pagination, Pagination,
Switch, Switch,
...@@ -57,6 +61,7 @@ const components = [ ...@@ -57,6 +61,7 @@ const components = [
Cascader, Cascader,
Radio, Radio,
RadioGroup, RadioGroup,
RadioButton,
Menu, Menu,
MenuItem, MenuItem,
Submenu, Submenu,
...@@ -75,6 +80,7 @@ const components = [ ...@@ -75,6 +80,7 @@ const components = [
Tooltip, Tooltip,
ColorPicker, ColorPicker,
CheckboxGroup, CheckboxGroup,
CheckboxButton,
Popover, Popover,
Upload Upload
] ]
...@@ -89,11 +95,11 @@ export default { ...@@ -89,11 +95,11 @@ export default {
typeof message === 'string' typeof message === 'string'
? Message({ ? Message({
duration: 2500, duration: 2500,
message, message
}) })
: Message({ : Message({
duration: 2500, duration: 2500,
...message, ...message
}) })
Vue.prototype.$message.success = (message) => Vue.prototype.$message.success = (message) =>
typeof message === 'string' typeof message === 'string'
...@@ -115,5 +121,5 @@ export default { ...@@ -115,5 +121,5 @@ export default {
Vue.prototype.$alert = MessageBox.alert Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt Vue.prototype.$prompt = MessageBox.prompt
}, }
} }
...@@ -79,6 +79,12 @@ const routes = [ ...@@ -79,6 +79,12 @@ const routes = [
meta: { title: '服务管理' } meta: { title: '服务管理' }
}, },
{ {
path: '/saas/operationFee',
component: () => import('@/views/system/operationFee.vue'),
name: 'system_operationFee',
meta: { title: '操作费管理' }
},
{
path: '/saas/countryCode', path: '/saas/countryCode',
component: () => import('@/views/system/countryCode.vue'), component: () => import('@/views/system/countryCode.vue'),
name: 'system_countryCode', name: 'system_countryCode',
......
...@@ -275,6 +275,14 @@ export default { ...@@ -275,6 +275,14 @@ export default {
icon: 'el-icon-s-order', icon: 'el-icon-s-order',
index: '/saas/services', index: '/saas/services',
children: [] children: []
},
{
id: 6,
path: '',
label: '操作费管理',
icon: 'el-icon-s-order',
index: '/saas/operationFee',
children: []
} }
] ]
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment