prescriptionTable.vue 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <template>
  2. <div class="prescriptionTable">
  3. <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
  4. :row-style="{ color: '#303133' }"
  5. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
  6. <el-table-column fixed align="center" type="index" width="40" label="序号"></el-table-column>
  7. <el-table-column fixed align="center" prop="name" label="名称">
  8. <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
  9. </el-table-column>
  10. <el-table-column align="center" prop="name" width="90" label="单次用量">
  11. <template slot-scope="scope">
  12. <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
  13. <div>{{scope.row.single_dose}}&nbsp;&nbsp;{{scope.row.single_dose_unit}}</div>
  14. </template>
  15. </el-table-column>
  16. <el-table-column align="center" prop="name" width="100" label="用法">
  17. <template slot-scope="scope">
  18. <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
  19. <div> {{scope.row.delivery_way}}</div>
  20. </template>
  21. </el-table-column>
  22. <el-table-column align="center" prop="name" width="100" label="频率">
  23. <template slot-scope="scope">
  24. <div> {{scope.row.execution_frequency}}</div>
  25. <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
  26. </template>
  27. </el-table-column>
  28. <el-table-column align="center" prop="day" width="50" label="天数">
  29. <template slot-scope="scope">{{scope.row.day}}天</template>
  30. </el-table-column>
  31. <el-table-column align="center" prop="name" width="100" label="总量">
  32. <template slot-scope="scope">
  33. <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
  34. <div>{{scope.row.prescribing_number}}&nbsp;&nbsp;{{scope.row.prescribing_number_unit}}</div>
  35. </template>
  36. </el-table-column>
  37. <el-table-column align="center" prop="name" width="60" label="单价">
  38. <template slot-scope="scope">
  39. <div> {{scope.row.retail_price}}元</div>
  40. <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
  41. </template>
  42. </el-table-column>
  43. <el-table-column align="center" prop="name" width="120" label="医保编码">
  44. <template slot-scope="scope">
  45. <div> {{scope.row.code}}</div>
  46. </template>
  47. </el-table-column>
  48. <el-table-column align="center" prop="name" width="80" label="规格/型号">
  49. <template slot-scope="scope">
  50. <div> {{scope.row.spec}}</div>
  51. </template>
  52. </el-table-column>
  53. <el-table-column align="center" prop="name" width="60" label="金额">
  54. <template slot-scope="scope">
  55. <div> {{scope.row.det_item_fee_sumamt}}</div>
  56. </template>
  57. </el-table-column>
  58. <el-table-column align="center" prop="name" width="120" label="生产厂家">
  59. <template slot-scope="scope">
  60. <div> {{getName(scope.row.name_id)}}</div>
  61. </template>
  62. </el-table-column>
  63. <el-table-column align="center" prop="name" width="90" label="全自费金额">
  64. <template slot-scope="scope">
  65. <div> {{scope.row.fulamt_ownpay_amt}}元</div>
  66. </template>
  67. </el-table-column>
  68. <el-table-column align="center" prop="name" width="90" label="超限价金额">
  69. <template slot-scope="scope">
  70. <div> {{scope.row.overlmt_amt}}元</div>
  71. </template>
  72. </el-table-column>
  73. <el-table-column align="center" prop="name" width="90" label="先行自付金额">
  74. <template slot-scope="scope">
  75. <div> {{scope.row.preselfpay_amt}}元</div>
  76. </template>
  77. </el-table-column>
  78. <el-table-column align="center" prop="name" width="90" label="符合正常范围金额">
  79. <template slot-scope="scope">
  80. <div> {{scope.row.inscp_scp_amt}}元</div>
  81. </template>
  82. </el-table-column>
  83. <el-table-column align="center" prop="name" width="50" label="备注">
  84. <template slot-scope="scope">
  85. <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
  86. <div> {{scope.row.remark}}</div>
  87. </template>
  88. </el-table-column>
  89. </el-table>
  90. <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
  91. :row-style="{ color: '#303133' }"
  92. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
  93. <el-table-column fixed align="center" type="index" width="40" label="序号"></el-table-column>
  94. <el-table-column fixed align="center" prop="project_name" label="名称">
  95. <template slot-scope="scope">{{ scope.row.project_name }}</template>
  96. </el-table-column>
  97. <el-table-column align="center" prop="statistical_classification" width="100" label="组">
  98. <template slot-scope="scope">{{scope.row.type == 2?getGroup(scope.row.statistical_classification):"耗材"}}</template>
  99. </el-table-column>
  100. <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
  101. <template slot-scope="scope">{{scope.row.single_dose}}{{scope.row.unit}}</template>
  102. </el-table-column>
  103. <el-table-column align="center" prop="delivery_way" width="80" label="用法">
  104. <template slot-scope="scope">{{scope.row.delivery_way}}</template>
  105. </el-table-column>
  106. <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
  107. <template slot-scope="scope">{{scope.row.execution_frequency}}</template>
  108. </el-table-column>
  109. <el-table-column align="center" prop="number_days" width="50" label="天数">
  110. <template slot-scope="scope">{{scope.row.number_days}}天</template>
  111. </el-table-column>
  112. <el-table-column align="center" prop="total" width="50" label="总量">
  113. <template slot-scope="scope">
  114. <div>{{scope.row.total}} {{scope.row.unit}}</div>
  115. </template>
  116. </el-table-column>
  117. <el-table-column align="center" prop="name" width="50" label="单价">
  118. <template slot-scope="scope">{{scope.row.price}}元</template>
  119. </el-table-column>
  120. <el-table-column align="center" prop="name" width="120" label="医保编码">
  121. <template slot-scope="scope">
  122. <div> {{scope.row.medical_code}}</div>
  123. </template>
  124. </el-table-column>
  125. <el-table-column align="center" prop="name" width="80" label="规格/型号">
  126. <template slot-scope="scope">
  127. <div> {{scope.row.spec}}</div>
  128. </template>
  129. </el-table-column>
  130. <el-table-column align="center" prop="name" width="60" label="金额">
  131. <template slot-scope="scope">
  132. <div> {{scope.row.det_item_fee_sumamt}}元</div>
  133. </template>
  134. </el-table-column>
  135. <el-table-column align="center" prop="name" width="120" label="生产厂家">
  136. <template slot-scope="scope">
  137. <div> {{getName(scope.row.name_id)}}</div>
  138. </template>
  139. </el-table-column>
  140. <el-table-column align="center" prop="name" width="90" label="全自费金额">
  141. <template slot-scope="scope">
  142. <div> {{scope.row.fulamt_ownpay_amt}}元</div>
  143. </template>
  144. </el-table-column>
  145. <el-table-column align="center" prop="name" width="90" label="超限价金额">
  146. <template slot-scope="scope">
  147. <div> {{scope.row.overlmt_amt}}元</div>
  148. </template>
  149. </el-table-column>
  150. <el-table-column align="center" prop="name" width="90" label="先行自付金额">
  151. <template slot-scope="scope">
  152. <div> {{scope.row.preselfpay_amt}}元</div>
  153. </template>
  154. </el-table-column>
  155. <el-table-column align="center" prop="name" width="90" label="符合正常范围金额">
  156. <template slot-scope="scope">
  157. <div> {{scope.row.inscp_scp_amt}}元</div>
  158. </template>
  159. </el-table-column>
  160. <el-table-column align="center" prop="name" width="50" label="备注">
  161. <template slot-scope="scope">{{scope.row.remark}}</template>
  162. </el-table-column>
  163. </el-table>
  164. <div class="additionalBox">
  165. <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
  166. <span :title="item.item_name">{{item.item_name}}</span>
  167. <el-input v-model="item.price" placeholder="" style="width:50px;" readonly></el-input>
  168. <el-input v-model="item.count" placeholder="" style="width:50px;" readonly></el-input>
  169. <!--<i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>-->
  170. </div>
  171. </div>
  172. </div>
  173. </template>
  174. <script>
  175. import { getInitData } from '@/api/his/his'
  176. import { getDictionaryDataConfig} from "@/utils/data";
  177. export default {
  178. props: {
  179. prescription: Object,
  180. manufacturers:Array,
  181. },
  182. data() {
  183. return {
  184. drugways: [],
  185. efs: [],
  186. }
  187. }, mounted() {
  188. // getInitData().then(response => {
  189. // if (response.data.state == 0) {
  190. // this.$message.error(response.data.msg)
  191. // return false
  192. // } else {
  193. // this.drugways = response.data.data.drugways
  194. // this.efs = response.data.data.efs
  195. // }
  196. // })
  197. }, methods: {
  198. getName(id){
  199. console.log("!!!!!!!!!")
  200. let name = ""
  201. for(let i = 0; i < this.manufacturers.length; i++){
  202. console.log(this.manufacturers[i].manufacturer_name)
  203. if(id == this.manufacturers[i].id){
  204. console.log("!!!!!!!!!")
  205. name = this.manufacturers[i].manufacturer_name
  206. }
  207. }
  208. return name
  209. },
  210. getGroup(id){
  211. var name = ""
  212. var statistics_category = getDictionaryDataConfig('system','statistics_category')
  213. console.log("2235",statistics_category)
  214. for(let i=0;i<statistics_category.length;i++){
  215. if(id == statistics_category[i].id){
  216. name = statistics_category[i].name
  217. }
  218. }
  219. return name
  220. },
  221. }
  222. }
  223. </script>
  224. <style lang="scss">
  225. .prescriptionTable{
  226. .additionalBox{
  227. margin-top: 20px;
  228. display: flex;
  229. flex-wrap: wrap;
  230. .additionalOne{
  231. margin-right:20px;
  232. margin-bottom:10px;
  233. display: flex;
  234. align-items: center;
  235. >span{
  236. white-space: nowrap;
  237. overflow: hidden;
  238. text-overflow: ellipsis;
  239. width:80px;
  240. display: inline-block;
  241. font-size: 14px;
  242. }
  243. }
  244. .deleteIcon{
  245. color:red;
  246. margin-left:5px;
  247. }
  248. }
  249. .el-table th .cell, .el-table td .cell{
  250. padding: 0 2px;
  251. white-space: pre-line;
  252. }
  253. .el-icon-delete{
  254. color:red;
  255. }
  256. }
  257. </style>