|
|
|
@ -867,15 +867,17 @@
|
|
|
|
|
}
|
|
|
|
|
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 = ''
|
|
|
|
|
let SaleData: any = ''
|
|
|
|
|
if (rowId.value) {
|
|
|
|
|
const clientRes = await getCodeGoodsTypeInfo({ id: unref(rowId) })
|
|
|
|
|
if (clientRes.data.clientTag) {
|
|
|
|
|
values.clientTag = {}
|
|
|
|
|
let ClientTag = await getDictOption('infoclient-ArrclientTag')
|
|
|
|
@ -887,8 +889,6 @@
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let SaleData: any = ''
|
|
|
|
|
if (clientRes.data.saleId) {
|
|
|
|
|
const UserRes = await getUser({ id: clientRes.data.saleId })
|
|
|
|
|
SaleData = h('div', { class: 'UserRes' }, [
|
|
|
|
@ -919,6 +919,7 @@
|
|
|
|
|
),
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Modal.confirm({
|
|
|
|
|
title: '客户已存在',
|
|
|
|
|