|
|
|
@ -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,
|
|
|
|
|
})
|
|
|
|
|