|
@@ -5,7 +5,8 @@ import { InspectCommon, Notify,DelToast} from '@commonComp';
|
|
import slideUp from "@common/images/slide-up.png";
|
|
import slideUp from "@common/images/slide-up.png";
|
|
import slideDown from "@common/images/slide-down.png";
|
|
import slideDown from "@common/images/slide-down.png";
|
|
import $ from 'jquery';
|
|
import $ from 'jquery';
|
|
-import date1 from '../img/date1.png';
|
|
|
|
|
|
+import checkOff from '@common/images/check_off.png';
|
|
|
|
+import checkOn from '@common/images/check_on.png';
|
|
import ScrollArea from 'react-scrollbar';
|
|
import ScrollArea from 'react-scrollbar';
|
|
import InspectName from '../InspectName';
|
|
import InspectName from '../InspectName';
|
|
|
|
|
|
@@ -31,6 +32,7 @@ class SlidePic extends Component {
|
|
this.setEdit = this.setEdit.bind(this);
|
|
this.setEdit = this.setEdit.bind(this);
|
|
this.handleLabelSub = this.handleLabelSub.bind(this);
|
|
this.handleLabelSub = this.handleLabelSub.bind(this);
|
|
this.handleBlur = this.handleBlur.bind(this);
|
|
this.handleBlur = this.handleBlur.bind(this);
|
|
|
|
+ this.checkOnOff = this.checkOnOff.bind(this);
|
|
}
|
|
}
|
|
handleChangeDate(date) {
|
|
handleChangeDate(date) {
|
|
// console.log(date,'外')
|
|
// console.log(date,'外')
|
|
@@ -137,6 +139,10 @@ class SlidePic extends Component {
|
|
const {handlePush} = this.props;
|
|
const {handlePush} = this.props;
|
|
handlePush && handlePush({mode:8}); //右侧推送
|
|
handlePush && handlePush({mode:8}); //右侧推送
|
|
}
|
|
}
|
|
|
|
+ checkOnOff(item){
|
|
|
|
+ const {checkOnOff} = this.props
|
|
|
|
+ checkOnOff(item)
|
|
|
|
+ }
|
|
render() {
|
|
render() {
|
|
const {item,time} = this.props;
|
|
const {item,time} = this.props;
|
|
const {canEdit,activeInd,activeName,value,style} = this.state;
|
|
const {canEdit,activeInd,activeName,value,style} = this.state;
|
|
@@ -154,6 +160,31 @@ class SlidePic extends Component {
|
|
top={'30px'}
|
|
top={'30px'}
|
|
cancel={this.handleCancel}
|
|
cancel={this.handleCancel}
|
|
confirm={()=>{this.delConfirm(item)}}/>
|
|
confirm={()=>{this.delConfirm(item)}}/>
|
|
|
|
+ </li>:(item.flg == 5||item.flg == 6)?<li key={item.time} className={`${styles.slideLi} clearfix`}>
|
|
|
|
+ <img src={item.check?checkOn:checkOff} onClick={()=>this.checkOnOff(item)} alt=""/>
|
|
|
|
+ <span className={styles.bigname}>{item.name}</span>
|
|
|
|
+ <span className={styles.smallname}>{item.flg == 5?'药品':'手术/操作'}</span>
|
|
|
|
+ {/* <span className={styles.edit}>
|
|
|
|
+ <input disabled={canEdit} type="text"
|
|
|
|
+ id="canEdit"
|
|
|
|
+ onDoubleClick={this.setEdit}
|
|
|
|
+ style={{color:style==2||style==4?'red':style==1?'#D949FF':'#333'}}
|
|
|
|
+ placeholder='(填写)'
|
|
|
|
+ autoComplete="off"
|
|
|
|
+ value={value}
|
|
|
|
+ onInput={(e)=>{this.handleInput(e,item)}}
|
|
|
|
+ onBlur={()=>{this.handleBlur()}}
|
|
|
|
+ /><img style={{display:style==1||style==2?'inline-block':'none'}} src={style==1?down:style==2?up:''} />{item.units}
|
|
|
|
+ </span> */}
|
|
|
|
+ <span className={styles.maxmin}></span>
|
|
|
|
+ <span className={styles.pass}>{item.time}</span>
|
|
|
|
+ <span id="addClose" className={styles.partDel} onClick={()=>{this.handleDel(item.time)}}></span>
|
|
|
|
+ <DelToast show={time==item.time&&activeInd?true:false}
|
|
|
|
+ name={activeName}
|
|
|
|
+ right={'-34px'}
|
|
|
|
+ top={'30px'}
|
|
|
|
+ cancel={this.handleCancel}
|
|
|
|
+ confirm={()=>{this.delConfirm(item)}}/>
|
|
</li>:<li key={item.time} className={`${styles.slideLi} clearfix`}>
|
|
</li>:<li key={item.time} className={`${styles.slideLi} clearfix`}>
|
|
<span className={styles.bigname}>{item.name}</span>
|
|
<span className={styles.bigname}>{item.name}</span>
|
|
<span className={styles.smallname}>{item.uniqueName}</span>
|
|
<span className={styles.smallname}>{item.uniqueName}</span>
|