dengyinhuan 1 year ago
parent
commit
ee54d726ac
  1. 83
      weapp/src/packages/patrol/index.jsx

83
weapp/src/packages/patrol/index.jsx

@ -1443,53 +1443,36 @@ const Index = () => {
{ {
isSuperAdmin && (wait === 'wait' || kind === 'handle') && <View className='appoint'> isSuperAdmin && (wait === 'wait' || kind === 'handle') && <View className='appoint'>
{ {
handleState === '待处理' ? // handleState === '待处理' && <>
<> <RadioGroup onChange={(e) => {
<RadioGroup onChange={(e) => { setIsAppoint(e.detail.value === '指派' ? true : false)
setIsAppoint(e.detail.value === '指派' ? true : false) }}>
}}> <Radio value='指派' checked={isAppoint} color='#0080EE' className='radio'>指派</Radio>
<Radio value='指派' checked={isAppoint} color='#0080EE' className='radio'>指派</Radio> <Radio value='不处理' checked={!isAppoint} color='#0080EE' className='radio' style={{ marginLeft: 10 }}>不处理</Radio>
<Radio value='不处理' checked={!isAppoint} color='#0080EE' className='radio' style={{ marginLeft: 10 }}>不处理</Radio> </RadioGroup>
</RadioGroup> {
{ isAppoint && <>
isAppoint && <> <View className='picker'>
<View className='picker'> <Text>责任人{appointUser !== null ? userList[appointUser]?.name : ''}</Text>
<Text>责任人{appointUser !== null ? userList[appointUser]?.name : ''}</Text> <Picker
<Picker mode='selector'
mode='selector' range={userList}
range={userList} rangeKey='name'
rangeKey='name' onChange={e => setAppointUser(Number(e.detail.value))}
onChange={e => setAppointUser(Number(e.detail.value))} >
> <Image src={arrowIcon} className='arrow' />
<Image src={arrowIcon} className='arrow' /> </Picker>
</Picker> </View>
</View> <Textarea
<Textarea placeholder='请输入处理意见'
placeholder='请输入处理意见' value={handleAdvice}
value={handleAdvice} onInput={e => setHandleAdvice(e.target.value)}
onInput={e => setHandleAdvice(e.target.value)} disabled={isView && handleState !== '待处理'}
disabled={isView && handleState !== '待处理'} maxlength={1024}
maxlength={1024} />
/> </>
</> }
} </>
</>
: //
<>
{/* {
handleState === '不处理' && <Text>
处理结果暂不进行处理
</Text>
} */}
{/* {
(handleState === '已指派' || handleState === '已处理') && <>
<View>处理意见</View>
<View>{handleAdvice}</View>
<View style={{ marginTop: 10 }}>责任人</View>
<View>{appointUser !== null ? allDepUsers.find(d => d.depId === userList[appointUser]?.departmentId)?.depName : ''}-{appointUser !== null ? userList[appointUser]?.name : ''}</View>
</>
} */}
</>
} }
</View> </View>
} }
@ -1510,7 +1493,11 @@ const Index = () => {
{ {
(isSuperAdmin && (handleState === '已指派' || handleState === '已处理')) && <> (isSuperAdmin && (handleState === '已指派' || handleState === '已处理')) && <>
<View style={{ marginTop: 10 }}>责任人</View> <View style={{ marginTop: 10 }}>责任人</View>
<View>{appointUser !== null ? allDepUsers.find(d => d.depId === userList[appointUser]?.departmentId)?.depName : ''}-{appointUser !== null ? userList[appointUser]?.name : ''}</View> <View>
{appointUser !== null ? allDepUsers.find(d => d.depId === userList.find(u => u.id === appointUser)?.departmentId)?.depName : ''}
-
{appointUser !== null ? userList.find(u => u.id === appointUser)?.name : ''}
</View>
</> </>
} }
</View> </View>

Loading…
Cancel
Save