SuitableTech.vue 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604
  1. <template>
  2. <div class="suitable-tech">
  3. <!-- 搜索项 -->
  4. <div class="screening">
  5. <div class="screening-title flex-vertical-center-l">
  6. <img src="~@/assets/filters.png" alt />
  7. </div>
  8. <div style="flex:1">
  9. <div class="screening-form flex-vertical-center-l flex-wrap">
  10. <div class="screening-item flex-vertical-center-l">
  11. <span>方名:</span>
  12. <div class="input">
  13. <el-input
  14. size="mini"
  15. v-model="searchData.name"
  16. placeholder="请输入"
  17. clearable
  18. ></el-input>
  19. </div>
  20. </div>
  21. <div class="screening-item flex-vertical-center-l">
  22. <span>共享至:</span>
  23. <div class="input">
  24. <el-radio-group v-model="searchData.shareType" size="mini">
  25. <el-radio label="0">个人</el-radio>
  26. <el-radio label="1">科室</el-radio>
  27. <el-radio label="2">机构</el-radio>
  28. </el-radio-group>
  29. </div>
  30. </div>
  31. <div class="screening-item flex-vertical-center-l">
  32. <span>{{ userNameLabel }}:</span>
  33. <div class="input">
  34. <el-input
  35. size="mini"
  36. v-model="searchData.userName"
  37. placeholder="请输入"
  38. clearable
  39. ></el-input>
  40. </div>
  41. </div>
  42. <div class="screening-item flex-vertical-center-l">
  43. <span>是否统建处方:</span>
  44. <div class="input">
  45. <el-select
  46. size="mini"
  47. v-model="searchData.isUnified"
  48. placeholder="请选择"
  49. >
  50. <el-option label="是" value="1"></el-option>
  51. <el-option label="否" value="0"></el-option>
  52. </el-select>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="screening-form flex-vertical-center-l flex-wrap">
  57. <div class="screening-item flex-vertical-center-l" v-if="searchData.isUnified === '1'">
  58. <span>医派:</span>
  59. <div class="input">
  60. <el-input
  61. size="mini"
  62. v-model="searchData.medicalSchool"
  63. placeholder="请输入"
  64. clearable
  65. ></el-input>
  66. </div>
  67. </div>
  68. <div class="screening-item flex-vertical-center-l" v-if="searchData.isUnified === '1'">
  69. <span>科室:</span>
  70. <div class="input">
  71. <el-input
  72. size="mini"
  73. v-model="searchData.department"
  74. placeholder="请输入"
  75. clearable
  76. ></el-input>
  77. </div>
  78. </div>
  79. <div class="screening-item flex-vertical-center-l">
  80. <span>涵盖项目:</span>
  81. <div class="input">
  82. <el-select
  83. size="mini"
  84. v-model="searchData.includeItem"
  85. placeholder="请搜索选择"
  86. clearable
  87. filterable
  88. :loading="projectLoading"
  89. loading-text="搜索中..."
  90. :filter-method="searchProject"
  91. @focus="searchProject('')"
  92. >
  93. <el-option
  94. v-for="(item, idx) in projectOptions"
  95. :key="idx"
  96. :label="item.itemName"
  97. :value="item.pid"
  98. ></el-option>
  99. </el-select>
  100. </div>
  101. </div>
  102. <div class="screening-item flex-vertical-center-l">
  103. <span>功效与适应症:</span>
  104. <div class="input">
  105. <el-input
  106. size="mini"
  107. v-model="searchData.efficacy"
  108. placeholder="请输入"
  109. clearable
  110. ></el-input>
  111. </div>
  112. </div>
  113. <el-button type="primary" size="mini" @click="search()">搜索</el-button>
  114. <el-button type="warning" size="mini" @click="clearFilter()">清空</el-button>
  115. <el-button type="primary" size="mini" @click="openEditDialog()">新增</el-button>
  116. </div>
  117. </div>
  118. </div>
  119. <!-- 列表表格数据 -->
  120. <div class="table">
  121. <div class="today-table">
  122. <div class="table-container">
  123. <el-table
  124. :data="tableData"
  125. stripe
  126. style="width: 100%"
  127. border
  128. height="100%"
  129. row-key="pid"
  130. :expand-row-keys="expandRows"
  131. @expand-change="handleExpandChange"
  132. v-loading="tableLoading"
  133. >
  134. <el-table-column type="expand">
  135. <template slot-scope="props">
  136. <div class="expand-table">
  137. <el-table
  138. :data="props.row.subList"
  139. border
  140. size="mini"
  141. style="width: 100%"
  142. >
  143. <el-table-column
  144. prop="index"
  145. label="序号"
  146. width="60"
  147. align="center"
  148. ></el-table-column>
  149. <el-table-column
  150. prop="treatItemName"
  151. label="项目名称"
  152. align="center"
  153. ></el-table-column>
  154. <el-table-column
  155. label="分类"
  156. width="120"
  157. align="center"
  158. >
  159. <template slot-scope="scope">
  160. {{ formatTreatClass(scope.row.treatClass) }}
  161. </template>
  162. </el-table-column>
  163. <el-table-column label="穴位/部位/耳穴/经络" align="center">
  164. <template slot-scope="scope">
  165. {{ formatDetailList(scope.row) }}
  166. </template>
  167. </el-table-column>
  168. <el-table-column
  169. prop="isUpdate"
  170. label="是否可修改"
  171. width="100"
  172. align="center"
  173. >
  174. <template slot-scope="scope">
  175. {{ scope.row.isUpdate === "1" ? "是" : "否" }}
  176. </template>
  177. </el-table-column>
  178. </el-table>
  179. </div>
  180. </template>
  181. </el-table-column>
  182. <el-table-column
  183. prop="index"
  184. label="序号"
  185. width="60"
  186. align="center"
  187. ></el-table-column>
  188. <el-table-column
  189. prop="name"
  190. label="方名"
  191. min-width="120"
  192. align="center"
  193. ></el-table-column>
  194. <el-table-column
  195. prop="effect"
  196. label="功效与适应症"
  197. min-width="180"
  198. align="center"
  199. show-overflow-tooltip
  200. ></el-table-column>
  201. <el-table-column
  202. prop="provenance"
  203. label="处方出处"
  204. width="100"
  205. align="center"
  206. ></el-table-column>
  207. <el-table-column
  208. prop="showType"
  209. label="共享状态"
  210. width="100"
  211. align="center"
  212. >
  213. <template slot-scope="scope">
  214. <span>{{
  215. scope.row.showType === "0"
  216. ? "个人"
  217. : scope.row.showType === "1"
  218. ? "科室"
  219. : scope.row.showType === "2"
  220. ? "机构"
  221. : "-"
  222. }}</span>
  223. </template>
  224. </el-table-column>
  225. <el-table-column
  226. prop="purposeType"
  227. label="是否统建处方"
  228. width="110"
  229. align="center"
  230. >
  231. <template slot-scope="scope">
  232. {{ scope.row.purposeType === "1" ? "是" : "否" }}
  233. </template>
  234. </el-table-column>
  235. <el-table-column
  236. prop="createUserName"
  237. label="创建者"
  238. width="100"
  239. align="center"
  240. ></el-table-column>
  241. <el-table-column label="操作" width="180" align="center">
  242. <template slot-scope="scope">
  243. <div class="flex-center">
  244. <div class="find-detail find-fill" :class="{ 'is-disabled': scope.row.createUser != currentUserId }" @click="scope.row.createUser == currentUserId && openEditDialog(scope.row)">编辑</div>
  245. <div class="find-detail find-fill1" :class="{ 'is-disabled': scope.row.createUser != currentUserId }" @click="scope.row.createUser == currentUserId && handleDelete(scope.row)">删除</div>
  246. <div class="find-detail find-fill2" @click="handleView(scope.row)">查看</div>
  247. </div>
  248. </template>
  249. </el-table-column>
  250. </el-table>
  251. </div>
  252. <div class="flex-vertical-center-r today-page">
  253. <el-pagination
  254. background
  255. layout=" prev, pager, next, jumper, total"
  256. :total="total"
  257. :page-size="limit"
  258. @current-change="sizeC($event)"
  259. ></el-pagination>
  260. </div>
  261. </div>
  262. </div>
  263. <!-- 新增/编辑弹窗 -->
  264. <popup
  265. distanceTop="5vh"
  266. fullscreen
  267. :showBtns="false"
  268. :showDialog.sync="showEditDialog"
  269. :loading="editLoading"
  270. :title="editData.pid ? '编辑适宜技术协定方' : '新增适宜技术协定方'"
  271. >
  272. <div slot="body" class="dialog-body-wrapper">
  273. <div class="dialog-back-btn" @click="handleEditBack">返回</div>
  274. <div class="dialog-scroll-area">
  275. <div class="dialog-form flex-wrap">
  276. <div class="form-item flex flex-col-center">
  277. <div class="name"><span style="color: red">*</span> 方名:</div>
  278. <div class="input">
  279. <el-input
  280. size="mini"
  281. v-model="editData.name"
  282. placeholder="请输入"
  283. ></el-input>
  284. </div>
  285. </div>
  286. <div class="form-item flex flex-col-center">
  287. <span style="opacity:0">*</span>
  288. <div class="name">中医病名:</div>
  289. <div class="input">
  290. <el-autocomplete
  291. size="mini"
  292. v-model="editData.chineseDiseaseName"
  293. :fetch-suggestions="queryDisease"
  294. value-key="disname"
  295. placeholder="请搜索选择"
  296. clearable
  297. :trigger-on-focus="true"
  298. @select="onDiseaseSelect"
  299. @clear="onDiseaseClear"
  300. >
  301. <template slot-scope="{ item }">
  302. <div :class="{ 'autocomplete-disabled': item._disabled }">
  303. {{ item.disname }}
  304. </div>
  305. </template>
  306. </el-autocomplete>
  307. </div>
  308. </div>
  309. <div class="form-item flex flex-col-center">
  310. <span style="opacity:0">*</span>
  311. <div class="name">共享至:</div>
  312. <div class="input">
  313. <el-select
  314. size="mini"
  315. v-model="editData.showType"
  316. placeholder="请选择"
  317. >
  318. <el-option
  319. v-for="opt in shareOptions"
  320. :key="opt.value"
  321. :label="opt.label"
  322. :value="opt.value"
  323. ></el-option>
  324. </el-select>
  325. </div>
  326. </div>
  327. <div class="form-item flex flex-col-center">
  328. <span style="opacity:0">*</span>
  329. <div class="name">处方出处:</div>
  330. <div class="input">
  331. <el-input
  332. size="mini"
  333. v-model="editData.source"
  334. placeholder="请输入"
  335. ></el-input>
  336. </div>
  337. </div>
  338. <div class="form-item flex flex-col-center form-item-half">
  339. <span style="opacity:0">*</span>
  340. <div class="name">西医诊断:</div>
  341. <div class="input">
  342. <el-select
  343. size="mini"
  344. v-model="editData.westernDisease"
  345. placeholder="请搜索选择"
  346. clearable
  347. filterable
  348. multiple
  349. remote
  350. :remote-method="searchWesternDisease"
  351. :loading="westernDiseaseLoading"
  352. loading-text="搜索中..."
  353. @change="onWesternDiseaseChange"
  354. popper-class="western-disease-select"
  355. @visible-change="onWesternDiseaseVisible"
  356. >
  357. <el-option
  358. v-for="(item, idx) in westernDiseaseOptions"
  359. :key="idx"
  360. :label="item.westname"
  361. :value="String(item.westcode)"
  362. ></el-option>
  363. </el-select>
  364. </div>
  365. </div>
  366. <div class="form-item flex flex-col-center form-item-half">
  367. <span style="opacity:0">*</span>
  368. <div class="name">功效与适应症:</div>
  369. <div class="input">
  370. <el-input
  371. size="mini"
  372. v-model="editData.efficacy"
  373. placeholder="请输入"
  374. ></el-input>
  375. </div>
  376. </div>
  377. <div class="form-item flex flex-col-center">
  378. <span style="opacity:0">*</span>
  379. <div class="name">证型:</div>
  380. <div class="input">
  381. <el-select
  382. size="mini"
  383. v-model="editData.symptomid"
  384. placeholder="请搜索选择"
  385. clearable
  386. filterable
  387. :loading="symptomLoading"
  388. loading-text="搜索中..."
  389. :filter-method="searchSymptom"
  390. @change="onSymptomChange"
  391. @focus="searchSymptom('')"
  392. >
  393. <el-option
  394. v-for="(item, idx) in symptomOptions"
  395. :key="idx"
  396. :label="item.symname"
  397. :value="String(item.symid)"
  398. ></el-option>
  399. </el-select>
  400. </div>
  401. </div>
  402. <div class="form-item flex flex-col-center">
  403. <span style="opacity:0">*</span>
  404. <div class="name">治法:</div>
  405. <div class="input">
  406. <el-select
  407. size="mini"
  408. v-model="editData.therapyCode"
  409. placeholder="请搜索选择"
  410. clearable
  411. filterable
  412. :loading="therapyLoading"
  413. loading-text="搜索中..."
  414. :filter-method="searchTherapy"
  415. @focus="searchTherapy('')"
  416. >
  417. <el-option
  418. v-for="(item, idx) in therapyOptions"
  419. :key="idx"
  420. :label="item.therapy"
  421. :value="String(item.therapyCode)"
  422. ></el-option>
  423. </el-select>
  424. </div>
  425. </div>
  426. <div class="form-item flex flex-col-center">
  427. <span style="opacity:0">*</span>
  428. <el-checkbox v-model="editData.isUnified" class="unified-checkbox">统建处方</el-checkbox>
  429. </div>
  430. <div class="form-item flex flex-col-center" v-if="editData.isUnified">
  431. <div class="name"><span style="color: red">*</span> 医派:</div>
  432. <div class="input">
  433. <el-input
  434. size="mini"
  435. v-model="editData.medicalSchool"
  436. placeholder="请输入"
  437. ></el-input>
  438. </div>
  439. </div>
  440. <div class="form-item flex flex-col-center" v-if="editData.isUnified">
  441. <div class="name"><span style="color: red">*</span> 科室:</div>
  442. <div class="input">
  443. <el-input
  444. size="mini"
  445. v-model="editData.department"
  446. placeholder="请输入"
  447. ></el-input>
  448. </div>
  449. </div>
  450. </div>
  451. <!-- 配穴表格 -->
  452. <AcupointTable
  453. ref="acupointTable"
  454. v-model="editData.acupoints"
  455. :isEditable.sync="editData.isEditable"
  456. :detailTypes.sync="editData.detailTypes"
  457. :statistics.sync="editData.statistics"
  458. :showGuide="true"
  459. @save="onAcupointSave"
  460. />
  461. </div>
  462. </div>
  463. </popup>
  464. <!-- 查看详情弹窗 -->
  465. <popup
  466. distanceTop="5vh"
  467. fullscreen
  468. :showBtns="false"
  469. :showDialog.sync="showViewDialog"
  470. :loading="viewLoading"
  471. title="查看适宜技术协定方"
  472. >
  473. <div slot="body" class="dialog-body-wrapper">
  474. <div class="dialog-back-btn" @click="showViewDialog = false">返回</div>
  475. <div class="dialog-scroll-area">
  476. <div class="dialog-form flex-wrap">
  477. <div class="form-item flex flex-col-center">
  478. <div class="name">方名:</div>
  479. <div class="input">
  480. <el-input
  481. size="mini"
  482. v-model="viewData.name"
  483. placeholder="-"
  484. disabled
  485. ></el-input>
  486. </div>
  487. </div>
  488. <div class="form-item flex flex-col-center">
  489. <div class="name">中医病名:</div>
  490. <div class="input">
  491. <el-input
  492. size="mini"
  493. v-model="viewData.disName"
  494. placeholder="-"
  495. disabled
  496. ></el-input>
  497. </div>
  498. </div>
  499. <div class="form-item flex flex-col-center">
  500. <div class="name">证型:</div>
  501. <div class="input">
  502. <el-input
  503. size="mini"
  504. v-model="viewData.synName"
  505. placeholder="-"
  506. disabled
  507. ></el-input>
  508. </div>
  509. </div>
  510. <div class="form-item flex flex-col-center">
  511. <div class="name">治法:</div>
  512. <div class="input">
  513. <el-input
  514. size="mini"
  515. v-model="viewData.theName"
  516. placeholder="-"
  517. disabled
  518. ></el-input>
  519. </div>
  520. </div>
  521. <div class="form-item flex flex-col-center">
  522. <div class="name">西医诊断:</div>
  523. <div class="input">
  524. <el-input
  525. size="mini"
  526. v-model="viewData.westernDiag"
  527. placeholder="-"
  528. disabled
  529. ></el-input>
  530. </div>
  531. </div>
  532. <div class="form-item flex flex-col-center">
  533. <div class="name">功效与适应症:</div>
  534. <div class="input">
  535. <el-input
  536. size="mini"
  537. v-model="viewData.effect"
  538. placeholder="-"
  539. disabled
  540. ></el-input>
  541. </div>
  542. </div>
  543. <div class="form-item flex flex-col-center">
  544. <div class="name">共享至:</div>
  545. <div class="input">
  546. <el-select size="mini" v-model="viewData.showType" disabled>
  547. <el-option label="个人" value="0"></el-option>
  548. <el-option label="科室" value="1"></el-option>
  549. <el-option label="机构" value="2"></el-option>
  550. </el-select>
  551. </div>
  552. </div>
  553. <div class="form-item flex flex-col-center">
  554. <div class="name">处方出处:</div>
  555. <div class="input">
  556. <el-input
  557. size="mini"
  558. v-model="viewData.provenance"
  559. placeholder="-"
  560. disabled
  561. ></el-input>
  562. </div>
  563. </div>
  564. <div class="form-item flex flex-col-center">
  565. <div class="name">统建处方:</div>
  566. <div class="input">
  567. <el-checkbox
  568. v-model="viewData.isUnifiedChecked"
  569. true-label="1"
  570. false-label="0"
  571. disabled
  572. ></el-checkbox>
  573. </div>
  574. </div>
  575. <template v-if="viewData.purposeType === '1'">
  576. <div class="form-item flex flex-col-center">
  577. <div class="name">医派:</div>
  578. <div class="input">
  579. <el-input
  580. size="mini"
  581. v-model="viewData.sectCategory"
  582. placeholder="-"
  583. disabled
  584. ></el-input>
  585. </div>
  586. </div>
  587. <div class="form-item flex flex-col-center">
  588. <div class="name">科室:</div>
  589. <div class="input">
  590. <el-input
  591. size="mini"
  592. v-model="viewData.sectDept"
  593. placeholder="-"
  594. disabled
  595. ></el-input>
  596. </div>
  597. </div>
  598. </template>
  599. </div>
  600. <SuitableTechDetail ref="techDetail" :detailData="viewData" />
  601. </div>
  602. </div>
  603. </popup>
  604. </div>
  605. </template>
  606. <script>
  607. import popup from "@/components/Propup.vue";
  608. import AcupointTable from "./components/AcupointTable.vue";
  609. import SuitableTechDetail from "./components/SuitableTechDetail.vue";
  610. import {
  611. getDiseaseListMethod,
  612. getSymptomListMethod,
  613. getTherapyListMethod,
  614. } from "@/request/api.illness.js";
  615. import {
  616. getSuitableTechList,
  617. getSuitableTechInfo,
  618. saveSuitableTech,
  619. deleteSuitableTech,
  620. getMappedNondrugItemList,
  621. } from "@/api/technology.js";
  622. import { getXDiseaseName } from "@/api/knowledge.js";
  623. export default {
  624. name: "SuitableTech",
  625. components: { popup, AcupointTable, SuitableTechDetail },
  626. data() {
  627. return {
  628. searchData: {
  629. name: "",
  630. shareType: "0",
  631. userName: "",
  632. isUnified: "",
  633. medicalSchool: "",
  634. department: "",
  635. includeItem: "",
  636. efficacy: "",
  637. },
  638. // 下拉选项
  639. diseaseOptions: [],
  640. symptomOptions: [],
  641. therapyOptions: [],
  642. westernDiseaseOptions: [],
  643. westernDiseaseNameMap: {},
  644. westernDiseasePage: 1,
  645. westernDiseaseHasMore: true,
  646. projectOptions: [],
  647. // 下拉加载状态
  648. diseaseLoading: false,
  649. symptomLoading: false,
  650. therapyLoading: false,
  651. westernDiseaseLoading: false,
  652. projectLoading: false,
  653. // 表格数据
  654. tableData: [],
  655. tableLoading: false,
  656. expandRows: [],
  657. page: 1,
  658. limit: 10,
  659. total: 0,
  660. // 弹窗相关
  661. showEditDialog: false,
  662. editLoading: false,
  663. editData: {
  664. statistics: {},
  665. },
  666. // 查看详情弹窗
  667. showViewDialog: false,
  668. viewLoading: false,
  669. viewData: {},
  670. };
  671. },
  672. computed: {
  673. userNameLabel() {
  674. const map = {
  675. "0": "姓名",
  676. "1": "科室名称",
  677. "2": "机构名称",
  678. };
  679. return map[this.searchData.shareType] || "姓名";
  680. },
  681. currentUserId() {
  682. const userInfo = this.$store.state.user.userInfo || {};
  683. return userInfo.pid;
  684. },
  685. shareOptions() {
  686. const userInfo = this.$store.state.user.userInfo || {};
  687. const perm = String(userInfo.prescriptionSharePerm || "");
  688. const permList = perm.split(/[,,]/).map(v => v.trim());
  689. const has = (v) => permList.includes(String(v));
  690. const options = [];
  691. if (has(0)) options.push({ label: "个人", value: "0" });
  692. if (has(1) || has(2)) options.push({ label: "科室", value: "1" });
  693. if (has(3)) options.push({ label: "医疗机构", value: "2" });
  694. return options;
  695. },
  696. defaultShareType() {
  697. const options = this.shareOptions;
  698. return options.length ? options[0].value : "0";
  699. },
  700. },
  701. created() {
  702. this.getList();
  703. },
  704. methods: {
  705. // 中医病名搜索
  706. async queryDisease(queryString, cb) {
  707. this._prevDiseaseInput = queryString;
  708. try {
  709. const { list } = await getDiseaseListMethod(1, 9999, {
  710. keyword: queryString || "",
  711. });
  712. if (list && list.length > 0) {
  713. cb(list);
  714. } else {
  715. cb([{ disname: "暂无数据", _disabled: true }]);
  716. }
  717. } catch (e) {
  718. console.error("搜索中医病名失败", e);
  719. cb([{ disname: "搜索失败,请重试", _disabled: true }]);
  720. }
  721. },
  722. onDiseaseSelect(item) {
  723. if (item._disabled) {
  724. // 恢复为点击前的输入文字
  725. this.$nextTick(() => {
  726. this.editData.chineseDiseaseName = this._prevDiseaseInput || "";
  727. });
  728. return;
  729. }
  730. this.editData.chineseDisease = String(item.disid);
  731. this.editData.chineseDiseaseName = item.disname;
  732. this.editData.disCode = item.disCode || "";
  733. // 联动加载证型
  734. this.editData.symptomid = "";
  735. this.editData.symptomName = "";
  736. this.symptomOptions = [];
  737. // 联动清空治法
  738. this.editData.therapyCode = "";
  739. this.editData.therapyName = "";
  740. this.therapyOptions = [];
  741. this.searchSymptom("");
  742. },
  743. onDiseaseClear() {
  744. this.editData.chineseDisease = "";
  745. this.editData.chineseDiseaseName = "";
  746. this.editData.disCode = "";
  747. this.editData.symptomid = "";
  748. this.editData.symptomName = "";
  749. this.symptomOptions = [];
  750. this.editData.therapyCode = "";
  751. this.editData.therapyName = "";
  752. this.therapyOptions = [];
  753. },
  754. // 证型变更联动
  755. onSymptomChange(symid) {
  756. const selected = this.symptomOptions.find((item) => item.symid === symid);
  757. if (selected) {
  758. this.editData.symptomName = selected.symname;
  759. this.editData.symptomCode = selected.synCode || "";
  760. }
  761. // 联动清空治法并重新加载
  762. this.editData.therapyCode = "";
  763. this.editData.therapyName = "";
  764. this.therapyOptions = [];
  765. if (symid) {
  766. this.searchTherapy("");
  767. }
  768. },
  769. // ========== 证型搜索 ==========
  770. async searchSymptom(query) {
  771. this.symptomLoading = true;
  772. try {
  773. const params = { keyword: query || "" };
  774. if (this.editData.chineseDisease)
  775. params.disid = this.editData.chineseDisease;
  776. if (this.editData.disCode) params.disCode = this.editData.disCode;
  777. const { list } = await getSymptomListMethod(1, 9999, params);
  778. this.symptomOptions = list || [];
  779. } catch (e) {
  780. console.error("搜索证型失败", e);
  781. } finally {
  782. this.symptomLoading = false;
  783. }
  784. },
  785. // ========== 治法搜索 ==========
  786. async searchTherapy(query) {
  787. this.therapyLoading = true;
  788. try {
  789. const params = { keyword: query || "" };
  790. if (this.editData.disCode) params.disCode = this.editData.disCode;
  791. if (this.editData.symptomid) {
  792. params.symptomCode = this.editData.symptomid;
  793. params.symid = this.editData.symptomid;
  794. }
  795. const { list } = await getTherapyListMethod(1, 9999, params);
  796. this.therapyOptions = list || [];
  797. } catch (e) {
  798. console.error("搜索治法失败", e);
  799. } finally {
  800. this.therapyLoading = false;
  801. }
  802. },
  803. // ========== 西医诊断搜索(分页) ==========
  804. async searchWesternDisease(query) {
  805. this.westernDiseasePage = 1;
  806. this.westernDiseaseHasMore = true;
  807. this._wdQuery = query || "";
  808. this.westernDiseaseLoading = true;
  809. try {
  810. const pinyin = /^[A-Za-z]+$/g;
  811. const serchtype = query && pinyin.test(query) ? "1" : "";
  812. const res = await getXDiseaseName({
  813. pageid: 1,
  814. pagesize: 200,
  815. keyword: query || "",
  816. serchtype,
  817. });
  818. if (res.code == 0) {
  819. const list = res.data?.wests || [];
  820. // 保留已选中但不在搜索结果中的选项
  821. const selectedCodes = Array.isArray(this.editData.westernDisease)
  822. ? this.editData.westernDisease
  823. : [];
  824. const resultCodes = new Set(list.map((i) => i.westcode));
  825. const preserved = selectedCodes
  826. .filter((code) => !resultCodes.has(code))
  827. .map((code) => ({
  828. westcode: code,
  829. westname: this.westernDiseaseNameMap[code] || code,
  830. }));
  831. this.westernDiseaseOptions = [...preserved, ...list];
  832. this.westernDiseaseHasMore = list.length >= 200;
  833. list.forEach((item) => {
  834. if (item.westcode && item.westname) {
  835. this.westernDiseaseNameMap[item.westcode] = item.westname;
  836. }
  837. });
  838. }
  839. } catch (e) {
  840. console.error("搜索西医诊断失败", e);
  841. } finally {
  842. this.westernDiseaseLoading = false;
  843. }
  844. },
  845. async loadMoreWesternDisease() {
  846. if (this.westernDiseaseLoading || !this.westernDiseaseHasMore) return;
  847. this.westernDiseasePage++;
  848. this.westernDiseaseLoading = true;
  849. try {
  850. const query = this._wdQuery || "";
  851. const pinyin = /^[A-Za-z]+$/g;
  852. const serchtype = query && pinyin.test(query) ? "1" : "";
  853. const res = await getXDiseaseName({
  854. pageid: this.westernDiseasePage,
  855. pagesize: 200,
  856. keyword: query,
  857. serchtype,
  858. });
  859. if (res.code == 0) {
  860. const list = res.data?.wests || [];
  861. this.westernDiseaseOptions = this.westernDiseaseOptions.concat(list);
  862. this.westernDiseaseHasMore = list.length >= 200;
  863. list.forEach((item) => {
  864. if (item.westcode && item.westname) {
  865. this.westernDiseaseNameMap[item.westcode] = item.westname;
  866. }
  867. });
  868. }
  869. } catch (e) {
  870. console.error("加载更多西医诊断失败", e);
  871. } finally {
  872. this.westernDiseaseLoading = false;
  873. }
  874. },
  875. onWesternDiseaseVisible(show) {
  876. if (!show) {
  877. const wrap = document.querySelector(
  878. ".western-disease-select .el-scrollbar__wrap",
  879. );
  880. if (wrap && this._wdScroll) {
  881. wrap.removeEventListener("scroll", this._wdScroll);
  882. }
  883. return;
  884. }
  885. // 首次打开且无数据时加载初始列表
  886. if (this.westernDiseaseOptions.length === 0) {
  887. this.searchWesternDisease("");
  888. }
  889. this.$nextTick(() => {
  890. const wrap = document.querySelector(
  891. ".western-disease-select .el-scrollbar__wrap",
  892. );
  893. if (wrap) {
  894. wrap.addEventListener(
  895. "scroll",
  896. (this._wdScroll = () => {
  897. if (wrap.scrollHeight - wrap.scrollTop <= wrap.clientHeight + 5) {
  898. this.loadMoreWesternDisease();
  899. }
  900. }),
  901. );
  902. }
  903. });
  904. },
  905. onWesternDiseaseChange(codes) {
  906. const names = codes
  907. .map((code) => this.westernDiseaseNameMap[code] || "")
  908. .filter(Boolean);
  909. this.editData.westernDiseaseName = names.join(",");
  910. },
  911. // ========== 涵盖项目模糊搜索 ==========
  912. async searchProject(query) {
  913. this.projectLoading = true;
  914. try {
  915. const res = await getMappedNondrugItemList({
  916. pageNum: 1,
  917. pageSize: 100,
  918. itemName: query || undefined,
  919. });
  920. if (res.ResultCode === 0) {
  921. this.projectOptions = res.Data?.Items || res.Data || [];
  922. }
  923. } catch (e) {
  924. console.error("搜索涵盖项目失败", e);
  925. } finally {
  926. this.projectLoading = false;
  927. }
  928. },
  929. search() {
  930. this.page = 1;
  931. this.getList();
  932. },
  933. clearFilter() {
  934. this.searchData = {
  935. name: "",
  936. shareType: "0",
  937. userName: "",
  938. isUnified: "",
  939. medicalSchool: "",
  940. department: "",
  941. includeItem: "",
  942. efficacy: "",
  943. };
  944. this.getList();
  945. },
  946. sizeC(e) {
  947. this.page = e;
  948. this.getList();
  949. },
  950. handleExpandChange(row, expandedRows) {
  951. this.expandRows = expandedRows.map((item) => item.pid);
  952. },
  953. formatTreatClass(val) {
  954. const map = {
  955. 1: "艾灸疗法",
  956. 2: "非艾·灸法",
  957. 3: "拔罐疗法",
  958. 4: "针刺疗法",
  959. 5: "敷熨熏浴",
  960. 6: "推拿疗法",
  961. 7: "耳穴疗法",
  962. 8: "刮痧疗法",
  963. 9: "物理疗法",
  964. 10: "中医肛肠",
  965. 11: "中医微创",
  966. 12: "其他疗法",
  967. 194: "中医骨伤",
  968. };
  969. return map[val] || val || "-";
  970. },
  971. formatDetailList(row) {
  972. const parts = [];
  973. const extractNames = (arr) => {
  974. if (!Array.isArray(arr) || !arr.length) return "";
  975. return arr
  976. .map((item) => item.name || "")
  977. .filter(Boolean)
  978. .join("、");
  979. };
  980. const pointNames = extractNames(row.detailPoint);
  981. if (pointNames) parts.push("穴位: " + pointNames);
  982. const meridianNames = extractNames(row.detailMeridian);
  983. if (meridianNames) parts.push("经络: " + meridianNames);
  984. const earNames = extractNames(row.detailEarPoint);
  985. if (earNames) parts.push("耳穴: " + earNames);
  986. const bodyNames = extractNames(row.detailBodyPart);
  987. if (bodyNames) parts.push("部位: " + bodyNames);
  988. const otherNames = extractNames(row.detailOther);
  989. if (otherNames) parts.push("其他: " + otherNames);
  990. return parts.join(";") || "-";
  991. },
  992. handleEditBack() {
  993. if (!this.editData.pid) {
  994. this.$confirm("协定方未保存,返回则会清空当前编辑内容", "提示", {
  995. confirmButtonText: "确定",
  996. cancelButtonText: "取消",
  997. type: "warning",
  998. })
  999. .then(() => {
  1000. this.showEditDialog = false;
  1001. })
  1002. .catch(() => {});
  1003. } else {
  1004. this.showEditDialog = false;
  1005. }
  1006. },
  1007. async openEditDialog(row) {
  1008. if (row) {
  1009. // 调用详情接口获取完整数据
  1010. this.editLoading = true;
  1011. let detail = row;
  1012. try {
  1013. const res = await getSuitableTechInfo(row.pid);
  1014. if (res.ResultCode === 0) {
  1015. detail = res.Data || row;
  1016. }
  1017. } catch (e) {
  1018. console.error("获取详情失败", e);
  1019. } finally {
  1020. this.editLoading = false;
  1021. }
  1022. // 用详情数据构造下拉选项,确保回显时下拉框能显示名称
  1023. this.diseaseOptions =
  1024. detail.disId != null
  1025. ? [
  1026. {
  1027. disid: detail.disId,
  1028. disname: detail.disName,
  1029. disCode: detail.disCode,
  1030. },
  1031. ]
  1032. : [];
  1033. this.symptomOptions =
  1034. detail.synCode != null
  1035. ? [
  1036. {
  1037. symid: detail.synCode,
  1038. symname: detail.synName,
  1039. synCode: detail.synCode,
  1040. },
  1041. ]
  1042. : [];
  1043. this.therapyOptions =
  1044. detail.theCode != null
  1045. ? [
  1046. {
  1047. therapyCode: detail.theCode,
  1048. therapy: detail.theName,
  1049. therapyName: detail.theName,
  1050. },
  1051. ]
  1052. : [];
  1053. if (detail.westernCode) {
  1054. const codes = String(detail.westernCode).split(",");
  1055. const names = detail.westernDiag
  1056. ? String(detail.westernDiag).split(",")
  1057. : [];
  1058. this.westernDiseaseOptions = codes.map((code, idx) => ({
  1059. westcode: code.trim(),
  1060. westname: (names[idx] || "").trim() || code.trim(),
  1061. }));
  1062. } else {
  1063. this.westernDiseaseOptions = [];
  1064. }
  1065. // 同步到名称映射
  1066. this.westernDiseaseNameMap = {};
  1067. this.westernDiseaseOptions.forEach((item) => {
  1068. if (item.westcode && item.westname) {
  1069. this.westernDiseaseNameMap[item.westcode] = item.westname;
  1070. }
  1071. });
  1072. this.editData = {
  1073. ...detail,
  1074. showType: String(detail.showType ?? "0"),
  1075. efficacy: detail.effect || "",
  1076. source: detail.provenance || "",
  1077. isUnified: String(detail.purposeType) === "1",
  1078. medicalSchool: detail.sectCategory || "",
  1079. department: detail.sectDept || "",
  1080. chineseDisease: detail.disId != null ? String(detail.disId) : "",
  1081. chineseDiseaseName: detail.disName || "",
  1082. disCode: detail.disCode || "",
  1083. symptomid: detail.synCode != null ? String(detail.synCode) : "",
  1084. symptomName: detail.synName || "",
  1085. symptomCode: detail.synCode || "",
  1086. westernDisease: detail.westernCode
  1087. ? String(detail.westernCode)
  1088. .split(",")
  1089. .map((s) => s.trim())
  1090. : [],
  1091. westernDiseaseName: detail.westernDiag || "",
  1092. therapyCode: detail.theCode != null ? String(detail.theCode) : "",
  1093. therapyName: detail.theName || "",
  1094. acupoints: detail.acupoints || [],
  1095. detailTypes: detail.detailTypes || ["穴位"],
  1096. statistics: detail.statistics || {},
  1097. };
  1098. this.showEditDialog = true;
  1099. // 弹窗显示后回填 treatmentList 到 AcupointTable
  1100. this.$nextTick(() => {
  1101. if (this.$refs.acupointTable && detail.treatmentList) {
  1102. this.$refs.acupointTable.loadFromServerData(detail.treatmentList);
  1103. }
  1104. });
  1105. } else {
  1106. this.editData = {
  1107. name: "",
  1108. chineseDisease: "",
  1109. chineseDiseaseName: "",
  1110. disCode: "",
  1111. symptomid: "",
  1112. symptomName: "",
  1113. therapyCode: "",
  1114. therapyName: "",
  1115. westernDisease: [],
  1116. westernDiseaseName: "",
  1117. efficacy: "",
  1118. showType: this.defaultShareType,
  1119. source: "",
  1120. isUnified: false,
  1121. medicalSchool: "",
  1122. department: "",
  1123. isEditable: "1",
  1124. detailTypes: [""],
  1125. acupoints: [],
  1126. statistics: {},
  1127. };
  1128. this.showEditDialog = true;
  1129. }
  1130. },
  1131. async submitEditData() {
  1132. // 通过 AcupointTable 的 handleSave 触发保存流程
  1133. this.$refs.acupointTable.handleSave();
  1134. },
  1135. async onAcupointSave(treatmentList, institutionInfo) {
  1136. // 从下拉选项中查找选中项的名称
  1137. const selectedDisease = this.diseaseOptions.find(
  1138. (o) => o.disid === this.editData.chineseDisease,
  1139. );
  1140. const selectedSymptom = this.symptomOptions.find(
  1141. (o) => o.symid === this.editData.symptomid,
  1142. );
  1143. const selectedTherapy = this.therapyOptions.find(
  1144. (o) => o.therapyCode === this.editData.therapyCode,
  1145. );
  1146. const params = {
  1147. // 必填字段
  1148. name: this.editData.name,
  1149. showType: this.editData.showType || "0",
  1150. // 基本信息
  1151. effect: this.editData.efficacy || "",
  1152. provenance: this.editData.source || "",
  1153. purposeType: this.editData.isUnified ? "1" : "0",
  1154. sectCategory: this.editData.medicalSchool || "",
  1155. sectDept: this.editData.department || "",
  1156. // 疾病信息
  1157. disId: this.editData.chineseDisease || undefined,
  1158. disName: selectedDisease
  1159. ? selectedDisease.disname
  1160. : this.editData.chineseDiseaseName || "",
  1161. disCode: this.editData.disCode || "",
  1162. // 证型信息
  1163. synId: undefined,
  1164. synName: selectedSymptom
  1165. ? selectedSymptom.symname
  1166. : this.editData.symptomName || "",
  1167. synCode: this.editData.symptomid || "",
  1168. // 治法信息
  1169. theCode: this.editData.therapyCode || "",
  1170. theName: selectedTherapy
  1171. ? selectedTherapy.therapy
  1172. : this.editData.therapyName || "",
  1173. // 西医诊断
  1174. westernCode: Array.isArray(this.editData.westernDisease)
  1175. ? this.editData.westernDisease.join(",")
  1176. : this.editData.westernDisease || "",
  1177. westernDiag: this.editData.westernDiseaseName || "",
  1178. // 总金额
  1179. totalAmount: parseFloat(this.editData.statistics?.totalPrice) || 0,
  1180. // 机构信息:来自 getNondrugItemDetail 接口(新增时),或 editData 回显(编辑时)
  1181. ygtid: institutionInfo?.ygtid || this.editData.ygtid || "",
  1182. departmentId:
  1183. institutionInfo?.departmentId || this.editData.departmentId || "",
  1184. stitutionsId:
  1185. institutionInfo?.stitutionsId || this.editData.stitutionsId || "",
  1186. stitutionsName:
  1187. institutionInfo?.stitutionsName || this.editData.stitutionsName || "",
  1188. // 治疗明细项列表
  1189. treatmentList,
  1190. };
  1191. // 编辑时传递 pid
  1192. if (this.editData.pid) {
  1193. params.pid = this.editData.pid;
  1194. }
  1195. try {
  1196. const res = await saveSuitableTech(params);
  1197. if (res.ResultCode === 0) {
  1198. this.$message.success(this.editData.pid ? "编辑成功" : "新增成功");
  1199. this.showEditDialog = false;
  1200. this.getList();
  1201. }
  1202. // 后端返回错误时,request.js 响应拦截器已弹出错误消息并 reject,
  1203. // 这里不需要再重复弹窗;网络错误同样由拦截器处理
  1204. } catch (e) {
  1205. console.error("保存失败", e);
  1206. } finally {
  1207. if (this.$refs.acupointTable) {
  1208. this.$refs.acupointTable.saveDone();
  1209. }
  1210. }
  1211. },
  1212. handleDelete(row) {
  1213. this.$confirm("确认删除该条记录?", "提示", {
  1214. confirmButtonText: "确定",
  1215. cancelButtonText: "取消",
  1216. type: "warning",
  1217. })
  1218. .then(async () => {
  1219. try {
  1220. const res = await deleteSuitableTech({ pid: row.pid });
  1221. if (res.ResultCode === 0) {
  1222. this.$message.success("删除成功");
  1223. this.getList();
  1224. } else {
  1225. this.$message.error(res.ResultInfo || "删除失败");
  1226. }
  1227. } catch (e) {
  1228. console.error("删除失败", e);
  1229. this.$message.error("删除失败");
  1230. }
  1231. })
  1232. .catch(() => {});
  1233. },
  1234. // 查看详情
  1235. async handleView(row) {
  1236. this.viewLoading = true;
  1237. this.showViewDialog = true;
  1238. this.viewData = {};
  1239. try {
  1240. const res = await getSuitableTechInfo(row.pid);
  1241. if (res.ResultCode === 0) {
  1242. const data = res.Data || {};
  1243. this.viewData = {
  1244. ...data,
  1245. showType: String(data.showType ?? "0"),
  1246. isUnifiedChecked: data.purposeType || "0",
  1247. };
  1248. }
  1249. } catch (e) {
  1250. console.error("获取详情失败", e);
  1251. } finally {
  1252. this.viewLoading = false;
  1253. }
  1254. },
  1255. async getList() {
  1256. this.tableLoading = true;
  1257. try {
  1258. const params = {
  1259. pageNum: this.page,
  1260. pageSize: this.limit,
  1261. name: this.searchData.name || undefined,
  1262. effect: this.searchData.efficacy || undefined,
  1263. showType: this.searchData.shareType || undefined,
  1264. sectCategory: this.searchData.medicalSchool || undefined,
  1265. sectDept: this.searchData.department || undefined,
  1266. purposeType: this.searchData.isUnified || undefined,
  1267. coverageContent: this.searchData.includeItem || undefined,
  1268. rangtypeName: this.searchData.userName || undefined,
  1269. };
  1270. const res = await getSuitableTechList(params);
  1271. if (res.ResultCode === 0) {
  1272. const list = res.Data?.Items || [];
  1273. this.total = res.Data?.totalRecordCount || 0;
  1274. this.tableData = list.map((item, index) => ({
  1275. ...item,
  1276. index: (this.page - 1) * this.limit + index + 1,
  1277. subList: (item.treatmentList || []).map((sub, sIdx) => ({
  1278. ...sub,
  1279. index: sIdx + 1,
  1280. })),
  1281. }));
  1282. }
  1283. } catch (e) {
  1284. console.error("获取列表失败", e);
  1285. } finally {
  1286. this.tableLoading = false;
  1287. }
  1288. },
  1289. },
  1290. };
  1291. </script>
  1292. <style lang="scss" scoped>
  1293. @import "../../style/common.scss";
  1294. @import "../../style/base.scss";
  1295. .suitable-tech {
  1296. width: 100%;
  1297. height: 100%;
  1298. }
  1299. .suitable-tech ::v-deep .screening-form {
  1300. .screening-item {
  1301. width: 20%;
  1302. flex: none;
  1303. .el-input,
  1304. .el-select {
  1305. width: 100%;
  1306. }
  1307. }
  1308. }
  1309. .suitable-tech ::v-deep .popup-container {
  1310. display: flex;
  1311. flex-direction: column;
  1312. overflow: hidden !important;
  1313. height: calc(100vh - 60px) !important;
  1314. }
  1315. .dialog-body-wrapper {
  1316. display: flex;
  1317. flex-direction: column;
  1318. height: 100%;
  1319. }
  1320. .dialog-back-btn {
  1321. display: flex;
  1322. align-items: center;
  1323. justify-content: center;
  1324. font-size: 14px;
  1325. color: #333;
  1326. background: #fff;
  1327. border: 1px solid #ccc;
  1328. border-radius: 4px;
  1329. padding: 4px 16px;
  1330. cursor: pointer;
  1331. margin-bottom: 10px;
  1332. width: fit-content;
  1333. &:hover {
  1334. opacity: 0.8;
  1335. }
  1336. }
  1337. .dialog-content-box {
  1338. flex: 1;
  1339. min-height: 0;
  1340. display: flex;
  1341. flex-direction: column;
  1342. border: 1px solid #ddd;
  1343. border-radius: 4px;
  1344. padding: 10px;
  1345. overflow: hidden;
  1346. }
  1347. .screening-btn-group {
  1348. display: flex;
  1349. align-items: center;
  1350. margin: 5px 0;
  1351. }
  1352. .share-badge {
  1353. display: inline-block;
  1354. min-width: 20px;
  1355. height: 20px;
  1356. line-height: 20px;
  1357. padding: 0 6px;
  1358. background: #ffae45;
  1359. color: #fff;
  1360. border-radius: 10px;
  1361. font-size: 12px;
  1362. text-align: center;
  1363. }
  1364. .expand-table {
  1365. padding: 10px 20px;
  1366. }
  1367. .table {
  1368. padding: 10px 10px;
  1369. background: #ffffff;
  1370. border-radius: 5px;
  1371. margin-top: 10px;
  1372. height: 70vh;
  1373. .table-container {
  1374. height: 90%;
  1375. }
  1376. .today-table {
  1377. height: 100%;
  1378. .find-detail {
  1379. width: 60px;
  1380. height: 24px;
  1381. border: 1px solid #ffae45;
  1382. border-radius: 2px;
  1383. text-align: center;
  1384. color: #fff;
  1385. font-size: 14px;
  1386. cursor: pointer;
  1387. margin: 0 2px;
  1388. background: #ffae45;
  1389. }
  1390. .find-fill {
  1391. background: #5386f6 !important;
  1392. color: #fff !important;
  1393. border: 1px solid #5386f6;
  1394. }
  1395. .find-fill1 {
  1396. background: #ff6245;
  1397. color: #fff !important;
  1398. border: 1px solid #ff6245;
  1399. }
  1400. .find-fill2 {
  1401. background: #68a8ff !important;
  1402. color: #fff !important;
  1403. border: 1px solid #68a8ff;
  1404. }
  1405. .find-detail.is-disabled {
  1406. opacity: 0.5;
  1407. cursor: not-allowed;
  1408. pointer-events: none;
  1409. }
  1410. }
  1411. }
  1412. .form {
  1413. width: 50%;
  1414. .form-item {
  1415. margin-bottom: 10px;
  1416. span {
  1417. color: red;
  1418. }
  1419. .name {
  1420. width: 120px;
  1421. }
  1422. .input {
  1423. flex: 1;
  1424. }
  1425. }
  1426. }
  1427. .dialog-form {
  1428. display: flex;
  1429. flex-wrap: wrap;
  1430. flex-shrink: 0;
  1431. .form-item {
  1432. width: 25%;
  1433. box-sizing: border-box;
  1434. padding: 0 10px;
  1435. margin-bottom: 10px;
  1436. &.form-item-half {
  1437. width: 50%;
  1438. }
  1439. .name {
  1440. width: 110px;
  1441. min-width: 110px;
  1442. font-size: 14px;
  1443. white-space: nowrap;
  1444. text-align: right;
  1445. margin-right: 5px;
  1446. }
  1447. .input {
  1448. flex: 1;
  1449. min-width: 0;
  1450. .el-input,
  1451. .el-select {
  1452. width: 100%;
  1453. }
  1454. }
  1455. .unified-checkbox {
  1456. margin-left: 115px;
  1457. }
  1458. }
  1459. }
  1460. .dialog-scroll-area {
  1461. flex: 1;
  1462. min-height: 0;
  1463. overflow: hidden;
  1464. display: flex;
  1465. flex-direction: column;
  1466. }
  1467. .dialog-scroll-area ::v-deep .recipe-acupoint-wrapper {
  1468. flex: 1;
  1469. display: flex;
  1470. flex-direction: column;
  1471. min-height: 0;
  1472. }
  1473. .autocomplete-disabled {
  1474. color: #999 !important;
  1475. cursor: not-allowed !important;
  1476. }
  1477. .dialog-scroll-area ::v-deep .recipe-acupoint {
  1478. flex: 1;
  1479. min-height: 0;
  1480. }
  1481. </style>
  1482. <style lang="scss" scoped>
  1483. @media screen and (min-width: 1681px) and (max-width: 1920px) {
  1484. .table {
  1485. height: 81vh;
  1486. .table-container {
  1487. height: 94%;
  1488. }
  1489. }
  1490. .today-table::v-deep .el-table td {
  1491. padding: 18px 0;
  1492. }
  1493. .today-table::v-deep .el-table th {
  1494. padding: 18px 0;
  1495. }
  1496. }
  1497. @media screen and (min-width: 1601px) and (max-width: 1680px) {
  1498. .table {
  1499. height: 80vh;
  1500. .table-container {
  1501. height: 94%;
  1502. }
  1503. }
  1504. .today-table::v-deep .el-table td {
  1505. padding: 18px 0;
  1506. }
  1507. .today-table::v-deep .el-table th {
  1508. padding: 18px 0;
  1509. }
  1510. }
  1511. @media screen and (min-width: 1361px) and (max-width: 1600px) {
  1512. .table {
  1513. height: 72vh;
  1514. .table-container {
  1515. height: 90%;
  1516. }
  1517. }
  1518. .today-table::v-deep .el-table td {
  1519. padding: 5px 0;
  1520. }
  1521. .today-table::v-deep .el-table th {
  1522. padding: 5px 0;
  1523. }
  1524. }
  1525. @media screen and (min-width: 1281px) and (max-width: 1360px) {
  1526. .table {
  1527. height: 72vh;
  1528. .table-container {
  1529. height: 90%;
  1530. }
  1531. }
  1532. .today-table::v-deep .el-table td {
  1533. padding: 5px 0;
  1534. }
  1535. .today-table::v-deep .el-table th {
  1536. padding: 5px 0;
  1537. }
  1538. }
  1539. </style>