审批通过按钮

master_merge
戴余标 2 years ago
parent cec4ac45ee
commit 91c3b62ea3

@ -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">
@ -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],
@ -424,7 +425,6 @@ export default {
this.userOptions = userList.map(item => { this.userOptions = userList.map(item => {
return item return item
}) })
console.log(this.userOptions)
this.userLoading = false this.userLoading = false
}) })
.catch(() => { .catch(() => {
@ -694,6 +694,16 @@ export default {
.catch(() => {}) .catch(() => {})
} }
}, },
/**
* 审核操作
*/
examineHandle(data) {
// 1 2 4
if (data.type == 1) {
this.getDetial()
}
this.$emit('handle', { type: 'examine' })
},
/** /**
* 新建 * 新建
*/ */

@ -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