tranManagementShippingArrangemen.vue 40 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="`tranManager.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. clearable
  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. clearable
  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. if(!this.deptBudgetList.tranPrice){
  687. this.$message({
  688. message: '请设置运输总价!',
  689. type: 'warning',
  690. })
  691. }
  692. else{
  693. this.deptBudgetList.tranCarInfoList.push({
  694. driver: this.deptBudgetList.tranCarInfoList[0].driver,
  695. driverPhone: this.deptBudgetList.tranCarInfoList[0].driverPhone,
  696. sendDateStart: this.deptBudgetList.tranCarInfoList[0].sendDateStart,
  697. receiveDateEnd: this.deptBudgetList.tranCarInfoList[0].receiveDateEnd,
  698. shipNo: this.deptBudgetList.tranCarInfoList[0].shipNo,
  699. shipName: this.deptBudgetList.tranCarInfoList[0].shipName,
  700. shipType: this.deptBudgetList.tranCarInfoList[0].shipType,
  701. binNumber: '',
  702. positionWeight: '',
  703. tranType: '3',
  704. })
  705. }
  706. },
  707. selectdriver() {},
  708. handleChange(value) {
  709. this.selectedOptions = value
  710. },
  711. returnsales() {
  712. this.deptBudgetList = {}
  713. this.freightspace = []
  714. this.selectedOptions = ''
  715. this.$router.push({ path: 'tranManagementShipping' })
  716. },
  717. //审核
  718. examine(){
  719. this.$prompt('运输单价审核', {
  720. cancelButtonText: '取消',
  721. confirmButtonText: '确定',
  722. }).then(({ value }) => {
  723. var tranProcessInfo = {}
  724. tranProcessInfo.reviewer = sessionStorage.getItem('ws-pf_roleName') +
  725. sessionStorage.getItem('ws-pf_staffName')
  726. tranProcessInfo.id = this.deptBudgetList.id
  727. tranProcessInfo.flag = "2"
  728. tranProcessInfo.tranPriceIng = value
  729. tranProcessInfo.tranTypeKey = 3
  730. setUpTranPrice(tranProcessInfo)
  731. .toPromise()
  732. .then((response) => {
  733. this.$message.success('审核成功')
  734. this.getList()
  735. });
  736. }).catch(() => {
  737. this.$message.warning(
  738. '取消审核'
  739. );
  740. });
  741. },
  742. priceSubmit(){
  743. this.$confirm(`运输单价将发送给决策人审核,确定提交?`, {
  744. cancelButtonText: '取消',
  745. confirmButtonText: '确定',
  746. type: 'warning',
  747. })
  748. .then(() => {
  749. var tranProcessInfo = {}
  750. tranProcessInfo.id = this.deptBudgetList.id
  751. tranProcessInfo.flag = "1"
  752. tranProcessInfo.tranPriceIng = this.deptBudgetList.tranPriceIng
  753. tranProcessInfo.tranTypeKey = 3
  754. setUpTranPrice(tranProcessInfo)
  755. .toPromise()
  756. .then((response) => {
  757. this.$message.success('提交成功')
  758. this.getList()
  759. })
  760. })
  761. .catch(() => {
  762. return false
  763. })
  764. },
  765. //提交按钮
  766. submit() {
  767. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  768. if (!this.deptBudgetList.tranCarInfoList[i].driver) {
  769. this.$message({
  770. message: '名字不为空',
  771. type: 'warning',
  772. })
  773. return
  774. }
  775. if (!this.deptBudgetList.tranCarInfoList[i].driverPhone) {
  776. this.$message({
  777. message: '电话号不为空',
  778. type: 'warning',
  779. })
  780. return
  781. }
  782. if (!this.deptBudgetList.tranCarInfoList[i].sendDateStart) {
  783. this.$message({
  784. message: '发船时间不能为空',
  785. type: 'warning',
  786. })
  787. return
  788. }
  789. if (!this.deptBudgetList.tranCarInfoList[i].receiveDateEnd) {
  790. this.$message({
  791. message: '预计到港时间不能为空',
  792. type: 'warning',
  793. })
  794. return
  795. }
  796. if (!this.deptBudgetList.tranCarInfoList[i].shipName) {
  797. this.$message({
  798. message: '船名不能为空',
  799. type: 'warning',
  800. })
  801. return
  802. }
  803. if (!this.deptBudgetList.tranCarInfoList[i].shipNo) {
  804. this.$message({
  805. message: '航次不能为空',
  806. type: 'warning',
  807. })
  808. return
  809. }
  810. if (this.deptBudgetList.tranCarInfoList[i].shipType == '集装箱') {
  811. if (!this.deptBudgetList.tranCarInfoList[i].boxNumber) {
  812. this.$message({
  813. message: '数量不能为空',
  814. type: 'warning',
  815. })
  816. return
  817. }
  818. }
  819. if (!this.deptBudgetList.tranCarInfoList[i].shipType) {
  820. this.$message({
  821. message: '类型不能为空',
  822. type: 'warning',
  823. })
  824. return
  825. }
  826. // console.log(this.freightspace,"仓位号")
  827. if (this.deptBudgetList.tranCarInfoList[i].shipType == '散船') {
  828. if (!this.deptBudgetList.tranCarInfoList[i].binNumber) {
  829. this.$message({
  830. message: '仓位号不能为空',
  831. type: 'warning',
  832. })
  833. return
  834. }
  835. if (!this.deptBudgetList.tranCarInfoList[i].positionWeight) {
  836. this.$message({
  837. message: '重量不能为空',
  838. type: 'warning',
  839. })
  840. return
  841. }
  842. }
  843. if (
  844. new Date(
  845. this.deptBudgetList.tranCarInfoList[0].sendDateStart
  846. ).getTime() >
  847. new Date(
  848. this.deptBudgetList.tranCarInfoList[0].receiveDateEnd
  849. ).getTime()
  850. ) {
  851. this.$message({
  852. message: '发船时间不能大于最晚到到港时间!',
  853. type: 'warning',
  854. })
  855. return
  856. }
  857. }
  858. this.$confirm(`提交成功后,任务将下发给相关人员,是否确定提交?`, {
  859. cancelButtonText: '取消',
  860. confirmButtonText: '确定',
  861. type: 'warning',
  862. })
  863. .then(() => {
  864. this.$refs.deptBudgetList.validate((valid) => {
  865. if (valid) {
  866. this.deptBudgetList.totalStorage = this.totalStorage
  867. var tranCarInfo = {}
  868. tranCarInfo.id = this.deptBudgetList.id
  869. tranCarInfo.infoId = this.deptBudgetList.infoId
  870. tranCarInfo.tranCarInfoList = this.deptBudgetList.tranCarInfoList
  871. dispatchCat(tranCarInfo)
  872. .toPromise()
  873. .then((response) => {
  874. this.$message.success('提交成功')
  875. this.deptBudgetList = {}
  876. this.freightspace = {}
  877. this.selectedOptions = ''
  878. this.$router.go(-1)
  879. })
  880. } else {
  881. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  882. return false
  883. }
  884. })
  885. })
  886. .catch(() => {
  887. return false
  888. })
  889. },
  890. handleClose() {
  891. this.accessoryTFs = false
  892. },
  893. handleSizeChange(val) {
  894. console.log(`每页 ${val} 条`)
  895. this.pageSize = val
  896. this.getList()
  897. },
  898. handleCurrentChange(val) {
  899. this.currentPage = val
  900. console.log(`当前页: ${val}`)
  901. this.getList()
  902. },
  903. selecttaskType(e) {
  904. for (var i = 0; i < this.taskTypeList.length; i++) {
  905. if (this.taskTypeList[i].value == e) {
  906. this.searchType = this.taskTypeList[i].type
  907. }
  908. }
  909. },
  910. // approve() {},
  911. // listQuery() {}
  912. },
  913. }
  914. </script>
  915. <style lang="scss" scoped>
  916. .position {
  917. position: relative;
  918. }
  919. .el-button--primary {
  920. background-color: #5878e8;
  921. border-color: #5878e8;
  922. }
  923. .el-col {
  924. background: #f6f7fc;
  925. }
  926. .bg-right {
  927. text-align: right;
  928. padding: 16px 20px;
  929. }
  930. .center {
  931. width: 90%;
  932. // margin: 0 auto;
  933. }
  934. //表格文字
  935. /deep/.ws-info-table .el-form-item .el-form-item__label {
  936. text-align: left;
  937. font-size: 14px;
  938. font-weight: 400;
  939. color: #8890b1;
  940. line-height: 16px;
  941. }
  942. //蓝标
  943. .small-title {
  944. position: relative;
  945. padding: 10px;
  946. font-weight: 600;
  947. margin-left: 27px;
  948. }
  949. .position .zaizhong {
  950. width: 16%;
  951. }
  952. .bot {
  953. width: 30%;
  954. }
  955. //去边框
  956. /deep/.el-form-item {
  957. border-right: 0px;
  958. border-bottom: 0px;
  959. }
  960. /deep/.ws-info-table {
  961. border-left: 0px;
  962. border-top: 0px;
  963. }
  964. .ws-info-table .el-form-item .el-form-item__content {
  965. border-right: 0px;
  966. border-bottom: 0px;
  967. border-left: 0px;
  968. border-top: 0px;
  969. }
  970. /deep/.ws-info-table .el-form-item {
  971. border-right: 0px;
  972. border-bottom: 0px;
  973. border-left: 0px;
  974. border-top: 0px;
  975. }
  976. /deep/.ws-info-table .el-form-item .el-form-item__content {
  977. background: #f5f7fa;
  978. border-radius: 4px;
  979. font-family: PingFangSC-Regular, PingFang SC;
  980. margin-bottom: 5px;
  981. // background-color: #fff;
  982. font-size: 14px;
  983. font-weight: 400;
  984. color: #8890b1;
  985. line-height: 16px;
  986. }
  987. /deep/.ws-info-table .el-form-item .el-form-item__label {
  988. background-color: #fff;
  989. font-size: 14px;
  990. font-family: PingFangSC-Regular, PingFang SC;
  991. font-weight: 400;
  992. color: #8890b1;
  993. line-height: 16px;
  994. }
  995. .position {
  996. width: 90%;
  997. }
  998. //下表格样式
  999. .position.siji {
  1000. background: white;
  1001. border-radius: 4px;
  1002. /* border: 1px solid #d8dce6; */
  1003. width: 1219px;
  1004. }
  1005. /deep/.zi {
  1006. width: 64px;
  1007. height: 22px;
  1008. font-size: 16px;
  1009. font-family: PingFangSC-Semibold, PingFang SC;
  1010. font-weight: 600;
  1011. color: #323233;
  1012. line-height: 22px;
  1013. }
  1014. //表格文字
  1015. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1016. text-align: left;
  1017. font-size: 14px;
  1018. font-weight: 400;
  1019. color: #8890b1;
  1020. line-height: 16px;
  1021. }
  1022. //小标题文字
  1023. .small-title::before {
  1024. position: absolute;
  1025. content: '';
  1026. display: block;
  1027. background: #5473e8;
  1028. width: 4px;
  1029. height: 14px;
  1030. left: 0px;
  1031. top: 13px;
  1032. padding: 4px 2px;
  1033. }
  1034. /deep/.basicInformation {
  1035. .el-form-item {
  1036. width: 25%;
  1037. .el-form-item__label {
  1038. background: transparent;
  1039. border: none;
  1040. }
  1041. .el-form-item__content {
  1042. // border: none;
  1043. }
  1044. }
  1045. }
  1046. //添加仓位样式
  1047. .add {
  1048. width: 100px;
  1049. height: 34px;
  1050. background: #f6f7fb;
  1051. border-radius: 17px;
  1052. color: #5473e8;
  1053. font-size: 14px;
  1054. border: none;
  1055. margin-top: 8px;
  1056. }
  1057. .add img {
  1058. display: inline-block;
  1059. margin-top: 3px;
  1060. margin-left: -12px;
  1061. }
  1062. .add .spans {
  1063. display: table-caption;
  1064. width: 56px;
  1065. height: 20px;
  1066. line-height: 18px;
  1067. }
  1068. /deep/.xia {
  1069. width: 715px;
  1070. height: 54px;
  1071. border-radius: 4px;
  1072. border: 1px solid #d8dce6;
  1073. margin-top: 10px;
  1074. background: #f6f7fc;
  1075. border-radius: 4px;
  1076. margin-left: 24px;
  1077. }
  1078. .basicInformation .ws-info-table {
  1079. border: none;
  1080. width: 1000px;
  1081. }
  1082. /deep/.el-select .el-input__inner {
  1083. border: 1px solid #ccc !important;
  1084. padding: 0 15px !important;
  1085. font-size: 12px !important;
  1086. width: 125px;
  1087. }
  1088. .zhong {
  1089. height: 111px;
  1090. background: #f6f7fc;
  1091. border-radius: 4px;
  1092. border: 1px solid #d8dce6;
  1093. width: 99%;
  1094. margin: 0 2%;
  1095. // margin-left: -76px;
  1096. }
  1097. .bg-left {
  1098. padding-left: 30px;
  1099. }
  1100. /deep/.el-input--prefix .el-input__inner {
  1101. padding-left: 30px;
  1102. width: 150px;
  1103. }
  1104. .basicInformation .ws-info-table {
  1105. border: none;
  1106. width: 141%;
  1107. margin: 0 auto;
  1108. // margin-left: -89px;
  1109. }
  1110. .ys {
  1111. // margin-left: 300px;
  1112. width: 100px;
  1113. }
  1114. .biao {
  1115. margin-left: 240px;
  1116. margin-top: -57px;
  1117. }
  1118. .biao2 {
  1119. margin-left: 441px;
  1120. margin-top: -59px;
  1121. }
  1122. .biao3 {
  1123. margin-left: 722px;
  1124. margin-top: -60px;
  1125. }
  1126. .biao4 {
  1127. margin-left: 1016px;
  1128. margin-top: -60px;
  1129. }
  1130. .biao5 {
  1131. margin-left: 200px;
  1132. margin-top: -57px;
  1133. }
  1134. .biao6 {
  1135. margin-left: 450px;
  1136. margin-top: -57px;
  1137. }
  1138. .biao7 {
  1139. margin-left: 700px;
  1140. margin-top: -57px;
  1141. }
  1142. /deep/.totalStorage .el-input__inner {
  1143. color: #afb5cb;
  1144. background: #f5f7fa;
  1145. }
  1146. .small-title {
  1147. position: relative;
  1148. padding: 10px;
  1149. font-weight: 600;
  1150. }
  1151. .small-title::before {
  1152. position: absolute;
  1153. content: '';
  1154. display: block;
  1155. background: #5473e8;
  1156. width: 4px;
  1157. height: 14px;
  1158. left: 0px;
  1159. top: 13px;
  1160. }
  1161. .position {
  1162. position: relative;
  1163. }
  1164. .del {
  1165. // position: absolute;
  1166. // right: -38px;
  1167. top: 9px;
  1168. cursor: pointer;
  1169. right: 0;
  1170. display: inline-block;
  1171. font-size: 20px;
  1172. width: 16px;
  1173. height: 10px;
  1174. line-height: 0px;
  1175. margin-top: 10px;
  1176. margin-left: 17px;
  1177. }
  1178. .amap-page-container {
  1179. width: 300px;
  1180. height: 300px;
  1181. }
  1182. .el-form {
  1183. padding: 0 15%;
  1184. }
  1185. /deep/.ws-info-table .el-form-item {
  1186. border-right: 1px solid transparent;
  1187. border-bottom: 1px solid transparent;
  1188. }
  1189. .readonly {
  1190. position: relative;
  1191. }
  1192. .readonly:after {
  1193. content: '*';
  1194. color: #ff2727;
  1195. position: absolute;
  1196. right: 8px;
  1197. z-index: 10;
  1198. top: 21%;
  1199. font-size: 20px;
  1200. }
  1201. .title {
  1202. position: relative;
  1203. }
  1204. .title::before {
  1205. content: '';
  1206. display: inline-block;
  1207. width: 5px;
  1208. height: 30px;
  1209. background: #5473e8;
  1210. position: absolute;
  1211. left: 0;
  1212. }
  1213. .el-button--primary {
  1214. background-color: #5878e8;
  1215. border-color: #5878e8;
  1216. }
  1217. .el-col {
  1218. background: #f6f7fc;
  1219. }
  1220. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1221. padding: 0 25px;
  1222. border-left: 1px solid transparent;
  1223. background: #fff;
  1224. }
  1225. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1226. width: 100px;
  1227. text-align: center;
  1228. background: #fff;
  1229. // border: 1px solid #cdd2dc;
  1230. }
  1231. .button-container {
  1232. display: flex;
  1233. flex-wrap: nowrap;
  1234. justify-content: space-between;
  1235. align-items: center;
  1236. background-color: #fff;
  1237. width: 100%;
  1238. height: 50px;
  1239. padding: 0 10px;
  1240. & > div {
  1241. margin-left: 10px;
  1242. display: flex;
  1243. flex-wrap: nowrap;
  1244. flex-direction: row;
  1245. & > span {
  1246. line-height: 50px;
  1247. }
  1248. }
  1249. /deep/.auditFlow-box {
  1250. position: unset;
  1251. margin-left: 10px;
  1252. &/deep/.auditFlow-icon {
  1253. width: auto;
  1254. padding-right: 30px;
  1255. }
  1256. &/deep/.auditFlow-main {
  1257. position: absolute;
  1258. }
  1259. }
  1260. }
  1261. .box-app {
  1262. display: inline-block;
  1263. float: left;
  1264. margin-left: 30px;
  1265. line-height: 50px;
  1266. }
  1267. /deep/.el-dialog {
  1268. .el-form-item {
  1269. margin-bottom: 0 !important;
  1270. .el-input--medium {
  1271. textarea {
  1272. min-height: 100px !important;
  1273. }
  1274. }
  1275. }
  1276. }
  1277. .collapse-bottom {
  1278. margin-bottom: 20px;
  1279. }
  1280. .input-main .textarea .el-textarea__inner {
  1281. width: 100%;
  1282. z-index: 1;
  1283. }
  1284. .bg-left {
  1285. padding-left: 30px;
  1286. }
  1287. .bg-right {
  1288. padding-right: 10px;
  1289. text-align: right;
  1290. }
  1291. .center {
  1292. width: 86%;
  1293. // margin: 0 auto;
  1294. // margin: 0 -29%;
  1295. }
  1296. .el-form-item {
  1297. width: 50%;
  1298. }
  1299. .el-form-item__label {
  1300. text-align: center;
  1301. }
  1302. .hide-sel {
  1303. .el-input__inner {
  1304. border: 0px;
  1305. }
  1306. .el-icon-arrow-up {
  1307. display: none;
  1308. }
  1309. .el-textarea__inner {
  1310. background-color: #fff !important;
  1311. border: 0;
  1312. }
  1313. .el-date-editor {
  1314. i {
  1315. display: none;
  1316. }
  1317. }
  1318. .is-disabled {
  1319. .el-input__inner:hover {
  1320. background-color: #fff !important;
  1321. border: 0;
  1322. }
  1323. color: #606266;
  1324. .el-input__inner {
  1325. background-color: #fff !important;
  1326. border: 0;
  1327. color: #606266;
  1328. }
  1329. .el-textarea__inner {
  1330. background-color: #fff !important;
  1331. border: 0;
  1332. color: #606266;
  1333. }
  1334. }
  1335. }
  1336. // 控制select为只读的时候显示样式
  1337. /deep/.ws-class-table-col {
  1338. height: auto;
  1339. padding: 0px 2px;
  1340. /deep/.el-input__inner {
  1341. padding: 0px 2px;
  1342. }
  1343. }
  1344. /deep/.is-disabled {
  1345. .el-input__prefix,
  1346. .el-input__suffix {
  1347. display: none;
  1348. }
  1349. .el-input__inner {
  1350. background-color: #fff;
  1351. border-color: #fff !important;
  1352. color: #000 !important;
  1353. font-size: 14px;
  1354. cursor: text;
  1355. padding: 0 !important;
  1356. }
  1357. }
  1358. .winseaview-view {
  1359. padding: 0 0 20px;
  1360. }
  1361. .container {
  1362. overflow: scroll;
  1363. height: 93vh;
  1364. }
  1365. .ws-info-table .el-form-item {
  1366. width: 33.3333%;
  1367. }
  1368. .readonly:after {
  1369. display: none;
  1370. }
  1371. .el-textarea__inner {
  1372. display: none;
  1373. }
  1374. .el-form {
  1375. margin-top: 50px;
  1376. }
  1377. .readonly {
  1378. width: 16%;
  1379. }
  1380. //去边框
  1381. /deep/.el-form-item {
  1382. border-right: 0px;
  1383. border-bottom: 0px;
  1384. }
  1385. /deep/.ws-info-table {
  1386. border-left: 0px;
  1387. border-top: 0px;
  1388. }
  1389. /deep/.ws-info-table .el-form-item {
  1390. border: none;
  1391. height: 50px;
  1392. // margin: 0 auto;
  1393. }
  1394. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1395. background: #f5f7fa;
  1396. border-radius: 4px;
  1397. border: 1px solid #d8dce6;
  1398. font-family: PingFangSC-Regular, PingFang SC;
  1399. margin-bottom: 5px;
  1400. background-color: #fff;
  1401. font-size: 14px;
  1402. font-weight: 400;
  1403. color: #8890b1;
  1404. line-height: 16px;
  1405. }
  1406. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1407. background-color: #fff;
  1408. font-size: 14px;
  1409. font-weight: 400;
  1410. color: #8890b1;
  1411. line-height: 16px;
  1412. }
  1413. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1414. background: #f5f7fa;
  1415. border-radius: 4px;
  1416. border: 1px solid #d8dce6;
  1417. }
  1418. /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
  1419. border: 0px;
  1420. }
  1421. .add {
  1422. width: 100px;
  1423. height: 34px;
  1424. background: #f6f7fb;
  1425. border-radius: 17px;
  1426. color: #5473e8;
  1427. font-size: 14px;
  1428. border: none;
  1429. margin-left: 17px;
  1430. // margin-left: -79px;
  1431. }
  1432. .add img {
  1433. display: inline-block;
  1434. margin-top: 3px;
  1435. margin-left: -12px;
  1436. }
  1437. .add .spans {
  1438. display: table-caption;
  1439. width: 56px;
  1440. height: 20px;
  1441. line-height: 18px;
  1442. }
  1443. /deep/.carnum {
  1444. display: contents;
  1445. }
  1446. /deep/.carnum .ws-info-table .el-form-item {
  1447. width: 20%;
  1448. }
  1449. // /deep/.liaison .carnum .ws-info-table .el-form-item {
  1450. // border-radius: 10px;
  1451. // right: 20px;
  1452. // }
  1453. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1454. /* background-color: #fff; */
  1455. font-size: 14px;
  1456. font-weight: 400;
  1457. color: #8890b1;
  1458. line-height: 16px;
  1459. background: border-box;
  1460. }
  1461. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1462. background: #f5f7fa;
  1463. border-radius: 4px;
  1464. /* border: 1px solid #d8dce6; */
  1465. border: none;
  1466. }
  1467. /deep/.basicInformation .el-form-item .el-form-item__label {
  1468. background: transparent;
  1469. border: none;
  1470. font-size: 14px;
  1471. font-family: PingFangSC-Regular, PingFang SC;
  1472. font-weight: 400;
  1473. color: #8890b1;
  1474. line-height: 16px;
  1475. margin-left: 22px;
  1476. }
  1477. /deep/.el-form-item__content .el-select {
  1478. width: 42%;
  1479. }
  1480. //减号
  1481. .del {
  1482. position: absolute;
  1483. // right: -38px;
  1484. top: 0px;
  1485. cursor: pointer;
  1486. right: -1%;
  1487. display: inline-block;
  1488. font-size: 20px;
  1489. width: 20px;
  1490. height: 10px;
  1491. line-height: 0px;
  1492. }
  1493. .zhong-other{
  1494. display: flex;
  1495. margin: 2%;
  1496. background: #f6f7fc;
  1497. border-radius: 4px;
  1498. border: 1px solid #d8dce6;
  1499. .item{
  1500. margin: 0;
  1501. }
  1502. }
  1503. .myTest{
  1504. width: 1000px;
  1505. display: flex;
  1506. height: 40px;
  1507. margin: 20px 0;
  1508. }
  1509. /deep/.myTest .el-form-item{
  1510. width: 30%;
  1511. }
  1512. </style>