editUserOrderPrescribe.vue 28 KB

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