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

stockQuery.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. </div>
  6. <div class="app-container ">
  7. <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
  8. <div>
  9. <el-select v-model="type_name" style="width:140px;margin-right:10px;" placeholder="请选择"
  10. @change="changeTypeName">
  11. <el-option
  12. v-for="item in types"
  13. :key="item.id"
  14. :label="item.type_name"
  15. :value="item.id">
  16. </el-option>
  17. </el-select>
  18. <el-date-picker
  19. size="small"
  20. v-model="start_time"
  21. prefix-icon="el-icon-date"
  22. :editable="false"
  23. style="width: 196px;"
  24. type="date"
  25. placeholder="选择日期时间"
  26. align="right"
  27. format="yyyy-MM-dd"
  28. value-format="yyyy-MM-dd"
  29. @change="startTimeChange"
  30. ></el-date-picker>-
  31. <el-date-picker
  32. size="small"
  33. v-model="end_time"
  34. prefix-icon="el-icon-date"
  35. :editable="false"
  36. style="width: 196px;"
  37. type="date"
  38. placeholder="选择日期时间"
  39. align="right"
  40. format="yyyy-MM-dd"
  41. value-format="yyyy-MM-dd"
  42. @change="endTimeChange"
  43. ></el-date-picker>
  44. <el-input
  45. size="small"
  46. style="width: 200px;margin-left:10px;"
  47. class="filter-item"
  48. v-model.trim="keywords"
  49. placeholder="耗材名称"
  50. />
  51. <el-button
  52. size="small"
  53. class="filter-item"
  54. type="primary"
  55. icon="el-icon-search"
  56. @click="search"
  57. >搜索</el-button
  58. >
  59. </div>
  60. <div>
  61. <el-button size="small" type="primary" @click="exportList">导出</el-button>
  62. <el-button size="small" type="primary" @click="toPrint">打印</el-button>
  63. </div>
  64. </div>
  65. <el-table
  66. :row-style="{ color: '#303133' }"
  67. :header-cell-style="{
  68. backgroundColor: 'rgb(245, 247, 250)',
  69. color: '#606266'
  70. }"
  71. :data="tableList"
  72. :class="signAndWeighBoxPatients"
  73. border
  74. v-loading="WarehouseInfo.loading"
  75. >
  76. <el-table-column label="耗材类型" align="center">
  77. <template slot-scope="scope">
  78. <span>{{getGoodType(scope.row.good_type_id)}}</span>
  79. </template>
  80. </el-table-column>
  81. <el-table-column label="耗材名称" align="center">
  82. <template slot-scope="scope">
  83. {{ scope.row.good_name }}
  84. </template>
  85. </el-table-column>
  86. <el-table-column label="规格&单位" align="center">
  87. <template slot-scope="scope">
  88. <span>{{ scope.row.specification_name }} / {{scope.row.packing_unit}}</span>
  89. </template>
  90. </el-table-column>
  91. <el-table-column label="进货单价" align="center">
  92. <template slot-scope="scope">
  93. {{scope.row.buy_price}}
  94. </template>
  95. </el-table-column>
  96. <el-table-column label="生产商" align="center">
  97. <template slot-scope="scope">
  98. {{getManufacture(scope.row.manufacturer)}}
  99. </template>
  100. </el-table-column>
  101. <el-table-column label="入库数量" align="center">
  102. <template slot-scope="scope">
  103. <span v-if="getWareInfo(scope.row.xt_warehouse_info)>0">{{getWareInfo(scope.row.xt_warehouse_info)}}{{scope.row.packing_unit}}</span>
  104. </template>
  105. </el-table-column>
  106. <el-table-column label="出库数量" align="center">
  107. <template slot-scope="scope">
  108. {{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}}
  109. <!-- <span v-if="getWareInfo(scope.row.xt_warehouse_info)>0">{{getWareInfo(scope.row.xt_warehouse_info) - getOverplus(scope.row.xt_warehouse_info) - getCancelInfo(scope.row.cancel_stock_info)}}{{scope.row.packing_unit}}</span> -->
  110. </template>
  111. </el-table-column>
  112. <el-table-column label="剩余库存量" align="center">
  113. <template slot-scope="scope">
  114. <span v-if="getWareInfo(scope.row.xt_warehouse_info) > 0">{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
  115. <!-- <span v-if="getOverplus(scope.row.xt_warehouse_info)>0">{{getOverplus(scope.row.xt_warehouse_info)}}{{scope.row.packing_unit}}</span> -->
  116. </template>
  117. </el-table-column>
  118. <el-table-column label="操作" align="center" width="260px">
  119. <template slot-scope="scope">
  120. <el-button
  121. size="small"
  122. type="primary"
  123. @click="toClick(scope.row)"
  124. >库存流水
  125. </el-button>
  126. <el-button
  127. size="small"
  128. type="primary"
  129. @click="toClickOne(scope.row)"
  130. >批次
  131. </el-button>
  132. </template>
  133. </el-table-column>
  134. </el-table>
  135. <el-pagination
  136. @size-change="handleSizeChange"
  137. @current-change="handleCurrentChange"
  138. :page-sizes="[10, 50, 100,200,500,1000]"
  139. :page-size="10"
  140. background
  141. align="right"
  142. style="margin-top:20px;"
  143. layout="total, sizes, prev, pager, next, jumper"
  144. :total="total"
  145. >
  146. </el-pagination>
  147. </div>
  148. </div>
  149. </template>
  150. <script>
  151. import { uParseTime } from "@/utils/tools";
  152. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  153. import {
  154. GetAllGoodInfo,
  155. GetAllGoodType,
  156. getAllStockQueryList,
  157. getAllStockList,
  158. getStockDrugCount
  159. } from "@/api/stock";
  160. export default {
  161. name: "stockIn",
  162. created() {
  163. var nowDate = new Date();
  164. var nowYear = nowDate.getFullYear();
  165. var nowMonth = nowDate.getMonth() + 1;
  166. var nowDay = nowDate.getDate();
  167. // this.end_time =
  168. // nowYear +
  169. // "-" +
  170. // (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
  171. // "-" +
  172. // (nowDay < 10 ? "0" + nowDay : nowDay);
  173. // nowDate.setMonth(nowDate.getMonth() - 1);
  174. // nowYear = nowDate.getFullYear();
  175. // nowMonth = nowDate.getMonth() + 1;
  176. // nowDay = nowDate.getDate();
  177. // this.start_time = nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
  178. this.GetAllGoodInfo();
  179. this.GetAllGoodType();
  180. this.getlist()
  181. this.getStockDrugCount()
  182. },
  183. components: {
  184. BreadCrumb
  185. },
  186. data() {
  187. return {
  188. crumbs: [
  189. { path: false, name: "库存管理" },
  190. { path: "/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. WarehouseInfo: {
  203. loading: false,
  204. warehouseInfoDate: []
  205. },
  206. options:[],
  207. value:"",
  208. type_name:0,
  209. types:[],
  210. tableList:[],
  211. manufacturerList:[],
  212. countList:[],
  213. outCountList:[],
  214. autoCountList:[],
  215. cancelCountList:[]
  216. };
  217. },
  218. methods: {
  219. GetAllStockQuery: function() {
  220. console.log(this.keywords);
  221. const Params = {
  222. page: this.page,
  223. limit: this.limit,
  224. keyword: this.keywords,
  225. start_time:this.start_time,
  226. end_time:this.end_time,
  227. type_name:this.type_name,
  228. };
  229. this.WarehouseInfo.loading = true;
  230. this.WarehouseInfo.warehouseInfoDate = [];
  231. getAllStockQueryList(Params).then(response => {
  232. if (response.data.state == 0) {
  233. this.WarehouseInfo.loading = false;
  234. this.$message.error(response.data.msg);
  235. return false;
  236. } else {
  237. this.WarehouseInfo.loading = false;
  238. this.total = response.data.data.total;
  239. for (let i = 0; i < response.data.data.list.length; i++) {
  240. this.WarehouseInfo.warehouseInfoDate.push( response.data.data.list[i]);
  241. }
  242. }
  243. console.log("数据源头",this.WarehouseInfo.warehouseInfoDate)
  244. for(let i=0;i<this.WarehouseInfo.warehouseInfoDate.length;i++){
  245. this.WarehouseInfo.warehouseInfoDate[i].type_name = this.WarehouseInfo.warehouseInfoDate[i].type.type_name
  246. this.WarehouseInfo.warehouseInfoDate[i].stockInCount = this.stockInCount(this.WarehouseInfo.warehouseInfoDate[i])
  247. this.WarehouseInfo.warehouseInfoDate[i].salesReturnCount = this.salesReturnCount(this.WarehouseInfo.warehouseInfoDate[i])
  248. this.WarehouseInfo.warehouseInfoDate[i].realCount = this.stockInCount(this.WarehouseInfo.warehouseInfoDate[i]) - this.salesReturnCount(this.WarehouseInfo.warehouseInfoDate[i])
  249. this.WarehouseInfo.warehouseInfoDate[i].stockOutCount = this.stockOutCount(this.WarehouseInfo.warehouseInfoDate[i])
  250. this.WarehouseInfo.warehouseInfoDate[i].cancelStockCount = this.cancelStockCount(this.WarehouseInfo.warehouseInfoDate[i])
  251. this.WarehouseInfo.warehouseInfoDate[i].realOutCount = this.stockOutCount(this.WarehouseInfo.warehouseInfoDate[i]) - this.cancelStockCount(this.WarehouseInfo.warehouseInfoDate[i])
  252. this.WarehouseInfo.warehouseInfoDate[i].overplus = this.stockInCount(this.WarehouseInfo.warehouseInfoDate[i]) -this.salesReturnCount(this.WarehouseInfo.warehouseInfoDate[i]) - this.stockOutCount(this.WarehouseInfo.warehouseInfoDate[i]) + this.cancelStockCount(this.WarehouseInfo.warehouseInfoDate[i])
  253. if(this.WarehouseInfo.warehouseInfoDate[i].query_warehousing_info.length>0){
  254. this.WarehouseInfo.warehouseInfoDate[i].price = this.WarehouseInfo.warehouseInfoDate[i].query_warehousing_info[0].price
  255. this.WarehouseInfo.warehouseInfoDate[i].all_price = (this.stockInCount(this.WarehouseInfo.warehouseInfoDate[i]) * this.WarehouseInfo.warehouseInfoDate[i].query_warehousing_info[0].price).toFixed(2)
  256. }else{
  257. this.WarehouseInfo.warehouseInfoDate[i].price = ""
  258. this.WarehouseInfo.warehouseInfoDate[i].all_price = ""
  259. }
  260. }
  261. });
  262. },
  263. GetAllGoodType: function() {
  264. GetAllGoodType().then(response => {
  265. if (response.data.state == 0) {
  266. this.$message.error(response.data.msg);
  267. return false;
  268. } else {
  269. var obj = {
  270. id:0,
  271. type_name:'全部'
  272. }
  273. this.types.push(obj)
  274. for (let i = 0; i < response.data.data.goodType.length; i++) {
  275. this.goodType.push(response.data.data.goodType[i]);
  276. this.types.push(response.data.data.goodType[i])
  277. }
  278. console.log("商品类型",this.types)
  279. }
  280. });
  281. },
  282. GetAllGoodInfo: function() {
  283. GetAllGoodInfo().then(response => {
  284. if (response.data.state == 0) {
  285. this.$message.error(response.data.msg);
  286. return false;
  287. } else {
  288. for (let i = 0; i < response.data.data.goodInfo.length; i++) {
  289. this.goodInfo.push(response.data.data.goodInfo[i]);
  290. }
  291. }
  292. });
  293. },
  294. handleBack: function() {
  295. this.$router.go(-1);
  296. },
  297. handleSizeChange(val) {
  298. this.limit = val;
  299. this.getlist()
  300. },
  301. handleCurrentChange(val) {
  302. this.page = val;
  303. this.getlist()
  304. },
  305. calculate: function(val) {
  306. return Math.round(parseFloat(val) * 100) / 100;
  307. },
  308. startTimeChange: function(val) {
  309. var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
  310. if (time > 0) {
  311. this.$message.error("开始时间不能大于结束时间");
  312. this.start_time = "";
  313. } else {
  314. this.start_time = val
  315. this.getlist()
  316. this.getStockDrugCount()
  317. }
  318. },
  319. endTimeChange: function(val) {
  320. var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
  321. if (time < 0) {
  322. this.$message.error("结束时间不能小于开始时间");
  323. this.end_time = "";
  324. } else {
  325. this.end_time = val
  326. this.getlist()
  327. this.getStockDrugCount()
  328. }
  329. },
  330. stockInCount: function(row) {
  331. let total = 0;
  332. for (let i = 0; i < row.query_warehousing_info.length; i++) {
  333. total = total + row.query_warehousing_info[i].warehousing_count;
  334. }
  335. return total;
  336. },
  337. salesReturnCount: function(row) {
  338. let total = 0;
  339. for (let i = 0; i < row.query_sales_return_info.length; i++) {
  340. total = total + row.query_sales_return_info[i].count;
  341. }
  342. return total;
  343. },
  344. stockOutCount: function(row) {
  345. let total = 0;
  346. for (let i = 0; i < row.query_warehouseout_info.length; i++) {
  347. total = total + row.query_warehouseout_info[i].count;
  348. }
  349. return total;
  350. },
  351. cancelStockCount: function(row) {
  352. let total = 0;
  353. for (let i = 0; i < row.query_cancel_stock_info.length; i++) {
  354. total = total + row.query_cancel_stock_info[i].count;
  355. }
  356. return total;
  357. },
  358. showStockInDetailDialog: function(val) {},
  359. showSaleReturnDetailDialog: function() {},
  360. showStockOutDetailDialog: function() {},
  361. showCancelStockDetailDialog: function() {},
  362. search: function() {
  363. this.getlist()
  364. },
  365. exportList(){
  366. import('@/vendor/Export2Excel').then(excel => {
  367. const tHeader = ['耗材类型', '耗材名称', '规格&单位','进货单价','生产商','入库数量','出库数量','库存剩余量']
  368. const filterVal = ['type_name', 'good_name', 'unit','buy_price','prodect_name','inCount','outCount','overplus']
  369. for(let i=0;i<this.tableList.length;i++){
  370. this.tableList[i].type_name = this.getGoodType(this.tableList[i].good_type_id)
  371. this.tableList[i].unit = this.tableList[i].specification_name + "/" + this.tableList[i].packing_unit
  372. this.tableList[i].prodect_name = this.getManufacture(this.tableList[i].manufacturer)
  373. this.tableList[i].inCount = this.getWareInfo(this.tableList[i].xt_warehouse_info)
  374. this.tableList[i].outCount = this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
  375. // this.tableList[i].outCount = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverplus(this.tableList[i].xt_warehouse_info) - this.getCancelInfo(this.tableList[i].cancel_stock_info)
  376. // this.tableList[i].overplus = this.getOverplus(this.tableList[i].xt_warehouse_info)
  377. if(this.getWareInfo(this.tableList[i].xt_warehouse_info) > 0){
  378. this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)
  379. }else{
  380. this.tableList[i].overplus = 0
  381. }
  382. }
  383. console.log("table",this.tableList)
  384. const data = this.formatJson(filterVal, this.tableList)
  385. excel.export_json_to_excel({
  386. header: tHeader,
  387. data,
  388. filename: '库存查询'
  389. })
  390. this.downloadLoading = false
  391. })
  392. },
  393. formatJson(filterVal, jsonData) {
  394. return jsonData.map(v => filterVal.map(j => v[j]));
  395. },
  396. changeTypeName(){
  397. this.getlist()
  398. },
  399. toPrint(){
  400. this.$router.push("/stock/stockprint?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keywords+"&type_name="+this.type_name+"&page="+this.page+"&limit="+this.limit)
  401. },
  402. getUnit(id){
  403. var name = ""
  404. for(let i=0;i<this.$store.getters.good_unit.length;i++){
  405. if(id == this.$store.getters.good_unit[i].id){
  406. name = this.$store.getters.good_unit[i].name
  407. }
  408. }
  409. return name
  410. },
  411. getTimestamp(time) {
  412. // 把时间日期转成时间戳
  413. return new Date(time).getTime() / 1000;
  414. },
  415. getGoodType(id){
  416. var name = ""
  417. for(let i=0;i<this.goodType.length;i++){
  418. if(id == this.goodType[i].id){
  419. name = this.goodType[i].type_name
  420. }
  421. }
  422. return name
  423. },
  424. getlist(){
  425. const params = {
  426. page: this.page,
  427. limit: this.limit,
  428. keywords: this.keywords,
  429. start_time:this.start_time,
  430. end_time:this.end_time,
  431. type:this.type_name,
  432. };
  433. console.log("params",params)
  434. getAllStockList(params).then(response=>{
  435. if(response.data.state == 1){
  436. var list = response.data.data.list
  437. console.log("list22222",list)
  438. this.tableList = list
  439. var total = response.data.data.total
  440. console.log("total",total)
  441. this.total = total
  442. var manufacturerList = response.data.data.manufacturerList
  443. this.manufacturerList = manufacturerList
  444. }
  445. })
  446. },
  447. getManufacture(id){
  448. var name = ""
  449. for(let i=0;i<this.manufacturerList.length;i++){
  450. if(id == this.manufacturerList[i].id){
  451. name = this.manufacturerList[i].manufacturer_name
  452. }
  453. }
  454. return name
  455. },
  456. toClick(val){
  457. var manufacturer_name = ""
  458. var specification_name = ""
  459. for(let i=0;i<this.manufacturerList.length;i++){
  460. if(val.manufacturer == this.manufacturerList[i].id){
  461. manufacturer_name = this.manufacturerList[i].manufacturer_name
  462. }
  463. }
  464. specification_name = val.specification_name + "/" + val.packing_unit
  465. var overCount = this.getOverplus(val.xt_warehouse_info)
  466. this.$router.push({path:"/stock/in/stockflow?id="+val.id+"&good_name="+val.good_name+"&manufacturer="+manufacturer_name+"&specification_name="+specification_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
  467. },
  468. toClickOne(val){
  469. var manufacturer_name = ""
  470. var specification_name = ""
  471. for(let i=0;i<this.manufacturerList.length;i++){
  472. if(val.manufacturer == this.manufacturerList[i].id){
  473. manufacturer_name = this.manufacturerList[i].manufacturer_name
  474. }
  475. }
  476. specification_name = val.specification_name + "/" + val.packing_unit
  477. var overCount = this.getOverplus(val.xt_warehouse_info)
  478. this.$router.push({path:"/stock/in/stockbatchnumber?id="+val.id+"&good_name="+val.good_name+"&manufacturer="+manufacturer_name+"&specification_name="+specification_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
  479. },
  480. getStockDrugCount(){
  481. var params ={
  482. keywords: this.$route.query.keywords,
  483. start_time:this.start_time,
  484. end_time:this.end_time,
  485. }
  486. getStockDrugCount(params).then(response=>{
  487. if(response.data.state == 1){
  488. // var count = response.data.data.count
  489. // console.log("入库统计",count)
  490. // this.countList = count
  491. var outlist = response.data.data.outList
  492. console.log("出库数量",outlist)
  493. this.outCountList = outlist
  494. var autoCount = response.data.data.autoCount
  495. console.log("autoCount",autoCount)
  496. this.autoCountList = autoCount
  497. // var totalCount = response.data.data.totalCount
  498. // console.log("totalcount",totalCount)
  499. // this.cancelCountList = totalCount
  500. }
  501. })
  502. },
  503. getInCount(id){
  504. var count= 0
  505. for(let i=0;i<this.countList.length;i++){
  506. if(id == this.countList[i].good_id){
  507. count = this.countList[i].count
  508. }
  509. }
  510. return count
  511. },
  512. getOutCount(id){
  513. var count = 0
  514. for(let i=0;i<this.outCountList.length;i++){
  515. if(id == this.outCountList[i].good_id){
  516. count = this.outCountList[i].count
  517. }
  518. }
  519. return count
  520. },
  521. getAutoCount(id){
  522. var count= 0
  523. for(let i=0;i<this.autoCountList.length;i++){
  524. if(id == this.autoCountList[i].good_id){
  525. count = this.autoCountList[i].count
  526. }
  527. }
  528. return count
  529. },
  530. getCancelCount(id){
  531. var count = 0
  532. for(let i=0;i<this.cancelCountList.length;i++){
  533. if(id == this.cancelCountList[i].good_id){
  534. count = this.cancelCountList[i].count
  535. }
  536. }
  537. return count
  538. },
  539. getStockCount(id){
  540. var stock_count = 0
  541. for(let i=0;i<this.countList.length;i++){
  542. if(id == this.countList[i].good_id){
  543. stock_count = this.countList[i].stock_count
  544. }
  545. }
  546. return stock_count
  547. },
  548. getWareInfo(arr){
  549. var total = 0
  550. if(arr.length > 0){
  551. for(let i=0;i<arr.length;i++){
  552. total += parseInt(arr[i].warehousing_count)
  553. }
  554. }else{
  555. total = ""
  556. }
  557. return total
  558. },
  559. getOverplus(arr){
  560. var total = 0
  561. if(arr.length > 0){
  562. for(let i=0;i<arr.length;i++){
  563. total += arr[i].stock_count
  564. }
  565. }else{
  566. total = ""
  567. }
  568. return total
  569. },
  570. getCancelInfo(arr){
  571. var total = 0
  572. if(arr.length > 0){
  573. for(let i=0;i<arr.length;i++){
  574. total += arr[i].count
  575. }
  576. }else{
  577. total = ""
  578. }
  579. return total
  580. }
  581. }
  582. };
  583. </script>
  584. <style rel="stylesheet/css" lang="scss" scoped>
  585. .information {
  586. border: 1px #dcdfe6 solid;
  587. padding: 30px 20px 30px 20px;
  588. .border {
  589. border-bottom: 1px #dcdfe6 solid;
  590. margin: 0px 0 20px 0;
  591. }
  592. }
  593. .title {
  594. background: #409eff;
  595. height: 44px;
  596. line-height: 44px;
  597. padding: 0 0 0 10px;
  598. color: #fff;
  599. margin: 0 0 10px 0;
  600. }
  601. .edit_separater {
  602. border-top: 1px solid rgb(233, 233, 233);
  603. margin-top: 15px;
  604. margin-bottom: 15px;
  605. }
  606. </style>
  607. <style>
  608. .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
  609. font-size: 12px;
  610. }
  611. .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
  612. background: #6fb5fa;
  613. }
  614. .count {
  615. color: #bd2c00;
  616. }
  617. .el-table td,
  618. .el-table th.is-leaf,
  619. .el-table--border,
  620. .el-table--group {
  621. border-color: #d0d3da;
  622. }
  623. .el-table--border::after,
  624. .el-table--group::after,
  625. .el-table::before {
  626. background-color: #d0d3da;
  627. }
  628. </style>