szh-new
张同海 4 months ago
parent caaee45747
commit 2859c3ab40

@ -15,6 +15,7 @@ import {
getCustomerServiceList, getCustomerServiceList,
getDeptList, getDeptList,
} from '/@/api/common' } from '/@/api/common'
import { getOrgTree } from '/@/api/system/org'
let ClientFrtList = [] let ClientFrtList = []
const res: API.DataResult = await getClientFrtSelectList() const res: API.DataResult = await getClientFrtSelectList()
if (res.succeeded) { if (res.succeeded) {
@ -93,11 +94,19 @@ let DeptList = []
const res10: API.DataResult = await getDeptList() const res10: API.DataResult = await getDeptList()
if (res10.succeeded) { if (res10.succeeded) {
DeptList = [] DeptList = []
console.log(res10)
res10.data.forEach((e) => { res10.data.forEach((e) => {
DeptList.push({ label: e.orgName, value: e.id }) DeptList.push({ label: e.orgName, value: e.id })
}) })
} }
let OrgTree = []
const res11: API.DataResult = await getOrgTree()
if (res11.succeeded) {
OrgTree = []
res11.data.forEach((e) => {
OrgTree.push(e)
})
}
console.log(res11, OrgTree)
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
title: '客户代码', title: '客户代码',
@ -187,7 +196,7 @@ export const columns: BasicColumn[] = [
width: 150, width: 150,
}, },
{ {
title: '组织机构代码', title: '社会信用代码',
dataIndex: 'organizationCode', dataIndex: 'organizationCode',
sorter: true, sorter: true,
width: 150, width: 150,
@ -204,24 +213,24 @@ export const columns: BasicColumn[] = [
sorter: true, sorter: true,
width: 150, width: 150,
}, },
{ // {
title: '传真', // title: '传真',
dataIndex: 'fax', // dataIndex: 'fax',
sorter: true, // sorter: true,
width: 150, // width: 150,
}, // },
{ {
title: '负责人', title: '负责人',
dataIndex: 'chief', dataIndex: 'chief',
sorter: true, sorter: true,
width: 150, width: 150,
}, },
{ // {
title: 'QQ', // title: 'QQ',
dataIndex: 'qq', // dataIndex: 'qq',
sorter: true, // sorter: true,
width: 150, // width: 150,
}, // },
{ {
title: '邮箱', title: '邮箱',
dataIndex: 'email', dataIndex: 'email',
@ -234,12 +243,12 @@ export const columns: BasicColumn[] = [
sorter: true, sorter: true,
width: 150, width: 150,
}, },
{ // {
title: 'MSN', // title: 'MSN',
dataIndex: 'msn', // dataIndex: 'msn',
sorter: true, // sorter: true,
width: 150, // width: 150,
}, // },
{ {
title: '城市', title: '城市',
dataIndex: 'city', dataIndex: 'city',
@ -519,16 +528,31 @@ export const formSchema: FormSchema[] = [
// required: true, // required: true,
component: 'Input', component: 'Input',
defaultValue: '', defaultValue: '',
colProps: { span: 18 }, colProps: { span: 6 },
}, },
// {
// field: 'pcorpName',
// label: '所属集团',
// component: 'Input',
// defaultValue: '',
// colProps: { span: 6 },
// },
{ {
field: 'pcorpName', field: 'pcorpName',
label: '所属集团', label: '所属集团',
// required: true, component: 'TreeSelect',
component: 'Input',
defaultValue: '', defaultValue: '',
colProps: { span: 6 }, colProps: { span: 6 },
componentProps: {
treeData: OrgTree,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
},
}, },
{ {
field: 'name', field: 'name',
label: '客户英文简称', label: '客户英文简称',
@ -551,7 +575,7 @@ export const formSchema: FormSchema[] = [
// required: true, // required: true,
component: 'Input', component: 'Input',
defaultValue: '', defaultValue: '',
colProps: { span: 12 }, colProps: { span: 6 },
}, },
{ {
field: 'saleOrgId', field: 'saleOrgId',
@ -569,17 +593,18 @@ export const formSchema: FormSchema[] = [
}, },
}, },
}, },
{
field: 'address', // {
label: '通讯地址', // field: 'address',
// required: true, // label: '通讯地址',
component: 'InputTextArea', // // required: true,
defaultValue: '', // component: 'InputTextArea',
colProps: { span: 24 }, // defaultValue: '',
componentProps: { // colProps: { span: 24 },
rows: 3, // componentProps: {
}, // rows: 3,
}, // },
// },
{ {
field: 'registrationNo', field: 'registrationNo',
label: '企业备案号', label: '企业备案号',
@ -589,21 +614,22 @@ export const formSchema: FormSchema[] = [
colProps: { span: 6 }, colProps: { span: 6 },
}, },
{ {
field: 'inspectionNo', field: 'address',
label: '商检备案号', label: '通讯地址',
// required: true, // required: true,
component: 'Input', component: 'Input',
defaultValue: '', defaultValue: '',
colProps: { span: 6 }, colProps: { span: 12 },
}, },
{ {
field: 'organizationCode', field: 'inspectionNo',
label: '组织机构代码', label: '商检备案号',
// required: true, // required: true,
component: 'Input', component: 'Input',
defaultValue: '', defaultValue: '',
colProps: { span: 6 }, colProps: { span: 6 },
}, },
// { // {
// field: 'rcvMode', // field: 'rcvMode',
// label: '收单据模式', // label: '收单据模式',
@ -621,14 +647,14 @@ export const formSchema: FormSchema[] = [
defaultValue: '', defaultValue: '',
colProps: { span: 12 }, colProps: { span: 12 },
}, },
{ // {
field: 'fax', // field: 'fax',
label: '传真', // label: '传真',
// required: true, // // required: true,
component: 'Input', // component: 'Input',
defaultValue: '', // defaultValue: '',
colProps: { span: 12 }, // colProps: { span: 12 },
}, // },
{ {
field: 'chief', field: 'chief',
label: '负责人', label: '负责人',
@ -637,14 +663,14 @@ export const formSchema: FormSchema[] = [
defaultValue: '', defaultValue: '',
colProps: { span: 12 }, colProps: { span: 12 },
}, },
{ // {
field: 'qq', // field: 'qq',
label: 'QQ', // label: 'QQ',
// required: true, // // required: true,
component: 'Input', // component: 'Input',
defaultValue: '', // defaultValue: '',
colProps: { span: 12 }, // colProps: { span: 12 },
}, // },
{ {
field: 'email', field: 'email',
label: '邮箱', label: '邮箱',
@ -661,14 +687,14 @@ export const formSchema: FormSchema[] = [
defaultValue: '', defaultValue: '',
colProps: { span: 12 }, colProps: { span: 12 },
}, },
{ // {
field: 'msn', // field: 'msn',
label: 'MSN', // label: 'MSN',
// required: true, // // required: true,
component: 'Input', // component: 'Input',
defaultValue: '', // defaultValue: '',
colProps: { span: 12 }, // colProps: { span: 12 },
}, // },
{ {
field: 'city', field: 'city',
label: '城市', label: '城市',
@ -785,8 +811,9 @@ export const formSchema: FormSchema[] = [
{ {
field: 'isStop', field: 'isStop',
label: '是否停用', label: '是否停用',
component: 'RadioGroup', component: 'RadioButtonGroup',
colProps: { span: 12 }, defaultValue: true,
colProps: { span: 6 },
componentProps: { componentProps: {
options: [ options: [
{ label: '是', value: true }, { label: '是', value: true },
@ -853,6 +880,14 @@ export const formSchema: FormSchema[] = [
}, },
}, },
}, },
{
field: 'organizationCode',
label: '社会信用代码',
// required: true,
component: 'Input',
defaultValue: '',
colProps: { span: 6 },
},
{ {
field: 'wmsFeeRateType', field: 'wmsFeeRateType',
label: '仓储费开始日期模式', label: '仓储费开始日期模式',

Loading…
Cancel
Save