123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- //续方各状态返回值
- //(-3 支付过期 -2 患者自己取消 )续方取消,
- //-1 审核不通过 ,
- //(0 待审核, 2调整中,3调整成功, 4调整失败 ,10 医生审核(CA)通过)审核中,
- //20药师审核中,
- //21.药师审核失败,
- //30 开方中/药师审核成功,
- //31.开方失败,
- //(40开方完成/待支付 ,41 支付失败 )待支付,
- // 50 支付成功/待配药,
- //(60配药成功/待配送)等待领药,
- //(61配送失败62分配健管师 65配送中,69配送到服务站)配送中,
- //(100配送到患者手中/已完成)已完成
- //根据状态获得相关信息
- function getStatusInfoAndImg(status){
- var name = "",
- img = "";
- status = status + '';
- switch (status){
- case '-5': //线下取消
- case '-4': //线下退费
- case '-3':
- name = '支付过期';
- img = '../images/yiquxiao_icon.png';
- break;
- case '-2':
- name = '患者自己取消';
- img = '../images/yiquxiao_icon.png';
- break;
- case '-1':
- case '21':
- name = '审核不通过';
- img = '../images/shenhebutongguo_icon.png';
- break;
- case '0':
- case '2':
- case '3':
- case '4':
- case '10':
- case '20':
- case '30':
- case '31':
- name = '审核中';
- img = '../images/shenhezhong_icon.png';
- break;
- case '40':
- case '41':
- name = '待支付';
- img = '../images/daizhifu_icon.png';
- break;
- case '50':
- name = '配药中';
- img = '../images/peiyaozhong_icon.png';
- break;
- case '60':
- name = '等待领药';
- img = '../images/dengdailingyao_icon.png';
- break;
- case '61':
- case '62':
- case '65':
- case '69':
- name = '配送中';
- img = '../images/peisongzhong_icon.png';
- break;
- case '100':
- name = '已完成';
- img = '../images/yiwancheng_icon.png';
- break;
- default:
- break;
- }
- return {name: name, img: img};
- }
- function getStatusName(status){
- var name = "",
- img = "";
- status = status + '';
- switch (status){
- case '-5':
- name = "线下取消";
- break;
- case '-4':
- name = "线下退费";
- break;
- case '-3':
- name = '支付过期';
- break;
- case '-2':
- name = '患者自己取消';
- break;
- case '-1':
- name = '审核不通过';
- break;
- case '0':
- case '2':
- case '3':
- case '4':
- case '10':
- name = '审核中';
- break;
- case '20':
- name = '药师审核中';
- break;
- case '21':
- name = '药师审核失败';
- break;
- case '30':
- name = '开方中';
- break;
- case '31':
- name = '开方失败';
- break;
- case '40':
- name = '待支付';
- break;
- case '41':
- name = '支付失败';
- break;
- case '50':
- name = '配药中';
- break;
- case '60':
- name = '等待领药';
- break;
- case '61':
- case '62':
- case '65':
- case '69':
- name = '配送中';
- break;
- case '100':
- name = '已完成';
- break;
- default:
- break;
- }
- return name;
- }
- function getStatusColor(status){
- var name = "",
- color = "";
- status = status + '';
- switch (status){
- case '-5': //线下取消
- case '-4': //线下退费
- case '-3': //'支付过期'
- case '-2': //'患者自己取消'
- case '-1': //'审核不通过'
- case '21': //'药师审核失败'
- case '31': //'开方失败'
- case '41': //'支付失败'
- color = 'c-error';
- break;
- case '0':
- case '2':
- case '3':
- case '4':
- case '10':
- case '20':
- case '30':
- case '40':
- case '50':
- case '60':
- case '61':
- case '62':
- case '65':
- case '69':
- color = 'c-waiting';
- break;
- case '100':
- color = 'c-success';
- break;
- default:
- break;
- }
- return color;
- }
|