|
@@ -5,44 +5,62 @@ import { render } from '/@/utils/common/renderUtils';
|
|
|
import { getWeekMonthQuarterYear } from '/@/utils';
|
|
|
//列表数据
|
|
|
export const columns: BasicColumn[] = [
|
|
|
- {
|
|
|
- title: '状态(1-启用,0-停用)',
|
|
|
+ {
|
|
|
+ title: '编码(code)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'status'
|
|
|
+ dataIndex: 'code'
|
|
|
},
|
|
|
{
|
|
|
- title: '名称',
|
|
|
+ title: '名称(name)',
|
|
|
align:"center",
|
|
|
dataIndex: 'name'
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
- title: '编码',
|
|
|
+ title: '客户(customer)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'code'
|
|
|
+ dataIndex: 'customerId'
|
|
|
},
|
|
|
{
|
|
|
- title: '客户',
|
|
|
+ title: '备注(notes)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'customerId'
|
|
|
+ dataIndex: 'notes'
|
|
|
},
|
|
|
{
|
|
|
- title: '备注',
|
|
|
+ title: '创建时间(create time)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'notes'
|
|
|
+ dataIndex: 'createTime'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '创建人(create by)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'createBy'
|
|
|
},
|
|
|
];
|
|
|
//查询数据
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
- {
|
|
|
- label: "创建人",
|
|
|
- field: 'createBy',
|
|
|
- component: 'JSelectUser',
|
|
|
+ {
|
|
|
+ label: "编码(code)",
|
|
|
+ field: 'code',
|
|
|
+ component: 'Input',
|
|
|
componentProps:{
|
|
|
},
|
|
|
//colProps: {span: 6},
|
|
|
- },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "名称(name)",
|
|
|
+ field: 'name',
|
|
|
+ component: 'Input',
|
|
|
+ //colProps: {span: 6},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "客户(customer)",
|
|
|
+ field: 'customerId',
|
|
|
+ component: 'Input',
|
|
|
+ //colProps: {span: 6},
|
|
|
+ },
|
|
|
{
|
|
|
- label: "创建时间",
|
|
|
+ label: "创建时间(create time)",
|
|
|
field: "createTime",
|
|
|
component: 'RangePicker',
|
|
|
componentProps: {
|
|
@@ -52,58 +70,42 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
{
|
|
|
- label: "名称",
|
|
|
- field: 'name',
|
|
|
- component: 'Input',
|
|
|
- //colProps: {span: 6},
|
|
|
- },
|
|
|
- {
|
|
|
- label: "编码",
|
|
|
- field: 'code',
|
|
|
- component: 'Input',
|
|
|
- //colProps: {span: 6},
|
|
|
- },
|
|
|
- {
|
|
|
- label: "客户",
|
|
|
- field: 'customerId',
|
|
|
- component: 'Input',
|
|
|
- //colProps: {span: 6},
|
|
|
- },
|
|
|
+ label: "创建人(create by)",
|
|
|
+ field: 'createBy',
|
|
|
+ component: 'Input',
|
|
|
+ //colProps: {span: 6},
|
|
|
+ },
|
|
|
+
|
|
|
];
|
|
|
//表单数据
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
{
|
|
|
- label: '状态(1-启用,0-停用)',
|
|
|
- field: 'status',
|
|
|
- component: 'InputNumber',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '名称',
|
|
|
- field: 'name',
|
|
|
+ label: '客户(customer)',
|
|
|
+ field: 'customerId',
|
|
|
component: 'Input',
|
|
|
dynamicRules: ({model,schema}) => {
|
|
|
return [
|
|
|
- { required: true, message: '请输入名称!'},
|
|
|
+ { required: true, message: '请输入客户!'},
|
|
|
];
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- label: '编码',
|
|
|
+ label: '编码(code)',
|
|
|
field: 'code',
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
|
- label: '客户',
|
|
|
- field: 'customerId',
|
|
|
+ label: '名称(name)',
|
|
|
+ field: 'name',
|
|
|
component: 'Input',
|
|
|
dynamicRules: ({model,schema}) => {
|
|
|
return [
|
|
|
- { required: true, message: '请输入客户!'},
|
|
|
+ { required: true, message: '请输入名称!'},
|
|
|
];
|
|
|
},
|
|
|
- },
|
|
|
+ },
|
|
|
{
|
|
|
- label: '备注',
|
|
|
+ label: '备注(notes)',
|
|
|
field: 'notes',
|
|
|
component: 'Input',
|
|
|
},
|