Merge branch 'master' into zm

zm
张萌 2 years ago
commit 15d9994b15

@ -113,7 +113,7 @@
:record-id="detailData.flow_id" :record-id="detailData.flow_id"
:owner-user-id="detailData.owner_user_id" :owner-user-id="detailData.owner_user_id"
class="examine-info" class="examine-info"
examine-type="crm_contract" examine-type="crm_business"
@on-handle="examineHandle"/> @on-handle="examineHandle"/>
<flexbox class="d-container-bd" align="stretch"> <flexbox class="d-container-bd" align="stretch">
@ -177,7 +177,7 @@ import {
crmBusinessAdvanceAPI, crmBusinessAdvanceAPI,
crmBusinessStatusByIdAPI crmBusinessStatusByIdAPI
} from '@/api/crm/business' } from '@/api/crm/business'
import { userListAPI } from '@/api/common'
import SlideView from '@/components/SlideView' import SlideView from '@/components/SlideView'
import CRMDetailHead from '../components/CRMDetailHead' import CRMDetailHead from '../components/CRMDetailHead'
import Activity from '../components/Activity' // import Activity from '../components/Activity' //
@ -190,7 +190,7 @@ import RelativeTeam from '../components/RelativeTeam' // 团队成员
import RelativeProduct from '../components/RelativeProduct' // import RelativeProduct from '../components/RelativeProduct' //
import RelativeFiles from '../components/RelativeFiles' // import RelativeFiles from '../components/RelativeFiles' //
import RelativePrint from '../components/RelativePrint' // import RelativePrint from '../components/RelativePrint' //
import ExamineInfo from '@/components/Examine/ExamineInfo'
import CRMAllCreate from '../components/CRMAllCreate' // import CRMAllCreate from '../components/CRMAllCreate' //
import DetailMixin from '../mixins/Detail' import DetailMixin from '../mixins/Detail'
import { separator } from '@/filters/vueNumeralFilter/filters' import { separator } from '@/filters/vueNumeralFilter/filters'
@ -211,6 +211,7 @@ export default {
RelativeProduct, RelativeProduct,
RelativeFiles, RelativeFiles,
RelativePrint, RelativePrint,
ExamineInfo,
CRMAllCreate CRMAllCreate
}, },
mixins: [DetailMixin], mixins: [DetailMixin],
@ -241,6 +242,9 @@ export default {
data() { data() {
return { return {
// loading // loading
userOptions: [],
value: '',
inputValue: '',
loading: false, loading: false,
crmType: 'business', crmType: 'business',
headDetails: [ headDetails: [
@ -397,11 +401,36 @@ export default {
}] }]
} }
}, },
mounted() {}, mounted() {
this.getUserList()
},
methods: { methods: {
/** /**
* 详情 * 详情
*/ */
getUserList() {
this.userLoading = true
let request = userListAPI
let params = {}
if (this.userRequest) {
request = this.userRequest
params = this.userParams || {}
} else {
params = { pageType: 0 }
}
request(params)
.then(res => {
const userList = res.data.list || res.data
console.log(userList)
this.userOptions = userList.map(item => {
return item
})
this.userLoading = false
})
.catch(() => {
this.userLoading = false
})
},
getDetial() { getDetial() {
this.firstContactsId = '' this.firstContactsId = ''
this.loading = true this.loading = true
@ -566,21 +595,52 @@ export default {
} }
/** 输单 和 无效 */ /** 输单 和 无效 */
if (item.type == 2 || item.type == 3) { if (item.type == 2 || item.type == 3) {
var message = '请填写' + item.name + '原因' var message = '请填写' + item.name + '原因:'
var title = item.name + '原因' var title = item.name + '原因'
// this.$prompt(message, title, {
// inputType: 'text',
// confirmButtonText: '',
// cancelButtonText: ''
// })
const h = this.$createElement const h = this.$createElement
const msgBoxContent = h('div', [
h('p', message),
h('textarea', {
attrs: {
class: 'el-textarea__inner',
type: 'textarea',
autocomplete: 'off',
rows: 4
},
value: this.inputValue
}),
h('p', '审核人:'),
h('el-select', {
ref: 'selectView',
props: {
clearable: true,
filterable: true,
placeholder: '请选择',
value: this.value
},
on: {
input: val => {
this.value = val
console.log(val)
},
change: e => {
this.value = e
this.$refs['selectView'].value = e
}
}
}, this.userOptions.map(option => {
return h('el-option', {
props: {
value: option.id,
label: option.username
}
})
}))
])
this.$msgbox({ this.$msgbox({
title: title, title: title,
message: h('p', message, [ message: msgBoxContent,
h('i', { style: 'color: teal' }, 'VNode'),
h('<xh-user-cell :radio="false" :value="baseFrom.adminUsers" @value-change="userChange" />')
]),
showCancelButton: true, showCancelButton: true,
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消' cancelButtonText: '取消'
@ -634,6 +694,16 @@ export default {
.catch(() => {}) .catch(() => {})
} }
}, },
/**
* 审核操作
*/
examineHandle(data) {
// 1 2 4
if (data.type == 1) {
this.getDetial()
}
this.$emit('handle', { type: 'examine' })
},
/** /**
* 新建 * 新建
*/ */
@ -652,6 +722,12 @@ export default {
console.log('ok') console.log('ok')
this.$emit('handle', { type: 'save-success' }) this.$emit('handle', { type: 'save-success' })
this.getDetial() this.getDetial()
},
/**
* 刷新value的值
*/
updateVal(val) {
this.value = val
} }
} }
} }
@ -870,5 +946,9 @@ export default {
.state-handel-item:hover { .state-handel-item:hover {
background-color: #f7f8fa; background-color: #f7f8fa;
} }
.el-textarea__inner{
width: max-content;
border: 1px solid #C0C4CC;
}
} }
</style> </style>

@ -32,6 +32,7 @@
@close="hideView"> @close="hideView">
<template slot="name"> <template slot="name">
<i v-if="detailData.is_lock == 1" class="wk wk-circle-password" /> <i v-if="detailData.is_lock == 1" class="wk wk-circle-password" />
<el-tooltip v-if="!isSeasDetail" :content="detailData.star == 0 ? '添加关注' : '取消关注'" effect="dark" placement="top"> <el-tooltip v-if="!isSeasDetail" :content="detailData.star == 0 ? '添加关注' : '取消关注'" effect="dark" placement="top">
<i <i
:class="{active: detailData.star != 0}" :class="{active: detailData.star != 0}"
@ -45,12 +46,11 @@
v-if="detailData.flow_id" v-if="detailData.flow_id"
:id="id" :id="id"
:record-id="detailData.flow_id" :record-id="detailData.flow_id"
:owner-user-id="detailData.owner_user_id" :owner-user-id="1"
class="examine-info" class="examine-info"
examine-type="crm_customer_check" examine-type="crm_customer_check"
@on-handle="examineHandle"/> @on-handle="examineHandle"/>
<flexbox <flexbox
class="d-container-bd" class="d-container-bd"
align="stretch"> align="stretch">
@ -131,7 +131,7 @@ import RelativeHandle from '../components/RelativeHandle' // 相关操作
import RelativeTeam from '../components/RelativeTeam' // import RelativeTeam from '../components/RelativeTeam' //
import RelativeVisit from '../components/RelativeVisit' // 访 import RelativeVisit from '../components/RelativeVisit' // 访
import RelativeInvoice from '../components/RelativeInvoice' // import RelativeInvoice from '../components/RelativeInvoice' //
import ExamineInfo from '@/components/Examine/ExamineInfo'
import CRMAllCreate from '../components/CRMAllCreate' // import CRMAllCreate from '../components/CRMAllCreate' //
import DetailMixin from '../mixins/Detail' import DetailMixin from '../mixins/Detail'
@ -153,7 +153,8 @@ export default {
RelativeTeam, RelativeTeam,
RelativeVisit, RelativeVisit,
CRMAllCreate, CRMAllCreate,
RelativeInvoice RelativeInvoice,
ExamineInfo
}, },
mixins: [DetailMixin], mixins: [DetailMixin],
props: { props: {
@ -184,6 +185,7 @@ export default {
data() { data() {
return { return {
// loading // loading
flow_id: 17,
loading: false, loading: false,
crmType: 'customer', crmType: 'customer',
headDetails: [ headDetails: [
@ -365,8 +367,19 @@ export default {
} }
}, },
watch: {}, watch: {},
mounted() {}, mounted() {
},
methods: { methods: {
/**
* 审核操作
*/
examineHandle(data) {
// 1 2 4
if (data.type == 1) {
this.getDetial()
}
this.$emit('handle', { type: 'examine' })
},
/** /**
* 详情 * 详情
*/ */

@ -279,7 +279,6 @@ export default {
refreshNum() { refreshNum() {
for (let index = 0; index < this.leftSides.length; index++) { for (let index = 0; index < this.leftSides.length; index++) {
const element = this.leftSides[index] const element = this.leftSides[index]
console.log(this.leftSides[index])
if (this.messageNum.hasOwnProperty(element.infoType)) { if (this.messageNum.hasOwnProperty(element.infoType)) {
element.num = this.messageNum[element.infoType] || 0 element.num = this.messageNum[element.infoType] || 0
element.hidden = false element.hidden = false

Loading…
Cancel
Save