|
@@ -206,27 +206,37 @@ class EgressDetails extends Component {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
Taro.showLoading({ title: "加载中..." });
|
|
Taro.showLoading({ title: "加载中..." });
|
|
- examinePublicRelease({
|
|
|
|
- status,
|
|
|
|
- remarks: this.state.opinion,
|
|
|
|
- id: this.state.dtails.id,
|
|
|
|
- })
|
|
|
|
|
|
+ let isSuperior = this.state.current == "他人公出" ? false : true
|
|
|
|
+ examinePublicRelease(
|
|
|
|
+ isSuperior,
|
|
|
|
+ {
|
|
|
|
+ status,
|
|
|
|
+ remarks: this.state.opinion,
|
|
|
|
+ id: this.state.dtails.id,
|
|
|
|
+ }
|
|
|
|
+ )
|
|
.then((v) => {
|
|
.then((v) => {
|
|
Taro.hideLoading();
|
|
Taro.hideLoading();
|
|
if (v.error.length === 0) {
|
|
if (v.error.length === 0) {
|
|
Taro.showToast({
|
|
Taro.showToast({
|
|
- title: status === 0 ? "驳回成功" : "通过成功",
|
|
|
|
|
|
+ title: "操作成功",
|
|
icon: "none",
|
|
icon: "none",
|
|
});
|
|
});
|
|
- this.state.dtails.status = status;
|
|
|
|
- this.setState({
|
|
|
|
- dtails: this.state.dtails,
|
|
|
|
- });
|
|
|
|
- Taro.eventCenter.trigger("listOperation", {
|
|
|
|
- type: this.state.dtails.permission,
|
|
|
|
- index: this.$instance.router.params.index,
|
|
|
|
- status: status === 0 ? 0 : 2,
|
|
|
|
- });
|
|
|
|
|
|
+ this.getReleasetDails();
|
|
|
|
+
|
|
|
|
+ // Taro.showToast({
|
|
|
|
+ // title: status === 0 ? "驳回成功" : "通过成功",
|
|
|
|
+ // icon: "none",
|
|
|
|
+ // });
|
|
|
|
+ // this.state.dtails.status = status;
|
|
|
|
+ // this.setState({
|
|
|
|
+ // dtails: this.state.dtails,
|
|
|
|
+ // });
|
|
|
|
+ // Taro.eventCenter.trigger("listOperation", {
|
|
|
|
+ // type: this.state.dtails.permission,
|
|
|
|
+ // index: this.$instance.router.params.index,
|
|
|
|
+ // status: status === 0 ? 0 : 2,
|
|
|
|
+ // });
|
|
} else {
|
|
} else {
|
|
Taro.showToast({ title: v.error[0].message, icon: "none" });
|
|
Taro.showToast({ title: v.error[0].message, icon: "none" });
|
|
}
|
|
}
|
|
@@ -243,9 +253,9 @@ class EgressDetails extends Component {
|
|
this.state.dtails.status === 3
|
|
this.state.dtails.status === 3
|
|
? this.state.dtails.aname +
|
|
? this.state.dtails.aname +
|
|
"撤销了前往" +
|
|
"撤销了前往" +
|
|
- this.state.dtails.districtName +
|
|
|
|
|
|
+ this.state.dtails.prdList[0]?.districtName +
|
|
"的公出"
|
|
"的公出"
|
|
- : this.state.dtails.aname + "将要去" + this.state.dtails.districtName,
|
|
|
|
|
|
+ : this.state.dtails.aname + "将要去" + this.state.dtails.prdList[0]?.districtName,
|
|
path: "pages/egressDetails/index?id=" + this.$instance.router.params.id,
|
|
path: "pages/egressDetails/index?id=" + this.$instance.router.params.id,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
@@ -380,6 +390,12 @@ class EgressDetails extends Component {
|
|
>
|
|
>
|
|
{getClockState(dtails.status).title}
|
|
{getClockState(dtails.status).title}
|
|
</View>
|
|
</View>
|
|
|
|
+ {
|
|
|
|
+ dtails.peList?.map(item =>
|
|
|
|
+ <View style={{ fontSize: "15px", color: "#007AFF" }}>{item.aname + `(${["审核中", "已审核"][item.status]})`}</View>
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ <View></View>
|
|
<Image
|
|
<Image
|
|
src={
|
|
src={
|
|
dtails.status === 0
|
|
dtails.status === 0
|
|
@@ -593,8 +609,8 @@ class EgressDetails extends Component {
|
|
</View>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
) : null}
|
|
) : null}
|
|
- {dtails.status === 1 &&
|
|
|
|
- current === "审核" ? (
|
|
|
|
|
|
+ {((dtails.status === 1 && current === "审核") ||
|
|
|
|
+ (dtails.publicType == 1 && current === "他人公出" && dtails.myExamine == 0)) &&
|
|
<View className="item">
|
|
<View className="item">
|
|
<View className="title">
|
|
<View className="title">
|
|
填写审批意见
|
|
填写审批意见
|
|
@@ -612,52 +628,48 @@ class EgressDetails extends Component {
|
|
maxLength={20}
|
|
maxLength={20}
|
|
placeholder="请填写审批意见"
|
|
placeholder="请填写审批意见"
|
|
/>
|
|
/>
|
|
- </View>
|
|
|
|
- ) : null}
|
|
|
|
- {dtails.status === 1 &&
|
|
|
|
- current === "审核" ? (
|
|
|
|
- <View className="operation">
|
|
|
|
- <AtButton
|
|
|
|
- type="secondary"
|
|
|
|
- circle
|
|
|
|
- loading={this.state.loading}
|
|
|
|
- onClick={() => {
|
|
|
|
- this.setState({
|
|
|
|
- isInquiryOpened: true,
|
|
|
|
- inquiryTitle: "提醒",
|
|
|
|
- inquiryContent: "您确定要驳回此申请吗?",
|
|
|
|
- inquiryFn: () => {
|
|
|
|
- this.agree(0);
|
|
|
|
- // this.examinePublicRelease(0);
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- 驳回
|
|
|
|
- </AtButton>
|
|
|
|
- <AtButton
|
|
|
|
- type="primary"
|
|
|
|
- loading={this.state.loading}
|
|
|
|
- circle
|
|
|
|
- onClick={() => {
|
|
|
|
- if (this.state.loading) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- this.setState({
|
|
|
|
- isInquiryOpened: true,
|
|
|
|
- inquiryTitle: "提醒",
|
|
|
|
- inquiryContent: "您确定要同意此申请吗?",
|
|
|
|
- inquiryFn: () => {
|
|
|
|
- this.agree(2);
|
|
|
|
- // this.examinePublicRelease(2);
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- 同意
|
|
|
|
- </AtButton>
|
|
|
|
- </View>
|
|
|
|
- ) : null}
|
|
|
|
|
|
+ <View className="operation">
|
|
|
|
+ <AtButton
|
|
|
|
+ type="secondary"
|
|
|
|
+ circle
|
|
|
|
+ loading={this.state.loading}
|
|
|
|
+ onClick={() => {
|
|
|
|
+ this.setState({
|
|
|
|
+ isInquiryOpened: true,
|
|
|
|
+ inquiryTitle: "提醒",
|
|
|
|
+ inquiryContent: "您确定要驳回此申请吗?",
|
|
|
|
+ inquiryFn: () => {
|
|
|
|
+ this.agree(0);
|
|
|
|
+ // this.examinePublicRelease(0);
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ 驳回
|
|
|
|
+ </AtButton>
|
|
|
|
+ <AtButton
|
|
|
|
+ type="primary"
|
|
|
|
+ loading={this.state.loading}
|
|
|
|
+ circle
|
|
|
|
+ onClick={() => {
|
|
|
|
+ if (this.state.loading) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ this.setState({
|
|
|
|
+ isInquiryOpened: true,
|
|
|
|
+ inquiryTitle: "提醒",
|
|
|
|
+ inquiryContent: "您确定要同意此申请吗?",
|
|
|
|
+ inquiryFn: () => {
|
|
|
|
+ this.agree(2);
|
|
|
|
+ // this.examinePublicRelease(2);
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ 同意
|
|
|
|
+ </AtButton>
|
|
|
|
+ </View>
|
|
|
|
+ </View>}
|
|
{current !== "审核" && dtails.permission === 0
|
|
{current !== "审核" && dtails.permission === 0
|
|
&& dtails.type !== 3 && dtails.type !== 4 ? (
|
|
&& dtails.type !== 3 && dtails.type !== 4 ? (
|
|
<View className="item" id={"reasons"}>
|
|
<View className="item" id={"reasons"}>
|