客户供应商业务来源调整 以及 提单确认部分代码

feature-JimuReport-1106-yjl
张同海 4 weeks ago
parent 41338689a7
commit 9962976c26

@ -926,79 +926,43 @@ export const formSchema: FormSchema[] = [
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: (En) => {
return {
api: GetClientSourceSelectList,
labelField: 'sourceName',
valueField: 'id',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: async (e, obj) => {
const { formModel, formActionType } = En
if (e && obj) {
formModel.sourceId = obj.value
formModel.sourceName = obj.label
}
if (!e && !obj) {
formModel.sourceId = ''
formModel.sourceName = ''
}
if (e) {
const FnsourceDetailId: any = await GetClientSourceDetailSelectList({
id: e,
})
if (FnsourceDetailId.succeeded) {
sourceDetailId.value.splice(0)
FnsourceDetailId.data.forEach((e) => {
sourceDetailId.value.push({ label: e.detailName, value: e.id })
})
}
if (formActionType) {
formModel.sourceDetailId = ''
}
}
},
}
},
},
// {
// label: '业务来源',
// field: 'sourceId',
// component: 'ApiSelect',
// required: false,
// dynamicDisabled: false,
// colProps: { span: 4 },
// componentProps: ({ formActionType, formModel }) => {
// return {
// allowClear: true,
// showSearch: true,
// option: optionsStore.getOptionsByCode('GetClientSourceSelectList'),
// labelField: 'sourceName',
// valueField: 'id',
// filterOption: (input: string, option: any) => {
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
// },
// onChange: async (e, obj) => {
// if (e && obj) {
// formModel.sourceId = obj.value
// formModel.sourceName = obj.label
// }
// if (!e && !obj) {
// formModel.sourceId = ''
// formModel.sourceName = ''
// }
// if (e) {
// if (formActionType) {
// const { updateSchema } = formActionType
// let Arr: any = []
// await GetClientSourceDetailSelectList({ id: e }).then((res) => {
// res.data.forEach((item) => {
// Arr.push({ label: item.detailName, value: item.id })
// })
// })
// updateSchema({
// label: '来源明细',
// field: 'sourceDetailId',
// component: 'Select',
// required: false,
// dynamicDisabled: ({ values }) => {
// return !values.sourceId
// },
// colProps: { span: 4 },
// componentProps: ({ formModel }) => {
// return {
// allowClear: true,
// options: Arr,
// showSearch: true,
// filterOption: (input: string, option: any) => {
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
// },
// onChange: (e, obj) => {
// if (e && obj) {
// formModel.sourceDetailId = obj.value
// formModel.sourceDetailName = obj.label
// }
// if (!e && !obj) {
// formModel.sourceDetailId = ''
// formModel.sourceDetailName = ''
// }
// },
// }
// },
// })
// }
// }
// formModel.sourceDetailId = ''
// },
// }
// },
// },
// 来源明细Name
{
label: '',
@ -1011,8 +975,35 @@ export const formSchema: FormSchema[] = [
field: 'sourceDetailId',
component: 'Select',
required: false,
colProps: { span: 4 },
dynamicDisabled: ({ values }) => {
return !values.sourceId
},
componentProps: (En) => {
return {
allowClear: true,
options: sourceDetailId.value,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: (e, obj) => {
const { formModel } = En
if (e && obj) {
formModel.sourceDetailId = obj.value
formModel.sourceDetailName = obj.label
}
if (!e && !obj) {
formModel.sourceDetailId = ''
formModel.sourceDetailName = ''
}
},
onEdit: () => {
const { formActionType } = En
formActionType ? formActionType.linkageForm(En) : null
},
}
},
},
{

@ -29,7 +29,6 @@ export const formSchema5: FormSchema[] = [
label: '分提单号',
field: 'hblno',
component: 'Input',
required: true,
defaultValue: null,
colProps: { span: 12 },
},

@ -31,24 +31,30 @@
</div>
<div class="bottom">
<a-steps :current="1" class="steps">
<a-step>
<a-step v-for="item in activeSteps" :key="item.id">
<template #title>{{ item.typeName }}</template>
<template #description>
<a-button size="Small">手动确认</a-button>
</template>
</a-step>
<!-- <a-step>
<template #title>客户已确认</template>
<!-- <template #description>
<template #description>
<span>This is a description.</span>
</template> -->
</template>
</a-step>
<a-step>
<template #title>国外代理确认中</template>
<!-- <template #description>
<template #description>
<span>This is a description.</span>
</template> -->
</template>
</a-step>
<a-step>
<template #title>操作确认</template>
</a-step>
<a-step>
<template #title>发起截单</template>
</a-step>
</a-step> -->
</a-steps>
</div>
</div>
@ -65,6 +71,7 @@
})
const tasksList = ref([])
const activeId = ref(null)
const activeSteps = ref([])
async function init() {
let ApiData = {
businessId: businessId.value,
@ -81,6 +88,7 @@
const RefInfo = ref<any>(null)
async function ClickTasksUnit(data) {
activeId.value = data.id
activeSteps.value = data.steps
RefInfo.value.dloading = true
let res: any = null
if (data.isMainBL) {

Loading…
Cancel
Save