|
@@ -7,10 +7,11 @@ import checkOff from '@common/images/check_off.png';
|
|
import checkOn from '@common/images/check_on.png';
|
|
import checkOn from '@common/images/check_on.png';
|
|
import dowm from '../img/down.png';
|
|
import dowm from '../img/down.png';
|
|
import SlideIpt from '../SlideIpt';
|
|
import SlideIpt from '../SlideIpt';
|
|
|
|
+import SearchSelect from '../SearchSelect';
|
|
|
|
+import SearchSelect2 from '../SearchSelect2';
|
|
import singleB from '../img/singleB.png';
|
|
import singleB from '../img/singleB.png';
|
|
import singleL from '../img/singleL.png';
|
|
import singleL from '../img/singleL.png';
|
|
|
|
|
|
-
|
|
|
|
class SlidePic extends Component {
|
|
class SlidePic extends Component {
|
|
constructor(props) {
|
|
constructor(props) {
|
|
super(props);
|
|
super(props);
|
|
@@ -98,52 +99,31 @@ class SlidePic extends Component {
|
|
const {handlePush} = this.props;
|
|
const {handlePush} = this.props;
|
|
handlePush&&handlePush({mode:8});
|
|
handlePush&&handlePush({mode:8});
|
|
}
|
|
}
|
|
- handleSelect(part,idx){
|
|
|
|
- const {selectJiType,handleSelectShow,handlePush} = this.props;
|
|
|
|
- selectJiType(part,idx)
|
|
|
|
- handlePush&&handlePush({mode:8});
|
|
|
|
- handleSelectShow(idx)
|
|
|
|
- }
|
|
|
|
- handleSelectShow (idx){
|
|
|
|
- const {handleSelectShow} = this.props;
|
|
|
|
- handleSelectShow(idx)
|
|
|
|
- }
|
|
|
|
handleSui(item,idx){
|
|
handleSui(item,idx){
|
|
const {handleSuiFang,handlePush} = this.props;
|
|
const {handleSuiFang,handlePush} = this.props;
|
|
handleSuiFang&&handleSuiFang(item,idx)
|
|
handleSuiFang&&handleSuiFang(item,idx)
|
|
handlePush&&handlePush({mode:8});
|
|
handlePush&&handlePush({mode:8});
|
|
}
|
|
}
|
|
render() {
|
|
render() {
|
|
- const {item,time,setTipValue,idx,handlePush,staticData,activeIdx,hosId} = this.props;
|
|
|
|
|
|
+ const {item,time,setTipValue,idx,handlePush,hosId,selectJiType} = this.props;
|
|
const {selectShow,activeInd,activeName,value,style} = this.state;
|
|
const {selectShow,activeInd,activeName,value,style} = this.state;
|
|
return (
|
|
return (
|
|
- <li key={item.time} className={`${styles.slideLi} clearfix`}>
|
|
|
|
|
|
+ <li key={item.time} className={`${styles.slideLi} clearfix`}>
|
|
<img className={styles.imgCheck} src={item.check?checkOn:checkOff} onClick={()=>this.checkOnOff(item,idx)} alt=""/>
|
|
<img className={styles.imgCheck} src={item.check?checkOn:checkOff} onClick={()=>this.checkOnOff(item,idx)} alt=""/>
|
|
<span className={styles.bigname} title={item.detailName}>{item.detailName}</span>
|
|
<span className={styles.bigname} title={item.detailName}>{item.detailName}</span>
|
|
<span className={styles.smallname}>{item.flg == 5?'药品':item.flg == 6?'手术/操作':'输血'}</span>
|
|
<span className={styles.smallname}>{item.flg == 5?'药品':item.flg == 6?'手术/操作':'输血'}</span>
|
|
- <span className={styles.medType}>
|
|
|
|
- <a style={{display:item.flg == 5&&hosId==-1?'block':'none',color:item.form=='选择剂型'||!item.form?"#AAAAAA":"#333"}} id="selectJiTypeWrap" onClick={()=>this.handleSelectShow(idx)}>
|
|
|
|
- {item.form||'选择剂型'}
|
|
|
|
- <img src={dowm} alt=""/>
|
|
|
|
- </a>
|
|
|
|
- {
|
|
|
|
- hosId==-1&&item.flg == 5&&item.selectShow&&activeIdx==idx?<ul className={styles.selectLis} id="selectJiType">
|
|
|
|
- {
|
|
|
|
- staticData&&staticData.map((part)=>{
|
|
|
|
- return <li onClick={()=>this.handleSelect(part,idx)}>{part.name||'选择剂型'}</li>
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- </ul>:''
|
|
|
|
- }
|
|
|
|
- </span>
|
|
|
|
|
|
+ {hosId===-1 && item.flg == 5?<SearchSelect title='搜索剂型' hosId={hosId} selected={item.form} type={15} selectJiType={selectJiType} handlePush={handlePush} idx={idx}></SearchSelect>:<p style={{width:'110px',marginRight:'10px'}}></p>}
|
|
|
|
+ {item.flg == 5?<SearchSelect2 title='选择给药途径' hosId={hosId} selected={item.routeName} type={16} selectJiType={selectJiType} handlePush={handlePush} idx={idx}></SearchSelect2>:<p style={{width:'108px',marginRight:'10px'}}></p>}
|
|
|
|
+
|
|
<span className={styles.edit}>
|
|
<span className={styles.edit}>
|
|
{
|
|
{
|
|
item.flg == 5||item.flg == 8?
|
|
item.flg == 5||item.flg == 8?
|
|
<input type="text"
|
|
<input type="text"
|
|
class="canEdit"
|
|
class="canEdit"
|
|
style={{color:'#333'}}
|
|
style={{color:'#333'}}
|
|
- placeholder={item.flg == 5?'(填写用法计量)':'(填写用量)'}
|
|
|
|
|
|
+ placeholder='(填写用量)'
|
|
autoComplete="off"
|
|
autoComplete="off"
|
|
|
|
+ maxLength='10'
|
|
value={item.value}
|
|
value={item.value}
|
|
title={item.value}
|
|
title={item.value}
|
|
onInput={(e)=>{this.handleInput(e,item,2,idx)}}
|
|
onInput={(e)=>{this.handleInput(e,item,2,idx)}}
|