transportationReservationAdd.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. <template>
  2. <!-- 新增运输作业页面 -->
  3. <div id="contractDetails">
  4. <page-title>运输预约</page-title>
  5. <div class="orderType from">
  6. <span class="text">订单类别:</span>
  7. <el-select
  8. class="select"
  9. v-model="orderType"
  10. placeholder="请选择"
  11. >
  12. <el-option
  13. v-for="item in orderTypeList"
  14. :key="item.value"
  15. :label="item.label"
  16. :value="item.value"
  17. >
  18. </el-option>
  19. </el-select>
  20. <span class="span"></span>
  21. </div>
  22. <div class="material from">
  23. <span class="text">物资:</span>
  24. <el-input class="input" v-model="materialName" disabled> </el-input>
  25. <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
  26. </div>
  27. <div class="forwardingUnit from">
  28. <span class="text">发货单位:</span>
  29. <el-input class="input" v-model="supplierName" disabled> </el-input>
  30. <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
  31. </div>
  32. <div class="remark from">
  33. <span class="text">船名:</span>
  34. <el-input class="input" v-model="remark" @blur="onBlur"> </el-input>
  35. <span class="span"></span>
  36. </div>
  37. <div class="forwardingUnit from">
  38. <span class="text">卸货点:</span>
  39. <el-input class="input" v-model="unloadPointName" disabled> </el-input>
  40. <el-button type="primary" @click="ondrawer(4)">浏览</el-button>
  41. </div>
  42. <div class="lineId from">
  43. <span class="text">选择路线:</span>
  44. <el-input class="input" v-model="lineName" disabled> </el-input>
  45. <el-button type="primary" @click="ondrawer(5)">浏览</el-button>
  46. </div>
  47. <div class="lineId from">
  48. <span class="text">采购订单号:</span>
  49. <el-input class="input" v-model="purchaseOrderNo" disabled> </el-input>
  50. <el-button type="primary" @click="ondrawer(6)">浏览</el-button>
  51. </div>
  52. <div class="contractTitle from">
  53. <dil-form :formId="219" v-model="form1"></dil-form>
  54. </div>
  55. <div class="truckList1">
  56. <div class="truckList from">
  57. <span class="text">选择车辆:</span>
  58. <el-button type="primary" @click="ondrawer(3)" class="truckBtn"
  59. >浏览</el-button
  60. >
  61. </div>
  62. </div>
  63. <div class="lineId from">
  64. <span class="text">该批车辆是否一车多趟:</span>
  65. <el-switch
  66. v-model="isMoreTrips"
  67. active-text="是"
  68. inactive-text="否">
  69. </el-switch>
  70. </div>
  71. <div class="truckListTable">
  72. <el-table
  73. :data="selectionList"
  74. border
  75. style="width: 100%"
  76. highlight-current-row
  77. >
  78. <el-table-column type="index" width="50" label="序号" align="center">
  79. </el-table-column>
  80. <el-table-column
  81. v-for="(item, i) in tableTop"
  82. :key="i"
  83. :prop="item.prop"
  84. :label="item.label"
  85. align="center"
  86. show-overflow-tooltip
  87. >
  88. <template slot="scope" v-if="item.th_name !== '重量'">
  89. <span>{{ item.label }}</span>
  90. </template>
  91. <!-- 插入输入框 -->
  92. <template slot-scope="scope">
  93. <template v-if="item.slot">
  94. <template v-if="item.prop == 'orderMaterialWeight'">
  95. <el-input
  96. style="width: 250px"
  97. v-model.number="scope.row.orderMaterialWeight"
  98. ></el-input>
  99. </template>
  100. </template>
  101. <template v-else>
  102. <span>{{ scope.row[item.prop] }}</span>
  103. </template>
  104. </template>
  105. </el-table-column>
  106. <el-table-column fixed="right" label="操作" width="100">
  107. <template slot-scope="scope">
  108. <el-button type="text" size="small" @click="onClick(scope.$index)"
  109. >删除</el-button
  110. >
  111. </template>
  112. </el-table-column>
  113. </el-table>
  114. </div>
  115. <!-- 模态窗口 -->
  116. <el-drawer :visible.sync="drawer" :direction="direction" size="40%">
  117. <div class="drawer_top">
  118. <el-input
  119. placeholder="请输入内容"
  120. v-model="input"
  121. style="margin-top: 10px; margin-right: 10px; width: 250px"
  122. clearable
  123. ></el-input>
  124. <el-button type="primary" class="btn" @click="onclick">
  125. <i class="el-icon-search"></i>查询
  126. </el-button>
  127. </div>
  128. <div class="drawer_table1" v-show="onDrawerNumber == 1">
  129. <dilTable
  130. v-bind.sync="frist"
  131. @radio-change="currentRadioChange1"
  132. :isKuang="isKuang"
  133. @func="func"
  134. :isHeigth="isHeigth"
  135. :shiyHeigth="shiyHeigth"
  136. :drawer="drawer"
  137. ></dilTable>
  138. </div>
  139. <div v-show="onDrawerNumber == 2">
  140. <dilTable
  141. v-bind.sync="secend"
  142. @radio-change="currentRadioChange2"
  143. :isKuang="isKuang"
  144. @func="func"
  145. :isHeigth="isHeigth1"
  146. :shiyHeigth="shiyHeigth1"
  147. :drawer="drawer"
  148. ></dilTable>
  149. </div>
  150. <div v-show="onDrawerNumber == 3">
  151. <dilTable
  152. v-bind.sync="third"
  153. @selection-change="currentRadioChange3"
  154. :isKuang="isKuang"
  155. @func="func"
  156. :isHeigth="isHeigth2"
  157. :shiyHeigth="shiyHeigth2"
  158. :drawer="drawer"
  159. ></dilTable>
  160. </div>
  161. <div v-show="onDrawerNumber == 4">
  162. <dilTable
  163. v-bind.sync="unloadPoint"
  164. @radio-change="currentRadioChange4"
  165. :isKuang="isKuang"
  166. @func="func"
  167. :isHeigth="isHeigth3"
  168. :shiyHeigth="shiyHeigth3"
  169. :drawer="drawer"
  170. ></dilTable>
  171. </div>
  172. <div v-show="onDrawerNumber == 5">
  173. <dilTable
  174. v-bind.sync="line"
  175. @radio-change="currentRadioChange5"
  176. :isKuang="isKuang"
  177. @func="func"
  178. :isHeigth="isHeigth4"
  179. :shiyHeigth="shiyHeigth4"
  180. :drawer="drawer"
  181. ></dilTable>
  182. </div>
  183. <div v-show="onDrawerNumber == 6">
  184. <dilTable
  185. v-bind.sync="purchaseOrder"
  186. @radio-change="currentRadioChange6"
  187. :isKuang="isKuang"
  188. @func="func"
  189. :isHeigth="isHeigth5"
  190. :shiyHeigth="shiyHeigth5"
  191. :drawer="drawer"
  192. ></dilTable>
  193. </div>
  194. </el-drawer>
  195. <div class="button_box">
  196. <el-button @click="onClickCancel">返回</el-button>
  197. <el-button type="primary" @click="onClickConfirm">确认</el-button>
  198. </div>
  199. </div>
  200. </template>
  201. <script>
  202. import PageTitle from "@/components/Page/Title";
  203. import { sjTime, isNumber, isIntegerNumber } from "@/utils/sharedJsFile";
  204. import { getCookie } from "@/utils/util.js";
  205. export default {
  206. components: { PageTitle },
  207. data() {
  208. return {
  209. //限定first
  210. isHeigth:true,
  211. shiyHeigth:140,
  212. //限定second
  213. isHeigth1:true,
  214. shiyHeigth1:140,
  215. //限定third
  216. isHeigth2:true,
  217. shiyHeigth2:140,
  218. //限定unloadPoint
  219. isHeigth3:true,
  220. shiyHeigth3:140,
  221. //限定line
  222. isHeigth4:true,
  223. shiyHeigth4:140,
  224. //限定purchaseOrder
  225. isHeigth5:true,
  226. shiyHeigth5:140,
  227. isKuang: false,
  228. isKuang:false,
  229. //采购订单号
  230. purchaseOrderNo:'',
  231. isMoreTrips:false,
  232. //订单类别
  233. orderTypeList: [
  234. {
  235. value: 17,
  236. label: "老厂区",
  237. },
  238. {
  239. value: 18,
  240. label: "新厂区",
  241. },
  242. ],
  243. // 线路名称
  244. lineName: "",
  245. //线路id
  246. lineId: null,
  247. // 件数与重量的开关
  248. value: false,
  249. //船名
  250. remark: null,
  251. // 车辆表格表头
  252. tableTop: [
  253. {
  254. prop: "capacityNumber",
  255. label: "车牌号",
  256. width: "140",
  257. },
  258. {
  259. prop: "carrierName",
  260. label: "承运商",
  261. width: "140",
  262. },
  263. {
  264. prop: "orderMaterialWeight",
  265. label: "重量",
  266. slot: true,
  267. },
  268. ],
  269. //车辆表格数据
  270. selectionList: [],
  271. // 表单
  272. form1: {},
  273. //采购订单id
  274. purchaseOrderId: "",
  275. //物资名称
  276. materialName: "",
  277. //发货单位名称
  278. supplierName: "",
  279. //发货单位id
  280. supplierId: null,
  281. //物资id
  282. materialId: null,
  283. //是否需要打开模态窗口
  284. drawer: false,
  285. //卸货点id
  286. unloadPointId: "",
  287. //卸货点名称
  288. unloadPointName: "",
  289. //订单类别
  290. orderType: null,
  291. onDrawerNumber: 1,
  292. direction: "rtl",
  293. input: "",
  294. frist: {
  295. requestUrl: "",
  296. selectionType: "radio",
  297. mapList1: [],
  298. },
  299. secend: {
  300. requestUrl:"",
  301. selectionType: "radio",
  302. mapList2: [],
  303. },
  304. third: {
  305. requestUrl: "",
  306. selectionType: "select",
  307. mapList3: [],
  308. },
  309. unloadPoint: {
  310. requestUrl: "",
  311. selectionType: "radio",
  312. },
  313. line: {
  314. requestUrl: "",
  315. selectionType: "radio",
  316. },
  317. purchaseOrder:{
  318. requestUrl: "",
  319. selectionType: "radio",
  320. }
  321. };
  322. },
  323. watch: {
  324. drawer(val) {
  325. if (val) {
  326. this.input = null;
  327. }
  328. },
  329. },
  330. created() {
  331. if (getCookie("orgCode") == "chengyunshang") {
  332. this.third.requestUrl =
  333. "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
  334. getCookie("userId");
  335. } else {
  336. this.third.requestUrl =
  337. "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null;
  338. }
  339. },
  340. methods: {
  341. onClick(index) {
  342. this.selectionList.splice(index, 1);
  343. },
  344. onBlur() {
  345. this.getPurchaseOrderNo();
  346. },
  347. getPurchaseOrderNo() {
  348. let map = {
  349. materialId: this.materialId,
  350. supplierId: this.supplierId,
  351. };
  352. if (this.remark) {
  353. map.remark = this.remark;
  354. }
  355. console.log(this.map);
  356. if (this.materialId && this.supplierId) {
  357. this.axios.post("/api/v1/oms/selectNewOrderId", map).then((res) => {
  358. console.log(res);
  359. if (res.data.code == "200") {
  360. if (res.data.data == null) {
  361. this.$message({
  362. message: "没有匹配的采购订单号!",
  363. type: "warning",
  364. });
  365. this.form1 = [];
  366. } else {
  367. console.log();
  368. this.remark = res.data.data.remark;
  369. this.purchaseOrderId = res.data.data.purchaseOrderId;
  370. this.purchaseOrderNo=res.data.data.purchaseOrderNo;
  371. // if (res.data.data.receiveUnitId == 1) {
  372. // this.orderType = 17;
  373. // } else {
  374. // this.orderType = 18;
  375. // }
  376. }
  377. } else {
  378. this.$message.error("请求失败");
  379. }
  380. });
  381. }
  382. },
  383. onclick() {
  384. if(this.input){
  385. this.isKuang = true;
  386. if (this.onDrawerNumber == 1) {
  387. this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input;
  388. } else if (this.onDrawerNumber == 2) {
  389. this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId + "&index=" + this.input;
  390. } else if (this.onDrawerNumber == 3) {
  391. //判断是否是承运商查询车辆
  392. if (getCookie("orgCode") == "chengyunshang") {
  393. this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + getCookie("userId") + "&index=" + this.input;
  394. } else {
  395. this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&index=" + this.input;
  396. }
  397. } else if (this.onDrawerNumber == 4) {
  398. this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.input;
  399. } else if (this.onDrawerNumber == 5) {
  400. this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
  401. }else if (this.onDrawerNumber == 6) {
  402. this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId="+this.supplierId+"&con=" + this.input+"&i="+new Date();
  403. }
  404. }else{
  405. if (this.onDrawerNumber == 1) {
  406. this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&i="+new Date();
  407. } else if (this.onDrawerNumber == 2) {
  408. this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId+"&i="+new Date();
  409. } else if (this.onDrawerNumber == 3) {
  410. //判断是否是承运商查询车辆
  411. if (getCookie("orgCode") == "chengyunshang") {
  412. this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + getCookie("userId")+"&i="+new Date();
  413. } else {
  414. this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null+"&i="+new Date();
  415. }
  416. } else if (this.onDrawerNumber == 4) {
  417. this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&i="+new Date();
  418. } else if (this.onDrawerNumber == 5) {
  419. this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i="+new Date();
  420. }else if (this.onDrawerNumber == 6) {
  421. this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId="+this.supplierId+"&i="+new Date();
  422. }
  423. }
  424. },
  425. ondrawer(num) {
  426. this.drawer = true;
  427. this.onDrawerNumber = num;
  428. if(num == 1){
  429. this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input;
  430. }else if (num == 2) {
  431. this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId;
  432. } else if (num == 3) {
  433. //判断是否是承运商查询车辆
  434. if (getCookie("orgCode") == "chengyunshang") {
  435. this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + getCookie("userId") + "&i=" + new Date();
  436. } else {
  437. this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&i=" + new Date();
  438. }
  439. } else if (num == 4) {
  440. this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&i=" + new Date();
  441. } else if (num == 5) {
  442. this.line.requestUrl ="/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date() + "&con=化工材料";
  443. }else if (num == 6) {
  444. this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&i=" + new Date();
  445. }
  446. },
  447. // 返回
  448. onClickCancel() {
  449. this.$router.push("/transportationReservation");
  450. },
  451. currentRadioChange1(selection) {
  452. this.materialName = selection.materialName;
  453. this.materialId = selection.materialId;
  454. this.getPurchaseOrderNo();
  455. },
  456. currentRadioChange2(selection) {
  457. this.supplierName = selection.supplierName;
  458. this.supplierId = selection.supplierId;
  459. this.getPurchaseOrderNo();
  460. },
  461. currentRadioChange4(selection) {
  462. this.unloadPointId = selection.warehouseId;
  463. this.unloadPointName = selection.warehouseName;
  464. },
  465. currentRadioChange5(selection) {
  466. this.lineName = selection.lineName;
  467. this.lineId = selection.lineId;
  468. },
  469. currentRadioChange6(selection) {
  470. console.log(selection)
  471. if (selection.shipperId == 1) {
  472. this.orderType = 17;
  473. } else {
  474. this.orderType = 18;
  475. }
  476. this.materialName = selection.materialName;
  477. this.materialId = selection.materialId;
  478. this.supplierId = selection.supplierId;
  479. this.supplierName = selection.supplierName;
  480. this.purchaseOrderNo = selection.purchaseOrderNo;
  481. this.purchaseOrderId = selection.purchaseOrderId;
  482. },
  483. currentRadioChange3(selection) {
  484. this.selectionList = [];
  485. this.selectionList = selection;
  486. },
  487. func(res){
  488. console.log(res)
  489. this.isKuang = false;
  490. },
  491. // 确认
  492. onClickConfirm() {
  493. var state = 0;
  494. if (
  495. this.materialId &&
  496. this.supplierId &&
  497. this.form1.purchaseOrderId &&
  498. this.unloadPointId &&
  499. sjTime(this.form1.orderEntryTime) &&
  500. this.lineId
  501. ) {
  502. state = 1;
  503. } else {
  504. if (!this.materialId) {
  505. this.$message({
  506. message: "请选择物资!",
  507. type: "warning",
  508. });
  509. return;
  510. } else if (!this.orderType) {
  511. this.$message({
  512. message: "请选择订单类别!",
  513. type: "warning",
  514. });
  515. return;
  516. } else if (!this.supplierId) {
  517. this.$message({
  518. message: "请选择发货单位!",
  519. type: "warning",
  520. });
  521. return;
  522. } else if (!this.purchaseOrderId) {
  523. this.$message({
  524. message: "没有匹配的采购订单号!",
  525. type: "warning",
  526. });
  527. return;
  528. } else if (!this.unloadPointId) {
  529. this.$message({
  530. message: "请选择卸货地点!",
  531. type: "warning",
  532. });
  533. return;
  534. } else if (!this.lineId) {
  535. this.$message({
  536. message: "请选择运输路线!",
  537. type: "warning",
  538. });
  539. return;
  540. } else if (!sjTime(this.form1.orderEntryTime)) {
  541. this.$message({
  542. message: "请选择预估进厂时间!",
  543. type: "warning",
  544. });
  545. return;
  546. }
  547. }
  548. //开始选车
  549. if (this.selectionList.length == 0) {
  550. this.$message({
  551. message: "请选择车辆!",
  552. type: "warning",
  553. });
  554. return;
  555. } else {
  556. this.selectionList.forEach((e) => {
  557. if (e.orderMaterialWeight) {
  558. if (isNumber(e.orderMaterialWeight)) {
  559. if (isIntegerNumber(e.orderMaterialWeight)) {
  560. state = 1;
  561. } else {
  562. this.$message({
  563. message: "重量只能是整数!",
  564. type: "warning",
  565. });
  566. return;
  567. }
  568. } else {
  569. this.$message({
  570. message: "重量只能是数字!",
  571. type: "warning",
  572. });
  573. return;
  574. }
  575. }
  576. });
  577. }
  578. //发送请求
  579. let map = {
  580. materialId: this.materialId,
  581. supplierId: this.supplierId,
  582. purchaseOrderId: this.purchaseOrderId,
  583. unloadPointId: this.unloadPointId,
  584. orderEntryTime: sjTime(this.form1.orderEntryTime),
  585. driverCapacityIdList: this.selectionList,
  586. orderType: this.orderType,
  587. lineId: this.lineId,
  588. isMoreTrips:this.isMoreTrips,
  589. };
  590. console.log("map",map);
  591. this.axios.post("/api/v1/oms/addPurOrder", map).then((res) => {
  592. if (res.data.code == "200") {
  593. this.$message({
  594. message: "添加成功!",
  595. type: "success",
  596. });
  597. this.$router.push("/transportationReservation");
  598. }
  599. });
  600. },
  601. },
  602. };
  603. </script>
  604. <style lang="scss">
  605. .contractDetails {
  606. width: 100%;
  607. }
  608. .el-drawer__container ::-webkit-scrollbar {
  609. display: none;
  610. }
  611. .from {
  612. display: flex;
  613. align-items: center;
  614. justify-content: center;
  615. margin-top: 5px;
  616. margin-bottom: 20px;
  617. }
  618. .remark {
  619. display: flex;
  620. justify-content: center;
  621. .text {
  622. display: inline-block;
  623. width: 100px;
  624. text-align: right;
  625. }
  626. .input {
  627. width: 250px;
  628. margin-right: 20px;
  629. }
  630. }
  631. .lineId {
  632. display: flex;
  633. justify-content: center;
  634. .text {
  635. display: inline-block;
  636. width: 170px;
  637. text-align: right;
  638. }
  639. .input {
  640. width: 250px;
  641. margin-right: 20px;
  642. }
  643. .span{
  644. display: inline-block;
  645. width: 70px;
  646. height: 1px;
  647. }
  648. }
  649. .material {
  650. display: flex;
  651. justify-content: center;
  652. margin-top: 20px;
  653. .text {
  654. display: inline-block;
  655. width: 170px;
  656. text-align: right;
  657. }
  658. .input {
  659. width: 250px;
  660. margin-right: 20px;
  661. }
  662. }
  663. .orderType {
  664. display: flex;
  665. justify-content: center;
  666. .text {
  667. display: inline-block;
  668. width: 110px;
  669. text-align: right;
  670. }
  671. .select {
  672. width: 250px;
  673. }
  674. .span {
  675. display: inline-block;
  676. width: 30px;
  677. height: 10px;
  678. }
  679. }
  680. .contractTitle {
  681. display: flex;
  682. justify-content: center;
  683. .el-form-item {
  684. display: flex;
  685. justify-content: center;
  686. .el-form-item__label {
  687. display: flex;
  688. align-items: center;
  689. }
  690. .el-input {
  691. width: 250px;
  692. }
  693. }
  694. }
  695. .forwardingUnit {
  696. display: flex;
  697. justify-content: center;
  698. .text {
  699. display: inline-block;
  700. width: 170px;
  701. text-align: right;
  702. }
  703. .input {
  704. width: 250px;
  705. margin-right: 20px;
  706. }
  707. }
  708. .truckList1 {
  709. width: 100%;
  710. .truckList {
  711. width: 96%;
  712. .text {
  713. display: inline-block;
  714. width: 120px;
  715. text-align: right;
  716. }
  717. .truckBtn {
  718. width: 250px;
  719. }
  720. }
  721. }
  722. .drawer_top{
  723. margin-top: -50px;
  724. width: 100%;height: 60px;
  725. display: flex;
  726. align-items: center;
  727. }
  728. .drawer_table1{
  729. width: 100%;height: 500px;
  730. }
  731. .button_box {
  732. display: flex;
  733. justify-content: center;
  734. align-items: center;
  735. width: 100%;
  736. height: 100px;
  737. }
  738. </style>