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

allSummary.vue 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. <template>
  2. <div class="page_summary">
  3. <div class="cell clearfix">
  4. <label class="title"> <span class="name">排班班次</span> : </label>
  5. <div class="time">
  6. <ul class>
  7. <li
  8. :class="item.value == scheduleType ? 'active' : ''"
  9. @click="selectSchedulType(item.value)"
  10. v-for="item in schedulArr"
  11. :key="item.value"
  12. >
  13. {{ item.label }}
  14. </li>
  15. </ul>
  16. </div>
  17. <label class="title"><span class="name">日期查询</span> : </label>
  18. <el-date-picker size="small" v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
  19. <el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  20. <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
  21. </div>
  22. <div class="cell clearfix" style="justify-content: space-between;">
  23. <div style="display:flex;">
  24. <label class="title"> <span class="name">分区</span> : </label>
  25. <div class="time">
  26. <ul class>
  27. <li
  28. :class="item.id == partitionType ? 'active' : ''"
  29. @click="selectPartitionType(item.id)"
  30. v-for="item in partitionArr"
  31. :key="item.id"
  32. >
  33. {{ item.name }}
  34. </li>
  35. </ul>
  36. </div>
  37. </div>
  38. <div>
  39. <!-- <el-button size="small" icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button> -->
  40. <el-button size="small" type="primary" @click="statistics">统计表</el-button>
  41. </div>
  42. </div>
  43. <div>
  44. <el-table
  45. :data="list"
  46. border
  47. style="width: 100%"
  48. :row-style="{ color: '#303133' }"
  49. :header-cell-style="{
  50. backgroundColor: 'rgb(245, 247, 250)',
  51. color: '#606266'
  52. }"
  53. @selection-change="handleSelectionChange">
  54. >
  55. <el-table-column align="center" type="selection" width="55">
  56. </el-table-column>
  57. <el-table-column align="center" prop="name" label="姓名" width="80">
  58. <template slot-scope="scope">
  59. <!-- {{scope.row.patient.name}} -->
  60. {{scope.row.patient_name}}
  61. </template>
  62. </el-table-column>
  63. <el-table-column align="center" prop="address" label="透析模式">
  64. <template slot-scope="scope">
  65. <!-- {{scope.row.mode_id}} -->
  66. <span v-if="scope.row.mode_id == 1">HD</span>
  67. <span v-if="scope.row.mode_id == 2">HDF</span>
  68. <span v-if="scope.row.mode_id == 3">HD+HP</span>
  69. <span v-if="scope.row.mode_id == 4">HP</span>
  70. <span v-if="scope.row.mode_id == 5">HF</span>
  71. <span v-if="scope.row.mode_id == 6">SCUF</span>
  72. <span v-if="scope.row.mode_id == 7">IUF</span>
  73. <span v-if="scope.row.mode_id == 8">HFHD</span>
  74. <span v-if="scope.row.mode_id == 9">HFHD+HP</span>
  75. <span v-if="scope.row.mode_id == 10">PHF</span>
  76. <span v-if="scope.row.mode_id == 11">HFR</span>
  77. <span v-if="scope.row.mode_id == 12">HDF+HP</span>
  78. <span v-if="scope.row.mode_id == 13">CRRT</span>
  79. <span v-if="scope.row.mode_id == 14">腹水回输</span>
  80. <span v-if="scope.row.mode_id == 15">HD前置换</span>
  81. <span v-if="scope.row.mode_id == 16">HD后置换</span>
  82. <span v-if="scope.row.mode_id == 17">HDF前置换</span>
  83. <span v-if="scope.row.mode_id == 18"> HDF后置换</span>
  84. </template>
  85. </el-table-column>
  86. <el-table-column align="center" prop="address" :label="item.type_name" v-for="(item,index) in tableName" :key="index">
  87. <template slot-scope="scope">
  88. <!-- {{getCount(scope.row.patient.id,item.good_id)?getCount(scope.row.patient.id,item.good_id):""}} -->
  89. {{scope.row.good_type[index].name}}
  90. </template>
  91. </el-table-column>
  92. <el-table-column align="center" prop="address" label="抗凝剂(首剂)(维持)(总量)" width="300">
  93. <template slot-scope="scope">
  94. <span v-if="getAnticoagulant(scope.row.patient_id) == 0"></span>
  95. <span v-if="getAnticoagulant(scope.row.patient_id) == 1">无肝素</span>
  96. <span v-if="getAnticoagulant(scope.row.patient_id) == 2">普通肝素</span>
  97. <span v-if="getAnticoagulant(scope.row.patient_id) == 3">低分子肝素</span>
  98. <span v-if="getAnticoagulant(scope.row.patient_id) == 4">阿加曲班</span>
  99. <span v-if="getAnticoagulant(scope.row.patient_id) == 5">枸橼酸钠</span>
  100. <span v-if="getAnticoagulant(scope.row.patient_id)== 6">低分子肝素钙</span>
  101. <span v-if="getAnticoagulant(scope.row.patient_id) == 7">低分子肝素钠</span>
  102. <span v-if="getAnticoagulant(scope.row.patient_id) == 8">依诺肝素</span>
  103. <span v-if="getAnticoagulant(scope.row.patient_id) == 9">达肝素</span>
  104. <span v-if="getAnticoagulant(scope.row.patient_id) == 10">体外抗凝</span>
  105. <span>
  106. {{getAnticoagulantShouji(scope.row.patient_id)?getAnticoagulantShouji(scope.row.patient_id):''}}
  107. <span v-if="getAnticoagulant(scope.row.patient_id) ==1 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
  108. <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu/h)</span>
  109. <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
  110. <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
  111. <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
  112. <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
  113. <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
  114. <span v-if="getAnticoagulant(scope.row.patient_id)== 8 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
  115. <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
  116. <span v-if="getAnticoagulant(scope.row.patient_id)== 10 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
  117. </span>
  118. <span>
  119. {{getAnticoagulantWeichi(scope.row.patient_id)?getAnticoagulantWeichi(scope.row.patient_id):''}}
  120. <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h)</span>
  121. <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
  122. <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
  123. <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h)</span>
  124. <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantWeichi(scope.row.patient_id)!=''">ml/h)</span>
  125. <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
  126. <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
  127. <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
  128. <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
  129. <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg)</span>
  130. </span>
  131. <span>
  132. {{getAnticoagulantZongliang(scope.row.patient_id)?getAnticoagulantZongliang(scope.row.patient_id):''}}
  133. <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
  134. <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
  135. <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
  136. <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
  137. <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
  138. <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h)</span>
  139. <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
  140. <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
  141. <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h)</span>
  142. <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
  143. </span>
  144. </template>
  145. </el-table-column>
  146. </el-table>
  147. <el-pagination
  148. align="right"
  149. @size-change="handleSizeChange"
  150. @current-change="handleCurrentChange"
  151. :page-sizes="[10, 20, 30, 50]"
  152. :page-size="10"
  153. background
  154. style="margin-top:20px;"
  155. layout="total, sizes, prev, pager, next, jumper"
  156. :total="total"
  157. ></el-pagination>
  158. </div>
  159. <all-summary-dialog ref="allSummary"></all-summary-dialog >
  160. </div>
  161. </template>
  162. <script>
  163. import { GetAllZone } from "@/api/dialysis";
  164. import allSummaryDialog from './allSummaryDialog'
  165. import { getAllMaterial,getCollectList } from "@/api/consumable"
  166. import { parseTime } from "@/utils";
  167. const moment = require('moment')
  168. export default {
  169. components:{
  170. allSummaryDialog
  171. },
  172. data(){
  173. return{
  174. scheduleType: 0,
  175. schedulArr: [
  176. { value: 0, label: "全部" },
  177. { value: 1, label: "上午" },
  178. { value: 2, label: "下午" },
  179. { value: 3, label: "晚上" }
  180. ],
  181. selected_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
  182. partitionArr:[],
  183. partitionType: 0,
  184. tableData: [],
  185. search_input:"",
  186. start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
  187. tableName:[],
  188. limit:10,
  189. page:1,
  190. consuMables:[],
  191. total:0,
  192. selecting_schs: [],
  193. prescriptionList:[],
  194. reduceList:[],
  195. allGoodInfo:[],
  196. list:[],
  197. new_list:[],
  198. good_types: [],
  199. }
  200. },
  201. created(){
  202. //获取所有分区
  203. this.getAllZone()
  204. //获取今日所有耗材
  205. this.getAllMaterial()
  206. //获取汇总数据
  207. this.getlist()
  208. },
  209. methods:{
  210. selectSchedulType(scheduleType) {
  211. this.scheduleType = scheduleType;
  212. this.getlist()
  213. },
  214. selectPartitionType(partitionType) {
  215. this.partitionType = partitionType;
  216. this.getlist()
  217. },
  218. getAllZone: function() {
  219. GetAllZone().then(response => {
  220. if (response.data.state == 0) {
  221. this.$message.error(response.data.msg);
  222. return false;
  223. } else {
  224. this.partitionArr = response.data.data.zone;
  225. this.partitionArr.unshift({ id: 0, name: "全部" });
  226. }
  227. });
  228. },
  229. statistics(){
  230. this.$refs.allSummary.show();
  231. },
  232. handleScheduleDateChange(){
  233. var startime = parseTime(this.selected_date,'{y}-{m}-{d}')
  234. this.start_time = startime
  235. this.getlist()
  236. this.getAllMaterial()
  237. },
  238. search(){
  239. // if(this.selected_date==""){
  240. // this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
  241. // }
  242. // if(this.selected_date!=''){
  243. // this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
  244. // }
  245. const params ={
  246. start_time:this.start_time,
  247. scheduleType: this.scheduleType,
  248. partitionType:this.partitionType,
  249. limit:this.limit,
  250. page:this.page,
  251. keyword:this.search_input,
  252. }
  253. getCollectList(params).then(response=>{
  254. if(response.data.state == 1){
  255. var schedule = response.data.data.schedule
  256. this.tableData = schedule
  257. var total = response.data.data.total
  258. this.total = total
  259. // var consumables = response.data.data.consumables
  260. // this.consuMables = consumables
  261. var prescription = response.data.data.prescription
  262. this.prescriptionList = prescription
  263. var reducelist = response.data.data.reducelist
  264. this.reduceList = reducelist
  265. var good_type = response.data.data.good_type
  266. // console.log("godd_type",good_type)
  267. this.tableName = good_type
  268. this.allGoodInfo = response.data.data.dialysis_goods
  269. // console.log("1111111",response.data.data.dialysis_goods)
  270. this.list = []
  271. this.good_types = []
  272. this.allGoodInfo = []
  273. this.good_types.push("姓名")
  274. for (let a = 0; a < response.data.data.good_type.length; a++){
  275. this.good_types.push(response.data.data.good_type[a].type_name)
  276. }
  277. for(let i = 0; i < response.data.data.dialysis_goods.length; i++){
  278. let arr =[]
  279. // let obj = {
  280. // id:0,
  281. // name: response.data.data.dialysis_goods[i].patient.name,
  282. // }
  283. // arr.push(obj)
  284. // console.log("arr=========",arr)
  285. for (let a = 0; a < response.data.data.good_type.length; a++){
  286. let obj = {
  287. id:response.data.data.good_type[a].id,
  288. name:""
  289. }
  290. arr.push(obj)
  291. }
  292. // console.log("2222222",arr)
  293. let newObj = {
  294. "patient_id":response.data.data.dialysis_goods[i].patient_id,
  295. "patient_name":response.data.data.dialysis_goods[i].patient.name,
  296. "mode_id":response.data.data.dialysis_goods[i].mode_id,
  297. "good_type":arr,
  298. "good_user":response.data.data.dialysis_goods[i].good_user,
  299. "last_good_user":response.data.data.dialysis_goods[i].last_good_user,
  300. "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
  301. "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
  302. }
  303. this.list.push(newObj)
  304. }
  305. for (let a = 0; a < this.list.length; a++){
  306. for (let b = 0; b < this.list[a].good_type.length; b++){
  307. if(this.list[a].good_type[b].id > 0){
  308. this.list[a].good_type[b].name = this.getGoodUserInfo(this.list[a].good_type[b].id,this.list[a].good_user,this.list[a].last_good_user)
  309. }
  310. }
  311. }
  312. // console.log("list22222",this.list)
  313. }
  314. })
  315. },
  316. getAllMaterial(){
  317. // if(this.selected_date==""){
  318. // this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
  319. // }
  320. // if(this.selected_date!=''){
  321. // this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
  322. // }
  323. const params = {
  324. startime:this.start_time
  325. }
  326. getAllMaterial(params).then(response=>{
  327. if(response.data.state == 1){
  328. var material = response.data.data.material
  329. // console.log("material",material)
  330. // this.tableName = material
  331. }
  332. })
  333. },
  334. handleSizeChange(val) {
  335. this.limit = val;
  336. this.getlist();
  337. },
  338. handleCurrentChange(val) {
  339. this.page = val;
  340. this.getlist()
  341. },
  342. getlist(){
  343. // if(this.selected_date==""){
  344. // this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
  345. // }
  346. // if(this.selected_date!=''){
  347. // this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
  348. // }
  349. const params ={
  350. start_time:this.start_time,
  351. scheduleType: this.scheduleType,
  352. partitionType:this.partitionType,
  353. limit:this.limit,
  354. page:this.page,
  355. keyword:this.search_input,
  356. }
  357. getCollectList(params).then(response=>{
  358. if(response.data.state == 1){
  359. var schedule = response.data.data.schedule
  360. this.tableData = schedule
  361. var total = response.data.data.total
  362. this.total = total
  363. var consumables = response.data.data.consumables
  364. this.consuMables = consumables
  365. var prescription = response.data.data.prescription
  366. this.prescriptionList = prescription
  367. var reducelist = response.data.data.reducelist
  368. this.reduceList = reducelist
  369. var good_type = response.data.data.good_type
  370. console.log("godd_type",good_type)
  371. this.tableName = good_type
  372. this.allGoodInfo = response.data.data.dialysis_goods
  373. console.log("1111111",response.data.data.dialysis_goods)
  374. this.list = []
  375. this.good_types = []
  376. this.allGoodInfo = []
  377. this.good_types.push("姓名")
  378. for (let a = 0; a < response.data.data.good_type.length; a++){
  379. this.good_types.push(response.data.data.good_type[a].type_name)
  380. }
  381. for(let i = 0; i < response.data.data.dialysis_goods.length; i++){
  382. let arr =[]
  383. // let obj = {
  384. // id:0,
  385. // name: response.data.data.dialysis_goods[i].patient.name,
  386. // }
  387. // arr.push(obj)
  388. // console.log("arr=========",arr)
  389. for (let a = 0; a < response.data.data.good_type.length; a++){
  390. let obj = {
  391. id:response.data.data.good_type[a].id,
  392. name:""
  393. }
  394. arr.push(obj)
  395. }
  396. console.log("2222222",arr)
  397. let newObj = {
  398. "patient_id":response.data.data.dialysis_goods[i].patient_id,
  399. "patient_name":response.data.data.dialysis_goods[i].patient.name,
  400. "mode_id":response.data.data.dialysis_goods[i].mode_id,
  401. "good_type":arr,
  402. "good_user":response.data.data.dialysis_goods[i].good_user,
  403. "last_good_user":response.data.data.dialysis_goods[i].last_good_user,
  404. "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
  405. "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
  406. }
  407. this.list.push(newObj)
  408. }
  409. for (let a = 0; a < this.list.length; a++){
  410. for (let b = 0; b < this.list[a].good_type.length; b++){
  411. if(this.list[a].good_type[b].id > 0){
  412. this.list[a].good_type[b].name = this.getGoodUserInfo(this.list[a].good_type[b].id,this.list[a].good_user,this.list[a].last_good_user)
  413. }
  414. }
  415. }
  416. // console.log("list22222",this.list)
  417. }
  418. })
  419. },
  420. getCount(patientid,goodid){
  421. var count = 0
  422. for(let i=0;i<this.reduceList.length;i++){
  423. if(patientid == this.reduceList[i].patient_id && goodid == this.reduceList[i].good_id){
  424. count = this.reduceList[i].count
  425. }
  426. }
  427. return count
  428. },
  429. handleSelectionChange(val){
  430. this.selecting_schs = val;
  431. },
  432. toPrint(){
  433. if(this.selecting_schs.length === 0) {
  434. this.$message.error("请至少选择一条需要打印的内容");
  435. return false;
  436. }
  437. var sch_ids = [];
  438. for (let index = 0; index < this.selecting_schs.length; index++) {
  439. sch_ids.push(this.selecting_schs[index].id);
  440. }
  441. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  442. this.$router.push("/dialysis/allSummary_print?start="+this.start_time)
  443. },
  444. getAnticoagulant(id){
  445. var anticoagulant = ""
  446. for(let i=0;i<this.prescriptionList.length;i++){
  447. if(this.prescriptionList[i].patient_id == id){
  448. anticoagulant = this.prescriptionList[i].anticoagulant
  449. }
  450. }
  451. return anticoagulant
  452. },
  453. getAnticoagulantShouji(id){
  454. var shouji = ""
  455. for(let i=0;i<this.prescriptionList.length;i++){
  456. if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_shouji!=0 ){
  457. shouji = "("+this.prescriptionList[i].anticoagulant_shouji
  458. }
  459. }
  460. return shouji
  461. },
  462. getAnticoagulantWeichi(id){
  463. var weichi = ""
  464. for(let i=0;i<this.prescriptionList.length;i++){
  465. if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_weichi!=0){
  466. weichi = "("+this.prescriptionList[i].anticoagulant_weichi
  467. }
  468. return weichi
  469. }
  470. },
  471. getAnticoagulantZongliang(id){
  472. var zongliang = ""
  473. for(let i=0;i<this.prescriptionList.length;i++){
  474. if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_zongliang!=0){
  475. zongliang = "("+this.prescriptionList[i].anticoagulant_zongliang
  476. }
  477. }
  478. return zongliang
  479. },
  480. // getGoodUserInfo(good_type_id,good_user,last_good_user) {
  481. // if (good_user != null && good_user.length > 0) {
  482. // let desc = ""
  483. // for (let b = 0; b < good_user.length; b++){
  484. // if(good_type_id == good_user[b].good_type_id)
  485. // desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
  486. // }
  487. // return desc
  488. // } else if (good_user != null && good_user.length <= 0) {
  489. // if (last_good_user != null && last_good_user.length > 0) {
  490. // let desc = ""
  491. // for (let b = 0; b < last_good_user.length; b++){
  492. // if(good_type_id == last_good_user[b].good_type_id)
  493. // desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
  494. // }
  495. // return desc
  496. // }
  497. // return ""
  498. // }
  499. // },
  500. getGoodUserInfo(good_type_id, good_user, last_good_user, good_user_detail, last_good_user_detail) {
  501. if (good_user != null && good_user.length > 0) {
  502. let desc = ""
  503. for (let b = 0; b < good_user.length; b++) {
  504. if (good_type_id == good_user[b].good_type_id)
  505. desc = desc + " " + good_user[b].info.specification_name + "*" + good_user[b].count
  506. }
  507. return desc
  508. // } else if (good_user.length <= 0) {
  509. // if (last_good_user != null && last_good_user.length > 0) {
  510. // let desc = ""
  511. // for (let b = 0; b < last_good_user.length; b++){
  512. // if(good_type_id == last_good_user[b].good_type_id)
  513. // desc = desc + " " + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
  514. // }
  515. // return desc
  516. //
  517. // }
  518. // return ""
  519. }
  520. return ""
  521. },
  522. }
  523. }
  524. </script>
  525. <style lang="scss" scoped>
  526. .page_summary{
  527. .clearfix:after{
  528. content:none;
  529. }
  530. }
  531. </style>