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

stockOutOrder.vue 65KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114
  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. >
  14. </div>
  15. <div class="app-container">
  16. <div class="cell clearfix">
  17. <label class="title"><span class="name">仓库</span> :</label>
  18. <el-select
  19. size="small"
  20. v-model="storehouse_id"
  21. filterable
  22. placeholder="请选择仓库"
  23. style="width: 200px"
  24. @change="changeStoreHouse"
  25. >
  26. <el-option
  27. v-for="(option, index) in houselist"
  28. :key="index"
  29. :label="option.storehouse_name"
  30. :value="option.id"
  31. >
  32. </el-option>
  33. </el-select>
  34. <el-input
  35. size="small"
  36. style="width: 200px"
  37. class="filter-item"
  38. v-model.trim="searchKey"
  39. placeholder="单据编码/制单人/耗材名称"
  40. />
  41. <el-button
  42. size="small"
  43. class="filter-item"
  44. type="primary"
  45. icon="el-icon-search"
  46. @click="search"
  47. >搜索</el-button
  48. >
  49. <div style="margin-left: 10px">
  50. <label class="title"><span class="name">出库时间</span> : </label>
  51. <el-date-picker
  52. size="small"
  53. v-model="start_time"
  54. prefix-icon="el-icon-date"
  55. :editable="false"
  56. style="width: 196px"
  57. type="date"
  58. placeholder="选择日期时间"
  59. align="right"
  60. format="yyyy-MM-dd"
  61. value-format="yyyy-MM-dd"
  62. @change="startTimeChange"
  63. ></el-date-picker>
  64. <span class="cellLine"> - </span>
  65. <el-date-picker
  66. size="small"
  67. v-model="end_time"
  68. prefix-icon="el-icon-date"
  69. :editable="false"
  70. style="width: 196px"
  71. type="date"
  72. placeholder="选择日期时间"
  73. align="right"
  74. format="yyyy-MM-dd"
  75. value-format="yyyy-MM-dd"
  76. @change="endTimeChange"
  77. ></el-date-picker>
  78. </div>
  79. <!-- <div style="margin-left: 10px">
  80. <span>审核状态:</span>
  81. <el-select
  82. v-model="check_id"
  83. style="width: 140px; margin-right: 10px"
  84. placeholder="请选择"
  85. @change="changeTypeName"
  86. >
  87. <el-option
  88. v-for="item in checkList"
  89. :key="item.id"
  90. :label="item.name"
  91. :value="item.id"
  92. >
  93. </el-option>
  94. </el-select>
  95. </div> -->
  96. </div>
  97. <div class="cell clearfix">
  98. <el-checkbox
  99. style="width: 70px"
  100. v-model="checked"
  101. @change="changeAllSelected"
  102. >全选</el-checkbox
  103. >
  104. <el-button size="small" icon="el-icon-delete" @click="batchDelete"
  105. >删除</el-button
  106. >
  107. <el-button size="small" type="primary" @click="toPrint">打印</el-button>
  108. <el-button size="small" type="primary" @click="toExport"
  109. >导出</el-button
  110. >
  111. <span>&nbsp;&nbsp;</span>
  112. <!-- <el-button size="small" type="primary" @click="toExport">导出</el-button> -->
  113. <!-- <span>&nbsp;&nbsp;</span> -->
  114. <label class="title"><span class="name">出库方式</span> :</label>
  115. <el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
  116. <el-option
  117. v-for="(option, index) in wayList"
  118. :key="index"
  119. :label="option.name"
  120. :value="option.id">
  121. </el-option>
  122. </el-select>
  123. <div style="margin-left: 10px">
  124. <span>审核状态:</span>
  125. <el-select
  126. v-model="check_type"
  127. style="width: 140px; margin-right: 10px"
  128. placeholder="请选择"
  129. @change="changeCheckList"
  130. >
  131. <el-option
  132. v-for="item in checkList"
  133. :key="item.id"
  134. :label="item.name"
  135. :value="item.id"
  136. >
  137. </el-option>
  138. </el-select>
  139. </div>
  140. </div>
  141. <el-table
  142. :data="warehouseOutDate"
  143. :class="signAndWeighBoxPatients"
  144. style="width: 100%"
  145. border
  146. highlight-current-row
  147. ref="multipleTable"
  148. @selection-change="select"
  149. :row-style="{ color: '#303133' }"
  150. :header-cell-style="{
  151. backgroundColor: 'rgb(245, 247, 250)',
  152. color: '#606266',
  153. }"
  154. @current-change="handleSearch"
  155. >
  156. <el-table-column type="selection" width="55" align="center">
  157. </el-table-column>
  158. <el-table-column label="单据日期" align="center">
  159. <template slot-scope="scope">
  160. {{ scope.row.warehouse_out_time | parseTime("{y}-{m}-{d}") }}
  161. </template>
  162. </el-table-column>
  163. <el-table-column label="单据编号" align="center">
  164. <template slot-scope="scope">
  165. {{ scope.row.warehouse_out_order_number }}
  166. </template>
  167. </el-table-column>
  168. <el-table-column label="仓库名称" align="center">
  169. <template slot-scope="scope">
  170. {{ getHouseName(scope.row.storehouse_id) }}
  171. </template>
  172. </el-table-column>
  173. <el-table-column label="制单人" align="center">
  174. <template slot-scope="scope">
  175. {{ getXuserName(scope.row.creater) }}
  176. </template>
  177. </el-table-column>
  178. <el-table-column label="出库方式" align="center">
  179. <template slot-scope="scope">
  180. <span v-if="scope.row.is_sys == 1">自动出库</span>
  181. <span v-if="scope.row.is_sys == 0">手动出库</span>
  182. <span v-if="scope.row.is_sys == 12">调拨出库</span>
  183. </template>
  184. </el-table-column>
  185. <el-table-column label="审核状态" align="center">
  186. <template slot-scope="scope">
  187. <span v-if="scope.row.is_check == 1">已审核</span>
  188. <span v-if="scope.row.is_check == 2">未审核</span>
  189. </template>
  190. </el-table-column>
  191. <el-table-column label="操作" align="center" width="300px">
  192. <template slot-scope="scope">
  193. <el-tooltip
  194. class="item"
  195. effect="dark"
  196. content="编辑"
  197. placement="top"
  198. >
  199. <el-button
  200. size="mini"
  201. type="primary"
  202. icon="el-icon-edit-outline"
  203. @click="handleEdit(scope.$index, scope.row)"
  204. >
  205. </el-button>
  206. </el-tooltip>
  207. <el-tooltip
  208. class="item"
  209. effect="dark"
  210. content="删除"
  211. placement="top"
  212. >
  213. <el-button
  214. size="mini"
  215. type="danger"
  216. :disabled="scope.row.is_sys == 1"
  217. icon="el-icon-delete"
  218. @click="handleDelete(scope.$index, scope.row)"
  219. >
  220. </el-button>
  221. </el-tooltip>
  222. </template>
  223. </el-table-column>
  224. </el-table>
  225. <el-pagination
  226. @size-change="handleSizeChange"
  227. @current-change="handleCurrentChange"
  228. :page-sizes="[5, 10, 50, 100]"
  229. :page-size="5"
  230. background
  231. style="margin-top: 20px; text-align: right"
  232. layout="total, sizes, prev, pager, next, jumper"
  233. :total="total"
  234. >
  235. </el-pagination>
  236. <!-- 详情 -->
  237. <div v-show="tableShow" style="margin-top: 10px">
  238. <el-table
  239. :data="tableList"
  240. :class="signAndWeighBoxPatients"
  241. style="width: 100%"
  242. border
  243. highlight-current-row
  244. ref="multipleTableOne"
  245. @selection-change="select"
  246. :row-style="{ color: '#303133' }"
  247. :header-cell-style="{
  248. backgroundColor: 'rgb(245, 247, 250)',
  249. color: '#606266',
  250. }"
  251. >
  252. <el-table-column label="耗材名称" align="center">
  253. <template slot-scope="scope">
  254. {{ scope.row.good_name }}
  255. </template>
  256. </el-table-column>
  257. <el-table-column label="规格&单位" align="center">
  258. <template slot-scope="scope">
  259. {{ scope.row.specification_name }} / {{ scope.row.packing_unit }}
  260. </template>
  261. </el-table-column>
  262. <el-table-column label="国家编码" align="center">
  263. <template slot-scope="scope">
  264. {{ scope.row.social_security_directory_code }}
  265. </template>
  266. </el-table-column>
  267. <el-table-column label="仓库名称" align="center">
  268. <template slot-scope="scope">
  269. {{ getHouseName(scope.row.storehouse_id) }}
  270. </template>
  271. </el-table-column>
  272. <!-- <el-table-column label="剩余库存" align="center" v-if="is_sys== 0">
  273. <template slot-scope="scope">
  274. <span>{{scope.row.stock_count}}</span>
  275. </template>
  276. </el-table-column> -->
  277. <el-table-column label="出库数量" align="center">
  278. <template slot-scope="scope">
  279. <span v-if="scope.row.is_sys == 0"
  280. >{{ scope.row.count }}{{ scope.row.packing_unit }}</span
  281. >
  282. <span v-if="scope.row.is_sys == 1"
  283. >{{ getOutStockCount(scope.row.good_id)
  284. }}{{ scope.row.packing_unit }}</span
  285. >
  286. </template>
  287. </el-table-column>
  288. <el-table-column label="出库对象" align="center" v-if="is_sys == 0">
  289. <template slot-scope="scope">
  290. {{ getXuserName(scope.row.admin_user_id) }}
  291. </template>
  292. </el-table-column>
  293. <!-- <el-table-column label="进货价" align="center" v-if="is_sys== 0">
  294. <template slot-scope="scope">
  295. <span>{{scope.row.buy_price}}</span>
  296. </template>
  297. </el-table-column> -->
  298. <el-table-column label="出货价" align="center">
  299. <template slot-scope="scope">
  300. <span v-if="scope.row.price > 0">{{ scope.row.price }}</span>
  301. <span v-if="scope.row.price == 0">{{
  302. scope.row.packing_price
  303. }}</span>
  304. </template>
  305. </el-table-column>
  306. <el-table-column label="总价" align="center">
  307. <template slot-scope="scope">
  308. <span v-if="scope.row.is_sys == 0">
  309. <span v-if="scope.row.price > 0">
  310. {{ (scope.row.count * scope.row.price).toFixed(2) }}</span
  311. >
  312. <span v-if="scope.row.price == 0">
  313. {{
  314. (scope.row.count * scope.row.packing_price).toFixed(2)
  315. }}</span
  316. >
  317. </span>
  318. <span v-if="scope.row.is_sys == 1">
  319. <span v-if="scope.row.price > 0">
  320. {{
  321. (
  322. getOutStockCount(scope.row.good_id) * scope.row.price
  323. ).toFixed(2)
  324. }}</span
  325. >
  326. <span v-if="scope.row.price == 0">
  327. {{
  328. (
  329. getOutStockCount(scope.row.good_id) *
  330. scope.row.packing_price
  331. ).toFixed(2)
  332. }}</span
  333. >
  334. </span>
  335. </template>
  336. </el-table-column>
  337. <el-table-column label="生产厂家" align="center">
  338. <template slot-scope="scope">
  339. {{ getManufactuerName(scope.row.manufacturer) }}
  340. </template>
  341. </el-table-column>
  342. <el-table-column label="经销商" align="center">
  343. <template slot-scope="scope">
  344. {{ getDealerName(scope.row.dealer) }}
  345. </template>
  346. </el-table-column>
  347. <el-table-column label="生产日期" align="center">
  348. <template slot-scope="scope">
  349. {{ getTime(scope.row.product_date, "{y}-{m}-{d}") }}
  350. </template>
  351. </el-table-column>
  352. <el-table-column label="有效期" align="center">
  353. <template slot-scope="scope">
  354. {{ getTime(scope.row.expiry_date, "{y}-{m}-{d}") }}
  355. </template>
  356. </el-table-column>
  357. <!-- <el-table-column label="批准文号" align="center">
  358. <template slot-scope="scope">
  359. {{ scope.row.license_number}}
  360. </template>
  361. </el-table-column> -->
  362. <el-table-column label="注册编码" align="center">
  363. <template slot-scope="scope">
  364. {{ scope.row.register_number }}
  365. </template>
  366. </el-table-column>
  367. <el-table-column label="备注" align="center">
  368. <template slot-scope="scope">
  369. {{ scope.row.remark }}
  370. </template>
  371. </el-table-column>
  372. <el-table-column label="操作" align="center">
  373. <template slot-scope="scope">
  374. <span
  375. style="color: #589ff8"
  376. @click="GetOrderDetailById(scope.row)"
  377. >使用明细</span
  378. >
  379. </template>
  380. </el-table-column>
  381. </el-table>
  382. </div>
  383. </div>
  384. <!-- 新增弹窗 -->
  385. <el-dialog title="提示" :visible.sync="dialogVisible" width="80%">
  386. <span>
  387. <div class="filter-container">
  388. <span style="font-size: 18px; color: #606266">出库单详情</span>
  389. <el-row style="float: right">
  390. <span style="color: #606266">{{
  391. warehousingOutInfo.info.warehouse_out_order_number
  392. }}</span>
  393. </el-row>
  394. </div>
  395. <div class="cell clearfix">
  396. <span style="width: 300px; color: #606266"
  397. >单据日期:
  398. {{
  399. warehousingOutInfo.info.warehouse_out_time
  400. | parseTime("{y}-{m}-{d}")
  401. }}
  402. </span>
  403. <span style="width: 300px; color: #606266"
  404. >厂商
  405. {{ getManufactuerName(warehousingOutInfo.info.manufacturer) }}</span
  406. >
  407. <span style="width: 300px; color: #606266"
  408. >经销商 {{ getDealerName(warehousingOutInfo.info.dealer) }}</span
  409. >
  410. </div>
  411. <div class="filter-container" style="margin-top: 10px">
  412. <el-button
  413. size="small"
  414. icon="el-icon-edit"
  415. @click="editRecord(warehousingOutInfo.info.id)"
  416. v-if="warehousingOutInfo.info.is_sys != 1"
  417. >编辑</el-button
  418. >
  419. <el-button
  420. size="small"
  421. icon="el-icon-delete"
  422. @click="deleteRecord"
  423. v-if="warehousingOutInfo.info.is_sys != 1"
  424. >删除</el-button
  425. >
  426. </div>
  427. <el-row :gutter="12" style="margin-top: 10px">
  428. <el-table
  429. :data="warehousingOutInfo.warehousingOutData"
  430. :class="signAndWeighBoxPatients"
  431. style="width: 100%"
  432. border
  433. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  434. >
  435. <el-table-column min-width="35" align="center">
  436. <template slot="header" slot-scope="scope">
  437. <span>耗材类型</span>
  438. </template>
  439. <template slot-scope="scope">
  440. <span v-if="scope.row.good_type_id != 0">{{
  441. getTypeName(scope.row.good_type_id)
  442. }}</span>
  443. </template>
  444. </el-table-column>
  445. <el-table-column min-width="35" align="center">
  446. <template slot="header" slot-scope="scope">
  447. <span>耗材名称</span>
  448. </template>
  449. <template slot-scope="scope">
  450. <span v-if="scope.row.good_id != 0">{{
  451. getTypeNameOne(scope.row.good_id)
  452. }}</span>
  453. </template>
  454. </el-table-column>
  455. <el-table-column min-width="35" align="center">
  456. <template slot="header" slot-scope="scope">
  457. <span>规格型号</span>
  458. </template>
  459. <template slot-scope="scope">
  460. <span v-if="scope.row.good_id != 0">{{
  461. getSpecificationName(scope.row.good_id)
  462. }}</span>
  463. </template>
  464. </el-table-column>
  465. <el-table-column min-width="23" align="center">
  466. <template slot="header" slot-scope="scope">
  467. <span>出货价</span>
  468. </template>
  469. <template slot-scope="scope">
  470. <span>{{ scope.row.price }}</span>
  471. </template>
  472. </el-table-column>
  473. <el-table-column min-width="23" align="center">
  474. <template slot="header" slot-scope="scope">
  475. <span>出库数量</span>
  476. </template>
  477. <template slot-scope="scope">
  478. <span v-if="scope.row.is_sys == 0">{{ scope.row.count }}</span>
  479. <span v-if="scope.row.is_sys == 1">{{
  480. getOutStockCount(scope.row.good_id)
  481. }}</span>
  482. </template>
  483. </el-table-column>
  484. <el-table-column label="总价" min-width="20" align="center">
  485. <template slot-scope="scope">
  486. {{ calculate(scope.row.price * scope.row.count) }}
  487. </template>
  488. </el-table-column>
  489. <el-table-column label="备注" min-width="20" align="center">
  490. <template slot-scope="scope">
  491. <el-popover placement="top-start" width="250" trigger="hover">
  492. <div>{{ scope.row.remark }}</div>
  493. <span slot="reference" v-if="scope.row.remark.length > 20">{{
  494. scope.row.remark.substr(0, 20) + "..."
  495. }}</span>
  496. <span slot="reference" v-else>{{ scope.row.remark }}</span>
  497. </el-popover>
  498. </template>
  499. </el-table-column>
  500. <el-table-column label="" align="center">
  501. <template slot-scope="scope" v-if="scope.row.is_sys == 1">
  502. <div
  503. style="color: #589ff8"
  504. @click="GetOrderDetailThree(scope.row.id)"
  505. >
  506. 使用明细
  507. </div>
  508. </template>
  509. </el-table-column>
  510. </el-table>
  511. </el-row>
  512. </span>
  513. <span slot="footer" class="dialog-footer">
  514. <el-button @click="dialogVisible = false">取 消</el-button>
  515. <el-button type="primary" @click="dialogVisible = false"
  516. >确 定</el-button
  517. >
  518. </span>
  519. </el-dialog>
  520. <!-- 使用明细查询 -->
  521. <el-dialog
  522. title="出库单详情"
  523. :visible.sync="editdialogVisibleTwo"
  524. width="80%"
  525. >
  526. <span>
  527. <div class="filter-container">
  528. <span style="font-size: 18px; color: #606266">商品使用明细</span>
  529. </div>
  530. <el-row :gutter="12" style="margin-top: 10px">
  531. <el-table
  532. :data="infoList"
  533. :class="signAndWeighBoxPatients"
  534. style="width: 80%"
  535. border
  536. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  537. >
  538. <el-table-column min-width="35" align="center">
  539. <template slot="header" slot-scope="scope">
  540. <span>序号</span>
  541. </template>
  542. <template slot-scope="scope">
  543. {{ scope.$index + 1 }}
  544. </template>
  545. </el-table-column>
  546. <el-table-column min-width="35" align="center">
  547. <template slot="header" slot-scope="scope">
  548. <span>使用人</span>
  549. </template>
  550. <template slot-scope="scope"> 系统 </template>
  551. </el-table-column>
  552. <el-table-column min-width="35" align="center">
  553. <template slot="header" slot-scope="scope">
  554. <span>使用数量</span>
  555. </template>
  556. <template slot-scope="scope">
  557. {{ scope.row.count }}
  558. </template>
  559. </el-table-column>
  560. <el-table-column min-width="35" align="center">
  561. <template slot="header" slot-scope="scope">
  562. <span>使用时间</span>
  563. </template>
  564. <template slot-scope="scope">
  565. <span
  566. >{{ scope.row.ctime | parseTime("{y}-{m}-{d} {h}:{i}") }}
  567. </span>
  568. </template>
  569. </el-table-column>
  570. </el-table>
  571. </el-row>
  572. </span>
  573. <span slot="footer" class="dialog-footer">
  574. <el-button @click="editdialogVisibleTwo = false">取 消</el-button>
  575. <el-button type="primary" @click="editdialogVisibleTwo = false"
  576. >确 定</el-button
  577. >
  578. </span>
  579. </el-dialog>
  580. <!-- 编辑 -->
  581. <el-dialog title="编辑出库单" :visible.sync="editDialogVisible" width="80%">
  582. <span>
  583. <div style="margin-bottom: 10px">
  584. <label class="title"><span class="name">出库时间</span> : </label>
  585. <el-date-picker
  586. size="small"
  587. v-model="warehouse_out_time"
  588. prefix-icon="el-icon-date"
  589. :editable="false"
  590. style="width: 196px"
  591. type="date"
  592. placeholder="选择日期时间"
  593. align="right"
  594. format="yyyy-MM-dd"
  595. value-format="yyyy-MM-dd"
  596. ></el-date-picker>
  597. <label class="title" style="margin-left: 10px"
  598. ><span class="name">经 销 商</span> :
  599. </label>
  600. <el-select
  601. size="small"
  602. v-model="form.dealer"
  603. clearable
  604. placeholder="请选择经销商"
  605. @change="changeDealer"
  606. >
  607. <el-option
  608. v-for="(option, index) in dealer"
  609. :key="index"
  610. :label="option.dealer_name"
  611. :value="option.id"
  612. >
  613. </el-option>
  614. </el-select>
  615. <label class="title" style="margin-left: 10px"
  616. ><span class="name">厂商</span> :
  617. </label>
  618. <el-select
  619. size="small"
  620. v-model="form.manufacturer"
  621. clearable
  622. placeholder="请选择厂商"
  623. @change="changeManufacturer"
  624. >
  625. <el-option
  626. v-for="(option, index) in manufacturer"
  627. :key="index"
  628. :label="option.manufacturer_name"
  629. :value="option.id"
  630. >
  631. </el-option>
  632. </el-select>
  633. </div>
  634. <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
  635. <el-table
  636. :data="recordInfo.recordData"
  637. :class="signAndWeighBoxPatients"
  638. style="width: 100%"
  639. border
  640. max-height="450"
  641. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  642. >
  643. <el-table-column min-width="35" align="center">
  644. <template slot="header" slot-scope="scope">
  645. <span>耗材类型<span style="color: red">*</span></span>
  646. </template>
  647. <template slot-scope="scope">
  648. <el-form-item style="padding-top: 15px">
  649. <el-input
  650. placeholder="请输入商品类型"
  651. v-model="scope.row.good_type_id"
  652. :value="typeName(scope.row.good_type_id)"
  653. @focus="showDialog(scope.$index, scope.row)"
  654. ></el-input>
  655. </el-form-item>
  656. </template>
  657. </el-table-column>
  658. <el-table-column min-width="35" align="center">
  659. <template slot="header" slot-scope="scope">
  660. <span>规格名称<span style="color: red">*</span></span>
  661. </template>
  662. <template slot-scope="scope">
  663. <el-form-item style="padding-top: 15px">
  664. <el-input
  665. placeholder="请输入规格名称"
  666. v-model="scope.row.good_id"
  667. :value="specificationName(scope.row.good_id)"
  668. @focus="showDialog(scope.$index, scope.row)"
  669. ></el-input>
  670. </el-form-item>
  671. </template>
  672. </el-table-column>
  673. <el-table-column min-width="23" align="center">
  674. <template slot="header" slot-scope="scope">
  675. <span>单价<span style="color: red">*</span></span>
  676. </template>
  677. <template slot-scope="scope">
  678. <el-form-item
  679. :prop="'recordData.' + scope.$index + '.price'"
  680. :rules="tableRules.price"
  681. style="padding-top: 17px"
  682. >
  683. <el-input type="number" v-model="scope.row.price"></el-input>
  684. </el-form-item>
  685. </template>
  686. </el-table-column>
  687. <el-table-column min-width="23" align="center">
  688. <template slot="header" slot-scope="scope">
  689. <span>出库数量<span style="color: red">*</span></span>
  690. </template>
  691. <template slot-scope="scope">
  692. <el-form-item
  693. :prop="'recordData.' + scope.$index + '.count'"
  694. :rules="tableRules.count"
  695. style="padding-top: 17px"
  696. >
  697. <el-input type="number" v-model="scope.row.count"></el-input>
  698. </el-form-item>
  699. </template>
  700. </el-table-column>
  701. <el-table-column label="总价" min-width="20" align="center">
  702. <template slot-scope="scope">
  703. {{ calculate(scope.row.price * scope.row.count) }}
  704. </template>
  705. </el-table-column>
  706. <el-table-column label="备注" min-width="20" align="center">
  707. <template slot-scope="scope">
  708. <el-input v-model="scope.row.remark"></el-input>
  709. </template>
  710. </el-table-column>
  711. <el-table-column label="操作" align="center" min-width="30">
  712. <template slot-scope="scope">
  713. <el-tooltip
  714. class="item"
  715. effect="dark"
  716. content="新增"
  717. placement="top"
  718. >
  719. <el-button
  720. size="mini"
  721. type="primary"
  722. icon="el-icon-circle-plus-outline"
  723. @click="handleEditOne(scope.$index, scope.row)"
  724. >
  725. </el-button>
  726. </el-tooltip>
  727. <el-tooltip
  728. class="item"
  729. effect="dark"
  730. content="删除"
  731. placement="top"
  732. >
  733. <el-button
  734. size="mini"
  735. type="danger"
  736. icon="el-icon-delete"
  737. @click="handleDeleteOne(scope.$index, scope.row)"
  738. >
  739. </el-button>
  740. </el-tooltip>
  741. </template>
  742. </el-table-column>
  743. </el-table>
  744. </el-form>
  745. </span>
  746. <span slot="footer" class="dialog-footer">
  747. <el-button @click="editDialogVisible = false">取 消</el-button>
  748. <el-button type="primary" @click="submit">确 定</el-button>
  749. </span>
  750. </el-dialog>
  751. <el-dialog
  752. title="出库明细"
  753. :visible.sync="editdialogVisibleThree"
  754. width="70%"
  755. >
  756. <span>
  757. <div class="app-container">
  758. <div class="filter-container">
  759. <span style="font-size: 18px; color: #606266">商品使用明细</span>
  760. </div>
  761. <el-row :gutter="12" style="margin-top: 10px">
  762. <el-table
  763. :data="userList"
  764. :class="signAndWeighBoxPatients"
  765. style="width: 50%"
  766. border
  767. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  768. >
  769. <el-table-column min-width="35" align="center">
  770. <template slot="header" slot-scope="scope">
  771. <span>序号</span>
  772. </template>
  773. <template slot-scope="scope">
  774. <span v-if="scope.row.is_total == 0">{{
  775. scope.$index + 1
  776. }}</span>
  777. <span v-if="scope.row.is_total == 1">{{ "合计" }}</span>
  778. </template>
  779. </el-table-column>
  780. <el-table-column min-width="35" align="center">
  781. <template slot="header" slot-scope="scope">
  782. <span>使用人</span>
  783. </template>
  784. <template slot-scope="scope">
  785. <span v-if="scope.row.is_total == 0">{{
  786. scope.row.name
  787. }}</span>
  788. <span v-if="scope.row.is_total == 1"></span>
  789. </template>
  790. </el-table-column>
  791. <el-table-column min-width="35" align="center">
  792. <template slot="header" slot-scope="scope">
  793. <span>使用数量</span>
  794. </template>
  795. <template slot-scope="scope">
  796. <span v-if="scope.row.is_total == 0"
  797. >{{ scope.row.count }}{{ scope.row.packing_unit }}</span
  798. >
  799. <span v-if="scope.row.is_total == 1"
  800. >{{ scope.row.total }}
  801. </span>
  802. </template>
  803. </el-table-column>
  804. <el-table-column min-width="60" align="center">
  805. <template slot="header" slot-scope="scope">
  806. <span>使用时间</span>
  807. </template>
  808. <template slot-scope="scope">
  809. <span
  810. >{{ scope.row.ctime | parseTime("{y}-{m}-{d} {h}:{i}") }}
  811. </span>
  812. </template>
  813. </el-table-column>
  814. </el-table>
  815. </el-row>
  816. </div>
  817. </span>
  818. <span slot="footer" class="dialog-footer">
  819. <el-button @click="editdialogVisibleThree = false">取 消</el-button>
  820. <el-button type="primary" @click="editdialogVisibleThree = false"
  821. >确 定</el-button
  822. >
  823. </span>
  824. </el-dialog>
  825. <stock-in-dialog
  826. ref="dialog"
  827. :propForm="propForm"
  828. :visibility="isVisibility"
  829. v-on:dialog-comfirm="comfirm"
  830. v-on:dialog-cancle="cancle"
  831. >
  832. </stock-in-dialog>
  833. </div>
  834. </div>
  835. </template>
  836. <script>
  837. import { uParseTime } from "@/utils/tools";
  838. import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
  839. import {
  840. deleteWarehouseOut,
  841. GetAllConfig,
  842. getWarehouseOutList,
  843. getWarehouseOutInfo,
  844. getWarehouseOutUser,
  845. GetOutStockTotalCount,
  846. deleteWarehouseOutInfo,
  847. GetAllGoodInfoByID,
  848. editWarehouseoutInfo,
  849. getOrderDetailByOrderId,
  850. getOrderDetailById,
  851. getOutExportList,
  852. } from "@/api/stock";
  853. import BreadCrumb from "../components/bread-crumb";
  854. import StockInDialog from "./Dialog/stockInDialog";
  855. export default {
  856. name: "salesReturnOrder",
  857. components: { StockInDialog, BreadCrumb },
  858. created() {
  859. var nowDate = new Date();
  860. var nowYear = nowDate.getFullYear();
  861. var nowMonth = nowDate.getMonth() + 1;
  862. var nowDay = nowDate.getDate();
  863. this.end_time =
  864. nowYear +
  865. "-" +
  866. (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
  867. "-" +
  868. (nowDay < 10 ? "0" + nowDay : nowDay);
  869. nowDate.setMonth(nowDate.getMonth() - 1);
  870. nowYear = nowDate.getFullYear();
  871. nowMonth = nowDate.getMonth() + 1;
  872. nowDay = nowDate.getDate();
  873. this.start_time =
  874. nowYear +
  875. "-" +
  876. (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
  877. "-" +
  878. (nowDay < 10 ? "0" + nowDay : nowDay);
  879. this.GetConfigInfo();
  880. this.GetWarehouseOut();
  881. this.fetchAllAdminUsers();
  882. },
  883. data() {
  884. var checkGoodId = (rule, value, callback) => {
  885. setTimeout(() => {
  886. if (value == "" || value == 0) {
  887. return callback(new Error("规格名称不能为空"));
  888. }
  889. }, 2000);
  890. };
  891. return {
  892. searchKey: "",
  893. crumbs: [
  894. { path: false, name: "库存管理" },
  895. { path: false, name: "出库单" },
  896. ],
  897. page: 1,
  898. limit: 5,
  899. checked: false,
  900. total: 0,
  901. pageTotal: 0,
  902. pageSelect: 0,
  903. check_id: 0,
  904. adminUserOptions: [],
  905. multipleSelection: [],
  906. signAndWeighBoxPatients: "sign-and-weigh-box-patients",
  907. start_time: "",
  908. warehouseOutDate: [],
  909. end_time: "",
  910. goodType: [],
  911. goodInfo: [],
  912. manufacturer: [],
  913. selectedTableData: [],
  914. dealer: [],
  915. type: 1,
  916. drug_id: 0,
  917. dialogVisible: false,
  918. editdialogVisible: false,
  919. warehousingOutInfo: {
  920. loading: false,
  921. warehousingOutData: [],
  922. info: {},
  923. },
  924. userList: [],
  925. type_name: "",
  926. specification_name: "",
  927. stockCount: [],
  928. editDialogVisible: false,
  929. warehouse_out_time: "",
  930. form: {
  931. manufacturer: 0,
  932. dealer: 0,
  933. },
  934. warehouseInfoList: [],
  935. tableRules: {
  936. price: [{ required: true, message: "单价不能为空", trigger: "blur" }],
  937. warehousing_count: [
  938. { required: true, message: "数量不能为空", trigge: "blur" },
  939. ],
  940. good_id: [{ validator: checkGoodId, trigger: "blur" }],
  941. },
  942. recordInfo: {
  943. recordData: [],
  944. stock_in_code: "",
  945. current_index: "",
  946. },
  947. propForm: {
  948. goods: [],
  949. goodType: [],
  950. goodInfo: [],
  951. goodUnit: [],
  952. title: "入库",
  953. manufacturer: 0,
  954. dealer: 0,
  955. },
  956. isVisibility: false,
  957. good_type_id: "",
  958. tableShow: false,
  959. tableList: [],
  960. dialogVisibleTwo: false,
  961. userList: [],
  962. editdialogVisibleTwo: false,
  963. editdialogVisibleThree: false,
  964. order_id: "",
  965. warehouse_out_time: "",
  966. exportList: [],
  967. is_sys: 0,
  968. infoList: [],
  969. stockFlowList: [],
  970. list: [],
  971. houselist: [],
  972. storehouse_id: 0,
  973. is_sys: 0,
  974. way_type: 0,
  975. wayList: [
  976. { id: 0, name: "全部" },
  977. { id: 1, name: "手动出库" },
  978. { id: 2, name: "自动出库" },
  979. { id: 3, name: "调拨出库" },
  980. ],
  981. check_type:0,
  982. checkList:[
  983. {id:0,name:"全部"},
  984. {id:1,name:"已审核"},
  985. {id:2,name:"未审核"},
  986. ],
  987. check_id: 0,
  988. };
  989. },
  990. methods: {
  991. changeTypeName() {
  992. this.getlist();
  993. },
  994. getlist() {
  995. var params = {
  996. check_id: this.check_id,
  997. start_time: this.start_time,
  998. end_time: this.end_time,
  999. keyword: this.keywords,
  1000. page: this.page,
  1001. limit: this.limit,
  1002. check_type:this.check_type,
  1003. };
  1004. getAllSecondOrderList(params).then((response) => {
  1005. if (response.data.state == 1) {
  1006. var list = response.data.data.list;
  1007. this.tableList = list;
  1008. var total = response.data.data.total;
  1009. this.total = total;
  1010. this.houseList = response.data.data.houseList;
  1011. this.doctorList = response.data.data.doctorList;
  1012. }
  1013. });
  1014. },
  1015. search: function () {
  1016. const Params = {
  1017. page: this.page,
  1018. limit: this.limit,
  1019. start_time: this.start_time,
  1020. end_time: this.end_time,
  1021. type: this.type,
  1022. keywords: this.searchKey,
  1023. storehouse_id: this.storehouse_id,
  1024. way_type: this.way_type,
  1025. check_type:this.check_type,
  1026. };
  1027. this.warehouseOutDate = [];
  1028. getWarehouseOutList(Params).then((response) => {
  1029. if (response.data.state == 0) {
  1030. this.$message.error(response.data.msg);
  1031. return false;
  1032. } else {
  1033. this.total = response.data.data.total;
  1034. for (let i = 0; i < response.data.data.list.length; i++) {
  1035. this.warehouseOutDate.push(response.data.data.list[i]);
  1036. }
  1037. }
  1038. });
  1039. },
  1040. AddNewOrder: function () {
  1041. this.$router.push({
  1042. name: "stockOutOrderAdd",
  1043. query: { type: this.type },
  1044. });
  1045. },
  1046. GetWarehouseOut: function () {
  1047. const Params = {
  1048. page: this.page,
  1049. limit: this.limit,
  1050. start_time: this.start_time,
  1051. end_time: this.end_time,
  1052. type: this.type,
  1053. storehouse_id: this.storehouse_id,
  1054. way_type: this.way_type,
  1055. check_type:this.check_type,
  1056. };
  1057. this.warehouseOutDate = [];
  1058. getWarehouseOutList(Params).then((response) => {
  1059. if (response.data.state == 0) {
  1060. this.$message.error(response.data.msg);
  1061. return false;
  1062. } else {
  1063. this.total = response.data.data.total;
  1064. for (let i = 0; i < response.data.data.list.length; i++) {
  1065. this.warehouseOutDate.push(response.data.data.list[i]);
  1066. }
  1067. var obj = { id: 0, storehouse_name: "全部" };
  1068. this.houselist = [];
  1069. this.houselist.push(obj);
  1070. for (let i = 0; i < response.data.data.houselist.length; i++) {
  1071. this.houselist.push(response.data.data.houselist[i]);
  1072. }
  1073. }
  1074. });
  1075. },
  1076. getXuserName(id) {
  1077. if (id <= 0) {
  1078. return "";
  1079. }
  1080. var name = "";
  1081. if (
  1082. this.adminUserOptions == null ||
  1083. typeof this.adminUserOptions.length === "undefined"
  1084. ) {
  1085. return name;
  1086. }
  1087. var leng = this.adminUserOptions.length;
  1088. if (leng == 0) {
  1089. return name;
  1090. }
  1091. for (let index = 0; index < leng; index++) {
  1092. if (this.adminUserOptions[index].id == id) {
  1093. name = this.adminUserOptions[index].name;
  1094. break;
  1095. }
  1096. }
  1097. return name;
  1098. },
  1099. fetchAllAdminUsers() {
  1100. fetchAllAdminUsers().then((response) => {
  1101. if (response.data.state == 1) {
  1102. this.adminUserOptions = response.data.data.users;
  1103. var alen = this.adminUserOptions.length;
  1104. for (let index = 0; index < alen; index++) {
  1105. if (this.adminUserOptions[index].user_type == 2) {
  1106. // this.doctorOptions.push(this.adminUserOptions[index]);
  1107. }
  1108. }
  1109. }
  1110. });
  1111. },
  1112. handleSelectionChange: function (val) {
  1113. this.multipleSelection = val;
  1114. },
  1115. handleSizeChange(val) {
  1116. this.limit = val;
  1117. this.GetWarehouseOut();
  1118. },
  1119. handleCurrentChange(val) {
  1120. this.page = val;
  1121. this.GetWarehouseOut();
  1122. },
  1123. startTimeChange(val) {
  1124. var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
  1125. if (time > 0) {
  1126. this.$message.error("结束时间不能小于开始时间");
  1127. this.start_time = "";
  1128. } else {
  1129. this.GetWarehouseOut();
  1130. this.getlist();
  1131. }
  1132. },
  1133. endTimeChange(val) {
  1134. var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
  1135. if (time < 0) {
  1136. this.$message.error("结束时间不能小于开始时间");
  1137. this.end_time = "";
  1138. } else {
  1139. this.GetWarehouseOut();
  1140. this.getlist();
  1141. }
  1142. },
  1143. getTimestamp(time) {
  1144. // 把时间日期转成时间戳
  1145. return new Date(time).getTime() / 1000;
  1146. },
  1147. calculate: function (val) {
  1148. return Math.round(parseFloat(val) * 100) / 100;
  1149. },
  1150. GetConfigInfo: function () {
  1151. GetAllConfig().then((response) => {
  1152. if (response.data.state == 0) {
  1153. this.$message.error(response.data.msg);
  1154. return false;
  1155. } else {
  1156. this.manufacturer = response.data.data.manufacturer;
  1157. this.dealer = response.data.data.dealer;
  1158. this.goodInfo = response.data.data.goodInfo;
  1159. this.goodType = response.data.data.goodType;
  1160. this.list = response.data.data.list;
  1161. // this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
  1162. // this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
  1163. this.getlist();
  1164. }
  1165. });
  1166. },
  1167. getManufactuerName: function (manufacturer_id) {
  1168. for (let i = 0; i < this.manufacturer.length; i++) {
  1169. if (this.manufacturer[i].id == manufacturer_id) {
  1170. return this.manufacturer[i].manufacturer_name;
  1171. }
  1172. }
  1173. },
  1174. getDealerName: function (dealer_id) {
  1175. for (let i = 0; i < this.dealer.length; i++) {
  1176. if (this.dealer[i].id == dealer_id) {
  1177. return this.dealer[i].dealer_name;
  1178. }
  1179. }
  1180. },
  1181. handleEdit: function (index, row) {
  1182. this.$router.push({
  1183. path:
  1184. "/stock/stockoutorderedit?id=" +
  1185. row.id +
  1186. "&is_sys=" +
  1187. row.is_sys +
  1188. "&supply_cancel_out_id=" +
  1189. row.supply_cancel_out_id+
  1190. "&is_check="+row.is_check+"&type="+row.type,
  1191. });
  1192. },
  1193. handleDelete: function (index, row) {
  1194. if (row.is_sys == 12) {
  1195. this.$message.error("调拨出库数据不能删除!");
  1196. return false;
  1197. }
  1198. if (row.supply_cancel_out_id > 0) {
  1199. this.$message.error("采购出库数据不能删除!");
  1200. return false;
  1201. }
  1202. if(row.is_check == 1){
  1203. this.$message.error("已审核的单据不能删除!")
  1204. return false
  1205. }
  1206. const ids = [];
  1207. ids.push(row.id);
  1208. const idStr = ids.join(",");
  1209. const params = {
  1210. ids: idStr,
  1211. };
  1212. this.$confirm("确认删除出库单记录?", "删除出库单记录", {
  1213. confirmButtonText: "确定",
  1214. cancelButtonText: "取消",
  1215. type: "warning",
  1216. })
  1217. .then(() => {
  1218. deleteWarehouseOut(params).then((response) => {
  1219. if (response.data.state == 0) {
  1220. this.$message.error(response.data.msg);
  1221. return false;
  1222. } else {
  1223. this.$notify({
  1224. title: "成功",
  1225. message: "删除成功",
  1226. type: "success",
  1227. duration: 2000,
  1228. });
  1229. for (let i = 0; i < ids.length; i++) {
  1230. for (let y = 0; y < this.warehouseOutDate.length; y++) {
  1231. if (ids[i] == this.warehouseOutDate[y].id) {
  1232. this.warehouseOutDate.splice(y, 1);
  1233. }
  1234. }
  1235. }
  1236. }
  1237. });
  1238. })
  1239. .catch(() => {});
  1240. },
  1241. changeAllSelected: function (val) {
  1242. if (val) {
  1243. this.$refs.multipleTable.toggleAllSelection();
  1244. } else {
  1245. this.$refs.multipleTable.clearSelection();
  1246. }
  1247. },
  1248. select(selection) {
  1249. var ids = [];
  1250. for (let i = 0; i < selection.length; i++) {
  1251. ids.push(selection[i].id);
  1252. }
  1253. this.exportList = [];
  1254. this.order_id = ids.join(",");
  1255. this.warehouse_out_time = selection[0].warehouse_out_time;
  1256. this.selectedTableData = selection;
  1257. this.getlist();
  1258. },
  1259. batchDelete() {
  1260. if (this.selectedTableData.length <= 0) {
  1261. this.$message.error("请选择要删除的记录");
  1262. return;
  1263. }
  1264. const ids = [];
  1265. const idOne = [];
  1266. for (let i = 0; i < this.selectedTableData.length; i++) {
  1267. if(this.selectedTableData[i].is_check == 1){
  1268. this.$message.error("已审核单据不能删除!")
  1269. return false
  1270. }
  1271. if (this.selectedTableData[i].is_sys == 1) {
  1272. this.$message.error("自动出库数据不能删除!");
  1273. return false;
  1274. }
  1275. if (this.selectedTableData[i].is_sys == 12) {
  1276. this.$message.error("调拨出库数据不能删除!");
  1277. return false;
  1278. }
  1279. if (this.selectedTableData[i].is_sys == 0) {
  1280. ids.push(this.selectedTableData[i].id);
  1281. if(this.selectedTableData[i].supply_cancel_out_id > 0){
  1282. idOne.push(this.selectedTableData[i].supply_cancel_out_id);
  1283. }
  1284. }
  1285. }
  1286. if (idOne.length > 0) {
  1287. this.$message.error("采购出库数据不能删除!");
  1288. return false;
  1289. }
  1290. const idStr = ids.join(",");
  1291. const params = {
  1292. ids: idStr,
  1293. };
  1294. this.$confirm("确认删除出库单记录?", "删除出库单记录", {
  1295. confirmButtonText: "确定",
  1296. cancelButtonText: "取消",
  1297. type: "warning",
  1298. })
  1299. .then(() => {
  1300. deleteWarehouseOut(params).then((response) => {
  1301. if (response.data.state == 0) {
  1302. this.$message.error(response.data.msg);
  1303. return false;
  1304. } else {
  1305. this.$notify({
  1306. title: "成功",
  1307. message: "删除成功",
  1308. type: "success",
  1309. duration: 2000,
  1310. });
  1311. for (let i = 0; i < ids.length; i++) {
  1312. for (let y = 0; y < this.warehouseOutDate.length; y++) {
  1313. if (ids[i] == this.warehouseOutDate[y].id) {
  1314. this.warehouseOutDate.splice(y, 1);
  1315. }
  1316. }
  1317. }
  1318. }
  1319. });
  1320. })
  1321. .catch(() => {})}
  1322. },
  1323. handleSearch(val) {
  1324. this.is_sys = val.is_sys;
  1325. this.tableList = [];
  1326. this.editdialogVisibleThree = false;
  1327. this.GetOrderDetailOne(val.id);
  1328. this.GetTotalCount(val.warehouse_out_time);
  1329. },
  1330. GetOrderDetailOne(id) {
  1331. const params = {
  1332. id: id,
  1333. };
  1334. getOrderDetailByOrderId(params).then((response) => {
  1335. if (response.data.state == 1) {
  1336. this.tableShow = true;
  1337. var list = response.data.data.list;
  1338. this.tableList = [];
  1339. for (let i = 0; i < list.length; i++) {
  1340. // if(list[i].dealer == 0){
  1341. // list[i].dealer = ""
  1342. // }
  1343. // if(list[i].manufacturer == 0){
  1344. // list[i].manufacturer = ""
  1345. // }
  1346. // list[i].good_name = list[i].info.good_name
  1347. // list[i].specification_name = list[i].info.specification_name
  1348. // list[i].packing_unit = list[i].info.packing_unit
  1349. this.tableList.push(list[i]);
  1350. }
  1351. }
  1352. });
  1353. },
  1354. getTypeName: function (id) {
  1355. let name = "";
  1356. for (let i = 0; i < this.goodType.length; i++) {
  1357. if (this.goodType[i].id == id) {
  1358. name = this.goodType[i].type_name;
  1359. }
  1360. }
  1361. return name;
  1362. },
  1363. getTypeNameOne: function (id) {
  1364. let name = "";
  1365. for (let i = 0; i < this.goodInfo.length; i++) {
  1366. if (this.goodInfo[i].id == id) {
  1367. name = this.goodInfo[i].good_name;
  1368. }
  1369. }
  1370. return name;
  1371. },
  1372. getSpecificationName: function (id) {
  1373. let name = "";
  1374. for (let i = 0; i < this.goodInfo.length; i++) {
  1375. if (this.goodInfo[i].id == id) {
  1376. name = this.goodInfo[i].specification_name;
  1377. }
  1378. }
  1379. return name;
  1380. },
  1381. getManufactuerName: function (manufacturer_id) {
  1382. for (let i = 0; i < this.manufacturer.length; i++) {
  1383. if (this.manufacturer[i].id == manufacturer_id) {
  1384. return this.manufacturer[i].manufacturer_name;
  1385. }
  1386. }
  1387. },
  1388. jump(id) {
  1389. this.userList = [];
  1390. this.GetOrderDetail(id);
  1391. },
  1392. GetOrderDetail: function (order_id) {
  1393. this.userList = [];
  1394. const params = {
  1395. id: order_id,
  1396. };
  1397. getWarehouseOutUser(params).then((response) => {
  1398. if (response.data.state == 0) {
  1399. this.$message.error(response.data.msg);
  1400. return false;
  1401. } else {
  1402. var total = 0;
  1403. var list = response.data.data.list;
  1404. var arrList = this.unique(list);
  1405. for (let i = 0; i < arrList.length; i++) {
  1406. var obj = arrList[i];
  1407. obj["is_total"] = 0;
  1408. this.userList.push(obj);
  1409. total = total + arrList[i].count;
  1410. }
  1411. this.userList.push({
  1412. is_total: 1,
  1413. total: total,
  1414. });
  1415. this.editdialogVisibleThree = true;
  1416. }
  1417. });
  1418. },
  1419. deleteRecord: function () {
  1420. const ids = [];
  1421. ids.push(this.warehousingOutInfo.info.id);
  1422. const idStr = ids.join(",");
  1423. const params = {
  1424. ids: idStr,
  1425. };
  1426. this.$confirm("确认删除出库单?", "删除出库单记录", {
  1427. confirmButtonText: "确定",
  1428. cancelButtonText: "取消",
  1429. type: "warning",
  1430. })
  1431. .then(() => {
  1432. deleteWarehouseOut(params).then((response) => {
  1433. if (response.data.state == 0) {
  1434. this.$message.error(response.data.msg);
  1435. return false;
  1436. } else {
  1437. this.$notify({
  1438. title: "成功",
  1439. message: "删除成功",
  1440. type: "success",
  1441. duration: 2000,
  1442. });
  1443. this.$router.back(-1);
  1444. }
  1445. });
  1446. })
  1447. .catch(() => {});
  1448. },
  1449. GetTotalCount(time) {
  1450. var params = {
  1451. warehouse_out_time: time,
  1452. };
  1453. GetOutStockTotalCount(params).then((response) => {
  1454. if (response.data.state == 1) {
  1455. var stockCount = response.data.data.stockCount;
  1456. this.stockCount = stockCount;
  1457. }
  1458. });
  1459. },
  1460. getOutStockCount(id) {
  1461. var count = 0;
  1462. for (let i = 0; i < this.stockCount.length; i++) {
  1463. if (id == this.stockCount[i].good_id) {
  1464. count = this.stockCount[i].count;
  1465. }
  1466. }
  1467. return count;
  1468. },
  1469. unique(arr) {
  1470. const res = new Map();
  1471. return arr.filter(
  1472. (arr) => !res.has(arr.patient_id) && res.set(arr.patient_id, 1)
  1473. );
  1474. },
  1475. editRecord(id) {
  1476. this.warehouseOut = [];
  1477. this.recordInfo.recordData = [];
  1478. this.GetConfigInfo();
  1479. this.GetOrderDetailTwo(id);
  1480. this.good_type_id = id;
  1481. },
  1482. GetOrderDetailTwo(order_id) {
  1483. const params = {
  1484. id: order_id,
  1485. };
  1486. getWarehouseOutInfo(params).then((response) => {
  1487. if (response.data.state == 0) {
  1488. this.$message.error(response.data.msg);
  1489. return false;
  1490. } else {
  1491. for (let i = 0; i < response.data.data.list.length; i++) {
  1492. response.data.data.list[i].price =
  1493. response.data.data.list[i].price.toString();
  1494. response.data.data.list[i].count =
  1495. response.data.data.list[i].count.toString();
  1496. this.recordInfo.recordData.push(response.data.data.list[i]);
  1497. }
  1498. this.warehouseOut = response.data.data.info;
  1499. this.warehouse_out_time = this.getTime(
  1500. this.warehouseOut.warehouse_out_time,
  1501. "{y}-{m}-{d}"
  1502. );
  1503. // this.form.manufacturer = this.warehouseOut.manufacturer
  1504. // this.form.dealer = this.warehouseOut.dealer
  1505. this.editDialogVisible = true;
  1506. }
  1507. if (this.recordInfo.recordData.length == 0) {
  1508. const tempObj = {};
  1509. tempObj["id"] = 0;
  1510. tempObj["good_type_id"] = 0;
  1511. tempObj["good_id"] = 0;
  1512. tempObj["count"] = "";
  1513. tempObj["price"] = "";
  1514. tempObj["remark"] = "";
  1515. this.recordInfo.recordData.push(tempObj);
  1516. this.editDialogVisible = true;
  1517. }
  1518. });
  1519. },
  1520. getTime(val, temp) {
  1521. if (val != 0) {
  1522. return uParseTime(val, temp);
  1523. } else {
  1524. return "";
  1525. }
  1526. },
  1527. changeManufacturer(val) {
  1528. this.propForm.manufacturer = val;
  1529. },
  1530. changeDealer(val) {
  1531. this.propForm.dealer = val;
  1532. },
  1533. typeName: function (good_type_id) {
  1534. let name = "";
  1535. for (let i = 0; i < this.goodType.length; i++) {
  1536. if (this.goodType[i].id == good_type_id) {
  1537. name = this.goodType[i].type_name;
  1538. }
  1539. }
  1540. return name;
  1541. },
  1542. specificationName: function (good_info_id) {
  1543. let name = "";
  1544. for (let i = 0; i < this.goodInfo.length; i++) {
  1545. if (this.goodInfo[i].id == good_info_id) {
  1546. name = this.goodInfo[i].specification_name;
  1547. }
  1548. }
  1549. return name;
  1550. },
  1551. handleEditOne() {
  1552. const tempObj = {};
  1553. tempObj["id"] = 0;
  1554. tempObj["good_type_id"] = 0;
  1555. tempObj["good_id"] = 0;
  1556. tempObj["count"] = "";
  1557. tempObj["price"] = "";
  1558. tempObj["remark"] = "";
  1559. this.recordInfo.recordData.push(tempObj);
  1560. },
  1561. handleDeleteOne: function (index, row) {
  1562. if (row.id == 0) {
  1563. this.recordInfo.recordData.splice(index, 1);
  1564. } else {
  1565. const params = {
  1566. id: row.id,
  1567. };
  1568. this.$confirm("确认删除该出库耗材信息记录?", "删除出库耗材信息记录", {
  1569. confirmButtonText: "确定",
  1570. cancelButtonText: "取消",
  1571. type: "warning",
  1572. })
  1573. .then(() => {
  1574. deleteWarehouseOutInfo(params).then((response) => {
  1575. if (response.data.state == 0) {
  1576. this.$message.error(response.data.msg);
  1577. return false;
  1578. } else {
  1579. this.$message.success("删除成功");
  1580. this.recordInfo.recordData.splice(index, 1);
  1581. }
  1582. });
  1583. })
  1584. .catch(() => {});
  1585. }
  1586. },
  1587. showDialog(index, row) {
  1588. this.currentIndex = index;
  1589. const loading = this.$loading({
  1590. lock: true,
  1591. text: "Loading",
  1592. spinner: "el-icon-loading",
  1593. background: "rgba(0, 0, 0, 0.7)",
  1594. });
  1595. const params = {
  1596. manufacturer_id: this.form.manufacturer,
  1597. dealer_id: this.form.dealer,
  1598. };
  1599. this.propForm.goods = [];
  1600. GetAllGoodInfoByID(params).then((response) => {
  1601. if (response.data.state == 0) {
  1602. this.$message.error(response.data.msg);
  1603. return false;
  1604. } else {
  1605. if (response.data.data.goodInfo.length <= 0) {
  1606. this.$message.error("该厂商或经销商没有物品信息");
  1607. return;
  1608. }
  1609. this.$refs.dialog.show();
  1610. for (let i = 0; i < response.data.data.goodInfo.length; i++) {
  1611. this.propForm.goodType.push(response.data.data.goodInfo[i].type);
  1612. }
  1613. const obj = {};
  1614. this.propForm.goodType = this.propForm.goodType.reduce(
  1615. (cur, next) => {
  1616. obj[next.id] ? "" : (obj[next.id] = true && cur.push(next));
  1617. return cur;
  1618. },
  1619. []
  1620. ); // 设置cur默认类型为数组,并且初始值为空的数组
  1621. }
  1622. for (let i = 0; i < this.propForm.goodType.length; i++) {
  1623. let goodInfo = [];
  1624. let goodObj = {};
  1625. for (let a = 0; a < response.data.data.goodInfo.length; a++) {
  1626. var respObj = response.data.data.goodInfo[a];
  1627. respObj["isSelected"] = false;
  1628. if (respObj.type.id == this.propForm.goodType[i].id) {
  1629. goodInfo.push(respObj);
  1630. }
  1631. }
  1632. const obj = {};
  1633. goodInfo = goodInfo.reduce((cur, next) => {
  1634. obj[next.id] ? "" : (obj[next.id] = true && cur.push(next));
  1635. return cur;
  1636. }, []); // 设置cur默认类型为数组,并且初始值为空的数组
  1637. this.$set(goodObj, this.propForm.goodType[i].id, goodInfo);
  1638. this.propForm.goods.push(goodObj);
  1639. }
  1640. loading.close();
  1641. });
  1642. },
  1643. comfirm: function (val) {
  1644. this.$refs.dialog.hide();
  1645. this.propForm.goodType = [];
  1646. this.propForm.goods = [];
  1647. if (val.selectedGoodInfo.length > 0) {
  1648. for (let i = val.selectedGoodInfo.length - 1; ; i--) {
  1649. if (i == 0) {
  1650. this.recordInfo.recordData[this.currentIndex].good_type_id =
  1651. val.selectedGoodInfo[i].good_type_id;
  1652. this.recordInfo.recordData[this.currentIndex].good_id =
  1653. val.selectedGoodInfo[i].id;
  1654. this.recordInfo.recordData[this.currentIndex].price =
  1655. val.selectedGoodInfo[i].buy_price.toString();
  1656. } else {
  1657. const tempForm = {};
  1658. tempForm["id"] = 0;
  1659. tempForm["good_type_id"] = val.selectedGoodInfo[i].good_type_id;
  1660. tempForm["good_id"] = val.selectedGoodInfo[i].id;
  1661. tempForm["count"] = "";
  1662. tempForm["price"] = val.selectedGoodInfo[i].buy_price.toString();
  1663. tempForm["remark"] = "";
  1664. this.recordInfo.recordData.splice(
  1665. this.currentIndex + 1,
  1666. 0,
  1667. tempForm
  1668. );
  1669. }
  1670. }
  1671. }
  1672. this.currentIndex = -1;
  1673. },
  1674. cancle: function () {
  1675. this.$refs.dialog.hide();
  1676. this.propForm.goods = [];
  1677. this.propForm.goodType = [];
  1678. },
  1679. submit() {
  1680. this.$refs["tableForm"].validate((valid) => {
  1681. if (valid) {
  1682. const array = this.recordInfo.recordData;
  1683. for (let i = 0; i < array.length; i++) {
  1684. if (array[i].good_type_id == 0) {
  1685. this.$message.error("商品类型不能为空");
  1686. return;
  1687. }
  1688. if (array[i].good_id == 0) {
  1689. this.$message.error("规格名称不能为空");
  1690. return;
  1691. }
  1692. }
  1693. const params = {
  1694. stockOut: this.recordInfo.recordData,
  1695. };
  1696. editWarehouseoutInfo(
  1697. params,
  1698. this.warehouse_out_time,
  1699. this.good_type_id,
  1700. 1,
  1701. this.form.manufacturer,
  1702. this.form.dealer
  1703. ).then((response) => {
  1704. if (response.data.state == 0) {
  1705. this.$message.error(response.data.msg);
  1706. return false;
  1707. } else {
  1708. this.$message.success("保存成功");
  1709. this.editDialogVisible = false;
  1710. this.warehousingOutInfo.info = [];
  1711. this.warehousingOutInfo.warehousingOutData = [];
  1712. this.GetOrderDetailOne(this.good_type_id);
  1713. }
  1714. });
  1715. } else {
  1716. return false;
  1717. }
  1718. });
  1719. },
  1720. GetOrderDetailById(val) {
  1721. this.userList = [];
  1722. var params = {
  1723. id: val.warehouse_out_id,
  1724. good_id: val.good_id,
  1725. record_time: val.sys_record_time,
  1726. };
  1727. getOrderDetailById(params).then((response) => {
  1728. if (response.data.state == 1) {
  1729. var total = 0;
  1730. var list = response.data.data.list;
  1731. var arrList = this.unique(list);
  1732. var info = response.data.data.info;
  1733. this.infoList = info;
  1734. var stockflowlist = response.data.data.stockFlowList;
  1735. this.stockFlowList = stockflowlist;
  1736. for (let i = 0; i < this.stockFlowList.length; i++) {
  1737. var obj = this.stockFlowList[i];
  1738. obj["is_total"] = 0;
  1739. this.userList.push(obj);
  1740. total = total + this.stockFlowList[i].count;
  1741. }
  1742. this.userList.push({
  1743. is_total: 1,
  1744. total: total,
  1745. });
  1746. if (val.is_sys == 1) {
  1747. this.editdialogVisibleThree = true;
  1748. }
  1749. if (val.is_sys == 0) {
  1750. this.editdialogVisibleTwo = true;
  1751. }
  1752. }
  1753. });
  1754. },
  1755. getNumber(id) {
  1756. var str = "";
  1757. var arr = [];
  1758. var ids = [];
  1759. for (let i = 0; i < this.userList.length; i++) {
  1760. if (id == this.userList[i].id) {
  1761. arr.push(...this.userList[i].warehouseOutInfo);
  1762. }
  1763. }
  1764. if (arr.length > 0) {
  1765. for (let i = 0; i < arr.length; i++) {
  1766. ids.push(arr[i].number);
  1767. }
  1768. }
  1769. str = ids.join(",");
  1770. return str;
  1771. },
  1772. toPrint() {
  1773. if (this.order_id == "") {
  1774. this.$message.error("请选择出库单");
  1775. } else {
  1776. this.$router.push({
  1777. path:
  1778. "/stock/out/detail/print?id=" +
  1779. this.order_id +
  1780. "&warehouse_out_time=" +
  1781. this.warehouse_out_time +
  1782. "&keyword=" +
  1783. this.searchKey +
  1784. "&start_time=" +
  1785. this.start_time +
  1786. "&end_time=" +
  1787. this.end_time,
  1788. });
  1789. }
  1790. },
  1791. getlist() {
  1792. var params = {
  1793. id: this.order_id,
  1794. start_time: this.start_time,
  1795. end_time: this.end_time,
  1796. };
  1797. getOutExportList(params).then((response) => {
  1798. if (response.data.state == 1) {
  1799. var list = response.data.data.list;
  1800. var outCount = response.data.data.outCount;
  1801. for (let i = 0; i < list.length; i++) {
  1802. list[i].unit =
  1803. list[i].specification_name + "/" + list[i].packing_unit;
  1804. list[i].total_price = (list[i].total_count * list[i].price).toFixed(
  1805. 2
  1806. );
  1807. list[i].expiry_date = this.getTime(
  1808. list[i].expiry_date,
  1809. "{y}-{m}-{d}"
  1810. );
  1811. list[i].product_date = this.getTime(
  1812. list[i].product_date,
  1813. "{y}-{m}-{d}"
  1814. );
  1815. for (let j = 0; j < this.manufacturer.length; j++) {
  1816. if (list[i].manufacturer == this.manufacturer[j].id) {
  1817. list[i].manufacturer = this.manufacturer[j].manufacturer_name;
  1818. }
  1819. }
  1820. for (let z = 0; z < this.dealer.length; z++) {
  1821. if (list[i].dealer == this.dealer[z].id) {
  1822. list[i].dealer = this.dealer[z].dealer_name;
  1823. }
  1824. }
  1825. for (let a = 0; a < this.goodType.length; a++) {
  1826. if (list[i].good_type_id == this.goodType[a].id) {
  1827. list[i].good_type_id = this.goodType[a].type_name;
  1828. }
  1829. }
  1830. }
  1831. this.exportList = list;
  1832. }
  1833. });
  1834. },
  1835. toExport() {
  1836. if (this.order_id == "") {
  1837. this.$message.error("请勾选出库单");
  1838. return;
  1839. }
  1840. import("@/vendor/Export2Excel").then((excel) => {
  1841. for (let i = 0; i < this.exportList.length; i++) {
  1842. this.exportList[i].total_price =
  1843. this.exportList[i].count * this.exportList[i].price;
  1844. for (let j = 0; j < this.goodType.length; j++) {
  1845. if (this.exportList[i].good_type_id == this.goodType[j].id) {
  1846. this.exportList[i].good_type_id = this.goodType[j].type_name;
  1847. }
  1848. }
  1849. if (this.exportList[i].dealer == 0) {
  1850. this.exportList[i].dealer = "";
  1851. }
  1852. if (this.exportList[i].manufacturer == 0) {
  1853. this.exportList[i].manufacturer = "";
  1854. }
  1855. if (this.exportList[i].good_type_id == 0) {
  1856. this.exportList[i].good_type_id = "";
  1857. }
  1858. }
  1859. const tHeader = [
  1860. "耗材名称",
  1861. "耗材类型",
  1862. "规格&单位",
  1863. "出库数量",
  1864. "出货价",
  1865. "总价",
  1866. "生产厂商",
  1867. "经销商",
  1868. "生产日期",
  1869. "有效期",
  1870. "备注",
  1871. ];
  1872. const filterVal = [
  1873. "good_name",
  1874. "good_type_id",
  1875. "unit",
  1876. "count",
  1877. "price",
  1878. "total_price",
  1879. "manufacturer",
  1880. "dealer",
  1881. "product_date",
  1882. "expiry_date",
  1883. "remark",
  1884. ];
  1885. const data = this.formatJson(filterVal, this.exportList);
  1886. excel.export_json_to_excel({
  1887. header: tHeader,
  1888. data,
  1889. filename: "耗材出库单详情",
  1890. });
  1891. this.downloadLoading = false;
  1892. });
  1893. },
  1894. formatJson(filterVal, jsonData) {
  1895. return jsonData.map((v) => filterVal.map((j) => v[j]));
  1896. },
  1897. unique(arr) {
  1898. let newArr = [arr[0]];
  1899. for (let i = 1; i < arr.length; i++) {
  1900. let repeat = false;
  1901. for (let j = 0; j < newArr.length; j++) {
  1902. if (arr[i] === newArr[j]) {
  1903. repeat = true;
  1904. break;
  1905. } else {
  1906. }
  1907. }
  1908. if (!repeat) {
  1909. newArr.push(arr[i]);
  1910. }
  1911. }
  1912. return newArr;
  1913. },
  1914. getBatchNumber(patient_id, good_id) {
  1915. var arr = [];
  1916. for (let i = 0; i < this.stockFlowList.length; i++) {
  1917. if (
  1918. patient_id == this.stockFlowList[i].patient_id &&
  1919. good_id == this.stockFlowList[i].good_id
  1920. ) {
  1921. arr.push(this.stockFlowList[i].number);
  1922. }
  1923. }
  1924. arr = this.unique(arr);
  1925. return arr.join(",");
  1926. },
  1927. getHouseName(id) {
  1928. var storehouse_name = "";
  1929. for (let i = 0; i < this.houselist.length; i++) {
  1930. if (id == this.houselist[i].id) {
  1931. storehouse_name = this.houselist[i].storehouse_name;
  1932. }
  1933. }
  1934. if (storehouse_name == "全部") {
  1935. return "";
  1936. } else {
  1937. return storehouse_name;
  1938. }
  1939. },
  1940. changeStoreHouse() {
  1941. this.GetWarehouseOut();
  1942. },
  1943. changeWay() {
  1944. this.GetWarehouseOut();
  1945. },
  1946. changeCheckList(){
  1947. this.GetWarehouseOut();
  1948. }
  1949. };
  1950. </script>
  1951. <style rel="stylesheet/scss" lang="scss">
  1952. .app-container {
  1953. // margin: 20px;
  1954. font-size: 15px;
  1955. .filter-container {
  1956. padding-bottom: 5px;
  1957. }
  1958. .search-component {
  1959. width: 500px;
  1960. .searchBox {
  1961. width: 300px;
  1962. height: 36px;
  1963. line-height: 36px;
  1964. padding-left: 15px;
  1965. border: 1px #dcdfe6 solid;
  1966. border-right: none;
  1967. outline: none;
  1968. float: left;
  1969. border-radius: 6px 0 0 6px;
  1970. font-size: 14px;
  1971. color: #333;
  1972. background: #fff;
  1973. box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  1974. }
  1975. .searchBtn {
  1976. background-color: #409eff;
  1977. color: #fff;
  1978. font-size: 15px;
  1979. text-align: center;
  1980. height: 36px;
  1981. line-height: 36px;
  1982. float: left;
  1983. outline: none;
  1984. width: 70px;
  1985. border: none;
  1986. border-radius: 0 6px 6px 0;
  1987. font-family: "Microsoft Yahei";
  1988. cursor: pointer;
  1989. }
  1990. }
  1991. .amount {
  1992. font-weight: normal;
  1993. padding: 10px 0 0 0;
  1994. color: #606266;
  1995. font-size: 14px;
  1996. span {
  1997. color: #ef2525;
  1998. font-family: "Arial";
  1999. padding: 0 2px;
  2000. }
  2001. }
  2002. }
  2003. .el-table td,
  2004. .el-table th.is-leaf,
  2005. .el-table--border,
  2006. .el-table--group {
  2007. border-color: #d0d3da;
  2008. }
  2009. .el-table--border::after,
  2010. .el-table--group::after,
  2011. .el-table::before {
  2012. background-color: #d0d3da;
  2013. }
  2014. </style>