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

query.vue 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <div>
  6. <el-button
  7. size="small"
  8. class="filter-item"
  9. type="primary"
  10. icon="el-icon-search"
  11. @click="setting"
  12. >设置
  13. </el-button
  14. >
  15. <el-button
  16. size="small"
  17. class="filter-item"
  18. type="primary"
  19. icon="el-icon-search"
  20. @click="printOrder"
  21. >打印
  22. </el-button>
  23. <el-button
  24. size="small"
  25. class="filter-item"
  26. type="primary"
  27. icon="el-icon-search"
  28. @click="exportStock"
  29. >导出
  30. </el-button>
  31. </div>
  32. </div>
  33. <div class="app-container ">
  34. <div class="cell clearfix">
  35. <el-select v-model="drug_type" style="width:160px;margin-right:10px;" placeholder="请选择" @change="changeDrug">
  36. <el-option
  37. v-for="(item,index) in drugTypeList"
  38. :key="index"
  39. :label="item.name"
  40. :value="item.id">
  41. </el-option>
  42. </el-select>
  43. <el-date-picker
  44. v-model="start_time"
  45. prefix-icon="el-icon-date"
  46. :editable="false"
  47. style="width: 196px;"
  48. type="date"
  49. placeholder="选择日期时间"
  50. align="right"
  51. format="yyyy-MM-dd"
  52. value-format="yyyy-MM-dd"
  53. @change="startTimeChange"
  54. ></el-date-picker>-
  55. <el-date-picker
  56. v-model="end_time"
  57. prefix-icon="el-icon-date"
  58. :editable="false"
  59. style="width: 196px;margin-right:10px;"
  60. type="date"
  61. placeholder="选择日期时间"
  62. align="right"
  63. format="yyyy-MM-dd"
  64. value-format="yyyy-MM-dd"
  65. @change="endTimeChange"
  66. ></el-date-picker>
  67. <el-input
  68. style="width: 200px;"
  69. class="filter-item"
  70. v-model.trim="keywords"
  71. placeholder="药品名称"
  72. />
  73. <el-button
  74. size="small"
  75. class="filter-item"
  76. type="primary"
  77. icon="el-icon-search"
  78. @click="search"
  79. >搜索
  80. </el-button>
  81. </div>
  82. <el-table :data="tableList" border style="width: 100%">
  83. <!-- <el-table-column prop="date" label="药品编号" width="180">
  84. <template slot-scope="scope">
  85. </template>
  86. </el-table-column> -->
  87. <el-table-column prop="drug_type" label="药品类型" width="180" align="center">
  88. <template slot-scope="scope">
  89. {{getDrugType(scope.row.drug_type)}}
  90. </template>
  91. </el-table-column>
  92. <el-table-column prop="drug_name" label="药品名称" align="center">
  93. <template slot-scope="scope">
  94. {{scope.row.drug_name}}
  95. </template>
  96. </el-table-column>
  97. <el-table-column prop="drug_name" label="规格&&单位" align="center">
  98. <template slot-scope="scope">
  99. {{scope.row.dose + scope.row.dose_unit +"*"+scope.row.min_number+scope.row.min_unit+"/"+scope.row.max_unit}}
  100. </template>
  101. </el-table-column>
  102. <el-table-column prop="drug_name" label="进货单价" align="center">
  103. <template slot-scope="scope">
  104. {{scope.row.last_price}}
  105. </template>
  106. </el-table-column>
  107. <el-table-column prop="drug_name" label="厂家" align="center">
  108. <template slot-scope="scope">
  109. {{getManufacturerList(scope.row.manufacturer)}}
  110. </template>
  111. </el-table-column>
  112. <el-table-column prop="drug_name" label="入库数量" align="center">
  113. <template slot-scope="scope">
  114. <!-- {{getInCount(scope.row.drug_id)}} -->
  115. {{getInCount(scope.row.drug_id)}}{{scope.row.max_unit}}
  116. </template>
  117. </el-table-column>
  118. <el-table-column prop="drug_name" label="出库数量" align="center">
  119. <template slot-scope="scope">
  120. <!-- {{getOutCount(scope.row.drug_id) + getAutoCount(scope.row.drug_id)}} -->
  121. {{getCount(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}
  122. </template>
  123. </el-table-column>
  124. <el-table-column prop="drug_name" label="剩余库存量" align="center">
  125. <template slot-scope="scope">
  126. <!-- {{getInCount(scope.row.drug_id) - getOutCount(scope.row.drug_id) - getAutoCount(scope.row.drug_id)}} -->
  127. {{getCountTwo(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}
  128. </template>
  129. </el-table-column>
  130. <el-table-column prop="drug_name" label="操作" align="center" width="200px">
  131. <template slot-scope="scope">
  132. <el-button
  133. size="small"
  134. type="primary"
  135. @click="handleDetail(scope.row)"
  136. >库存流水
  137. </el-button>
  138. <el-button
  139. size="small"
  140. type="primary"
  141. @click="handleBatch(scope.row)"
  142. >批次
  143. </el-button>
  144. </template>
  145. </el-table-column>
  146. </el-table>
  147. <el-pagination
  148. @size-change="handleSizeChange"
  149. @current-change="handleCurrentChange"
  150. :page-sizes="[10, 50, 100,500,1000]"
  151. :page-size="10"
  152. background
  153. align="right"
  154. style="margin-top:20px;"
  155. layout="total, sizes, prev, pager, next, jumper"
  156. :total="total"
  157. >
  158. </el-pagination>
  159. </div>
  160. <setting-dialog
  161. ref="dialog"
  162. ></setting-dialog>
  163. </div>
  164. </template>
  165. <script>
  166. import { uParseTime } from '@/utils/tools'
  167. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  168. import { getAllDrugStockQueryList,getDrugStockList,getDrugCountList } from '@/api/drug/drug_stock'
  169. import SettingDialog from './settingDialog/index'
  170. import { getDictionaryDataConfig } from "@/utils/data";
  171. import { min } from 'moment'
  172. export default {
  173. name: 'stockIn',
  174. created() {
  175. var drugCategory = getDictionaryDataConfig('system','drug_category')
  176. this.drugCategory.push(...drugCategory)
  177. var drugTypeList = getDictionaryDataConfig('system','drug_type')
  178. this.drugTypeList.push(...drugTypeList)
  179. this.getlist()
  180. this.getDrugCountList()
  181. },
  182. components: {
  183. SettingDialog,
  184. BreadCrumb
  185. },
  186. data() {
  187. return {
  188. crumbs: [
  189. { path: false, name: '库存管理' },
  190. { path: '/stock/drugs/stock/query', name: '药品库存查询' }
  191. ],
  192. keywords: '',
  193. total: 0,
  194. multipleSelection: [],
  195. signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
  196. start_time: '',
  197. end_time: '',
  198. page: 1,
  199. limit: 10,
  200. goodType: [],
  201. goodInfo: [],
  202. tempArr: [],
  203. sameRowArr: [],
  204. WarehouseInfo: {
  205. loading: false,
  206. warehouseInfoDate: []
  207. },
  208. tableData:[],
  209. drug_category:0,
  210. drugCategory:[
  211. {id:0,name:"全部"}
  212. ],
  213. drugTypeList:[
  214. {id:0,name:"全部"}
  215. ],
  216. tableList:[],
  217. manufacturerList:[],
  218. countList:[],
  219. outCountList:[],
  220. autoCountList:[],
  221. keyword:"",
  222. drug_type:0,
  223. minCount:[],
  224. drugOutList:[],
  225. }
  226. },
  227. methods: {
  228. handleSpanTempArr() {
  229. this.tempArr = []
  230. for (let i = 0; i < this.WarehouseInfo.warehouseInfoDate.length; i++) {
  231. if (i === 0) {
  232. this.tempArr.push(1)
  233. this.pos = 0
  234. } else {
  235. // 判断当前元素与上一个元素是否相同
  236. if (this.WarehouseInfo.warehouseInfoDate[i].drug_name === this.WarehouseInfo.warehouseInfoDate[i - 1].drug_name) {
  237. this.tempArr[this.pos] += 1
  238. this.tempArr.push(0)
  239. } else {
  240. this.tempArr.push(1)
  241. this.pos = i
  242. }
  243. }
  244. }
  245. let sameRowArr = [], sIdx = 0
  246. this.WarehouseInfo.warehouseInfoDate.forEach((item, index) => {
  247. item.index = index
  248. if (index === 0) {
  249. sameRowArr.push([index])
  250. } else {
  251. if (item.drug_name === this.WarehouseInfo.warehouseInfoDate[index - 1].drug_name) {
  252. sameRowArr[sIdx].push(index)
  253. } else {
  254. sIdx = sIdx + 1
  255. sameRowArr.push([index])
  256. }
  257. }
  258. })
  259. this.sameRowArr = sameRowArr
  260. },
  261. merge({ row, column, rowIndex, columnIndex }) {
  262. if (columnIndex === 0) {
  263. const _row = this.tempArr[rowIndex]
  264. const _col = _row > 0 ? 1 : 0
  265. return {
  266. rowspan: _row,
  267. colspan: _col
  268. }
  269. }
  270. },
  271. GetAllDrugStockQueryList: function() {
  272. const Params = {
  273. page: this.page,
  274. limit: this.limit,
  275. keyword: this.keywords,
  276. drug_category:this.drug_category,
  277. start_time:this.start_time,
  278. end_time:this.end_time,
  279. }
  280. this.WarehouseInfo.loading = true
  281. this.WarehouseInfo.warehouseInfoDate = []
  282. getAllDrugStockQueryList(Params).then(response => {
  283. if (response.data.state == 0) {
  284. this.WarehouseInfo.loading = false
  285. this.$message.error(response.data.msg)
  286. return false
  287. } else {
  288. this.WarehouseInfo.loading = false
  289. this.total = response.data.data.total
  290. var arr = []
  291. for (let i = 0; i < response.data.data.list.length; i++) {
  292. this.WarehouseInfo.warehouseInfoDate.push(response.data.data.list[i])
  293. arr.push(response.data.data.list[i])
  294. }
  295. for(let i=0;i<arr.length;i++){
  296. arr[i].stockInCount = this.stockInCount(arr[i])
  297. arr[i].salesReturnCount = this.salesReturnCount(arr[i])
  298. arr[i].reactCount = (this.stockInCount(arr[i]) - this.salesReturnCount(arr[i]))?this.stockInCount(arr[i]) - this.salesReturnCount(arr[i]):0
  299. arr[i].stockOutCount = this.stockOutCount(arr[i])
  300. arr[i].cancelStockCount = this.cancelStockCount(arr[i])?this.cancelStockCount(arr[i]):0
  301. arr[i].reactOutCount = (this.stockOutCount(arr[i]) - this.cancelStockCount(arr[i]))?(this.stockOutCount(arr[i]) - this.cancelStockCount(arr[i])):0
  302. arr[i].overplusCount = (this.stockInCount(arr[i])-this.salesReturnCount(arr[i])-this.stockOutCount(arr[i])+this.cancelStockCount(arr[i]))?this.stockInCount(arr[i])-this.salesReturnCount(arr[i])-this.stockOutCount(arr[i])+this.cancelStockCount(arr[i]):0
  303. }
  304. this.tableData = arr
  305. this.handleSpanTempArr()
  306. }
  307. })
  308. },
  309. getSpecificationName: function(id) {
  310. let name = ''
  311. for (let i = 0; i < this.goodInfo.length; i++) {
  312. if (this.goodInfo[i].id == id) {
  313. name = this.goodInfo[i].specification_name
  314. }
  315. }
  316. return name
  317. },
  318. getTypeName: function(id) {
  319. let name = ''
  320. for (let i = 0; i < this.goodType.length; i++) {
  321. if (this.goodType[i].id == id) {
  322. name = this.goodType[i].type_name
  323. }
  324. }
  325. return name
  326. },
  327. handleBack: function() {
  328. this.$router.go(-1)
  329. },
  330. handleSizeChange(val) {
  331. this.limit = val
  332. this.getlist()
  333. },
  334. handleCurrentChange(val) {
  335. this.page = val
  336. this.getlist()
  337. },
  338. calculate: function(val) {
  339. return Math.round(parseFloat(val) * 100) / 100
  340. },
  341. startTimeChange: function(val) {
  342. var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
  343. if (time > 0) {
  344. this.$message.error("开始时间不能大于结束时间");
  345. this.start_time = "";
  346. } else {
  347. this.getlist()
  348. }
  349. },
  350. endTimeChange: function(val) {
  351. var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
  352. if (time < 0) {
  353. this.$message.error("结束时间不能小于开始时间");
  354. this.end_time = "";
  355. } else {
  356. // this.GetAllDrugStockQueryList();
  357. this.getlist()
  358. }
  359. },
  360. stockInCount: function(row) {
  361. let total = 0
  362. for (let i = 0; i < row.query_drug_warehousing_info.length; i++) {
  363. total = total + row.query_drug_warehousing_info[i].warehousing_count
  364. }
  365. return total
  366. },
  367. salesReturnCount: function(row) {
  368. let total = 0
  369. for (let i = 0; i < row.query_drug_sales_return_info.length; i++) {
  370. total = total + row.query_drug_sales_return_info[i].count
  371. }
  372. return total
  373. },
  374. stockOutCount: function(row) {
  375. let total = 0
  376. for (let i = 0; i < row.query_drug_warehouseout_info.length; i++) {
  377. total = total + row.query_drug_warehouseout_info[i].count
  378. }
  379. return total
  380. },
  381. cancelStockCount: function(row) {
  382. let total = 0
  383. for (let i = 0; i < row.query_drug_cancel_stock_info.length; i++) {
  384. total = total + row.query_drug_cancel_stock_info[i].count
  385. }
  386. return total
  387. },
  388. showStockInDetailDialog: function(val) {
  389. },
  390. showSaleReturnDetailDialog: function() {
  391. },
  392. showStockOutDetailDialog: function() {
  393. },
  394. showCancelStockDetailDialog: function() {
  395. },
  396. search: function() {
  397. this.getlist()
  398. },
  399. setting: function() {
  400. this.$refs.dialog.show()
  401. },
  402. exportStock(){
  403. for(let i=0;i<this.tableList.length;i++){
  404. this.tableList[i].index = i+1
  405. this.tableList[i].drug_type_name = this.getDrugType(this.tableList[i].drug_type)
  406. this.tableList[i].unit = this.tableList[i].dose + this.tableList[i].dose_unit +"*"+this.tableList[i].min_number+this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
  407. this.tableList[i].manufacturer_name = this.getManufacturerList(this.tableList[i].manufacturer)
  408. this.tableList[i].inCount = this.getInCount(this.tableList[i].drug_id) + this.tableList[i].max_unit
  409. this.tableList[i].outCount = this.getCount(this.tableList[i].drug_id,this.tableList[i].min_number,this.tableList[i].max_unit,this.tableList[i].min_unit)
  410. this.tableList[i].overplusCount = this.getCountTwo(this.tableList[i].drug_id,this.tableList[i].min_number,this.tableList[i].max_unit,this.tableList[i].min_unit)
  411. }
  412. console.log("2322323232",this.tableList)
  413. import('@/vendor/Export2Excel').then(excel => {
  414. const tHeader = ['序号', '药品类型', '药品名称','规格型号&单位','进货单价','厂家','入库数量','出库数量','剩余库存量']
  415. const filterVal = ['index', 'drug_type_name', 'drug_name','unit','last_price','manufacturer_name','inCount','outCount','overplusCount']
  416. const data = this.formatJson(filterVal, this.tableList)
  417. excel.export_json_to_excel({
  418. header: tHeader,
  419. data,
  420. filename: '药品查询'
  421. })
  422. this.downloadLoading = false
  423. })
  424. },
  425. formatJson(filterVal, jsonData) {
  426. return jsonData.map(v => filterVal.map(j => v[j]));
  427. },
  428. getDictionaryDataConfig(module, filed_name) {
  429. return getDictionaryDataConfig(module, filed_name)
  430. },
  431. getTimestamp(time) { // 把时间日期转成时间戳
  432. return (new Date(time)).getTime() / 1000
  433. },
  434. changeDrug(){
  435. this.getlist()
  436. },
  437. printOrder(){
  438. this.$router.push({
  439. name: "drugQueryPrint",
  440. query: {drug_type:this.drug_type,keyword:this.keywords,start_time:this.start_time,end_time:this.end_time,page:this.page,limit:this.limit}
  441. });
  442. },
  443. //获取库存
  444. getlist(){
  445. const params = {
  446. page: this.page,
  447. limit: this.limit,
  448. keyword: this.keywords,
  449. drug_type:this.drug_type,
  450. start_time:this.start_time,
  451. end_time:this.end_time,
  452. }
  453. console.log("parasm222222",params)
  454. getDrugStockList(params).then(response=>{
  455. if(response.data.state == 1){
  456. var list = response.data.data.list
  457. console.log("list99999",list)
  458. this.tableList = list
  459. var total = response.data.data.total
  460. console.log("total",total)
  461. this.total = total
  462. this.manufacturerList = response.data.data.manufacturerList
  463. }
  464. })
  465. },
  466. getDrugType(id){
  467. var name = ""
  468. for(let i=0;i<this.drugTypeList.length;i++){
  469. if(this.drugTypeList[i].id == id){
  470. name = this.drugTypeList[i].name
  471. }
  472. }
  473. return name
  474. },
  475. getManufacturerList(id){
  476. var name = ""
  477. for(let i=0;i<this.manufacturerList.length;i++){
  478. if(id == this.manufacturerList[i].id){
  479. name = this.manufacturerList[i].manufacturer_name
  480. }
  481. }
  482. return name
  483. },
  484. handleDetail(val){
  485. var manufacturer_name = ""
  486. for(let i=0;i<this.manufacturerList.length;i++){
  487. if(val.manufacturer == this.manufacturerList[i].id){
  488. manufacturer_name = this.manufacturerList[i].manufacturer_name
  489. }
  490. }
  491. var unit = val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
  492. this.$router.push({path:'/drugstock/in/drugstockflow?drug_id='+val.drug_id+"&drug_name="+val.drug_name+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit})
  493. },
  494. handleBatch(val){
  495. var manufacturer_name = ""
  496. for(let i=0;i<this.manufacturerList.length;i++){
  497. if(val.manufacturer == this.manufacturerList[i].id){
  498. manufacturer_name = this.manufacturerList[i].manufacturer_name
  499. }
  500. }
  501. var unit = val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
  502. this.$router.push({path:'/drugstock/in/drugbatchnumber?drug_id='+val.drug_id+"&drug_name="+val.drug_name+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit})
  503. },
  504. getDrugCountList(){
  505. var params = {
  506. keyword: this.keywords,
  507. start_time:this.start_time,
  508. end_time:this.end_time,
  509. }
  510. getDrugCountList(params).then(response=>{
  511. if(response.data.state == 1){
  512. var countlist = response.data.data.countList
  513. console.log("入库数据",countlist)
  514. this.countList = countlist
  515. var outcountlist = response.data.data.outCountList
  516. console.log("出库数据",outcountlist)
  517. this.outCountList = outcountlist
  518. var aucountlist = response.data.data.auCountList
  519. console.log("自动数据",aucountlist)
  520. this.autoCountList = aucountlist
  521. var minCount = response.data.data.minCount
  522. console.log("minCount",minCount)
  523. this.minCount = minCount
  524. var info = response.data.data.info
  525. for(let i=0;i<info.length;i++){
  526. if(info[i].count_unit == info[i].max_unit){
  527. info[i].count = info[i].count * info[i].min_number
  528. }
  529. }
  530. console.log("info2222222",info)
  531. this.drugOutList = info
  532. }
  533. })
  534. },
  535. getInCount(id){
  536. var count = ""
  537. for(let i=0;i<this.countList.length;i++){
  538. if(id == this.countList[i].drug_id){
  539. count = this.countList[i].count
  540. }
  541. }
  542. return count
  543. },
  544. getOutCount(id){
  545. var count = ""
  546. for(let i=0;i<this.outCountList.length;i++){
  547. if(id == this.outCountList[i].drug_id){
  548. count = this.outCountList[i].count
  549. }
  550. }
  551. return count
  552. },
  553. getAutoCount(id){
  554. var count= ""
  555. for(let i=0;i<this.autoCountList.length;i++){
  556. if(id == this.autoCountList[i].drug_id){
  557. count = this.autoCountList[i].count
  558. }
  559. }
  560. return count
  561. },
  562. getMinCount(id){
  563. var count=""
  564. for(let i=0;i<this.minCount.length;i++){
  565. if(id == this.minCount[i].drug_id){
  566. count = this.minCount[i].count
  567. }
  568. }
  569. return count
  570. },
  571. getCount(drug_id,min_number,max_unit,min_unit){
  572. var count= 0
  573. var str = ""
  574. var min_str = ""
  575. for(let i=0;i<this.drugOutList.length;i++){
  576. if(drug_id == this.drugOutList[i].drug_id){
  577. count += parseInt(this.drugOutList[i].count)
  578. }
  579. }
  580. if(parseInt(count/min_number)!=0){
  581. str = parseInt(count/min_number)+ max_unit
  582. }
  583. if((count%min_number)!=0){
  584. min_str = count%min_number + min_unit
  585. }
  586. return str + min_str
  587. },
  588. getCountOne(drug_id){
  589. var count= 0
  590. for(let i=0;i<this.drugOutList.length;i++){
  591. if(drug_id == this.drugOutList[i].drug_id){
  592. count += parseInt(this.drugOutList[i].count)
  593. }
  594. }
  595. return count
  596. },
  597. getCountTwo(drug_id,min_number,max_unit,min_unit){
  598. var total_count = 0
  599. var out_count = 0
  600. var count = 0
  601. var str = ""
  602. var str_min = ""
  603. total_count = this.getInCount(drug_id) * min_number
  604. out_count = this.getCountOne(drug_id)
  605. count = total_count-out_count
  606. if(parseInt(count/min_number)!=0){
  607. str = parseInt(count/min_number) + max_unit
  608. }
  609. if((count%min_number)!=0){
  610. str_min = count%min_number + min_unit
  611. }
  612. return str+str_min
  613. }
  614. }
  615. }
  616. </script>
  617. <style rel="stylesheet/css" lang="scss" scoped>
  618. .information {
  619. border: 1px #dcdfe6 solid;
  620. padding: 30px 20px 30px 20px;
  621. .border {
  622. border-bottom: 1px #dcdfe6 solid;
  623. margin: 0px 0 20px 0;
  624. }
  625. }
  626. .title {
  627. background: #409eff;
  628. height: 44px;
  629. line-height: 44px;
  630. padding: 0 0 0 10px;
  631. color: #fff;
  632. margin: 0 0 10px 0;
  633. }
  634. .edit_separater {
  635. border-top: 1px solid rgb(233, 233, 233);
  636. margin-top: 15px;
  637. margin-bottom: 15px;
  638. }
  639. </style>
  640. <style>
  641. .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
  642. font-size: 12px;
  643. }
  644. .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
  645. background: #6fb5fa;
  646. }
  647. .count {
  648. color: #bd2c00;
  649. }
  650. .el-table td,
  651. .el-table th.is-leaf,
  652. .el-table--border,
  653. .el-table--group {
  654. border-color: #d0d3da;
  655. }
  656. .el-table--border::after,
  657. .el-table--group::after,
  658. .el-table::before {
  659. background-color: #d0d3da;
  660. }
  661. </style>