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

settlePrescriptionTable.vue 11KB

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