index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. <template>
  2. <view>
  3. <!--prescription/Consultation/index.wxml-->
  4. <view class="tips dflex">
  5. <icon class="icon-box-img" type="warn" size="18"></icon>信息将作为医生诊断和开具处方的重要依据,请如实填写
  6. </view>
  7. <view class="drugUsers bgfff r20">
  8. <view class="dflex medication" @tap="goUrl" :data-url="drugUsers?'prescription/drugUsersList/index?choice=true':'prescription/drugUsers/index?add=1'">用药人
  9. <image src="/static/pages/images/more.png" class="more" v-if="drugUsers"></image>
  10. </view>
  11. <view class="dflex li" v-if="drugUsers">
  12. <view class="info flex dflex" :data-index="index">
  13. <view class="name">{{drugUsers.name}}<text>{{drugUsers.tel}}</text></view>
  14. <!-- <view class="addr"><text wx:if="{{item.isDefault == 1}}">默认</text>{{item.address}}{{item.house}}</view> -->
  15. <!-- <view class="authentication">已认证</view> -->
  16. <view class="relationship" v-if="drugUsers.label">{{drugUsers.label}}</view>
  17. </view>
  18. </view>
  19. <view class="add" @tap="goUrl" data-url="prescription/drugUsers/index?add=1" v-else>
  20. <image src="/static/pages/images/jia.png" class="jia"></image>新建用药人
  21. </view>
  22. </view>
  23. <view class="drugUsers bgfff r20">
  24. <view class="dflex medication">药品信息 <view class="dflex yao" @tap="updown">已选择{{sum?sum:'0'}}种药<image :src="pageShow?'/prescription/static/prescription/image/integral_up.png':'/prescription/static/prescription/image/integral_down.png'"
  25. class="updown"></image>
  26. </view>
  27. </view>
  28. <view class="list mt20" v-if="pageShow">
  29. <view v-for="(item, index) in pageList" :key="index" class="li">
  30. <view class="cimgs ">
  31. <image :src="item.imgUrl" mode="aspectFit" class="cimg"></image>
  32. </view>
  33. <view class="zhinfo">
  34. <view class="zhtit">{{item.drugName}}</view>
  35. <view v-if="item.spec" class="guigecontent">规格:
  36. <text class="guige" decode="true">{{item.spec}}&nbsp;
  37. </text>
  38. </view>
  39. <view class="jiage">
  40. <view class="zhjia"></view>
  41. <view class="num">
  42. <!-- <view class="jian" bindtap="jianQuantity" data-index="{{index}}">-</view> -->
  43. <text class="nums">×{{item.number>=0?item.number:'0'}}{{item.unit?item.unit:''}}</text>
  44. <!-- <view class="jian" bindtap="jiaQuantity" data-index="{{index}}">+</view> -->
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="disease bgfff r20">
  52. <view>信息用于诊断开方请确保准确</view>
  53. <view class="diagnosis"><text>*</text>请选择线下已确诊疾病(最多可选2项)</view>
  54. <view class="dflex liste" v-if="TabList.length>0">
  55. <view v-for="(item, index) in TabList" :key="index" :class="'item ' + (item.active?'active':'')" @tap="switchTab"
  56. :data-index="index" :data-id="item.id" :data-name="item.name">{{item.name}}</view>
  57. <view class="custom" @tap="diagnosisShow">+手动输入</view>
  58. </view>
  59. <view class="new"><text></text>请确认以下信息</view>
  60. <!-- <view class="mb20">
  61. <view>1.您是否服用过该药品且无相关禁忌症?</view>
  62. <radio-group bindchange="radioChange" data-problem="1">
  63. <radio wx:for="{{items}}" wx:key="index" value="{{item.value}}" color="#F32B09">{{item.value}}</radio>
  64. </radio-group>
  65. </view> -->
  66. <!-- <view class="mb20">
  67. <view>2.您是否对药物过敏?</view>
  68. <radio-group bindchange="radioChange" data-problem="2">
  69. <radio wx:for="{{items}}" wx:key="index" value="{{item.value}}" color="#F32B09">{{item.value}}</radio>
  70. </radio-group>
  71. </view> -->
  72. <!-- <view class="mb20">
  73. <view>3.有无不良反应?</view>
  74. <radio-group bindchange="radioChange" data-problem="3">
  75. <radio wx:for="{{items}}" wx:key="index" value="{{item.value}}" color="#F32B09">{{item.value}}</radio>
  76. </radio-group>
  77. </view> -->
  78. <view class="mb20">
  79. <view class="mb20">1.是否复诊</view>
  80. <radio-group @change="radioChange" data-problem="4">
  81. <radio v-for="(item, index) in items" :key="index" :value="item.value" color="#F32B09" :checked="item.checked">{{item.value}}</radio>
  82. </radio-group>
  83. </view>
  84. <view class="mb20">
  85. <view>2.是否上传复诊凭证(可不传)</view>
  86. <!-- <radio-group bindchange="radioChange" data-problem="5">
  87. <radio wx:for="{{items}}" wx:key="index" value="{{item.value}}" color="#F32B09">{{item.value}}</radio>
  88. </radio-group> -->
  89. </view>
  90. <!-- <view class="voucher" wx:if="{{voucher}}">
  91. 您已确认在线下医院完成过就诊,但此刻复诊凭证丢失或不在身边,无历史处方记录可能影响医生对您病情的判断
  92. </view> -->
  93. <view class="dflex uploadVoucher">
  94. <block v-if="avatar.length<=0">
  95. <image src="/static/pages/images/upload.png" class="upload" @tap="uploadAvatar"></image>
  96. <view @tap="uploadAvatar">
  97. 添加已就诊的病例/住院出院记录
  98. <view class="photo">照片仅自己和医生可见</view>
  99. </view>
  100. </block>
  101. <view class="dflex" v-else>
  102. <view v-for="(item, index) in avatar" :key="index" class="pz">
  103. <image :src="avatar[index]" class="scpz"></image>
  104. <image src="/prescription/static/prescription/image/imagecuo.png" class="cuo" @tap="cleanimage" :data-index="index"></image>
  105. </view>
  106. <image src="/static/pages/images/upload.png" class="scpz" @tap="uploadAvatar" v-if="avatar.length<3"></image>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="placeholder-view" :style="'height:' + (bottomBlankHeight + 120) + 'rpx'"></view>
  111. <view class="bot fixed bgfff " :style="'padding: ' + (bottomBlankHeight + 20) + 'rpx 0rpx'">
  112. <!-- <view class="addcart">我有处方</view> -->
  113. <view class="sub">提交即代表同意<text @tap="goUrl" data-url="prescription/consultationAgreement/index">《患者问诊服务协议》</text>和<text
  114. @tap="goUrl" data-url="prescription/privacyPolicy/index">《隐私政策》</text></view>
  115. <view class="mbglinear gmbtn" @tap="save"><text>提</text>交</view>
  116. </view>
  117. <view class="mask" :hidden="isHide"></view>
  118. <view class="suc" :hidden="isHide">
  119. <view class="title">请输入您的病症</view>
  120. <input placeholder="请输入" @input='abnormal' :value="value" auto-focus />
  121. <view class="btn dflex">
  122. <view class="cancel" @tap="hidePop">取消</view>
  123. <view class="queren" @tap="abnormalClick">确认</view>
  124. </view>
  125. </view>
  126. </view>
  127. </template>
  128. <script>
  129. // prescription/Consultation/index.js
  130. const app = getApp();
  131. const req = require("../../utils/request.js");
  132. const util = require("../../utils/util.js");
  133. export default {
  134. data() {
  135. return {
  136. TabList: [],
  137. items: [{
  138. value: '是',
  139. name: '是',
  140. checked: 'true'
  141. }, {
  142. value: '否',
  143. name: '否'
  144. }],
  145. bottomBlankHeight: app.globalData.isIPhoneX ? 68 : 0,
  146. avatar: [],
  147. pageList: [],
  148. list: [],
  149. pageShow: false,
  150. restoration: true,
  151. drugUsers: "",
  152. cancel: false,
  153. uploadVoucher: false,
  154. voucher: false,
  155. doctor: "",
  156. sum: "",
  157. isHide: true,
  158. labe:[],
  159. choice: false
  160. };
  161. },
  162. components: {},
  163. props: {},
  164. /**
  165. * 生命周期函数--监听页面加载
  166. */
  167. onLoad: function(options) {
  168. this.query = options;
  169. console.log(options)
  170. this.getDoctor().then(res=>{
  171. this.getDrug();
  172. })
  173. },
  174. /**
  175. * 生命周期函数--监听页面显示
  176. */
  177. onShow: function() {
  178. uni.enableAlertBeforeUnload({
  179. message: '确认返回?',
  180. success: function(res) {
  181. // console.log(res);
  182. },
  183. fail: console.error
  184. });
  185. this.getList();
  186. },
  187. onReady: function() {
  188. this.animation = uni.createAnimation();
  189. },
  190. /**
  191. * 生命周期函数--监听页面隐藏
  192. */
  193. onHide: function() {},
  194. /**
  195. * 生命周期函数--监听页面卸载
  196. */
  197. onUnload: function() {
  198. let that = this;
  199. let diagnosis;
  200. if (this.TabList) {
  201. diagnosis = this.TabList.filter(it => it.active);
  202. }
  203. let form = {
  204. peopleId: this.drugUsers.id,
  205. orderId: this.query.orderId,
  206. diagnosis: JSON.stringify(diagnosis),
  207. isVisit: this.restoration ? 1 : 0,
  208. voucherImage: this.avatar,
  209. state: 1
  210. };
  211. req.postRequest('/api/userDrugPeople/updateODU', form, data => {});
  212. },
  213. /**
  214. * 页面相关事件处理函数--监听用户下拉动作
  215. */
  216. onPullDownRefresh: function() {},
  217. /**
  218. * 页面上拉触底事件的处理函数
  219. */
  220. onReachBottom: function() {},
  221. methods: {
  222. goUrl(e) {
  223. console.log(e)
  224. let url = e.currentTarget.dataset.url;
  225. app.globalData.openPage(url);
  226. },
  227. getList() {
  228. let that = this;
  229. if (this.choice) return false;
  230. req.getRequest('/api/userDrugPeople/list', {
  231. page: 1,
  232. limit: 1000
  233. }, data => {
  234. // console.log(data);
  235. if (data && data.length > 0) {
  236. this.setData({
  237. drugUsers: data[0]
  238. });
  239. } else {
  240. this.setData({
  241. drugUsers: ''
  242. });
  243. }
  244. });
  245. },
  246. // 手动输入病症
  247. diagnosisShow() {
  248. this.setData({
  249. isHide: false
  250. })
  251. },
  252. hidePop() {
  253. this.setData({
  254. isHide: true,
  255. value: "",
  256. inputValue: ""
  257. })
  258. },
  259. // 获取用户输入的病症
  260. abnormal(e) {
  261. let content = e.detail.value
  262. // console.log(!content, content);
  263. if (!content) {
  264. this.setData({
  265. value: ""
  266. })
  267. } else {
  268. this.setData({
  269. value: content
  270. })
  271. }
  272. },
  273. // 用户确认病症
  274. abnormalClick() {
  275. if (!this.value) {
  276. return req.msg("请输入病症")
  277. }
  278. // this.data.TabList.filter(it => {
  279. // it.name == this.data.value
  280. // })
  281. let repeat = this.TabList.filter(it => {
  282. return it.name == this.value
  283. })
  284. if (repeat.length > 0) {
  285. return req.msg("该病症已存在,请选择")
  286. }
  287. // console.log(this.data.TabList.filter(it => {return it.name == this.data.value}));
  288. let diagnosis = [{
  289. name: this.value,
  290. id: ""
  291. }]
  292. if (this.allergen) {
  293. let lest = this.allergen.concat(diagnosis)
  294. // console.log(lest, this.allergen);
  295. this.setData({
  296. allergen: lest
  297. })
  298. } else {
  299. this.setData({
  300. allergen: diagnosis
  301. })
  302. }
  303. // console.log(this.allergen);
  304. if (req.getStorage('diagnosis')) {
  305. let diagnosis = req.getStorage('diagnosis')
  306. diagnosis.push({
  307. name: this.value,
  308. id: ""
  309. })
  310. req.setStorage('diagnosis', diagnosis)
  311. } else {
  312. req.setStorage('diagnosis', this.allergen)
  313. }
  314. // this.data.TabList.push(diagnosis)
  315. let i = 0
  316. let content = this.allergen.map(it => {
  317. if (it.active) {
  318. i++
  319. }
  320. if (i < 2) {
  321. it.active = true
  322. }
  323. // console.log(it);
  324. return it
  325. })
  326. // console.log(content, this.hnty);
  327. let about=JSON.parse(req.getStorage('configRes'))
  328. if(!about.prescription_disease||(about.prescription_disease&&about.prescription_disease!=2)){
  329. let list = this.hnty.concat(content)
  330. // console.log(list);
  331. this.setData({
  332. TabList: list,
  333. })
  334. }else{
  335. let list = this.labe.concat(content)
  336. // console.log(list);
  337. this.setData({
  338. TabList: list,
  339. })
  340. }
  341. this.setData({
  342. isHide: true,
  343. inputValue: "",
  344. value: ""
  345. })
  346. },
  347. switchTab(event) {
  348. let index = event.currentTarget.dataset.index;
  349. let def = this.TabList[index].active;
  350. let d = {};
  351. let arr = [];
  352. // console.log(def, index);
  353. this.TabList.map(it => {
  354. if (it.active) {
  355. arr.push(it);
  356. }
  357. });
  358. // console.log(arr, arr.length);
  359. if (arr.length == 2 && !def) return req.msg('选择不能超过两个');
  360. d['TabList[' + index + '].active'] = !this.TabList[index].active;
  361. this.setData(d);
  362. },
  363. radioChange(e) {
  364. // console.log('radio发生change事件,携带value值为:', e.detail.value, e);
  365. let that = this; // if(e.target.dataset.problem == 1){
  366. // if (e.detail.value == '否') {
  367. // wx.showModal({
  368. // content: '为了您的用药安全,建议您到线下医院问诊',
  369. // showCancel: false,
  370. // success(res) {
  371. // if (res.confirm) {
  372. // console.log('用户点击确定')
  373. // that.setData({ cancel: true })
  374. // }
  375. // }
  376. // })
  377. // }
  378. // if (e.detail.value == '是'){
  379. // this.setData({taboo:true})
  380. // }else{
  381. // this.setData({taboo:false})
  382. // }
  383. // }
  384. // if(e.target.dataset.problem == 2){
  385. // if (e.detail.value == '是') {
  386. // wx.showModal({
  387. // content: '为了您的用药安全,建议您到线下医院问诊',
  388. // showCancel: false,
  389. // success(res) {
  390. // if (res.confirm) {
  391. // console.log('用户点击确定')
  392. // that.setData({ cancel: true })
  393. // }
  394. // }
  395. // })
  396. // }
  397. // if (e.detail.value == '否'){
  398. // this.setData({allergy:true})
  399. // }else{
  400. // this.setData({allergy:false})
  401. // }
  402. // }
  403. // if(e.target.dataset.problem == 3){
  404. // if (e.detail.value == '是' && e.target.dataset.problem == 3) {
  405. // wx.showModal({
  406. // content: '为了您的用药安全,建议您到线下医院问诊',
  407. // showCancel: false,
  408. // success(res) {
  409. // if (res.confirm) {
  410. // console.log('用户点击确定')
  411. // that.setData({ cancel: true })
  412. // }
  413. // }
  414. // })
  415. // }
  416. // if (e.detail.value == '否' && e.target.dataset.problem == 3){
  417. // this.setData({reaction:true})
  418. // }else{
  419. // this.setData({reaction:false})
  420. // }
  421. // }
  422. if (e.target.dataset.problem == 4) {
  423. if (e.detail.value == '否') {
  424. req.msg('根据相关规定,开具电子处方仅对复诊患者有效,您不是复诊患者,请就近就医。');
  425. that.setData({
  426. cancel: true,
  427. uploadVoucher: false,
  428. voucher: false
  429. });
  430. }
  431. if (e.detail.value == '是') {
  432. this.setData({
  433. restoration: true
  434. });
  435. } else {
  436. this.setData({
  437. restoration: false
  438. });
  439. }
  440. } // if(e.target.dataset.problem == 5){
  441. // if (e.detail.value == '否' && e.target.dataset.problem == 5) {
  442. // that.setData({ voucher: true,uploadVoucher:false })
  443. // }
  444. // if (e.detail.value == '是' && e.target.dataset.problem == 5){
  445. // this.setData({uploadVoucher:true,voucher:false})
  446. // }
  447. // }
  448. },
  449. //上传图片
  450. uploadAvatar() {
  451. let that = this;
  452. uni.chooseImage({
  453. count: 3,
  454. sizeType: ['original', 'compressed'],
  455. sourceType: ['album', 'camera'],
  456. success: function({
  457. tempFilePaths
  458. }) {
  459. var promise = Promise.all(tempFilePaths.map((tempFilePath, index) => {
  460. return new Promise(function(resolve, reject) {
  461. req.loadIng("上传中");
  462. req.uploadFile('/api/upload', tempFilePath, res => {
  463. // console.log(res);
  464. that.setData({
  465. avatar: that.avatar.concat(res.src)
  466. });
  467. uni.showToast({
  468. title: '上传成功',
  469. icon: 'success',
  470. duration: 2000
  471. });
  472. // console.log(that.avatar);
  473. });
  474. });
  475. }));
  476. promise.then(function(results) {
  477. // console.log(results);
  478. }).catch(function(err) {
  479. // console.log(err);
  480. });
  481. }
  482. });
  483. },
  484. // 删除图片
  485. cleanimage(event) {
  486. let index = event.currentTarget.dataset.index;
  487. let arr = this.avatar;
  488. arr.splice(index, 1);
  489. this.setData({
  490. avatar: arr
  491. });
  492. },
  493. // 获取病症和医生
  494. getDoctor() {
  495. return new Promise((res, rej) => {
  496. req.postRequest('/api/userDrugPeople/getHntyAndDoctor', {}, data => {
  497. // console.log(data);
  498. if (data) {
  499. // console.log(JSON.parse(data.hnty.data));
  500. if (!data.doctor || data.doctor.code != 0 || !data.hnty || data.hnty.code != 0) {
  501. uni.disableAlertBeforeUnload();
  502. uni.showModal({
  503. content: !data.doctor || data.doctor.code != 0 ? '当前医师不在线,请稍后再试' : '病症获取失败,请稍后再试',
  504. showCancel: false,
  505. success(res) {
  506. if (res.confirm) {
  507. // console.log('用户点击确定');
  508. uni.navigateBack(); // that.setData({ cancel: true })
  509. }
  510. }
  511. });
  512. }
  513. let hnty;
  514. let about=JSON.parse(req.getStorage('configRes'))
  515. // console.log(about,about.prescription_disease&&about.prescription_disease!=2)
  516. if(!about.prescription_disease || (about.prescription_disease&&about.prescription_disease!=2)){
  517. if (data.hnty && data.hnty.data) {
  518. hnty = JSON.parse(data.hnty.data);
  519. }
  520. if (req.getStorage('diagnosis')) {
  521. hnty = hnty.concat(req.getStorage('diagnosis'))
  522. }
  523. this.setData({
  524. TabList: hnty,
  525. hnty: hnty
  526. });
  527. }
  528. // console.log(hnty);
  529. this.setData({
  530. doctor: data.doctor.data,
  531. });
  532. res(data)
  533. }
  534. });
  535. })
  536. },
  537. // 获取药品信息
  538. getDrug() {
  539. req.postRequest('/api/orderdurg/drugorder', {
  540. orderId: this.query.orderId
  541. }, res => {
  542. var a = [true]
  543. let that=this
  544. if (!res) {} else {
  545. if (req.getStorage('diagnosis')) {
  546. that.labe = that.labe.concat(req.getStorage('diagnosis'))
  547. }
  548. a = res.drugs.map(it => {
  549. if(!it.label){
  550. }else{
  551. that.getLabel(it.label.split(','))
  552. }
  553. var regex = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>《》/?~!@#¥……&*()——|{}【】‘;:”“'。,、? ]")
  554. var danwei = new RegExp("[\\u4E00-\\u9FFF]+$", "g")
  555. if (it.number < 1) {
  556. return req.msg(it.drugName + "药品信息不完整,暂不支持开方")
  557. } else if (!it.drugName) {
  558. return req.msg("药品信息不完整,暂不支持开方")
  559. } else if (regex.test(it.drugName)) {
  560. return req.msg(it.drugName.trim() + "药品名称不符合规范,暂不支持开方")
  561. } else if (!it.unit) {
  562. return req.msg(it.drugName + "药品单位信息不完整,暂不支持开方")
  563. } else if (!danwei.test(it.unit)) {
  564. return req.msg(it.drugName + "药品单位信息不符合规范,暂不支持开方")
  565. } else if (!it.spec) {
  566. return req.msg(it.drugName + "药品规格信息不完整,暂不支持开方")
  567. } else {
  568. return true
  569. }
  570. });
  571. // console.log(a)
  572. if (a[0]) {
  573. this.setData({
  574. pageList: res.drugs,
  575. sum: res.drugs.length
  576. })
  577. }
  578. }
  579. });
  580. },
  581. // 数组转换
  582. getLabel(arr){
  583. // console.log(arr,"11")
  584. let that=this
  585. let arrList = [];
  586. for (let i in arr) {
  587. var j = {};
  588. j.name = arr[i];
  589. j.id=""
  590. arrList.push(j);
  591. }
  592. let about=JSON.parse(req.getStorage('configRes'))
  593. if(!about.prescription_disease){
  594. }else{
  595. if(about.prescription_disease==0){
  596. }else if(about.prescription_disease==1){
  597. let all
  598. all=arrList.concat(this.TabList)
  599. that.TabList=all
  600. }else if(about.prescription_disease==2){
  601. that.labe=that.labe.concat(arrList)
  602. that.TabList=that.labe
  603. }
  604. }
  605. },
  606. updown() {
  607. // let list=this.data.list
  608. // let data
  609. if (this.pageList.length <= 0) return false;
  610. this.setData({
  611. pageShow: !this.pageShow
  612. });
  613. },
  614. save: util.throttle(function() {
  615. // console.log(this.drugUsers);
  616. let that = this; // console.log(this.data.TabList.filter(it=>it.active))
  617. let diagnosis;
  618. if (this.TabList) {
  619. diagnosis = this.TabList.filter(it => it.active);
  620. }
  621. if (!this.drugUsers) return req.msg("请添加用药人");
  622. if (diagnosis.length < 1) return req.msg("没有添加病症");
  623. if (this.pageList.length <= 0) return req.msg("药品信息错误");
  624. if (!this.restoration) return req.msg("根据相关规定,开具电子处方仅对复诊患者有效,您不是复诊患者,请就近就医。");
  625. let form = {
  626. peopleId: this.drugUsers.id,
  627. orderId: this.query.orderId,
  628. diagnosis: JSON.stringify(diagnosis),
  629. isVisit: this.restoration ? 1 : 0,
  630. voucherImage: this.avatar,
  631. state: 2
  632. };
  633. if (this.restoration && this.drugUsers && this.pageList.length > 0) {
  634. req.postRequest('/api/userDrugPeople/updateODU', form, data => {
  635. // if(data=="成功"){
  636. app.globalData.openPage('prescription/dialogue/index?uId=' + that.drugUsers.id + '&diagnosis=' + JSON.stringify(
  637. diagnosis) + '&txtdrugs=' + JSON.stringify(that.pageList) + '&orderId=' + that.query.orderId +
  638. '&restoration=' + form.isVisit + '&doctor=' + that.doctor); // }
  639. });
  640. }
  641. }, 1500)
  642. }
  643. };
  644. </script>
  645. <style>
  646. @import "./index.css";
  647. </style>