|
|
|
@ -148,7 +148,7 @@ const FnsaleId: any = await GetSaleList()
|
|
|
|
|
if (FnsaleId.succeeded) {
|
|
|
|
|
ListData.saleId = []
|
|
|
|
|
FnsaleId.data.forEach((e) => {
|
|
|
|
|
ListData.saleId.push({ ...e, label: `${e.userName}/${e.userCode}`, value: e.id })
|
|
|
|
|
ListData.saleId.push({ ...e, label: e.userName, value: e.id })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1128,7 +1128,7 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '尺寸',
|
|
|
|
|
title: '尺码',
|
|
|
|
|
dataIndex: 'cbm',
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
@ -1744,26 +1744,6 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '所属分部',
|
|
|
|
|
field: 'saleOrgId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
options: ListData.saleDeptId,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
console.log(e, obj)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '委托单位Nmae',
|
|
|
|
|
field: 'customerName',
|
|
|
|
@ -2142,36 +2122,91 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
return RData
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
onChange: async (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
console.log(e, obj, '揽货人!!!!!!!!!!')
|
|
|
|
|
let saleDeptIdArr: any = []
|
|
|
|
|
formModel.sale = obj.label
|
|
|
|
|
formModel.saleOrgId = obj.defaultOrgId
|
|
|
|
|
formModel.saleDeptId = obj.deptId
|
|
|
|
|
if (formActionType) {
|
|
|
|
|
ListData.saleDeptId = []
|
|
|
|
|
obj.saleOrgList.forEach((item) => {
|
|
|
|
|
ListData.saleDeptId.push({ label: item.orgName, value: item.orgId })
|
|
|
|
|
})
|
|
|
|
|
if (obj.defaultOrgId) {
|
|
|
|
|
await GetDeptList({ orgId: obj.defaultOrgId }).then((res) => {
|
|
|
|
|
console.log(res, '所属分部 查询 所属部门')
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
saleDeptIdArr.push({ label: item.orgName, value: item.id })
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const { updateSchema } = formActionType
|
|
|
|
|
updateSchema({
|
|
|
|
|
label: '所属分部',
|
|
|
|
|
field: 'saleOrgId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
options: ListData.saleDeptId,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
updateSchema([
|
|
|
|
|
{
|
|
|
|
|
label: '所属分部',
|
|
|
|
|
field: 'saleOrgId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
options: ListData.saleDeptId,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
formModel.saleDeptId = ''
|
|
|
|
|
GetDeptList({ orgId: e }).then((res) => {
|
|
|
|
|
console.log(res, '所属分部 查询 所属部门')
|
|
|
|
|
let Arr: any = []
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
Arr.push({ label: item.orgName, value: item.id })
|
|
|
|
|
})
|
|
|
|
|
updateSchema({
|
|
|
|
|
label: '所属部门',
|
|
|
|
|
field: 'saleDeptId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
options: Arr,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
console.log(e, obj)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '所属部门',
|
|
|
|
|
field: 'saleDeptId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
options: saleDeptIdArr,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formModel.sale = ''
|
|
|
|
@ -2180,6 +2215,26 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '所属分部',
|
|
|
|
|
field: 'saleOrgId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
required: false,
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
dynamicDisabled: ({ values }) => {
|
|
|
|
|
return !values.saleId
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '所属部门',
|
|
|
|
|
field: 'saleDeptId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
required: false,
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
dynamicDisabled: ({ values }) => {
|
|
|
|
|
return !values.saleOrgId
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '客服员',
|
|
|
|
|
field: 'customerService',
|
|
|
|
@ -2289,23 +2344,7 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '所属部门',
|
|
|
|
|
field: 'saleDeptId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
options: ListData.saleDeptId,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
// field: 'czRemark',
|
|
|
|
|
// label: '操作备注',
|
|
|
|
@ -3339,7 +3378,7 @@ export const cargoInfoFormSchema2: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '尺寸',
|
|
|
|
|
label: '尺码',
|
|
|
|
|
field: 'cbm',
|
|
|
|
|
component: 'InputNumber',
|
|
|
|
|
required: false,
|
|
|
|
@ -3512,7 +3551,7 @@ export const cargoInfoFormSchema2: FormSchema[] = [
|
|
|
|
|
// colProps: { span: 12 },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// label: '尺寸',
|
|
|
|
|
// label: '尺码',
|
|
|
|
|
// field: 'cbm',
|
|
|
|
|
// component: 'InputNumber',
|
|
|
|
|
// required: false,
|
|
|
|
@ -4338,7 +4377,7 @@ export const goodsTablecolumns: BasicColumn[] = [
|
|
|
|
|
width: 80,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '尺寸',
|
|
|
|
|
title: '尺码',
|
|
|
|
|
dataIndex: 'size',
|
|
|
|
|
align: 'left',
|
|
|
|
|
editRow: true,
|
|
|
|
|