shipDetail.vue 23 KB

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