|
@@ -142,15 +142,14 @@ class PublicContent extends Component {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- if (this.props.enterpriseInfor.type == 0 && this.state.totalDuration > 4 && this.state.imgs.length == 0) {
|
|
|
+ let info = Taro.getStorageSync("userInfor");
|
|
|
+ if (this.state.totalDuration > info.workTimeInfor.minHours && this.state.imgs.length == 0) {
|
|
|
Taro.showToast({ title: "请上传附件", icon: "none" });
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
this.setState({
|
|
|
loading: true,
|
|
|
});
|
|
|
- const { selectArrderLocation } = this.props
|
|
|
let datas = {
|
|
|
objectType,
|
|
|
uids: this.props.enterpriseInfor.id,
|
|
@@ -323,6 +322,7 @@ class PublicContent extends Component {
|
|
|
|
|
|
render() {
|
|
|
const { cList, coorderList, popup } = this.state
|
|
|
+ const info = Taro.getStorageSync("userInfor");
|
|
|
return (
|
|
|
<View className="publicContent">
|
|
|
<View className="formItem">
|
|
@@ -365,6 +365,11 @@ class PublicContent extends Component {
|
|
|
<View className="formItem">
|
|
|
<View className="formName">作息时间类型:</View>
|
|
|
<View className="formValue">
|
|
|
+ {this.state.workTypeList[this.state.workType]
|
|
|
+ ? this.state.workTypeList[this.state.workType].name
|
|
|
+ : ""}
|
|
|
+ </View>
|
|
|
+ {/* <View className="formValue">
|
|
|
<picker
|
|
|
onChange={(e) => {
|
|
|
this.setState({
|
|
@@ -395,7 +400,7 @@ class PublicContent extends Component {
|
|
|
<AtIcon value="chevron-right" size="20" color="#bbbbbb" />
|
|
|
</view>
|
|
|
</picker>
|
|
|
- </View>
|
|
|
+ </View> */}
|
|
|
</View>
|
|
|
<View className="formItem">
|
|
|
<View className="formName">公出时间:</View>
|
|
@@ -583,7 +588,7 @@ class PublicContent extends Component {
|
|
|
>
|
|
|
{/* 公出目标 */}
|
|
|
<View className="formName">
|
|
|
- <Text style={{ color: "red" }}>*公出目标:</Text>
|
|
|
+ <Text><Text style={{ color: "red" }}>*</Text>公出目标:</Text>
|
|
|
<View
|
|
|
className="formValue"
|
|
|
style={{ paddingTop: "10px", textAlign: "left" }}
|
|
@@ -608,7 +613,7 @@ class PublicContent extends Component {
|
|
|
{/* 公出计划 */}
|
|
|
{this.props.enterpriseInfor.type != 2 && (
|
|
|
<View className="formName">
|
|
|
- <Text style={{ color: "red" }}>*公出计划:</Text>
|
|
|
+ <Text><Text style={{ color: "red" }}>*</Text>公出计划:</Text>
|
|
|
<View
|
|
|
className="formValue"
|
|
|
style={{ paddingTop: "10px", textAlign: "left" }}
|
|
@@ -630,7 +635,7 @@ class PublicContent extends Component {
|
|
|
{/* 预计效果 */}
|
|
|
{this.props.enterpriseInfor.type != 2 && (
|
|
|
<View className="formName">
|
|
|
- <Text style={{ color: "red" }}>*预计效果:</Text>
|
|
|
+ <Text><Text style={{ color: "red" }}>*</Text>预计效果:</Text>
|
|
|
<View
|
|
|
className="formValue"
|
|
|
style={{ paddingTop: "10px", textAlign: "left" }}
|
|
@@ -652,7 +657,14 @@ class PublicContent extends Component {
|
|
|
</View>
|
|
|
{/* */}
|
|
|
<View className="formItem" style={{ display: "block", paddingBottom: 0 }}>
|
|
|
- <View className="formName">附件:</View>
|
|
|
+ <View className="formName">
|
|
|
+ {this.state.totalDuration > info.workTimeInfor.minHours && <Text style={{ color: "red" }}>*</Text>}
|
|
|
+ 附件:
|
|
|
+ </View>
|
|
|
+ {this.state.totalDuration > info.workTimeInfor.minHours &&
|
|
|
+ <View className="tips">
|
|
|
+ 请上传公出事由的凭证截图,如您与企业的对话截图等
|
|
|
+ </View>}
|
|
|
<View
|
|
|
className="formValue"
|
|
|
style={{ paddingTop: "10px", textAlign: "left" }}
|
|
@@ -665,12 +677,6 @@ class PublicContent extends Component {
|
|
|
/>
|
|
|
</View>
|
|
|
</View>
|
|
|
- {
|
|
|
- this.props.enterpriseInfor.type == 0 && this.state.totalDuration > 4 && this.state.imgs.length == 0 &&
|
|
|
- <View className="tips" style={{ paddingBottom: "40px" }}>
|
|
|
- 您公出时长超过4小时,请上传凭证截图!
|
|
|
- </View>
|
|
|
- }
|
|
|
<View className="operation">
|
|
|
<AtButton
|
|
|
disabled={this.state.loading}
|