Commit 1c7e5845 by linjinhong

Merge remote-tracking branch 'origin/dev'

parents 9ae51498 e963395d
...@@ -32,6 +32,7 @@ declare module 'vue' { ...@@ -32,6 +32,7 @@ declare module 'vue' {
ElImage: typeof import('element-plus/es')['ElImage'] ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput'] ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink']
ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption'] ElOption: typeof import('element-plus/es')['ElOption']
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
v-model="editForm" v-model="editForm"
:config="formConfig" :config="formConfig"
form-item-width="100%" form-item-width="100%"
labelWidth="125"
> >
</CustomizeForm> </CustomizeForm>
...@@ -205,6 +206,7 @@ const formConfig = computed<IFormConfig[]>(() => [ ...@@ -205,6 +206,7 @@ const formConfig = computed<IFormConfig[]>(() => [
}, },
], ],
}, },
{ {
prop: 'companyId', prop: 'companyId',
type: 'select', type: 'select',
...@@ -223,6 +225,9 @@ const formConfig = computed<IFormConfig[]>(() => [ ...@@ -223,6 +225,9 @@ const formConfig = computed<IFormConfig[]>(() => [
if (value.code === 'UINUIN') { if (value.code === 'UINUIN') {
editFormRef.value?.refashConfig(['uinuinWarehouseId']) editFormRef.value?.refashConfig(['uinuinWarehouseId'])
editFormRef.value?.clearValidate() editFormRef.value?.clearValidate()
} else if (value.code === 'YW') {
editFormRef.value?.refashConfig(['companyWarehouseCode'])
editFormRef.value?.clearValidate()
} else { } else {
editFormRef.value?.refashConfig([]) editFormRef.value?.refashConfig([])
editFormRef.value?.clearValidate() editFormRef.value?.clearValidate()
...@@ -233,7 +238,7 @@ const formConfig = computed<IFormConfig[]>(() => [ ...@@ -233,7 +238,7 @@ const formConfig = computed<IFormConfig[]>(() => [
rules: [ rules: [
{ {
required: true, required: true,
message: '请选择仓库名称', message: '请选择物流公司',
}, },
], ],
}, },
...@@ -255,28 +260,29 @@ const formConfig = computed<IFormConfig[]>(() => [ ...@@ -255,28 +260,29 @@ const formConfig = computed<IFormConfig[]>(() => [
}, },
], ],
}, },
// { {
// prop: 'ruleId', prop: 'companyWarehouseCode',
// type: 'select', type: 'select',
// label: '申报规则', label: '物流仓库编码',
// fixed: 'last', isIncludeProp: true,
// attrs: { attrs: {
// placeholder: '请选择申报规则', placeholder: '请选择物流仓库编码',
// label: 'name', options: [
// value: 'id', { label: 'LAX01', value: 'LAX01' },
// options: [...(ruleNameList.value || [])], { label: 'NJC01', value: 'NJC01' },
// onChange: (value: { name: string; id: string | number }) => { { label: 'ORD01', value: 'ORD01' },
// editForm.value.ruleRef.ruleId = value.id { label: 'MIA01', value: 'MIA01' },
// editForm.value.ruleRef.ruleName = value.name { label: 'DFW01', value: 'DFW01' },
// }, ],
// }, },
// rules: [ rules: [
// { {
// required: true, required: true,
// message: '请选择申报规则', message: '请选择物流仓库编码',
// }, },
// ], ],
// }, },
{ {
prop: 'serviceCode', prop: 'serviceCode',
type: 'input', type: 'input',
...@@ -599,11 +605,13 @@ async function editWay(item: LogisticsMethod) { ...@@ -599,11 +605,13 @@ async function editWay(item: LogisticsMethod) {
console.log(493, editForm.value) console.log(493, editForm.value)
dialogVisible.value = true dialogVisible.value = true
if (item.uinuinWarehouseId) {
nextTick(() => { nextTick(() => {
if (item.uinuinWarehouseId) {
editFormRef.value?.refashConfig(['uinuinWarehouseId']) editFormRef.value?.refashConfig(['uinuinWarehouseId'])
}) } else if (item.companyWarehouseCode) {
editFormRef.value?.refashConfig(['companyWarehouseCode'])
} }
})
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }
......
...@@ -13,6 +13,7 @@ export interface LogisticsMethod { ...@@ -13,6 +13,7 @@ export interface LogisticsMethod {
ruleId?: string | number ruleId?: string | number
ruleList?: ruleRefObj[] ruleList?: ruleRefObj[]
uinuinWarehouseId?: number | string | null uinuinWarehouseId?: number | string | null
companyWarehouseCode?: number | string | null
} }
export interface LogisticsMethodList { export interface LogisticsMethodList {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment