|
@@ -125,12 +125,13 @@ class Examine extends Component {
|
|
|
});
|
|
|
}
|
|
|
// 公出详情
|
|
|
- getReleasetDails(id) {
|
|
|
+ getReleasetDails(id, callback) {
|
|
|
getReleasetDails({
|
|
|
id: id
|
|
|
}).then((v) => {
|
|
|
if (v.error.length === 0) {
|
|
|
if (v.data) {
|
|
|
+
|
|
|
let list = [];
|
|
|
for (let i of v.data.annexUrl.split(",")) {
|
|
|
if (i) {
|
|
@@ -145,6 +146,8 @@ class Examine extends Component {
|
|
|
latitude: parseFloat(v.data.prdList[0]?.latitude),
|
|
|
name: v.data.prdList[0]?.districtName,
|
|
|
},
|
|
|
+ }, () => {
|
|
|
+ callback && callback();
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
@@ -539,15 +542,17 @@ class Examine extends Component {
|
|
|
})
|
|
|
}}
|
|
|
again={e => {
|
|
|
- this.getReleasetDails(e.id)
|
|
|
- this.setState({
|
|
|
- isInquiryOpened: true,
|
|
|
- inquiryTitle: "温馨提示",
|
|
|
- inquiryContent: "您确定需再次公出拜访同一家企业吗?",
|
|
|
- inquiryFn: () => {
|
|
|
-
|
|
|
- },
|
|
|
- });
|
|
|
+ this.getReleasetDails(e.id, () => {
|
|
|
+ this.setState({
|
|
|
+ isInquiryOpened: true,
|
|
|
+ inquiryTitle: "温馨提示",
|
|
|
+ inquiryContent: "您确定需再次公出拜访同一家企业吗?",
|
|
|
+ inquiryFn: () => {
|
|
|
+
|
|
|
+ },
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
}}
|
|
|
opinion={(t, e) => {
|
|
|
this.publicAssistAdviceList(t, e)
|
|
@@ -629,8 +634,16 @@ class Examine extends Component {
|
|
|
});
|
|
|
}}
|
|
|
onDetermine={() => {
|
|
|
+ const data = this.state.dtails;
|
|
|
+ const customerList = data.prdList.map(item => {
|
|
|
+ return { id: item.uid, aid: data.aid, aname: data.aname, name: item.userName }
|
|
|
+ })
|
|
|
+ Taro.setStorageSync('publicInfo', { type: data.type, customerList })
|
|
|
+ Taro.switchTab({
|
|
|
+ url: `/pages/applyDepart/index`
|
|
|
+ });
|
|
|
this.setState({
|
|
|
- isModifyOpened: true,
|
|
|
+ // isModifyOpened: true,
|
|
|
|
|
|
isInquiryOpened: false,
|
|
|
inquiryTitle: "",
|