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

stockInOrder.vue 43KB

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