stockQuery.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  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. this.getStockDrugCount()
  301. },
  302. handleCurrentChange(val) {
  303. this.page = val;
  304. this.getlist()
  305. this.getStockDrugCount()
  306. },
  307. calculate: function(val) {
  308. return Math.round(parseFloat(val) * 100) / 100;
  309. },
  310. startTimeChange: function(val) {
  311. var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
  312. if (time > 0) {
  313. this.$message.error("开始时间不能大于结束时间");
  314. this.start_time = "";
  315. } else {
  316. this.start_time = val
  317. this.getlist()
  318. this.getStockDrugCount()
  319. }
  320. },
  321. endTimeChange: function(val) {
  322. var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
  323. if (time < 0) {
  324. this.$message.error("结束时间不能小于开始时间");
  325. this.end_time = "";
  326. } else {
  327. this.end_time = val
  328. this.getlist()
  329. this.getStockDrugCount()
  330. }
  331. },
  332. stockInCount: function(row) {
  333. let total = 0;
  334. for (let i = 0; i < row.query_warehousing_info.length; i++) {
  335. total = total + row.query_warehousing_info[i].warehousing_count;
  336. }
  337. return total;
  338. },
  339. salesReturnCount: function(row) {
  340. let total = 0;
  341. for (let i = 0; i < row.query_sales_return_info.length; i++) {
  342. total = total + row.query_sales_return_info[i].count;
  343. }
  344. return total;
  345. },
  346. stockOutCount: function(row) {
  347. let total = 0;
  348. for (let i = 0; i < row.query_warehouseout_info.length; i++) {
  349. total = total + row.query_warehouseout_info[i].count;
  350. }
  351. return total;
  352. },
  353. cancelStockCount: function(row) {
  354. let total = 0;
  355. for (let i = 0; i < row.query_cancel_stock_info.length; i++) {
  356. total = total + row.query_cancel_stock_info[i].count;
  357. }
  358. return total;
  359. },
  360. showStockInDetailDialog: function(val) {},
  361. showSaleReturnDetailDialog: function() {},
  362. showStockOutDetailDialog: function() {},
  363. showCancelStockDetailDialog: function() {},
  364. search: function() {
  365. this.getlist()
  366. this.getStockDrugCount()
  367. },
  368. exportList(){
  369. import('@/vendor/Export2Excel').then(excel => {
  370. const tHeader = ['耗材类型', '耗材名称', '规格&单位','进货单价','生产商','入库数量','出库数量','库存剩余量']
  371. const filterVal = ['type_name', 'good_name', 'unit','buy_price','prodect_name','inCount','outCount','overplus']
  372. for(let i=0;i<this.tableList.length;i++){
  373. this.tableList[i].type_name = this.getGoodType(this.tableList[i].good_type_id)
  374. this.tableList[i].unit = this.tableList[i].specification_name + "/" + this.tableList[i].packing_unit
  375. this.tableList[i].prodect_name = this.getManufacture(this.tableList[i].manufacturer)
  376. this.tableList[i].inCount = this.getWareInfo(this.tableList[i].xt_warehouse_info)
  377. this.tableList[i].outCount = this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
  378. // 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)
  379. // this.tableList[i].overplus = this.getOverplus(this.tableList[i].xt_warehouse_info)
  380. if(this.getWareInfo(this.tableList[i].xt_warehouse_info) > 0){
  381. 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)
  382. }else{
  383. this.tableList[i].overplus = 0
  384. }
  385. }
  386. console.log("table",this.tableList)
  387. const data = this.formatJson(filterVal, this.tableList)
  388. excel.export_json_to_excel({
  389. header: tHeader,
  390. data,
  391. filename: '库存查询'
  392. })
  393. this.downloadLoading = false
  394. })
  395. },
  396. formatJson(filterVal, jsonData) {
  397. return jsonData.map(v => filterVal.map(j => v[j]));
  398. },
  399. changeTypeName(){
  400. this.getlist()
  401. },
  402. toPrint(){
  403. 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)
  404. },
  405. getUnit(id){
  406. var name = ""
  407. for(let i=0;i<this.$store.getters.good_unit.length;i++){
  408. if(id == this.$store.getters.good_unit[i].id){
  409. name = this.$store.getters.good_unit[i].name
  410. }
  411. }
  412. return name
  413. },
  414. getTimestamp(time) {
  415. // 把时间日期转成时间戳
  416. return new Date(time).getTime() / 1000;
  417. },
  418. getGoodType(id){
  419. var name = ""
  420. for(let i=0;i<this.goodType.length;i++){
  421. if(id == this.goodType[i].id){
  422. name = this.goodType[i].type_name
  423. }
  424. }
  425. return name
  426. },
  427. getlist(){
  428. const params = {
  429. page: this.page,
  430. limit: this.limit,
  431. keywords: this.keywords,
  432. start_time:this.start_time,
  433. end_time:this.end_time,
  434. type:this.type_name,
  435. };
  436. console.log("params",params)
  437. getAllStockList(params).then(response=>{
  438. if(response.data.state == 1){
  439. var list = response.data.data.list
  440. console.log("list22222",list)
  441. this.tableList = list
  442. var total = response.data.data.total
  443. console.log("total",total)
  444. this.total = total
  445. var manufacturerList = response.data.data.manufacturerList
  446. this.manufacturerList = manufacturerList
  447. }
  448. })
  449. },
  450. getManufacture(id){
  451. var name = ""
  452. for(let i=0;i<this.manufacturerList.length;i++){
  453. if(id == this.manufacturerList[i].id){
  454. name = this.manufacturerList[i].manufacturer_name
  455. }
  456. }
  457. return name
  458. },
  459. toClick(val){
  460. var manufacturer_name = ""
  461. var specification_name = ""
  462. for(let i=0;i<this.manufacturerList.length;i++){
  463. if(val.manufacturer == this.manufacturerList[i].id){
  464. manufacturer_name = this.manufacturerList[i].manufacturer_name
  465. }
  466. }
  467. specification_name = val.specification_name + "/" + val.packing_unit
  468. var overCount = this.getOverplus(val.xt_warehouse_info)
  469. 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})
  470. },
  471. toClickOne(val){
  472. var manufacturer_name = ""
  473. var specification_name = ""
  474. for(let i=0;i<this.manufacturerList.length;i++){
  475. if(val.manufacturer == this.manufacturerList[i].id){
  476. manufacturer_name = this.manufacturerList[i].manufacturer_name
  477. }
  478. }
  479. specification_name = val.specification_name + "/" + val.packing_unit
  480. var overCount = this.getOverplus(val.xt_warehouse_info)
  481. 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})
  482. },
  483. getStockDrugCount(){
  484. var params ={
  485. keywords: this.$route.query.keywords,
  486. start_time:this.start_time,
  487. end_time:this.end_time,
  488. }
  489. getStockDrugCount(params).then(response=>{
  490. if(response.data.state == 1){
  491. // var count = response.data.data.count
  492. // console.log("入库统计",count)
  493. // this.countList = count
  494. var outlist = response.data.data.outList
  495. console.log("出库数量",outlist)
  496. this.outCountList = outlist
  497. var autoCount = response.data.data.autoCount
  498. console.log("autoCount",autoCount)
  499. this.autoCountList = autoCount
  500. // var totalCount = response.data.data.totalCount
  501. // console.log("totalcount",totalCount)
  502. // this.cancelCountList = totalCount
  503. }
  504. })
  505. },
  506. getInCount(id){
  507. var count= 0
  508. for(let i=0;i<this.countList.length;i++){
  509. if(id == this.countList[i].good_id){
  510. count = this.countList[i].count
  511. }
  512. }
  513. return count
  514. },
  515. getOutCount(id){
  516. var count = 0
  517. for(let i=0;i<this.outCountList.length;i++){
  518. if(id == this.outCountList[i].good_id){
  519. count = this.outCountList[i].count
  520. }
  521. }
  522. return count
  523. },
  524. getAutoCount(id){
  525. var count= 0
  526. for(let i=0;i<this.autoCountList.length;i++){
  527. if(id == this.autoCountList[i].good_id){
  528. count = this.autoCountList[i].count
  529. }
  530. }
  531. return count
  532. },
  533. getCancelCount(id){
  534. var count = 0
  535. for(let i=0;i<this.cancelCountList.length;i++){
  536. if(id == this.cancelCountList[i].good_id){
  537. count = this.cancelCountList[i].count
  538. }
  539. }
  540. return count
  541. },
  542. getStockCount(id){
  543. var stock_count = 0
  544. for(let i=0;i<this.countList.length;i++){
  545. if(id == this.countList[i].good_id){
  546. stock_count = this.countList[i].stock_count
  547. }
  548. }
  549. return stock_count
  550. },
  551. getWareInfo(arr){
  552. var total = 0
  553. if(arr.length > 0){
  554. for(let i=0;i<arr.length;i++){
  555. total += parseInt(arr[i].warehousing_count)
  556. }
  557. }else{
  558. total = ""
  559. }
  560. return total
  561. },
  562. getOverplus(arr){
  563. var total = 0
  564. if(arr.length > 0){
  565. for(let i=0;i<arr.length;i++){
  566. total += arr[i].stock_count
  567. }
  568. }else{
  569. total = ""
  570. }
  571. return total
  572. },
  573. getCancelInfo(arr){
  574. var total = 0
  575. if(arr.length > 0){
  576. for(let i=0;i<arr.length;i++){
  577. total += arr[i].count
  578. }
  579. }else{
  580. total = ""
  581. }
  582. return total
  583. }
  584. }
  585. };
  586. </script>
  587. <style rel="stylesheet/css" lang="scss" scoped>
  588. .information {
  589. border: 1px #dcdfe6 solid;
  590. padding: 30px 20px 30px 20px;
  591. .border {
  592. border-bottom: 1px #dcdfe6 solid;
  593. margin: 0px 0 20px 0;
  594. }
  595. }
  596. .title {
  597. background: #409eff;
  598. height: 44px;
  599. line-height: 44px;
  600. padding: 0 0 0 10px;
  601. color: #fff;
  602. margin: 0 0 10px 0;
  603. }
  604. .edit_separater {
  605. border-top: 1px solid rgb(233, 233, 233);
  606. margin-top: 15px;
  607. margin-bottom: 15px;
  608. }
  609. </style>
  610. <style>
  611. .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
  612. font-size: 12px;
  613. }
  614. .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
  615. background: #6fb5fa;
  616. }
  617. .count {
  618. color: #bd2c00;
  619. }
  620. .el-table td,
  621. .el-table th.is-leaf,
  622. .el-table--border,
  623. .el-table--group {
  624. border-color: #d0d3da;
  625. }
  626. .el-table--border::after,
  627. .el-table--group::after,
  628. .el-table::before {
  629. background-color: #d0d3da;
  630. }
  631. </style>