Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

prescriptionTable.vue 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <template>
  2. <div class="prescriptionTable">
  3. <el-table
  4. v-if="prescription.type == 1"
  5. :data="prescription.advices"
  6. border
  7. height="370"
  8. style="width: 99%"
  9. :row-style="changColor"
  10. :header-cell-style="{
  11. color: '#606266',
  12. }"
  13. highlight-current-row
  14. >
  15. <el-table-column
  16. fixed
  17. align="center"
  18. type="index"
  19. width="50"
  20. label="序号"
  21. ></el-table-column>
  22. <el-table-column
  23. fixed
  24. align="center"
  25. prop="name"
  26. width="300"
  27. label="名称"
  28. >
  29. <template slot-scope="scope"
  30. ><span :title="scope.row.drug_name">{{
  31. scope.row.drug_name
  32. }}</span></template
  33. >
  34. </el-table-column>
  35. <el-table-column align="center" prop="name" width="80" label="单次用量">
  36. <template slot-scope="scope">
  37. <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
  38. <div>{{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}</div>
  39. </template>
  40. </el-table-column>
  41. <el-table-column align="center" prop="name" width="80" label="用法">
  42. <template slot-scope="scope">
  43. <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
  44. <div>{{ scope.row.delivery_way }}</div>
  45. </template>
  46. </el-table-column>
  47. <el-table-column align="center" prop="name" width="80" label="频率">
  48. <template slot-scope="scope">
  49. <div>{{ scope.row.execution_frequency }}</div>
  50. <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
  51. </template>
  52. </el-table-column>
  53. <el-table-column align="center" prop="day" width="80" label="天数">
  54. <template slot-scope="scope">{{ scope.row.day }}天</template>
  55. </el-table-column>
  56. <el-table-column align="center" prop="name" width="80" label="总量">
  57. <template slot-scope="scope">{{ scope.row.prescribing_number }}{{scope.row.prescribing_number_unit}}</template>
  58. </el-table-column>
  59. <el-table-column align="center" prop="name" width="80" label="单价">
  60. <template slot-scope="scope">
  61. <div>{{ scope.row.retail_price }}元</div>
  62. <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
  63. </template>
  64. </el-table-column>
  65. <el-table-column align="center" prop="name" width="80" label="执行状态">
  66. <template slot-scope="scope">
  67. <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
  68. </template>
  69. </el-table-column>
  70. <el-table-column align="center" prop="name" width="220" label="医保编码">
  71. <template slot-scope="scope">
  72. <div>{{ scope.row.code }}</div>
  73. </template>
  74. </el-table-column>
  75. <el-table-column align="center" prop="name" width="80" label="规格/型号">
  76. <template slot-scope="scope">
  77. <div>{{ scope.row.spec }}</div>
  78. </template>
  79. </el-table-column>
  80. <el-table-column align="center" prop="name" width="60" label="金额">
  81. <template slot-scope="scope">
  82. <div>{{ scope.row.det_item_fee_sumamt }}</div>
  83. </template>
  84. </el-table-column>
  85. <el-table-column align="center" prop="name" width="120" label="生产厂家">
  86. <template slot-scope="scope">
  87. <div>{{ getName(scope.row.name_id) }}</div>
  88. </template>
  89. </el-table-column>
  90. <el-table-column align="center" prop="name" width="90" label="全自费金额">
  91. <template slot-scope="scope">
  92. <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
  93. </template>
  94. </el-table-column>
  95. <el-table-column align="center" prop="name" width="90" label="超限价金额">
  96. <template slot-scope="scope">
  97. <div>{{ scope.row.overlmt_amt }}元</div>
  98. </template>
  99. </el-table-column>
  100. <el-table-column
  101. align="center"
  102. prop="name"
  103. width="90"
  104. label="先行自付金额"
  105. >
  106. <template slot-scope="scope">
  107. <div>{{ scope.row.preselfpay_amt }}元</div>
  108. </template>
  109. </el-table-column>
  110. <el-table-column
  111. align="center"
  112. prop="name"
  113. width="130"
  114. label="符合正常范围金额"
  115. >
  116. <template slot-scope="scope">
  117. <div>{{ scope.row.inscp_scp_amt }}元</div>
  118. </template>
  119. </el-table-column>
  120. <el-table-column align="center" prop="name" width="50" label="备注">
  121. <template slot-scope="scope">
  122. <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
  123. <div>{{ scope.row.remark }}</div>
  124. </template>
  125. </el-table-column>
  126. </el-table>
  127. <el-table
  128. v-if="prescription.type == 2"
  129. :data="prescription.project"
  130. border
  131. height="370"
  132. style="width: 99%"
  133. :row-style="changColor"
  134. :header-cell-style="{
  135. backgroundColor: 'rgb(245, 247, 250)',
  136. color: '#606266',
  137. }"
  138. highlight-current-row
  139. >
  140. <el-table-column
  141. fixed
  142. align="center"
  143. type="index"
  144. width="50"
  145. label="序号"
  146. ></el-table-column>
  147. <el-table-column
  148. fixed
  149. align="center"
  150. prop="project_name"
  151. width="280"
  152. label="名称"
  153. >
  154. <template slot-scope="scope">{{ scope.row.project_name }}</template>
  155. </el-table-column>
  156. <el-table-column
  157. align="center"
  158. prop="statistical_classification"
  159. width="80"
  160. label="组"
  161. >
  162. <template slot-scope="scope">{{
  163. scope.row.type == 2
  164. ? getGroup(scope.row.statistical_classification)
  165. : "耗材"
  166. }}</template>
  167. </el-table-column>
  168. <el-table-column
  169. align="center"
  170. prop="single_dose"
  171. width="80"
  172. label="单次用量"
  173. >
  174. <template slot-scope="scope"
  175. >{{ scope.row.single_dose }}{{ scope.row.unit }}</template
  176. >
  177. </el-table-column>
  178. <el-table-column
  179. align="center"
  180. prop="delivery_way"
  181. width="80"
  182. label="用法"
  183. >
  184. <template slot-scope="scope">{{ scope.row.delivery_way }}</template>
  185. </el-table-column>
  186. <el-table-column
  187. align="center"
  188. prop="execution_frequency"
  189. width="80"
  190. label="频率"
  191. >
  192. <template slot-scope="scope">{{
  193. scope.row.execution_frequency
  194. }}</template>
  195. </el-table-column>
  196. <el-table-column
  197. align="center"
  198. prop="number_days"
  199. width="50"
  200. label="天数"
  201. >
  202. <template slot-scope="scope">{{ scope.row.number_days }}天</template>
  203. </el-table-column>
  204. <el-table-column align="center" prop="total" width="50" label="总量">
  205. <template slot-scope="scope">
  206. <div>{{ scope.row.total }} {{ scope.row.unit }}</div>
  207. </template>
  208. </el-table-column>
  209. <el-table-column align="center" prop="name" width="50" label="单价">
  210. <template slot-scope="scope">{{ scope.row.price }}元</template>
  211. </el-table-column>
  212. <el-table-column align="center" prop="name" width="80" label="执行状态">
  213. <template slot-scope="scope">
  214. <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
  215. </template>
  216. </el-table-column>
  217. <el-table-column align="center" prop="name" width="220" label="医保编码">
  218. <template slot-scope="scope">
  219. <div>{{ scope.row.medical_code }}</div>
  220. </template>
  221. </el-table-column>
  222. <el-table-column align="center" prop="name" width="80" label="规格/型号">
  223. <template slot-scope="scope">
  224. <div>{{ scope.row.spec }}</div>
  225. </template>
  226. </el-table-column>
  227. <el-table-column align="center" prop="name" width="60" label="金额">
  228. <template slot-scope="scope">
  229. <div>{{ scope.row.det_item_fee_sumamt }}元</div>
  230. </template>
  231. </el-table-column>
  232. <el-table-column align="center" prop="name" width="120" label="生产厂家">
  233. <template slot-scope="scope">
  234. <div>{{ getName(scope.row.name_id) }}</div>
  235. </template>
  236. </el-table-column>
  237. <el-table-column align="center" prop="name" width="90" label="全自费金额">
  238. <template slot-scope="scope">
  239. <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
  240. </template>
  241. </el-table-column>
  242. <el-table-column align="center" prop="name" width="90" label="超限价金额">
  243. <template slot-scope="scope">
  244. <div>{{ scope.row.overlmt_amt }}元</div>
  245. </template>
  246. </el-table-column>
  247. <el-table-column
  248. align="center"
  249. prop="name"
  250. width="90"
  251. label="先行自付金额"
  252. >
  253. <template slot-scope="scope">
  254. <div>{{ scope.row.preselfpay_amt }}元</div>
  255. </template>
  256. </el-table-column>
  257. <el-table-column
  258. align="center"
  259. prop="name"
  260. width="130"
  261. label="符合正常范围金额"
  262. >
  263. <template slot-scope="scope">
  264. <div>{{ scope.row.inscp_scp_amt }}元</div>
  265. </template>
  266. </el-table-column>
  267. <el-table-column align="center" prop="name" width="50" label="备注">
  268. <template slot-scope="scope">{{ scope.row.remark }}</template>
  269. </el-table-column>
  270. </el-table>
  271. <div class="additionalBox">
  272. <div
  273. class="additionalOne"
  274. v-for="(item, index) in prescription.addition"
  275. :key="index"
  276. >
  277. <span :title="item.item_name">{{ item.item_name }}</span>
  278. <el-input
  279. v-model="item.price"
  280. placeholder=""
  281. style="width: 50px"
  282. readonly
  283. ></el-input>
  284. <el-input
  285. v-model="item.count"
  286. placeholder=""
  287. style="width: 50px"
  288. readonly
  289. ></el-input>
  290. <!--<i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>-->
  291. </div>
  292. </div>
  293. </div>
  294. </template>
  295. <script>
  296. import { getInitData } from "@/api/his/his";
  297. import { getDictionaryDataConfig } from "@/utils/data";
  298. export default {
  299. props: {
  300. prescription: Object,
  301. manufacturers: Array,
  302. },
  303. data() {
  304. return {
  305. drugways: [],
  306. efs: [],
  307. };
  308. },
  309. mounted() {
  310. // getInitData().then(response => {
  311. // if (response.data.state == 0) {
  312. // this.$message.error(response.data.msg)
  313. // return false
  314. // } else {
  315. // this.drugways = response.data.data.drugways
  316. // this.efs = response.data.data.efs
  317. // }
  318. // })
  319. },
  320. methods: {
  321. changColor({ row, rowIndex }) {
  322. if (rowIndex % 2 == 1) {
  323. // 变颜色的条件
  324. return {
  325. backgroundColor: "#C4E1FF",
  326. color: "#303133", // 这个return的就是样式 可以是color 也可以是backgroundColor
  327. };
  328. } else {
  329. return {
  330. backgroundColor: "#ACD6FF",
  331. color: "#303133",
  332. };
  333. }
  334. },
  335. getName(id) {
  336. let name = "";
  337. for (let i = 0; i < this.manufacturers.length; i++) {
  338. if (id == this.manufacturers[i].id) {
  339. name = this.manufacturers[i].manufacturer_name;
  340. }
  341. }
  342. return name;
  343. },
  344. getGroup(id) {
  345. var name = "";
  346. var statistics_category = getDictionaryDataConfig(
  347. "system",
  348. "statistics_category"
  349. );
  350. console.log("2235", statistics_category);
  351. for (let i = 0; i < statistics_category.length; i++) {
  352. if (id == statistics_category[i].id) {
  353. name = statistics_category[i].name;
  354. }
  355. }
  356. return name;
  357. },
  358. },
  359. };
  360. </script>
  361. <style lang="scss">
  362. .prescriptionTable {
  363. .additionalBox {
  364. margin-top: 20px;
  365. display: flex;
  366. flex-wrap: wrap;
  367. .additionalOne {
  368. margin-right: 20px;
  369. margin-bottom: 10px;
  370. display: flex;
  371. align-items: center;
  372. > span {
  373. white-space: nowrap;
  374. overflow: hidden;
  375. text-overflow: ellipsis;
  376. width: 80px;
  377. display: inline-block;
  378. font-size: 14px;
  379. }
  380. }
  381. .deleteIcon {
  382. color: red;
  383. margin-left: 5px;
  384. }
  385. }
  386. .el-table th .cell,
  387. .el-table td .cell {
  388. padding: 0 2px;
  389. white-space: pre-line;
  390. }
  391. .el-icon-delete {
  392. color: red;
  393. }
  394. }
  395. </style>