|
@@ -80,6 +80,8 @@ class EgressDetails extends Component {
|
|
|
// publicType 公出他人企业 0不含他人客户 1待审核 2已审核 3已驳回
|
|
|
// status=1 0驳回 1发起 2通过
|
|
|
// type 0业务 1技术 2行政 3协单 4协单助手
|
|
|
+
|
|
|
+ detailUrl: ''
|
|
|
};
|
|
|
this.examinePublicRelease = this.examinePublicRelease.bind(this);
|
|
|
this.getReleasetDails = this.getReleasetDails.bind(this);
|
|
@@ -445,7 +447,15 @@ class EgressDetails extends Component {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- onSelFiles(data) {
|
|
|
+ onSelFiles(data, type) {
|
|
|
+ let url = '';
|
|
|
+ if (type == 1) {
|
|
|
+ // 企业档案表
|
|
|
+ url = "/pages/customerProfile/index";
|
|
|
+ } else if (type == 2) {
|
|
|
+ // 面谈思路表
|
|
|
+ url = "/pages/interviewDetail/index";
|
|
|
+ }
|
|
|
let list = []
|
|
|
let userNames = data.userNames.split(",")
|
|
|
let UserIds = data.uids.split(",")
|
|
@@ -455,11 +465,12 @@ class EgressDetails extends Component {
|
|
|
}
|
|
|
this.setState({
|
|
|
filesList: list,
|
|
|
- isSelFiles: true
|
|
|
+ isSelFiles: true,
|
|
|
+ detailUrl: url
|
|
|
})
|
|
|
} else {
|
|
|
Taro.navigateTo({
|
|
|
- url: "/pages/customerProfile/index?id=" + data.uids + "¬Required=true&readonly=true",
|
|
|
+ url: url + "?id=" + data.uids + "¬Required=true&readonly=true"
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -673,12 +684,21 @@ class EgressDetails extends Component {
|
|
|
<View className="item">
|
|
|
<View className="title">
|
|
|
公出企业
|
|
|
- {dtails.viewPermission == 1 &&
|
|
|
- <View className="tbuttom"
|
|
|
- onClick={e => {
|
|
|
+ {
|
|
|
+ dtails.viewPermission == 1 &&
|
|
|
+ <View className="tbuttom">
|
|
|
+ { dtails.type == 0 ? (
|
|
|
+ <View onClick={e => {
|
|
|
+ e.stopPropagation()
|
|
|
+ this.onSelFiles(dtails, 2)
|
|
|
+ }}>查看面谈思路表</View>
|
|
|
+ ) : null }
|
|
|
+ <View onClick={e => {
|
|
|
e.stopPropagation()
|
|
|
- this.onSelFiles(dtails)
|
|
|
- }}>查看客户档案</View>}
|
|
|
+ this.onSelFiles(dtails, 1)
|
|
|
+ }}>查看客户档案</View>
|
|
|
+ </View>
|
|
|
+ }
|
|
|
</View>
|
|
|
<View className="value">
|
|
|
{/* {dtails.nickname} */}
|
|
@@ -1023,7 +1043,7 @@ class EgressDetails extends Component {
|
|
|
isSelFiles: false
|
|
|
})
|
|
|
Taro.navigateTo({
|
|
|
- url: "/pages/customerProfile/index?id=" + this.state.uid + "¬Required=true",
|
|
|
+ url: this.state.detailUrl + "?id=" + this.state.uid + "¬Required=true&readonly=true",
|
|
|
});
|
|
|
}}>确定</Button>
|
|
|
</AtModalAction>
|