|
|
|
@ -308,6 +308,7 @@
|
|
|
|
|
IsAvailable,
|
|
|
|
|
Create,
|
|
|
|
|
} from './api'
|
|
|
|
|
import { getUser } from '/@/api/system/user'
|
|
|
|
|
import { ApiAudit } from '/@/views/baseinfo/infoclientAudit/api'
|
|
|
|
|
import { ApiClientStakeholderAudit } from '/@/views/baseinfo/infoclient/ClientStakeholder/api'
|
|
|
|
|
|
|
|
|
@ -407,6 +408,8 @@
|
|
|
|
|
ChangeArrclientTag(false)
|
|
|
|
|
})
|
|
|
|
|
function ChangeArrclientTag(type) {
|
|
|
|
|
console.log(type, 11111111111111)
|
|
|
|
|
|
|
|
|
|
// 委托单位 国外发货人 通知人 经营单位 国内发货人 国内同行 国外同行 国内直客,国外直客、指定货发货人 个人 约主
|
|
|
|
|
const ArrclientTagList = [
|
|
|
|
|
'isController',
|
|
|
|
@ -427,7 +430,7 @@
|
|
|
|
|
field: 'ArrclientTag',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
defaultValue: ['isController'],
|
|
|
|
|
defaultValue: [],
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
api: () => {
|
|
|
|
@ -495,7 +498,7 @@
|
|
|
|
|
field: 'ArrclientTag',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
defaultValue: ['isController'],
|
|
|
|
|
defaultValue: [],
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: () => {
|
|
|
|
@ -870,10 +873,60 @@
|
|
|
|
|
IsAvailableDisabled.value = true
|
|
|
|
|
notification.success({ message: '校验成功', duration: 3 })
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
.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 : '-'}`,
|
|
|
|
|
),
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Modal.confirm({
|
|
|
|
|
title: '客户已存在',
|
|
|
|
|
content: '是否申请共享此客户?',
|
|
|
|
|
content: h('div', {}, [
|
|
|
|
|
h('p', '是否申请共享此客户?'),
|
|
|
|
|
h('p', `客户属性:${clientTagData ? clientTagData : '-'}`),
|
|
|
|
|
SaleData,
|
|
|
|
|
]),
|
|
|
|
|
class: 'ds-modal-small',
|
|
|
|
|
okText: '申请共享',
|
|
|
|
|
cancelText: '取消',
|
|
|
|
@ -881,7 +934,6 @@
|
|
|
|
|
Create({ clientId: err.clientId }).then((res) => {
|
|
|
|
|
notification.success({ message: '已发起申请!', duration: 3 })
|
|
|
|
|
})
|
|
|
|
|
// notification.success({ message: '待开发', duration: 3 })
|
|
|
|
|
},
|
|
|
|
|
onCancel() {},
|
|
|
|
|
})
|
|
|
|
@ -1047,6 +1099,12 @@
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.UserRes {
|
|
|
|
|
background: red;
|
|
|
|
|
p {
|
|
|
|
|
width: 50%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.icon-fuzhi11 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -18px;
|
|
|
|
|