addWagonloadCopy.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. <template>
  2. <!-- 万州港-达州港口出库 -->
  3. <div class="addWagonLoad">
  4. <page-title>返回</page-title>
  5. <div class="purchaseOrder_table">
  6. <div class="search" style="display:flex">
  7. <div style="margin-top: 18px;margin-left:10px">
  8. <el-label>物资名或订单号:</el-label>
  9. </div>
  10. <el-input
  11. placeholder="请输入"
  12. v-model="search1"
  13. style="margin: 10px; width:10%"
  14. clearable
  15. ></el-input>
  16. <div style="margin-top: 18px;margin-left:10px">
  17. <el-label>外轮船名:</el-label>
  18. </div>
  19. <el-input
  20. placeholder="请输入"
  21. v-model="search2"
  22. style="margin: 10px;width:10%"
  23. clearable
  24. ></el-input>
  25. <el-button
  26. type="primary"
  27. class="btn"
  28. @click="searchOrder()"
  29. style="margin: 10px;"
  30. >
  31. <i class="el-icon-search"></i>查询
  32. </el-button>
  33. </div>
  34. <!-- 采购订单号 -->
  35. <dilTable
  36. v-bind.sync="purchaseOption"
  37. @radio-change="orderChange"
  38. ></dilTable>
  39. </div>
  40. <div class="cp">
  41. <span>车皮号:</span>
  42. <el-upload
  43. style="margin: 8px;"
  44. class="upload-excel"
  45. action=""
  46. :on-change="importExcel"
  47. :show-file-list="false"
  48. accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
  49. :auto-upload="false"
  50. >
  51. <el-button type="primary">导入</el-button>
  52. </el-upload>
  53. <span>当前导入数量:{{ tableData.length }}</span>
  54. </div>
  55. <div>
  56. <span style="color:red">导入数据中的 序号、车皮号 是必须的</span>
  57. </div>
  58. <div
  59. class="table item left"
  60. style="height:300px;
  61. float:left;
  62. overflow:auto"
  63. >
  64. <el-table ref="tempTable"
  65. highlight-current-row
  66. @row-click="rowClick"
  67. :data="tableData"
  68. :row-style="{height:'40px'}"
  69. style="width: 100%;font-size: 18px">
  70. <el-table-column
  71. type="selection"
  72. width="40px">
  73. </el-table-column>
  74. <el-table-column
  75. type="index"
  76. width="50px"
  77. prop="number"
  78. label="序号"
  79. align="center"
  80. fixed="left"
  81. :resizable="false"
  82. >
  83. </el-table-column>
  84. <el-table-column
  85. align="center"
  86. prop="makeDate"
  87. label="制票日期"
  88. width="170px"
  89. >
  90. </el-table-column>
  91. <el-table-column
  92. align="center"
  93. prop="wagonNo"
  94. label="车皮号"
  95. width="120px"
  96. >
  97. </el-table-column>
  98. <el-table-column
  99. align="center"
  100. prop="materialName"
  101. label="物资"
  102. width="180px"
  103. >
  104. </el-table-column>
  105. <el-table-column
  106. align="center"
  107. prop="mineral"
  108. label="矿种"
  109. width="120px"
  110. >
  111. </el-table-column>
  112. <el-table-column align="center" width="80px" prop="wagonWeight" label="标重">
  113. </el-table-column>
  114. </el-table>
  115. </div>
  116. <div
  117. class="right"
  118. style="margin-top:10px;
  119. margin-left:10px;
  120. float:right;"
  121. >
  122. <div class="form">
  123. <div class="form_box_addWagonLoad" style="">
  124. <el-form>
  125. <div class="preview-group">
  126. <el-form-item label="发站:">
  127. <el-autocomplete
  128. class="inline-input"
  129. v-model="sendStation"
  130. :fetch-suggestions="querySearchSendStation"
  131. placeholder="请输入发站名称"
  132. disabled
  133. :trigger-on-focus="false"
  134. @select="handleSelectSendStation"
  135. >
  136. <template slot-scope="{ item }">
  137. <div class="name">{{ item.arrivalName }}</div>
  138. </template>
  139. </el-autocomplete>
  140. </el-form-item>
  141. <!-- <el-form-item label="到站:">
  142. <el-autocomplete
  143. class="inline-input"
  144. v-model="toTheStation"
  145. :fetch-suggestions="querySearchToTheStation"
  146. placeholder="请输入到站名称"
  147. :trigger-on-focus="false"
  148. @select="handleSelectToTheStation"
  149. >
  150. <template slot-scope="{ item }">
  151. <div class="name">{{ item.arrivalName }}</div>
  152. </template>
  153. </el-autocomplete>
  154. </el-form-item> -->
  155. <el-form-item label="有拼装:">
  156. <el-switch
  157. v-model="isAssembly">
  158. </el-switch>
  159. </el-form-item>
  160. </div>
  161. </el-form>
  162. <dil-form :formId="102" v-model="form1" ref="from1"></dil-form>
  163. </div>
  164. </div>
  165. <div class="button-box">
  166. <el-button @click="cancel">取消</el-button>
  167. <el-button type="primary" :loading="isLoading" @click="makeSure"
  168. >确定</el-button
  169. >
  170. </div>
  171. </div>
  172. </div>
  173. </template>
  174. <script>
  175. import PageTitle from "@/components/Page/Title";
  176. import { sjTime } from "@/utils/sharedJsFile";
  177. import { getCookie } from "@/utils/util.js";
  178. export default {
  179. components: { PageTitle },
  180. data() {
  181. return {
  182. isLoading: false,
  183. list: [],
  184. form1: {},
  185. tableData: [],
  186. input: "",
  187. isAssembly:false,
  188. value: undefined,
  189. selection:[],
  190. //船名
  191. remark: null,
  192. //采购订单id
  193. purchaseOrderId: null,
  194. //物资名称
  195. materialName: null,
  196. //发货单位名称
  197. supplierName: null,
  198. //发货单位id
  199. supplierId: null,
  200. //物资id
  201. materialId: null,
  202. //是否需要打开模态窗口
  203. drawer: false,
  204. //卸货点id
  205. unloadPointId: null,
  206. //卸货点名称
  207. unloadPointName: null,
  208. //查询
  209. search1: null,
  210. search2: null,
  211. a: 1,
  212. direction: "rtl",
  213. inputText: "",
  214. purchaseOption: {
  215. // 表格请求数据的地址
  216. requestUrl: "/api/v1/tms/findPurchaseOrderList?apiId=81",
  217. // 控制选择单列
  218. selectionType: "radio",
  219. pageSize: 5
  220. },
  221. frist: {
  222. requestUrl: "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050",
  223. selectionType: "radio",
  224. mapList1: []
  225. },
  226. secend: {
  227. requestUrl:
  228. "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=",
  229. selectionType: "radio",
  230. mapList2: []
  231. },
  232. unloadPoint: {
  233. requestUrl: "/api/v1/uc/getUnloadingMesByLike?apiId=374",
  234. selectionType: "radio"
  235. },
  236. sendStationId: 4,//发站id和到站id都写死了,并且赋了港口名,如果数据库id变化,要注意
  237. toTheStationId: 1,
  238. sendStation: "万州港",
  239. toTheStation: "老区轨道衡"
  240. };
  241. },
  242. mounted() {
  243. this.form1.resultLoadingDate = new Date();
  244. },
  245. methods: {
  246. currentRadioChange1(selection) {
  247. this.input = null;
  248. this.materialName = selection.materialName;
  249. this.materialId = selection.materialId;
  250. this.getPurchaseOrderNo();
  251. },
  252. currentRadioChange2(selection) {
  253. this.supplierName = selection.supplierName;
  254. this.supplierId = selection.supplierId;
  255. this.getPurchaseOrderNo();
  256. },
  257. currentRadioChange4(selection) {
  258. this.unloadPointId = selection.warehouseId;
  259. this.unloadPointName = selection.warehouseName;
  260. },
  261. ondrawer(num) {
  262. this.drawer = true;
  263. this.a = num;
  264. if (num == 2) {
  265. this.secend.requestUrl =
  266. "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
  267. this.materialId;
  268. }
  269. },
  270. onBlur() {
  271. this.getPurchaseOrderNo();
  272. },
  273. getPurchaseOrderNo() {
  274. let map = {
  275. materialId: this.materialId,
  276. supplierId: this.supplierId
  277. };
  278. if (this.remark) {
  279. map.remark = this.remark;
  280. }
  281. if (this.materialId && this.supplierId) {
  282. this.axios.post("/api/v1/oms/selectNewOrderId", map).then(res => {
  283. console.log(res);
  284. if (res.data.code == "200") {
  285. if (res.data.data == null) {
  286. this.$message({
  287. message: "没有匹配的采购订单号!",
  288. type: "warning"
  289. });
  290. this.form1 = [];
  291. } else {
  292. this.remark = res.data.data.remark;
  293. this.purchaseOrderId = res.data.data.purchaseOrderId;
  294. this.form1 = { purchaseOrderNo: res.data.data.purchaseOrderNo };
  295. }
  296. } else {
  297. this.$message.error("请求失败");
  298. }
  299. });
  300. }
  301. },
  302. onClick(a) {
  303. if (a == 1) {
  304. this.frist.requestUrl =
  305. "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
  306. this.inputText;
  307. } else if (a == 2) {
  308. this.secend.requestUrl =
  309. "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
  310. this.materialId +
  311. "&index=" +
  312. this.inputText;
  313. } else if (a == 4) {
  314. this.unloadPoint.requestUrl =
  315. "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.inputText;
  316. }
  317. },
  318. //发站弹出层
  319. handleSelectSendStation(item) {
  320. this.sendStationId = item.arrivalId;
  321. this.sendStation = item.arrivalName;
  322. },
  323. //以下是发站边输边查搜索
  324. querySearchSendStation(queryString, cb) {
  325. this.axios
  326. .get("/api/v1/uc/getArrivalByLike?index=" + this.sendStation)
  327. .then(res => {
  328. if (res.data.code == "200") {
  329. var restaurantsSupplier = res.data.data;
  330. console.log(restaurantsSupplier);
  331. var results = queryString
  332. ? restaurantsSupplier.filter(
  333. this.createFilterSendStation(queryString)
  334. )
  335. : restaurantsSupplier;
  336. // 调用 callback 返回建议列表的数据
  337. cb(results);
  338. }
  339. });
  340. },
  341. //发站
  342. createFilterSendStation(queryString) {
  343. return restaurantsSupplier => {
  344. return (
  345. restaurantsSupplier.arrivalName
  346. .toLowerCase()
  347. .indexOf(queryString.toLowerCase()) > -1
  348. );
  349. };
  350. },
  351. //到站弹出层
  352. handleSelectToTheStation(item) {
  353. this.toTheStationId = item.arrivalId;
  354. this.toTheStation = item.arrivalName;
  355. },
  356. //以下是到站边输边查搜索
  357. querySearchToTheStation(queryString, cb) {
  358. this.axios
  359. .get("/api/v1/uc/getArrivalByLike?index=" + this.toTheStation)
  360. .then(res => {
  361. if (res.data.code == "200") {
  362. var restaurantsSupplier = res.data.data;
  363. console.log(restaurantsSupplier);
  364. var results = queryString
  365. ? restaurantsSupplier.filter(
  366. this.createFilterToTheStation(queryString)
  367. )
  368. : restaurantsSupplier;
  369. // 调用 callback 返回建议列表的数据
  370. cb(results);
  371. }
  372. });
  373. },
  374. //到站
  375. createFilterToTheStation(queryString) {
  376. return restaurantsSupplier => {
  377. return (
  378. restaurantsSupplier.arrivalName
  379. .toLowerCase()
  380. .indexOf(queryString.toLowerCase()) > -1
  381. );
  382. };
  383. },
  384. onchang() {
  385. var state = false;
  386. var cptop = this.input.substring(0, 2);
  387. var cptop1 = this.input.substring(0, 3);
  388. if (
  389. cptop == "45" ||
  390. cptop == "46" ||
  391. cptop == "42" ||
  392. cptop == "47" ||
  393. cptop == "15" ||
  394. cptop == "16" ||
  395. cptop == "17" ||
  396. cptop == "18"
  397. ) {
  398. state = true;
  399. } else if (
  400. cptop1 == "140" ||
  401. cptop1 == "141" ||
  402. cptop1 == "142" ||
  403. cptop1 == "143" ||
  404. cptop1 == "145"
  405. ) {
  406. state = true;
  407. } else {
  408. this.$message({
  409. type: "warning",
  410. message: "车皮号格式不对,请重新输入!"
  411. });
  412. }
  413. if (state) {
  414. if (this.input.length == 7) {
  415. this.list.push(this.input);
  416. this.input = "";
  417. } else {
  418. this.$message({
  419. type: "warning",
  420. message: "车皮号长度不足7位数,请重新输入!"
  421. });
  422. }
  423. }
  424. },
  425. searchOrder() {
  426. //查询订单
  427. if (
  428. typeof this.search1 != "undefined" &&
  429. typeof this.search2 != "undefined"
  430. ) {
  431. let requestUrl = "/api/v1/tms/findPurchaseOrderList?apiId=81";
  432. if (this.search1 != null) {
  433. requestUrl += "&materialName=" + this.search1;
  434. }
  435. if (this.search2 != null) {
  436. requestUrl += "&resultForeignShipName=" + this.search2;
  437. }
  438. this.purchaseOption.requestUrl = requestUrl;
  439. } else {
  440. this.purchaseOption.requestUrl =
  441. "/api/v1/tms/findPurchaseOrderList?apiId=81";
  442. }
  443. },
  444. onclick(index) {
  445. this.list.splice(index, 1);
  446. },
  447. // 确定
  448. makeSure() {
  449. this.isLoading = true;
  450. let state = 0;
  451. if (
  452. this.$refs.tempTable.selection.length > 0 &&
  453. this.materialId &&
  454. this.supplierId &&
  455. this.purchaseOrderId &&
  456. this.form1.resultIsclear &&
  457. this.form1.resultClass &&
  458. this.sendStationId &&
  459. this.toTheStationId &&
  460. this.form1.resultLoadingDate
  461. ) {
  462. state = 1;
  463. } else {
  464. this.isLoading = false;
  465. console.log(this.list.length);
  466. if (this.list.length == 0) {
  467. this.$message({
  468. type: "warning",
  469. message: "请选择车皮号!"
  470. });
  471. } else {
  472. if (this.materialId) {
  473. if (this.purchaseOrderId) {
  474. if (this.form1.resultIsclear) {
  475. if (this.form1.resultClass) {
  476. if (this.sendStationId) {
  477. if (this.toTheStationId) {
  478. if (this.form1.resultLoadingDate) {
  479. } else {
  480. this.$message({
  481. type: "warning",
  482. message: "请选择装车时间!"
  483. });
  484. }
  485. } else {
  486. this.$message({
  487. type: "warning",
  488. message: "请选择到站!"
  489. });
  490. }
  491. } else {
  492. this.$message({
  493. type: "warning",
  494. message: "请选择发站!"
  495. });
  496. }
  497. } else {
  498. this.$message({
  499. type: "warning",
  500. message: "请选择班别!"
  501. });
  502. }
  503. } else {
  504. this.$message({
  505. type: "warning",
  506. message: "请选择是否清场!"
  507. });
  508. }
  509. } else {
  510. this.$message({
  511. type: "warning",
  512. message: "请选择采购订单号!"
  513. });
  514. }
  515. } else {
  516. this.$message({
  517. type: "warning",
  518. message: "请选择采购订单号!"
  519. });
  520. }
  521. }
  522. }
  523. if (state == 1) {
  524. let map = {
  525. portName: this.sendStation,
  526. wagonList: this.$refs.tempTable.selection,
  527. // unloadingPointId:this.unloadPointId,
  528. purchaseOrderRailPlanId: this.purchaseOrderId,
  529. materialId: this.materialId,
  530. sendUnitId: this.supplierId,
  531. isClean: this.form1.resultIsclear,
  532. resultClass: this.form1.resultClass,
  533. sendStationId: this.sendStationId,
  534. arrivalStationId: this.toTheStationId,
  535. resultLoadingDate: sjTime(this.form1.resultLoadingDate),
  536. resultRemarks: this.form1.resultRemarks,
  537. userId: getCookie("userId"),
  538. resultType: 1,
  539. purchaseNo: this.form1.purchaseOrderNo,
  540. isAssembly:this.isAssembly
  541. };
  542. console.log(map);
  543. //校验拼装车的标重
  544. if(this.isAssembly){
  545. let flag=false;
  546. map.wagonList.forEach((item)=>{
  547. if(typeof item.wagonWeight !='undefined'){
  548. flag=true;
  549. }
  550. });
  551. if(!flag){
  552. this.$message.warning("拼装车的标重不存在!");
  553. this.isLoading = false;
  554. return ;
  555. }
  556. }
  557. this.axios
  558. .post("/api/v1/tms/addWarehouseOutResult", map)
  559. .then(res => {
  560. console.log(res);
  561. if (res.data.code == "200") {
  562. this.$message({
  563. type: "success",
  564. message: "新增成功"
  565. });
  566. this.cancel();
  567. } else {
  568. this.$message({
  569. type: "error",
  570. message: res.data.data
  571. });
  572. }
  573. this.isLoading = false;
  574. })
  575. .catch(() => {
  576. this.$message.error("请联系管理员");
  577. this.isLoading = false;
  578. });
  579. }
  580. },
  581. // 取消
  582. cancel() {
  583. this.$router.go(-1);
  584. },
  585. // 导入excel
  586. importExcel(file) {
  587. let that = this;
  588. if (!file) {
  589. that.$message({
  590. message: "文件错误!",
  591. type: "warning"
  592. });
  593. return;
  594. }
  595. var reader = new FileReader();
  596. var data = null;
  597. var workbook = null;
  598. //设置读取操作
  599. reader.onload = function(e) {
  600. console.log(e);
  601. data = e.target.result;
  602. workbook = XLSX.read(data, {
  603. type: "binary"
  604. });
  605. console.log(workbook);
  606. //读取表格
  607. let rows = XLSX.utils.sheet_to_json(
  608. workbook.Sheets[workbook.SheetNames[0]]
  609. ); //只取第一页
  610. console.log(rows);
  611. //清空
  612. if (rows.length > 0) {
  613. that.tableData = [];
  614. that.isLoading = false;
  615. if (typeof rows[0]["车皮号"] == "undefined") {
  616. that.$message({
  617. message: "车皮号不存在!请参考下方格式!",
  618. type: "warning"
  619. });
  620. return;
  621. }
  622. }
  623. //绑定数据
  624. rows.forEach((row, index) => {
  625. //表格数据
  626. let temp = {
  627. number: row["序号"],
  628. makeDate:that.formatDate(row["制票日期"]) ,
  629. materialName: row["品名"],
  630. wagonNo: row["车皮号"]+"",
  631. mineral: row["矿种"],
  632. wagonWeight: row["标重"]
  633. };
  634. that.tableData.push(temp);
  635. });
  636. };
  637. reader.readAsBinaryString(file.raw); //以二进制方式读取
  638. },
  639. //采购订单表格选中
  640. orderChange(selection) {
  641. console.log(selection);
  642. this.purchaseOrderId = selection.purchaseOrderId;
  643. this.form1 = {
  644. purchaseOrderNo: selection.purchaseOrderNo,
  645. resultLoadingDate: new Date()
  646. };
  647. this.materialId = selection.materialId;
  648. this.materialName = selection.materialName;
  649. this.supplierId = selection.supplierId;
  650. this.supplierName = selection.supplierName;
  651. },
  652. //点击行勾选
  653. rowClick(row, column, event) {
  654. let tempTable = this.$refs.tempTable; // 获取表格对象
  655. //判断是否已存在
  656. let findRow = this.$refs.tempTable.selection.find(item => item.number == row.number);
  657. if (findRow) {
  658. tempTable.toggleRowSelection(row, false);
  659. }else{
  660. tempTable.toggleRowSelection(row);
  661. }
  662. },
  663. formatDate(numb, format) {
  664. const time = new Date((numb - 1) * 24 * 3600000 + 1)
  665. time.setYear(time.getFullYear() - 70)
  666. const year = time.getFullYear() + ''
  667. const month = time.getMonth() + 1 + ''
  668. const date = time.getDate() + ''
  669. if (format && format.length === 1) {
  670. return year + format + month + format + date
  671. }
  672. return year + '年' + (month < 10 ? '0' + month : month)+ '月' + (date < 10 ? '0' + date : date) + '日'
  673. }
  674. }
  675. };
  676. </script>
  677. <style lang="scss">
  678. .addWagonLoad {
  679. color: #606266;
  680. font-size: 0.675rem;
  681. font-weight: 500;
  682. .cp {
  683. width: 49%;
  684. display: flex;
  685. justify-content: center;
  686. align-items: center;
  687. padding-top: 0.625rem;
  688. padding-bottom: 0.625rem;
  689. margin-left: 364px;
  690. .cp_title {
  691. .cp_top {
  692. width: 3.125rem;
  693. padding-right: 1.55rem;
  694. }
  695. }
  696. }
  697. .cpList {
  698. display: flex;
  699. justify-content: center;
  700. width: 100%;
  701. height: 10rem;
  702. .list {
  703. width: 45%;
  704. border: #000 0.0625rem solid;
  705. padding: 0.625rem;
  706. display: flex;
  707. flex-wrap: wrap;
  708. .cpList1 {
  709. background-color: #c9c7c7;
  710. height: 1.875rem;
  711. margin-right: 0.5rem;
  712. padding: 0.625rem;
  713. display: flex;
  714. align-items: center;
  715. justify-content: center;
  716. position: relative;
  717. .itu {
  718. position: absolute;
  719. top: -0.125rem;
  720. right: 0.0625rem;
  721. width: 0.625rem;
  722. height: 0.625rem;
  723. }
  724. }
  725. }
  726. }
  727. .matching {
  728. width: 100%;
  729. height: 3.125rem;
  730. display: flex;
  731. justify-content: center;
  732. align-items: center;
  733. .text {
  734. width: 8.75rem;
  735. }
  736. .span {
  737. display: inline-block;
  738. width: 310px;
  739. height: 0.0625rem;
  740. }
  741. }
  742. .material {
  743. display: flex;
  744. justify-content: center;
  745. align-items: center;
  746. height: 3.75rem;
  747. margin-left: 27rem;
  748. width: 20rem;
  749. .text {
  750. text-align: right;
  751. width: 8.125rem;
  752. }
  753. }
  754. .forwardingUnit {
  755. display: flex;
  756. justify-content: center;
  757. align-items: center;
  758. height: 3.75rem;
  759. margin-left: 27rem;
  760. width: 20rem;
  761. .text {
  762. text-align: right;
  763. width: 8.125rem;
  764. }
  765. }
  766. .remark {
  767. display: flex;
  768. justify-content: center;
  769. align-items: center;
  770. height: 3.75rem;
  771. .text {
  772. text-align: right;
  773. width: 5.625rem;
  774. }
  775. .span {
  776. display: inline-block;
  777. width: 1.875rem;
  778. height: 1.25rem;
  779. }
  780. .el-input {
  781. width: 13.5rem;
  782. margin-right: 2.375rem;
  783. }
  784. }
  785. .purchaseOrder {
  786. display: flex;
  787. justify-content: center;
  788. align-items: center;
  789. .span {
  790. display: inline-block;
  791. width: 1.875rem;
  792. height: 0.0625rem;
  793. }
  794. }
  795. .form {
  796. display: flex;
  797. .form_box_addWagonLoad {
  798. width: 340px;
  799. margin-left: 30px;
  800. margin-right: 20px;
  801. .el-form {
  802. .preview-group {
  803. .el-form-item {
  804. .el-form-item__label {
  805. display: inline-block;
  806. width: 70px !important;
  807. }
  808. .el-form-item__content {
  809. .el-select {
  810. width: 250px;
  811. }
  812. .el-input {
  813. width: 250px;
  814. }
  815. .el-textarea {
  816. .el-textarea__inner {
  817. width: 225px;
  818. margin-top: 0.03rem;
  819. }
  820. }
  821. }
  822. }
  823. }
  824. }
  825. }
  826. }
  827. .button-box {
  828. display: flex;
  829. justify-content: center;
  830. padding: 10px;
  831. }
  832. .formOther .el-input__inner {
  833. width: 250px;
  834. }
  835. }
  836. </style>