|
@@ -139,6 +139,7 @@
|
|
|
<!-- 居间 -->
|
|
|
<div v-if="mainData.type === '居间'">
|
|
|
<contactList v-if="siteid === 'HY' && mainData && tool.checkAuth($route.name,'contact')" :data="mainData"></contactList>
|
|
|
+ <linkedOrder v-else-if="siteid === 'HY' && mainData && tool.checkAuth($route.name,'linkedOrder')"></linkedOrder>
|
|
|
<productClassList v-else :data="mainData" :isLeader="isLeader" ref="classList" @priceChange="queryMainData($route.query.id)">
|
|
|
<addClass class="inline-16" v-if="tool.checkAuth($route.name,'productClassManage')" :disabled="mainData.status != '新建' || !isLeader" :typeName="mainData.type" slot="addProduct" @onSuccess="$refs.classList.listData()" ref="addProduct" @closeDrawer="closeDrawer"/>
|
|
|
<template v-slot:edit="scope">
|
|
@@ -237,26 +238,35 @@
|
|
|
<BaseInfo v-else :detailInfo="detailInfo"/>
|
|
|
</div>
|
|
|
<div v-if="mainData.type == '居间'">
|
|
|
- <BaseInfo v-if="siteid !== 'HY'" :detailInfo="detailInfo"/>
|
|
|
+ <div v-if="siteid == 'HY' && tool.checkAuth($route.name,'linkedOrder')">
|
|
|
+ <linkedOrder></linkedOrder>
|
|
|
+ </div>
|
|
|
+ <BaseInfo v-else :detailInfo="detailInfo"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div slot="slot3">
|
|
|
<div v-if="mainData.type === '居间' && siteid !== 'HY'">
|
|
|
<contactList v-if="mainData && tool.checkAuth($route.name,'contact')" :data="mainData"></contactList>
|
|
|
+ <linkedOrder v-else-if="tool.checkAuth($route.name,'linkedOrder')"></linkedOrder>
|
|
|
</div>
|
|
|
<div v-if="mainData.type == '框架' || mainData.type == '直销'">
|
|
|
<priceDifference v-if="siteid == 'HY' && tool.checkAuth($route.name,'brokerageFeeEntrySet')" :data="mainData"></priceDifference>
|
|
|
<BaseInfo v-else :detailInfo="detailInfo"/>
|
|
|
</div>
|
|
|
<div v-if="mainData.type == '项目'">
|
|
|
- <BaseInfo :detailInfo="detailInfo"/>
|
|
|
+ <linkedOrder v-if="tool.checkAuth($route.name,'linkedOrder')"></linkedOrder>
|
|
|
+ <BaseInfo v-else :detailInfo="detailInfo"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div slot="slot4">
|
|
|
<div v-if="mainData.type == '框架' || mainData.type == '直销'">
|
|
|
- <BaseInfo :detailInfo="detailInfo"/>
|
|
|
+ <linkedOrder v-if="tool.checkAuth($route.name,'linkedOrder')"></linkedOrder>
|
|
|
+ <BaseInfo v-else :detailInfo="detailInfo"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div slot="slot5">
|
|
|
+ <linkedOrder></linkedOrder>
|
|
|
+ </div>
|
|
|
</basicDetails>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -287,6 +297,7 @@ import importFile from '../components/importFile'
|
|
|
import copyTo from '../components/copyTo'
|
|
|
import priceDifference from '../components/priceDifference/index'
|
|
|
import contactList from '../components/contactList/index'
|
|
|
+import linkedOrder from "../components/linkedOrder";
|
|
|
import { Loading } from 'element-ui';
|
|
|
export default {
|
|
|
name: "detail",
|
|
@@ -333,7 +344,8 @@ export default {
|
|
|
importFile,
|
|
|
copyTo,
|
|
|
priceDifference,
|
|
|
- contactList
|
|
|
+ contactList,
|
|
|
+ linkedOrder
|
|
|
},
|
|
|
provide () {
|
|
|
return {
|
|
@@ -386,21 +398,70 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
tabsSet(){
|
|
|
- switch (this.mainData.type) {
|
|
|
- case '项目':
|
|
|
- this.tabs = this.siteid == 'HY'?this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet')?['产品明细折扣','产品类别折扣','备用金','详细信息']:['产品明细折扣','产品类别折扣','详细信息']:['产品明细折扣','产品类别折扣','详细信息']
|
|
|
- break
|
|
|
- case '框架':
|
|
|
- this.tabs = this.siteid == 'HY'?this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet')?['产品明细折扣','产品类别折扣','业绩目标','备用金','详细信息']:['产品明细折扣','产品类别折扣','业绩目标','详细信息']:['产品明细折扣','产品类别折扣','业绩目标','详细信息']
|
|
|
- break
|
|
|
- case '居间':
|
|
|
- this.tabs = this.siteid == 'HY'?this.tool.checkAuth(this.$route.name,'contact')?['详细信息','联系人']:['详细信息']:this.tool.checkAuth(this.$route.name,'contact')?['产品明细折扣','产品类别折扣','详细信息','联系人']:['产品明细折扣','产品类别折扣','详细信息']
|
|
|
- break
|
|
|
- case '直销':
|
|
|
- this.tabs = this.siteid == 'HY'?this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet')?['产品明细折扣','产品类别折扣','业绩目标','备用金','详细信息']:['产品明细折扣','产品类别折扣','业绩目标','详细信息']:['产品明细折扣','产品类别折扣','业绩目标','详细信息']
|
|
|
- break
|
|
|
- default:
|
|
|
+ if (this.mainData.type == '项目'){
|
|
|
+ if (this.siteid == 'HY'){
|
|
|
+ if (this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet') && !this.tool.checkAuth(this.$route.name,'linkedOrder')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','备用金','详细信息']
|
|
|
+ }else if (this.tool.checkAuth(this.$route.name,'linkedOrder') && !this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','详细信息','关联订单']
|
|
|
+ }else if (this.tool.checkAuth(this.$route.name,'linkedOrder') && this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','备用金','详细信息','关联订单']
|
|
|
+ }else {
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','详细信息']
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ if (this.tool.checkAuth(this.$route.name,'linkedOrder')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','详细信息','关联订单']
|
|
|
+ }else {
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','详细信息']
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else if (this.mainData.type == '框架' || this.mainData.type == '直销' ){
|
|
|
+ if (this.siteid == 'HY'){
|
|
|
+ if (this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet') && !this.tool.checkAuth(this.$route.name,'linkedOrder')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','业绩目标','备用金','详细信息']
|
|
|
+ }else if (this.tool.checkAuth(this.$route.name,'linkedOrder') && !this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','业绩目标','详细信息','关联订单']
|
|
|
+ }else if (this.tool.checkAuth(this.$route.name,'linkedOrder') && this.tool.checkAuth(this.$route.name,'brokerageFeeEntrySet')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','业绩目标','备用金','详细信息','关联订单']
|
|
|
+ }else {
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','业绩目标','详细信息']
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ if (this.tool.checkAuth(this.$route.name,'linkedOrder')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','业绩目标','详细信息','关联订单']
|
|
|
+ }else {
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','业绩目标','详细信息']
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else if (this.mainData.type == '居间'){
|
|
|
+ if (this.siteid == 'HY'){
|
|
|
+ if (this.tool.checkAuth(this.$route.name,'contact') && !this.tool.checkAuth(this.$route.name,'linkedOrder')){
|
|
|
+ this.tabs = ['详细信息','联系人']
|
|
|
+ }else if (this.tool.checkAuth(this.$route.name,'linkedOrder') && !this.tool.checkAuth(this.$route.name,'contact')){
|
|
|
+ this.tabs = ['详细信息','关联订单']
|
|
|
+ }else if (this.tool.checkAuth(this.$route.name,'linkedOrder') && this.tool.checkAuth(this.$route.name,'contact')){
|
|
|
+ this.tabs = ['详细信息','联系人','关联订单']
|
|
|
+ }else {
|
|
|
+ this.tabs = ['详细信息']
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ if (this.tool.checkAuth(this.$route.name,'contact') && !this.tool.checkAuth(this.$route.name,'linkedOrder')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','详细信息','联系人']
|
|
|
+ }else if (this.tool.checkAuth(this.$route.name,'linkedOrder') && !this.tool.checkAuth(this.$route.name,'contact')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','详细信息','关联订单']
|
|
|
+ }else if (this.tool.checkAuth(this.$route.name,'linkedOrder') && this.tool.checkAuth(this.$route.name,'contact')){
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','详细信息','联系人','关联订单']
|
|
|
+ }else {
|
|
|
+ this.tabs = ['产品明细折扣','产品类别折扣','详细信息']
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ if (this.tool.checkAuth(this.$route.name,'linkedOrder')){
|
|
|
+ this.tabs = ['工具清单','详细信息','关联订单']
|
|
|
+ }else {
|
|
|
this.tabs = ['工具清单','详细信息']
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
editSuccess(){
|