|
@@ -16,7 +16,7 @@
|
|
|
<followTable :ownertable="ownertable" :disabled="disabled" @newFollow="newFollow" ref="followRef"></followTable>
|
|
|
</div>
|
|
|
<div v-show="activeName === 'file'">
|
|
|
- <attachmentList v-if="activeName === 'file'" :disabled="$route.path == '/contractDetail'?false:disabled" :status="status" :attachmentDisabled="$route.path == '/contractDetail'?false:attachmentDisabled" :attinfos="attinfo_attachment" @onSuccess="queryAttments" @cancelEdit="queryAttments">
|
|
|
+ <attachmentList v-if="activeName === 'file'" :disabled="$route.path == '/contractDetail'?false:disabled" :status="status" :attachmentDisabled="$route.path == '/contractDetail'?false:attachmentDisabled" :attinfos="attinfo_attachment" @onSuccess="queryAttments" @cancelEdit="queryAttments" :issalehr="issalehr">
|
|
|
<upload slot="upload" :folderid="folderid" :status="status" :attachmentDisabled="$route.path == '/contractDetail'?false:attachmentDisabled" :disabled="$route.path == '/contractDetail'?false:disabled"
|
|
|
:bindData="{ ownertable: ownertable, ownerid: editData[idname], usetype: 'default' }"
|
|
|
@onSuccess="queryAttments" :hidemediastock="hidemediastock"></upload>
|
|
@@ -48,6 +48,8 @@ export default {
|
|
|
attinfo_attachment:[],
|
|
|
folderid:JSON.parse(sessionStorage.getItem('folderid')).appfolderid,
|
|
|
hidemediastock:!JSON.parse(sessionStorage.getItem('activeApp')).selectfileinattachment,
|
|
|
+ hrid:JSON.parse(sessionStorage.getItem('active_account')).hrid,
|
|
|
+ issalehr:false
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -70,6 +72,21 @@ export default {
|
|
|
},
|
|
|
newFollow(){
|
|
|
this.$emit('newFollow')
|
|
|
+ },
|
|
|
+ /*判断是否业务员*/
|
|
|
+ async isSalesman(){
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ classname: "webmanage.hr.hr",
|
|
|
+ content: {
|
|
|
+ hrid: this.hrid
|
|
|
+ },
|
|
|
+ method: "query_hrMain"
|
|
|
+ })
|
|
|
+ if (res.code == 0){
|
|
|
+ this.issalehr = false
|
|
|
+ }else {
|
|
|
+ res.data.issalehr?this.issalehr = true : this.issalehr = false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
@@ -78,6 +95,7 @@ export default {
|
|
|
this.activeName = 'tab0'
|
|
|
}
|
|
|
}, 1000);
|
|
|
+ this.isSalesman()
|
|
|
},
|
|
|
watch: {
|
|
|
activeName (val) {
|