|
@@ -5,6 +5,7 @@ import config from '@config/index';
|
|
import $ from 'jquery';
|
|
import $ from 'jquery';
|
|
import checkOff from '@common/images/check_off.png';
|
|
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 SlideIpt from '../SlideIpt';
|
|
import SlideIpt from '../SlideIpt';
|
|
|
|
|
|
|
|
|
|
@@ -96,8 +97,9 @@ class SlidePic extends Component {
|
|
handlePush&&handlePush({mode:8});
|
|
handlePush&&handlePush({mode:8});
|
|
}
|
|
}
|
|
handleSelect(part,idx){
|
|
handleSelect(part,idx){
|
|
- const {selectJiType,handleSelectShow} = this.props;
|
|
|
|
|
|
+ const {selectJiType,handleSelectShow,handlePush} = this.props;
|
|
selectJiType(part,idx)
|
|
selectJiType(part,idx)
|
|
|
|
+ handlePush&&handlePush({mode:8});
|
|
handleSelectShow(idx)
|
|
handleSelectShow(idx)
|
|
}
|
|
}
|
|
handleSelectShow (idx){
|
|
handleSelectShow (idx){
|
|
@@ -105,7 +107,7 @@ class SlidePic extends Component {
|
|
handleSelectShow(idx)
|
|
handleSelectShow(idx)
|
|
}
|
|
}
|
|
render() {
|
|
render() {
|
|
- const {item,time,setTipValue,idx,handlePush,staticData} = this.props;
|
|
|
|
|
|
+ const {item,time,setTipValue,idx,handlePush,staticData,activeIdx} = this.props;
|
|
const {selectShow,activeInd,activeName,value,style} = this.state;
|
|
const {selectShow,activeInd,activeName,value,style} = this.state;
|
|
// console.log(item)
|
|
// console.log(item)
|
|
return (
|
|
return (
|
|
@@ -114,9 +116,12 @@ class SlidePic extends Component {
|
|
<span className={styles.bigname} title={item.name}>{item.name}</span>
|
|
<span className={styles.bigname} title={item.name}>{item.name}</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}>
|
|
<span className={styles.medType}>
|
|
- <a style={{display:item.flg == 5?'block':'none'}} id="selectJiTypeWrap" onClick={()=>this.handleSelectShow(idx)}>{item.selectName||'选择剂型'}</a>
|
|
|
|
|
|
+ <a style={{display:item.flg == 5?'block':'none'}} id="selectJiTypeWrap" onClick={()=>this.handleSelectShow(idx)}>
|
|
|
|
+ {item.form||'选择剂型'}
|
|
|
|
+ <img src={dowm} alt=""/>
|
|
|
|
+ </a>
|
|
{
|
|
{
|
|
- item.flg == 5&&item.selectShow&&item.activeIdx==idx?<ul className={styles.selectLis} id="selectJiType">
|
|
|
|
|
|
+ item.flg == 5&&item.selectShow&&activeIdx==idx?<ul className={styles.selectLis} id="selectJiType">
|
|
{
|
|
{
|
|
staticData&&staticData.map((part)=>{
|
|
staticData&&staticData.map((part)=>{
|
|
return <li onClick={()=>this.handleSelect(part,idx)}>{part.name||'选择剂型'}</li>
|
|
return <li onClick={()=>this.handleSelect(part,idx)}>{part.name||'选择剂型'}</li>
|