|
|
@ -17,7 +17,7 @@ import {
|
|
|
|
getVouchingClerkList,
|
|
|
|
getVouchingClerkList,
|
|
|
|
getSaleUserList,
|
|
|
|
getSaleUserList,
|
|
|
|
getCustomerServiceList,
|
|
|
|
getCustomerServiceList,
|
|
|
|
getDeptList,
|
|
|
|
getOrgList,
|
|
|
|
GetFeeCurrencySelectList,
|
|
|
|
GetFeeCurrencySelectList,
|
|
|
|
GetUserList,
|
|
|
|
GetUserList,
|
|
|
|
GetAllClientList,
|
|
|
|
GetAllClientList,
|
|
|
@ -100,12 +100,12 @@ if (res9.succeeded) {
|
|
|
|
CustomerServiceList.push({ label: e.userName, value: e.id })
|
|
|
|
CustomerServiceList.push({ label: e.userName, value: e.id })
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let DeptList = []
|
|
|
|
let OrgList = []
|
|
|
|
const res10: API.DataResult = await getDeptList()
|
|
|
|
const res10: API.DataResult = await getOrgList()
|
|
|
|
if (res10.succeeded) {
|
|
|
|
if (res10.succeeded) {
|
|
|
|
DeptList = []
|
|
|
|
OrgList = []
|
|
|
|
res10.data.forEach((e) => {
|
|
|
|
res10.data.forEach((e) => {
|
|
|
|
DeptList.push({ label: e.orgName, value: e.id })
|
|
|
|
OrgList.push(e)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let OrgTree = []
|
|
|
|
let OrgTree = []
|
|
|
@ -180,7 +180,7 @@ export const columns: BasicColumn[] = [
|
|
|
|
width: 150,
|
|
|
|
width: 150,
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
let RText = ''
|
|
|
|
let RText = ''
|
|
|
|
DeptList.forEach((e) => {
|
|
|
|
OrgList.forEach((e) => {
|
|
|
|
text.forEach((item) => {
|
|
|
|
text.forEach((item) => {
|
|
|
|
if (e.value == item) {
|
|
|
|
if (e.value == item) {
|
|
|
|
RText = RText == '' ? e.label : `${RText},${e.label}`
|
|
|
|
RText = RText == '' ? e.label : `${RText},${e.label}`
|
|
|
@ -1179,7 +1179,7 @@ export const formSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 8 },
|
|
|
|
colProps: { span: 8 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
options: DeptList,
|
|
|
|
options: OrgList,
|
|
|
|
allowClear: true,
|
|
|
|
allowClear: true,
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
console.log(e, obj)
|
|
|
|
console.log(e, obj)
|
|
|
|