voyageList.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. <template>
  2. <div class="line-container-p24">
  3. <div style="display: flex; justify-content: space-between">
  4. <div class="df aic">
  5. <div
  6. @click="changeVoyageType(0)"
  7. :class="
  8. status == 0
  9. ? 'currentbtn radio-btns left-radius'
  10. : 'radio-btns left-radius'
  11. "
  12. >
  13. 全部航次
  14. </div>
  15. <div
  16. style="border-left: none"
  17. @click="changeVoyageType(1)"
  18. :class="status == 1 ? 'currentbtn radio-btns' : 'radio-btns'"
  19. >
  20. 装货中
  21. </div>
  22. <div
  23. style="border-left: none"
  24. @click="changeVoyageType(2)"
  25. :class="status == 2 ? 'currentbtn radio-btns' : 'radio-btns'"
  26. >
  27. 运输中
  28. </div>
  29. <div
  30. style="border-left: none"
  31. @click="changeVoyageType(3)"
  32. :class="status == 3 ? 'currentbtn radio-btns' : 'radio-btns'"
  33. >
  34. 卸货中
  35. </div>
  36. <div
  37. @click="changeVoyageType(4)"
  38. :class="
  39. status == 4
  40. ? 'currentbtn radio-btns right-radius'
  41. : 'radio-btns right-radius '
  42. "
  43. style="margin-right: 40px; border-left: none"
  44. >
  45. 历史航次
  46. </div>
  47. <!-- <div style="color: #333; margin-right: 10px; font-size: 14px">
  48. 预计到港时间:
  49. </div>
  50. <el-radio-group v-model="sortradio">
  51. <el-radio :label="-1">默认排序</el-radio>
  52. <el-radio :label="0">降序</el-radio>
  53. <el-radio :label="1">升序</el-radio>
  54. </el-radio-group> -->
  55. <el-input
  56. placeholder="请输入船名/MMSI"
  57. prefix-icon="el-icon-search"
  58. v-model="term"
  59. clearable
  60. style="width: 330px"
  61. ></el-input>
  62. <div class="search-btn" @click="getVoyageList()">查询</div>
  63. </div>
  64. <!-- <div class="cargo-owner-add" @click="voyageAddDialogVisible = true">
  65. 添加航次
  66. </div> -->
  67. </div>
  68. <el-dialog v-model="voyageAddDialogVisible" title="添加航次">
  69. <el-form
  70. :rules="rules"
  71. label-position="right"
  72. label-width="80px"
  73. ref="addVoyageForm"
  74. :model="voyageForm"
  75. :before-close="resetAddVoyageForm"
  76. >
  77. <div class="df ffw">
  78. <!-- <el-form-item prop="voyageName" label="航次名称">
  79. <el-input v-model="voyageForm.voyageName"></el-input>
  80. </el-form-item>
  81. <el-form-item label=""></el-form-item> -->
  82. <el-form-item prop="shipName" label="船舶">
  83. <!-- <el-input v-model="voyageForm.shipOwnerId"></el-input> -->
  84. <el-autocomplete
  85. v-model="voyageForm.shipName"
  86. :fetch-suggestions="searchShip"
  87. placeholder="选择船舶"
  88. @blur="clear('shipId')"
  89. @select="selectShip"
  90. />
  91. </el-form-item>
  92. <el-form-item prop="cargoOwnerName" label="货主">
  93. <el-autocomplete
  94. v-model="voyageForm.cargoOwnerName"
  95. :fetch-suggestions="searchCargoOwner"
  96. @blur="clear('cargoOwnerId')"
  97. placeholder="选择货主"
  98. @select="selectCargoOwner"
  99. />
  100. </el-form-item>
  101. <el-form-item prop="startTime" label="开始时间">
  102. <el-date-picker
  103. v-model="voyageForm.startTime"
  104. type="date"
  105. value-format="YYYY/MM/DD"
  106. placeholder="航次开始时间"
  107. ></el-date-picker>
  108. </el-form-item>
  109. <el-form-item prop="endTime" label="结束时间">
  110. <el-date-picker
  111. v-model="voyageForm.endTime"
  112. type="date"
  113. value-format="YYYY/MM/DD"
  114. placeholder="航次结束时间"
  115. disabled
  116. ></el-date-picker>
  117. </el-form-item>
  118. <el-form-item prop="loadPort" label="装货港">
  119. <el-autocomplete
  120. v-model="voyageForm.loadPort"
  121. :fetch-suggestions="getCol"
  122. @blur="clear('loadPort')"
  123. placeholder="选择装货港"
  124. @select="selectLoadPort"
  125. />
  126. </el-form-item>
  127. <el-form-item prop="dischargeProt" label="卸货港">
  128. <el-autocomplete
  129. v-model="voyageForm.dischargeProt"
  130. :fetch-suggestions="getCol"
  131. @blur="clear('dischargeProt')"
  132. placeholder="选择卸货港"
  133. @select="selectDischargeProt"
  134. />
  135. </el-form-item>
  136. <el-form-item prop="cargo" label="货种">
  137. <el-input v-model="voyageForm.cargo"></el-input>
  138. </el-form-item>
  139. <el-form-item prop="tons" label="吨位">
  140. <el-input v-model="voyageForm.tons"></el-input>
  141. </el-form-item>
  142. </div>
  143. </el-form>
  144. <template #footer>
  145. <span class="dialog-footer">
  146. <el-button @click="resetAddVoyageForm">取消</el-button>
  147. <el-button type="primary" @click="addVoyage">确定</el-button>
  148. </span>
  149. </template>
  150. </el-dialog>
  151. <el-table :data="tableData" stripe style="width: 100%; margin-top: 24px">
  152. <el-table-column
  153. type="index"
  154. label="序号"
  155. min-width="80"
  156. align="center"
  157. ></el-table-column>
  158. <el-table-column
  159. prop="voyageName"
  160. label="航次名称"
  161. min-width="140"
  162. align="center"
  163. ></el-table-column>
  164. <el-table-column
  165. prop="loadDiscPort"
  166. label="装货港-卸货港"
  167. min-width="200"
  168. align="center"
  169. ></el-table-column>
  170. <el-table-column
  171. prop="setSailTime"
  172. label="开航时间"
  173. min-width="180"
  174. align="center"
  175. ></el-table-column>
  176. <el-table-column
  177. prop="expectedArrivalTime"
  178. label="预计到港时间"
  179. min-width="180"
  180. align="center"
  181. ></el-table-column>
  182. <el-table-column
  183. prop="daysInPort"
  184. label="在港天数"
  185. min-width="80"
  186. align="center"
  187. ></el-table-column>
  188. <el-table-column
  189. prop="todayPhotoCount"
  190. label="今日照片"
  191. min-width="80"
  192. align="center"
  193. ></el-table-column>
  194. <el-table-column
  195. prop="cargo"
  196. label="货种"
  197. min-width="80"
  198. align="center"
  199. ></el-table-column>
  200. <el-table-column
  201. prop="tons"
  202. label="吨位(吨)"
  203. min-width="80"
  204. align="center"
  205. ></el-table-column>
  206. <el-table-column
  207. prop="waybillStatus"
  208. sortable
  209. label="签单状态"
  210. min-width="100"
  211. align="center"
  212. >
  213. <template v-slot="scope">
  214. {{
  215. scope.row.waybillStatus == 0
  216. ? ""
  217. : scope.row.waybillStatus == 1
  218. ? "未签单"
  219. : "已签单"
  220. }}
  221. </template>
  222. </el-table-column>
  223. <!-- <el-table-column
  224. prop="transStatus"
  225. label="船舶状态"
  226. min-width="100"
  227. align="center"
  228. ></el-table-column> -->
  229. <el-table-column
  230. prop="hasInsurance"
  231. label="保险单状态"
  232. min-width="100"
  233. align="center"
  234. >
  235. <template v-slot="scope">
  236. {{ scope.row.hasInsurance == 0 ? "未购买" : "已购买" }}
  237. </template>
  238. </el-table-column>
  239. <el-table-column
  240. sortable
  241. prop="createTime"
  242. label="创建时间"
  243. min-width="100"
  244. align="center"
  245. ></el-table-column>
  246. <el-table-column
  247. prop="remark"
  248. label="备注"
  249. min-width="100"
  250. align="center"
  251. ></el-table-column>
  252. <el-table-column label="操作" min-width="80" align="center">
  253. <template v-slot="scope">
  254. <el-button
  255. @click="voyageDetail(scope.row.id, tableData)"
  256. type="text"
  257. size="small"
  258. >
  259. 查看详情
  260. </el-button>
  261. </template>
  262. </el-table-column>
  263. </el-table>
  264. <div style="width: 100%; text-align: right; margin-top: 43px">
  265. <el-pagination
  266. background
  267. layout="prev, pager, next"
  268. :total="total"
  269. @current-change="pageChange"
  270. ></el-pagination>
  271. </div>
  272. </div>
  273. </template>
  274. <script>
  275. import { ref, h, reactive, toRefs, onMounted } from "vue";
  276. import { ElNotification, ElMessageBox, ElMessage } from "element-plus";
  277. import store from "../../store";
  278. import router from "../../router";
  279. import md5 from "md5";
  280. import api from "../../apis/fetch";
  281. import _ from "lodash";
  282. export default {
  283. setup() {
  284. let currentPage = ref(1);
  285. let term = ref("");
  286. let tableData = ref([]);
  287. let total = ref(0);
  288. let status = ref(0);
  289. async function getVoyageList() {
  290. tableData.value = [];
  291. let res = await api.getVoyageList({
  292. cargoOwnerId: localStorage.userId,
  293. shipId: 0,
  294. status: status.value,
  295. term: term.value,
  296. currentPage: currentPage.value,
  297. size: 10,
  298. });
  299. term.value = "";
  300. if (res.data.status == 0) {
  301. tableData.value = res.data.result;
  302. total.value = res.data.total;
  303. } else {
  304. ElNotification({
  305. type: "error",
  306. title: res.data.msg,
  307. });
  308. }
  309. }
  310. function changeVoyageType(s) {
  311. term.value = "";
  312. currentPage.value = 1;
  313. status.value = s;
  314. getVoyageList();
  315. }
  316. async function voyageDetail(id) {
  317. router.push({
  318. path: "/voyage/voyageDetail",
  319. query: {
  320. id,
  321. },
  322. });
  323. }
  324. function pageChange(e) {
  325. currentPage.value = e;
  326. getVoyageList();
  327. }
  328. function goToVoyageAdd() {
  329. router.push({
  330. path: "/voyage/voyageAdd",
  331. });
  332. }
  333. let voyageAddDialogVisible = ref(false);
  334. const rules = reactive({
  335. rules: {
  336. voyageName: [
  337. { required: false, message: "请填写航次名称", trigger: "blur" },
  338. ],
  339. shipName: [{ required: true, message: "请选择船舶", trigger: "blur" }],
  340. cargoOwnerName: [
  341. { required: true, message: "请选择货主", trigger: "blur" },
  342. ],
  343. startTime: [
  344. { required: true, message: "请填写开始时间", trigger: "blur" },
  345. ],
  346. loadPort: [
  347. { required: true, message: "请填写装货港", trigger: "blur" },
  348. ],
  349. dischargeProt: [
  350. { required: true, message: "请填写卸货港", trigger: "blur" },
  351. ],
  352. cargo: [{ required: true, message: "请填写货种", trigger: "blur" }],
  353. tons: [{ required: true, message: "请填写吨位", trigger: "blur" }],
  354. },
  355. });
  356. let voyageForm = reactive({
  357. voyageForm: {
  358. voyageName: "",
  359. cargoOwnerId: "",
  360. cargoOwnerName: "",
  361. startTime: "",
  362. endTime: "",
  363. loadPort: "",
  364. dischargeProt: "",
  365. cargo: "",
  366. tons: "",
  367. loadPortId: "",
  368. dischargeProtId: "",
  369. shipId: "",
  370. shipName: "",
  371. },
  372. });
  373. function clear(type) {
  374. setTimeout(() => {
  375. switch (type) {
  376. case "shipId": {
  377. let index = ref(-1);
  378. for (let i in shipsCache.value) {
  379. if (
  380. voyageForm.voyageForm.shipName == shipsCache.value[i].shipName
  381. ) {
  382. index.value = i;
  383. break;
  384. }
  385. }
  386. if (index.value != -1) {
  387. voyageForm.voyageForm.shipId =
  388. shipsCache.value[index.value].shipId;
  389. } else {
  390. let b = shipsCache.value.some((item) => {
  391. return (
  392. item.shipId == voyageForm.voyageForm.shipId &&
  393. item.shipName == voyageForm.voyageForm.shipName
  394. );
  395. });
  396. voyageForm.voyageForm["shipId"] = "";
  397. voyageForm.voyageForm["shipName"] = "";
  398. }
  399. break;
  400. }
  401. case "cargoOwnerId": {
  402. let index = ref(-1);
  403. for (let i in cargoOwnersCache.value) {
  404. if (
  405. voyageForm.voyageForm.cargoOwnerName ==
  406. cargoOwnersCache.value[i].userName
  407. ) {
  408. index.value = i;
  409. break;
  410. }
  411. }
  412. if (index.value != -1) {
  413. voyageForm.voyageForm.cargoOwnerId =
  414. cargoOwnersCache.value[index.value].userId;
  415. } else {
  416. let b = cargoOwnersCache.value.some((item) => {
  417. return (
  418. item.userId == voyageForm.voyageForm.cargoOwnerId &&
  419. item.userName == voyageForm.voyageForm.cargoOwnerName
  420. );
  421. });
  422. if (!b) {
  423. voyageForm.voyageForm["cargoOwnerId"] = "";
  424. voyageForm.voyageForm["cargoOwnerName"] = "";
  425. }
  426. }
  427. break;
  428. }
  429. case "loadPort": {
  430. let index = ref(-1);
  431. for (let i in colCache.value) {
  432. if (voyageForm.voyageForm.loadPort == colCache.value[i].value) {
  433. index.value = i;
  434. break;
  435. }
  436. }
  437. if (index.value != -1) {
  438. voyageForm.voyageForm.loadPortId =
  439. colCache.value[index.value].key;
  440. } else {
  441. let b = colCache.value.some((item) => {
  442. return (
  443. item.value == voyageForm.voyageForm.loadPort &&
  444. item.key == voyageForm.voyageForm.loadPortId
  445. );
  446. });
  447. if (!b) {
  448. voyageForm.voyageForm["loadPort"] = "";
  449. voyageForm.voyageForm["loadPortId"] = "";
  450. }
  451. }
  452. break;
  453. }
  454. case "dischargeProt": {
  455. let index = ref(-1);
  456. for (let i in colCache.value) {
  457. if (
  458. voyageForm.voyageForm.dischargeProt == colCache.value[i].value
  459. ) {
  460. index.value = i;
  461. break;
  462. }
  463. }
  464. if (index.value != -1) {
  465. voyageForm.voyageForm.dischargeProtId =
  466. colCache.value[index.value].key;
  467. } else {
  468. let b = colCache.value.some((item) => {
  469. return (
  470. item.value == voyageForm.voyageForm.dischargeProt &&
  471. item.key == voyageForm.voyageForm.dischargeProtId
  472. );
  473. });
  474. if (!b) {
  475. voyageForm.voyageForm["dischargeProt"] = "";
  476. voyageForm.voyageForm["dischargeProtId"] = "";
  477. }
  478. }
  479. break;
  480. }
  481. }
  482. }, 200);
  483. }
  484. let addVoyageForm = ref(null);
  485. async function addVoyage() {
  486. addVoyageForm.value.validate(async (valid) => {
  487. if (valid) {
  488. console.log("提交", voyageForm.voyageForm);
  489. let res = await api.addVoyage({
  490. ...voyageForm.voyageForm,
  491. });
  492. if (res.data.status == 0) {
  493. ElNotification({
  494. title: res.data.msg,
  495. type: "success",
  496. });
  497. resetAddVoyageForm();
  498. getVoyageList();
  499. } else {
  500. console.log(res);
  501. ElNotification({
  502. title: res.data.msg,
  503. type: "error",
  504. });
  505. }
  506. } else {
  507. console.log("未提交", voyageForm.voyageForm);
  508. }
  509. });
  510. }
  511. let shipsCache = ref([]);
  512. let colCache = ref([]);
  513. let cargoOwnersCache = ref([]);
  514. const searchShip = _.debounce(
  515. async (queryString, cb) => {
  516. if (!queryString) return;
  517. let res = await api.searchShip({
  518. term: queryString,
  519. });
  520. let ships = [];
  521. if (res.data.status == 0) {
  522. ships = res.data.result;
  523. for (let i of ships) {
  524. i.value = `${i.shipName}`;
  525. }
  526. shipsCache.value = ships;
  527. cb(ships);
  528. }
  529. },
  530. 1000,
  531. { leading: true }
  532. );
  533. const selectShip = (item) => {
  534. voyageForm.voyageForm.shipId = item.shipId;
  535. };
  536. const searchCargoOwner = _.debounce(
  537. async (queryString, cb) => {
  538. if (!queryString) return;
  539. let res = await api.searchUser({
  540. term: queryString,
  541. identity: 2,
  542. });
  543. let cargoOwners = [];
  544. if (res.data.status == 0) {
  545. cargoOwners = res.data.result;
  546. for (let i of cargoOwners) {
  547. i.value = `${i.userName}`;
  548. }
  549. cargoOwnersCache.value = cargoOwners;
  550. cb(cargoOwners);
  551. }
  552. },
  553. 1000,
  554. { leading: true }
  555. );
  556. const selectCargoOwner = (item) => {
  557. voyageForm.voyageForm.cargoOwnerId = item.userId;
  558. };
  559. const getCol = _.debounce(
  560. async (queryString, cb) => {
  561. if (!queryString) return;
  562. let res = await api.getCol({
  563. term: queryString,
  564. });
  565. if (res.data.status == 0) {
  566. colCache.value = [...colCache.value, ...res.data.result];
  567. colCache.value = _.uniqBy(colCache.value, "key");
  568. cb(res.data.result);
  569. }
  570. },
  571. 1000,
  572. { leading: true }
  573. );
  574. const selectLoadPort = (item) => {
  575. voyageForm.voyageForm.loadPortId = item.key;
  576. voyageForm.voyageForm.loadPort = item.value;
  577. };
  578. const selectDischargeProt = (item) => {
  579. voyageForm.voyageForm.dischargeProtId = item.key;
  580. voyageForm.voyageForm.dischargeProt = item.value;
  581. };
  582. function resetAddVoyageForm() {
  583. voyageAddDialogVisible.value = false;
  584. addVoyageForm.value.resetFields();
  585. }
  586. let sortradio = ref(0);
  587. getVoyageList();
  588. onMounted(() => {});
  589. return {
  590. currentPage,
  591. term,
  592. tableData,
  593. total,
  594. status,
  595. changeVoyageType,
  596. getVoyageList,
  597. voyageDetail,
  598. pageChange,
  599. goToVoyageAdd,
  600. addVoyage,
  601. voyageAddDialogVisible,
  602. addVoyageForm,
  603. ...toRefs(rules),
  604. ...toRefs(voyageForm),
  605. searchShip,
  606. selectShip,
  607. searchCargoOwner,
  608. selectCargoOwner,
  609. resetAddVoyageForm,
  610. getCol,
  611. selectLoadPort,
  612. selectDischargeProt,
  613. clear,
  614. sortradio,
  615. };
  616. },
  617. };
  618. </script>
  619. <style scoped>
  620. .search-btn {
  621. display: inline-block;
  622. width: 60px;
  623. height: 32px;
  624. background: #0094fe;
  625. border-radius: 2px;
  626. font-size: 14px;
  627. font-family: PingFangSC-Regular, PingFang SC;
  628. font-weight: 400;
  629. color: #ffffff;
  630. text-align: center;
  631. line-height: 32px;
  632. margin-left: 10px;
  633. cursor: pointer;
  634. }
  635. .cargo-owner-add {
  636. width: 80px;
  637. height: 32px;
  638. border-radius: 2px;
  639. border: 1px solid #0094fe;
  640. font-size: 14px;
  641. font-family: PingFangSC-Regular, PingFang SC;
  642. font-weight: 400;
  643. color: #0094fe;
  644. line-height: 32px;
  645. text-align: center;
  646. cursor: pointer;
  647. }
  648. :deep().el-dialog {
  649. width: 560px;
  650. padding: 20px 50px;
  651. border-radius: 6px;
  652. }
  653. :deep() .el-dialog__title {
  654. font-size: 18px;
  655. font-family: PingFangSC-Regular, PingFang SC;
  656. font-weight: 400;
  657. color: #0094fe;
  658. }
  659. .normal-label {
  660. font-size: 14px;
  661. font-family: PingFangSC-Regular, PingFang SC;
  662. font-weight: 400;
  663. color: #353a42;
  664. margin-right: 10px;
  665. }
  666. .show-input {
  667. width: 280px;
  668. height: 32px;
  669. background: #ffffff;
  670. border-radius: 2px;
  671. border: 1px solid #dee0e3;
  672. font-size: 14px;
  673. font-family: PingFangSC-Regular, PingFang SC;
  674. font-weight: 400;
  675. color: #333333;
  676. line-height: 32px;
  677. padding-left: 12px;
  678. margin-right: 40px;
  679. }
  680. .radio-btns {
  681. height: 38px;
  682. width: 70px;
  683. border: 1px solid #1486f9;
  684. line-height: 38px;
  685. text-align: center;
  686. font-size: 14px;
  687. font-family: PingFangSC-Regular, PingFang SC;
  688. font-weight: 400;
  689. color: #0094fe;
  690. cursor: pointer;
  691. }
  692. .left-radius {
  693. border-top-left-radius: 19px;
  694. border-bottom-left-radius: 19px;
  695. width: 80px;
  696. }
  697. .right-radius {
  698. border-top-right-radius: 19px;
  699. border-bottom-right-radius: 19px;
  700. width: 80px;
  701. }
  702. .currentbtn {
  703. background: #1486f9;
  704. color: #fff;
  705. }
  706. .search-btn {
  707. display: inline-block;
  708. width: 60px;
  709. height: 38px;
  710. background: #0094fe;
  711. border-radius: 2px;
  712. font-size: 14px;
  713. font-family: PingFangSC-Regular, PingFang SC;
  714. font-weight: 400;
  715. color: #ffffff;
  716. text-align: center;
  717. line-height: 38px;
  718. margin-left: 10px;
  719. cursor: pointer;
  720. }
  721. .voyage-add {
  722. width: 80px;
  723. height: 36px;
  724. border-radius: 2px;
  725. border: 1px solid #0094fe;
  726. font-size: 14px;
  727. font-family: PingFangSC-Regular, PingFang SC;
  728. font-weight: 400;
  729. color: #0094fe;
  730. line-height: 36px;
  731. text-align: center;
  732. cursor: pointer;
  733. }
  734. :deep() .el-dialog {
  735. width: 800px;
  736. }
  737. :deep() .el-form-item {
  738. margin-right: 22px;
  739. width: 300px;
  740. }
  741. :deep() .el-autocomplete {
  742. width: 220px;
  743. }
  744. .el-radio {
  745. margin-right: 10px;
  746. }
  747. .el-radio:last-child {
  748. margin-right: 20px;
  749. }
  750. </style>