diff --git a/src/views/baseinfo/TaskMail/TenantAuditStepModal.vue b/src/views/baseinfo/TaskMail/TenantAuditStepModal.vue new file mode 100644 index 00000000..e6e7f894 --- /dev/null +++ b/src/views/baseinfo/TaskMail/TenantAuditStepModal.vue @@ -0,0 +1,123 @@ + + diff --git a/src/views/baseinfo/TaskMail/api.ts b/src/views/baseinfo/TaskMail/api.ts new file mode 100644 index 00000000..c7eb46d5 --- /dev/null +++ b/src/views/baseinfo/TaskMail/api.ts @@ -0,0 +1,32 @@ +// @ts-ignore +import { request } from '/@/utils/request' +import { DataResult, PageRequest } from '/@/api/model/baseModel' +enum Api { + list = '/opApi/TaskMail/GetList', + edit = '/opApi/TaskMail/Edit', + info = '/opApi/TaskMail/Edit', +} +// 列表 (Auth) +export function ApiList(data: PageRequest) { + return request({ + url: Api.list, + method: 'post', + data, + }) +} +// 编辑 (Auth) +export function ApiEdit(data: PageRequest) { + return request({ + url: Api.edit, + method: 'post', + data, + }) +} +// 详情 (Auth) +export function ApiInfo(query) { + return request({ + url: Api.info, + method: 'get', + params: query, + }) +} \ No newline at end of file diff --git a/src/views/baseinfo/TaskMail/columns.tsx b/src/views/baseinfo/TaskMail/columns.tsx new file mode 100644 index 00000000..21c328f8 --- /dev/null +++ b/src/views/baseinfo/TaskMail/columns.tsx @@ -0,0 +1,215 @@ +import { BasicColumn, FormSchema } from '/@/components/Table' +import { Tag } from 'ant-design-vue' +// import { GetGoodsTypeList } from './api' +let GoodsTypeList = [] +// const res: API.DataResult = await GetGoodsTypeList() +// if (res.succeeded) { +// GoodsTypeList = res.data +// } +export const columns: BasicColumn[] = [ + { + title: '名称', + dataIndex: 'name', + sorter: true, + width: 150, + }, + { + title: '名称', + dataIndex: 'name', + sorter: true, + width: 150, + }, + // { + // title: '商品类型', + // dataIndex: 'goodsTypeId', + // sorter: true, + // width: 200, + // customRender: ({ text }) => { + // let RData = text + // GoodsTypeList.forEach((e: any) => { + // if (e.value == text) { + // RData = e.label + // } + // }) + // return RData + // }, + // }, + // { + // title: '是否启用', + // dataIndex: 'status', + // sorter: true, + // width: 80, + // customRender: ({ text }) => { + // if (text === 0) { + // return 启用 + // } else if (text === 1) { + // return 禁用 + // } + // return text + // }, + // }, +] + +export const searchFormSchema: FormSchema[] = [ + { + field: 'GoodName', + label: '商品名称', + component: 'Input', + colProps: { span: 6 }, + }, +] +export const formSchema: FormSchema[] = [ + { + label: '', + field: 'id', + component: 'Input', + defaultValue: '', + show: false, + }, + { + field: 'goodsCode', + label: '商品编码', + component: 'Input', + required: true, + colProps: { span: 12 }, + dynamicDisabled: ({ values }) => { + return !!values.id + }, + }, + { + field: 'goodName', + label: '商品名称', + component: 'Input', + required: true, + colProps: { span: 12 }, + }, + { + field: 'goodsTypeId', + label: '商品类型', + component: 'Select', + colProps: { span: 12 }, + defaultValue: '', + componentProps: { + options: GoodsTypeList, + allowClear: true, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + }, + }, + { + field: 'goodNo', + label: '物料号', + component: 'Input', + colProps: { span: 12 }, + defaultValue: '', + }, + { + field: 'enName', + label: '英文名称', + component: 'Input', + colProps: { span: 12 }, + defaultValue: '', + }, + + // { + // field: 'arRate', + // label: '入库应收', + // component: 'InputNumber', + // colProps: { span: 12 }, + // defaultValue: 0, + // }, + // { + // field: 'apRate', + // label: '入库应付', + // component: 'InputNumber', + // colProps: { span: 12 }, + // defaultValue: 0, + // }, + // { + // field: 'arOutRate', + // label: '出库应收', + // component: 'InputNumber', + // colProps: { span: 12 }, + // defaultValue: 0, + // }, + // { + // field: 'apOutRate', + // label: '出库应付', + // component: 'InputNumber', + // colProps: { span: 12 }, + // defaultValue: 0, + // }, + + // { + // field: 'goodsFeeTypeId', + // label: '计费大类', + // component: 'Input', + // colProps: { span: 12 }, + // defaultValue: '', + // }, + { + field: 'hsCode', + label: 'HSCODE', + component: 'Input', + colProps: { span: 12 }, + defaultValue: '', + }, + // { + // field: 'ruleUnit', + // label: '申报计量单位', + // component: 'Input', + // colProps: { span: 12 }, + // defaultValue: '', + + // }, + // { + // field: 'ruleUnit1', + // label: '法定第一计量单位', + // component: 'Input', + // colProps: { span: 12 }, + // defaultValue: '', + + // }, + // { + // field: 'ruleUnit2', + // label: '法定第二计量单位', + // component: 'Input', + // colProps: { span: 12 }, + // defaultValue: '', + + // }, + { + field: 'description', + label: '商品描述', + component: 'InputTextArea', + + colProps: { span: 12 }, + componentProps: { + rows: 2, + }, + }, + { + field: 'note', + label: '备注', + component: 'InputTextArea', + colProps: { span: 12 }, + componentProps: { + rows: 2, + }, + }, + { + field: 'status', + label: '是否可用', + component: 'RadioButtonGroup', + defaultValue: 0, + colProps: { span: 12 }, + componentProps: { + options: [ + { label: '禁用', value: 1 }, + { label: '启用', value: 0 }, + ], + }, + }, +] diff --git a/src/views/baseinfo/TaskMail/index.vue b/src/views/baseinfo/TaskMail/index.vue new file mode 100644 index 00000000..06059b29 --- /dev/null +++ b/src/views/baseinfo/TaskMail/index.vue @@ -0,0 +1,126 @@ + + diff --git a/src/views/baseinfo/formset/component/form.vue b/src/views/baseinfo/formset/component/form.vue index 955484ff..ee140ee4 100644 --- a/src/views/baseinfo/formset/component/form.vue +++ b/src/views/baseinfo/formset/component/form.vue @@ -7,15 +7,12 @@
- + @@ -34,32 +37,45 @@

字段属性设置

- + - + - + - + - + {{ item.label }} - + @@ -88,23 +104,23 @@ @@ -255,9 +271,12 @@ import { FormSchema } from '/@/components/Table' height: 32px; line-height: 30px; padding-left: 15px; - color:rgba(0, 0, 0, 0.45); + color: rgba(0, 0, 0, 0.45); border-radius: 4px; } + .model-divider { + border-bottom: 1px solid #c9c9c9; + } } } diff --git a/src/views/baseinfo/infoclient/FeeCustTemplate/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/FeeCustTemplate/TenantAuditStepModal.vue new file mode 100644 index 00000000..a69d690b --- /dev/null +++ b/src/views/baseinfo/infoclient/FeeCustTemplate/TenantAuditStepModal.vue @@ -0,0 +1,131 @@ + + diff --git a/src/views/baseinfo/infoclient/FeeCustTemplate/api.ts b/src/views/baseinfo/infoclient/FeeCustTemplate/api.ts new file mode 100644 index 00000000..44baaa40 --- /dev/null +++ b/src/views/baseinfo/infoclient/FeeCustTemplate/api.ts @@ -0,0 +1,41 @@ +// @ts-ignore +import { request } from '/@/utils/request' +import { DataResult, PageRequest } from '/@/api/model/baseModel' +enum Api { + list = '/feeApi/FeeCustTemplate/GetList', + edit = '/feeApi/FeeCustTemplate/Edit', + info = '/feeApi/FeeCustTemplate/Edit', + del = '/feeApi/FeeCustTemplate/Delete', +} +// 列表 (Auth) +export function ApiList(data: PageRequest) { + return request({ + url: Api.list, + method: 'post', + data, + }) +} +// 编辑 (Auth) +export function ApiEdit(data: PageRequest) { + return request({ + url: Api.edit, + method: 'post', + data, + }) +} +// 详情 (Auth) +export function ApiInfo(query) { + return request({ + url: Api.info, + method: 'get', + params: query, + }) +} +// 批量删除 (Auth) +export function ApiDel(data: PageRequest) { + return request({ + url: Api.del, + method: 'post', + data, + }) +} \ No newline at end of file diff --git a/src/views/baseinfo/infoclient/FeeCustTemplate/columns.tsx b/src/views/baseinfo/infoclient/FeeCustTemplate/columns.tsx new file mode 100644 index 00000000..eed17be8 --- /dev/null +++ b/src/views/baseinfo/infoclient/FeeCustTemplate/columns.tsx @@ -0,0 +1,171 @@ +import { BasicColumn, FormSchema } from '/@/components/Table' +import { Tag } from 'ant-design-vue' +import { getDictDropDown } from '/@/api/common' +let shipperTypeList: any = [] +const res2: API.DataResult = await getDictDropDown({ code: 'shipper_type' }) +if (res2.succeeded) { + shipperTypeList = [] + res2.data.forEach((e) => { + shipperTypeList.push({ label: e.name, value: Number(e.value) }) + }) +} +export const columns: BasicColumn[] = [ + { + title: '名称', + dataIndex: 'name', + width: 150, + }, + { + title: '业务类型', + dataIndex: 'businessTypeText', + width: 150, + }, + { + title: '费用类型', + dataIndex: 'feeTypeText', + width: 150, + }, + { + title: '说明', + dataIndex: 'description', + width: 150, + }, +] + +export const searchFormSchema: FormSchema[] = [ + { + field: 'ShortName', + label: '简称', + component: 'Input', + colProps: { span: 6 }, + }, +] +export const formSchema: FormSchema[] = [ + { + label: '主键Id', + field: 'id', + component: 'Input', + defaultValue: '', + show: false, + }, + { + label: '客户id', + field: 'clientId', + component: 'Input', + defaultValue: '', + show: false, + }, + { + field: 'codeName', + label: '代码', + required: true, + component: 'Input', + colProps: { span: 12 }, + }, + { + field: 'shortName', + label: '简称', + required: true, + component: 'Input', + colProps: { span: 12 }, + }, + { + field: 'name', + label: '公司全称', + component: 'Input', + colProps: { span: 12 }, + }, + { + field: 'address', + label: '地址', + component: 'Input', + colProps: { span: 12 }, + }, + { + field: 'shipperType', + label: '类型', + required: true, + component: 'Select', + colProps: { span: 12 }, + componentProps: { + options: shipperTypeList, + allowClear: true, + showSearch: true, + mode: 'multiple', + class: 'NoLimitHeight', + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + }, + }, + { + field: 'attn', + label: '联系人', + component: 'Input', + colProps: { span: 12 }, + defaultValue: '', + }, + { + field: 'email', + label: '邮箱', + component: 'Input', + colProps: { span: 12 }, + defaultValue: '', + }, + { + field: 'tel', + label: '电话', + component: 'Input', + colProps: { span: 12 }, + defaultValue: '', + }, + { + field: 'companyNo', + label: '公司代码', + component: 'Input', + colProps: { span: 12 }, + defaultValue: 0, + }, + { + field: 'isPublic', + label: '是否公共标识', + component: 'Switch', + defaultValue: false, + colProps: { span: 6 }, + componentProps: { + checkedChildren: '是', + unCheckedChildren: '否', + }, + }, + { + field: 'status', + label: '是否可用', + component: 'Switch', + defaultValue: 0, + colProps: { span: 6 }, + componentProps: { + checkedChildren: '是', + checkedValue: 0, + unCheckedChildren: '否', + unCheckedValue: 1, + }, + }, + { + field: 'note', + label: '备注', + component: 'InputTextArea', + colProps: { span: 12 }, + componentProps: { + rows: 2, + }, + }, + { + field: 'shortDetail', + label: '详细信息', + component: 'InputTextArea', + colProps: { span: 12 }, + componentProps: { + rows: 2, + }, + }, +] diff --git a/src/views/baseinfo/infoclient/FeeCustTemplate/index.vue b/src/views/baseinfo/infoclient/FeeCustTemplate/index.vue new file mode 100644 index 00000000..ac40b079 --- /dev/null +++ b/src/views/baseinfo/infoclient/FeeCustTemplate/index.vue @@ -0,0 +1,148 @@ + + + diff --git a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue index 55adab9e..f6995c51 100644 --- a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue +++ b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue @@ -56,6 +56,12 @@ {{ auditStatusText }} + + + + 添加到表单设置 + +
@@ -68,10 +74,6 @@ lasttext="下一条" nexttext="上一条" > - - @@ -82,42 +84,6 @@

财务信息

-