prescribe.vue 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120
  1. <template>
  2. <view class="content">
  3. <view class="fixed-top-box">
  4. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  5. <view class="back-box" @click="back">
  6. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/back_white.png" mode=""></image>
  7. <text class="title">填写处方信息</text>
  8. <text></text>
  9. </view>
  10. </view>
  11. <template v-if="order!=null">
  12. <view class="inner">
  13. <view :style="{height: statusBarHeight}"></view>
  14. <!-- 步骤 -->
  15. <view class="steps-box">
  16. <view class="item active">填写信息</view>
  17. <image class="arrow" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow4.png" mode=""></image>
  18. <view class="item">医生开方</view>
  19. <image class="arrow" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow4.png" mode=""></image>
  20. <view class="item">支付订单</view>
  21. <image class="arrow" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow4.png" mode=""></image>
  22. <view class="item">厂家发货</view>
  23. </view>
  24. <!-- 提示 -->
  25. <view class="tip-box">
  26. <view class="top">
  27. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/safe2.png" mode=""></image>
  28. <text class="text">依据国家规定、处方药需凭处方购买</text>
  29. </view>
  30. <view class="time-tip">填写问诊人信息、处方信息</view>
  31. </view>
  32. <view class="info-box">
  33. <!-- 选择问诊人 -->
  34. <view class="chose-people">
  35. <view class="title-box">
  36. <text class="title">选择问诊人</text>
  37. <view class="add-box" @click="addPeople()">
  38. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/add26.png" mode=""></image>
  39. <text >添加</text>
  40. </view>
  41. </view>
  42. <view class="peop-list" v-if="patient.length>0">
  43. <view v-for="(item,index) in patient" :key="index" :class="patientId == item.patientId?'item active':'item'" @click="chosePatient(item)">
  44. <view class="name">{{ item.patientName }}</view>
  45. <view class="info">
  46. <text class="sex" v-if="item.gender==1">男</text>
  47. <text class="sex" v-if="item.gender==2">女</text>
  48. <text class="ege">{{$getAge(item.birthday)}}岁</text>
  49. </view>
  50. <!-- 选中的对号角标 -->
  51. <image v-if="patientId == item.patientId" class="active-img" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/sel_right50.png" mode=""></image>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- <view class="text-content">
  56. <view class="title">
  57. <text class="black">主诉</text>
  58. <text class="gray">(选填)</text>
  59. </view>
  60. <textarea class="textArea" maxlength="200" @input="chiefComplaintInput" placeholder="请填写主诉内容"></textarea>
  61. </view>
  62. <view class="text-content">
  63. <view class="title">
  64. <text class="black">既往病史</text>
  65. <text class="gray">(选填)</text>
  66. </view>
  67. <textarea class="textArea" maxlength="200" @input="historyIllnessInput" placeholder="请填写既往病史内容"></textarea>
  68. </view> -->
  69. <view class="img-content">
  70. <view class="title">
  71. <text class="black">复诊凭证</text>
  72. <text class="gray">(选填) {{imgList.length}}/4</text>
  73. </view>
  74. <view class="upload-img">
  75. <view class="img" v-for="(item,index) in imgList" :key="index" >
  76. <image :src="item" mode="aspectFill" @click="previewImage(index)"></image>
  77. <view class="del" @click="delImg(index)" >
  78. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/del2.png"></image>
  79. </view>
  80. </view>
  81. <view class="chose-img" @tap="chooseImage(1)" v-if="imgList.length<4">
  82. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/adds.png"></image>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 疾病选择 -->
  87. <view class="disease-select">
  88. <view class="x-bc" @click="show=true">
  89. <view class="title">
  90. <text class="black">本次用药的确诊疾病</text>
  91. <text class="gray">(可多选)</text>
  92. </view>
  93. <u-icon name="arrow-right" color="#222" size="18" ></u-icon>
  94. </view>
  95. <view class="dise-list">
  96. <view
  97. v-for="(item,index) in activeDise"
  98. :key="index"
  99. class="item active x-bc"
  100. >
  101. {{ item }}
  102. <u-icon name="close" color="#fff" size="16" @click="choseDise(item,1)" style="margin-left: 10rpx;"></u-icon>
  103. </view>
  104. </view>
  105. </view>
  106. <!-- 是否使用过此药 -->
  107. <view class="check-box" v-for="(que,index) in quesList" :key="index">
  108. <view class="left">
  109. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/yao.png" mode=""></image>
  110. <text class="text">{{que.title}}</text>
  111. </view>
  112. <radio-group style="display: flex;align-items: center;" @change="changeRadio($event,index,1)">
  113. <label class="label" v-for="(option,index) in que.options" :key="index">
  114. <radio :value="option" :checked="option==que.answer" style="margin-right: 16upx;" />
  115. <text class="my-radio-text">{{option}}</text>
  116. </label>
  117. </radio-group>
  118. </view>
  119. <view class="check-box">
  120. <view class="left">
  121. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/yao.png" mode=""></image>
  122. <text class="text">是否是备孕/怀孕</text>
  123. </view>
  124. <radio-group style="display: flex;align-items: center;" @change="changeRadio($event,'isLactation',0)">
  125. <label style="margin-right: 50upx;">
  126. <radio value="1" :checked="isLactation==1" style="margin-right: 16upx;" />
  127. <text class="my-radio-text">是</text>
  128. </label>
  129. <label>
  130. <radio value="0" :checked="isLactation==0" style="margin-right: 16upx;" />
  131. <text class="my-radio-text">否</text>
  132. </label>
  133. </radio-group>
  134. </view>
  135. <view class="check-box">
  136. <view class="left">
  137. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/yao.png" mode=""></image>
  138. <text class="text">是否是哺乳期</text>
  139. </view>
  140. <radio-group style="display: flex;align-items: center;" @change="changeRadio($event,'isPregnantWoman',0)">
  141. <label style="margin-right: 50upx;">
  142. <radio value="1" :checked="isPregnantWoman==1" style="margin-right: 16upx;" />
  143. <text class="my-radio-text">是</text>
  144. </label>
  145. <label>
  146. <radio value="0" :checked="isPregnantWoman==0" style="margin-right: 16upx;" />
  147. <text class="my-radio-text">否</text>
  148. </label>
  149. </radio-group>
  150. </view>
  151. </view>
  152. </view>
  153. <view class="agreement">
  154. <label @click="handleAgreement()">
  155. <checkbox :checked="isAgreement" color="#2583EB" style="transform:scale(0.7)" />我确认已确诊此疾病并使用过该药,且无过敏史、无相关禁忌症和不良反应
  156. </label>
  157. </view>
  158. <view class="btn-box">
  159. <view class="btn" @click="submit()">去开处方</view>
  160. </view>
  161. </template>
  162. <view v-else>
  163. <view class="empty x-ac" style="flex-direction: column;">
  164. <u-loading-icon text="加载中"></u-loading-icon>
  165. </view>
  166. </view>
  167. <u-popup :show="show" :round="10" mode="bottom" closeable :closeOnClickOverlay="false" @close="close">
  168. <view class="popbox-title">
  169. <view>选择本次用药的确诊疾病</view>
  170. </view>
  171. <view class="search-cont">
  172. <view class="inner" style="margin-top:0">
  173. <image class="icon-search" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/icon_search.png" mode=""></image>
  174. <input type="text" v-model="diagnosisName" placeholder="输入疾病搜索" confirm-type="search" @confirm="doSearchUser" placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" />
  175. </view>
  176. </view>
  177. <scroll-view :scroll-y="true" class="popbox" style="height: 60vh;" @scrolltolower="scrolltolower">
  178. <view v-for="(item, i) in diseaseList" :key="i" @click="choseDise(item.diagnosisName)">
  179. <view class="popbox-item x-bc">
  180. <view class="name">{{item.diagnosisName}}</view>
  181. <view v-show="activeDise.includes(item.diagnosisName)">
  182. <u-icon name="checkmark" color="#2979ff" size="22"></u-icon>
  183. </view>
  184. </view>
  185. </view>
  186. <view class="empty x-ac" style="flex-direction: column;" v-if="diseaseList&&diseaseList.length==0">
  187. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/global_search_empty.png" style="width: 200rpx;" mode="widthFix"></image>
  188. <view>{{msg}}</view>
  189. </view>
  190. </scroll-view>
  191. </u-popup>
  192. </view>
  193. </template>
  194. <script>
  195. import {getStoreOrderById} from '@/api/myStoreOrder.js'
  196. import {getWeixinPrescribeTemps} from '@/api/common'
  197. import {doPrescribe,diseaseQueryList,selectSquareInformation,cacheOrderPrescription,selectOrderPrescription} from './api/prescribe'
  198. import {getPatientList,delPatient} from '@/api/patient'
  199. export default {
  200. data() {
  201. return {
  202. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  203. order:null,
  204. temps:[],
  205. imgList: [],
  206. orderId:null,
  207. patient:[],
  208. patientId:null,
  209. patientInfo: {},
  210. // 疾病列表
  211. diseaseList: [],
  212. // 选中的疾病
  213. activeDise: [],
  214. isLactation: 0,
  215. isPregnantWoman: 0,
  216. chiefComplaint:null,
  217. historyIllness:null,
  218. diagnosisName: '',
  219. pageNum: 1,
  220. pageSize: 10,
  221. quesList:[
  222. // {
  223. // answer: "是",
  224. // subjectId: 3,
  225. // title: "是否使用过此类药物",
  226. // options: ['是','否']
  227. // },
  228. {
  229. answer: "否",
  230. subjectId: 4,
  231. title: "是否有药物过敏史",
  232. options: ['是','否']
  233. },
  234. {
  235. answer: "否",
  236. subjectId: 5,
  237. title: "肝肾功能是否有异常",
  238. options: ['是','否']
  239. }
  240. ],
  241. show: false,
  242. msg: '暂无数据',
  243. isAgreement: false,
  244. hasMore: true,
  245. dataKey: '',
  246. dataPrescribeKey:''
  247. }
  248. },
  249. onLoad(option) {
  250. this.dataKey = option.dataKey || ''
  251. this.dataPrescribeKey = option.dataPrescribeKey || ''
  252. this.orderId=option.orderId
  253. if(this.dataPrescribeKey) {
  254. this.getSquareInformation()
  255. this.cacheOrderPrescription()
  256. } else {
  257. this.selectOrderPrescription()
  258. }
  259. this.getPatientList();
  260. uni.$on('refreshPatient', () => {
  261. this.getPatientList()
  262. })
  263. this.getWeixinPrescribeTemps();
  264. this.diseaseQueryList()
  265. },
  266. onShow() {
  267. this.getPatientList();
  268. },
  269. methods: {
  270. // 根据dataKey查询处方填写信息
  271. getSquareInformation() {
  272. const param = {
  273. userId: uni.getStorageSync('companyUserId'),
  274. dataKey: this.dataPrescribeKey
  275. }
  276. uni.showLoading({
  277. title: '加载中'
  278. })
  279. selectSquareInformation(param).then(res=>{
  280. uni.hideLoading()
  281. if(res.code==200) {
  282. this.imgList = res.data.imgList ? res.data.imgList.split(','):[];
  283. const str = res.data.beforeAiDataList.find(v => v.subjectId === 1)?.answer || '';
  284. this.activeDise = str.split(',').filter(Boolean); // 去掉空元素
  285. // 例:["急性上呼吸道感染"]
  286. this.getStoreOrderById();
  287. } else {
  288. uni.showToast({
  289. icon:'none',
  290. title: res.msg,
  291. });
  292. }
  293. })
  294. },
  295. // 绑定订单编码和dataPrescribeKey
  296. cacheOrderPrescription() {
  297. const param = {
  298. orderCode: this.orderId,
  299. dataKey: this.dataPrescribeKey
  300. }
  301. cacheOrderPrescription(param).then(res=>{
  302. if(res.code==200) {
  303. this.imgList = res.data.imgList ? res.data.imgList.split(','):[];
  304. this.activeDise = res.data.beforeAiDataList
  305. } else {
  306. uni.showToast({
  307. icon:'none',
  308. title: res.msg,
  309. });
  310. }
  311. })
  312. },
  313. // 根据订单编码orderCode查询dataKey
  314. selectOrderPrescription() {
  315. const param = {
  316. orderCode: this.orderId,
  317. }
  318. uni.showLoading({
  319. title: '加载中'
  320. })
  321. selectOrderPrescription(param).then(res=>{
  322. uni.hideLoading()
  323. if(res.code==200) {
  324. this.dataPrescribeKey = res.data.dataKey || ''
  325. if(this.dataPrescribeKey) {
  326. this.getSquareInformation()
  327. }
  328. } else {
  329. uni.showToast({
  330. icon:'none',
  331. title: res.msg,
  332. });
  333. }
  334. })
  335. },
  336. handleAgreement() {
  337. this.isAgreement = !this.isAgreement;
  338. },
  339. back(){
  340. // uni.showToast({
  341. // icon:'none',
  342. // title: "请填写资料提交处方,否则将无法发货"
  343. // });
  344. uni.showModal({
  345. title: '提示',
  346. content: '请填写资料提交处方,否则将无法发货,确定要返回吗?',
  347. cancelColor: '#2583EB',
  348. confirmColor: '#000000',
  349. success: function (res) {
  350. if (res.confirm) {
  351. uni.navigateBack()
  352. } else if (res.cancel) {
  353. console.log('用户点击取消');
  354. }
  355. }
  356. });
  357. },
  358. close() {
  359. this.show = false
  360. },
  361. diseaseQueryList(){
  362. var that = this;
  363. const param = {
  364. orderId: this.orderId,
  365. diagnosisName: this.diagnosisName,
  366. pageNum: this.pageNum,
  367. pageSize: this.pageSize,
  368. }
  369. diseaseQueryList(param).then(
  370. res => {
  371. if(res.code==200){
  372. if (that.pageNum == 1) {
  373. that.diseaseList = res.datas;
  374. } else {
  375. that.diseaseList = that.diseaseList.concat(res.datas);
  376. }
  377. if(that.diseaseList.length>=res.total) {
  378. that.hasMore = false
  379. } else {
  380. that.hasMore = true
  381. }
  382. }else{
  383. uni.showToast({
  384. icon:'none',
  385. title: "请求失败",
  386. });
  387. that.diseaseList = [];
  388. }
  389. },
  390. rej => {}
  391. );
  392. },
  393. scrolltolower() {
  394. if(!this.hasMore) return
  395. this.pageNum++;
  396. this.diseaseQueryList()
  397. },
  398. doSearchUser() {
  399. this.hasMore = true
  400. this.pageNum = 1;
  401. this.diseaseQueryList()
  402. },
  403. changeRadio(e,name,type) {
  404. if(type==1) {
  405. this.quesList[name].answer = e.detail.value
  406. } else {
  407. this[name] = e.detail.value
  408. }
  409. },
  410. getStoreOrderById(){
  411. var data={orderId:this.orderId}
  412. getStoreOrderById(data).then(
  413. res => {
  414. if(res.code==200){
  415. this.order=res.order
  416. }else{
  417. }
  418. },
  419. rej => {}
  420. );
  421. },
  422. getWeixinPrescribeTemps(){
  423. getWeixinPrescribeTemps().then(
  424. res => {
  425. if(res.code==200){
  426. this.temps=res.temp
  427. console.log(this.temps)
  428. }else{
  429. }
  430. },
  431. rej => {}
  432. );
  433. },
  434. chiefComplaintInput(e) {
  435. this.chiefComplaint = e.detail.value
  436. },
  437. historyIllnessInput(e) {
  438. this.historyIllness = e.detail.value
  439. },
  440. // 选择图片
  441. chooseImage(type) {
  442. var that=this;
  443. uni.chooseImage({
  444. count: 4, //默认9
  445. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  446. sourceType: ['album', 'camera'], //从相册选择
  447. success: (res) => {
  448. uni.uploadFile({
  449. url: uni.getStorageSync('requestPath')+'/app/common/uploadOSS', //仅为示例,非真实的接口地址
  450. filePath: res.tempFilePaths[0],
  451. name: 'file',
  452. success: (res) => {
  453. that.imgList.push(JSON.parse( res.data).url)
  454. }
  455. });
  456. }
  457. });
  458. },
  459. //图片预览
  460. previewImage(index){
  461. //预览图片
  462. uni.previewImage({
  463. urls: this.imgList,
  464. current: this.imgList[index]
  465. });
  466. },
  467. delImg(index) {
  468. uni.showModal({
  469. title: '提示',
  470. content: '确定要删除这张图片吗?',
  471. cancelText: '取消',
  472. confirmText: '确定',
  473. success: res => {
  474. if (res.confirm) {
  475. this.imgList.splice(index, 1);
  476. }
  477. }
  478. })
  479. },
  480. submit(){
  481. console.log('this.isAgreement==',this.isAgreement)
  482. if (!this.isAgreement) {
  483. uni.showToast({
  484. icon: 'none',
  485. title: '请先勾选确认'
  486. });
  487. return false;
  488. }
  489. var that=this;
  490. if(this.patientId==null){
  491. uni.showToast({
  492. icon:'none',
  493. title: "请选择患者"
  494. });
  495. return;
  496. }
  497. uni.showLoading({
  498. title:"正在处理中"
  499. })
  500. // var data={
  501. // patientId:this.patientId,
  502. // orderId:this.orderId,
  503. // isAllergic:this.isAllergic,
  504. // isLiver:this.isLiver,
  505. // isRenal:this.isRenal,
  506. // isLactation:this.isLactation,
  507. // chiefComplaint:this.chiefComplaint,
  508. // historyIllness:this.historyIllness,
  509. // recordPic:this.imgList.toString()
  510. // }
  511. // const products = JSON.parse(this.order.itemJson)
  512. // console.log("products=",products)
  513. // let answerMedicine = this.order
  514. if(this.activeDise.length==0) {
  515. uni.showToast({
  516. icon:'none',
  517. title: "请选择本次用药的确诊疾病"
  518. });
  519. return
  520. }
  521. let products = JSON.parse(this.order.itemJson)
  522. let answerMedicine = products.map(it=>({
  523. medicineId:it.productId,
  524. number: it.num
  525. }))
  526. if(!answerMedicine||answerMedicine.length==0) {
  527. uni.showToast({
  528. icon:'none',
  529. title: "用药信息选择不正确"
  530. });
  531. return
  532. }
  533. const beforeAiDataList = [
  534. { answer: this.activeDise.join(','), subjectId: 1, title: '症状' },
  535. {
  536. answerMedicine: JSON.stringify(answerMedicine),
  537. subjectId: 2,
  538. title: '居民用药信息选择'
  539. },
  540. {
  541. answer: "是",
  542. subjectId: 3,
  543. title: "是否使用过此类药物"
  544. },
  545. ...this.quesList.map(({ answer, subjectId, title }) => ({ answer, subjectId, title }))
  546. ];
  547. const relationMap = { '本人': 1, '父母': 2,'配偶': 3, '子女': 4 };
  548. const relationship = relationMap[this.patientInfo.relation] ?? 5;
  549. const data={
  550. souceFrom: 0,//0-微信小程序,1-APP,2-H5,3-支付宝小程序
  551. storeOrderId: this.orderId,
  552. imgList:this.imgList.toString(),
  553. isLactation: this.isLactation,
  554. isPregnantWoman: this.isPregnantWoman,
  555. patientId:this.patientId,
  556. userId: uni.getStorageSync('userId'),
  557. relationship, // 1-本人,2-父母,3-配偶,4-子女,5-其他
  558. beforeAiDataList
  559. }
  560. doPrescribe(data).then(
  561. res => {
  562. uni.hideLoading()
  563. if(res.code==200){
  564. uni.redirectTo({
  565. url: '/pages/index/webview?type=prescribe&url='+encodeURIComponent(res.data)
  566. })
  567. // uni.showToast({
  568. // icon:'success',
  569. // title:res.msg,
  570. // });
  571. // var order =res.order;
  572. // uni.requestSubscribeMessage({
  573. // tmplIds: this.temps,
  574. // success(res) {
  575. // setTimeout(function(){
  576. // if(order.paid!=1){
  577. // uni.redirectTo({
  578. // url: './paymentOrder?orderId='+that.order.id
  579. // })
  580. // }
  581. // else{
  582. // uni.navigateBack({
  583. // delta: 1
  584. // });
  585. // }
  586. // },500);
  587. // },
  588. // fail(res) {
  589. // setTimeout(function(){
  590. // if(order.paid!=1){
  591. // uni.redirectTo({
  592. // url: './paymentOrder?orderId='+that.order.id
  593. // })
  594. // }
  595. // else{
  596. // uni.navigateBack({
  597. // delta: 1
  598. // });
  599. // }
  600. // },500);
  601. // }
  602. // })
  603. }else{
  604. uni.showToast({
  605. icon:'none',
  606. title: res.msg,
  607. });
  608. }
  609. },
  610. rej => {}
  611. );
  612. },
  613. getPatientList(){
  614. uni.showLoading({
  615. title:"正在加载中"
  616. })
  617. getPatientList().then(
  618. res => {
  619. uni.hideLoading()
  620. if(res.code==200){
  621. this.patient=res.data;
  622. }else{
  623. uni.showToast({
  624. icon:'none',
  625. title: "请求失败",
  626. });
  627. }
  628. },
  629. rej => {}
  630. );
  631. },
  632. // 选中问诊人
  633. chosePatient(item) {
  634. this.patientInfo = item
  635. this.patientId = item.patientId
  636. },
  637. // 添加问诊人
  638. addPeople() {
  639. uni.navigateTo({
  640. url:"/pages_user/patient"
  641. })
  642. },
  643. // 疾病选择
  644. choseDise(item) {
  645. this.activeDise.includes(item) ? this.activeDise.splice(this.activeDise.indexOf(item), 1) : this.activeDise.push(item); // 不在就加上
  646. }
  647. }
  648. }
  649. </script>
  650. <style lang="scss" scoped>
  651. .label {
  652. margin-right: 50upx;
  653. &:last-child {
  654. margin-right: 0;
  655. }
  656. }
  657. .popbox-item {
  658. padding: 24rpx;
  659. border-bottom: 1rpx solid #eee;
  660. }
  661. .agreement {
  662. padding: 40rpx 30rpx 0 30rpx;
  663. font-size: 28rpx;
  664. font-family: PingFang SC;
  665. font-weight: 500;
  666. color: #666666;
  667. }
  668. .popbox {
  669. background-color: #fff;
  670. &-title {
  671. width: 100%;
  672. display: flex;
  673. align-items: center;
  674. justify-content: center;
  675. padding: 24rpx;
  676. background-color: #fff;
  677. border-bottom: 1rpx solid #EDEEEF;
  678. box-sizing: border-box;
  679. }
  680. }
  681. .search-cont{
  682. padding: 16upx 30upx;
  683. background-color: #FFFFFF;
  684. .inner{
  685. box-sizing: border-box;
  686. width: 100%;
  687. height: 72upx;
  688. background: #F7F7F7;
  689. border-radius: 36upx;
  690. display: flex;
  691. align-items: center;
  692. padding: 0 30upx;
  693. .icon-search{
  694. width: 28upx;
  695. height: 28upx;
  696. margin-right: 20upx;
  697. }
  698. input{
  699. height: 60upx;
  700. line-height: 60upx;
  701. flex: 1;
  702. }
  703. }
  704. }
  705. .content{
  706. height: 100%;
  707. display: flex;
  708. flex-direction: column;
  709. justify-content: space-between;
  710. .fixed-top-box{
  711. width: 100%;
  712. background: linear-gradient(to right, #2583EB 0%, #60CDC3 100%);
  713. position: fixed;
  714. top: 0;
  715. left: 0;
  716. z-index: 1000;
  717. .back-box{
  718. height: 88upx;
  719. padding-left: 22upx;
  720. display: flex;
  721. align-items: center;
  722. justify-content: space-between;
  723. padding: 0 20upx;
  724. image{
  725. width: 40upx;
  726. height: 40upx;
  727. }
  728. .title{
  729. font-size: 36upx;
  730. font-family: PingFang SC;
  731. font-weight: 500;
  732. color: #FFFFFF;
  733. }
  734. }
  735. }
  736. .inner{
  737. margin-top: 88rpx;
  738. .steps-box{
  739. height: 88upx;
  740. background: #FFFFFF;
  741. padding: 0 48upx;
  742. display: flex;
  743. align-items: center;
  744. justify-content: space-between;
  745. .item{
  746. font-size: 28upx;
  747. font-family: PingFang SC;
  748. font-weight: 500;
  749. color: #666666;
  750. &.active{
  751. font-weight: bold;
  752. color: #2583EB;
  753. }
  754. }
  755. .arrow{
  756. width: 12upx;
  757. height: 22upx;
  758. }
  759. }
  760. .tip-box{
  761. box-sizing: border-box;
  762. height: 130upx;
  763. background: #FFF4E6;
  764. padding: 26upx 0 30upx 50upx;
  765. display: flex;
  766. flex-direction: column;
  767. justify-content: space-between;
  768. .top{
  769. display: flex;
  770. align-items: center;
  771. image{
  772. width: 26upx;
  773. height: 31upx;
  774. margin-right: 10upx;
  775. }
  776. .text{
  777. font-size: 28upx;
  778. font-family: PingFang SC;
  779. font-weight: 500;
  780. color: #EF8A07;
  781. line-height: 1;
  782. }
  783. }
  784. .time-tip{
  785. padding-left: 40upx;
  786. font-size: 24upx;
  787. font-family: PingFang SC;
  788. font-weight: 500;
  789. color: #999999;
  790. line-height: 1;
  791. }
  792. }
  793. .info-box{
  794. padding: 20upx;
  795. .chose-people{
  796. box-sizing: border-box;
  797. background: #FFFFFF;
  798. border-radius: 16upx;
  799. padding: 40upx 30upx 30upx;
  800. .title-box{
  801. display: flex;
  802. align-items: center;
  803. justify-content: space-between;
  804. .title{
  805. font-size: 32upx;
  806. font-family: PingFang SC;
  807. font-weight: bold;
  808. color: #111111;
  809. }
  810. .add-box{
  811. display: flex;
  812. align-items: center;
  813. image{
  814. width: 26upx;
  815. height: 26upx;
  816. margin-right: 11upx;
  817. }
  818. text{
  819. font-size: 28upx;
  820. font-family: PingFang SC;
  821. font-weight: 500;
  822. color: #111111;
  823. }
  824. }
  825. }
  826. .peop-list{
  827. display: flex;
  828. flex-wrap: wrap;
  829. margin-top: 30upx;
  830. .item{
  831. box-sizing: border-box;
  832. padding: 18upx 30upx;
  833. width: 31.28%;
  834. height: 110upx;
  835. background: #F7F7F7;
  836. border-radius: 16upx;
  837. margin: 0 20upx 10upx 0;
  838. border: 2upx solid #F7F7F7;
  839. display: flex;
  840. flex-direction: column;
  841. justify-content: space-between;
  842. &:nth-child(3n){
  843. margin-right: 0;
  844. }
  845. &.active{
  846. background: rgba(230, 250, 247, 0);
  847. border: 2upx solid #2583EB;
  848. position: relative;
  849. }
  850. .active-img{
  851. width: 50upx;
  852. height: 50upx;
  853. position: absolute;
  854. right: -2upx;
  855. bottom: -2upx;
  856. }
  857. .name{
  858. font-size: 30upx;
  859. line-height: 1;
  860. font-family: PingFang SC;
  861. font-weight: bold;
  862. color: #111111;
  863. }
  864. .info{
  865. display: flex;
  866. align-items: center;
  867. .sex,
  868. .ege{
  869. font-size: 26upx;
  870. font-family: PingFang SC;
  871. line-height: 1;
  872. font-weight: 500;
  873. color: #666666;
  874. }
  875. .ege{
  876. margin-left: 19upx;
  877. }
  878. }
  879. }
  880. }
  881. }
  882. .disease-select{
  883. box-sizing: border-box;
  884. min-height: 286upx;
  885. background: #FFFFFF;
  886. border-radius: 16upx;
  887. padding: 40upx 30upx 22upx;
  888. margin-top: 20upx;
  889. margin-bottom: 20upx;
  890. .title{
  891. display: flex;
  892. align-items: center;
  893. align-items: flex-end;
  894. .black{
  895. font-size: 32upx;
  896. font-family: PingFang SC;
  897. font-weight: bold;
  898. color: #111111;
  899. line-height: 1;
  900. margin-left: 10upx;
  901. }
  902. .gray{
  903. font-size: 28upx;
  904. font-family: PingFang SC;
  905. color: #999999;
  906. line-height: 1;
  907. margin-left: 10upx;
  908. }
  909. }
  910. .dise-list{
  911. display: flex;
  912. flex-wrap: wrap;
  913. margin-top: 26upx;
  914. .item{
  915. box-sizing: border-box;
  916. height: 64upx;
  917. line-height: 64upx;
  918. font-size: 28upx;
  919. font-family: PingFang SC;
  920. font-weight: 500;
  921. color: #2583EB;
  922. background: #eef5fd;
  923. border: 1px solid #2583EB;
  924. padding: 0 20upx;
  925. border-radius: 32upx;
  926. margin: 0 20upx 20upx 0;
  927. &.active{
  928. background: #2583EB;
  929. border: 1px solid #2583EB;
  930. color: #FFFFFF;
  931. }
  932. }
  933. }
  934. }
  935. .text-content{
  936. box-sizing: border-box;
  937. min-height: 286upx;
  938. background: #FFFFFF;
  939. border-radius: 16upx;
  940. padding: 40upx 30upx 22upx;
  941. margin-top: 20upx;
  942. .title{
  943. display: flex;
  944. align-items: center;
  945. align-items: flex-end;
  946. .black{
  947. font-size: 32upx;
  948. font-family: PingFang SC;
  949. font-weight: bold;
  950. color: #111111;
  951. line-height: 1;
  952. margin-left: 10upx;
  953. }
  954. .gray{
  955. font-size: 28upx;
  956. font-family: PingFang SC;
  957. color: #999999;
  958. line-height: 1;
  959. margin-left: 10upx;
  960. }
  961. }
  962. .textArea{
  963. margin: 30rpx 0rpx 0rpx 0rpx;
  964. width: 100%;
  965. }
  966. }
  967. .img-content{
  968. box-sizing: border-box;
  969. min-height: 286upx;
  970. background: #FFFFFF;
  971. border-radius: 16upx;
  972. padding: 40upx 30upx 22upx;
  973. margin-top: 20upx;
  974. margin-bottom: 20upx;
  975. .title{
  976. display: flex;
  977. align-items: center;
  978. align-items: flex-end;
  979. .black{
  980. font-size: 32upx;
  981. font-family: PingFang SC;
  982. font-weight: bold;
  983. color: #111111;
  984. line-height: 1;
  985. margin-left: 10upx;
  986. }
  987. .gray{
  988. font-size: 28upx;
  989. font-family: PingFang SC;
  990. color: #999999;
  991. line-height: 1;
  992. margin-left: 10upx;
  993. }
  994. }
  995. .textArea{
  996. margin: 30rpx 0rpx 0rpx 0rpx;
  997. width: 100%;
  998. }
  999. .upload-img{
  1000. margin: 30rpx 0rpx 0rpx 0rpx;
  1001. width: 100%;
  1002. display: flex;
  1003. align-items: flex-start;
  1004. .img{
  1005. margin-right: 10rpx;
  1006. width: 100rpx;
  1007. height: 100rpx;
  1008. position: relative;
  1009. image{
  1010. width: 100%;
  1011. height: 100%;
  1012. }
  1013. .del{
  1014. right:0rpx;
  1015. top:0rpx;
  1016. position: absolute;
  1017. image{
  1018. width: 30rpx;
  1019. height:30rpx;
  1020. }
  1021. }
  1022. }
  1023. .chose-img{
  1024. border-radius: 5rpx;
  1025. border: 1px solid #eee;
  1026. padding: 5rpx;
  1027. display: flex;
  1028. align-items: center;
  1029. justify-content: center;
  1030. width: 100rpx;
  1031. height: 100rpx;
  1032. image{
  1033. width: 50rpx;
  1034. height: 50rpx;
  1035. }
  1036. }
  1037. }
  1038. }
  1039. .check-box{
  1040. height: 88upx;
  1041. background: #FFFFFF;
  1042. border-radius: 16upx;
  1043. padding: 0 30upx;
  1044. display: flex;
  1045. align-items: center;
  1046. justify-content: space-between;
  1047. .left{
  1048. display: flex;
  1049. align-items: center;
  1050. image{
  1051. width: 21upx;
  1052. height: 27upx;
  1053. margin-right: 20upx;
  1054. }
  1055. .text{
  1056. font-size: 32upx;
  1057. font-family: PingFang SC;
  1058. font-weight: 500;
  1059. color: #666666;
  1060. }
  1061. }
  1062. .my-radio-text{
  1063. font-size: 30upx;
  1064. font-family: PingFang SC;
  1065. font-weight: 500;
  1066. color: #111111;
  1067. line-height: 30upx;
  1068. }
  1069. }
  1070. }
  1071. }
  1072. .btn-box{
  1073. height: 120upx;
  1074. padding: 30upx;
  1075. // background: #FFFFFF;
  1076. display: flex;
  1077. align-items: center;
  1078. justify-content: center;
  1079. .btn{
  1080. width: 100%;
  1081. height: 88upx;
  1082. line-height: 88upx;
  1083. font-size: 30upx;
  1084. font-family: PingFang SC;
  1085. font-weight: bold;
  1086. color: #FFFFFF;
  1087. text-align: center;
  1088. background: #2583EB;
  1089. border-radius: 44upx;
  1090. }
  1091. }
  1092. }
  1093. </style>