SuitScience.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052
  1. // 适宜技术处方
  2. <template>
  3. <div>
  4. <!-- 中成药方 和适宜技术处方 -->
  5. <div class="chinese_medicine">
  6. <div class="flex flex-row-right">
  7. <div class="clearer flex-center" @click="clear();$emit('clear')">清空</div>
  8. </div>
  9. <!-- 中成药 -->
  10. <!-- fixed="left" -->
  11. <div class="table-container">
  12. <div class="table-show flex-vertical-between flex-wrap">
  13. <div class="table-left">
  14. <el-table :data="listLeft" border style="width:100%;">
  15. <el-table-column prop="id" label="序号" fixed="left" width="50"></el-table-column>
  16. <el-table-column prop="name" label="穴位">
  17. <template slot-scope="scope">
  18. <!-- <el-input v-model="scope.row.name" size="mini"></el-input> -->
  19. <div class="xuewei">
  20. <el-select
  21. :id="'xuwei'+scope.row.id"
  22. size="mini"
  23. remote
  24. :value="scope.row.name"
  25. filterable
  26. placeholder="请选择" :disabled="!editable"
  27. @change="acunameC($event,scope)"
  28. :filter-method="filterMethod"
  29. >
  30. <el-option
  31. :label="item.acuname"
  32. :value="item.acuid"
  33. v-for="(item,index) in acupointList"
  34. :key="index"
  35. ></el-option>
  36. </el-select>
  37. </div>
  38. </template>
  39. </el-table-column>
  40. <el-table-column label="操作" width="100">
  41. <template slot-scope="scope" v-if="scope.row.name">
  42. <div class="operate">
  43. <img v-if="editable" src="../assets/add.png" alt @click="addData(scope)" />
  44. <img v-if="editable" src="../assets/delete1.png" alt @click="deleteData(scope)" />
  45. <img src="../assets/find.png" alt @click="find(scope)" />
  46. </div>
  47. </template>
  48. </el-table-column>
  49. </el-table>
  50. </div>
  51. <div class="table-left">
  52. <el-table :data="listRight" border style="width:100%;">
  53. <el-table-column prop="id" label="序号" fixed="left" width="50"></el-table-column>
  54. <el-table-column prop="name" label="穴位">
  55. <template slot-scope="scope">
  56. <!-- <el-input v-model="scope.row.name" size="mini"></el-input> -->
  57. <div class="xuewei">
  58. <el-select
  59. :id="'xuwei'+scope.row.id"
  60. size="mini"
  61. remote
  62. :value="scope.row.name"
  63. filterable
  64. placeholder="请选择" :disabled="!editable"
  65. @change="acunameC($event,scope)"
  66. :filter-method="filterMethod"
  67. >
  68. <el-option
  69. :label="item.acuname"
  70. :value="item.acuid"
  71. v-for="(item,index) in acupointList"
  72. :key="index"
  73. ></el-option>
  74. </el-select>
  75. </div>
  76. </template>
  77. </el-table-column>
  78. <el-table-column label="操作" width="100">
  79. <template slot-scope="scope" v-if="scope.row.name">
  80. <div class="operate">
  81. <img v-if="editable" src="../assets/add.png" alt @click="addData(scope)" />
  82. <img v-if="editable" src="../assets/delete1.png" alt @click="deleteData(scope)" />
  83. <img src="../assets/find.png" alt @click="find(scope)" />
  84. </div>
  85. </template>
  86. </el-table-column>
  87. </el-table>
  88. </div>
  89. </div>
  90. <!-- 底部处方 -->
  91. <div class="table-bottom">
  92. <div class="table-b-header">
  93. <div class="flex-vertical-center-l header-about flex-wrap" v-if="container_i==2">
  94. <div class="item flex-vertical-center-l">
  95. <span>类型:</span>
  96. <div class="div2">
  97. <el-select
  98. size="mini"
  99. v-model="bottom_form.doseType1"
  100. placeholder="请选择"
  101. @change="doseType1C"
  102. >
  103. <el-option
  104. :label="item.value[0]"
  105. :value="item.key"
  106. v-for="(item,index) in typeList"
  107. :key="index"
  108. ></el-option>
  109. </el-select>
  110. </div>
  111. </div>
  112. <div class="item flex-vertical-center-l">
  113. <span>次数:</span>
  114. <div class="div1">
  115. <el-input
  116. size="mini"
  117. @change="countPrice()"
  118. placeholder="请输入 "
  119. v-model="bottom_form.doseNum1"
  120. ></el-input>
  121. </div>
  122. </div>
  123. </div>
  124. <div v-if="container_i==2" class="header-about">
  125. <div class="item flex-vertical-center-l" style="align-items:flex-start;">
  126. <span>操作指南:</span>
  127. <div style="flex:1;">
  128. <el-input
  129. size="mini"
  130. placeholder="请输入"
  131. v-model="bottom_form.caozuo"
  132. type="textarea"
  133. autosize
  134. ></el-input>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="header-about">
  139. <div class="item flex-vertical-center-l">
  140. <span>嘱托:</span>
  141. <div style="flex:1;">
  142. <el-input size="mini" placeholder="请输入" v-model="bottom_form.zhutuo"></el-input>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <!-- 留在这个页面 -->
  151. <div class="table-b-bottom flex-vertical-between">
  152. <div class="t-b-b-left flex-vertical-center-l flex-wrap">
  153. <div class="t-b-l-item">
  154. 当前处方金额:
  155. <span>{{nowMoney}}元</span>
  156. </div>
  157. <div class="t-b-l-item">
  158. 合计费用:
  159. <span>{{allMoney}}元</span>
  160. </div>
  161. </div>
  162. <div class="t-b-b-right flex-vertical-center-r">
  163. <!-- <div class="flex-center bg-green" @click="submit()" v-if="showSubmit">提交处方</div> -->
  164. <template v-if="isAutoCheck==0">
  165. <el-button
  166. type="primary"
  167. size="mini"
  168. @click="submit()"
  169. v-if="editable"
  170. >保存处方</el-button>
  171. </template>
  172. <template v-if="isAutoCheck==1">
  173. <el-button
  174. type="primary"
  175. size="mini"
  176. @click="submit()"
  177. v-if="editable"
  178. >保存处方</el-button>
  179. </template>
  180. </div>
  181. </div>
  182. </div>
  183. </template>
  184. <script>
  185. import { getXueweiList } from "@/api/knowledge.js";
  186. import { getSelectType } from "@/api/city.js";
  187. import { mapGetters } from "vuex";
  188. import { getDataByKey } from "@/api/system.js";
  189. export default {
  190. props: {
  191. container_i: {
  192. type: Number,
  193. default: 2
  194. },
  195. showSubmit: {
  196. type: Boolean,
  197. default: true
  198. }
  199. },
  200. computed: {
  201. editable() {
  202. switch (+this.isAutoCheck) {
  203. case 0:
  204. /**
  205. * v-if="isAutoCheck==0"
  206. * v-if="prescribed==0 || !prescribed"
  207. * 保存处方
  208. */
  209. return +this.prescribed === 0
  210. case 1:
  211. /**
  212. * v-if="isAutoCheck==1"
  213. * v-if="paystate==0 || !paystate"
  214. * 保存处方
  215. */
  216. return +this.paystate === 0
  217. default:
  218. return false
  219. }
  220. },
  221. saveable() /* 父组件 获取 */ {
  222. return this.editable && this.tableData4.some(item => item.name)
  223. },
  224. ...mapGetters(["getuserinfo", "getPatiensInfo"])
  225. },
  226. data() {
  227. return {
  228. isMyMade: true,
  229. prescribed: 0,
  230. isAutoCheck: "0", // 是否自动审核 0 手动 1自动 (自动的时候用his 的是否支付成功字段 判断显示)
  231. paystate: 0, // 云his 是否支付 0 否 1是(为否可以编辑)
  232. name: "适宜技术处方",
  233. recipeId: "", // 当前选择的处方 id(推荐方剂)
  234. tableData4: [
  235. {
  236. id: 1,
  237. name: "",
  238. acuname: "",
  239. acuid: ""
  240. }
  241. ],
  242. listLeft: [],
  243. listRight: [],
  244. nowMoney: 0,
  245. allMoney: 0,
  246. isPay: false,
  247. // 底部表单
  248. bottom_form: {
  249. doseNum: "",
  250. doseType: "",
  251. usege: "",
  252. num: "",
  253. daijian: "",
  254. nongjian: "",
  255. time: "",
  256. caozuo: "",
  257. zhutuo: "",
  258. radio: 1,
  259. pro: "",
  260. city: "",
  261. area: "",
  262. address: "",
  263. phone: "",
  264. doseType1: "",
  265. doseNum: ""
  266. },
  267. caozuoArr: [],
  268. typeList: [],
  269. acupointList: [] // 穴位列表
  270. };
  271. },
  272. created() {
  273. this.getSelectType();
  274. this.getXueweiList();
  275. this.getDataByKey();
  276. },
  277. watch: {
  278. getuserinfo: {
  279. deep: true,
  280. immediate: true,
  281. handler() {
  282. if (this.getuserinfo.organizationid) {
  283. this.getDataByKey("automaticReview");
  284. }
  285. }
  286. },
  287. tableData4: {
  288. handler: function() {
  289. this.listLeft = this.tableData4.filter(item => {
  290. return item.id % 2 != 0;
  291. });
  292. this.listRight = this.tableData4.filter(item => {
  293. return item.id % 2 == 0;
  294. });
  295. },
  296. deep: true,
  297. immediate: true
  298. }
  299. },
  300. methods: {
  301. doseType1C(e) {
  302. this.typeList.forEach(item => {
  303. if (item.key == e) {
  304. this.bottom_form.doseType = item.value[1];
  305. }
  306. });
  307. this.countPrice();
  308. },
  309. //清空处方
  310. clear() {
  311. if (!this.editable) {
  312. this.$message.warning("已支付处方不可以清空");
  313. return;
  314. }
  315. this.isMyMade = true;
  316. this.tableData4 = [
  317. {
  318. id: 1,
  319. name: "",
  320. acuname: "",
  321. acuid: ""
  322. }
  323. ];
  324. this.nowMoney = "";
  325. this.allMoney = "";
  326. this.bottom_form = {
  327. doseNum: "",
  328. doseType: "",
  329. usege: "",
  330. num: "",
  331. daijian: "",
  332. nongjian: "",
  333. time: "",
  334. caozuo: "",
  335. zhutuo: "",
  336. radio: 1,
  337. pro: "",
  338. city: "",
  339. area: "",
  340. address: "",
  341. phone: "",
  342. doseType1: "",
  343. doseNum: ""
  344. };
  345. this.caozuoArr = [];
  346. },
  347. find(scope) {
  348. this.$emit("find", scope);
  349. },
  350. filterMethod(e) {
  351. let pinyin = /^[A-Za-z]+$/g;
  352. if (pinyin.test(e)) {
  353. this.getXueweiList(e, "1");
  354. } else {
  355. this.getXueweiList(e, "");
  356. }
  357. },
  358. submit() {
  359. this.$emit("submit");
  360. },
  361. acunameC(e, scope) {
  362. let isRepeat = false;
  363. let index = scope.row.id - 1;
  364. this.tableData4.forEach(item => {
  365. if (item.acuid == e) {
  366. this.$message({
  367. message: "穴位不可重复选择",
  368. type: "error",
  369. showClose: false
  370. });
  371. isRepeat = true;
  372. }
  373. });
  374. if (isRepeat) {
  375. this.tableData4[index].name = "";
  376. return;
  377. }
  378. let _self = this;
  379. this.acupointList.forEach(item => {
  380. if (item.acuid == e) {
  381. _self.tableData4[index].acuname = item.acuname;
  382. _self.tableData4[index].name = item.acuname;
  383. _self.tableData4[index].acuid = item.acuid;
  384. _self.bottom_form.caozuo +=
  385. item.acuname + ":" + item.acuoperation + " ";
  386. }
  387. });
  388. this.addData(scope);
  389. // this.countPrice();
  390. },
  391. // 计算价格
  392. countPrice() {
  393. let arr = this.tableData4.filter(item => {
  394. return item.name != "";
  395. });
  396. let price = this.typeList.filter(item => {
  397. return item.key == this.bottom_form.doseType1;
  398. });
  399. console.log(price);
  400. if (!Array.isArray(price) || price[0] == null) return
  401. let num = this.bottom_form.doseNum1
  402. ? Number(this.bottom_form.doseNum1)
  403. : 0;
  404. this.nowMoney = price[0].value[1] * num;
  405. this.allMoney = price[0].value[1] * num;
  406. this.nowMoney = this.nowMoney.toFixed(2);
  407. this.allMoney = this.allMoney.toFixed(2);
  408. this.$emit("update:totalAllMoney", this.allMoney);
  409. },
  410. // 添加数据
  411. addData(scope) {
  412. // let index = scope.$index;
  413. let index = scope.row.id - 1;
  414. let tableData4 = this.tableData4;
  415. if (index == this.tableData4.length - 1) {
  416. this.tableData4.push({
  417. id: 1,
  418. name: "",
  419. acuname: "",
  420. acuid: ""
  421. });
  422. } else {
  423. let data = this.tableData4.splice(scope.row.id);
  424. tableData4.push({
  425. id: 1,
  426. name: "",
  427. acuname: "",
  428. acuid: ""
  429. });
  430. tableData4 = tableData4.concat(data);
  431. this.tableData4 = tableData4;
  432. }
  433. this.getXueweiList("", "");
  434. this.tableData4.filter((item, index) => {
  435. return (item.id = index + 1);
  436. });
  437. // document.getElementById('xuwei' + scope.row.id).focus()
  438. setTimeout(() => {
  439. console.log(
  440. document.querySelectorAll("#xuwei" + (scope.row.id + 1))[0],
  441. "lalal"
  442. );
  443. document.querySelectorAll("#xuwei" + (scope.row.id + 1))[0].focus();
  444. // document.querySelectorAll('#xuwei' + (scope.row.id + 1))[0].style.borderColor = 'red'
  445. }, 200);
  446. },
  447. // 删除一条数据
  448. deleteData(scope) {
  449. let index = scope.row.id - 1;
  450. if (index == 0 && this.tableData4.length == 1) return;
  451. this.tableData4.splice(index, 1);
  452. let arr = this.bottom_form.caozuo.split(" ");
  453. arr.forEach((item, index) => {
  454. if (item.indexOf(scope.row.name) !== -1) {
  455. arr.splice(index, 1);
  456. }
  457. });
  458. this.bottom_form.caozuo = arr.join(" ");
  459. this.tableData4.filter((item, index) => {
  460. return (item.id = index + 1);
  461. });
  462. this.countPrice();
  463. },
  464. // 获取剂型
  465. async getSelectType() {
  466. let res = await getSelectType("类型");
  467. if (res.ResultCode == 0) {
  468. res.Data.forEach(item => {
  469. item.value = item.value.split("-");
  470. });
  471. this.typeList = res.Data;
  472. }
  473. },
  474. // 获取穴位数据
  475. async getXueweiList(key = "", serchtype = "") {
  476. let params = {
  477. pageid: 1,
  478. pagesize: 999,
  479. serchtype: serchtype,
  480. keyword: key
  481. };
  482. let res = await getXueweiList(params);
  483. if (res.code == 0) {
  484. this.acupointList = res.data.acupoints;
  485. }
  486. },
  487. // 获取医共体计算方式配置
  488. async getDataByKey(key = "automaticReview") {
  489. /*
  490. countMenthod:计费方式
  491. automaticReview:是否开启自动审核
  492. */
  493. let res = await getDataByKey({
  494. key: key,
  495. organizationid: this.getuserinfo.organizationid
  496. });
  497. if (res.ResultCode == 0) {
  498. if (key == "countMenthod") {
  499. if (res.ResultInfo == "0") {
  500. this.countWay = "1";
  501. } else if (res.ResultInfo == "1") {
  502. this.countWay = "2";
  503. } else if (res.ResultInfo == "2") {
  504. this.countWay = "3";
  505. }
  506. }
  507. if (key == "automaticReview") {
  508. this.isAutoCheck = res.ResultInfo;
  509. }
  510. }
  511. }
  512. }
  513. };
  514. </script>
  515. <style lang="scss" scoped>
  516. @import "../style/common.scss";
  517. .chinese_medicine {
  518. padding: 5px 5px;
  519. .clearer {
  520. width: 84px;
  521. height: 28px;
  522. background: #ffae45;
  523. border-radius: 4px;
  524. font-size: 14px;
  525. font-family: PingFang SC;
  526. font-weight: bold;
  527. color: #ffffff;
  528. cursor: pointer;
  529. margin-bottom: 5px;
  530. // float: right;
  531. }
  532. }
  533. .center-table {
  534. border: 2px solid #dedede;
  535. padding: 7px 0 0;
  536. // min-height: 600px;
  537. // position: relative;
  538. .table-header {
  539. padding-bottom: 7px;
  540. border-bottom: 2px solid #dedede;
  541. .table-label {
  542. .label-item {
  543. cursor: pointer;
  544. width: 134px;
  545. border-right: 2px solid #eaeaea;
  546. div {
  547. color: #666;
  548. transform: rotate(45deg);
  549. font-size: 28px;
  550. margin-left: 12px;
  551. margin-top: 1px;
  552. }
  553. }
  554. span {
  555. font-size: 14px;
  556. font-family: PingFang SC;
  557. font-weight: 400;
  558. color: #666666;
  559. }
  560. .l_active {
  561. color: #5386f6;
  562. }
  563. }
  564. }
  565. .add-presc {
  566. width: 70px;
  567. height: 26px;
  568. background: #ffae45;
  569. border-radius: 4px;
  570. font-size: 12px;
  571. font-family: PingFang SC;
  572. font-weight: 400;
  573. color: #ffffff;
  574. cursor: pointer;
  575. margin-right: 20px;
  576. }
  577. .table-container {
  578. padding: 0px 0px;
  579. height: 340px;
  580. overflow: auto;
  581. }
  582. .table-show {
  583. width: 100%;
  584. min-height: 212px;
  585. overflow: auto;
  586. display: flex;
  587. align-items: flex-start;
  588. justify-content: space-between;
  589. // background: #5386F6;
  590. // overflow: hidden;
  591. .table-left-body {
  592. width: 49.9%;
  593. position: relative;
  594. perspective: 100px;
  595. padding-bottom: 10px;
  596. }
  597. .table-left {
  598. // width: 100%;
  599. flex: 0 0 49.9%;
  600. overflow-y: auto;
  601. border: 1px solid #dedede;
  602. box-sizing: border-box;
  603. .table-l-hader {
  604. white-space: nowrap;
  605. div {
  606. display: inline-block;
  607. // padding: 15px 10px;
  608. background: #f3fffb;
  609. text-align: center;
  610. height: 48px;
  611. line-height: 48px;
  612. border: 1px solid #dedede;
  613. border-bottom: 0 !important;
  614. // border-top: 0 !important;
  615. }
  616. .med-name {
  617. margin-left: 50px;
  618. }
  619. .kucun {
  620. padding-right: 120px;
  621. }
  622. .fixed-r {
  623. position: fixed;
  624. right: 0;
  625. }
  626. .fixed-left {
  627. position: fixed;
  628. left: 0;
  629. }
  630. }
  631. .table-l-item {
  632. white-space: nowrap;
  633. .bg-green {
  634. .div1 {
  635. background: #f3fffb;
  636. border: 1px solid #dedede;
  637. }
  638. }
  639. .div1 {
  640. display: inline-block;
  641. // padding: 15px 10px;
  642. background: #ffffff;
  643. text-align: center;
  644. height: 53px;
  645. line-height: 53px;
  646. border: 1px solid #dedede;
  647. z-index: 9999;
  648. border-top: 0 !important;
  649. }
  650. .med-name {
  651. margin-left: 50px;
  652. }
  653. .kucun {
  654. padding-right: 120px;
  655. border-right: 1px solid #dedede;
  656. }
  657. .fixed-r {
  658. position: fixed;
  659. right: 0;
  660. }
  661. .fixed-left {
  662. position: fixed;
  663. left: 0;
  664. // border-left: 1px solid #DEDEDE;
  665. }
  666. .no-data {
  667. width: 100%;
  668. box-sizing: border-box;
  669. // border-top: 1px solid #DEDEDE;
  670. position: relative;
  671. left: 0;
  672. right: 0;
  673. bottom: 0px;
  674. // float: left;
  675. }
  676. }
  677. }
  678. }
  679. .operate {
  680. width: 100%;
  681. height: 100%;
  682. display: flex;
  683. align-items: center;
  684. justify-content: space-around;
  685. img {
  686. width: 16px;
  687. }
  688. }
  689. .bottom-input {
  690. background: #fff;
  691. padding: 12.5px 30px 12.5px 52px;
  692. position: relative;
  693. // z-index: 999;
  694. // perspective: 100px;
  695. .div {
  696. width: 154px;
  697. }
  698. .table-choose {
  699. z-index: 9999;
  700. width: 332px;
  701. height: 221px;
  702. background: #ffffff;
  703. border: 2px solid #d8d8d8;
  704. position: relative;
  705. top: 2px;
  706. left: -48px;
  707. overflow: auto;
  708. .table-choose-h {
  709. background: #f3fffb;
  710. div {
  711. height: 36px;
  712. width: 73px;
  713. }
  714. div:first-child {
  715. width: 115px;
  716. }
  717. }
  718. .t-c-b {
  719. cursor: pointer;
  720. .td {
  721. background: #f3fffb;
  722. }
  723. p {
  724. border: 1px solid #ededed;
  725. height: 36px;
  726. width: 73px;
  727. // flex: 1;
  728. box-sizing: border-box;
  729. }
  730. p:first-child {
  731. width: 115px;
  732. }
  733. }
  734. }
  735. }
  736. .table-bottom {
  737. // position: absolute;
  738. // bottom: 0;
  739. // right: 0;
  740. // left: 0;\
  741. padding: 0 5px;
  742. // margin-top: 241px;
  743. margin-top: 5px;
  744. .header-about {
  745. .item {
  746. margin-right: 20px;
  747. margin-bottom: 10px;
  748. span {
  749. font-size: 16px;
  750. font-family: PingFang SC;
  751. font-weight: 400;
  752. color: #333333;
  753. }
  754. .div1 {
  755. width: 120px;
  756. }
  757. .div2 {
  758. width: 74px;
  759. }
  760. .city1 {
  761. width: 120px;
  762. }
  763. .div3 {
  764. width: 92px;
  765. }
  766. .div4 {
  767. width: 160px;
  768. }
  769. .input-suffix {
  770. line-height: 36px;
  771. }
  772. }
  773. .right {
  774. width: 70px;
  775. height: 26px;
  776. background: #ffae45;
  777. border-radius: 4px;
  778. font-size: 14px;
  779. font-family: PingFang SC;
  780. font-weight: 400;
  781. color: #ffffff;
  782. margin-bottom: 10px;
  783. cursor: pointer;
  784. }
  785. }
  786. }
  787. .table-b-bottom {
  788. padding: 5px 5px;
  789. border-top: 2px solid #dedede;
  790. margin-top: 5px;
  791. .t-b-l-item {
  792. font-size: 14px;
  793. font-family: PingFang SC;
  794. font-weight: 400;
  795. color: #333333;
  796. margin-right: 10px;
  797. span {
  798. color: #ff6245;
  799. }
  800. }
  801. .t-b-b-right {
  802. div {
  803. width: 130px;
  804. height: 28px;
  805. background: #ffae45;
  806. border-radius: 4px;
  807. font-size: 16px;
  808. font-family: PingFang SC;
  809. font-weight: 500;
  810. color: #ffffff;
  811. cursor: pointer;
  812. }
  813. .bg-green {
  814. background: #5386f6;
  815. margin-left: 20px;
  816. }
  817. }
  818. }
  819. // 中成药 和适宜技术配方
  820. }
  821. .operate {
  822. width: 100%;
  823. height: 100%;
  824. display: flex;
  825. align-items: center;
  826. justify-content: space-around;
  827. img {
  828. width: 16px;
  829. }
  830. }
  831. .bottom-input {
  832. background: #fff;
  833. padding: 12.5px 30px 12.5px 52px;
  834. position: relative;
  835. // z-index: 999;
  836. // perspective: 100px;
  837. .div {
  838. width: 154px;
  839. }
  840. .table-choose {
  841. z-index: 9999;
  842. width: 332px;
  843. height: 221px;
  844. background: #ffffff;
  845. border: 2px solid #d8d8d8;
  846. position: relative;
  847. top: 2px;
  848. left: -48px;
  849. overflow: auto;
  850. .table-choose-h {
  851. background: #f3fffb;
  852. div {
  853. height: 36px;
  854. width: 73px;
  855. }
  856. div:first-child {
  857. width: 115px;
  858. }
  859. }
  860. .t-c-b {
  861. cursor: pointer;
  862. .td {
  863. background: #f3fffb;
  864. }
  865. p {
  866. border: 1px solid #ededed;
  867. height: 36px;
  868. width: 73px;
  869. // flex: 1;
  870. box-sizing: border-box;
  871. }
  872. p:first-child {
  873. width: 115px;
  874. }
  875. }
  876. }
  877. }
  878. .collapse ::v-deep .el-collapse-item__content {
  879. padding-bottom: 5px;
  880. }
  881. .c-m-table::v-deep .el-table .cell {
  882. text-align: center;
  883. }
  884. .table-show::v-deep .el-table .cell {
  885. text-align: center;
  886. }
  887. .c-m-table::v-deep .el-select input {
  888. padding: 0 15px 0 5px;
  889. }
  890. .table-show ::v-deep .el-select input {
  891. padding: 0 15px 0 5px;
  892. }
  893. .t_dose::v-deep .el-input__inner {
  894. // text-align: left;
  895. padding: 0 5px !important;
  896. }
  897. .city::v-deep .el-select input {
  898. padding: 0 20px 0 10px;
  899. // height: 32px;
  900. }
  901. .xuewei::v-deep .el-select {
  902. width: 100%;
  903. }
  904. .header-about::v-deep .el-input.is-disabled .el-input__inner {
  905. color: #000000;
  906. }
  907. .table-show::v-deep .el-table {
  908. // z-index: 999;
  909. }
  910. .table-show::v-deep .el-table th {
  911. padding: 2px 0;
  912. }
  913. .table-show::v-deep .el-table td {
  914. padding: 2px 0;
  915. }
  916. .table-show .table-left::v-deep .el-table__empty-block {
  917. min-height: 33px !important;
  918. height: 33px !important;
  919. }
  920. </style>
  921. <style lang="scss" scoped>
  922. @media screen and (max-width: 768px) {
  923. .center-table .chinese_medicine .clearer {
  924. height: 24px;
  925. }
  926. .table-show ::v-deep .el-table th {
  927. font-size: 12px;
  928. }
  929. .table-show ::v-deep .el-table td {
  930. font-size: 12px;
  931. }
  932. .center-table .table-bottom .header-about .item span {
  933. font-size: 12px;
  934. }
  935. .center-table .table-b-bottom .t-b-l-item {
  936. font-size: 12px;
  937. }
  938. .center-table .table-container {
  939. height: 440px;
  940. }
  941. .center-table .table-show {
  942. min-height: 319px;
  943. }
  944. }
  945. </style>