|
|
|
@ -8,11 +8,9 @@ import {
|
|
|
|
|
getClientFrtSelectList,
|
|
|
|
|
getClientSourceSelectList,
|
|
|
|
|
getClientCountrySelectList,
|
|
|
|
|
getClientStlModeSelectList,
|
|
|
|
|
getNotifications,
|
|
|
|
|
} from './api'
|
|
|
|
|
import {
|
|
|
|
|
getDictDropDown,
|
|
|
|
|
getOperatorUserList,
|
|
|
|
|
getVouchingClerkList,
|
|
|
|
|
getSaleUserList,
|
|
|
|
@ -22,8 +20,10 @@ import {
|
|
|
|
|
GetUserList,
|
|
|
|
|
GetAllClientList,
|
|
|
|
|
} from '/@/api/common'
|
|
|
|
|
import { GetClientSourceDetailSelectList } from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { getOrgTree } from '/@/api/system/org'
|
|
|
|
|
import {
|
|
|
|
|
GetClientSourceDetailSelectList,
|
|
|
|
|
GetServiceProjectList,
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
|
let ClientFrtList = []
|
|
|
|
@ -34,16 +34,6 @@ if (res.succeeded) {
|
|
|
|
|
ClientFrtList.push({ label: e.cnName, value: e.id })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let wmsFeeRateTypeList = []
|
|
|
|
|
const res2: API.DataResult = await getDictDropDown({ code: 'wms_fee_rate_type' })
|
|
|
|
|
if (res2.succeeded) {
|
|
|
|
|
wmsFeeRateTypeList = []
|
|
|
|
|
res2.data.forEach((e) => {
|
|
|
|
|
wmsFeeRateTypeList.push({ label: e.name, value: e.value })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let ClientSourceList = []
|
|
|
|
|
const res3: API.DataResult = await getClientSourceSelectList()
|
|
|
|
|
if (res3.succeeded) {
|
|
|
|
@ -60,22 +50,6 @@ if (res4.succeeded) {
|
|
|
|
|
ClientCountryList.push({ label: e.countryName, value: e.id })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let ClientStlModeList = []
|
|
|
|
|
const res5: API.DataResult = await getClientStlModeSelectList()
|
|
|
|
|
if (res5.succeeded) {
|
|
|
|
|
ClientStlModeList = []
|
|
|
|
|
res5.data.forEach((e) => {
|
|
|
|
|
ClientStlModeList.push({ label: e.stlName, value: e.stlCode })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let OperatorUserList = []
|
|
|
|
|
const res6: API.DataResult = await getOperatorUserList()
|
|
|
|
|
if (res6.succeeded) {
|
|
|
|
|
OperatorUserList = []
|
|
|
|
|
res6.data.forEach((e) => {
|
|
|
|
|
OperatorUserList.push({ label: e.userName, value: e.id })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let VouchingClerkList = []
|
|
|
|
|
const res7: API.DataResult = await getVouchingClerkList()
|
|
|
|
|
if (res7.succeeded) {
|
|
|
|
@ -84,46 +58,6 @@ if (res7.succeeded) {
|
|
|
|
|
VouchingClerkList.push({ label: e.userName, value: e.id })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let SaleUserList = []
|
|
|
|
|
const res8: API.DataResult = await getSaleUserList()
|
|
|
|
|
if (res8.succeeded) {
|
|
|
|
|
SaleUserList = []
|
|
|
|
|
res8.data.forEach((e) => {
|
|
|
|
|
SaleUserList.push({ label: e.userName, value: e.id })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let CustomerServiceList = []
|
|
|
|
|
const res9: API.DataResult = await getCustomerServiceList()
|
|
|
|
|
if (res9.succeeded) {
|
|
|
|
|
CustomerServiceList = []
|
|
|
|
|
res9.data.forEach((e) => {
|
|
|
|
|
CustomerServiceList.push({ label: e.userName, value: e.id })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let OrgList = []
|
|
|
|
|
const res10: API.DataResult = await getOrgList()
|
|
|
|
|
if (res10.succeeded) {
|
|
|
|
|
OrgList = []
|
|
|
|
|
res10.data.forEach((e) => {
|
|
|
|
|
OrgList.push(e)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let OrgTree = []
|
|
|
|
|
const res11: API.DataResult = await getOrgTree()
|
|
|
|
|
if (res11.succeeded) {
|
|
|
|
|
OrgTree = []
|
|
|
|
|
res11.data.forEach((e) => {
|
|
|
|
|
OrgTree.push(e)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let notificationsData = []
|
|
|
|
|
const res12: API.DataResult = await getNotifications()
|
|
|
|
|
if (res12.succeeded) {
|
|
|
|
|
notificationsData = []
|
|
|
|
|
res12.data.forEach((e) => {
|
|
|
|
|
notificationsData.push({ label: e.name, value: e.value })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
|
{
|
|
|
|
|
title: '助记码',
|
|
|
|
@ -175,20 +109,9 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '分公司',
|
|
|
|
|
dataIndex: 'saleOrgId',
|
|
|
|
|
dataIndex: 'saleOrgName',
|
|
|
|
|
sorter: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
|
let RText = ''
|
|
|
|
|
OrgList.forEach((e) => {
|
|
|
|
|
text.forEach((item) => {
|
|
|
|
|
if (e.value == item) {
|
|
|
|
|
RText = RText == '' ? e.label : `${RText},${e.label}`
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
return RText
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '通讯地址',
|
|
|
|
@ -283,33 +206,15 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
title: '揽货人',
|
|
|
|
|
dataIndex: 'saleId',
|
|
|
|
|
dataIndex: 'sale',
|
|
|
|
|
sorter: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
|
let RText = ''
|
|
|
|
|
SaleUserList.forEach((e) => {
|
|
|
|
|
if (e.value == text) {
|
|
|
|
|
RText = e.label
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return RText
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '操作人',
|
|
|
|
|
dataIndex: 'operatorId',
|
|
|
|
|
dataIndex: 'operatorName',
|
|
|
|
|
sorter: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
|
let RText = ''
|
|
|
|
|
OperatorUserList.forEach((e) => {
|
|
|
|
|
if (e.value == text) {
|
|
|
|
|
RText = e.label
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return RText
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '单证',
|
|
|
|
@ -328,18 +233,9 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '客服',
|
|
|
|
|
dataIndex: 'customerService',
|
|
|
|
|
dataIndex: 'customerServiceName',
|
|
|
|
|
sorter: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
|
let RText = ''
|
|
|
|
|
CustomerServiceList.forEach((e) => {
|
|
|
|
|
if (e.value == text) {
|
|
|
|
|
RText = e.label
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return RText
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '提成比例',
|
|
|
|
@ -353,12 +249,7 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
sorter: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: '提成参与人',
|
|
|
|
|
// dataIndex: 'commissionUserId',
|
|
|
|
|
// sorter: true,
|
|
|
|
|
// width: 150,
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
title: '默认付费方式',
|
|
|
|
|
dataIndex: 'feeFRT',
|
|
|
|
@ -387,20 +278,7 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
sorter: true,
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: '是否可用',
|
|
|
|
|
// dataIndex: 'status',
|
|
|
|
|
// sorter: true,
|
|
|
|
|
// width: 80,
|
|
|
|
|
// customRender: ({ text }) => {
|
|
|
|
|
// if (text === 0) {
|
|
|
|
|
// return <Tag color="success">启用</Tag>
|
|
|
|
|
// } else if (text === 1) {
|
|
|
|
|
// return <Tag color="error">禁用</Tag>
|
|
|
|
|
// }
|
|
|
|
|
// return text
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
title: '备注',
|
|
|
|
|
dataIndex: 'note',
|
|
|
|
@ -546,42 +424,6 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
// field: 'pcorpId',
|
|
|
|
|
// label: '所属集团',
|
|
|
|
|
// component: 'TreeSelect',
|
|
|
|
|
//
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// componentProps: ({ formModel }) => {
|
|
|
|
|
// 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
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
field: 'Divider1',
|
|
|
|
|
component: 'Divider',
|
|
|
|
@ -633,21 +475,6 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'country',
|
|
|
|
|
// label: '国家',
|
|
|
|
|
// component: 'Select',
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
//
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// options: ClientCountryList,
|
|
|
|
|
// allowClear: true,
|
|
|
|
|
// showSearch: true,
|
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
field: 'country',
|
|
|
|
|
label: '国家',
|
|
|
|
@ -690,12 +517,15 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'saleId',
|
|
|
|
|
label: '揽货人',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
options: SaleUserList,
|
|
|
|
|
api: getSaleUserList,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
labelField: 'userName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
@ -723,12 +553,14 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'customerService',
|
|
|
|
|
label: '客服',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
options: CustomerServiceList,
|
|
|
|
|
api: getCustomerServiceList,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
labelField: 'userName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
@ -757,12 +589,14 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'operatorId',
|
|
|
|
|
label: '操作人',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
options: OperatorUserList,
|
|
|
|
|
api: getOperatorUserList,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
labelField: 'userName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
@ -785,7 +619,6 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'docName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -815,17 +648,17 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'commissionUserId',
|
|
|
|
|
label: '提成参与人',
|
|
|
|
|
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetUserList,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
labelField: 'label',
|
|
|
|
|
valueField: 'value',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
@ -937,16 +770,7 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// label: '来源明细',
|
|
|
|
|
// field: 'sourceDetailId',
|
|
|
|
|
// component: 'Select',
|
|
|
|
|
// required: false,
|
|
|
|
|
// dynamicDisabled: ({ values }) => {
|
|
|
|
|
// return !values.sourceId
|
|
|
|
|
// },
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'sourceDetailId',
|
|
|
|
|
label: '来源明细',
|
|
|
|
@ -954,13 +778,7 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'unitPrice',
|
|
|
|
|
// label: '冷藏费率',
|
|
|
|
|
// component: 'Input',
|
|
|
|
|
//
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'commissionRate',
|
|
|
|
|
label: '提成比例',
|
|
|
|
@ -975,21 +793,6 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
defaultValue: 0,
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'feeFRT',
|
|
|
|
|
// label: '默认付费方式',
|
|
|
|
|
// component: 'Select',
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
//
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// options: ClientFrtList,
|
|
|
|
|
// allowClear: true,
|
|
|
|
|
// showSearch: true,
|
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
field: 'feeFRT',
|
|
|
|
|
label: '默认付费方式',
|
|
|
|
@ -1007,20 +810,6 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// label: '开票方式',
|
|
|
|
|
// field: 'invoicingMethod',
|
|
|
|
|
// component: 'Select',
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// options: [
|
|
|
|
|
// { label: '单票明细开', value: 1 },
|
|
|
|
|
// { label: '单票合并开', value: 2 },
|
|
|
|
|
// { label: '月结开票', value: 3 },
|
|
|
|
|
// ],
|
|
|
|
|
// allowClear: true,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
field: 'invoicingMethod',
|
|
|
|
|
label: '开票方式',
|
|
|
|
@ -1062,7 +851,7 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetAllClientList(),
|
|
|
|
|
api: GetAllClientList,
|
|
|
|
|
labelField: 'shortName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
@ -1082,38 +871,6 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'auditStatus',
|
|
|
|
|
// label: '审批状态',
|
|
|
|
|
// component: 'Input',
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// defaultValue: -1,
|
|
|
|
|
// show: false,
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// field: 'auditStatusText',
|
|
|
|
|
// label: '审批状态',
|
|
|
|
|
// component: 'Input',
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
//
|
|
|
|
|
// dynamicDisabled: ({}) => {
|
|
|
|
|
// return true
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// field: 'status',
|
|
|
|
|
// label: '是否可用',
|
|
|
|
|
// component: 'Switch',
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// defaultValue: 0,
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// checkedChildren: '是',
|
|
|
|
|
// checkedValue: 0,
|
|
|
|
|
// unCheckedChildren: '否',
|
|
|
|
|
// unCheckedValue: 1,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'isShared',
|
|
|
|
|
label: '是否共享',
|
|
|
|
@ -1172,12 +929,18 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'saleOrgId',
|
|
|
|
|
label: '分公司',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
options: OrgList,
|
|
|
|
|
api: getOrgList,
|
|
|
|
|
labelField: 'label',
|
|
|
|
|
valueField: 'value',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
allowClear: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.saleOrgName = obj.label
|
|
|
|
@ -1191,13 +954,39 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'Space1',
|
|
|
|
|
component: 'Space',
|
|
|
|
|
colProps: {
|
|
|
|
|
span: 12,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '服务项目',
|
|
|
|
|
field: 'notifications1',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
api: GetServiceProjectList,
|
|
|
|
|
labelField: 'projectName',
|
|
|
|
|
valueField: 'projectCode',
|
|
|
|
|
resultField: 'data.ext',
|
|
|
|
|
allowClear: true,
|
|
|
|
|
mode: 'multiple',
|
|
|
|
|
class: 'NoLimitHeight',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '推送设置',
|
|
|
|
|
field: 'notifications',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
options: notificationsData,
|
|
|
|
|
api: getNotifications,
|
|
|
|
|
labelField: 'label',
|
|
|
|
|
valueField: 'value',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
allowClear: true,
|
|
|
|
|
mode: 'multiple',
|
|
|
|
|
class: 'NoLimitHeight',
|
|
|
|
@ -1236,15 +1025,6 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
rows: 4,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// label: '',
|
|
|
|
|
// field: 'Space1',
|
|
|
|
|
// component: 'Space',
|
|
|
|
|
//
|
|
|
|
|
// colProps: {
|
|
|
|
|
// span: 16,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const formSchema2: FormSchema[] = [
|
|
|
|
|