addWagonLoad.vue 24 KB

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