tranManagementShippingArrangemen.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526
  1. // 船次管理
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="20">
  6. <h2 class="bg-left title">船次管理</h2>
  7. </el-col>
  8. <el-col :span="4" class="bg-right">
  9. <el-button
  10. class="bg-bottom"
  11. type="primary"
  12. size="small"
  13. @click="revert()"
  14. >
  15. <img
  16. width="6"
  17. height="10"
  18. style="vertical-align: bottom; margin-right: 3px"
  19. src="../../../public/img/lujing.png"
  20. alt
  21. />返回
  22. </el-button>
  23. </el-col>
  24. </el-row>
  25. <div class="center">
  26. <ws-form
  27. ref="deptBudgetList"
  28. :model="deptBudgetList"
  29. :rules="rules"
  30. class="position"
  31. >
  32. <div class="basicInformation">
  33. <div class="small-title" style="font-size: 16px">任务详情</div>
  34. <ws-info-table>
  35. <ws-form-item label="任务编号" span="1" prop="processNo">{{
  36. deptBudgetList.processNo
  37. }}</ws-form-item>
  38. <ws-form-item label="货名" span="1" prop="goodsName">{{
  39. deptBudgetList.goodsName
  40. }}</ws-form-item>
  41. <ws-form-item label="重量(吨)" span="1" prop="weight">{{
  42. deptBudgetList.weight
  43. }}</ws-form-item>
  44. <ws-form-item
  45. label="发货地址"
  46. span="1"
  47. prop="sendDetailedAddress"
  48. >{{deptBudgetList.sendPrivate}}{{deptBudgetList.sendCity}}{{deptBudgetList.sendArea}}{{ deptBudgetList.sendDetailedAddress }}</ws-form-item
  49. >
  50. <ws-form-item label="发货人" span="1" prop="sender">{{
  51. deptBudgetList.sender
  52. }}</ws-form-item>
  53. <ws-form-item label="发货人电话" span="1" prop="senderPhone">{{
  54. deptBudgetList.senderPhone
  55. }}</ws-form-item>
  56. <ws-form-item
  57. label="收货地址"
  58. span="1"
  59. prop="receiveDetailedAddress"
  60. >{{deptBudgetList.receivePrivate}}{{deptBudgetList.receiveCity}}{{deptBudgetList.receiveArea}}{{ deptBudgetList.receiveDetailedAddress }}</ws-form-item
  61. >
  62. <ws-form-item label="收货人" span="1" prop="receiver">{{
  63. deptBudgetList.receiver
  64. }}</ws-form-item>
  65. <ws-form-item label="收货人电话" span="1" prop="receiverPhone">{{
  66. deptBudgetList.receiverPhone
  67. }}</ws-form-item>
  68. <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">{{
  69. deptBudgetList.deliveryDateStart
  70. }}</ws-form-item>
  71. <ws-form-item
  72. label="最晚到货日期"
  73. span="1"
  74. prop="deliveryDateEnd"
  75. >{{ deptBudgetList.deliveryDateEnd }}</ws-form-item
  76. >
  77. <ws-form-item label="合同编号" span="1" prop="contractNo">{{
  78. deptBudgetList.contractNo
  79. }}</ws-form-item>
  80. </ws-info-table>
  81. <div class="small-title" style="font-size: 16px">联络员及航次</div>
  82. <div class="myTest">
  83. <!--当前运输总价-->
  84. <el-form-item label="当前运输总价(元/吨):" span="1" prop="tranPrice" >
  85. <el-input
  86. v-model="deptBudgetList.tranPrice"
  87. maxlength="70"
  88. disabled
  89. size="small"
  90. style="width:70px"
  91. />
  92. </el-form-item>
  93. <!--审核中的运输总价-->
  94. <el-form-item label="审核中的运输总价(元/吨):" span="1" prop="tranPriceIng">
  95. <el-input
  96. v-if="deptBudgetList.priceStatus=='审核中'"
  97. :disabled="readonly"
  98. v-model="deptBudgetList.tranPriceIng"
  99. maxlength="70"
  100. size="small"
  101. style="width:70px"
  102. />
  103. <el-input
  104. v-else
  105. v-model="deptBudgetList.tranPriceIng"
  106. maxlength="70"
  107. size="small"
  108. style="width:70px"
  109. />
  110. </el-form-item>
  111. <div style="">
  112. <el-button
  113. v-if="deptBudgetList.priceStatus=='审核中'"
  114. type="primary"
  115. v-hasPermission="`transportationTask.transportation.transportationInfo.ship`"
  116. size="small"
  117. @click="examine()"
  118. >审核中</el-button
  119. >
  120. <el-button
  121. v-else
  122. type="primary"
  123. size="small"
  124. @click="priceSubmit()"
  125. >提交</el-button
  126. >
  127. </div>
  128. </div>
  129. <div
  130. class="position siji"
  131. v-for="(item, index) in deptBudgetList.tranCarInfoList"
  132. :key="index"
  133. >
  134. <div class="zhong" v-show="index==0">
  135. <ws-form-item label="姓名" span="1" prop="driver">
  136. <el-select
  137. v-if="item.id != null"
  138. :disabled="readonly"
  139. v-model="item.driver"
  140. placeholder="请选择姓名"
  141. filterable
  142. :filter-method="dataFilter"
  143. @change="selectstaff"
  144. size="small"
  145. >
  146. <el-option
  147. v-for="item in options"
  148. :key="item.value"
  149. :label="item.staffName"
  150. :value="item.staffName"
  151. />
  152. </el-select>
  153. <el-select
  154. v-else
  155. v-model="item.driver"
  156. placeholder="请选择姓名"
  157. filterable
  158. :filter-method="dataFilter"
  159. @change="selectstaff"
  160. size="small"
  161. >
  162. <el-option
  163. v-for="item in options"
  164. :key="item.value"
  165. :label="item.staffName"
  166. :value="item.staffName"
  167. />
  168. </el-select>
  169. </ws-form-item>
  170. <ws-form-item
  171. label="电话"
  172. span="1"
  173. prop="driverPhone"
  174. class="biao"
  175. >
  176. <ws-input
  177. v-if="item.id != null"
  178. :disabled="readonly"
  179. :readonly="true"
  180. v-model="item.driverPhone"
  181. placeholder="请输入电话"
  182. maxlength="20"
  183. size="small"
  184. class="ys"
  185. />
  186. <ws-input
  187. v-else
  188. :readonly="true"
  189. v-model="item.driverPhone"
  190. placeholder="请输入电话"
  191. maxlength="20"
  192. size="small"
  193. class="ys"
  194. />
  195. </ws-form-item>
  196. <ws-form-item
  197. label="发船日期"
  198. span="1"
  199. prop="sendDateStart"
  200. class="biao2"
  201. >
  202. <ws-date-picker
  203. v-if="item.id != null"
  204. :disabled="readonly"
  205. v-model="item.sendDateStart"
  206. type="date"
  207. placeholder="请选择发船日期"
  208. value-format="yyyy-MM-dd"
  209. class="small"
  210. />
  211. <ws-date-picker
  212. v-else
  213. v-model="item.sendDateStart"
  214. type="date"
  215. placeholder="请选择发船日期"
  216. value-format="yyyy-MM-dd"
  217. class="small"
  218. />
  219. </ws-form-item>
  220. <ws-form-item
  221. label="预计到港日期"
  222. span="1"
  223. prop="receiveDateEnd"
  224. class="biao3"
  225. >
  226. <ws-date-picker
  227. v-if="item.id != null"
  228. :disabled="readonly"
  229. v-model="item.receiveDateEnd"
  230. type="date"
  231. placeholder="请选择发货日期"
  232. value-format="yyyy-MM-dd"
  233. class="small"
  234. />
  235. <ws-date-picker
  236. v-else
  237. v-model="item.receiveDateEnd"
  238. type="date"
  239. placeholder="请选择发货日期"
  240. value-format="yyyy-MM-dd"
  241. class="small"
  242. />
  243. </ws-form-item>
  244. <ws-form-item label="航次" span="1" prop="shipNo" class="biao4">
  245. <ws-input
  246. v-model="item.shipNo"
  247. placeholder="请选择航次"
  248. maxlength="100"
  249. size="small"
  250. class="ys"
  251. ></ws-input>
  252. </ws-form-item>
  253. <ws-form-item label="船名" span="1" prop="shipName" class>
  254. <ws-input
  255. v-model="item.shipName"
  256. placeholder="请输入船名"
  257. maxlength="100"
  258. size="small"
  259. class="ys"
  260. ></ws-input>
  261. </ws-form-item>
  262. <ws-form-item label="类型" span="1" prop="shipType" class="biao5">
  263. <ws-select
  264. v-model="item.shipType"
  265. placeholder="请输入"
  266. class="ys"
  267. v-if="item.id != null"
  268. :disabled="readonly"
  269. >
  270. <ws-option
  271. v-for="items in shipType"
  272. :key="items.constKey"
  273. :label="items.constValue"
  274. :value="items.constValue"
  275. />
  276. </ws-select>
  277. <ws-select
  278. v-model="item.shipType"
  279. placeholder="请输入"
  280. class="ys"
  281. v-else
  282. >
  283. <ws-option
  284. v-for="items in shipType"
  285. :key="items.constKey"
  286. :label="items.constValue"
  287. :value="items.constValue"
  288. />
  289. </ws-select>
  290. </ws-form-item>
  291. <ws-form-item
  292. label="数量"
  293. span="1"
  294. prop="boxNumber"
  295. class="biao6"
  296. v-show="item.shipType == '集装箱'"
  297. >
  298. <ws-input
  299. v-if="item.id != null"
  300. :disabled="readonly"
  301. v-model="item.boxNumber"
  302. placeholder="请输入数量"
  303. class="ys"
  304. ></ws-input>
  305. <ws-input
  306. v-else
  307. v-model="item.boxNumber"
  308. placeholder="请输入数量"
  309. class="ys"
  310. ></ws-input>
  311. </ws-form-item>
  312. <ws-form-item
  313. label="仓位号"
  314. span="1"
  315. prop="binNumber"
  316. v-show="item.shipType == '散船'"
  317. class="biao6"
  318. >
  319. <ws-input
  320. v-if="item.id != null"
  321. :disabled="readonly"
  322. v-model="item.binNumber"
  323. placeholder="请输入仓位号"
  324. maxlength="100"
  325. size="small"
  326. style="width: 110px"
  327. ></ws-input>
  328. <ws-input
  329. v-else
  330. v-model="item.binNumber"
  331. placeholder="请输入仓位号"
  332. maxlength="100"
  333. size="small"
  334. style="width: 110px"
  335. ></ws-input>
  336. </ws-form-item>
  337. <ws-form-item
  338. label="重量(吨)"
  339. span="1"
  340. prop="positionWeight"
  341. v-show="item.shipType == '散船'"
  342. class="biao7"
  343. >
  344. <ws-input
  345. v-if="item.id != null"
  346. :disabled="readonly"
  347. v-model="item.positionWeight"
  348. placeholder="请输入重量"
  349. maxlength="100"
  350. size="small"
  351. class="ys"
  352. ></ws-input>
  353. <ws-input
  354. v-else
  355. v-model="item.positionWeight"
  356. placeholder="请输入重量"
  357. maxlength="100"
  358. size="small"
  359. class="ys"
  360. ></ws-input>
  361. </ws-form-item>
  362. </div>
  363. <div class="zhong-other" v-show="index!=0">
  364. <ws-form-item
  365. label="仓位号"
  366. span="1"
  367. prop="binNumber"
  368. v-show="item.shipType == '散船'"
  369. class="item"
  370. >
  371. <ws-input
  372. v-if="item.id != null"
  373. :disabled="readonly"
  374. v-model="item.binNumber"
  375. placeholder="请输入仓位号"
  376. maxlength="100"
  377. size="small"
  378. style="width: 110px"
  379. ></ws-input>
  380. <ws-input
  381. v-else
  382. v-model="item.binNumber"
  383. placeholder="请输入仓位号"
  384. maxlength="100"
  385. size="small"
  386. style="width: 110px"
  387. ></ws-input>
  388. </ws-form-item>
  389. <ws-form-item
  390. label="重量(吨)"
  391. span="1"
  392. prop="positionWeight"
  393. v-show="item.shipType == '散船'"
  394. class="item"
  395. >
  396. <ws-input
  397. v-if="item.id != null"
  398. :disabled="readonly"
  399. v-model="item.positionWeight"
  400. placeholder="请输入重量"
  401. maxlength="100"
  402. size="small"
  403. style="width: 110px"
  404. ></ws-input>
  405. <ws-input
  406. v-else
  407. v-model="item.positionWeight"
  408. placeholder="请输入重量"
  409. maxlength="100"
  410. size="small"
  411. style="width: 110px"
  412. ></ws-input>
  413. </ws-form-item>
  414. </div>
  415. <span
  416. v-if="(item.status == '未装车'&& item.shipType == '散船') || item.status == null"
  417. width="22"
  418. height="22"
  419. class="del"
  420. @click="del(index, item)"
  421. src="../../../public/img/del.png"
  422. alt=""
  423. >×</span>
  424. </div>
  425. <div style="text-align: right; color: #8890b1; font-size: 16px; margin-right: -40%" v-show="deptBudgetList.tranCarInfoList[0].shipType == '散船'">
  426. 共{{ total }}/{{ deptBudgetList.weight }}
  427. </div>
  428. <el-button
  429. class="add bg-bottom"
  430. type="primary"
  431. size="small"
  432. @click="add"
  433. v-show="deptBudgetList.tranCarInfoList[0].shipType == '散船'"
  434. >
  435. <img width="22" height="22" src="../../../public/img/add.png" alt />
  436. <div class="spans">添加仓位</div>
  437. </el-button>
  438. </div>
  439. </ws-form>
  440. <div style="text-align: right; padding: 10px">
  441. <el-button
  442. class="bg-bottom-up"
  443. type="primary"
  444. size="small"
  445. @click="submit()"
  446. >提交</el-button
  447. >
  448. </div>
  449. </div>
  450. </div>
  451. </template>
  452. <script>
  453. import { shippingLook, packList, dispatchCat ,delhaulagestage,setUpTranPrice} from '@/model/transport/index'
  454. import { getstaff } from '@/model/warehouse/index'
  455. import Pagination from '@/components/Pagination'
  456. import WsUpload from '@/components/WsUpload'
  457. import { dayjs } from 'base-core-lib'
  458. export default {
  459. name: 'viewSpareMoney',
  460. components: {
  461. WsUpload,
  462. Pagination,
  463. },
  464. watch: {
  465. vesselId(val) {
  466. this.getList()
  467. },
  468. isShow(val) {
  469. this.showType = val
  470. },
  471. },
  472. data() {
  473. return {
  474. //弹出框
  475. dialogViewSpareMoney: false,
  476. dialogApproveFormVisible: false,
  477. // 船舶类型
  478. monetaryKey: null,
  479. // 表格显示数据
  480. tableDate: [],
  481. // 是否显示
  482. showType: true,
  483. // 年
  484. year: '',
  485. item: [],
  486. shipType: [],
  487. tranType: 3,
  488. deptBudgetTotal: 0,
  489. currentPage: 1,
  490. pageSize: 10,
  491. searchType: 1,
  492. searchKeyWord: '',
  493. contractType: 2,
  494. startDate: null,
  495. endDate: null,
  496. goodnameList: {},
  497. // 提交类型
  498. submitType: true,
  499. storageType: [],
  500. readonly: true,
  501. appendixIdsAdd: '',
  502. uploadSuccess: {},
  503. onChange: {},
  504. selectedOptions: [],
  505. options: [],
  506. tranCarInfoList: {},
  507. staffList: [],
  508. gradeList: [],
  509. rules: {
  510. netWeight: [
  511. {
  512. required: true,
  513. type: 'number',
  514. message: '请输入活动名称',
  515. trigger: 'blur',
  516. },
  517. ],
  518. },
  519. arr: [],
  520. freightspace: [
  521. // {
  522. // impurity:'',
  523. // },
  524. ],
  525. size: 10,
  526. compId: sessionStorage.getItem('ws-pf_compId'),
  527. deptCircularPage: {},
  528. packtypeList: {},
  529. date: {
  530. year: dayjs().format('YYYY'),
  531. month: dayjs().format('MM'),
  532. },
  533. contractList: [],
  534. deptBudgetList: {
  535. warehouseInOutDetail: {},
  536. },
  537. historyList: [],
  538. pickerBeginDateBefore: {
  539. disabledDate: (time) => {
  540. return time.getTime() > Date.now()
  541. },
  542. },
  543. accessoryTFs: false,
  544. }
  545. },
  546. mounted() {
  547. this.getList()
  548. },
  549. activated() {
  550. this.loaddata()
  551. this.getList()
  552. },
  553. computed: {
  554. totalStorage: function () {
  555. var maxStorage = 0
  556. for (var i = 0; i < this.freightspace.length; i++) {
  557. maxStorage += Number(this.freightspace[i].maxStorage)
  558. }
  559. return maxStorage
  560. },
  561. total: function () {
  562. if (this.deptBudgetList.tranCarInfoList.length > 0) {
  563. var maxStorage = 0
  564. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  565. maxStorage += Number(
  566. this.deptBudgetList.tranCarInfoList[i].positionWeight
  567. )
  568. }
  569. return maxStorage
  570. }
  571. },
  572. },
  573. methods: {
  574. getList() {
  575. getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
  576. .toPromise()
  577. .then((response) => {
  578. this.options = response
  579. this.staffList = response
  580. })
  581. //类型
  582. packList({ constId: 'TRAN4' })
  583. .toPromise()
  584. .then((response) => {
  585. this.shipType = response
  586. })
  587. },
  588. dataFilter(val) {
  589. this.deptBudgetList.personCharge = val
  590. if (val) {
  591. console.log(val)
  592. this.options = this.staffList.filter((item) => {
  593. if (
  594. !!~item.staffName.indexOf(val) ||
  595. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  596. ) {
  597. return true
  598. }
  599. })
  600. } else {
  601. this.options = this.staffList
  602. }
  603. },
  604. selectstaff(e) {
  605. for (var i = 0; i < this.staffList.length; i++) {
  606. if (this.staffList[i].staffName == e) {
  607. this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
  608. this.deptBudgetList.tranCarInfoList[0].driverPhone =
  609. this.staffList[i].staffMobilePhone
  610. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  611. }
  612. }
  613. },
  614. loaddata() {
  615. shippingLook({ id: this.$route.query.id })
  616. .toPromise()
  617. .then((response) => {
  618. this.deptBudgetList = response
  619. if (response.tranCarInfoList.length > 0) {
  620. if(response.tranCarInfoList[0].shipType =='集装箱') {
  621. this.deptBudgetList.tranCarInfoList=[this.deptBudgetList.tranCarInfoList[0]]
  622. }
  623. // for (
  624. // var i = 0;
  625. // i < this.deptBudgetList.tranCarInfoList.length;
  626. // i++
  627. // ) {
  628. // var num = this.deptBudgetList.tranCarInfoList[
  629. // i
  630. // ].positionWeight.split(',')
  631. // for (var j = 0; j < num.length; j++) {
  632. // var num2 = num[j].split('/')
  633. // this.freightspace.push({
  634. // impurity: num2[i],
  635. // positionWeight: num2[num2.length - 1]
  636. // })
  637. // }
  638. // }
  639. } else {
  640. this.deptBudgetList.tranCarInfoList = [
  641. {
  642. driver: '',
  643. driverPhone: '',
  644. sendDateStart: '',
  645. receiveDateEnd: '',
  646. shipNo: '',
  647. shipName: '',
  648. shipType: '',
  649. boxNumber: '',
  650. positionWeight: '',
  651. binNumber: '',
  652. tranType: '3',
  653. },
  654. ]
  655. }
  656. })
  657. },
  658. //返回按钮
  659. revert() {
  660. this.freightspace = []
  661. this.$router.go(-1)
  662. },
  663. del(index, row) {
  664. if(row.status == null){
  665. if (this.deptBudgetList.tranCarInfoList.length > 1) {
  666. this.deptBudgetList.tranCarInfoList.splice(index, 1)
  667. }
  668. }else{
  669. this.$confirm('船次信息删除后不可恢复,是否确定删除?', '提示', {
  670. confirmButtonText: '确定',
  671. cancelButtonText: '取消',
  672. type: 'warning',
  673. }).then(() => {
  674. delhaulagestage({ id: row.id })
  675. .toPromise()
  676. .then((response) => {
  677. this.$message.success('删除成功')
  678. if (this.deptBudgetList.tranCarInfoList.length > 1) {
  679. this.deptBudgetList.tranCarInfoList.splice(index, 1)
  680. }
  681. })
  682. })
  683. }
  684. },
  685. add() {
  686. this.deptBudgetList.tranCarInfoList.push({
  687. driver: this.deptBudgetList.tranCarInfoList[0].driver,
  688. driverPhone: this.deptBudgetList.tranCarInfoList[0].driverPhone,
  689. sendDateStart: this.deptBudgetList.tranCarInfoList[0].sendDateStart,
  690. receiveDateEnd: this.deptBudgetList.tranCarInfoList[0].receiveDateEnd,
  691. shipNo: this.deptBudgetList.tranCarInfoList[0].shipNo,
  692. shipName: this.deptBudgetList.tranCarInfoList[0].shipName,
  693. shipType: this.deptBudgetList.tranCarInfoList[0].shipType,
  694. binNumber: '',
  695. positionWeight: '',
  696. tranType: '3',
  697. })
  698. },
  699. selectdriver() {},
  700. handleChange(value) {
  701. this.selectedOptions = value
  702. },
  703. returnsales() {
  704. this.deptBudgetList = {}
  705. this.freightspace = []
  706. this.selectedOptions = ''
  707. this.$router.push({ path: 'tranManagementShipping' })
  708. },
  709. //审核
  710. examine(){
  711. this.$prompt('运输单价审核', {
  712. cancelButtonText: '取消',
  713. confirmButtonText: '确定',
  714. }).then(({ value }) => {
  715. var tranProcessInfo = {}
  716. tranProcessInfo.reviewer = sessionStorage.getItem('ws-pf_roleName') +
  717. sessionStorage.getItem('ws-pf_staffName')
  718. tranProcessInfo.id = this.deptBudgetList.id
  719. tranProcessInfo.flag = "2"
  720. tranProcessInfo.tranPriceIng = value
  721. tranProcessInfo.tranTypeKey = 2
  722. setUpTranPrice(tranProcessInfo)
  723. .toPromise()
  724. .then((response) => {
  725. this.$message.success('审核成功')
  726. this.getList()
  727. });
  728. }).catch(() => {
  729. this.$message.warning(
  730. '取消审核'
  731. );
  732. });
  733. },
  734. priceSubmit(){
  735. this.$confirm(`运输单价将发送给决策人审核,确定提交?`, {
  736. cancelButtonText: '取消',
  737. confirmButtonText: '确定',
  738. type: 'warning',
  739. })
  740. .then(() => {
  741. var tranProcessInfo = {}
  742. tranProcessInfo.id = this.deptBudgetList.id
  743. tranProcessInfo.flag = "1"
  744. tranProcessInfo.tranPriceIng = this.deptBudgetList.tranPriceIng
  745. tranCarInfo.tranTypeKey = 3
  746. setUpTranPrice(tranProcessInfo)
  747. .toPromise()
  748. .then((response) => {
  749. this.$message.success('提交成功')
  750. this.getList()
  751. })
  752. })
  753. .catch(() => {
  754. return false
  755. })
  756. },
  757. //提交按钮
  758. submit() {
  759. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  760. if (!this.deptBudgetList.tranCarInfoList[i].driver) {
  761. this.$message({
  762. message: '名字不为空',
  763. type: 'warning',
  764. })
  765. return
  766. }
  767. if (!this.deptBudgetList.tranCarInfoList[i].driverPhone) {
  768. this.$message({
  769. message: '电话号不为空',
  770. type: 'warning',
  771. })
  772. return
  773. }
  774. if (!this.deptBudgetList.tranCarInfoList[i].sendDateStart) {
  775. this.$message({
  776. message: '发船时间不能为空',
  777. type: 'warning',
  778. })
  779. return
  780. }
  781. if (!this.deptBudgetList.tranCarInfoList[i].receiveDateEnd) {
  782. this.$message({
  783. message: '预计到港时间不能为空',
  784. type: 'warning',
  785. })
  786. return
  787. }
  788. if (!this.deptBudgetList.tranCarInfoList[i].shipName) {
  789. this.$message({
  790. message: '船名不能为空',
  791. type: 'warning',
  792. })
  793. return
  794. }
  795. if (!this.deptBudgetList.tranCarInfoList[i].shipNo) {
  796. this.$message({
  797. message: '航次不能为空',
  798. type: 'warning',
  799. })
  800. return
  801. }
  802. if (this.deptBudgetList.tranCarInfoList[i].shipType == '集装箱') {
  803. if (!this.deptBudgetList.tranCarInfoList[i].boxNumber) {
  804. this.$message({
  805. message: '数量不能为空',
  806. type: 'warning',
  807. })
  808. return
  809. }
  810. }
  811. if (!this.deptBudgetList.tranCarInfoList[i].shipType) {
  812. this.$message({
  813. message: '类型不能为空',
  814. type: 'warning',
  815. })
  816. return
  817. }
  818. // console.log(this.freightspace,"仓位号")
  819. if (this.deptBudgetList.tranCarInfoList[i].shipType == '散船') {
  820. if (!this.deptBudgetList.tranCarInfoList[i].binNumber) {
  821. this.$message({
  822. message: '仓位号不能为空',
  823. type: 'warning',
  824. })
  825. return
  826. }
  827. if (!this.deptBudgetList.tranCarInfoList[i].positionWeight) {
  828. this.$message({
  829. message: '重量不能为空',
  830. type: 'warning',
  831. })
  832. return
  833. }
  834. }
  835. if (
  836. new Date(
  837. this.deptBudgetList.tranCarInfoList[0].sendDateStart
  838. ).getTime() >
  839. new Date(
  840. this.deptBudgetList.tranCarInfoList[0].receiveDateEnd
  841. ).getTime()
  842. ) {
  843. this.$message({
  844. message: '发船时间不能大于最晚到到港时间!',
  845. type: 'warning',
  846. })
  847. return
  848. }
  849. }
  850. this.$confirm(`提交成功后,任务将下发给相关人员,是否确定提交?`, {
  851. cancelButtonText: '取消',
  852. confirmButtonText: '确定',
  853. type: 'warning',
  854. })
  855. .then(() => {
  856. this.$refs.deptBudgetList.validate((valid) => {
  857. if (valid) {
  858. this.deptBudgetList.totalStorage = this.totalStorage
  859. var tranCarInfo = {}
  860. tranCarInfo.id = this.deptBudgetList.id
  861. tranCarInfo.infoId = this.deptBudgetList.infoId
  862. tranCarInfo.tranCarInfoList = this.deptBudgetList.tranCarInfoList
  863. dispatchCat(tranCarInfo)
  864. .toPromise()
  865. .then((response) => {
  866. this.$message.success('提交成功')
  867. this.deptBudgetList = {}
  868. this.freightspace = {}
  869. this.selectedOptions = ''
  870. this.$router.go(-1)
  871. })
  872. } else {
  873. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  874. return false
  875. }
  876. })
  877. })
  878. .catch(() => {
  879. return false
  880. })
  881. },
  882. handleClose() {
  883. this.accessoryTFs = false
  884. },
  885. handleSizeChange(val) {
  886. console.log(`每页 ${val} 条`)
  887. this.pageSize = val
  888. this.getList()
  889. },
  890. handleCurrentChange(val) {
  891. this.currentPage = val
  892. console.log(`当前页: ${val}`)
  893. this.getList()
  894. },
  895. selecttaskType(e) {
  896. for (var i = 0; i < this.taskTypeList.length; i++) {
  897. if (this.taskTypeList[i].value == e) {
  898. this.searchType = this.taskTypeList[i].type
  899. }
  900. }
  901. },
  902. // approve() {},
  903. // listQuery() {}
  904. },
  905. }
  906. </script>
  907. <style lang="scss" scoped>
  908. .position {
  909. position: relative;
  910. }
  911. .el-button--primary {
  912. background-color: #5878e8;
  913. border-color: #5878e8;
  914. }
  915. .el-col {
  916. background: #f6f7fc;
  917. }
  918. .bg-right {
  919. text-align: right;
  920. padding: 16px 20px;
  921. }
  922. .center {
  923. width: 90%;
  924. // margin: 0 auto;
  925. }
  926. //表格文字
  927. /deep/.ws-info-table .el-form-item .el-form-item__label {
  928. text-align: left;
  929. font-size: 14px;
  930. font-weight: 400;
  931. color: #8890b1;
  932. line-height: 16px;
  933. }
  934. //蓝标
  935. .small-title {
  936. position: relative;
  937. padding: 10px;
  938. font-weight: 600;
  939. margin-left: 27px;
  940. }
  941. .position .zaizhong {
  942. width: 16%;
  943. }
  944. .bot {
  945. width: 30%;
  946. }
  947. //去边框
  948. /deep/.el-form-item {
  949. border-right: 0px;
  950. border-bottom: 0px;
  951. }
  952. /deep/.ws-info-table {
  953. border-left: 0px;
  954. border-top: 0px;
  955. }
  956. .ws-info-table .el-form-item .el-form-item__content {
  957. border-right: 0px;
  958. border-bottom: 0px;
  959. border-left: 0px;
  960. border-top: 0px;
  961. }
  962. /deep/.ws-info-table .el-form-item {
  963. border-right: 0px;
  964. border-bottom: 0px;
  965. border-left: 0px;
  966. border-top: 0px;
  967. }
  968. /deep/.ws-info-table .el-form-item .el-form-item__content {
  969. background: #f5f7fa;
  970. border-radius: 4px;
  971. font-family: PingFangSC-Regular, PingFang SC;
  972. margin-bottom: 5px;
  973. // background-color: #fff;
  974. font-size: 14px;
  975. font-weight: 400;
  976. color: #8890b1;
  977. line-height: 16px;
  978. }
  979. /deep/.ws-info-table .el-form-item .el-form-item__label {
  980. background-color: #fff;
  981. font-size: 14px;
  982. font-family: PingFangSC-Regular, PingFang SC;
  983. font-weight: 400;
  984. color: #8890b1;
  985. line-height: 16px;
  986. }
  987. .position {
  988. width: 90%;
  989. }
  990. //下表格样式
  991. .position.siji {
  992. background: white;
  993. border-radius: 4px;
  994. /* border: 1px solid #d8dce6; */
  995. width: 1219px;
  996. }
  997. /deep/.zi {
  998. width: 64px;
  999. height: 22px;
  1000. font-size: 16px;
  1001. font-family: PingFangSC-Semibold, PingFang SC;
  1002. font-weight: 600;
  1003. color: #323233;
  1004. line-height: 22px;
  1005. }
  1006. //表格文字
  1007. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1008. text-align: left;
  1009. font-size: 14px;
  1010. font-weight: 400;
  1011. color: #8890b1;
  1012. line-height: 16px;
  1013. }
  1014. //小标题文字
  1015. .small-title::before {
  1016. position: absolute;
  1017. content: '';
  1018. display: block;
  1019. background: #5473e8;
  1020. width: 4px;
  1021. height: 14px;
  1022. left: 0px;
  1023. top: 13px;
  1024. padding: 4px 2px;
  1025. }
  1026. /deep/.basicInformation {
  1027. .el-form-item {
  1028. width: 25%;
  1029. .el-form-item__label {
  1030. background: transparent;
  1031. border: none;
  1032. }
  1033. .el-form-item__content {
  1034. // border: none;
  1035. }
  1036. }
  1037. }
  1038. //添加仓位样式
  1039. .add {
  1040. width: 100px;
  1041. height: 34px;
  1042. background: #f6f7fb;
  1043. border-radius: 17px;
  1044. color: #5473e8;
  1045. font-size: 14px;
  1046. border: none;
  1047. margin-top: 8px;
  1048. }
  1049. .add img {
  1050. display: inline-block;
  1051. margin-top: 3px;
  1052. margin-left: -12px;
  1053. }
  1054. .add .spans {
  1055. display: table-caption;
  1056. width: 56px;
  1057. height: 20px;
  1058. line-height: 18px;
  1059. }
  1060. /deep/.xia {
  1061. width: 715px;
  1062. height: 54px;
  1063. border-radius: 4px;
  1064. border: 1px solid #d8dce6;
  1065. margin-top: 10px;
  1066. background: #f6f7fc;
  1067. border-radius: 4px;
  1068. margin-left: 24px;
  1069. }
  1070. .basicInformation .ws-info-table {
  1071. border: none;
  1072. width: 1000px;
  1073. }
  1074. /deep/.el-select .el-input__inner {
  1075. border: 1px solid #ccc !important;
  1076. padding: 0 15px !important;
  1077. font-size: 12px !important;
  1078. width: 125px;
  1079. }
  1080. .zhong {
  1081. height: 111px;
  1082. background: #f6f7fc;
  1083. border-radius: 4px;
  1084. border: 1px solid #d8dce6;
  1085. width: 99%;
  1086. margin: 0 2%;
  1087. // margin-left: -76px;
  1088. }
  1089. .bg-left {
  1090. padding-left: 30px;
  1091. }
  1092. /deep/.el-input--prefix .el-input__inner {
  1093. padding-left: 30px;
  1094. width: 150px;
  1095. }
  1096. .basicInformation .ws-info-table {
  1097. border: none;
  1098. width: 141%;
  1099. margin: 0 auto;
  1100. // margin-left: -89px;
  1101. }
  1102. .ys {
  1103. // margin-left: 300px;
  1104. width: 100px;
  1105. }
  1106. .biao {
  1107. margin-left: 240px;
  1108. margin-top: -57px;
  1109. }
  1110. .biao2 {
  1111. margin-left: 441px;
  1112. margin-top: -59px;
  1113. }
  1114. .biao3 {
  1115. margin-left: 722px;
  1116. margin-top: -60px;
  1117. }
  1118. .biao4 {
  1119. margin-left: 1016px;
  1120. margin-top: -60px;
  1121. }
  1122. .biao5 {
  1123. margin-left: 200px;
  1124. margin-top: -57px;
  1125. }
  1126. .biao6 {
  1127. margin-left: 450px;
  1128. margin-top: -57px;
  1129. }
  1130. .biao7 {
  1131. margin-left: 700px;
  1132. margin-top: -57px;
  1133. }
  1134. /deep/.totalStorage .el-input__inner {
  1135. color: #afb5cb;
  1136. background: #f5f7fa;
  1137. }
  1138. .small-title {
  1139. position: relative;
  1140. padding: 10px;
  1141. font-weight: 600;
  1142. }
  1143. .small-title::before {
  1144. position: absolute;
  1145. content: '';
  1146. display: block;
  1147. background: #5473e8;
  1148. width: 4px;
  1149. height: 14px;
  1150. left: 0px;
  1151. top: 13px;
  1152. }
  1153. .position {
  1154. position: relative;
  1155. }
  1156. .del {
  1157. // position: absolute;
  1158. // right: -38px;
  1159. top: 9px;
  1160. cursor: pointer;
  1161. right: 0;
  1162. display: inline-block;
  1163. font-size: 20px;
  1164. width: 16px;
  1165. height: 10px;
  1166. line-height: 0px;
  1167. margin-top: 10px;
  1168. margin-left: 17px;
  1169. }
  1170. .amap-page-container {
  1171. width: 300px;
  1172. height: 300px;
  1173. }
  1174. .el-form {
  1175. padding: 0 15%;
  1176. }
  1177. /deep/.ws-info-table .el-form-item {
  1178. border-right: 1px solid transparent;
  1179. border-bottom: 1px solid transparent;
  1180. }
  1181. .readonly {
  1182. position: relative;
  1183. }
  1184. .readonly:after {
  1185. content: '*';
  1186. color: #ff2727;
  1187. position: absolute;
  1188. right: 8px;
  1189. z-index: 10;
  1190. top: 21%;
  1191. font-size: 20px;
  1192. }
  1193. .title {
  1194. position: relative;
  1195. }
  1196. .title::before {
  1197. content: '';
  1198. display: inline-block;
  1199. width: 5px;
  1200. height: 30px;
  1201. background: #5473e8;
  1202. position: absolute;
  1203. left: 0;
  1204. }
  1205. .el-button--primary {
  1206. background-color: #5878e8;
  1207. border-color: #5878e8;
  1208. }
  1209. .el-col {
  1210. background: #f6f7fc;
  1211. }
  1212. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1213. padding: 0 25px;
  1214. border-left: 1px solid transparent;
  1215. background: #fff;
  1216. }
  1217. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1218. width: 100px;
  1219. text-align: center;
  1220. background: #fff;
  1221. // border: 1px solid #cdd2dc;
  1222. }
  1223. .button-container {
  1224. display: flex;
  1225. flex-wrap: nowrap;
  1226. justify-content: space-between;
  1227. align-items: center;
  1228. background-color: #fff;
  1229. width: 100%;
  1230. height: 50px;
  1231. padding: 0 10px;
  1232. & > div {
  1233. margin-left: 10px;
  1234. display: flex;
  1235. flex-wrap: nowrap;
  1236. flex-direction: row;
  1237. & > span {
  1238. line-height: 50px;
  1239. }
  1240. }
  1241. /deep/.auditFlow-box {
  1242. position: unset;
  1243. margin-left: 10px;
  1244. &/deep/.auditFlow-icon {
  1245. width: auto;
  1246. padding-right: 30px;
  1247. }
  1248. &/deep/.auditFlow-main {
  1249. position: absolute;
  1250. }
  1251. }
  1252. }
  1253. .box-app {
  1254. display: inline-block;
  1255. float: left;
  1256. margin-left: 30px;
  1257. line-height: 50px;
  1258. }
  1259. /deep/.el-dialog {
  1260. .el-form-item {
  1261. margin-bottom: 0 !important;
  1262. .el-input--medium {
  1263. textarea {
  1264. min-height: 100px !important;
  1265. }
  1266. }
  1267. }
  1268. }
  1269. .collapse-bottom {
  1270. margin-bottom: 20px;
  1271. }
  1272. .input-main .textarea .el-textarea__inner {
  1273. width: 100%;
  1274. z-index: 1;
  1275. }
  1276. .bg-left {
  1277. padding-left: 30px;
  1278. }
  1279. .bg-right {
  1280. padding-right: 10px;
  1281. text-align: right;
  1282. }
  1283. .center {
  1284. width: 86%;
  1285. // margin: 0 auto;
  1286. // margin: 0 -29%;
  1287. }
  1288. .el-form-item {
  1289. width: 50%;
  1290. }
  1291. .el-form-item__label {
  1292. text-align: center;
  1293. }
  1294. .hide-sel {
  1295. .el-input__inner {
  1296. border: 0px;
  1297. }
  1298. .el-icon-arrow-up {
  1299. display: none;
  1300. }
  1301. .el-textarea__inner {
  1302. background-color: #fff !important;
  1303. border: 0;
  1304. }
  1305. .el-date-editor {
  1306. i {
  1307. display: none;
  1308. }
  1309. }
  1310. .is-disabled {
  1311. .el-input__inner:hover {
  1312. background-color: #fff !important;
  1313. border: 0;
  1314. }
  1315. color: #606266;
  1316. .el-input__inner {
  1317. background-color: #fff !important;
  1318. border: 0;
  1319. color: #606266;
  1320. }
  1321. .el-textarea__inner {
  1322. background-color: #fff !important;
  1323. border: 0;
  1324. color: #606266;
  1325. }
  1326. }
  1327. }
  1328. // 控制select为只读的时候显示样式
  1329. /deep/.ws-class-table-col {
  1330. height: auto;
  1331. padding: 0px 2px;
  1332. /deep/.el-input__inner {
  1333. padding: 0px 2px;
  1334. }
  1335. }
  1336. /deep/.is-disabled {
  1337. .el-input__prefix,
  1338. .el-input__suffix {
  1339. display: none;
  1340. }
  1341. .el-input__inner {
  1342. background-color: #fff;
  1343. border-color: #fff !important;
  1344. color: #000 !important;
  1345. font-size: 14px;
  1346. cursor: text;
  1347. padding: 0 !important;
  1348. }
  1349. }
  1350. .winseaview-view {
  1351. padding: 0 0 20px;
  1352. }
  1353. .container {
  1354. overflow: scroll;
  1355. height: 93vh;
  1356. }
  1357. .ws-info-table .el-form-item {
  1358. width: 33.3333%;
  1359. }
  1360. .readonly:after {
  1361. display: none;
  1362. }
  1363. .el-textarea__inner {
  1364. display: none;
  1365. }
  1366. .el-form {
  1367. margin-top: 50px;
  1368. }
  1369. .readonly {
  1370. width: 16%;
  1371. }
  1372. //去边框
  1373. /deep/.el-form-item {
  1374. border-right: 0px;
  1375. border-bottom: 0px;
  1376. }
  1377. /deep/.ws-info-table {
  1378. border-left: 0px;
  1379. border-top: 0px;
  1380. }
  1381. /deep/.ws-info-table .el-form-item {
  1382. border: none;
  1383. height: 50px;
  1384. // margin: 0 auto;
  1385. }
  1386. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1387. background: #f5f7fa;
  1388. border-radius: 4px;
  1389. border: 1px solid #d8dce6;
  1390. font-family: PingFangSC-Regular, PingFang SC;
  1391. margin-bottom: 5px;
  1392. background-color: #fff;
  1393. font-size: 14px;
  1394. font-weight: 400;
  1395. color: #8890b1;
  1396. line-height: 16px;
  1397. }
  1398. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1399. background-color: #fff;
  1400. font-size: 14px;
  1401. font-weight: 400;
  1402. color: #8890b1;
  1403. line-height: 16px;
  1404. }
  1405. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1406. background: #f5f7fa;
  1407. border-radius: 4px;
  1408. border: 1px solid #d8dce6;
  1409. }
  1410. /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
  1411. border: 0px;
  1412. }
  1413. .add {
  1414. width: 100px;
  1415. height: 34px;
  1416. background: #f6f7fb;
  1417. border-radius: 17px;
  1418. color: #5473e8;
  1419. font-size: 14px;
  1420. border: none;
  1421. margin-left: 17px;
  1422. // margin-left: -79px;
  1423. }
  1424. .add img {
  1425. display: inline-block;
  1426. margin-top: 3px;
  1427. margin-left: -12px;
  1428. }
  1429. .add .spans {
  1430. display: table-caption;
  1431. width: 56px;
  1432. height: 20px;
  1433. line-height: 18px;
  1434. }
  1435. /deep/.carnum {
  1436. display: contents;
  1437. }
  1438. /deep/.carnum .ws-info-table .el-form-item {
  1439. width: 20%;
  1440. }
  1441. // /deep/.liaison .carnum .ws-info-table .el-form-item {
  1442. // border-radius: 10px;
  1443. // right: 20px;
  1444. // }
  1445. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1446. /* background-color: #fff; */
  1447. font-size: 14px;
  1448. font-weight: 400;
  1449. color: #8890b1;
  1450. line-height: 16px;
  1451. background: border-box;
  1452. }
  1453. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1454. background: #f5f7fa;
  1455. border-radius: 4px;
  1456. /* border: 1px solid #d8dce6; */
  1457. border: none;
  1458. }
  1459. /deep/.basicInformation .el-form-item .el-form-item__label {
  1460. background: transparent;
  1461. border: none;
  1462. font-size: 14px;
  1463. font-family: PingFangSC-Regular, PingFang SC;
  1464. font-weight: 400;
  1465. color: #8890b1;
  1466. line-height: 16px;
  1467. margin-left: 22px;
  1468. }
  1469. /deep/.el-form-item__content .el-select {
  1470. width: 42%;
  1471. }
  1472. //减号
  1473. .del {
  1474. position: absolute;
  1475. // right: -38px;
  1476. top: 0px;
  1477. cursor: pointer;
  1478. right: -1%;
  1479. display: inline-block;
  1480. font-size: 20px;
  1481. width: 20px;
  1482. height: 10px;
  1483. line-height: 0px;
  1484. }
  1485. .zhong-other{
  1486. display: flex;
  1487. margin: 2%;
  1488. background: #f6f7fc;
  1489. border-radius: 4px;
  1490. border: 1px solid #d8dce6;
  1491. .item{
  1492. margin: 0;
  1493. }
  1494. }
  1495. .myTest{
  1496. width: 1000px;
  1497. display: flex;
  1498. height: 40px;
  1499. margin: 20px 0;
  1500. }
  1501. /deep/.myTest .el-form-item{
  1502. width: 30%;
  1503. }
  1504. </style>