addWagonloadCopy.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  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="width:750px;
  61. height:300px;
  62. float:left;
  63. overflow:auto"
  64. >
  65. <el-table ref="tempTable"
  66. highlight-current-row
  67. @row-click="rowClick"
  68. :data="tableData"
  69. :row-style="{height:'40px'}"
  70. style="width: 1000px;font-size: 18px">
  71. <el-table-column
  72. type="selection"
  73. width="40px">
  74. </el-table-column>
  75. <el-table-column
  76. type="index"
  77. width="50px"
  78. prop="number"
  79. label="序号"
  80. align="center"
  81. fixed="left"
  82. :resizable="false"
  83. >
  84. </el-table-column>
  85. <el-table-column
  86. align="center"
  87. prop="makeDate"
  88. label="制票日期"
  89. width="120px"
  90. >
  91. </el-table-column>
  92. <el-table-column
  93. align="center"
  94. prop="wagonNo"
  95. label="车皮号"
  96. width="120px"
  97. >
  98. </el-table-column>
  99. <el-table-column
  100. align="center"
  101. prop="materialName"
  102. label="物资"
  103. width="180px"
  104. >
  105. </el-table-column>
  106. <el-table-column
  107. align="center"
  108. prop="mineral"
  109. label="矿种"
  110. width="120px"
  111. >
  112. </el-table-column>
  113. <el-table-column align="center" width="80px" prop="wagonWeight" label="标重">
  114. </el-table-column>
  115. </el-table>
  116. </div>
  117. <div
  118. class="right"
  119. style="margin-top:10px;
  120. float:right;"
  121. >
  122. <div class="form">
  123. <div class="form_box" 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. let carNumber = row["车皮号"];
  626. if (typeof carNumber != "undefined" && carNumber.length == 7) {
  627. //车皮号表
  628. let map = {};
  629. map.wagonNo = carNumber;
  630. //表格数据
  631. let temp = {
  632. number: row["序号"],
  633. makeDate: row["制票日期"],
  634. materialName: row["品名"],
  635. wagonNo: row["车皮号"],
  636. mineral: row["矿种"],
  637. wagonWeight: row["标重"]
  638. };
  639. that.tableData.push(temp);
  640. } else {
  641. let errorNumb = index + 1;
  642. console.log("第" + errorNumb + "行车皮号异常!");
  643. return;
  644. }
  645. });
  646. };
  647. reader.readAsBinaryString(file.raw); //以二进制方式读取
  648. },
  649. //采购订单表格选中
  650. orderChange(selection) {
  651. console.log(selection);
  652. this.purchaseOrderId = selection.purchaseOrderId;
  653. this.form1 = {
  654. purchaseOrderNo: selection.purchaseOrderNo,
  655. resultLoadingDate: new Date()
  656. };
  657. this.materialId = selection.materialId;
  658. this.materialName = selection.materialName;
  659. this.supplierId = selection.supplierId;
  660. this.supplierName = selection.supplierName;
  661. },
  662. //点击行勾选
  663. rowClick(row, column, event) {
  664. let tempTable = this.$refs.tempTable; // 获取表格对象
  665. //判断是否已存在
  666. let findRow = this.$refs.tempTable.selection.find(item => item.number == row.number);
  667. if (findRow) {
  668. tempTable.toggleRowSelection(row, false);
  669. }else{
  670. tempTable.toggleRowSelection(row);
  671. }
  672. },
  673. }
  674. };
  675. </script>
  676. <style lang="scss">
  677. .addWagonLoad {
  678. color: #606266;
  679. font-size: 0.675rem;
  680. font-weight: 500;
  681. .cp {
  682. width: 49%;
  683. display: flex;
  684. justify-content: center;
  685. align-items: center;
  686. padding-top: 0.625rem;
  687. padding-bottom: 0.625rem;
  688. margin-left: 364px;
  689. .cp_title {
  690. .cp_top {
  691. width: 3.125rem;
  692. padding-right: 1.55rem;
  693. }
  694. }
  695. }
  696. .cpList {
  697. display: flex;
  698. justify-content: center;
  699. width: 100%;
  700. height: 10rem;
  701. .list {
  702. width: 45%;
  703. border: #000 0.0625rem solid;
  704. padding: 0.625rem;
  705. display: flex;
  706. flex-wrap: wrap;
  707. .cpList1 {
  708. background-color: #c9c7c7;
  709. height: 1.875rem;
  710. margin-right: 0.5rem;
  711. padding: 0.625rem;
  712. display: flex;
  713. align-items: center;
  714. justify-content: center;
  715. position: relative;
  716. .itu {
  717. position: absolute;
  718. top: -0.125rem;
  719. right: 0.0625rem;
  720. width: 0.625rem;
  721. height: 0.625rem;
  722. }
  723. }
  724. }
  725. }
  726. .matching {
  727. width: 100%;
  728. height: 3.125rem;
  729. display: flex;
  730. justify-content: center;
  731. align-items: center;
  732. .text {
  733. width: 8.75rem;
  734. }
  735. .span {
  736. display: inline-block;
  737. width: 310px;
  738. height: 0.0625rem;
  739. }
  740. }
  741. .material {
  742. display: flex;
  743. justify-content: center;
  744. align-items: center;
  745. height: 3.75rem;
  746. margin-left: 27rem;
  747. width: 20rem;
  748. .text {
  749. text-align: right;
  750. width: 8.125rem;
  751. }
  752. }
  753. .forwardingUnit {
  754. display: flex;
  755. justify-content: center;
  756. align-items: center;
  757. height: 3.75rem;
  758. margin-left: 27rem;
  759. width: 20rem;
  760. .text {
  761. text-align: right;
  762. width: 8.125rem;
  763. }
  764. }
  765. .remark {
  766. display: flex;
  767. justify-content: center;
  768. align-items: center;
  769. height: 3.75rem;
  770. .text {
  771. text-align: right;
  772. width: 5.625rem;
  773. }
  774. .span {
  775. display: inline-block;
  776. width: 1.875rem;
  777. height: 1.25rem;
  778. }
  779. .el-input {
  780. width: 13.5rem;
  781. margin-right: 2.375rem;
  782. }
  783. }
  784. .purchaseOrder {
  785. display: flex;
  786. justify-content: center;
  787. align-items: center;
  788. .span {
  789. display: inline-block;
  790. width: 1.875rem;
  791. height: 0.0625rem;
  792. }
  793. }
  794. .form {
  795. display: flex;
  796. .form_box {
  797. width: 340px;
  798. margin-left: 20%;
  799. margin-right: 200px;
  800. .el-form {
  801. .preview-group {
  802. .el-form-item {
  803. .el-form-item__label {
  804. display: inline-block;
  805. width: 70px !important;
  806. }
  807. .el-form-item__content {
  808. .el-select {
  809. width: 250px;
  810. }
  811. .el-input {
  812. width: 250px;
  813. }
  814. .el-textarea {
  815. .el-textarea__inner {
  816. width: 225px;
  817. margin-top: 0.03rem;
  818. }
  819. }
  820. }
  821. }
  822. }
  823. }
  824. }
  825. }
  826. .button-box {
  827. display: flex;
  828. justify-content: center;
  829. padding: 10px;
  830. }
  831. .formOther .el-input__inner {
  832. width: 250px;
  833. }
  834. }
  835. </style>