outbound.vue 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396
  1. <template>
  2. <div>
  3. <el-card shadow="never">
  4. <header-title title="基本信息"></header-title>
  5. <el-form
  6. :model="formData"
  7. ref="formName"
  8. label-width="110px"
  9. :rules="rules"
  10. >
  11. <el-row :gutter="20">
  12. <el-col :span="6">
  13. <el-form-item label="出库场景" prop="bizType">
  14. <!-- <el-select
  15. filterable
  16. placeholder="请选择"
  17. v-model="formData.bizType"
  18. clearable
  19. @change="handleBizSceneChange"
  20. :disabled="!!(productList && productList.length)"
  21. >
  22. <el-option
  23. v-for="item in outputSceneState"
  24. :key="item.code"
  25. :value="item.code"
  26. :label="item.label"
  27. ></el-option>
  28. </el-select> -->
  29. <el-select
  30. filterable
  31. disabled
  32. placeholder="请选择"
  33. v-model="formData.bizType"
  34. clearable
  35. @change="handleBizSceneChange"
  36. >
  37. <el-option
  38. v-for="item in outputSceneState"
  39. :key="item.code"
  40. :value="item.code"
  41. :label="item.label"
  42. ></el-option>
  43. </el-select> </el-form-item
  44. ></el-col>
  45. <el-col :span="6">
  46. <el-form-item label="单据来源" prop="documentSource">
  47. <el-input
  48. placeholder="请选择"
  49. disabled
  50. v-model="formData.sourceBizNo"
  51. @click.native="openDocumentSourceDialog"
  52. >
  53. </el-input>
  54. </el-form-item>
  55. </el-col>
  56. <el-col :span="6">
  57. <el-form-item label="出库物品类型" prop="extInfo.assetType">
  58. <el-select
  59. style="width: 100%"
  60. multiple
  61. disabled
  62. v-model="formData.extInfo.assetType"
  63. placeholder="请选择"
  64. >
  65. <el-option
  66. v-for="item in goodsLists"
  67. :key="item.id"
  68. :label="item.name"
  69. :value="item.id"
  70. >
  71. </el-option>
  72. </el-select>
  73. <!-- <el-select
  74. style="width: 100%"
  75. multiple
  76. :disabled="!!(productList && productList.length)"
  77. v-model="formData.extInfo.assetType"
  78. placeholder="请选择"
  79. >
  80. <el-option
  81. v-for="item in goodsLists"
  82. :key="item.id"
  83. :label="item.name"
  84. :value="item.id"
  85. >
  86. </el-option>
  87. </el-select> -->
  88. </el-form-item>
  89. </el-col>
  90. <el-col :span="6">
  91. <el-form-item label="出库时间">
  92. <el-date-picker
  93. v-model="formData.storageTime"
  94. type="datetime"
  95. value-format="yyyy-MM-dd HH:mm:ss"
  96. placeholder="选择日期时间"
  97. >
  98. </el-date-picker></el-form-item
  99. ></el-col>
  100. <el-col :span="6">
  101. <el-form-item label="出库登记人">
  102. <el-input
  103. placeholder="登记人"
  104. disabled
  105. v-model="formData.extInfo.createUserName"
  106. clearable /></el-form-item
  107. ></el-col>
  108. <el-col :span="6">
  109. <el-form-item
  110. :label="this.bizType == 10 ? '申请人部门' : '领料人部门'"
  111. prop="extInfo.verifyDeptCode"
  112. >
  113. <selectTree
  114. ref="tree"
  115. class="form-ipt"
  116. size="medium"
  117. style="width: 100%"
  118. clearable
  119. :value="formData.extInfo.verifyDeptCode"
  120. :options="treeList"
  121. :props="{
  122. value: 'id',
  123. label: 'name',
  124. children: 'children'
  125. }"
  126. @getValue="auditorDeptClick"
  127. />
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="6">
  131. <el-form-item
  132. :label="this.bizType == 10 ? '申请人' : '领料人'"
  133. prop="fromId"
  134. >
  135. <el-select
  136. v-model="formData.fromId"
  137. filterable
  138. placeholder="请选择"
  139. >
  140. <el-option
  141. v-for="item in llrLsit"
  142. :key="item.id"
  143. :label="item.name"
  144. :value="item.id"
  145. @click.native="userSlected(item)"
  146. >
  147. </el-option>
  148. </el-select> </el-form-item
  149. ></el-col>
  150. <el-col :span="6">
  151. <el-form-item label="客户名称">
  152. <span>{{ formData.clientName }}</span>
  153. </el-form-item>
  154. </el-col>
  155. <el-col :span="12">
  156. <el-form-item label="备注" prop="remark">
  157. <el-input
  158. v-model="formData.remark"
  159. placeholder="请详细说明"
  160. ></el-input>
  161. </el-form-item>
  162. </el-col>
  163. </el-row>
  164. </el-form>
  165. <div>
  166. <el-button
  167. style="margin-bottom: 20px; float: right; margin-right: 20px"
  168. type="primary"
  169. @click="addStock"
  170. v-if="isEdit"
  171. >添加</el-button
  172. >
  173. </div>
  174. <div class="material">
  175. <div>
  176. <header-title title="物品清单"></header-title>
  177. <div class="mt10 form-table">
  178. <el-table
  179. ref="productListTable"
  180. :data="productList"
  181. tooltip-effect="dark"
  182. :max-height="300"
  183. :header-cell-style="rowClass"
  184. border
  185. >
  186. <el-table-column label="序号" type="index" width="50">
  187. </el-table-column>
  188. <el-table-column
  189. label="编码"
  190. prop="categoryCode"
  191. align="center"
  192. :show-overflow-tooltip="true"
  193. ></el-table-column>
  194. <el-table-column
  195. label="名称"
  196. align="center"
  197. prop="categoryName"
  198. :show-overflow-tooltip="true"
  199. ></el-table-column>
  200. <el-table-column
  201. v-if="clientEnvironmentId == 4"
  202. label="级别"
  203. prop="level"
  204. align="center"
  205. >
  206. </el-table-column>
  207. <el-table-column
  208. label="型号"
  209. align="center"
  210. prop="categoryModel"
  211. :show-overflow-tooltip="true"
  212. ></el-table-column>
  213. <el-table-column
  214. label="规格"
  215. align="center"
  216. prop="specification"
  217. :show-overflow-tooltip="true"
  218. ></el-table-column>
  219. <el-table-column
  220. label="牌号"
  221. align="center"
  222. prop="brandNum"
  223. :show-overflow-tooltip="true"
  224. ></el-table-column>
  225. <el-table-column
  226. v-for="(item, index) in newColumns"
  227. :label="item.label"
  228. :align="item.align"
  229. :key="item.prop"
  230. :prop="item.prop"
  231. :show-overflow-tooltip="item.showOverflowTooltip"
  232. ></el-table-column>
  233. <el-table-column
  234. label="批次号"
  235. prop="batchNo"
  236. align="center"
  237. :show-overflow-tooltip="true"
  238. >
  239. </el-table-column>
  240. <el-table-column
  241. label="包装数量"
  242. prop="packingQuantity"
  243. width="80"
  244. ></el-table-column>
  245. <el-table-column
  246. label="单位"
  247. prop="packingUnit"
  248. ></el-table-column>
  249. <el-table-column
  250. label="计量数量"
  251. prop="measureQuantity"
  252. :show-overflow-tooltip="true"
  253. ></el-table-column>
  254. <el-table-column
  255. label="计量单位"
  256. prop="measureUnit"
  257. ></el-table-column>
  258. <el-table-column
  259. label="重量"
  260. prop="weight"
  261. align="center"
  262. :show-overflow-tooltip="true"
  263. >
  264. </el-table-column>
  265. <el-table-column
  266. label="重量单位"
  267. prop="weightUnit"
  268. align="center"
  269. :show-overflow-tooltip="true"
  270. >
  271. </el-table-column>
  272. <el-table-column label="机型" prop="modelKey" width="200">
  273. </el-table-column>
  274. <el-table-column label="颜色" prop="colorKey" width="200">
  275. </el-table-column>
  276. <el-table-column
  277. label="库存"
  278. prop="stockNum"
  279. align="center"
  280. :show-overflow-tooltip="true"
  281. >
  282. </el-table-column>
  283. <el-table-column
  284. label="单价"
  285. prop="price"
  286. align="center"
  287. v-if="isPrice == 1"
  288. >
  289. <template slot-scope="{ row }">
  290. <template>
  291. {{ row.price ? row.price : ' ' + '元' }}/{{
  292. row.measureUnit
  293. }}
  294. </template>
  295. </template>
  296. </el-table-column>
  297. <el-table-column
  298. label="金额"
  299. align="center"
  300. prop="totalMoney"
  301. :show-overflow-tooltip="true"
  302. v-if="isPrice == 1"
  303. >
  304. <template slot-scope="{ row, $index }">
  305. {{ row.totalMoney ? row.totalMoney : 0 }}
  306. </template>
  307. </el-table-column>
  308. <el-table-column
  309. v-if="clientEnvironmentId == 4"
  310. label="采购原因"
  311. align="center"
  312. prop="purpose"
  313. :show-overflow-tooltip="true"
  314. ></el-table-column>
  315. <el-table-column
  316. label="仓库"
  317. prop="warehouseName"
  318. :show-overflow-tooltip="true"
  319. >
  320. </el-table-column>
  321. <el-table-column
  322. prop="supplierName"
  323. label="供应商"
  324. min-width="200"
  325. :show-overflow-tooltip="true"
  326. ></el-table-column>
  327. <el-table-column
  328. prop="supplierCode"
  329. label="供应商代号"
  330. min-width="200"
  331. :show-overflow-tooltip="true"
  332. ></el-table-column>
  333. <el-table-column label="操作" width="120" align="center">
  334. <template slot="header" slot-scope="scope"> 操作 </template>
  335. <template slot-scope="{ row, $index }">
  336. <el-link
  337. type="danger"
  338. @click="deleteProductList(row, $index)"
  339. v-if="isEdit"
  340. >删除</el-link
  341. >
  342. </template>
  343. </el-table-column>
  344. </el-table>
  345. </div>
  346. <header-title class="mt20" title="包装清单"></header-title>
  347. <div class="mt10 form-table">
  348. <el-table
  349. ref="showPackingListTable"
  350. :data="showPackingList"
  351. tooltip-effect="dark"
  352. :max-height="300"
  353. :row-class-name="tableRowClassName"
  354. :header-cell-style="rowClass"
  355. border
  356. v-el-table-infinite-scroll="pickingHandleScroll"
  357. >
  358. <el-table-column label="序号" type="index" width="50">
  359. </el-table-column>
  360. <el-table-column
  361. label="编码"
  362. prop="categoryCode"
  363. :show-overflow-tooltip="true"
  364. ></el-table-column>
  365. <el-table-column
  366. label="名称"
  367. prop="categoryName"
  368. :show-overflow-tooltip="true"
  369. ></el-table-column>
  370. <el-table-column
  371. label="批次号"
  372. prop="batchNo"
  373. :show-overflow-tooltip="true"
  374. ></el-table-column>
  375. <el-table-column
  376. label="发货条码"
  377. prop="barcodes"
  378. :show-overflow-tooltip="true"
  379. ></el-table-column>
  380. <el-table-column
  381. label="包装编码"
  382. prop="packageNo"
  383. :show-overflow-tooltip="true"
  384. ></el-table-column>
  385. <el-table-column
  386. label="包装数量"
  387. prop="packingQuantity"
  388. :show-overflow-tooltip="true"
  389. ></el-table-column>
  390. <el-table-column
  391. label="单位"
  392. prop="packingUnit"
  393. :show-overflow-tooltip="true"
  394. ></el-table-column>
  395. <el-table-column
  396. label="计量数量"
  397. prop="measureQuantity"
  398. :show-overflow-tooltip="true"
  399. ></el-table-column>
  400. <el-table-column
  401. label="计量单位"
  402. prop="measureUnit"
  403. :show-overflow-tooltip="true"
  404. ></el-table-column>
  405. <el-table-column
  406. label="物料代号"
  407. prop="materielDesignation"
  408. :show-overflow-tooltip="true"
  409. >
  410. </el-table-column>
  411. <el-table-column
  412. label="客户代号"
  413. prop="clientCode"
  414. :show-overflow-tooltip="true"
  415. >
  416. </el-table-column>
  417. <el-table-column
  418. label="刻码"
  419. prop="engrave"
  420. :show-overflow-tooltip="true"
  421. >
  422. </el-table-column>
  423. <el-table-column
  424. label="重量"
  425. prop="weight"
  426. :show-overflow-tooltip="true"
  427. >
  428. </el-table-column>
  429. <el-table-column
  430. label="重量单位"
  431. prop="weightUnit"
  432. :show-overflow-tooltip="true"
  433. >
  434. </el-table-column>
  435. <el-table-column label="机型" prop="modelKey" width="200">
  436. </el-table-column>
  437. <el-table-column label="颜色" prop="colorKey" width="200">
  438. </el-table-column>
  439. <el-table-column
  440. label="质检结果"
  441. prop="result"
  442. :show-overflow-tooltip="true"
  443. >
  444. <template slot-scope="{ row }">
  445. <span>{{ qualityResults[row.result] }}</span>
  446. </template>
  447. </el-table-column>
  448. <el-table-column
  449. label="质检状态"
  450. prop="status"
  451. :show-overflow-tooltip="true"
  452. >
  453. <template slot-scope="{ row }">
  454. <span>{{ qualityStatus[row.status] }}</span>
  455. </template>
  456. </el-table-column>
  457. <el-table-column
  458. label="生产日期"
  459. prop="productionDate"
  460. :show-overflow-tooltip="true"
  461. >
  462. </el-table-column>
  463. <el-table-column
  464. label="采购日期"
  465. prop="purchaseDate"
  466. :show-overflow-tooltip="true"
  467. >
  468. </el-table-column>
  469. <el-table-column
  470. prop="supplierName"
  471. label="供应商"
  472. min-width="200"
  473. :show-overflow-tooltip="true"
  474. ></el-table-column>
  475. <el-table-column
  476. prop="supplierCode"
  477. label="供应商代号"
  478. min-width="200"
  479. :show-overflow-tooltip="true"
  480. ></el-table-column>
  481. </el-table>
  482. </div>
  483. </div>
  484. <!-- <div class="mt20">
  485. <header-title class="mt20" title="物料明细"></header-title>
  486. <el-table ref="multipleTable" :data="showMaterialList" tooltip-effect="dark" :max-height="300"
  487. :row-class-name="tableRowClassName" :header-cell-style="rowClass" border style="width: 100%" stripe
  488. height="300px" v-el-table-infinite-scroll="materielHandleScroll">
  489. <el-table-column label="序号" type="index" width="50">
  490. </el-table-column>
  491. <el-table-column label="编码" prop="categoryCode" :show-overflow-tooltip="true"></el-table-column>
  492. <el-table-column label="名称" prop="categoryName" :show-overflow-tooltip="true"></el-table-column>
  493. <el-table-column label="批次号" prop="batchNo"></el-table-column>
  494. <el-table-column label="物料编码" prop="materialCode" :show-overflow-tooltip="true"></el-table-column>
  495. <el-table-column label="发货条码" prop="barcodes" :show-overflow-tooltip="true"></el-table-column>
  496. <el-table-column label="计量数量" prop="minPackingQuantity"></el-table-column>
  497. <el-table-column label="计量单位" prop="measureUnit"></el-table-column>
  498. <el-table-column label="物料代号" prop="materielDesignation">
  499. </el-table-column>
  500. <el-table-column label="客户代号" prop="clientCode">
  501. </el-table-column>
  502. <el-table-column label="刻码" prop="engrave"> </el-table-column>
  503. <el-table-column width="100" label="重量" prop="weight">
  504. </el-table-column>
  505. <el-table-column label="重量单位" prop="weightUnit">
  506. </el-table-column>
  507. <el-table-column label="质检结果" prop="result" width="120">
  508. <template slot-scope="{ row }">
  509. <span>{{ qualityResults[row.result] }}</span>
  510. </template>
  511. </el-table-column>
  512. <el-table-column label="质检状态" prop="status" width="120">
  513. <template slot-scope="{ row }">
  514. <span>{{ qualityStatus[row.status] }}</span>
  515. </template>
  516. </el-table-column>
  517. </el-table>
  518. </div> -->
  519. </div>
  520. </el-card>
  521. <AssetsDialog
  522. ref="assetsDialogRef"
  523. :treeIds="formData.extInfo?.assetType"
  524. @detailData="detailData"
  525. :productLists="this.productList"
  526. />
  527. </div>
  528. </template>
  529. <script>
  530. import storageApi from '@/api/warehouseManagement/index.js';
  531. import elTableInfiniteScroll from 'el-table-infinite-scroll';
  532. import warehouseDefinition from '@/api/warehouseManagement/warehouseDefinition';
  533. import { getTreeByGroup } from '@/api/classifyManage';
  534. import {
  535. outputSceneState,
  536. qualityResults,
  537. qualityStatus
  538. } from '@/utils/dict/index';
  539. import selectTree from '@/components/selectTree';
  540. import AssetsDialog from './components/AssetsDialog.vue';
  541. import { deepClone } from '@/components/FormGenerator/utils/index';
  542. import { mapGetters } from 'vuex';
  543. import { parameterGetByCode } from '@/api/main/index.js';
  544. export default {
  545. components: {
  546. selectTree,
  547. AssetsDialog
  548. },
  549. props: {
  550. form: { type: Object, default: {} },
  551. bizType: { type: Number, default: 1 },
  552. sourceBizNo: { type: String, default: '' },
  553. type: { type: String, default: '正常出库' },
  554. detailList: { type: Array, default: () => [] },
  555. saleProductList: { type: Array, default: () => [] },
  556. extractedList: { type: Array, default: () => [] },
  557. wwType: { type: Number, default: null },
  558. isEdit: { type: Boolean, default: true } //是否可编辑
  559. },
  560. directives: {
  561. 'el-table-infinite-scroll': elTableInfiniteScroll
  562. },
  563. data() {
  564. return {
  565. newColumns: [], // 动态表头
  566. goodsLists: [], // 商品列表
  567. productList: [], // 产品列表
  568. showPackingList: [], // 展示的包装列表
  569. packingList: [], // 包装列表
  570. showMaterialList: [], // 展示物料列表
  571. materialList: [], // 物料列表
  572. extInfo: {}, // 扩展信息
  573. pageSize: 20,
  574. pickingPageNum: 1,
  575. materielPageNum: 1,
  576. dimension: '3',
  577. outputSceneState,
  578. qualityStatus, // 质检状态
  579. qualityResults, // 质检结果
  580. treeList: [],
  581. formData: {
  582. storageTime: '',
  583. extInfo: {
  584. assetType: [], //物品类型id
  585. assetTypeName: '', //物品类型名称
  586. deptCode: '', //部门code
  587. deptName: '', //部门名称
  588. verifyDeptCode: '', //审核部门编码
  589. verifyDeptName: '', //审核部门名称
  590. deliveryName: '', //送货人名称
  591. fromUserPhone: '', //送货人电话
  592. sourceBizNo: '', //销售订单
  593. urgent: '', //紧急状态
  594. supplierId: '', //供应商ID
  595. supplierName: '', //供应商名称
  596. createUserName: '', //创建人名字
  597. contentImage: [] //图片数组
  598. },
  599. fromId: '', //领料人
  600. fromUser: '', //送货人
  601. bizType: '', //物品类型
  602. verifyId: '', //审核人Id
  603. verifyName: '', //审核人名称
  604. createUserId: '',
  605. remark: ''
  606. },
  607. rules: {
  608. bizType: {
  609. required: true,
  610. message: '请选择出库场景',
  611. trigger: 'change'
  612. },
  613. 'extInfo[verifyDeptCode]': {
  614. required: true,
  615. message: '请选择领料人部门',
  616. trigger: ['change', 'blur']
  617. },
  618. fromId: {
  619. required: true,
  620. message: '请选择',
  621. trigger: 'change'
  622. }
  623. },
  624. llrLsit: [],
  625. isPrice: 1
  626. };
  627. },
  628. computed: {
  629. ...mapGetters(['user']),
  630. clientEnvironmentId() {
  631. return this.$store.state.user.info.clientEnvironmentId;
  632. }
  633. },
  634. async created() {
  635. //仓库出入库是否显示金额(0:不显示 1:显示)
  636. parameterGetByCode({
  637. code: 'wms_price'
  638. }).then((res) => {
  639. this.isPrice = res.value;
  640. });
  641. this.getFieldModel();
  642. this.getListItems();
  643. this.initDeptData().then(() => {
  644. this.initFormData();
  645. this.getNowFormatDate();
  646. });
  647. },
  648. methods: {
  649. // 获取当前时间函数
  650. getNowDate() {
  651. let date = new Date(),
  652. obj = {
  653. year: date.getFullYear(), //获取当前月份(0-11,0代表1月)
  654. month: date.getMonth() + 1, //获取当前月份(0-11,0代表1月)
  655. strDate: date.getDate(), // 获取当前日(1-31)
  656. hour: date.getHours(), //获取当前小时(0 ~ 23)
  657. minute: date.getMinutes(), //获取当前分钟(0 ~ 59)
  658. second: date.getSeconds() //获取当前秒数(0 ~ 59)
  659. };
  660. Object.keys(obj).forEach((key) => {
  661. if (obj[key] < 10) obj[key] = `0${obj[key]}`;
  662. });
  663. return obj;
  664. },
  665. // 赋值入库时间
  666. getNowFormatDate() {
  667. const obj = this.getNowDate();
  668. const defaultTime = '00:00:00';
  669. const currentTime = `${obj.hour}:${obj.minute}:${obj.second}`;
  670. this.formData.storageTime = `${obj.year}-${obj.month}-${obj.strDate} ${currentTime}`;
  671. },
  672. // 获取动态表头
  673. getFieldModel() {
  674. storageApi.fieldModel({ fieldModel: 't_main_category' }).then((res) => {
  675. let newRes = res.map((m) => {
  676. return {
  677. prop: 'extField.' + m.prop,
  678. label: m.label,
  679. align: 'center',
  680. showOverflowTooltip: true
  681. };
  682. });
  683. this.newColumns = [...newRes];
  684. });
  685. },
  686. userSlected(data) {
  687. this.formData.fromId = data.id;
  688. this.formData.fromUser = data.name;
  689. this.formData.fromUserPhone = data.phone;
  690. },
  691. openDocumentSourceDialog() {
  692. console.log('打开单据来源弹窗');
  693. },
  694. clearDocumentSource() {
  695. console.log('清空');
  696. },
  697. pickingHandleScroll() {
  698. console.log('---------pickingHandleScroll------------');
  699. if (this.showPackingList.length < this.packingList.length) {
  700. if (this.packingList.length > this.pageSize) {
  701. this.pickingPageNum += 1;
  702. }
  703. this.pickingFetchData();
  704. }
  705. },
  706. pickingFetchData() {
  707. const start = (this.pickingPageNum - 1) * this.pageSize;
  708. const end = start + this.pageSize;
  709. this.showPackingList = this.showPackingList.concat(
  710. this.packingList.slice(start, end)
  711. );
  712. },
  713. materielHandleScroll() {
  714. console.log('---------materielHandleScroll------------');
  715. if (this.showMaterialList.length < this.materialList.length) {
  716. if (this.materialList.length > this.pageSize) {
  717. this.materielPageNum += 1;
  718. }
  719. this.materielFetchData();
  720. }
  721. },
  722. materielFetchData() {
  723. const start = (this.materielPageNum - 1) * this.pageSize;
  724. const end = start + this.pageSize;
  725. this.showMaterialList = this.showMaterialList.concat(
  726. this.materialList.slice(start, end)
  727. );
  728. console.log(this.showMaterialList);
  729. },
  730. // 获取物品列表
  731. async getListItems() {
  732. const { data } = await getTreeByGroup({});
  733. this.goodsLists = data;
  734. },
  735. // 打开单据来源弹窗
  736. openDocumentSourceDialog() {
  737. console.log('打开单据来源弹窗');
  738. },
  739. tableRowClassName({ row, rowIndex }) {
  740. console.log(row);
  741. // 结果 0=默认,1=合格,2=不合格
  742. if (row.result == 1) {
  743. return 'warning-row';
  744. } else {
  745. return '';
  746. }
  747. },
  748. detailData(data, dimension) {
  749. this.dimension = dimension;
  750. const mergedData = [...(this.formData.outInDetailList || []), ...data];
  751. this.formData.outInDetailList = mergedData;
  752. this.productList = data.map((productItem) => {
  753. return {
  754. ...productItem,
  755. suspendBatchNo: productItem.batchNo || '',
  756. outInDetailRecordRequestList:
  757. productItem.outInDetailRecordRequestList.map((packingItem) => {
  758. return {
  759. ...packingItem,
  760. workOrderId:
  761. this.type === '自选领用出库'
  762. ? this.form.detailList[0].workOrderId
  763. : '',
  764. pickOrderId:
  765. this.type === '自选领用出库'
  766. ? this.form.detailList[0].pickOrderId
  767. : '',
  768. taskId:
  769. this.type === '自选领用出库'
  770. ? this.form.detailList[0].taskId
  771. : '',
  772. categoryName: productItem.categoryName,
  773. categoryCode: productItem.categoryCode,
  774. supplierCode: productItem.supplierCode,
  775. supplierName: productItem.supplierName,
  776. materialDetailList: packingItem.materialDetailList.map(
  777. (materialItem) => {
  778. return {
  779. ...materialItem,
  780. categoryName: productItem.categoryName,
  781. categoryCode: productItem.categoryCode,
  782. supplierCode: productItem.supplierCode,
  783. supplierName: productItem.supplierName
  784. };
  785. }
  786. )
  787. };
  788. })
  789. };
  790. });
  791. const newProducts = mergedData.map((productItem) => ({
  792. ...productItem,
  793. suspendBatchNo: productItem.batchNo || '',
  794. outInDetailRecordRequestList:
  795. productItem.outInDetailRecordRequestList.map((packingItem) => ({
  796. ...packingItem,
  797. categoryName: productItem.categoryName,
  798. categoryCode: productItem.categoryCode,
  799. supplierCode: productItem.supplierCode,
  800. supplierName: productItem.supplierName,
  801. workOrderId:
  802. this.type === '自选领用出库'
  803. ? this.form.detailList[0].workOrderId
  804. : '',
  805. pickOrderId:
  806. this.type === '自选领用出库'
  807. ? this.form.detailList[0].pickOrderId
  808. : '',
  809. taskId:
  810. this.type === '自选领用出库'
  811. ? this.form.detailList[0].taskId
  812. : '',
  813. materialDetailList: packingItem.materialDetailList.map(
  814. (materialItem) => ({
  815. ...materialItem,
  816. categoryName: productItem.categoryName,
  817. categoryCode: productItem.categoryCode,
  818. supplierCode: productItem.supplierCode,
  819. supplierName: productItem.supplierName
  820. })
  821. )
  822. }))
  823. }));
  824. // 去重合并产品列表和新产品列表
  825. const uniqueProducts = [
  826. ...new Map(
  827. [...this.productList, ...newProducts].map((item) => [item.id, item])
  828. ).values()
  829. ];
  830. this.productList = uniqueProducts;
  831. console.log('111111111111111');
  832. console.log(this.productList);
  833. // 排序
  834. this.productList.sort((a, b) => a.categoryCode - b.categoryCode);
  835. // 获取包装维度数据
  836. const arr = [];
  837. for (const key in this.productList) {
  838. for (const k in this.productList[key].outInDetailRecordRequestList) {
  839. arr.push({
  840. ...this.productList[key].outInDetailRecordRequestList[k]
  841. });
  842. }
  843. }
  844. this.packingList = arr;
  845. const newPacking = [];
  846. newProducts.forEach((item) => {
  847. newPacking.push(...item.outInDetailRecordRequestList);
  848. });
  849. //去重
  850. const newPackingList = [
  851. ...new Map(
  852. [...this.packingList, ...newPacking].map((item) => [item.id, item])
  853. ).values()
  854. ];
  855. this.packingList = newPackingList;
  856. this.packingList.sort((a, b) => a.categoryCode - b.categoryCode);
  857. // 获取物料维度数据
  858. let iArr = [];
  859. arr.forEach((item) => {
  860. item.materialDetailList.forEach((ele) => {
  861. iArr.push({ ...ele });
  862. });
  863. });
  864. this.materialList = iArr;
  865. const newMaterial = [];
  866. newPacking.forEach((item) => {
  867. newMaterial.push(...item.materialDetailList);
  868. });
  869. this.materialList = [...this.materialList, ...newMaterial];
  870. // 触发分页更新
  871. this.pickingPageNum = 1;
  872. this.materielPageNum = 1;
  873. this.pickingFetchData();
  874. this.materielFetchData();
  875. this.formData.outInDetailList = this.productList;
  876. console.log(this.productList, 'this.productList');
  877. console.log(this.packingList, 'this.packingList');
  878. },
  879. async getReturnStorage() {
  880. return new Promise((resolve) => {
  881. console.log(this.formData);
  882. this.$refs.formName.validate(async (valid) => {
  883. if (!this.productList?.length) {
  884. return this.$message.error('请添加出库明细!');
  885. }
  886. let obj = deepClone({ ...this.formData, type: 2 });
  887. obj.extInfo.sourceBizNo = obj.sourceBizNo;
  888. obj.fromType = obj.type;
  889. // 处理物品类型assetType
  890. obj.extInfo.assetType = obj.extInfo?.assetType.join(',');
  891. // 处理仓库id
  892. let warehouseId = [];
  893. let warehouseName = [];
  894. let warehouseIds = this.productList
  895. .map((item) => item.warehouseId)
  896. .flat();
  897. let warehouseNames = this.productList
  898. .map((item) => item.warehouseName)
  899. .flat();
  900. warehouseIds.forEach((item, index) => {
  901. if (!warehouseId.includes(item)) {
  902. warehouseId.push(item);
  903. warehouseName.push(warehouseNames[index]);
  904. }
  905. });
  906. obj.warehouseIds = warehouseId;
  907. obj.warehouseNames = warehouseName;
  908. console.log('2222', obj);
  909. let isPass = false;
  910. // 1按数量计费 2按重量计费
  911. if (this.form.pricingWay == 2) {
  912. if (this.materialList.length > 0) {
  913. // 判断物料
  914. isPass = this.materialCodeReqList.every(
  915. (item) => item.weight > 0
  916. );
  917. } else {
  918. // 判断包装重量是否全部大于0
  919. isPass = this.packingList.every((item) => item.weight > 0);
  920. }
  921. } else {
  922. isPass = true;
  923. }
  924. if (isPass) {
  925. resolve(obj);
  926. } else {
  927. this.$message.error('委外发货重量不能为空');
  928. }
  929. });
  930. });
  931. },
  932. onClear() {
  933. this.formData.sourceBizNo = '';
  934. this.warehousingMaterialList = [];
  935. this.$refs.trees.valueTitle = '';
  936. this.formData.clientName = '';
  937. this.formData.clientUser = '';
  938. this.formData.clientPhone = '';
  939. this.$forceUpdate();
  940. },
  941. rowClass({ row, column, rowIndex, columnIndex }) {
  942. if (rowIndex === 1) {
  943. return {
  944. display: 'none',
  945. background: '#EEEEEE'
  946. };
  947. }
  948. return { background: '#0000' };
  949. },
  950. // 部门点击事件
  951. async auditorDeptClick(data) {
  952. console.log(data);
  953. this.formData.extInfo.verifyDeptCode = data?.id;
  954. this.formData.extInfo.verifyDeptName = data?.name;
  955. this.formData.verifyId = '';
  956. this.formData.verifyName = '';
  957. this.$refs.formName.validateField('verifyDeptName');
  958. if (data) {
  959. this.getStaffList(data);
  960. }
  961. },
  962. getStaffList(data) {
  963. return new Promise(async (resolve) => {
  964. let res = await warehouseDefinition.getUserPage({
  965. groupId: data.id,
  966. size: 9999,
  967. page: 1
  968. });
  969. this.llrLsit = res.list;
  970. resolve();
  971. });
  972. },
  973. // 初始化用户信息
  974. async initFormData() {
  975. console.log(this.form, 'ddddddddddddddddddddddddddddd123form');
  976. // const res = await warehouseDefinition.tree();
  977. // let obj = res.find(
  978. // (item) =>
  979. // item.id ===
  980. // this.user.info.deptIds[this.user.info.deptIds.length - 1]
  981. // );
  982. // if (!obj) return;
  983. // this.formData.extInfo.deptCode = obj.id;
  984. // this.formData.extInfo.deptName = obj.name;
  985. // this.formData.extInfo.createUserName = this.user.info.name;
  986. // this.formData.createUserId = this.user.info.userId;
  987. this.formData.extInfo.assetType = Array.from(
  988. new Set(this.form.categoryLevelTopId?.split(','))
  989. );
  990. //委外出库
  991. if (this.bizType == 7 && this.form.productList) {
  992. const categoryids = this.form.productList.map(
  993. (p) => p.categoryLevelTopId
  994. );
  995. console.log(categoryids, '委外出库的物品id');
  996. this.formData.extInfo.assetType = categoryids;
  997. }
  998. // 出库类型
  999. this.formData.bizType = this.bizType;
  1000. // 添加单据来源
  1001. this.formData.sourceBizNo = this.sourceBizNo || this.form?.code;
  1002. // 将出库状态改成出库状态 2出库 1入库
  1003. this.formData.type = 2;
  1004. // 入库登记人
  1005. this.formData.extInfo.createUserId = this.$store.state.user.info.userId;
  1006. this.formData.extInfo.createUserName = this.$store.state.user.info.name;
  1007. this.formData.createUserId = this.$store.state.user.info.userId;
  1008. await this.initDeptData(); // 确保部门树加载
  1009. if (this.form.makerId) {
  1010. warehouseDefinition.getGroupById(this.form.makerId).then((res) => {
  1011. console.log(res, 'makerId');
  1012. this.$set(this.formData.extInfo, 'verifyDeptCode', res.groupId);
  1013. this.$set(this.formData.extInfo, 'verifyDeptName', res.groupName);
  1014. });
  1015. }
  1016. // 生产相关逻辑
  1017. console.log(this.detailList, 'this.detailList');
  1018. console.log(this.saleProductList, 'this.saleProductList');
  1019. console.log(this.productList, 'this.productList');
  1020. console.log('11111111111111111111');
  1021. if (this.detailList?.length > 0) {
  1022. // 获取领料人列表
  1023. if (this.form.executorDeptId) {
  1024. this.getStaffList({ id: this.form.executorDeptId }).then(() => {
  1025. // 获取领料人和领料部门
  1026. this.formData.fromId = this.form.executorId;
  1027. this.formData.fromUser = this.form.executorName;
  1028. this.formData.extInfo.verifyDeptCode = this.form.executorDeptId;
  1029. this.formData.extInfo.verifyDeptName = this.form.executorDeptName;
  1030. });
  1031. } else {
  1032. this.formData.fromId = this.form.createUserId;
  1033. warehouseDefinition
  1034. .getGroupById(this.form.createUserId)
  1035. .then((res) => {
  1036. console.log(res, 'form没有executorDeptId有createUserId');
  1037. this.$set(this.formData, 'fromUser', res.name);
  1038. this.$set(this.formData.extInfo, 'verifyDeptCode', res.groupId);
  1039. this.$set(
  1040. this.formData.extInfo,
  1041. 'verifyDeptName',
  1042. res.groupName
  1043. );
  1044. });
  1045. }
  1046. console.log(this.saleProductList, 'this.saleProductList33333');
  1047. let pData = {
  1048. type: '1',
  1049. builders: this.detailList.map((item) => {
  1050. return {
  1051. categoryId:
  1052. item.categoryId || item.instanceId || item.productId,
  1053. num: item.demandQuantity || item.measurementCount,
  1054. warehouseId: this.bizType == 11 ? item.warehouseId : '',
  1055. };
  1056. })
  1057. };
  1058. let pData2 = {
  1059. type: this.wwType,
  1060. taskIds: this.extractedList.map((item) => item.taskId),
  1061. workOrderIds: this.extractedList.map((item) => item.workOrderId),
  1062. };
  1063. let pData3 = {
  1064. //销售退货处理 外协出库
  1065. type: 3,
  1066. outInIds: this.form?.returnInReceiptId?.split(','),
  1067. packageNos: this.detailList.map((item) => item.packageNo)
  1068. };
  1069. let pData4 = {
  1070. //受托退货
  1071. type: 3,
  1072. ids: this.detailList.map((item) => item.packageId)?.toString()
  1073. };
  1074. let api = this.bizType == 8 ? 'getHierarchyList' : 'getHierarchyFifo';
  1075. storageApi[api](
  1076. this.wwType == 3
  1077. ? pData2
  1078. : this.bizType == 6
  1079. ? pData3
  1080. : this.bizType == 8
  1081. ? pData4
  1082. : pData
  1083. )
  1084. .then((data) => {
  1085. this.detailData(data, this.dimension);
  1086. })
  1087. .catch((err) => {
  1088. console.log(err);
  1089. });
  1090. return;
  1091. }
  1092. // 销售相关逻辑
  1093. if (this.saleProductList?.length > 0) {
  1094. this.formData.clientName = this.form.contactName;
  1095. this.formData.clientCode = this.form.contactCode;
  1096. // 获取领料人列表
  1097. this.getStaffList({ id: this.form.deptId }).then(() => {
  1098. // 获取领料人和领料部门
  1099. this.formData.fromId = this.form.makerId;
  1100. this.formData.fromUser = this.form.makerName;
  1101. this.formData.extInfo.verifyDeptCode = this.form.deptId;
  1102. this.formData.extInfo.verifyDeptName = this.form.deptName;
  1103. });
  1104. console.log(this.saleProductList, 'this.saleProductList11111');
  1105. let pData = {
  1106. type: '1',
  1107. builders: this.saleProductList.map((item) => {
  1108. return {
  1109. categoryId: item.productId || item.categoryId,
  1110. num: item.totalCount
  1111. // warehouseId: this.bizType == 3 ? item.warehouseId : ''
  1112. // batchNo: item.batchNo || '',
  1113. };
  1114. })
  1115. };
  1116. let pData2 = {
  1117. type: this.wwType,
  1118. taskIds: this.extractedList.map((item) => item.taskId),
  1119. workOrderIds: this.extractedList.map((item) => item.workOrderId)
  1120. };
  1121. console.log('111~~~~~~~~', pData)
  1122. storageApi
  1123. .getHierarchyFifo(this.wwType == 3 ? pData2 : pData)
  1124. .then((data) => {
  1125. this.detailData(data, this.dimension);
  1126. })
  1127. .catch((err) => {
  1128. console.log(err);
  1129. });
  1130. return;
  1131. }
  1132. //采购委外
  1133. if (this.form.productList?.length > 0) {
  1134. this.getStaffList({ id: this.form.deptId }).then(() => {
  1135. this.formData.fromId = this.form.makerId;
  1136. this.formData.fromUser = this.form.makerName;
  1137. this.formData.extInfo.verifyDeptCode = this.form.deptId;
  1138. this.formData.extInfo.verifyDeptName = this.form.deptName;
  1139. });
  1140. console.log(this.saleProductList, 'this.saleProductList22222');
  1141. let pData = {
  1142. type: '1',
  1143. builders: this.form.productList.map((item) => {
  1144. return {
  1145. categoryId: item.productId,
  1146. num: item.totalCount,
  1147. price: item.totalPrice,
  1148. unitPrice: item.singlePrice,
  1149. weight: item.singleWeight * item.totalCount || 0,
  1150. batchNo: item.batchNo || '',
  1151. taskId: item.taskId || ''
  1152. };
  1153. })
  1154. };
  1155. let pData2 = {
  1156. type: 3,
  1157. taskIds: this.form.productList.map((item) => item.taskId),
  1158. workOrderIds: [this.form.sourceId]
  1159. };
  1160. storageApi
  1161. .getHierarchyFifo(this.form.sourceId ? pData2 : pData)
  1162. .then((data) => {
  1163. this.detailData(data, this.dimension);
  1164. })
  1165. .catch((err) => {
  1166. console.log(err);
  1167. });
  1168. }
  1169. // if (this.form.productList?.length > 0) {
  1170. // this.getStaffList({ id: this.form.deptId }).then(() => {
  1171. // this.formData.fromId = this.form.makerId;
  1172. // this.formData.fromUser = this.form.makerName;
  1173. // this.formData.extInfo.verifyDeptCode = this.form.deptId;
  1174. // this.formData.extInfo.verifyDeptName = this.form.deptName;
  1175. // });
  1176. // let pData = {
  1177. // type: '1',
  1178. // builders: this.form.productList.map((item) => {
  1179. // return {
  1180. // categoryId: item.productId,
  1181. // num: item.totalCount,
  1182. // price: item.totalPrice,
  1183. // unitPrice: item.singlePrice,
  1184. // weight: item.singleWeight * item.totalCount || 0,
  1185. // batchNo: item.batchNo || '',
  1186. // taskId: item.taskId || ''
  1187. // };
  1188. // })
  1189. // };
  1190. // let pData2 = {
  1191. // type: 3,
  1192. // taskIds: this.form.productList.map((item) => item.taskId),
  1193. // workOrderIds: [this.form.sourceId]
  1194. // };
  1195. // storageApi
  1196. // .getHierarchyFifo(this.form.sourceId ? pData2 : pData)
  1197. // .then((data) => {
  1198. // this.detailData(data, this.dimension);
  1199. // })
  1200. // .catch((err) => {
  1201. // console.log(err);
  1202. // });
  1203. // }
  1204. },
  1205. // 初始化部门数据
  1206. initDeptData() {
  1207. return new Promise(async (resolve) => {
  1208. const res = await warehouseDefinition.tree();
  1209. this.treeList = this.$util.toTreeData({
  1210. data: res,
  1211. idField: 'id',
  1212. parentIdField: 'parentId'
  1213. });
  1214. this.$nextTick(() => {
  1215. resolve();
  1216. });
  1217. });
  1218. },
  1219. addStock() {
  1220. console.log(this.formData.extInfo.assetType);
  1221. if (
  1222. !(
  1223. this.formData.extInfo.assetType &&
  1224. this.formData.extInfo.assetType.length > 0
  1225. )
  1226. )
  1227. return this.$message.error('请选择出库产品类型');
  1228. if (!this.formData.bizType && this.formData.bizType !== 0)
  1229. return this.$message.error('请选择出库场景');
  1230. this.$refs.assetsDialogRef.open(this.productList);
  1231. },
  1232. handleBizSceneChange() {
  1233. if (this.formData.extInfo.assetType == 7) {
  1234. this.formData.extInfo.sourceBizNo = '';
  1235. }
  1236. this.formData.sourceBizNo = '';
  1237. },
  1238. deleteProductList(row, index) {
  1239. // 1. 获取当前物料的所有包装列表
  1240. const targetPackages = row.outInDetailRecordRequestList || [];
  1241. const packageIds = new Set(targetPackages.map((p) => p.id));
  1242. console.log('targetPackages', targetPackages);
  1243. console.log('packageIds包装的id', packageIds);
  1244. // 从packingList中移除相关包装
  1245. this.packingList = this.packingList.filter(
  1246. (p) => !packageIds.has(p.id) && p.categoryCode !== row.categoryCode
  1247. );
  1248. console.log('包装列表', this.packingList);
  1249. // 从materialList中移除关联物料
  1250. const materialIds = new Set();
  1251. targetPackages.forEach((packageItem) => {
  1252. packageItem.materialDetailList.forEach((material) => {
  1253. materialIds.add(material.id);
  1254. });
  1255. });
  1256. this.materialList = this.materialList.filter(
  1257. (m) => !materialIds.has(m.id) && m.categoryCode !== row.categoryCode
  1258. );
  1259. this.productList.splice(index, 1);
  1260. // this.$nextTick(() => {
  1261. // this.$refs.productListTable?.doLayout()
  1262. // this.$refs.showPackingListTable?.doLayout()
  1263. // this.$refs.multipleTable?.doLayout()
  1264. // })
  1265. }
  1266. },
  1267. watch: {
  1268. packingList: {
  1269. handler(newVal) {
  1270. console.log('包装列表', newVal);
  1271. console.log('当前包装列表加载页数2', this.pickingPageNum);
  1272. this.showPackingList = newVal.slice(
  1273. 0,
  1274. this.pageSize * (this.pickingPageNum > 0 ? this.pickingPageNum : 1)
  1275. );
  1276. },
  1277. deep: true
  1278. },
  1279. materialList: {
  1280. handler(newVal) {
  1281. console.log('物料列表', newVal);
  1282. console.log('当前物料列表加载页数', this.materielPageNum);
  1283. this.showMaterialList = newVal.slice(
  1284. 0,
  1285. this.pageSize *
  1286. (this.materielPageNum > 0 ? this.materielPageNum : 1)
  1287. );
  1288. },
  1289. deep: true
  1290. }
  1291. // detailList: {
  1292. // handler(newVal) {
  1293. // if (newVal.length) {
  1294. // this.initFormData();
  1295. // }
  1296. // },
  1297. // deep: true
  1298. // }
  1299. }
  1300. };
  1301. </script>
  1302. <style lang="scss" scoped>
  1303. ::v-deep .el-row {
  1304. display: flex;
  1305. flex-wrap: wrap;
  1306. }
  1307. ::v-deep.form-table {
  1308. .el-form-item {
  1309. margin-bottom: 0;
  1310. }
  1311. .el-input__inner {
  1312. padding: 0 10px;
  1313. }
  1314. }
  1315. .p20 {
  1316. padding: 20px;
  1317. }
  1318. .el-select,
  1319. .el-date-editor {
  1320. width: 100%;
  1321. }
  1322. .el-form-item {
  1323. margin-bottom: 22px;
  1324. }
  1325. .material {
  1326. margin-top: 20px;
  1327. .flex {
  1328. display: flex;
  1329. justify-content: space-between;
  1330. font-size: 14px;
  1331. align-items: center;
  1332. .red {
  1333. color: #ff4949;
  1334. }
  1335. }
  1336. }
  1337. .mt10 {
  1338. margin-top: 10px;
  1339. }
  1340. .mt20 {
  1341. margin-top: 20px;
  1342. }
  1343. .center {
  1344. text-align: center;
  1345. }
  1346. </style>