QuestionResult.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927
  1. <template>
  2. <div class="questionResult">
  3. <div class="header flex flex-row-between flex-col-center">
  4. <div>
  5. <el-button type="warning" size="mini" @click="$router.back()">返回</el-button>
  6. </div>
  7. <div class="header-title">个性化调体方案</div>
  8. <div>
  9. <el-button type="primary" size="mini" @click="_submitDoctorGy" v-if="type=='edit'">保存</el-button>
  10. <div v-if="type=='find'">
  11. <!-- v-print="'#printTest'" -->
  12. <el-button v-if="showPrint" type="warning" size="mini" @click="printTest">打印</el-button>
  13. </div>
  14. </div>
  15. </div>
  16. <div class="footer flex flex-col-top flex-row-left" id="printTest">
  17. <div class="left">
  18. <div class="left-top">
  19. <div class="echarts-top flex-vertical-center-l">
  20. <span>体质得分</span>
  21. </div>
  22. <div class="echarts-body flex-plane-center-l">
  23. <div id="echarts" style="width:100%;height:100%;"></div>
  24. </div>
  25. </div>
  26. <div class="left-top">
  27. <div class="echarts-top flex-vertical-center-l">
  28. <span>体质辨识结果</span>
  29. </div>
  30. <div class="echarts-result">
  31. <span
  32. v-for="(item,index) in e_result"
  33. :key="index"
  34. >{{item.name}}{{index==e_result.length-1?'':'、'}}</span>
  35. </div>
  36. </div>
  37. <div class="left-top" style="margin-top:20px;">
  38. <div class="echarts-top flex-vertical-center-l">
  39. <span>体质介绍</span>
  40. </div>
  41. <div class="left-bottom flex-plane-center-top flex-column">
  42. <div v-for="(item,index) in e_result" :key="index" class="flex-plane-center-l">
  43. <span style="width:80px">{{item.name}}:</span>
  44. <span style="flex:1;">{{item.description}}</span>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="right" v-if="e_titles.length>0">
  50. <div class="right-top flex-plane-center-top flex-column">
  51. <!-- {{item.title}}:{{item.desc}} -->
  52. <!-- <div v-for="(item,index) in e_types" :key="index" class="flex-plane-center-l ">
  53. <span style='width:80px;'>{{item.title}}:</span><span style="flex:1;">{{item.desc}}</span>
  54. </div>-->
  55. <div class="flex flex-row-left flex-col-top">
  56. <span>体质类型:</span>
  57. <div class="input" style="width:200px;flex: none;">
  58. <el-select
  59. :disabled="type=='find'"
  60. placeholder="请选择"
  61. v-model="e_id"
  62. @change="handleChange"
  63. >
  64. <el-option
  65. :label="item.name"
  66. v-for="(item,index) in e_titles"
  67. :value="item.pid"
  68. :key="index"
  69. ></el-option>
  70. </el-select>
  71. </div>
  72. </div>
  73. <div class="flex-plane-center-top">
  74. <span>调体法则:</span>
  75. <div class="input">
  76. <el-input
  77. :disabled="type=='find'"
  78. :autosize="{ minRows: 1, maxRows: 100}"
  79. size="mini"
  80. type="textarea"
  81. placeholder="请输入内容"
  82. v-model="e_titles[e_index].tt_RULE"
  83. ></el-input>
  84. </div>
  85. </div>
  86. <div class="flex-plane-center-top">
  87. <span>调体要点:</span>
  88. <div class="input">
  89. <el-input
  90. :disabled="type=='find'"
  91. :autosize="{ minRows: 1, maxRows: 100}"
  92. size="mini"
  93. type="textarea"
  94. placeholder="请输入内容"
  95. v-model="e_titles[e_index].tt_POINT"
  96. ></el-input>
  97. </div>
  98. </div>
  99. <div class="flex-plane-center-top">
  100. <span>调体方药:</span>
  101. <div class="input">
  102. <el-input
  103. :disabled="type=='find'"
  104. :autosize="{ minRows: 1, maxRows: 100}"
  105. size="mini"
  106. type="textarea"
  107. placeholder="请输入内容"
  108. v-model="e_titles[e_index].tt_PRESCRIPTION"
  109. ></el-input>
  110. </div>
  111. </div>
  112. <div class="flex-plane-center-top">
  113. <span>情志调摄:</span>
  114. <div class="input">
  115. <el-input
  116. :disabled="type=='find'"
  117. :autosize="{ minRows: 1, maxRows: 100}"
  118. size="mini"
  119. type="textarea"
  120. placeholder="请输入内容"
  121. v-model="e_titles[e_index].emotional_ADJUSTMENT"
  122. ></el-input>
  123. </div>
  124. </div>
  125. <div class="flex-plane-center-top">
  126. <span>饮食调养:</span>
  127. <div class="input">
  128. <el-input
  129. :disabled="type=='find'"
  130. :autosize="{ minRows: 1, maxRows: 100}"
  131. size="mini"
  132. type="textarea"
  133. placeholder="请输入内容"
  134. v-model="e_titles[e_index].diet_RECUPERATION"
  135. ></el-input>
  136. </div>
  137. </div>
  138. <div class="flex-plane-center-top">
  139. <span>起居调摄:</span>
  140. <div class="input">
  141. <el-input
  142. :disabled="type=='find'"
  143. :autosize="{ minRows: 1, maxRows: 100}"
  144. size="mini"
  145. type="textarea"
  146. placeholder="请输入内容"
  147. v-model="e_titles[e_index].daily_LIFE_ADJUSTMENT"
  148. ></el-input>
  149. </div>
  150. </div>
  151. <div class="flex-plane-center-top">
  152. <span>运动保健:</span>
  153. <div class="input">
  154. <el-input
  155. :disabled="type=='find'"
  156. :autosize="{ minRows: 1, maxRows: 100}"
  157. size="mini"
  158. type="textarea"
  159. placeholder="请输入内容"
  160. v-model="e_titles[e_index].sports"
  161. ></el-input>
  162. </div>
  163. </div>
  164. <div class="flex-plane-center-top">
  165. <span>穴位保健:</span>
  166. <div class="input">
  167. <!-- -->
  168. <el-select
  169. v-if="type=='edit'"
  170. filterable
  171. placeholder="选择穴位(可多选)"
  172. multiple
  173. v-model="acupointIds"
  174. @change="acupointChange"
  175. >
  176. <el-option
  177. v-for="(item,index) in xueweiList"
  178. :key="index"
  179. :label="item.acuname"
  180. :value="item.acuid"
  181. ></el-option>
  182. </el-select>
  183. <div v-else class="point flex flex-row-left flex-col-center">
  184. <div
  185. @click="openViewer(item)"
  186. class="point-item"
  187. v-for="(item,index) in acupointNames"
  188. :key="index"
  189. >{{item.pointName || item.acuname }}</div>
  190. </div>
  191. <el-input
  192. :disabled="type=='find'"
  193. :autosize="{ minRows: 1, maxRows: 100}"
  194. size="mini"
  195. type="textarea"
  196. placeholder="请输入内容"
  197. v-model="e_titles[e_index].acupoint_HEALTH_CARE"
  198. ></el-input>
  199. </div>
  200. </div>
  201. <div class="flex-plane-center-top">
  202. <span>养生建议:</span>
  203. <div class="input">
  204. <el-input
  205. :disabled="type=='find'"
  206. :autosize="{ minRows: 1, maxRows: 100}"
  207. size="mini"
  208. type="textarea"
  209. placeholder="请输入内容"
  210. v-model="e_titles[e_index].vegetables"
  211. ></el-input>
  212. </div>
  213. </div>
  214. <div class="flex-plane-center-top">
  215. <span>推荐药膳:</span>
  216. <div class="input">
  217. <el-input
  218. :disabled="type=='find'"
  219. :autosize="{ minRows: 1, maxRows: 100}"
  220. size="mini"
  221. type="textarea"
  222. placeholder="请输入内容"
  223. v-model="e_titles[e_index].medicated_DIET"
  224. ></el-input>
  225. </div>
  226. </div>
  227. <div class="flex-plane-center-top">
  228. <span>推荐花茶:</span>
  229. <div class="input">
  230. <el-input
  231. :disabled="type=='find'"
  232. :autosize="{ minRows: 1, maxRows: 100}"
  233. size="mini"
  234. type="textarea"
  235. placeholder="请输入内容"
  236. v-model="e_titles[e_index].flower_TEA"
  237. ></el-input>
  238. </div>
  239. </div>
  240. <div class="flex-plane-center-top">
  241. <span>其他:</span>
  242. <div class="input">
  243. <el-input
  244. :disabled="type=='find'"
  245. :autosize="{ minRows: 1, maxRows: 100}"
  246. size="mini"
  247. type="textarea"
  248. placeholder="请输入内容"
  249. v-model="e_titles[e_index].ysjy"
  250. ></el-input>
  251. </div>
  252. </div>
  253. </div>
  254. <!-- <div class='flex-plane-center-l'>
  255. <div class="submit flex-center" @click="submitDoctorjy">提交</div>
  256. <div class="submit1 flex-center" v-print="'#printTest'">打印</div>
  257. </div>-->
  258. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :url-list="[pointUrl]" />
  259. </div>
  260. </div>
  261. </div>
  262. </template>
  263. <script>
  264. import {
  265. getPhysicalDetail,
  266. submitDoctorjy,
  267. submitDoctorGy,
  268. getPhysicalDetailGy,
  269. createPdf,
  270. findIsHealthGY
  271. } from "@/api/diagnosis.js";
  272. import ElImageViewer from "element-ui/packages/image/src/image-viewer";
  273. import { fileUpload } from "@/api/upload.js";
  274. import { getAcupoint } from "@/api/knowledge.js";
  275. export default {
  276. components: {},
  277. data() {
  278. return {
  279. showReport: true,
  280. textarea: "",
  281. e_result: [],
  282. e_titles: [],
  283. e_values: [],
  284. e_index: 0,
  285. e_id: "",
  286. type: "find",
  287. myCanvas: null,
  288. uploadImg: null,
  289. xueweiList: [],
  290. acupointIds: [],
  291. acupointNames: [],
  292. showPrint: false, // 显示打印按钮
  293. showViewer: false, // 显示预览
  294. pointUrl: "",
  295. loading: null
  296. };
  297. },
  298. components: {
  299. ElImageViewer
  300. },
  301. mounted() {
  302. if (this.$route.query.type) {
  303. this.type = this.$route.query.type;
  304. }
  305. this._findIsHealthGY();
  306. this._getAcupoint();
  307. // this.getPhysicalDetail();
  308. // setTimeout(() => {
  309. // this._getPhysicalDetailGy()
  310. // }, 50)
  311. },
  312. methods: {
  313. acupointChange(e) {
  314. this.acupointNames = [];
  315. this.xueweiList.forEach(item => {
  316. this.acupointIds.forEach(item1 => {
  317. if (item.acuid == item1) {
  318. this.acupointNames.push(item);
  319. }
  320. });
  321. });
  322. },
  323. openViewer(item) {
  324. let url = item.acuimg || item.image;
  325. this.pointUrl = process.env.VUE_APP_XUEWEI + url;
  326. this.showViewer = true;
  327. },
  328. closeViewer() {
  329. this.showViewer = false;
  330. this.pointUrl = "";
  331. },
  332. // 打印
  333. printTest() {
  334. this._createPdf();
  335. },
  336. // 体质得分
  337. _initCharts(data) {
  338. let charts = this.$echarts.init(document.getElementById("echarts"));
  339. let names = [];
  340. let values = [];
  341. data.forEach(item => {
  342. names.push(item.name);
  343. values.push(item.score);
  344. });
  345. let option = {
  346. color: ["#5386F6"],
  347. xAxis: {
  348. type: "category",
  349. data: names
  350. },
  351. grid: {
  352. top: 20,
  353. bottom: 20,
  354. left: "10%",
  355. right: 10
  356. },
  357. // tooltip: {},
  358. yAxis: {
  359. min: 0,
  360. max: 100,
  361. splitLine: {
  362. // 隐藏分割线
  363. show: false
  364. },
  365. axisLabel: {
  366. // 隐藏刻度
  367. show: false
  368. },
  369. axisTick: {
  370. // 隐藏小刻度线
  371. show: false
  372. }
  373. },
  374. series: [
  375. {
  376. data: values,
  377. type: "bar",
  378. zlevel: 9,
  379. barWidth: 20,
  380. label: {
  381. show: true,
  382. position: "top"
  383. },
  384. markLine: {
  385. silent: false,
  386. // 设置 标线 标题样式
  387. label: {
  388. position: "start",
  389. color: "#333",
  390. formatter: function(event) {
  391. if (event.value == 30) {
  392. return "微小30";
  393. }
  394. if (event.value == 40) {
  395. return "轻微40";
  396. }
  397. if (event.value == 60) {
  398. return "明显60";
  399. }
  400. if (event.value == 100) {
  401. return "严重100";
  402. }
  403. }
  404. },
  405. symbol: "none",
  406. // 设置标线样式
  407. lineStyle: {
  408. color: "#999",
  409. type: "solid"
  410. },
  411. disabled: {
  412. disabled: true
  413. },
  414. data: [
  415. {
  416. yAxis: 30
  417. },
  418. {
  419. yAxis: 40
  420. },
  421. {
  422. yAxis: 60
  423. },
  424. {
  425. yAxis: 100
  426. }
  427. ]
  428. }
  429. }
  430. ]
  431. };
  432. charts.setOption(option);
  433. this.myCanvas = charts;
  434. setTimeout(() => {
  435. this.createImg();
  436. }, 1500);
  437. },
  438. // 创建图片
  439. createImg() {
  440. var img = new Image();
  441. img.src = this.myCanvas.getDataURL({
  442. type: "png",
  443. pixelRatio: 2, //放大2倍
  444. backgroundColor: "#fff"
  445. });
  446. let _this = this;
  447. img.onload = function() {
  448. var canvas = document.createElement("canvas");
  449. canvas.width = img.width;
  450. canvas.height = img.height;
  451. var ctx = canvas.getContext("2d");
  452. ctx.drawImage(img, 0, 0);
  453. var dataURL = canvas.toDataURL("image/png"); //base64编码图片
  454. _this.uploadImg = dataURL;
  455. // _this.UpBase64Img(dataURL);
  456. };
  457. },
  458. //base64编码图片转换成file对象
  459. dataURLtoFile(dataurl, filename) {
  460. var arr = dataurl.split(",");
  461. var mime = arr[0].match(/:(.*?);/)[1];
  462. var bstr = atob(arr[1]);
  463. var n = bstr.length;
  464. var u8arr = new Uint8Array(n);
  465. while (n--) {
  466. u8arr[n] = bstr.charCodeAt(n);
  467. }
  468. //转换成file对象
  469. return new File([u8arr], filename, {
  470. type: mime
  471. });
  472. },
  473. // 上传文件获取 文件地址
  474. UpBase64Img(dataurl) {
  475. let _this = this;
  476. var filename = "";
  477. var formData = new FormData();
  478. formData.append(
  479. "file",
  480. _this.dataURLtoFile(dataurl, new Date().getTime() + ".png")
  481. );
  482. this.fileUpload(formData);
  483. },
  484. // 获取穴位
  485. async _getAcupoint() {
  486. let params = {
  487. merid: "",
  488. pageid: 1,
  489. pagesize: 999
  490. };
  491. let res = await getAcupoint(params);
  492. if (res.code == 0) {
  493. this.xueweiList = res.data.acupoints;
  494. }
  495. },
  496. async fileUpload(data) {
  497. let res = await fileUpload(data);
  498. if (res.ResultCode == 0) {
  499. this.uploadImg = res.ResultInfo;
  500. }
  501. },
  502. // 生成PDF报告
  503. async _createPdf() {
  504. let params = {
  505. base64: this.uploadImg,
  506. dentificationId: this.$route.query.pid
  507. };
  508. let res = await createPdf(params);
  509. if (res.ResultCode == 0) {
  510. window.open(res.Data.pdfFilePath);
  511. }
  512. },
  513. // 体值类型改变
  514. handleChange(e) {
  515. this.e_titles.forEach((item, index) => {
  516. if (item.pid == e) {
  517. this.e_id = e;
  518. this.e_index = index;
  519. }
  520. });
  521. },
  522. // 获取详情信息
  523. async getPhysicalDetail(flag) {
  524. let res = await getPhysicalDetail({
  525. identid: this.$route.query.pid
  526. });
  527. if (res.ResultCode == 0) {
  528. this._initCharts(res.Data);
  529. // 排序分值最高的
  530. res.Data.sort((a, b) => b.score - a.score);
  531. this.e_result = res.Data.filter(data => data.type !== '0');
  532. this.e_id = res.Data[this.e_index].pid;
  533. if (flag == 1) {
  534. this._getPhysicalDetailGy(res.Data);
  535. return;
  536. }
  537. this.loading.close();
  538. this.e_values = res.Data;
  539. this.e_titles = res.Data;
  540. // this.e_index = 0
  541. // this._getPhysicalDetailGy();
  542. }
  543. },
  544. async _getPhysicalDetailGy(list) {
  545. let res = await getPhysicalDetailGy({
  546. dentificationId: this.$route.query.pid
  547. });
  548. if (res.ResultCode == 0) {
  549. if (!res.Data) {
  550. this.showPrint = false;
  551. return;
  552. } else {
  553. this.showPrint = true;
  554. }
  555. if (res.Data.acupointVOList) {
  556. res.Data.acupointVOList.forEach(item => {
  557. this.acupointIds.push(item.pid);
  558. this.acupointNames.push(item);
  559. });
  560. }
  561. // res.Data.forEach((item, index) => {
  562. // item.width =
  563. // Number(item.score) / 25 >= 1 ?
  564. // "100%" :
  565. // (Number(item.score) / 25) * 100 + "%";
  566. // item.other_RMK = "";
  567. // });
  568. // this.e_values = res.Data;
  569. this.e_values = [];
  570. this.e_values.push(res.Data);
  571. // this.e_titles = res.Data;
  572. let dataIndex = 0;
  573. list.forEach((item, index) => {
  574. if (item.name == res.Data.physicalType) {
  575. dataIndex = index;
  576. item.tt_RULE = res.Data.bodyTuneRule;
  577. item.name = res.Data.physicalType;
  578. item.tt_POINT = res.Data.bodyTuningPoints;
  579. item.tt_PRESCRIPTION = res.Data.bodyConditioningPrescription;
  580. item.emotional_ADJUSTMENT = res.Data.emotionalPhotoshoot;
  581. item.diet_RECUPERATION = res.Data.dietRecuperation;
  582. item.daily_LIFE_ADJUSTMENT = res.Data.dailyLife;
  583. item.sports = res.Data.sportsHealth;
  584. item.acupoint_HEALTH_CARE = res.Data.acupointHealthCare;
  585. item.vegetables = res.Data.healthAdvice;
  586. item.medicated_DIET = res.Data.recommendedMedicatedDiet;
  587. item.flower_TEA = res.Data.recommendedScentedTea;
  588. item.ysjy = res.Data.other;
  589. // this.acupointIds = res.Data.acupointVOList ? res.Data.split(',') : []
  590. this.acupointIds = res.Data.acupointVOList;
  591. }
  592. });
  593. this.e_titles = [list[dataIndex]];
  594. // this._initCharts(res.Data);
  595. this.e_id = list[dataIndex].pid;
  596. if (res.Data.length > 0) {
  597. // this.e_index = 0
  598. }
  599. this.loading.close();
  600. }
  601. },
  602. // 查询啊是否健康干预胡俄国
  603. async _findIsHealthGY() {
  604. this.loading = this.$loading({
  605. lock: true,
  606. text: "正在获取体制辨识结果",
  607. spinner: "el-icon-loading",
  608. background: "rgba(0, 0, 0, 0.7)"
  609. });
  610. let res = await findIsHealthGY({
  611. identid: this.$route.query.pid
  612. });
  613. if (res.ResultCode == 0) {
  614. if (res.Data.flag == 1) {
  615. this.getPhysicalDetail(res.Data.flag);
  616. // setTimeout(() => {
  617. // this._getPhysicalDetailGy()
  618. // }, 50)
  619. } else {
  620. this.getPhysicalDetail();
  621. }
  622. }
  623. },
  624. // 提交
  625. async submitDoctorjy() {
  626. // if (!this.textarea) {
  627. // this.$message({
  628. // type: 'error',
  629. // message: '请输入医生建议',
  630. // showClose: true
  631. // })
  632. // return
  633. // }
  634. const loading = this.$loading({
  635. lock: true,
  636. text: "正在保存",
  637. spinner: "el-icon-loading",
  638. background: "rgba(0, 0, 0, 0.7)"
  639. });
  640. let res = await submitDoctorjy({
  641. pid: this.e_values[0].pid,
  642. ysjy: this.textarea
  643. }).catch(err => {
  644. loading.close();
  645. });
  646. if (res.ResultCode == 0) {
  647. loading.close();
  648. this.$message({
  649. type: "success",
  650. message: "提交成功",
  651. showClose: true
  652. });
  653. setTimeout(() => {
  654. this.$router.back();
  655. }, 2000);
  656. }
  657. },
  658. // 保存健康干预
  659. async _submitDoctorGy() {
  660. const loading = this.$loading({
  661. lock: true,
  662. text: "正在保存",
  663. spinner: "el-icon-loading",
  664. background: "rgba(0, 0, 0, 0.7)"
  665. });
  666. let params = {
  667. dentificationId: this.$route.query.pid,
  668. bodyTuneRule: this.e_titles[this.e_index].tt_RULE,
  669. physicalType: this.e_titles[this.e_index].name,
  670. bodyTuningPoints: this.e_titles[this.e_index].tt_POINT,
  671. bodyConditioningPrescription: this.e_titles[this.e_index]
  672. .tt_PRESCRIPTION,
  673. emotionalPhotoshoot: this.e_titles[this.e_index].emotional_ADJUSTMENT,
  674. dietRecuperation: this.e_titles[this.e_index].diet_RECUPERATION,
  675. dailyLife: this.e_titles[this.e_index].daily_LIFE_ADJUSTMENT,
  676. sportsHealth: this.e_titles[this.e_index].sports,
  677. acupointHealthCare: this.e_titles[this.e_index].acupoint_HEALTH_CARE,
  678. healthAdvice: this.e_titles[this.e_index].vegetables,
  679. recommendedMedicatedDiet: this.e_titles[this.e_index].medicated_DIET,
  680. recommendedScentedTea: this.e_titles[this.e_index].flower_TEA,
  681. other: this.e_titles[this.e_index].ysjy,
  682. acupuncturePoint: this.acupointIds.join(",")
  683. };
  684. let res = await submitDoctorGy(params).catch(err => {
  685. loading.close();
  686. });
  687. if (res.ResultCode == 0) {
  688. this.$message.success("提交成功");
  689. loading.close();
  690. this.type = "find";
  691. this.showPrint = true;
  692. } else {
  693. this.$message.error(res.ResultInfo);
  694. }
  695. }
  696. }
  697. };
  698. </script>
  699. <style lang="scss" scoped>
  700. @import "../../style/common.scss";
  701. .questionResult {
  702. margin-top: 0px;
  703. .header {
  704. background: #fff;
  705. padding: 5px;
  706. border-radius: 5px;
  707. margin-bottom: 5px;
  708. .header-title {
  709. font-weight: 600;
  710. color: #000;
  711. font-size: 16px;
  712. }
  713. }
  714. .footer {
  715. height: 74vh;
  716. }
  717. .left {
  718. width: 668px;
  719. margin-right: 10px;
  720. height: 100%;
  721. overflow: auto;
  722. background: #fff;
  723. padding: 5px 5px 30px;
  724. box-sizing: border-box;
  725. border-radius: 5px;
  726. .left-top {
  727. margin-bottom: 10px;
  728. .echarts-top {
  729. span {
  730. font-size: 16px;
  731. font-family: PingFang SC;
  732. font-weight: 600;
  733. color: #333333;
  734. margin-right: 25px;
  735. }
  736. }
  737. .echarts-result {
  738. margin-top: 10px;
  739. // font-size: 14px;
  740. }
  741. .echarts-body {
  742. margin-top: 10px;
  743. width: 100%;
  744. height: 270px;
  745. }
  746. }
  747. .left-bottom {
  748. padding: 0px 0px;
  749. border-radius: 5px;
  750. background: #fff;
  751. margin-top: 20px;
  752. div {
  753. font-size: 16px;
  754. font-family: PingFang SC;
  755. font-weight: 400;
  756. color: #333333;
  757. margin-bottom: 20px;
  758. }
  759. }
  760. }
  761. .right {
  762. flex: 1;
  763. background: #fff;
  764. padding: 5px 5px 40px;
  765. box-sizing: border-box;
  766. border-radius: 5px;
  767. height: 100%;
  768. overflow: auto;
  769. .right-top {
  770. div {
  771. font-size: 16px;
  772. font-family: PingFang SC;
  773. font-weight: 400;
  774. color: #333333;
  775. margin-bottom: 10px;
  776. width: 100%;
  777. span {
  778. width: 80px;
  779. text-align: right;
  780. font-weight: 600;
  781. margin-top: 6px;
  782. }
  783. .input {
  784. // width: 300px;
  785. flex: 1;
  786. font-size: 14px;
  787. font-family: PingFang SC;
  788. font-weight: 400;
  789. color: #999999;
  790. margin-bottom: 0;
  791. }
  792. }
  793. }
  794. .submit {
  795. width: 100px;
  796. height: 46px;
  797. background: #5386f6;
  798. border-radius: 4px;
  799. font-size: 16px;
  800. font-family: PingFang SC;
  801. font-weight: 400;
  802. color: #ffffff;
  803. cursor: pointer;
  804. }
  805. .submit1 {
  806. margin-left: 20px;
  807. width: 100px;
  808. height: 46px;
  809. background: #ffae45;
  810. border-radius: 4px;
  811. font-size: 16px;
  812. font-family: PingFang SC;
  813. font-weight: 400;
  814. color: #ffffff;
  815. cursor: pointer;
  816. }
  817. }
  818. }
  819. .input ::v-deep .el-input {
  820. width: 100%;
  821. }
  822. .input ::v-deep .el-textarea.is-disabled .el-textarea__inner {
  823. border-color: #fff;
  824. background-color: #fff;
  825. color: #000;
  826. cursor: default;
  827. }
  828. .input ::v-deep .el-textarea.is-disabled .el-textarea__inner::placeholder {
  829. color: #fff;
  830. }
  831. .input ::v-deep .is-disabled .el-input__suffix {
  832. display: none;
  833. }
  834. .input ::v-deep .el-input.is-disabled .el-input__inner {
  835. border-color: #fff;
  836. background-color: #fff;
  837. color: #000;
  838. cursor: default;
  839. }
  840. .point {
  841. width: 100%;
  842. &-item {
  843. cursor: pointer;
  844. width: auto !important;
  845. background: #5386f6;
  846. padding: 6px 8px;
  847. font-size: 12px !important;
  848. color: #fff !important;
  849. border-radius: 4px;
  850. // color: ;
  851. margin-right: 5px;
  852. margin-bottom: 5px;
  853. }
  854. }
  855. </style>
  856. <style lang="scss" scoped>
  857. @media screen and (min-width: 1681px) and (max-width: 1920px) {
  858. .questionResult {
  859. .footer {
  860. height: 84vh;
  861. }
  862. }
  863. }
  864. @media screen and (min-width: 1601px) and (max-width: 1680px) {
  865. .questionResult {
  866. .footer {
  867. height: 83vh;
  868. }
  869. }
  870. }
  871. @media screen and (min-width: 1361px) and (max-width: 1600px) {
  872. .questionResult {
  873. .footer {
  874. height: 76vh;
  875. }
  876. }
  877. }
  878. @media screen and(min-width:1281px) and (max-width: 1360px) {
  879. .questionResult {
  880. .footer {
  881. height: 76vh;
  882. }
  883. }
  884. }
  885. </style>