feature-JimuReport-1106-yjl
sunzehua 1 month ago
commit 064e4da510

@ -50,7 +50,7 @@ export const searchFormSchema: FormSchema[] = [
field: 'cntrno',
label: '箱号',
component: 'Input',
colProps: { span: 4 },
colProps: { span: 8 },
},
{
field: 'ctnCode',

@ -33,7 +33,18 @@
})
},
beforeFetch: (p) => {
return formatParams(p, ['ctnCode'])
let Rdata = formatParams(p, ['ctnCode'])
if (!!p.cntrno) {
let data = JSON.parse(Rdata.queryCondition)
data.forEach((item, index) => {
if (item.FieldName == 'cntrno') {
console.log(item)
item.ConditionalType = 15
}
})
Rdata.queryCondition = JSON.stringify(data)
}
return Rdata
},
columns,
formConfig: {

@ -402,7 +402,7 @@ export const formSchema: FormSchema[] = [
field: 'oldContainerOwner',
label: '原箱主',
component: 'ApiSelect',
required: false,
required: true,
dynamicDisabled: false,
colProps: { span: 6 },
componentProps: ({ formModel }) => {

@ -110,7 +110,7 @@ export const searchFormSchema: FormSchema[] = [
field: 'cntrno',
label: '箱号',
component: 'Input',
colProps: { span: 4 },
colProps: { span: 8 },
},
{
field: 'ctnBizState',

@ -43,7 +43,18 @@
})
},
beforeFetch: (p) => {
return formatParams(p, ['ctnBizState', 'changeSourceId'])
let Rdata = formatParams(p, ['ctnBizState', 'changeSourceId'])
if (!!p.cntrno) {
let data = JSON.parse(Rdata.queryCondition)
data.forEach((item, index) => {
if (item.FieldName == 'cntrno') {
console.log(item)
item.ConditionalType = 15
}
})
Rdata.queryCondition = JSON.stringify(data)
}
return Rdata
},
columns,
rowSelection: { type: 'checkbox' },

@ -396,9 +396,9 @@
CustomerOrSupplier.value = 'isSupplier'
}
}
ChangeArrclientTag()
ChangeArrclientTag(false)
})
function ChangeArrclientTag() {
function ChangeArrclientTag(type) {
//
const ArrclientTagList = [
'isController',
@ -445,7 +445,9 @@
}
},
})
setFieldsValue({ ArrclientTag: ['isController'] })
if (type) {
setFieldsValue({ ArrclientTag: ['isController'] })
}
} else if (CustomerOrSupplier.value == 'isSupplier') {
updateSchema({
label: '客户属性',
@ -477,7 +479,9 @@
}
},
})
setFieldsValue({ ArrclientTag: [] })
if (type) {
setFieldsValue({ ArrclientTag: [] })
}
} else if (CustomerOrSupplier.value == 'isCustomerAndisSupplier') {
updateSchema({
label: '客户属性',
@ -503,12 +507,14 @@
}
},
})
setFieldsValue({ ArrclientTag: ['isController'] })
if (type) {
setFieldsValue({ ArrclientTag: ['isController'] })
}
}
}
function ChangeCustomerOrSupplier() {
setFieldsValue({ ArrclientTag: [] })
ChangeArrclientTag()
// setFieldsValue({ ArrclientTag: [] })
ChangeArrclientTag(true)
}
watch(activeKey, (nval, oval) => {
if (Number(nval) > 2 && !rowId.value) {
@ -763,7 +769,6 @@
} else if (res.data.isSupplier) {
CustomerOrSupplier.value = 'isSupplier'
}
await setFieldsValue({
...res.data,
})

Loading…
Cancel
Save