outbound.vue 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403
  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. deliveryNo: this.formData.sourceBizNo,
  1050. builders: this.detailList.map((item) => {
  1051. return {
  1052. categoryId:
  1053. item.categoryId || item.instanceId || item.productId,
  1054. num: item.demandQuantity || item.measurementCount,
  1055. warehouseId: this.bizType == 11 ? item.warehouseId : '',
  1056. batchNo: item.batchNo || ''
  1057. };
  1058. })
  1059. };
  1060. let pData2 = {
  1061. type: this.wwType,
  1062. deliveryNo: this.formData.sourceBizNo,
  1063. taskIds: this.extractedList.map((item) => item.taskId),
  1064. workOrderIds: this.extractedList.map((item) => item.workOrderId),
  1065. };
  1066. let pData3 = {
  1067. //销售退货处理 外协出库
  1068. type: 3,
  1069. deliveryNo: this.formData.sourceBizNo,
  1070. outInIds: this.form?.returnInReceiptId?.split(','),
  1071. packageNos: this.detailList.map((item) => item.packageNo)
  1072. };
  1073. let pData4 = {
  1074. //受托退货
  1075. type: 3,
  1076. deliveryNo: this.formData.sourceBizNo,
  1077. ids: this.detailList.map((item) => item.packageId)?.toString()
  1078. };
  1079. let api = this.bizType == 8 ? 'getHierarchyList' : 'getHierarchyFifo';
  1080. storageApi[api](
  1081. this.wwType == 3
  1082. ? pData2
  1083. : this.bizType == 6
  1084. ? pData3
  1085. : this.bizType == 8
  1086. ? pData4
  1087. : pData
  1088. )
  1089. .then((data) => {
  1090. this.detailData(data, this.dimension);
  1091. })
  1092. .catch((err) => {
  1093. console.log(err);
  1094. });
  1095. return;
  1096. }
  1097. // 销售相关逻辑
  1098. if (this.saleProductList?.length > 0) {
  1099. this.formData.clientName = this.form.contactName;
  1100. this.formData.clientCode = this.form.contactCode;
  1101. // 获取领料人列表
  1102. this.getStaffList({ id: this.form.deptId }).then(() => {
  1103. // 获取领料人和领料部门
  1104. this.formData.fromId = this.form.makerId;
  1105. this.formData.fromUser = this.form.makerName;
  1106. this.formData.extInfo.verifyDeptCode = this.form.deptId;
  1107. this.formData.extInfo.verifyDeptName = this.form.deptName;
  1108. });
  1109. console.log(this.saleProductList, 'this.saleProductList11111');
  1110. let pData = {
  1111. type: '1',
  1112. deliveryNo: this.formData.sourceBizNo,
  1113. builders: this.saleProductList.map((item) => {
  1114. return {
  1115. categoryId: item.productId || item.categoryId,
  1116. num: item.totalCount,
  1117. // warehouseId: this.bizType == 3 ? item.warehouseId : ''
  1118. batchNo: item.batchNo || '',
  1119. };
  1120. })
  1121. };
  1122. let pData2 = {
  1123. type: this.wwType,
  1124. deliveryNo: this.formData.sourceBizNo,
  1125. taskIds: this.extractedList.map((item) => item.taskId),
  1126. workOrderIds: this.extractedList.map((item) => item.workOrderId)
  1127. };
  1128. console.log('111~~~~~~~~', pData)
  1129. storageApi
  1130. .getHierarchyFifo(this.wwType == 3 ? pData2 : pData)
  1131. .then((data) => {
  1132. this.detailData(data, this.dimension);
  1133. })
  1134. .catch((err) => {
  1135. console.log(err);
  1136. });
  1137. return;
  1138. }
  1139. //采购委外
  1140. if (this.form.productList?.length > 0) {
  1141. this.getStaffList({ id: this.form.deptId }).then(() => {
  1142. this.formData.fromId = this.form.makerId;
  1143. this.formData.fromUser = this.form.makerName;
  1144. this.formData.extInfo.verifyDeptCode = this.form.deptId;
  1145. this.formData.extInfo.verifyDeptName = this.form.deptName;
  1146. });
  1147. console.log(this.saleProductList, 'this.saleProductList22222');
  1148. let pData = {
  1149. type: '1',
  1150. builders: this.form.productList.map((item) => {
  1151. return {
  1152. categoryId: item.productId,
  1153. num: item.totalCount,
  1154. price: item.totalPrice,
  1155. unitPrice: item.singlePrice,
  1156. weight: item.singleWeight * item.totalCount || 0,
  1157. batchNo: item.batchNo || '',
  1158. taskId: item.taskId || ''
  1159. };
  1160. })
  1161. };
  1162. let pData2 = {
  1163. type: 3,
  1164. taskIds: this.form.productList.map((item) => item.taskId),
  1165. workOrderIds: [this.form.sourceId]
  1166. };
  1167. storageApi
  1168. .getHierarchyFifo(this.form.sourceId ? pData2 : pData)
  1169. .then((data) => {
  1170. this.detailData(data, this.dimension);
  1171. })
  1172. .catch((err) => {
  1173. console.log(err);
  1174. });
  1175. }
  1176. // if (this.form.productList?.length > 0) {
  1177. // this.getStaffList({ id: this.form.deptId }).then(() => {
  1178. // this.formData.fromId = this.form.makerId;
  1179. // this.formData.fromUser = this.form.makerName;
  1180. // this.formData.extInfo.verifyDeptCode = this.form.deptId;
  1181. // this.formData.extInfo.verifyDeptName = this.form.deptName;
  1182. // });
  1183. // let pData = {
  1184. // type: '1',
  1185. // builders: this.form.productList.map((item) => {
  1186. // return {
  1187. // categoryId: item.productId,
  1188. // num: item.totalCount,
  1189. // price: item.totalPrice,
  1190. // unitPrice: item.singlePrice,
  1191. // weight: item.singleWeight * item.totalCount || 0,
  1192. // batchNo: item.batchNo || '',
  1193. // taskId: item.taskId || ''
  1194. // };
  1195. // })
  1196. // };
  1197. // let pData2 = {
  1198. // type: 3,
  1199. // taskIds: this.form.productList.map((item) => item.taskId),
  1200. // workOrderIds: [this.form.sourceId]
  1201. // };
  1202. // storageApi
  1203. // .getHierarchyFifo(this.form.sourceId ? pData2 : pData)
  1204. // .then((data) => {
  1205. // this.detailData(data, this.dimension);
  1206. // })
  1207. // .catch((err) => {
  1208. // console.log(err);
  1209. // });
  1210. // }
  1211. },
  1212. // 初始化部门数据
  1213. initDeptData() {
  1214. return new Promise(async (resolve) => {
  1215. const res = await warehouseDefinition.tree();
  1216. this.treeList = this.$util.toTreeData({
  1217. data: res,
  1218. idField: 'id',
  1219. parentIdField: 'parentId'
  1220. });
  1221. this.$nextTick(() => {
  1222. resolve();
  1223. });
  1224. });
  1225. },
  1226. addStock() {
  1227. console.log(this.formData.extInfo.assetType);
  1228. if (
  1229. !(
  1230. this.formData.extInfo.assetType &&
  1231. this.formData.extInfo.assetType.length > 0
  1232. )
  1233. )
  1234. return this.$message.error('请选择出库产品类型');
  1235. if (!this.formData.bizType && this.formData.bizType !== 0)
  1236. return this.$message.error('请选择出库场景');
  1237. this.$refs.assetsDialogRef.open(this.productList);
  1238. },
  1239. handleBizSceneChange() {
  1240. if (this.formData.extInfo.assetType == 7) {
  1241. this.formData.extInfo.sourceBizNo = '';
  1242. }
  1243. this.formData.sourceBizNo = '';
  1244. },
  1245. deleteProductList(row, index) {
  1246. // 1. 获取当前物料的所有包装列表
  1247. const targetPackages = row.outInDetailRecordRequestList || [];
  1248. const packageIds = new Set(targetPackages.map((p) => p.id));
  1249. console.log('targetPackages', targetPackages);
  1250. console.log('packageIds包装的id', packageIds);
  1251. // 从packingList中移除相关包装
  1252. this.packingList = this.packingList.filter(
  1253. (p) => !packageIds.has(p.id) && p.categoryCode !== row.categoryCode
  1254. );
  1255. console.log('包装列表', this.packingList);
  1256. // 从materialList中移除关联物料
  1257. const materialIds = new Set();
  1258. targetPackages.forEach((packageItem) => {
  1259. packageItem.materialDetailList.forEach((material) => {
  1260. materialIds.add(material.id);
  1261. });
  1262. });
  1263. this.materialList = this.materialList.filter(
  1264. (m) => !materialIds.has(m.id) && m.categoryCode !== row.categoryCode
  1265. );
  1266. this.productList.splice(index, 1);
  1267. // this.$nextTick(() => {
  1268. // this.$refs.productListTable?.doLayout()
  1269. // this.$refs.showPackingListTable?.doLayout()
  1270. // this.$refs.multipleTable?.doLayout()
  1271. // })
  1272. }
  1273. },
  1274. watch: {
  1275. packingList: {
  1276. handler(newVal) {
  1277. console.log('包装列表', newVal);
  1278. console.log('当前包装列表加载页数2', this.pickingPageNum);
  1279. this.showPackingList = newVal.slice(
  1280. 0,
  1281. this.pageSize * (this.pickingPageNum > 0 ? this.pickingPageNum : 1)
  1282. );
  1283. },
  1284. deep: true
  1285. },
  1286. materialList: {
  1287. handler(newVal) {
  1288. console.log('物料列表', newVal);
  1289. console.log('当前物料列表加载页数', this.materielPageNum);
  1290. this.showMaterialList = newVal.slice(
  1291. 0,
  1292. this.pageSize *
  1293. (this.materielPageNum > 0 ? this.materielPageNum : 1)
  1294. );
  1295. },
  1296. deep: true
  1297. }
  1298. // detailList: {
  1299. // handler(newVal) {
  1300. // if (newVal.length) {
  1301. // this.initFormData();
  1302. // }
  1303. // },
  1304. // deep: true
  1305. // }
  1306. }
  1307. };
  1308. </script>
  1309. <style lang="scss" scoped>
  1310. ::v-deep .el-row {
  1311. display: flex;
  1312. flex-wrap: wrap;
  1313. }
  1314. ::v-deep.form-table {
  1315. .el-form-item {
  1316. margin-bottom: 0;
  1317. }
  1318. .el-input__inner {
  1319. padding: 0 10px;
  1320. }
  1321. }
  1322. .p20 {
  1323. padding: 20px;
  1324. }
  1325. .el-select,
  1326. .el-date-editor {
  1327. width: 100%;
  1328. }
  1329. .el-form-item {
  1330. margin-bottom: 22px;
  1331. }
  1332. .material {
  1333. margin-top: 20px;
  1334. .flex {
  1335. display: flex;
  1336. justify-content: space-between;
  1337. font-size: 14px;
  1338. align-items: center;
  1339. .red {
  1340. color: #ff4949;
  1341. }
  1342. }
  1343. }
  1344. .mt10 {
  1345. margin-top: 10px;
  1346. }
  1347. .mt20 {
  1348. margin-top: 20px;
  1349. }
  1350. .center {
  1351. text-align: center;
  1352. }
  1353. </style>