addWagonloadCopy.vue 23 KB

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