|
|
|
@ -180,23 +180,6 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'ediCode',
|
|
|
|
|
label: 'EDI代码',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
return {
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'organizationCode',
|
|
|
|
|
label: '社会信用代码',
|
|
|
|
@ -243,46 +226,13 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'pcorpName',
|
|
|
|
|
label: '所属集团名称',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'pcorpId',
|
|
|
|
|
label: '所属集团',
|
|
|
|
|
field: 'ediCode',
|
|
|
|
|
label: 'EDI代码',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
const { formModel } = e
|
|
|
|
|
return {
|
|
|
|
|
treeData: OrgTree,
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
if (e) {
|
|
|
|
|
const ForTree = (data, key, callback) => {
|
|
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
|
|
if (data[i].value == key) {
|
|
|
|
|
return callback(data[i], i, data)
|
|
|
|
|
}
|
|
|
|
|
if (data[i].children) {
|
|
|
|
|
ForTree(data[i].children, key, callback)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let obj: any = {}
|
|
|
|
|
ForTree(OrgTree, e, (item, index, arr) => {
|
|
|
|
|
obj = item
|
|
|
|
|
})
|
|
|
|
|
formModel.pcorpName = obj.title
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
@ -290,6 +240,7 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'Divider1',
|
|
|
|
|
component: 'Divider',
|
|
|
|
@ -482,22 +433,22 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '操作人Name',
|
|
|
|
|
field: 'operatorName',
|
|
|
|
|
label: '客服Name',
|
|
|
|
|
field: 'customerServiceName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'operatorId',
|
|
|
|
|
label: '操作人',
|
|
|
|
|
field: 'customerService',
|
|
|
|
|
label: '客服',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
const { formModel } = e
|
|
|
|
|
return {
|
|
|
|
|
options: OperatorUserList,
|
|
|
|
|
options: CustomerServiceList,
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
@ -505,12 +456,12 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.operatorId = obj.value
|
|
|
|
|
formModel.operatorName = obj.label
|
|
|
|
|
formModel.customerService = obj.value
|
|
|
|
|
formModel.customerServiceName = obj.label
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.operatorId = ''
|
|
|
|
|
formModel.operatorName = ''
|
|
|
|
|
formModel.customerService = ''
|
|
|
|
|
formModel.customerServiceName = ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onEdit: () => {
|
|
|
|
@ -521,22 +472,22 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '单证Name',
|
|
|
|
|
field: 'docName',
|
|
|
|
|
label: '操作人Name',
|
|
|
|
|
field: 'operatorName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'doc',
|
|
|
|
|
label: '单证',
|
|
|
|
|
field: 'operatorId',
|
|
|
|
|
label: '操作人',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
const { formModel } = e
|
|
|
|
|
return {
|
|
|
|
|
options: VouchingClerkList,
|
|
|
|
|
options: OperatorUserList,
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
@ -544,12 +495,12 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.doc = obj.value
|
|
|
|
|
formModel.docName = obj.label
|
|
|
|
|
formModel.operatorId = obj.value
|
|
|
|
|
formModel.operatorName = obj.label
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.doc = ''
|
|
|
|
|
formModel.docName = ''
|
|
|
|
|
formModel.operatorId = ''
|
|
|
|
|
formModel.operatorName = ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onEdit: () => {
|
|
|
|
@ -560,22 +511,22 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '客服Name',
|
|
|
|
|
field: 'customerServiceName',
|
|
|
|
|
label: '单证Name',
|
|
|
|
|
field: 'docName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'customerService',
|
|
|
|
|
label: '客服',
|
|
|
|
|
field: 'doc',
|
|
|
|
|
label: '单证',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
const { formModel } = e
|
|
|
|
|
return {
|
|
|
|
|
options: CustomerServiceList,
|
|
|
|
|
options: VouchingClerkList,
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
@ -583,12 +534,12 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.customerService = obj.value
|
|
|
|
|
formModel.customerServiceName = obj.label
|
|
|
|
|
formModel.doc = obj.value
|
|
|
|
|
formModel.docName = obj.label
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.customerService = ''
|
|
|
|
|
formModel.customerServiceName = ''
|
|
|
|
|
formModel.doc = ''
|
|
|
|
|
formModel.docName = ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onEdit: () => {
|
|
|
|
@ -598,6 +549,7 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'commissionUserId',
|
|
|
|
|
label: '提成参与人',
|
|
|
|
@ -707,21 +659,21 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'unitPrice',
|
|
|
|
|
label: '冷藏费率',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
return {
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'unitPrice',
|
|
|
|
|
// label: '冷藏费率',
|
|
|
|
|
// component: 'DEdit',
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// componentProps: (e) => {
|
|
|
|
|
// return {
|
|
|
|
|
// onEdit: () => {
|
|
|
|
|
// const { formActionType } = e
|
|
|
|
|
// formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
// },
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
field: 'commissionRate',
|
|
|
|
|
label: '提成比例',
|
|
|
|
@ -813,4 +765,52 @@ export const EditformSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'pcorpName',
|
|
|
|
|
label: '所属集团名称',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'pcorpId',
|
|
|
|
|
label: '所属集团',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
const { formModel } = e
|
|
|
|
|
return {
|
|
|
|
|
treeData: OrgTree,
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
if (e) {
|
|
|
|
|
const ForTree = (data, key, callback) => {
|
|
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
|
|
if (data[i].value == key) {
|
|
|
|
|
return callback(data[i], i, data)
|
|
|
|
|
}
|
|
|
|
|
if (data[i].children) {
|
|
|
|
|
ForTree(data[i].children, key, callback)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let obj: any = {}
|
|
|
|
|
ForTree(OrgTree, e, (item, index, arr) => {
|
|
|
|
|
obj = item
|
|
|
|
|
})
|
|
|
|
|
formModel.pcorpName = obj.title
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|