|
|
|
@ -867,57 +867,58 @@
|
|
|
|
|
}
|
|
|
|
|
IsAvailable({
|
|
|
|
|
...values,
|
|
|
|
|
...getFieldsValue1(),
|
|
|
|
|
...getFieldsValue(),
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
IsAvailableDisabled.value = true
|
|
|
|
|
notification.success({ message: '校验成功', duration: 3 })
|
|
|
|
|
})
|
|
|
|
|
.catch(async (err) => {
|
|
|
|
|
const clientRes = await getCodeGoodsTypeInfo({ id: unref(rowId) })
|
|
|
|
|
let clientTagData: any = ''
|
|
|
|
|
if (clientRes.data.clientTag) {
|
|
|
|
|
values.clientTag = {}
|
|
|
|
|
let ClientTag = await getDictOption('infoclient-ArrclientTag')
|
|
|
|
|
Object.keys(clientRes.data.clientTag).forEach((item, index) => {
|
|
|
|
|
ClientTag.forEach((e) => {
|
|
|
|
|
if (item == e.value && clientRes.data.clientTag[item]) {
|
|
|
|
|
clientTagData = clientTagData == '' ? e.name : `${clientTagData},${e.name}`
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let SaleData: any = ''
|
|
|
|
|
if (clientRes.data.saleId) {
|
|
|
|
|
const UserRes = await getUser({ id: clientRes.data.saleId })
|
|
|
|
|
SaleData = h('div', { class: 'UserRes' }, [
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
`销售名称:${UserRes.data.userName ? UserRes.data.userName : '-'} `,
|
|
|
|
|
),
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
` 英文名称:${UserRes.data.userEnName ? UserRes.data.userEnName : '-'}`,
|
|
|
|
|
),
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
`联系方式:${UserRes.data.officePhone ? UserRes.data.officePhone : '-'} `,
|
|
|
|
|
),
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
`QQ:${UserRes.data.QQ ? UserRes.data.QQ : '-'}`,
|
|
|
|
|
),
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
`邮箱:${UserRes.data.email ? UserRes.data.email : '-'}`,
|
|
|
|
|
),
|
|
|
|
|
])
|
|
|
|
|
if (rowId.value) {
|
|
|
|
|
const clientRes = await getCodeGoodsTypeInfo({ id: unref(rowId) })
|
|
|
|
|
if (clientRes.data.clientTag) {
|
|
|
|
|
values.clientTag = {}
|
|
|
|
|
let ClientTag = await getDictOption('infoclient-ArrclientTag')
|
|
|
|
|
Object.keys(clientRes.data.clientTag).forEach((item, index) => {
|
|
|
|
|
ClientTag.forEach((e) => {
|
|
|
|
|
if (item == e.value && clientRes.data.clientTag[item]) {
|
|
|
|
|
clientTagData = clientTagData == '' ? e.name : `${clientTagData},${e.name}`
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (clientRes.data.saleId) {
|
|
|
|
|
const UserRes = await getUser({ id: clientRes.data.saleId })
|
|
|
|
|
SaleData = h('div', { class: 'UserRes' }, [
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
`销售名称:${UserRes.data.userName ? UserRes.data.userName : '-'} `,
|
|
|
|
|
),
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
` 英文名称:${UserRes.data.userEnName ? UserRes.data.userEnName : '-'}`,
|
|
|
|
|
),
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
`联系方式:${UserRes.data.officePhone ? UserRes.data.officePhone : '-'} `,
|
|
|
|
|
),
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
`QQ:${UserRes.data.QQ ? UserRes.data.QQ : '-'}`,
|
|
|
|
|
),
|
|
|
|
|
h(
|
|
|
|
|
'span',
|
|
|
|
|
{ style: { width: '50%', display: 'inline-block' } },
|
|
|
|
|
`邮箱:${UserRes.data.email ? UserRes.data.email : '-'}`,
|
|
|
|
|
),
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Modal.confirm({
|
|
|
|
|