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

drugStockOutOrder.vue 44KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <el-button
  6. size="small"
  7. @click="AddNewOrder"
  8. class="filter-item"
  9. style="float:right;"
  10. type="primary"
  11. icon="el-icon-circle-plus-outline"
  12. >新增</el-button>
  13. </div>
  14. <div class="app-container">
  15. <div class="cell clearfix">
  16. <label class="title"><span class="name">仓库</span> :</label>
  17. <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:200px" @change="changeStoreHouse">
  18. <el-option
  19. v-for="(option, index) in houseList"
  20. :key="index"
  21. :label="option.storehouse_name"
  22. :value="option.id">
  23. </el-option>
  24. </el-select>
  25. <el-input
  26. size="small"
  27. style="width: 200px;"
  28. class="filter-item"
  29. v-model.trim="searchKey"
  30. placeholder="单据编码/制单人/厂商"
  31. />
  32. <el-button
  33. size="small"
  34. class="filter-item"
  35. type="primary"
  36. icon="el-icon-search"
  37. @click="search"
  38. >搜索</el-button
  39. >
  40. <div style="margin-left:10px;">
  41. <label class="title"><span class="name">出库时间</span> : </label>
  42. <el-date-picker
  43. size="small"
  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. <span class="cellLine"> - </span>
  56. <el-date-picker
  57. size="small"
  58. v-model="end_time"
  59. prefix-icon="el-icon-date"
  60. :editable="false"
  61. style="width: 196px;"
  62. type="date"
  63. placeholder="选择日期时间"
  64. align="right"
  65. format="yyyy-MM-dd"
  66. value-format="yyyy-MM-dd"
  67. @change="endTimeChange"
  68. ></el-date-picker>
  69. </div>
  70. </div>
  71. <div class="cell clearfix">
  72. <el-checkbox
  73. style="width: 70px"
  74. v-model="checked"
  75. @change="changeAllSelected"
  76. >全选</el-checkbox
  77. >
  78. <el-button size="small" icon="el-icon-delete" @click="batchDelete">删除</el-button>
  79. <el-button size="small" type="primary" @click="toPrint">打印</el-button>
  80. <el-button size="small" type="primary" @click="toExport">导出</el-button>
  81. <span>&nbsp;&nbsp;</span>
  82. <label class="title"><span class="name">出库方式</span> :</label>
  83. <el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
  84. <el-option
  85. v-for="(option, index) in wayList"
  86. :key="index"
  87. :label="option.name"
  88. :value="option.id">
  89. </el-option>
  90. </el-select>
  91. </div>
  92. <el-table
  93. @current-change="handleSearch"
  94. :data="warehouseOutDate"
  95. :class="signAndWeighBoxPatients"
  96. style="width: 100%"
  97. border
  98. highlight-current-row
  99. ref="multipleTable"
  100. @selection-change="select"
  101. :row-style="{ color: '#303133' }"
  102. :header-cell-style="{
  103. backgroundColor: 'rgb(245, 247, 250)',
  104. color: '#606266'
  105. }"
  106. >
  107. <el-table-column type="selection" width="55" align="center"> </el-table-column>
  108. <el-table-column label="单据日期" align="center">
  109. <template slot-scope="scope">
  110. {{ scope.row.warehouse_out_time | parseTime("{y}-{m}-{d}") }}
  111. </template>
  112. </el-table-column>
  113. <el-table-column label="单据编号" align="center">
  114. <template slot-scope="scope">
  115. {{ scope.row.warehouse_out_order_number }}
  116. </template>
  117. </el-table-column>
  118. <el-table-column label="仓库名称" align="center">
  119. <template slot-scope="scope">
  120. {{getHouseName(scope.row.storehouse_id)}}
  121. </template>
  122. </el-table-column>
  123. <el-table-column label="制单人" align="center">
  124. <template slot-scope="scope">
  125. {{ getXuserName(scope.row.creater) }}
  126. </template>
  127. </el-table-column>
  128. <el-table-column min-width="35" align="center">
  129. <template slot="header" slot-scope="scope">
  130. <span>出库方式</span>
  131. </template>
  132. <template slot-scope="scope">
  133. <span v-if="scope.row.is_sys == 1">{{"自动出库"}}</span>
  134. <span v-if="scope.row.is_sys == 0">{{"手动出库"}}</span>
  135. <span v-if="scope.row.is_sys == 12">{{"调拨出库"}}</span>
  136. </template>
  137. </el-table-column>
  138. <el-table-column label="操作" align="center" width="240">
  139. <template slot-scope="scope">
  140. <el-tooltip
  141. class="item"
  142. effect="dark"
  143. content="编辑"
  144. placement="top"
  145. >
  146. <el-button
  147. size="mini"
  148. type="primary"
  149. icon="el-icon-edit-outline"
  150. @click="handleEdit(scope.$index, scope.row)"
  151. >
  152. </el-button>
  153. </el-tooltip>
  154. <el-tooltip
  155. class="item"
  156. effect="dark"
  157. content="删除"
  158. placement="top"
  159. >
  160. <el-button
  161. size="mini"
  162. type="danger"
  163. :disabled="scope.row.is_sys == 1"
  164. icon="el-icon-delete"
  165. @click="handleDelete(scope.$index, scope.row)"
  166. >
  167. </el-button>
  168. </el-tooltip>
  169. </template>
  170. </el-table-column>
  171. </el-table>
  172. <el-pagination
  173. @size-change="handleSizeChange"
  174. @current-change="handleCurrentChange"
  175. :page-sizes="[5, 10, 50, 100]"
  176. :page-size="5"
  177. background
  178. style="margin-top:20px;text-align: right"
  179. layout="total, sizes, prev, pager, next, jumper"
  180. :total="total"
  181. >
  182. </el-pagination>
  183. <!-- 使用详情 -->
  184. <div v-show="tableShow" style="margin-top:10px">
  185. <el-table
  186. :data="tableList"
  187. :class="signAndWeighBoxPatients"
  188. style="width: 100%"
  189. border
  190. highlight-current-row
  191. ref="multipleTableOne"
  192. @selection-change="select"
  193. :row-style="{ color: '#303133' }"
  194. :header-cell-style="{
  195. backgroundColor: 'rgb(245, 247, 250)',
  196. color: '#606266'
  197. }"
  198. >
  199. <el-table-column label="药品名称" align="center">
  200. <template slot-scope="scope">
  201. {{scope.row.drug_name}}
  202. </template>
  203. </el-table-column>
  204. <el-table-column label="药品类型" align="center">
  205. <template slot-scope="scope">
  206. {{getDrugType(scope.row.drug_type)}}
  207. </template>
  208. </el-table-column>
  209. <el-table-column label="规格&单位" align="center">
  210. <template slot-scope="scope">
  211. {{scope.row.dose}}&nbsp;{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
  212. </template>
  213. </el-table-column>
  214. <el-table-column label="国家编码" align="center">
  215. <template slot-scope="scope">
  216. {{scope.row.medical_insurance_number}}
  217. </template>
  218. </el-table-column>
  219. <el-table-column label="仓库名称" align="center">
  220. <template slot-scope="scope">
  221. {{getHouseName(scope.row.storehouse_id)}}
  222. </template>
  223. </el-table-column>
  224. <el-table-column label="出库数量" align="center">
  225. <template slot-scope="scope">
  226. <span> {{getTotalCountOne(scope.row.drug_id,scope.row.min_number,scope.row.max_unit,scope.row.min_unit)}}</span>
  227. </template>
  228. </el-table-column>
  229. <el-table-column label="出库对象" align="center" v-if="is_sys == 0">
  230. <template slot-scope="scope">
  231. <span>{{getXuserName(scope.row.admin_user_id)}} </span>
  232. </template>
  233. </el-table-column>
  234. <el-table-column label="单价" align="center">
  235. <template slot-scope="scope">
  236. <span v-if="scope.row.price > 0"> {{scope.row.price}}</span>
  237. <span v-if="scope.row.price == 0"> {{scope.row.retail_price}}</span>
  238. </template>
  239. </el-table-column>
  240. <!-- <el-table-column label="拆零零售价" align="center">
  241. <template slot-scope="scope">
  242. {{scope.row.retail_price}}
  243. </template>
  244. </el-table-column> -->
  245. <el-table-column label="总价" align="center">
  246. <template slot-scope="scope">
  247. <span v-if="org_id == 10210 || org_id == 9671">{{(scope.row.count * scope.row.price).toFixed(2)}}</span>
  248. <span v-if="org_id != 10210 && org_id !=9671">
  249. <span v-if="scope.row.price > 0">{{getAllPriceOne(scope.row.drug_id,scope.row.price,scope.row.price,scope.row.max_unit,scope.row.count_unit,scope.row.min_number,scope.row.is_sys).toFixed(2)}}</span>
  250. <span v-if="scope.row.price == 0">{{getAllPriceOne(scope.row.drug_id,scope.row.retail_price,scope.row.min_price,scope.row.max_unit,scope.row.count_unit,scope.row.min_number,scope.row.is_sys).toFixed(2)}}</span>
  251. </span>
  252. </template>
  253. </el-table-column>
  254. <el-table-column label="生产厂家" align="center">
  255. <template slot-scope="scope">
  256. {{getManufacturerName(scope.row.manufacturer)}}
  257. </template>
  258. </el-table-column>
  259. <el-table-column label="生产日期" align="center">
  260. <template slot-scope="scope">
  261. {{getTime(scope.row.product_date)}}
  262. </template>
  263. </el-table-column>
  264. <el-table-column label="有效日期" align="center">
  265. <template slot-scope="scope">
  266. {{getTime(scope.row.expiry_date)}}
  267. </template>
  268. </el-table-column>
  269. <el-table-column label="经销商" align="center">
  270. <template slot-scope="scope">
  271. {{getDealerName(scope.row.dealer)}}
  272. </template>
  273. </el-table-column>
  274. <el-table-column label="批准文号" align="center">
  275. <template slot-scope="scope">
  276. <span v-if="scope.row.number!=''">{{scope.row.number}}</span>
  277. <span v-if="scope.row.number == '0'"></span>
  278. </template>
  279. </el-table-column>
  280. <el-table-column label="备注" align="center">
  281. <template slot-scope="scope">
  282. {{scope.row.remark}}
  283. </template>
  284. </el-table-column>
  285. <el-table-column label="操作" align="center">
  286. <template slot-scope="scope">
  287. <span style="color: #589ff8" @click="toDetail(scope.row)">使用明细</span>
  288. </template>
  289. </el-table-column>
  290. </el-table>
  291. </div>
  292. </div>
  293. <el-dialog
  294. title="提示"
  295. :visible.sync="drugDialogVisible"
  296. width="90%">
  297. <span>
  298. <el-table :data="userList" :class="signAndWeighBoxPatients" style="width: 50%"
  299. border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
  300. >
  301. <el-table-column min-width="35" align="center">
  302. <template slot="header" slot-scope="scope">
  303. <span>序号</span>
  304. </template>
  305. <template slot-scope="scope">
  306. {{scope.$index+1}}
  307. </template>
  308. </el-table-column>
  309. <el-table-column min-width="35" align="center">
  310. <template slot="header" slot-scope="scope">
  311. <span>使用人</span>
  312. </template>
  313. <template slot-scope="scope">
  314. {{scope.row.user.name}}
  315. </template>
  316. </el-table-column>
  317. <el-table-column min-width="35" align="center">
  318. <template slot="header" slot-scope="scope">
  319. <span>使用数量</span>
  320. </template>
  321. <template slot-scope="scope">
  322. <span >{{scope.row.count}}{{scope.row.count_unit}}</span>
  323. </template>
  324. </el-table-column>
  325. <el-table-column min-width="35" align="center">
  326. <template slot="header" slot-scope="scope">
  327. <span>使用时间</span>
  328. </template>
  329. <template slot-scope="scope">
  330. <span>{{scope.row.ctime | parseTime('{y}-{m}-{d} {h}:{i}')}} </span>
  331. </template>
  332. </el-table-column>
  333. </el-table>
  334. </span>
  335. <span slot="footer" class="dialog-footer">
  336. <el-button @click="drugDialogVisible = false">取 消</el-button>
  337. <el-button type="primary" @click="drugDialogVisible = false">确 定</el-button>
  338. </span>
  339. </el-dialog>
  340. <el-dialog
  341. title="提示"
  342. :visible.sync="drugDialogVisibleTwo"
  343. width="90%">
  344. <span>
  345. <el-table :data="userListOne" :class="signAndWeighBoxPatients" style="width: 50%"
  346. border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
  347. >
  348. <el-table-column min-width="35" align="center">
  349. <template slot="header" slot-scope="scope">
  350. <span>序号</span>
  351. </template>
  352. <template slot-scope="scope">
  353. {{scope.$index+1}}
  354. </template>
  355. </el-table-column>
  356. <el-table-column min-width="35" align="center">
  357. <template slot="header" slot-scope="scope">
  358. <span>使用人</span>
  359. </template>
  360. <template slot-scope="scope">
  361. <span>系统</span>
  362. </template>
  363. </el-table-column>
  364. <el-table-column min-width="35" align="center">
  365. <template slot="header" slot-scope="scope">
  366. <span>使用数量</span>
  367. </template>
  368. <template slot-scope="scope">
  369. {{scope.row.count}}{{scope.row.count_unit}}
  370. </template>
  371. </el-table-column>
  372. <el-table-column min-width="35" align="center">
  373. <template slot="header" slot-scope="scope">
  374. <span>使用时间</span>
  375. </template>
  376. <template slot-scope="scope">
  377. <span>{{scope.row.ctime | parseTime('{y}-{m}-{d} {h}:{i}')}} </span>
  378. </template>
  379. </el-table-column>
  380. </el-table>
  381. </span>
  382. <span slot="footer" class="dialog-footer">
  383. <el-button @click="drugDialogVisibleTwo = false">取 消</el-button>
  384. <el-button type="primary" @click="drugDialogVisibleTwo = false">确 定</el-button>
  385. </span>
  386. </el-dialog>
  387. </div>
  388. </template>
  389. <script>
  390. import { uParseTime } from "@/utils/tools";
  391. import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
  392. import {
  393. deleteDrugWarehouseOut,
  394. GetAllConfig,
  395. getDrugWarehouseOutList,
  396. getDrugWarehouseOutUser,
  397. getDrugAutoMaticList,
  398. getSinleOrderDetail,
  399. getAutoDrugDetail,
  400. getDrugCountList,
  401. getExportOutOrderDrugList
  402. } from "@/api/drug/drug_stock";
  403. import BreadCrumb from "../../components/bread-crumb";
  404. import { getInitializtion } from '@/api/stock'
  405. export default {
  406. name: "salesReturnOrder",
  407. components: { BreadCrumb },
  408. created() {
  409. this.org_id = this.$store.getters.xt_user.org.id
  410. var nowDate = new Date();
  411. var nowYear = nowDate.getFullYear();
  412. var nowMonth = nowDate.getMonth() + 1;
  413. var nowDay = nowDate.getDate();
  414. this.end_time =
  415. nowYear +
  416. "-" +
  417. (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
  418. "-" +
  419. (nowDay < 10 ? "0" + nowDay : nowDay);
  420. nowDate.setMonth(nowDate.getMonth() - 1);
  421. nowYear = nowDate.getFullYear();
  422. nowMonth = nowDate.getMonth() + 1;
  423. nowDay = nowDate.getDate();
  424. this.start_time =
  425. nowYear +
  426. "-" +
  427. (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
  428. "-" +
  429. (nowDay < 10 ? "0" + nowDay : nowDay);
  430. this.GetWarehouseOut();
  431. this.fetchAllAdminUsers();
  432. this.getDrugCountList()
  433. this.getInitializtion()
  434. },
  435. data() {
  436. return {
  437. searchKey: "",
  438. crumbs: [
  439. { path: false, name: "库存管理" },
  440. { path: false, name: "出库单" }
  441. ],
  442. page: 1,
  443. limit: 5,
  444. checked: false,
  445. total: 0,
  446. pageTotal: 0,
  447. pageSelect: 0,
  448. adminUserOptions: [],
  449. multipleSelection: [],
  450. signAndWeighBoxPatients: "sign-and-weigh-box-patients",
  451. start_time: "",
  452. warehouseOutDate: [],
  453. end_time: "",
  454. goodType: [],
  455. goodInfo: [],
  456. manufacturer: [],
  457. selectedTableData: [],
  458. dealer: [],
  459. type: 1,
  460. dialogVisible:false,
  461. dialogVisibleTwo:false,
  462. warehousingOutInfo: {
  463. loading: false,
  464. warehousingOutData: [],
  465. info: {}
  466. },
  467. userList:[],
  468. list:[],
  469. drugConfig:{},
  470. drugList:[],
  471. tableList:[],
  472. drugTypeList:[],
  473. tableShow:false,
  474. manufacturerList:[],
  475. drugDialogVisible:false,
  476. drugDialogVisibleTwo:false,
  477. order_id:0,
  478. dealerList:[],
  479. countList:[],
  480. outCountList:[],
  481. autoCountList:[],
  482. keyword:"",
  483. drug_type:0,
  484. minCount:[],
  485. drugOutList:[],
  486. outList:[],
  487. userListOne:[],
  488. exportList:[],
  489. batchNumberList:[],
  490. drugFlowList:[],
  491. houseList:[],
  492. storehouse_id:0,
  493. is_sys:0,
  494. org_id:0,
  495. way_type:0,
  496. wayList:[
  497. { id:0,name:"全部"},
  498. { id:1,name:"手动出库"},
  499. { id:2,name:"自动出库"},
  500. { id:3,name:"调拨出库"}
  501. ]
  502. };
  503. },
  504. methods: {
  505. search: function() {
  506. const Params = {
  507. page: this.page,
  508. limit: this.limit,
  509. start_time: this.start_time,
  510. end_time: this.end_time,
  511. type: this.type,
  512. keywords: this.searchKey,
  513. storehouse_id:this.storehouse_id,
  514. way_type:this.way_type,
  515. };
  516. this.warehouseOutDate = [];
  517. getDrugWarehouseOutList(Params).then(response => {
  518. if (response.data.state == 0) {
  519. this.$message.error(response.data.msg);
  520. return false;
  521. } else {
  522. this.total = response.data.data.total;
  523. for (let i = 0; i < response.data.data.list.length; i++) {
  524. this.warehouseOutDate.push(response.data.data.list[i]);
  525. }
  526. this.houseList = response.data.data.houseList
  527. }
  528. });
  529. },
  530. AddNewOrder: function() {
  531. this.$router.push({
  532. name: "drugStockOutOrderAdd",
  533. query: { type: this.type }
  534. });
  535. },
  536. GetWarehouseOut: function() {
  537. const Params = {
  538. page: this.page,
  539. limit: this.limit,
  540. start_time: this.start_time,
  541. end_time: this.end_time,
  542. type: this.type,
  543. keywords: this.searchKey,
  544. storehouse_id:this.storehouse_id,
  545. way_type:this.way_type,
  546. };
  547. this.warehouseOutDate = [];
  548. getDrugWarehouseOutList(Params).then(response => {
  549. if (response.data.state == 0) {
  550. this.$message.error(response.data.msg);
  551. return false;
  552. } else {
  553. this.total = response.data.data.total;
  554. for (let i = 0; i < response.data.data.list.length; i++) {
  555. this.warehouseOutDate.push(response.data.data.list[i]);
  556. }
  557. var obj = {id:0,storehouse_name:"全部"}
  558. this.houseList = []
  559. this.houseList.push(obj)
  560. for(let i=0;i<response.data.data.houseList.length;i++){
  561. this.houseList.push(response.data.data.houseList[i])
  562. }
  563. }
  564. });
  565. },
  566. getXuserName(id) {
  567. if (id <= 0) {
  568. return "";
  569. }
  570. var name = "";
  571. if (
  572. this.adminUserOptions == null ||
  573. typeof this.adminUserOptions.length === "undefined"
  574. ) {
  575. return name;
  576. }
  577. var leng = this.adminUserOptions.length;
  578. if (leng == 0) {
  579. return name;
  580. }
  581. for (let index = 0; index < leng; index++) {
  582. if (this.adminUserOptions[index].id == id) {
  583. name = this.adminUserOptions[index].name;
  584. break;
  585. }
  586. }
  587. return name;
  588. },
  589. fetchAllAdminUsers() {
  590. fetchAllAdminUsers().then(response => {
  591. if (response.data.state == 1) {
  592. this.adminUserOptions = response.data.data.users;
  593. var alen = this.adminUserOptions.length;
  594. for (let index = 0; index < alen; index++) {
  595. if (this.adminUserOptions[index].user_type == 2) {
  596. // this.doctorOptions.push(this.adminUserOptions[index]);
  597. }
  598. }
  599. }
  600. });
  601. },
  602. handleSelectionChange: function(val) {
  603. this.multipleSelection = val;
  604. },
  605. handleSizeChange(val) {
  606. this.limit = val;
  607. this.GetWarehouseOut();
  608. },
  609. handleCurrentChange(val) {
  610. this.page = val;
  611. this.GetWarehouseOut();
  612. },
  613. startTimeChange(val) {
  614. var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
  615. if (time > 0) {
  616. this.$message.error("结束时间不能小于开始时间");
  617. this.start_time = "";
  618. } else {
  619. this.GetWarehouseOut();
  620. }
  621. },
  622. endTimeChange(val) {
  623. var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
  624. if (time < 0) {
  625. this.$message.error("结束时间不能小于开始时间");
  626. this.end_time = "";
  627. } else {
  628. this.GetWarehouseOut();
  629. }
  630. },
  631. getTimestamp(time) {
  632. // 把时间日期转成时间戳
  633. return new Date(time).getTime() / 1000;
  634. },
  635. calculate: function(val) {
  636. return Math.round(parseFloat(val) * 100) / 100;
  637. },
  638. GetConfigInfo: function() {
  639. GetAllConfig().then(response => {
  640. if (response.data.state == 0) {
  641. this.$message.error(response.data.msg);
  642. return false;
  643. } else {
  644. this.manufacturer = response.data.data.manufacturer;
  645. this.dealer = response.data.data.dealer;
  646. }
  647. });
  648. },
  649. handleEdit: function(index, row) {
  650. this.$router.push({path:"/drug/out/drugstockoutorderedit?id="+row.id+"&type="+this.type+"&is_sys="+row.is_sys+"&supply_cancel_out_id="+row.supply_cancel_out_id})
  651. },
  652. handleSearch(val){
  653. this.is_sys = val.is_sys
  654. this.getInitializtion()
  655. this.getSinleOrderDetail(val.id,val.warehouse_out_time,val.is_sys)
  656. this.list = []
  657. },
  658. handleDelete: function(index, row) {
  659. if(row.is_sys == 12){
  660. this.$message.error("调拨出库数据不能删除!")
  661. return
  662. }
  663. if(row.supply_cancel_out_id >0){
  664. this.$message.error("采购出库数据不能删除!")
  665. return
  666. }
  667. const ids = [];
  668. ids.push(row.id);
  669. const idStr = ids.join(",");
  670. const params = {
  671. ids: idStr
  672. };
  673. this.$confirm("确认删除出库单记录?", "删除出库单记录", {
  674. confirmButtonText: "确定",
  675. cancelButtonText: "取消",
  676. type: "warning"
  677. })
  678. .then(() => {
  679. deleteDrugWarehouseOut(params).then(response => {
  680. if (response.data.state == 0) {
  681. this.$message.error(response.data.msg);
  682. return false;
  683. } else {
  684. this.$notify({
  685. title: "成功",
  686. message: "删除成功",
  687. type: "success",
  688. duration: 2000
  689. });
  690. for (let i = 0; i < ids.length; i++) {
  691. for (let y = 0; y < this.warehouseOutDate.length; y++) {
  692. if (ids[i] == this.warehouseOutDate[y].id) {
  693. this.warehouseOutDate.splice(y, 1);
  694. }
  695. }
  696. }
  697. }
  698. });
  699. })
  700. .catch(() => {});
  701. },
  702. changeAllSelected: function(val) {
  703. if (val) {
  704. this.$refs.multipleTable.toggleAllSelection();
  705. } else {
  706. this.$refs.multipleTable.clearSelection();
  707. }
  708. },
  709. select(selection) {
  710. var ids= []
  711. for(let i=0;i<selection.length;i++){
  712. ids.push(selection[i].id)
  713. }
  714. this.order_id = ids.join(",")
  715. this.selectedTableData = selection;
  716. this.getExportOutOrderDrugList()
  717. },
  718. batchDelete() {
  719. console.log("232322323",this.selectedTableData)
  720. if (this.selectedTableData.length <= 0) {
  721. this.$message.error("请选择要删除的记录");
  722. return;
  723. }
  724. const ids = [];
  725. const idsOne = []
  726. for (let i = 0; i < this.selectedTableData.length; i++) {
  727. if(this.selectedTableData[i].is_sys == 1){
  728. this.$message.error("自动出库数据不能删除!")
  729. return false
  730. }
  731. if(this.selectedTableData[i].is_sys == 12){
  732. this.$message.error("调拨出库数据不能删除!")
  733. return false
  734. }
  735. if(this.selectedTableData[i].is_sys == 0){
  736. ids.push(this.selectedTableData[i].id);
  737. idsOne.push(this.selectedTableData[i].supply_cancel_out_id)
  738. }
  739. }
  740. if(idsOne.length > 0){
  741. this.$message.error("采购出库数据不能删除!")
  742. return
  743. }
  744. const idStr = ids.join(",");
  745. const params = {
  746. ids: idStr
  747. };
  748. this.$confirm("确认删除出库单记录?", "删除出库单记录", {
  749. confirmButtonText: "确定",
  750. cancelButtonText: "取消",
  751. type: "warning"
  752. }).then(() => {
  753. deleteDrugWarehouseOut(params).then(response => {
  754. if (response.data.state == 0) {
  755. this.$message.error(response.data.msg);
  756. return false;
  757. } else {
  758. this.$notify({
  759. title: "成功",
  760. message: "删除成功",
  761. type: "success",
  762. duration: 2000
  763. });
  764. for (let i = 0; i < ids.length; i++) {
  765. for (let y = 0; y < this.warehouseOutDate.length; y++) {
  766. if (ids[i] == this.warehouseOutDate[y].id) {
  767. this.warehouseOutDate.splice(y, 1);
  768. }
  769. }
  770. }
  771. }
  772. });
  773. })
  774. .catch(() => {});
  775. },
  776. jump(id){
  777. this.GetOrderDetailTwo(id)
  778. this.userList=[]
  779. this.dialogVisibleTwo = true
  780. },
  781. GetOrderDetailTwo(order_id) {
  782. const params = {
  783. 'id': order_id
  784. }
  785. getDrugWarehouseOutUser(params).then(response => {
  786. if (response.data.state == 0) {
  787. this.$message.error(response.data.msg)
  788. return false
  789. } else {
  790. this.userList=[]
  791. var total = 0
  792. for (let i = 0; i < response.data.data.list.length; i++) {
  793. var obj = response.data.data.list[i]
  794. obj['is_total'] = 0
  795. this.userList.push(obj)
  796. total = total + response.data.data.list[i].count
  797. }
  798. this.userList.push({
  799. is_total: 1,
  800. total: total,
  801. })
  802. }
  803. })
  804. },
  805. merge({ row, column, rowIndex, columnIndex }) {
  806. if (columnIndex === 0) {
  807. const _row = this.tempArr[rowIndex]
  808. const _col = _row > 0 ? 1 : 0
  809. return {
  810. rowspan: _row,
  811. colspan: _col
  812. }
  813. }
  814. },
  815. handleSpanTempArr(){
  816. this.tempArr = []
  817. for (let i = 0; i < this.warehousingOutInfo.warehousingOutData.length; i++) {
  818. if (i === 0) {
  819. this.tempArr.push(1)
  820. this.pos = 0
  821. } else {
  822. // 判断当前元素与上一个元素是否相同
  823. if (this.warehousingOutInfo.warehousingOutData[i].drug_id === this.warehousingOutInfo.warehousingOutData[i - 1].drug_id) {
  824. this.tempArr[this.pos] += 1
  825. this.tempArr.push(0)
  826. } else {
  827. this.tempArr.push(1)
  828. this.pos = i
  829. }
  830. }
  831. }
  832. let sameRowArr = [], sIdx = 0
  833. this.warehousingOutInfo.warehousingOutData.forEach((item, index) => {
  834. item.index = index
  835. if (index === 0) {
  836. sameRowArr.push([index])
  837. } else {
  838. if (item.drug_id === this.warehousingOutInfo.warehousingOutData[index - 1].drug_id) {
  839. sameRowArr[sIdx].push(index)
  840. } else {
  841. sIdx = sIdx + 1
  842. sameRowArr.push([index])
  843. }
  844. }
  845. })
  846. this.sameRowArr = sameRowArr
  847. },
  848. getDrugAutoMaticList(id,recordTime,warehouse_out_order_number){
  849. var params = {
  850. warehous_out_id:id,
  851. record_time:recordTime,
  852. warehouse_out_order_number:warehouse_out_order_number,
  853. }
  854. getDrugAutoMaticList(params).then(response=>{
  855. if(response.data.state ==1){
  856. var list = response.data.data.list
  857. this.list = list
  858. var drugConfig = response.data.data.drugConfig
  859. this.drugConfig = drugConfig
  860. var drugList = response.data.data.drugList
  861. this.drugList = drugList
  862. var manulist = response.data.data.manufacturerList
  863. this.manufacturerList = manulist
  864. }
  865. })
  866. },
  867. getDrugCount(id){
  868. var count = 0
  869. for(let i=0;i<this.list.length;i++){
  870. if(this.list[i].drug_id == id){
  871. count = this.list[i].Total
  872. }
  873. }
  874. return count
  875. },
  876. getRetailPrice(id){
  877. var price = 0
  878. for(let i=0;i<this.drugList.length;i++){
  879. if(id == this.drugList[i].id){
  880. price = this.drugList[i].retail_price
  881. }
  882. }
  883. return price
  884. },
  885. getTime(val) {
  886. if(val < 0){
  887. return ""
  888. }
  889. if(val == ""){
  890. return ""
  891. }else {
  892. return uParseTime(val, '{y}-{m}-{d}')
  893. }
  894. },
  895. getInitializtion(){
  896. getInitializtion().then(response=>{
  897. if(response.data.state ==1){
  898. var drugTypeList = response.data.data.drugTypeList
  899. this.drugTypeList = drugTypeList
  900. }
  901. })
  902. },
  903. getDrugType(id){
  904. var name = ""
  905. for(let i=0;i<this.drugTypeList.length;i++){
  906. if(id == this.drugTypeList[i].value){
  907. name = this.drugTypeList[i].name
  908. }
  909. }
  910. return name
  911. },
  912. getManufacturerName(id){
  913. var name = ""
  914. for(let i=0;i<this.manufacturerList.length;i++){
  915. if(id == this.manufacturerList[i].id){
  916. name = this.manufacturerList[i].manufacturer_name
  917. }
  918. }
  919. return name
  920. },
  921. getDealerName(id){
  922. var name = ""
  923. for(let i=0;i<this.dealerList.length;i++){
  924. if(id == this.dealerList[i].id){
  925. name = this.dealerList[i].dealer_name
  926. }
  927. }
  928. return name
  929. },
  930. getSinleOrderDetail(id,start_time,is_sys){
  931. var params = {
  932. id:id,
  933. start_time:start_time,
  934. }
  935. getSinleOrderDetail(params).then(response=>{
  936. if(response.data.state == 1){
  937. this.tableShow = true
  938. this.tableList = []
  939. var list = response.data.data.list
  940. console.log("lisrt233232323232233223",list)
  941. this.manufacturerList = response.data.data.manufacturerList
  942. this.dealerList = response.data.data.dealerList
  943. var drugFlowList = response.data.data.drugFlowList
  944. if (is_sys == 1){
  945. if(drugFlowList.length >0){
  946. for(let i=0;i<drugFlowList.length;i++){
  947. if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.max_unit){
  948. drugFlowList[i].count = drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number
  949. }
  950. if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.min_unit){
  951. drugFlowList[i].count = drugFlowList[i].count
  952. }
  953. }
  954. }
  955. this.drugFlowList = drugFlowList
  956. }
  957. if(is_sys == 0 || is_sys == 12){
  958. var flowlist = response.data.data.flowlist
  959. console.log("flowlist233232232323233223",flowlist)
  960. this.drugFlowList = []
  961. for(let i=0;i<flowlist.length;i++){
  962. if(flowlist[i].count_unit == flowlist[i].max_unit){
  963. flowlist[i].count = flowlist[i].count * flowlist[i].min_number
  964. flowlist[i].count_unit = flowlist[i].min_unit
  965. }
  966. if(flowlist[i].count_unit == flowlist[i].min_unit){
  967. flowlist[i].count = flowlist[i].count
  968. }
  969. }
  970. this.drugFlowList = flowlist
  971. console.log("this.drugFlowList32323232322323323232322323我的",flowlist)
  972. }
  973. for(let i=0;i<list.length;i++){
  974. if(list[i].batch_number == "0" || list[i].batch_number == 0){
  975. list[i].batch_number = ""
  976. }
  977. if(list[i].number == "0" || list[i].number == 0){
  978. list[i].number = ""
  979. }
  980. }
  981. this.tableList = list
  982. console.log("单价23323232323232232332232323233223",this.tableList)
  983. }
  984. })
  985. },
  986. toDetail(val){
  987. this.userList = []
  988. this.userListOne = []
  989. var params = {
  990. warehouse_out_id:val.warehouse_out_id,
  991. drug_id:val.drug_id,
  992. record_time:val.sys_record_time,
  993. }
  994. // console.log("使用明细",params)
  995. getAutoDrugDetail(params).then(response=>{
  996. if(response.data.state == 1){
  997. this.userList = response.data.data.list
  998. console.log("自动出库数据",this.userList)
  999. if(val.is_sys == 1){
  1000. this.drugDialogVisible = true
  1001. }
  1002. if(val.is_sys == 0 || val.is_sys == 12){
  1003. this.drugDialogVisibleTwo = true
  1004. }
  1005. var userListOne = response.data.data.outList
  1006. // console.log("手动出库2232332",userListOne)
  1007. this.userListOne = userListOne
  1008. var batchNumber = response.data.data.batchNumber
  1009. // console.log("出库详情",batchNumber)
  1010. this.batchNumberList = batchNumber
  1011. }
  1012. })
  1013. },
  1014. toPrint(){
  1015. if(this.order_id == 0){
  1016. this.$message.error("请选择出库单")
  1017. }else{
  1018. this.$router.push({path:"/stock/drugStockOutOrderDetailPrint?id="+this.order_id})
  1019. }
  1020. },
  1021. getDrugCountList(){
  1022. var params = {
  1023. keyword: this.keywords,
  1024. start_time:this.start_time,
  1025. end_time:this.end_time,
  1026. }
  1027. getDrugCountList(params).then(response=>{
  1028. if(response.data.state == 1){
  1029. var countlist = response.data.data.countList
  1030. // console.log("入库数据",countlist)
  1031. this.countList = countlist
  1032. var outcountlist = response.data.data.outCountList
  1033. // console.log("出库数据",outcountlist)
  1034. this.outCountList = outcountlist
  1035. var aucountlist = response.data.data.auCountList
  1036. // console.log("自动数据",aucountlist)
  1037. this.autoCountList = aucountlist
  1038. var minCount = response.data.data.minCount
  1039. // console.log("minCount",minCount)
  1040. this.minCount = minCount
  1041. var info = response.data.data.info
  1042. for(let i=0;i<info.length;i++){
  1043. if(info[i].count_unit == info[i].max_unit){
  1044. info[i].count = info[i].count * info[i].min_number
  1045. }
  1046. }
  1047. // console.log("info2222222",info)
  1048. this.drugOutList = info
  1049. }
  1050. })
  1051. },
  1052. getCount(drug_id,min_number,max_unit,min_unit){
  1053. var count= 0
  1054. var str = ""
  1055. var min_str = ""
  1056. for(let i=0;i<this.drugOutList.length;i++){
  1057. if(drug_id == this.drugOutList[i].drug_id){
  1058. count += parseInt(this.drugOutList[i].count)
  1059. }
  1060. }
  1061. if(parseInt(count/min_number)!=0){
  1062. str = parseInt(count/min_number)+ max_unit
  1063. }
  1064. if((count%min_number)!=0){
  1065. min_str = count%min_number + min_unit
  1066. }
  1067. return str + min_str
  1068. },
  1069. getTotalCount(drug_id,min_number,max_unit,min_unit){
  1070. var str = ""
  1071. var min_str = ""
  1072. var arr = []
  1073. var total = 0
  1074. for(let i=0;i<this.outList.length;i++){
  1075. if(this.outList[i].drug_id == drug_id){
  1076. total += this.outList[i].count
  1077. }
  1078. }
  1079. if (total >=min_number){
  1080. if(parseInt(total/min_number)!=0){
  1081. str = parseInt(total/min_number)+ max_unit
  1082. }
  1083. if((total%min_number)!=0){
  1084. min_str = total%min_number + min_unit
  1085. }
  1086. }
  1087. if (total < min_number){
  1088. str = ""
  1089. min_str = total + min_unit
  1090. }
  1091. return str + min_str
  1092. },
  1093. getTotalCountOne(id,min_number,max_unit,min_unit){
  1094. var arr = []
  1095. for(let i=0;i<this.drugFlowList.length;i++){
  1096. if(id == this.drugFlowList[i].drug_id){
  1097. arr.push(this.drugFlowList[i])
  1098. }
  1099. }
  1100. var str = ""
  1101. var min_str = ""
  1102. var total = 0
  1103. if(arr.length > 0){
  1104. for(let i=0;i<arr.length;i++){
  1105. total +=arr[i].count
  1106. }
  1107. if(parseInt(total/min_number)!=0){
  1108. str = parseInt(total/min_number)+ max_unit
  1109. }
  1110. if(total%min_number !=0){
  1111. min_str = total%min_number + min_unit
  1112. }
  1113. }
  1114. return str + min_str
  1115. },
  1116. getAllPrice(drug_id,price,min_price){
  1117. var strprice = 0
  1118. var minstrprice = 0
  1119. var str = ""
  1120. var min_str = ""
  1121. var total_price = 0
  1122. for(let i=0;i<this.outList.length;i++){
  1123. if(this.outList[i].drug_id == drug_id){
  1124. if(parseInt(this.outList[i].count/this.outList[i].min_number)!=0){
  1125. str = parseInt(this.outList[i].count/this.outList[i].min_number)
  1126. }
  1127. if((this.outList[i].count%this.outList[i].min_number)!=0){
  1128. min_str = this.outList[i].count%this.outList[i].min_number
  1129. }
  1130. }
  1131. }
  1132. strprice = str * price
  1133. minstrprice = min_str * min_price
  1134. total_price = strprice + minstrprice
  1135. return total_price
  1136. },
  1137. getDrugBatchNumber(drugid,count){
  1138. console.log("drug_id2323",drugid)
  1139. console.log("count",count)
  1140. console.log("hhhhhhhhhhh",this.batchNumberList)
  1141. var arr = []
  1142. for(let i=0;i<this.batchNumberList.length;i++){
  1143. if(drugid == this.batchNumberList[i].drug_id && count == this.batchNumberList[i].count){
  1144. arr.push(this.batchNumberList[i].batch_number)
  1145. }
  1146. }
  1147. return arr.join(",")
  1148. },
  1149. getExportOutOrderDrugList(){
  1150. var params = {
  1151. order_id:this.order_id
  1152. }
  1153. getExportOutOrderDrugList(params).then(response=>{
  1154. if(response.data.state == 1){
  1155. var list = response.data.data.list
  1156. console.log("list22222",list)
  1157. this.exportList = list
  1158. this.manufacturerList = response.data.data.manufacturerList
  1159. this.dealerList = response.data.data.dealerList
  1160. }
  1161. })
  1162. },
  1163. toExport(){
  1164. if(this.order_id == ""){
  1165. this.$message.error("请勾选出库单")
  1166. return
  1167. }
  1168. console.log("hh2323232322323",this.exportList)
  1169. for(let i=0;i<this.exportList.length;i++){
  1170. if(this.exportList[i].dealer == 0){
  1171. this.exportList[i].dealer = ""
  1172. }
  1173. if(this.exportList[i].manufacturer == 0){
  1174. this.exportList[i].manufacturer = ""
  1175. }
  1176. this.exportList[i].unit = this.exportList[i].dose + this.exportList[i].dose_unit + "*" + this.exportList[i].min_number + this.exportList[i].min_unit + "/"+this.exportList[i].max_unit
  1177. this.exportList[i].total_price = (this.exportList[i].count * this.exportList[i].price).toFixed(2)
  1178. this.exportList[i].expiry_date = this.getTime(this.exportList[i].expire_date)
  1179. this.exportList[i].product_date = this.getTime(this.exportList[i].product_date)
  1180. for(let j=0;j<this.manufacturerList.length;j++){
  1181. if(this.exportList[i].manufacturer == this.manufacturerList[j].id){
  1182. this.exportList[i].manufacturer = this.manufacturerList[j].manufacturer_name
  1183. }
  1184. }
  1185. for(let z=0;z<this.dealerList.length;z++){
  1186. if(this.exportList[i].dealer == this.dealerList[z].id){
  1187. this.exportList[i].dealer = this.dealerList[z].dealer_name
  1188. }
  1189. }
  1190. }
  1191. import('@/vendor/Export2Excel').then(excel => {
  1192. for(let i=0;i<this.exportList.length;i++){
  1193. for(let j=0;j<this.drugTypeList.length;j++){
  1194. if(this.exportList[i].drug_type == this.drugTypeList[j].value){
  1195. this.exportList[i].drug_type = this.drugTypeList[j].name
  1196. }
  1197. }
  1198. }
  1199. const tHeader = ['药品名称','药品类型','规格&单位', '批号','出库数量','单价','拆零零售价','总价','生产厂家','生产日期','有效日期','经销商','批准文号','备注']
  1200. const filterVal = ['drug_name','drug_type','unit','batch_number', 'count','price','retail_price','total_price','manufacturer','product_date','expiry_date','dealer','number','remark']
  1201. // console.log("table",this.exportList)
  1202. const data = this.formatJson(filterVal, this.exportList)
  1203. excel.export_json_to_excel({
  1204. header: tHeader,
  1205. data,
  1206. filename: '药品出库单详情'
  1207. })
  1208. this.downloadLoading = false
  1209. })
  1210. },
  1211. formatJson(filterVal, jsonData) {
  1212. return jsonData.map(v => filterVal.map(j => v[j]));
  1213. },
  1214. getAllPriceOne(drug_id,price,min_price,max_unit,count_unit,min_number,is_sys){
  1215. var total = 0
  1216. var all_price = 0
  1217. for(let i=0;i<this.drugFlowList.length;i++){
  1218. if(drug_id == this.drugFlowList[i].drug_id){
  1219. total += this.drugFlowList[i].count
  1220. }
  1221. }
  1222. if(max_unit == count_unit && is_sys!=0 && is_sys!=12){
  1223. total = total * min_number
  1224. }
  1225. all_price = (total/min_number) * price
  1226. return all_price
  1227. },
  1228. getHouseName(id){
  1229. var storehouse_name = ""
  1230. for(let i=0;i<this.houseList.length;i++){
  1231. if(id == this.houseList[i].id){
  1232. storehouse_name = this.houseList[i].storehouse_name
  1233. }
  1234. }
  1235. return storehouse_name
  1236. },
  1237. changeStoreHouse(){
  1238. this.GetWarehouseOut()
  1239. },
  1240. changeWay(){
  1241. this.GetWarehouseOut()
  1242. }
  1243. }
  1244. };
  1245. </script>
  1246. <style rel="stylesheet/scss" lang="scss">
  1247. .app-container {
  1248. // margin: 20px;
  1249. font-size: 15px;
  1250. .filter-container {
  1251. padding-bottom: 5px;
  1252. }
  1253. .search-component {
  1254. width: 500px;
  1255. .searchBox {
  1256. width: 300px;
  1257. height: 36px;
  1258. line-height: 36px;
  1259. padding-left: 15px;
  1260. border: 1px #dcdfe6 solid;
  1261. border-right: none;
  1262. outline: none;
  1263. float: left;
  1264. border-radius: 6px 0 0 6px;
  1265. font-size: 14px;
  1266. color: #333;
  1267. background: #fff;
  1268. box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  1269. }
  1270. .searchBtn {
  1271. background-color: #409eff;
  1272. color: #fff;
  1273. font-size: 15px;
  1274. text-align: center;
  1275. height: 36px;
  1276. line-height: 36px;
  1277. float: left;
  1278. outline: none;
  1279. width: 70px;
  1280. border: none;
  1281. border-radius: 0 6px 6px 0;
  1282. font-family: "Microsoft Yahei";
  1283. cursor: pointer;
  1284. }
  1285. }
  1286. .amount {
  1287. font-weight: normal;
  1288. padding: 10px 0 0 0;
  1289. color: #606266;
  1290. font-size: 14px;
  1291. span {
  1292. color: #ef2525;
  1293. font-family: "Arial";
  1294. padding: 0 2px;
  1295. }
  1296. }
  1297. }
  1298. .el-table td,
  1299. .el-table th.is-leaf,
  1300. .el-table--border,
  1301. .el-table--group {
  1302. border-color: #d0d3da;
  1303. }
  1304. .el-table--border::after,
  1305. .el-table--group::after,
  1306. .el-table::before {
  1307. background-color: #d0d3da;
  1308. }
  1309. </style>