|
@@ -0,0 +1,581 @@
|
|
|
+import {BasicColumn} from '/@/components/Table';
|
|
|
+import {FormSchema} from '/@/components/Table';
|
|
|
+import { rules} from '/@/utils/helper/validator';
|
|
|
+import { render } from '/@/utils/common/renderUtils';
|
|
|
+import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'
|
|
|
+import { getWeekMonthQuarterYear } from '/@/utils';
|
|
|
+
|
|
|
+export const columns: BasicColumn[] = [
|
|
|
+ {
|
|
|
+ title: '状态(1-启用,0-停用)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'status_dictText'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '编码',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'code'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '名称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'name'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '简称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'abbreviation'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '曾用名',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'nameUsedBefore'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '税号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'dutyParagraph'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '法人',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'legalPerson'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '联系人',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'contacts'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '联系电话',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'phone'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '邮箱',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'email'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '注册地址',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'registerAddress'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '公司地址',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'address'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '供应商性质',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'supplierNature_dictText'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '国家',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'country_dictText'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '币种',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'currency'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '国外供应商',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'abroadSupplier'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '原厂',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'originalFactory_dictText'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '开户行',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'openingBank'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '付款条件',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'paymentTerms_dictText'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '银行代码',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'swiftCode'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '银行帐号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'bankAccount'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '营业执照',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'businessLicense'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '其他文件',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'otherFiles'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'notes'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '临时供应商',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'temporarySupplier_dictText'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '供应商等级',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'evaluationLevel_dictText'
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+export const searchFormSchema: FormSchema[] = [
|
|
|
+ {
|
|
|
+ label: "状态(1-启用,0-停用)",
|
|
|
+ field: "status",
|
|
|
+ component: 'JSelectMultiple',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "编码",
|
|
|
+ field: "code",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "名称",
|
|
|
+ field: "name",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "简称",
|
|
|
+ field: "abbreviation",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "税号",
|
|
|
+ field: "dutyParagraph",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "联系人",
|
|
|
+ field: "contacts",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "联系电话",
|
|
|
+ field: "phone",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "供应商性质",
|
|
|
+ field: "supplierNature",
|
|
|
+ component: 'JSelectMultiple',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "国家",
|
|
|
+ field: "country",
|
|
|
+ component: 'JSelectMultiple',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "原厂",
|
|
|
+ field: "originalFactory",
|
|
|
+ component: 'JSelectMultiple',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "临时供应商",
|
|
|
+ field: "temporarySupplier",
|
|
|
+ component: 'JSelectMultiple',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "供应商等级",
|
|
|
+ field: "evaluationLevel",
|
|
|
+ component: 'JSelectMultiple',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+export const formSchema: FormSchema[] = [
|
|
|
+ {
|
|
|
+ label: '状态(1-启用,0-停用)',
|
|
|
+ field: 'status',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:""
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '编码',
|
|
|
+ field: 'code',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '名称',
|
|
|
+ field: 'name',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '简称',
|
|
|
+ field: 'abbreviation',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '曾用名',
|
|
|
+ field: 'nameUsedBefore',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '税号',
|
|
|
+ field: 'dutyParagraph',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '法人',
|
|
|
+ field: 'legalPerson',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '联系人',
|
|
|
+ field: 'contacts',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '联系电话',
|
|
|
+ field: 'phone',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '邮箱',
|
|
|
+ field: 'email',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '注册地址',
|
|
|
+ field: 'registerAddress',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '公司地址',
|
|
|
+ field: 'address',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '供应商性质',
|
|
|
+ field: 'supplierNature',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:""
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '国家',
|
|
|
+ field: 'country',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:""
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '币种',
|
|
|
+ field: 'currency',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '国外供应商',
|
|
|
+ field: 'abroadSupplier',
|
|
|
+ component: 'InputNumber',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '原厂',
|
|
|
+ field: 'originalFactory',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:""
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '开户行',
|
|
|
+ field: 'openingBank',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '付款条件',
|
|
|
+ field: 'paymentTerms',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:""
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '银行代码',
|
|
|
+ field: 'swiftCode',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '银行帐号',
|
|
|
+ field: 'bankAccount',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '营业执照',
|
|
|
+ field: 'businessLicense',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '其他文件',
|
|
|
+ field: 'otherFiles',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '备注',
|
|
|
+ field: 'notes',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '临时供应商',
|
|
|
+ field: 'temporarySupplier',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:""
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '供应商等级',
|
|
|
+ field: 'evaluationLevel',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:""
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ label: '',
|
|
|
+ field: 'id',
|
|
|
+ component: 'Input',
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+
|
|
|
+export const cuspSupplierProfileManColumns: JVxeColumn[] = [
|
|
|
+ {
|
|
|
+ title: '状态(1-启用,0-停用)',
|
|
|
+ key: 'status',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '主表主键(供应商档案)',
|
|
|
+ key: 'headId',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '编码',
|
|
|
+ key: 'code',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '姓名',
|
|
|
+ key: 'name',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '电话',
|
|
|
+ key: 'mobile',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '邮箱',
|
|
|
+ key: 'email',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '职位',
|
|
|
+ key: 'position',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+export const cuspSupplierProfileQualificationColumns: JVxeColumn[] = [
|
|
|
+ {
|
|
|
+ title: '状态(1-启用,0-停用)',
|
|
|
+ key: 'status',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '主表主键(供应商档案)',
|
|
|
+ key: 'headId',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '资质证书名称',
|
|
|
+ key: 'qualificationCertificateName',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '资质证书编码',
|
|
|
+ key: 'qualificationCertificateCode',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '有效期始',
|
|
|
+ key: 'validBegin',
|
|
|
+ type: JVxeTypes.datetime,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '有效期止',
|
|
|
+ key: 'validEnd',
|
|
|
+ type: JVxeTypes.datetime,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '资质证书附件',
|
|
|
+ key: 'qualificationCertificate',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '临期提醒',
|
|
|
+ key: 'deadlineReminder',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+export const superQuerySchema = {
|
|
|
+ status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',dictCode: '',},
|
|
|
+ code: {title: '编码',order: 2,view: 'text', type: 'string',},
|
|
|
+ name: {title: '名称',order: 3,view: 'text', type: 'string',},
|
|
|
+ abbreviation: {title: '简称',order: 4,view: 'text', type: 'string',},
|
|
|
+ nameUsedBefore: {title: '曾用名',order: 5,view: 'text', type: 'string',},
|
|
|
+ dutyParagraph: {title: '税号',order: 6,view: 'text', type: 'string',},
|
|
|
+ legalPerson: {title: '法人',order: 7,view: 'text', type: 'string',},
|
|
|
+ contacts: {title: '联系人',order: 8,view: 'text', type: 'string',},
|
|
|
+ phone: {title: '联系电话',order: 9,view: 'text', type: 'string',},
|
|
|
+ email: {title: '邮箱',order: 10,view: 'text', type: 'string',},
|
|
|
+ registerAddress: {title: '注册地址',order: 11,view: 'text', type: 'string',},
|
|
|
+ address: {title: '公司地址',order: 12,view: 'text', type: 'string',},
|
|
|
+ supplierNature: {title: '供应商性质',order: 13,view: 'list', type: 'string',dictCode: '',},
|
|
|
+ country: {title: '国家',order: 14,view: 'list', type: 'string',dictCode: '',},
|
|
|
+ currency: {title: '币种',order: 15,view: 'text', type: 'string',},
|
|
|
+ abroadSupplier: {title: '国外供应商',order: 16,view: 'number', type: 'number',},
|
|
|
+ originalFactory: {title: '原厂',order: 17,view: 'number', type: 'number',dictCode: '',},
|
|
|
+ openingBank: {title: '开户行',order: 18,view: 'text', type: 'string',},
|
|
|
+ paymentTerms: {title: '付款条件',order: 19,view: 'list', type: 'string',dictCode: '',},
|
|
|
+ swiftCode: {title: '银行代码',order: 20,view: 'text', type: 'string',},
|
|
|
+ bankAccount: {title: '银行帐号',order: 21,view: 'text', type: 'string',},
|
|
|
+ businessLicense: {title: '营业执照',order: 22,view: 'text', type: 'string',},
|
|
|
+ otherFiles: {title: '其他文件',order: 23,view: 'text', type: 'string',},
|
|
|
+ notes: {title: '备注',order: 24,view: 'text', type: 'string',},
|
|
|
+ temporarySupplier: {title: '临时供应商',order: 25,view: 'number', type: 'number',dictCode: '',},
|
|
|
+ evaluationLevel: {title: '供应商等级',order: 26,view: 'list', type: 'string',dictCode: '',},
|
|
|
+
|
|
|
+ cuspSupplierProfileMan: {
|
|
|
+ title: '供应商档案-联系人',
|
|
|
+ view: 'table',
|
|
|
+ fields: {
|
|
|
+ status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',},
|
|
|
+ headId: {title: '主表主键(供应商档案)',order: 2,view: 'text', type: 'string',},
|
|
|
+ code: {title: '编码',order: 3,view: 'text', type: 'string',},
|
|
|
+ name: {title: '姓名',order: 4,view: 'text', type: 'string',},
|
|
|
+ mobile: {title: '电话',order: 5,view: 'text', type: 'string',},
|
|
|
+ email: {title: '邮箱',order: 6,view: 'text', type: 'string',},
|
|
|
+ position: {title: '职位',order: 7,view: 'text', type: 'string',},
|
|
|
+ }
|
|
|
+ },
|
|
|
+ cuspSupplierProfileQualification: {
|
|
|
+ title: '供应商档案-资质信息',
|
|
|
+ view: 'table',
|
|
|
+ fields: {
|
|
|
+ status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',},
|
|
|
+ headId: {title: '主表主键(供应商档案)',order: 2,view: 'text', type: 'string',},
|
|
|
+ qualificationCertificateName: {title: '资质证书名称',order: 3,view: 'text', type: 'string',},
|
|
|
+ qualificationCertificateCode: {title: '资质证书编码',order: 4,view: 'text', type: 'string',},
|
|
|
+ validBegin: {title: '有效期始',order: 5,view: 'datetime', type: 'string',},
|
|
|
+ validEnd: {title: '有效期止',order: 6,view: 'datetime', type: 'string',},
|
|
|
+ qualificationCertificate: {title: '资质证书附件',order: 7,view: 'text', type: 'string',},
|
|
|
+ deadlineReminder: {title: '临期提醒',order: 8,view: 'number', type: 'number',},
|
|
|
+ }
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+* 流程表单调用这个方法获取formSchema
|
|
|
+* @param param
|
|
|
+*/
|
|
|
+export function getBpmFormSchema(_formData): FormSchema[]{
|
|
|
+
|
|
|
+ return formSchema;
|
|
|
+}
|