|
|
@ -10,6 +10,12 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'taskNo',
|
|
|
|
|
|
|
|
label: '任务流水号',
|
|
|
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'goodsCode',
|
|
|
|
field: 'goodsCode',
|
|
|
|
label: '接收人',
|
|
|
|
label: '接收人',
|
|
|
@ -41,30 +47,18 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'taskType',
|
|
|
|
field: 'taskType',
|
|
|
|
label: '任务类型',
|
|
|
|
label: '任务类型',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'Select',
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: () => {
|
|
|
|
options: typeData.value,
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
fieldNames: {
|
|
|
|
GetTaskPlatEnumDict().then((res) => {
|
|
|
|
label: 'name',
|
|
|
|
let arr = []
|
|
|
|
value: 'code'
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
if(item.type==='TASK_TYPE'){
|
|
|
|
|
|
|
|
arr = item.data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
res.selectData = arr
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
labelField: 'name',
|
|
|
|
showSearch: true,
|
|
|
|
valueField: 'code',
|
|
|
|
|
|
|
|
immediate:false,
|
|
|
|
|
|
|
|
resultField: 'selectData',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -74,30 +68,18 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'taskSource',
|
|
|
|
field: 'taskSource',
|
|
|
|
label: '任务来源',
|
|
|
|
label: '任务来源',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'Select',
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: () => {
|
|
|
|
options: sourceData.value,
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
fieldNames: {
|
|
|
|
GetTaskPlatEnumDict().then((res) => {
|
|
|
|
label: 'name',
|
|
|
|
let arr = []
|
|
|
|
value: 'code'
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
if(item.type==='SOURCE'){
|
|
|
|
|
|
|
|
arr = item.data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
res.selectData = arr
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
labelField: 'name',
|
|
|
|
showSearch: true,
|
|
|
|
valueField: 'code',
|
|
|
|
|
|
|
|
immediate:false,
|
|
|
|
|
|
|
|
resultField: 'selectData',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -107,30 +89,18 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'taskCategory',
|
|
|
|
field: 'taskCategory',
|
|
|
|
label: '任务分类',
|
|
|
|
label: '任务分类',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'Select',
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: () => {
|
|
|
|
options: categoryData.value,
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
fieldNames: {
|
|
|
|
GetTaskPlatEnumDict().then((res) => {
|
|
|
|
label: 'name',
|
|
|
|
let arr = []
|
|
|
|
value: 'code'
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
if(item.type==='CATEGORY'){
|
|
|
|
|
|
|
|
arr = item.data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
res.selectData = arr
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
labelField: 'name',
|
|
|
|
showSearch: true,
|
|
|
|
valueField: 'code',
|
|
|
|
|
|
|
|
immediate:false,
|
|
|
|
|
|
|
|
resultField: 'selectData',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -140,30 +110,18 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'status',
|
|
|
|
field: 'status',
|
|
|
|
label: '任务状态',
|
|
|
|
label: '任务状态',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'Select',
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: () => {
|
|
|
|
options: statusData.value,
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
fieldNames: {
|
|
|
|
GetTaskPlatEnumDict().then((res) => {
|
|
|
|
label: 'name',
|
|
|
|
let arr = []
|
|
|
|
value: 'code'
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
if(item.type==='STATUS'){
|
|
|
|
|
|
|
|
arr = item.data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
res.selectData = arr
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
labelField: 'name',
|
|
|
|
showSearch: true,
|
|
|
|
valueField: 'code',
|
|
|
|
|
|
|
|
immediate:false,
|
|
|
|
|
|
|
|
resultField: 'selectData',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -287,7 +245,30 @@ export const columns: BasicColumn[] = [
|
|
|
|
ellipsis: true
|
|
|
|
ellipsis: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
export const typeData = ref([]) as any
|
|
|
|
|
|
|
|
export const statusData = ref([]) as any
|
|
|
|
|
|
|
|
export const sourceData = ref([]) as any
|
|
|
|
|
|
|
|
export const categoryData = ref([]) as any
|
|
|
|
|
|
|
|
function init() {
|
|
|
|
|
|
|
|
GetTaskPlatEnumDict().then((res) => {
|
|
|
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
if (item.type === 'TASK_TYPE') {
|
|
|
|
|
|
|
|
typeData.value = item.data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item.type === 'STATUS') {
|
|
|
|
|
|
|
|
statusData.value = item.data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item.type === 'CATEGORY') {
|
|
|
|
|
|
|
|
categoryData.value = item.data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item.type === 'SOURCE') {
|
|
|
|
|
|
|
|
sourceData.value = item.data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(typeData.value)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
init()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|