inquiryApplyForm.vue 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. <template>
  2. <view class="content">
  3. <view class="cont">
  4. <view class="other-info">
  5. <!-- <view class="title">咨询内容</view> -->
  6. <view class="item">
  7. <view class="left">
  8. <text class="label">紧急程度:</text>
  9. <text class="text">{{!!applyData?geturgencyType(applyData.urgencyType):"" }} </text>
  10. </view>
  11. </view>
  12. <view class="item">
  13. <view class="left">
  14. <text class="label">状态:</text>
  15. <text class="text">{{!!applyData?getStatus(applyData.status):"" }} </text>
  16. </view>
  17. </view>
  18. <view class="item">
  19. <view class="left">
  20. <text class="label">科别:</text>
  21. <text class="text">{{ !!applyData?applyData.department:"暂无" }} </text>
  22. </view>
  23. </view>
  24. <view class="item" v-if="!!applyData && applyData.outpatientNo">
  25. <view class="left">
  26. <text class="label">门诊号:</text>
  27. <text class="text">{{ !!applyData?(applyData.outpatientNo||"暂无"):"暂无" }}</text>
  28. </view>
  29. </view>
  30. <view class="item" v-if="!!applyData && applyData.allergyHistory">
  31. <view class="left">
  32. <text class="label">过敏史:</text>
  33. <text class="text">{{ !!applyData?applyData.allergyHistory:"暂无" }}</text>
  34. </view>
  35. </view>
  36. <view class="item">
  37. <view class="left">
  38. <text class="label">简要病史:</text>
  39. <text class="text">{{ !!applyData?applyData.briefHistory:"暂无" }}</text>
  40. </view>
  41. </view>
  42. <view class="item">
  43. <view class="left">
  44. <text class="label">目前诊断:</text>
  45. <text class="text">{{ !!applyData?applyData.currentDiagnosis:"暂无" }}</text>
  46. </view>
  47. </view>
  48. <view class="item">
  49. <view class="left">
  50. <text class="label">申请会诊目的:</text>
  51. <text class="text">{{ !!applyData?applyData.department:"暂无" }}</text>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- <view class="doc-box">
  56. <view class="title">会诊医师</view>
  57. <view class="doc-name-box">
  58. <view class="doc-name" v-for="(item,index) in applyData.consDoctorList" :key="index">
  59. {{item.doctorName}}
  60. </view>
  61. </view>
  62. </view> -->
  63. <view class="other-info" v-if="applyData!=null&&applyData.consDoctorList.length>0" >
  64. <view class="title">会诊医师</view>
  65. <view class="item" v-for="(item) in applyData.consDoctorList">
  66. <view class="left">
  67. <text class="label">{{item.doctorName}}</text>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="btn-box" v-if="applyData!=null&&applyData.status==0">
  73. <view class="btn cancel" @click="doApply(0)">拒绝</view>
  74. <view class="btn" @click="doApply(1)">确认申请</view>
  75. </view>
  76. </view>
  77. </template>
  78. <script>
  79. import store from "@/store";
  80. import {getApplyInfo,userConfirm} from '@/api/inquiryOrder.js'
  81. import {getDictByKey} from '@/api/common.js'
  82. import {navigateToDesignatedConversation,setConversation} from "@/pages_im/util/imCommon";
  83. import IMSDK, {SessionType} from "openim-uniapp-polyfill";
  84. export default {
  85. data() {
  86. return {
  87. report:null,
  88. patient:null,
  89. hospital:null,
  90. department:null,
  91. doctor:null,
  92. order:null,
  93. applyId:null,
  94. orderStatusOptions:[],
  95. orderTypeOptions:[],
  96. inquiryTypeOptions:[],
  97. reportImages: [],
  98. tongueImages:[],
  99. faceImages:[],
  100. applyData:null,
  101. }
  102. },
  103. onLoad(options) {
  104. this.applyId=options.id;
  105. this.getApplyData(this.applyId);
  106. // this.getDictByKey("sys_urgency_type");
  107. // this.getDictByKey("sys_inquiry_order_type");
  108. },
  109. onShow() {
  110. },
  111. methods: {
  112. doApply(status){ // 用户点击确定
  113. uni.showLoading({
  114. title: ''
  115. });
  116. var data={"id":parseInt(this.applyId),"userConfirm":status};
  117. userConfirm(data).then(res => {
  118. uni.hideLoading();
  119. if(res.code==200){
  120. uni.showToast({
  121. icon:'success',
  122. title: "操作成功",
  123. });
  124. setTimeout(()=>{
  125. this.getApplyData(this.applyId);
  126. },2000)
  127. }else{
  128. uni.showToast({
  129. icon:'none',
  130. title: res.msg,
  131. });
  132. }
  133. },
  134. rej => {}
  135. );
  136. },
  137. getApplyData(id){
  138. var that=this;
  139. getApplyInfo(this.applyId).then(res => {
  140. if(res.code==200){
  141. this.applyData=res.data;
  142. }
  143. },
  144. err => {
  145. }
  146. );
  147. },
  148. geturgencyType(val){
  149. if(val==0){
  150. return "普通"
  151. }else if(val==1){
  152. return "急诊"
  153. }
  154. },
  155. getStatus(val){
  156. let status="";
  157. if(val==0){
  158. status="待会诊"
  159. }else if(val==1){
  160. status="进行中"
  161. }
  162. else if(val==2){
  163. status="已完成"
  164. }
  165. else if(val==3){
  166. status="已取消"
  167. }
  168. return status;
  169. },
  170. getDictByKey(key){
  171. var data={key:key}
  172. getDictByKey(data).then(
  173. res => {
  174. if(res.code==200){
  175. if(key=="sys_inquiry_order_type"){
  176. this.orderTypeOptions=res.data;
  177. }
  178. if(key=="sys_inquiry_type"){
  179. this.inquiryTypeOptions=res.data;
  180. }
  181. if(key=="sys_inquiry_status"){
  182. this.orderStatusOptions=res.data;
  183. }
  184. }
  185. },
  186. err => {
  187. }
  188. );
  189. },
  190. navTo(url){
  191. uni.navigateTo({
  192. url: url
  193. })
  194. }
  195. }
  196. }
  197. </script>
  198. <style lang="scss">
  199. page{
  200. background: #f6f6f6;
  201. }
  202. </style>
  203. <style scoped lang="scss">
  204. .content{
  205. position: relative;
  206. .cont{
  207. position: relative;
  208. padding: 0rpx 20rpx 120rpx;
  209. z-index: 999;
  210. width: 100%;
  211. display: flex;
  212. flex-direction: column;
  213. }
  214. .doc-box{
  215. margin: 20rpx 0rpx 0rpx;
  216. padding: 0rpx 30rpx;
  217. background-color: #fff;
  218. border-radius: 20upx;
  219. .title{
  220. height: 80upx;
  221. line-height: 80upx;
  222. font-size: 30upx;
  223. color: #000;
  224. font-weight: bold;
  225. border-bottom: 2upx solid #eeeeee;
  226. }
  227. .doc-name-box{
  228. margin-top: 15rpx;
  229. display: flex;
  230. align-items: center;
  231. justify-content: flex-start;
  232. .doc-name{
  233. font-size: 38rpx;
  234. font-weight: bold;
  235. }
  236. .doc-star{
  237. margin-left: 10rpx;
  238. }
  239. }
  240. .doc-dept-box{
  241. display: flex;
  242. align-items: center;
  243. justify-content: flex-start;
  244. margin-top: 15rpx;
  245. font-size: 28upx;
  246. font-family: PingFang SC;
  247. color: #2d2b36;
  248. }
  249. .doc-his-box{
  250. display: flex;
  251. align-items: center;
  252. justify-content: flex-start;
  253. margin-top: 15rpx;
  254. font-size: 28upx;
  255. font-family: PingFang SC;
  256. color: #9a9a9c;
  257. }
  258. .doc-spec-box{
  259. display: flex;
  260. align-items: center;
  261. justify-content: space-between;
  262. .left{
  263. display: flex;
  264. align-items: center;
  265. justify-content: flex-start;
  266. .title{
  267. font-size: 28upx;
  268. font-family: PingFang SC;
  269. color: #9a9a9c;
  270. border-bottom: none;
  271. }
  272. .spec{
  273. margin-left: 10rpx;
  274. font-size: 28upx;
  275. font-family: PingFang SC;
  276. color: #9a9a9c;
  277. }
  278. }
  279. .right{
  280. .btn{
  281. font-size: 28upx;
  282. font-family: PingFang SC;
  283. color: #C39A58;
  284. }
  285. }
  286. }
  287. }
  288. .other-info{
  289. margin-top: 20upx;
  290. background-color: #fff;
  291. border-radius: 20upx;
  292. padding: 0 30upx;
  293. .title{
  294. height: 80upx;
  295. line-height: 80upx;
  296. font-size: 30upx;
  297. color: #000;
  298. font-weight: bold;
  299. border-bottom: 2upx solid #eeeeee;
  300. }
  301. .item{
  302. min-height: 70upx;
  303. display: flex;
  304. align-items: center;
  305. justify-content: space-between;
  306. &:last-child{
  307. border-bottom: none;
  308. }
  309. .left{
  310. flex: 1;
  311. display: flex;
  312. align-items: center;
  313. .label{
  314. min-width: 140rpx;
  315. font-size: 28upx;
  316. color: #000;
  317. }
  318. .text{
  319. font-size: 28upx;
  320. color: #1b1b1b;
  321. }
  322. }
  323. .status{
  324. font-size: 28upx;
  325. font-family: PingFang SC;
  326. font-weight: bold;
  327. }
  328. .red{
  329. color: #db5053;
  330. }
  331. .green{
  332. color: #C39A58;
  333. }
  334. .gray{
  335. color: #9c9c9c;
  336. }
  337. .item-btn{
  338. max-width: 200rpx;
  339. padding: 0rpx 15rpx;
  340. height: 48upx;
  341. border-radius: 24upx;
  342. line-height: 48upx;
  343. font-size: 24upx;
  344. color: #000;
  345. border: 1upx solid #d8d8d8;
  346. display: flex;
  347. align-items: center;
  348. justify-content: center;
  349. }
  350. }
  351. }
  352. .btn-box{
  353. height: 100rpx;
  354. z-index: 9999;
  355. width: 100%;
  356. padding: 0rpx 30upx;
  357. position: fixed;
  358. bottom: 0;
  359. left: 0;
  360. box-sizing: border-box;
  361. background-color: #ffffff;
  362. display: flex;
  363. align-items: center;
  364. justify-content: flex-end;
  365. .btn{
  366. padding: 15rpx 30rpx;
  367. margin-left: 10rpx;
  368. text-align: center;
  369. font-size: 28upx;
  370. font-family: PingFang SC;
  371. color: #FFFFFF;
  372. background: #C39A58;
  373. border-radius: 45upx;
  374. }
  375. .cancel{
  376. background: #ffff;
  377. color: #C39A58;
  378. border:1px solid #C39A58;
  379. }
  380. }
  381. }
  382. </style>