tranManagementShippingFeedback.vue 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513
  1. //装船反馈
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="12">
  6. <h2 class="bg-left title">船运装船反馈</h2>
  7. </el-col>
  8. <el-col :span="12" class="bg-right">
  9. <el-button
  10. class="bg-bottom"
  11. type="primary"
  12. size="small"
  13. @click="returnsales()"
  14. >
  15. <img
  16. width="6"
  17. height="10"
  18. style="vertical-align: bottom; margin-right: 3px"
  19. src="../../../public/img/lujing.png"
  20. alt
  21. />返回
  22. </el-button>
  23. </el-col>
  24. </el-row>
  25. <ws-form
  26. class="position"
  27. ref="deptBudgetList"
  28. :rules="rules"
  29. :model="deptBudgetList"
  30. >
  31. <div class="small-title" style="font-size: 16px">任务详情</div>
  32. <ws-info-table>
  33. <!--任务编号-->
  34. <ws-form-item label="任务编号" span="1" prop="processNo">{{
  35. deptBudgetList.processNo
  36. }}</ws-form-item>
  37. <!--货名-->
  38. <ws-form-item label="货名" span="1" prop="goodsName">{{
  39. deptBudgetList.goodsName
  40. }}</ws-form-item>
  41. <!--重量(吨)-->
  42. <ws-form-item label="重量(吨)" span="1" prop="weight">{{
  43. deptBudgetList.weight
  44. }}</ws-form-item>
  45. <!--发货地址-->
  46. <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
  47. {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
  48. }}{{ deptBudgetList.sendArea }}
  49. </ws-form-item>
  50. <!--发货人-->
  51. <ws-form-item label="发货人" span="1" prop="sender" class="readonly">{{
  52. deptBudgetList.sender
  53. }}</ws-form-item>
  54. <!--发货人电话-->
  55. <ws-form-item
  56. label="发货人电话"
  57. span="1"
  58. prop="senderPhone"
  59. class="readonly"
  60. >{{ deptBudgetList.senderPhone }}
  61. </ws-form-item>
  62. <!--收货地址-->
  63. <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
  64. {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
  65. }}{{ deptBudgetList.receiveArea }}
  66. </ws-form-item>
  67. <!--收货人-->
  68. <ws-form-item label="收货人" span="1" prop="receiver">{{
  69. deptBudgetList.receiver
  70. }}</ws-form-item>
  71. <!--收货人电话-->
  72. <ws-form-item label="收货人电话" span="1" prop="receiverPhone">{{
  73. deptBudgetList.receiverPhone
  74. }}</ws-form-item>
  75. <!--发货日期-->
  76. <ws-form-item label="发货日期" span="1" prop="deliveryDateStart"
  77. >{{ deptBudgetList.deliveryDateStart }}
  78. </ws-form-item>
  79. <!--最晚到货日期-->
  80. <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">{{
  81. deptBudgetList.deliveryDateEnd
  82. }}</ws-form-item>
  83. <!--合同编号-->
  84. <ws-form-item label="合同编号" span="1" prop="contractNo">{{
  85. deptBudgetList.contractNo
  86. }}</ws-form-item>
  87. <!-- 运输方式 -->
  88. <ws-form-item label="运输方式" span="1" prop="tranType">{{
  89. deptBudgetList.tranType
  90. }}</ws-form-item>
  91. </ws-info-table>
  92. <div class="small-title" style="font-size: 16px">联络员及航次</div>
  93. <ws-info-table>
  94. <!-- 姓名 -->
  95. <ws-form-item label="姓名" span="1" prop="driver">{{
  96. deptBudgetList.driver
  97. }}</ws-form-item>
  98. <!-- 电话 -->
  99. <ws-form-item label="电话" span="1" prop="driverPhone">{{
  100. deptBudgetList.driverPhone
  101. }}</ws-form-item>
  102. <!--发船日期-->
  103. <ws-form-item label="发船日期" span="1" prop="sendDateStart">
  104. <ws-date-picker
  105. v-model="deptBudgetList.sendDateStart"
  106. type="date"
  107. placeholder="请选择发船日期"
  108. value-format="yyyy-MM-dd"
  109. />
  110. </ws-form-item>
  111. <!-- 预计到港日期 -->
  112. <ws-form-item label="预计到港日期" span="1" prop="receiveDateEnd">{{
  113. deptBudgetList.receiveDateEnd
  114. }}</ws-form-item>
  115. <!-- 船名 -->
  116. <ws-form-item label="船名" span="1" prop="shipName">{{
  117. deptBudgetList.shipName
  118. }}</ws-form-item>
  119. <!-- 航次 -->
  120. <ws-form-item label="航次" span="1" prop="shipNo">{{
  121. deptBudgetList.shipNo
  122. }}</ws-form-item>
  123. <!-- 类型 -->
  124. <ws-form-item label="类型" span="1" prop="shipType">{{
  125. deptBudgetList.shipType
  126. }}</ws-form-item>
  127. <!-- 数量 -->
  128. <ws-form-item
  129. label="数量"
  130. span="1"
  131. prop="boxNumber"
  132. v-if="deptBudgetList.shipType == '集装箱'"
  133. >
  134. {{ deptBudgetList.boxNumber }}</ws-form-item
  135. >
  136. </ws-info-table>
  137. <div class="small-title" style="font-size: 16px; width: 50%; float: left">
  138. 装船详情
  139. </div>
  140. <!-- 导入 -->
  141. <div
  142. style="
  143. font-size: 16px;
  144. width: 50%;
  145. float: left;
  146. text-align: right;
  147. display: flex;
  148. justify-content: end;
  149. "
  150. >
  151. <el-link
  152. href="https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/%E5%8F%8D%E9%A6%88%E6%A8%A1%E6%9D%BF/%E8%88%B9%E8%BF%90%E8%A3%85%E8%BD%A6%E5%8F%8D%E9%A6%88%E6%A8%A1%E6%9D%BF.xlsx"
  153. style="margin-left: 8px"
  154. >
  155. <el-button type="primary">模板下载</el-button>
  156. </el-link>
  157. <el-upload
  158. style="margin-left: 8px"
  159. class="upload-demo inline-block margin-right-10"
  160. action
  161. :on-change="handleChange"
  162. :show-file-list="false"
  163. accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
  164. :auto-upload="false"
  165. >
  166. <el-button type="primary">导入</el-button>
  167. </el-upload>
  168. </div>
  169. <div class="liaison" v-if="deptBudgetList.tranCarInfoList.length > 0">
  170. <div
  171. style="width: 100%"
  172. class="flex position"
  173. v-for="(item, index) in freightspace"
  174. :key="index"
  175. >
  176. <ws-info-table>
  177. <div class="catNos" v-if="item.shipType == '集装箱'">
  178. 集装箱-{{ index + 1 }}
  179. <span class="noservice" v-show="item.status == '未装车'"
  180. >未装船</span
  181. >
  182. <span class="service" v-show="item.status == '已装车'"
  183. >已装船</span
  184. >
  185. <span class="serviced" v-show="item.status == '已送达'">
  186. {{ item.status }}
  187. </span>
  188. </div>
  189. <div class="catNos" v-if="item.shipType == '散船'">
  190. 仓位-{{ index + 1 }}
  191. <span class="noservice" v-show="item.status == '未装车'"
  192. >未装船</span
  193. >
  194. <span class="service" v-show="item.status == '已装车'"
  195. >已装船</span
  196. >
  197. <span class="serviced" v-show="item.status == '已送达'">
  198. {{ item.status }}
  199. </span>
  200. </div>
  201. <!--箱号-->
  202. <el-form-item
  203. label="箱号:"
  204. prop="caseNo"
  205. v-if="item.shipType == '集装箱'"
  206. >
  207. <el-input
  208. v-if="item.status == '已装车' || item.status == '已送达'"
  209. :disabled="readonly"
  210. v-model="item.caseNo"
  211. placeholder="请输入箱号"
  212. ></el-input>
  213. <el-input
  214. v-else
  215. v-model="item.caseNo"
  216. placeholder="请输入箱号"
  217. ></el-input>
  218. </el-form-item>
  219. <!--封号-->
  220. <el-form-item
  221. label="封号:"
  222. prop="titleNo"
  223. v-if="item.shipType == '集装箱'"
  224. >
  225. <el-input
  226. v-if="item.status == '已装车' || item.status == '已送达'"
  227. :disabled="readonly"
  228. v-model="item.titleNo"
  229. placeholder="请输入封号"
  230. ></el-input>
  231. <el-input
  232. v-else
  233. v-model="item.titleNo"
  234. placeholder="请输入封号"
  235. ></el-input>
  236. </el-form-item>
  237. <!-- 仓位号 -->
  238. <ws-form-item
  239. span="1"
  240. label="仓位号:"
  241. prop="binNumber"
  242. v-if="item.shipType == '散船'"
  243. >{{ item.binNumber }}</ws-form-item
  244. >
  245. <!-- 计划重量 -->
  246. <ws-form-item
  247. label="计划重量(吨)"
  248. span="1"
  249. prop="positionWeight"
  250. v-if="item.shipType == '散船'"
  251. >
  252. {{ item.positionWeight }}</ws-form-item
  253. >
  254. <!--装船净重-->
  255. <ws-form-item label="装船净重:" span="1" prop="loadNetWeight">
  256. <ws-input
  257. v-if="item.status == '已装车' || item.status == '已送达'"
  258. :disabled="readonly"
  259. v-model="item.loadNetWeight"
  260. placeholder="请输入装船净重"
  261. maxlength="20"
  262. size="small"
  263. />
  264. <ws-input
  265. v-else
  266. v-model="item.loadNetWeight"
  267. placeholder="请输入装船净重"
  268. maxlength="20"
  269. size="small"
  270. />
  271. </ws-form-item>
  272. <!--装船日期-->
  273. <el-form-item
  274. label="装船日期:"
  275. span="1"
  276. prop="loadingDate"
  277. label-width="100px"
  278. >
  279. <ws-date-picker
  280. v-if="item.status == '已装车' || item.status == '已送达'"
  281. :disabled="readonly"
  282. v-model="item.loadingDate"
  283. type="date"
  284. style="width: 150px"
  285. placeholder="请选择日期"
  286. value-format="yyyy-MM-dd"
  287. />
  288. <ws-date-picker
  289. v-else
  290. v-model="item.loadingDate"
  291. type="date"
  292. style="width: 150px"
  293. placeholder="请选择日期"
  294. value-format="yyyy-MM-dd"
  295. />
  296. </el-form-item>
  297. <div v-show="item.signStatus == '未签合同'" class="signStatus">
  298. {{ item.signStatus }}
  299. </div>
  300. <div v-show="item.signStatus == '已签合同'" class="signStatus1">
  301. {{ item.signStatus }}
  302. </div>
  303. </ws-info-table>
  304. </div>
  305. </div>
  306. <div v-if="deptBudgetList.tranCarInfoList.length > 0" class="yd-bottom">
  307. <ws-form-item
  308. label="运单:"
  309. span="1"
  310. prop="loadPoundImg"
  311. class="yd-bottom-left"
  312. v-if="freightspace[0].status == '已装车'"
  313. >
  314. <!-- slot-scope="scope" -->
  315. <template>
  316. <el-upload
  317. :action="global.uploadPath"
  318. :show-file-list="false"
  319. :on-success="
  320. (res) => {
  321. uploadSuccessHandle1(res)
  322. }
  323. "
  324. class="avatar-uploader"
  325. accept=".jpg, .jpeg, .png, .gif"
  326. multiple
  327. >
  328. <img
  329. width="18"
  330. height="20"
  331. style="vertical-align: text-top; position: relative"
  332. src="../../../public/img/fujian.png"
  333. alt
  334. />
  335. </el-upload>
  336. <div class="tupian">
  337. <span
  338. v-if="
  339. deptBudgetList.tranCarInfoList.length > 0 &&
  340. deptBudgetList.tranCarInfoList[0].loadPoundImg != null
  341. "
  342. >{{ pictureTotal }}</span
  343. >
  344. <span
  345. v-if="
  346. deptBudgetList.tranCarInfoList.length > 0 &&
  347. deptBudgetList.tranCarInfoList[0].loadPoundImg == null
  348. "
  349. >未上传</span
  350. >
  351. </div>
  352. <el-button v-if="deptBudgetList.tranCarInfoList.length>0&&deptBudgetList.tranCarInfoList[0].loadPoundImg != null"
  353. class="bg-bottom-preview" type="primary" size="small" :data-img="deptBudgetList.tranCarInfoList[0].loadPoundImg" @click="$imgPreview">预览</el-button>
  354. </template>
  355. </ws-form-item>
  356. <div
  357. style="
  358. text-align: right;
  359. color: #8890b1;
  360. font-size: 16px;
  361. width: 100%;
  362. "
  363. >
  364. 合计(吨):{{ total }}/{{ deptBudgetList.weight }}
  365. <!--阶段状态-->
  366. <span
  367. class="noservice"
  368. v-show="deptBudgetList.feedbackStatus == '执行中'"
  369. >未完货</span
  370. >
  371. <span
  372. class="service"
  373. v-show="deptBudgetList.feedbackStatus == '已完货'"
  374. >{{ deptBudgetList.feedbackStatus }}</span
  375. >
  376. </div>
  377. </div>
  378. <div v-if="this.deptBudgetList.tranCarInfoList.length == 0">暂无船次</div>
  379. <!--运单-->
  380. <!-- <div
  381. style="width: 100%"
  382. class="flex position"
  383. v-for="(item, index) in this.freightspace"
  384. :key="index"
  385. >-->
  386. <!-- </div> -->
  387. </ws-form>
  388. <!-- 完货 -->
  389. <div style="text-align: right; padding: 10px" class="center">
  390. <el-button
  391. class="bg-bottom"
  392. type="primary"
  393. size="small"
  394. @click="submit(deptBudgetList)"
  395. >提交</el-button
  396. >
  397. <el-button
  398. class="bg-bottom"
  399. type="primary"
  400. size="small"
  401. @click="finished(deptBudgetList)"
  402. >完货</el-button
  403. >
  404. </div>
  405. </div>
  406. </template>
  407. <script>
  408. import { regionData } from 'element-china-area-data'
  409. import Pagination from '@/components/Pagination'
  410. import {
  411. seeCat,
  412. packList,
  413. feedback,
  414. state,
  415. importApplFileUrl,
  416. } from '@/model/transport/index'
  417. import { getstaff } from '@/model/warehouse/index'
  418. import WsUpload from '@/components/WsUpload'
  419. import mapDrag from '@/components/mapdrag/mapdrag'
  420. export default {
  421. name: 'viewSpareMoney',
  422. components: {
  423. WsUpload,
  424. mapDrag,
  425. },
  426. watch: {
  427. vesselId(val) {
  428. this.getVesselData()
  429. },
  430. isShow(val) {
  431. this.showType = val
  432. },
  433. },
  434. data() {
  435. return {
  436. excelFreightspace: [],
  437. pictureTotal: 0,
  438. deptBudgetList: {
  439. totalStorage: 0,
  440. sendDateStart: '',
  441. tranCarInfoList: [],
  442. },
  443. tranCarInfoList: {
  444. loadPoundImg: '',
  445. },
  446. options_: regionData,
  447. heightData: '600px',
  448. zoom: 7,
  449. selectedOptions: [],
  450. center: [116.244694, 39.517344],
  451. window: '',
  452. radio: 1,
  453. personCharge: [],
  454. district: null,
  455. driverList: [],
  456. readonly: true,
  457. listDate: {
  458. country: '中国',
  459. level: 'country',
  460. city: '',
  461. },
  462. citylist: [],
  463. compId: localStorage.getItem('ws-pf_compId'),
  464. rules: {
  465. warehouseName: [
  466. {
  467. required: true,
  468. message: '请输入仓库名称',
  469. trigger: 'blur',
  470. },
  471. {
  472. min: 2,
  473. max: 20,
  474. message: '仓库名长度不符合要求,请输入2-20字符之内',
  475. trigger: 'blur',
  476. },
  477. ],
  478. },
  479. tranType: 1,
  480. size: 10,
  481. value1: '',
  482. unitList: [],
  483. fileTemp: '',
  484. freightspace: [
  485. {
  486. caseNo: '',
  487. titleNo: '',
  488. binNumber: '',
  489. positionWeight: '',
  490. loadNetWeight: '',
  491. loadingDate: '',
  492. },
  493. // {loadPoundImg:{}},
  494. ],
  495. name: '',
  496. staffList: [],
  497. options: [],
  498. carModel: [],
  499. tranCarInfoList: {
  500. loadPoundImg: '',
  501. },
  502. //上传
  503. accessoryTFs: false,
  504. fileList: [],
  505. appendixIdsAdd: '',
  506. }
  507. },
  508. activated() {
  509. this.deptBudgetList.id = this.$route.query.id
  510. this.getList()
  511. },
  512. computed: {
  513. totalStorage: function () {
  514. var maxStorage = 0
  515. for (var i = 0; i < this.freightspace.length; i++) {
  516. maxStorage += Number(this.freightspace[i].maxStorage)
  517. }
  518. return maxStorage.toFixed(2)
  519. },
  520. total: function () {
  521. if (this.deptBudgetList.tranCarInfoList != null) {
  522. var maxStorage = 0
  523. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  524. maxStorage += Number(
  525. this.deptBudgetList.tranCarInfoList[i].loadNetWeight
  526. )
  527. }
  528. return maxStorage.toFixed(2)
  529. } else {
  530. return 0
  531. }
  532. },
  533. },
  534. methods: {
  535. dataFilter(val) {
  536. this.deptBudgetList.personCharge = val
  537. if (val) {
  538. this.options = this.staffList.filter((item) => {
  539. if (
  540. !!~item.staffName.indexOf(val) ||
  541. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  542. ) {
  543. return true
  544. }
  545. })
  546. } else {
  547. this.options = this.staffList
  548. }
  549. },
  550. selectstaff(e) {
  551. for (var i = 0; i < this.staffList.length; i++) {
  552. if (this.staffList[i].staffName == e) {
  553. this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
  554. this.freightspace[i].driverPhone = this.staffList[i].staffMobilePhone
  555. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  556. }
  557. }
  558. },
  559. marker: function (item) {
  560. this.deptBudgetList.warehousePositioning =
  561. item.lnglat.lat + ',' + item.lnglat.lng
  562. },
  563. selectedAddress(e) {
  564. this.deptBudgetList.warehousePositioning =
  565. e.center.lat + ',' + e.center.lng
  566. },
  567. confirmPositioncity() {
  568. this.listDate.level = 'city'
  569. this.listDate.country = this.name
  570. },
  571. // 关闭 dialog时 处理文件url 初始化upload组件
  572. handleClose() {
  573. this.dialogViewSpareMoney = false
  574. },
  575. //下拉司机姓名改变事件
  576. selectdriver() {},
  577. handleChange(value) {
  578. this.selectedOptions = value
  579. },
  580. returnsales() {
  581. this.deptBudgetList = {}
  582. this.freightspace = {}
  583. this.selectedOptions = ''
  584. this.deptBudgetList.tranCarInfoList = []
  585. this.$router.push({
  586. path: 'tranManagementTransporHairRespond',
  587. })
  588. },
  589. // 上传附件
  590. uploadSuccess(data, files, url) {
  591. console.log(data, files, url)
  592. },
  593. handleClose() {
  594. this.accessoryTFs = false
  595. },
  596. handleChange(file, fileList) {
  597. this.fileTemp = file.raw
  598. let fileName = file.raw.name
  599. let fileType = fileName.substring(fileName.lastIndexOf('.') + 1)
  600. // 判断上传文件格式
  601. if (this.fileTemp) {
  602. if (fileType == 'xlsx' || fileType == 'xls') {
  603. this.importf(this.fileTemp)
  604. } else {
  605. this.$message({
  606. type: 'warning',
  607. message: '附件格式错误,请删除后重新上传!',
  608. })
  609. }
  610. } else {
  611. this.$message({
  612. type: 'warning',
  613. message: '请上传附件!',
  614. })
  615. }
  616. },
  617. importf(obj) {
  618. this.excelFreightspace = []
  619. this.dialogVisible = true
  620. let _this = this
  621. let inputDOM = this.$refs.inputer // 通过DOM取文件数据
  622. this.file = event.currentTarget.files[0]
  623. var rABS = false //是否将文件读取为二进制字符串
  624. var f = this.file
  625. var reader = new FileReader()
  626. //if (!FileReader.prototype.readAsBinaryString) {
  627. FileReader.prototype.readAsBinaryString = function (f) {
  628. var binary = ''
  629. var rABS = false //是否将文件读取为二进制字符串
  630. var pt = this
  631. var wb //读取完成的数据
  632. var outdata
  633. var reader = new FileReader()
  634. reader.onload = function (e) {
  635. var bytes = new Uint8Array(reader.result)
  636. var length = bytes.byteLength
  637. for (var i = 0; i < length; i++) {
  638. binary += String.fromCharCode(bytes[i])
  639. }
  640. var XLSX = require('xlsx')
  641. if (rABS) {
  642. wb = XLSX.read(btoa(fixdata(binary)), {
  643. //手动转化
  644. type: 'base64',
  645. })
  646. } else {
  647. wb = XLSX.read(binary, {
  648. type: 'binary',
  649. })
  650. }
  651. // outdata就是你想要的东西 excel导入的数据
  652. outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]])
  653. // excel 数据再处理
  654. let arr = []
  655. outdata.map((v) => {
  656. // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
  657. let jsonString = JSON.stringify(v)
  658. .replace(/\//g, '')
  659. .replace(/\s/gi, '')
  660. console.log(jsonString)
  661. v = JSON.parse(jsonString)
  662. let obj = {}
  663. //xxx代表列名
  664. obj.caseNo = v.箱号
  665. obj.titleNo = v.封号
  666. obj.binNumber = v.仓位号
  667. obj.positionWeight = v.散船重量
  668. obj.loadNetWeight = v.装船净重
  669. obj.loadingDate = v.装船日期
  670. obj.status = v.状态
  671. obj.shipType = v.类型
  672. console.log(obj)
  673. // if(obj.caseNo&&obj.titleNo&&obj.binNumber&&obj.positionWeight&&obj.loadNetWeight&&obj.loadingDate&&obj.status&&obj.shipType){
  674. _this.excelFreightspace.push(obj)
  675. // }
  676. })
  677. let _ispushData = true
  678. console.log(arr, _this.freightspace)
  679. for (let i = 0; i < _this.excelFreightspace.length; i++) {
  680. _ispushData = true
  681. for (let k = 0; k < _this.freightspace.length; k++) {
  682. if (
  683. _this.excelFreightspace[i].binNumber ==
  684. _this.freightspace[k].binNumber
  685. ) {
  686. _this.freightspace[k] = _this.excelFreightspace[i]
  687. _ispushData = false
  688. }
  689. }
  690. if (_ispushData) {
  691. _this.freightspace.push(_this.excelFreightspace[i])
  692. _ispushData = true
  693. }
  694. }
  695. // // 成功数量
  696. // let _number = outdata.length - _this.excelFreightspace.length;
  697. // _this.$message.success('共计'+outdata.length+'条,成功导入'+_this.excelFreightspace.length+'条,失败'+_number+'条!')
  698. _this.$forceUpdate()
  699. }
  700. reader.readAsArrayBuffer(f)
  701. }
  702. if (rABS) {
  703. reader.readAsArrayBuffer(f)
  704. } else {
  705. reader.readAsBinaryString(f)
  706. }
  707. console.log(reader)
  708. },
  709. uploadSectionFile(param) {
  710. var fileName = param.file.name.split('.')
  711. var fileSuffix = fileName[fileName.length - 1]
  712. if (
  713. !(
  714. fileSuffix.toLowerCase() == 'xlsx' ||
  715. fileSuffix.toLowerCase() == 'xls'
  716. )
  717. ) {
  718. EventBus.$emit('error', this.$t('upload.message08'))
  719. loading.close()
  720. return
  721. }
  722. var data = new FormData()
  723. data.append('file', param.file)
  724. data.append('compId', localStorage.getItem('ws-pf_compId'))
  725. data.append('userId', localStorage.getItem('ws-pf_userId'))
  726. importApplFileUrl(data)
  727. .toPromise()
  728. .then((success) => {
  729. console.log(success)
  730. })
  731. },
  732. //完货
  733. finished() {
  734. this.$confirm(`完货操作后,装船信息不可修改,是否确定完货?`, {
  735. confirmButtonText: '确定',
  736. cancelButtonText: '取消',
  737. type: 'warning',
  738. })
  739. .then(() => {
  740. this.$refs.deptBudgetList.validate((valid) => {
  741. if (valid) {
  742. var tranProcessInfo = {}
  743. tranProcessInfo.id = this.deptBudgetList.id
  744. state(tranProcessInfo)
  745. .toPromise()
  746. .then((response) => {
  747. this.$message.success('完货成功')
  748. this.deptBudgetList = {}
  749. this.freightspace = {}
  750. this.selectedOptions = ''
  751. this.$router.push({
  752. path: 'tranManagementTransporHairRespond',
  753. })
  754. })
  755. } else {
  756. return false
  757. }
  758. })
  759. })
  760. .catch(() => {
  761. return false
  762. })
  763. },
  764. submit() {
  765. for (let i = 0; i < this.freightspace.length; i++) {
  766. if (this.freightspace.shipType == '集装箱') {
  767. if (!this.freightspace[i].caseNo) {
  768. this.$message({
  769. message: '箱号不能为空!',
  770. type: 'warning',
  771. })
  772. return
  773. }
  774. if (
  775. this.freightspace[i].caseNo.length > 15 ||
  776. this.freightspace[i].caseNo.length < 1
  777. ) {
  778. this.$message({
  779. message: '箱号输入错误!',
  780. type: 'warning',
  781. })
  782. return
  783. }
  784. if (!this.freightspace[i].titleNo) {
  785. this.$message({
  786. message: '封号不能为空!',
  787. type: 'warning',
  788. })
  789. return
  790. }
  791. if (
  792. this.freightspace[i].titleNo.length > 15 ||
  793. this.freightspace[i].titleNo.length < 1
  794. ) {
  795. this.$message({
  796. message: '封号输入错误!',
  797. type: 'warning',
  798. })
  799. return
  800. }
  801. } else if (this.freightspace.shipType == '散船') {
  802. if (!this.freightspace[i].binNumber) {
  803. this.$message({
  804. message: '仓位号不能为空!',
  805. type: 'warning',
  806. })
  807. return
  808. }
  809. }
  810. if (!this.freightspace[i].loadNetWeight) {
  811. this.$message({
  812. message: '装船净重不能为空!',
  813. type: 'warning',
  814. })
  815. return
  816. }
  817. if (
  818. (this.freightspace[i].loadNetWeight &&
  819. String(this.freightspace[i].loadNetWeight).indexOf('.') != -1 &&
  820. String(this.freightspace[i].loadNetWeight).length -
  821. (String(this.freightspace[i].loadNetWeight).indexOf('.') + 1) >
  822. 2) ||
  823. this.freightspace[i].loadNetWeight > 10000 ||
  824. this.freightspace[i].loadNetWeight < 0
  825. ) {
  826. this.$message({
  827. message: '装船净重输入错误',
  828. type: 'warning',
  829. })
  830. return
  831. }
  832. if (!this.freightspace[i].loadingDate) {
  833. this.$message({
  834. message: '装船日期不能为空!',
  835. type: 'warning',
  836. })
  837. return
  838. }
  839. }
  840. this.$confirm(`提交成功后装船信息不可修改,是否确定提交?`, {
  841. confirmButtonText: '确定',
  842. cancelButtonText: '取消',
  843. type: 'warning',
  844. })
  845. .then(() => {
  846. this.$refs.deptBudgetList.validate((valid) => {
  847. if (valid) {
  848. this.tranCarInfoList = this.freightspace
  849. this.tranCarInfoList[0].sendDateStart =
  850. this.deptBudgetList.sendDateStart
  851. for (var i = 0; i < this.tranCarInfoList.length; i++) {
  852. this.tranCarInfoList[i].id = this.freightspace[i].id
  853. }
  854. var tranProcessInfo = {}
  855. tranProcessInfo.id = this.deptBudgetList.id
  856. tranProcessInfo.infoId = this.deptBudgetList.infoId
  857. tranProcessInfo.processNo = this.deptBudgetList.processNo
  858. tranProcessInfo.tranCarInfoList = this.tranCarInfoList
  859. feedback(tranProcessInfo)
  860. .toPromise()
  861. .then((response) => {
  862. this.$message.success('提交成功')
  863. this.deptBudgetList = {}
  864. this.freightspace = {}
  865. this.selectedOptions = ''
  866. this.$router.push({
  867. path: 'tranManagementTransporHairRespond',
  868. })
  869. })
  870. } else {
  871. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  872. return false
  873. }
  874. })
  875. })
  876. .catch(() => {
  877. return false
  878. })
  879. },
  880. resetForm(deptBudgetList) {
  881. this.$refs[deptBudgetList].resetFields()
  882. },
  883. getList() {
  884. seeCat({
  885. id: this.deptBudgetList.id,
  886. })
  887. .toPromise()
  888. .then((response) => {
  889. this.deptBudgetList = response
  890. if (response.tranCarInfoList.length > 0) {
  891. this.deptBudgetList.driver = response.tranCarInfoList[0].driver
  892. this.deptBudgetList.driverPhone =
  893. response.tranCarInfoList[0].driverPhone
  894. this.$set(
  895. this.deptBudgetList,
  896. 'sendDateStart',
  897. response.tranCarInfoList[0].sendDateStart
  898. )
  899. this.deptBudgetList.receiveDateEnd =
  900. response.tranCarInfoList[0].receiveDateEnd
  901. this.deptBudgetList.shipName = response.tranCarInfoList[0].shipName
  902. this.deptBudgetList.shipNo = response.tranCarInfoList[0].shipNo
  903. this.deptBudgetList.shipType = response.tranCarInfoList[0].shipType
  904. this.deptBudgetList.boxNumber = response.tranCarInfoList[0].boxNumber
  905. //上传附件计数
  906. if (this.deptBudgetList.tranCarInfoList[0].loadPoundImg) {
  907. this.pictureTotal =
  908. this.deptBudgetList.tranCarInfoList[0].loadPoundImg.split(
  909. ','
  910. ).length
  911. }
  912. this.freightspace = response.tranCarInfoList
  913. }
  914. for (var i = 0; i < this.freightspace.length; i++) {
  915. if (!this.freightspace[i].loadNetWeight) {
  916. this.freightspace[i].loadNetWeight = 0
  917. }
  918. }
  919. })
  920. //司机姓名下拉
  921. getstaff({
  922. compId: localStorage.getItem('ws-pf_compId'),
  923. })
  924. .toPromise()
  925. .then((response) => {
  926. this.options = response
  927. this.staffList = response
  928. }),
  929. //车型
  930. packList({
  931. constId: 'TRAN5',
  932. })
  933. .toPromise()
  934. .then((response) => {
  935. this.carModel = response
  936. })
  937. },
  938. handleExamine() {},
  939. approve() {},
  940. // returnsales() {
  941. // this.$router.push({ path: 'purchaseContract' })
  942. // },
  943. selectChapterTwo(e) {
  944. for (var i = 0; i < this.ChapterTwoList.length; i++) {
  945. if (this.ChapterTwoList[i].constValue == e) {
  946. this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
  947. }
  948. }
  949. },
  950. selectunitList(e) {
  951. for (var i = 0; i < this.unitList.length; i++) {
  952. if (this.unitList[i].constValue == e) {
  953. this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
  954. }
  955. }
  956. },
  957. selectgrade(e) {
  958. for (var i = 0; i < this.gradeList.length; i++) {
  959. if (this.gradeList[i].constValue == e) {
  960. this.deptBudgetList.gradeKey = this.gradeList[i].constKey
  961. }
  962. }
  963. },
  964. selectgoodsName(e) {
  965. for (var i = 0; i < this.goodnameList.length; i++) {
  966. if (this.goodnameList[i].constValue == e) {
  967. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  968. }
  969. }
  970. },
  971. selectpackingMethod(e) {
  972. for (var i = 0; i < this.packtypeList.length; i++) {
  973. if (this.packtypeList[i].constValue == e) {
  974. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  975. }
  976. }
  977. },
  978. uploadSuccessHandle1(e) {
  979. this.pictureTotal++
  980. if (this.deptBudgetList.tranCarInfoList[0].loadPoundImg) {
  981. this.deptBudgetList.tranCarInfoList[0].loadPoundImg += ',' + e.url
  982. } else {
  983. this.deptBudgetList.tranCarInfoList[0].loadPoundImg = e.url
  984. }
  985. console.log(this.deptBudgetList.tranCarInfoList, 'duixiang1')
  986. feedback(this.deptBudgetList)
  987. .toPromise()
  988. .then((response) => {})
  989. },
  990. },
  991. }
  992. </script>
  993. <style lang="scss" scoped>
  994. /deep/.totalStorage .el-input__inner {
  995. color: #afb5cb;
  996. background: #f5f7fa;
  997. }
  998. .small-title {
  999. position: relative;
  1000. padding: 10px;
  1001. font-weight: 600;
  1002. }
  1003. .small-title::before {
  1004. position: absolute;
  1005. content: '';
  1006. display: block;
  1007. background: #5473e8;
  1008. width: 4px;
  1009. height: 14px;
  1010. left: 0px;
  1011. top: 13px;
  1012. }
  1013. .position {
  1014. position: relative;
  1015. }
  1016. .del {
  1017. position: absolute;
  1018. right: -38px;
  1019. top: 14px;
  1020. cursor: pointer;
  1021. right: 0;
  1022. display: inline-block;
  1023. font-size: 26px;
  1024. width: 26px;
  1025. height: 10px;
  1026. line-height: 0px;
  1027. }
  1028. .amap-page-container {
  1029. width: 300px;
  1030. height: 300px;
  1031. }
  1032. .el-form {
  1033. padding: 0 10%;
  1034. }
  1035. /deep/.ws-info-table .el-form-item {
  1036. border-right: 1px solid transparent;
  1037. border-bottom: 1px solid transparent;
  1038. }
  1039. .readonly {
  1040. position: relative;
  1041. }
  1042. .readonly:after {
  1043. content: '*';
  1044. color: #ff2727;
  1045. position: absolute;
  1046. right: 8px;
  1047. z-index: 10;
  1048. top: 21%;
  1049. font-size: 20px;
  1050. }
  1051. .title {
  1052. position: relative;
  1053. }
  1054. .title::before {
  1055. content: '';
  1056. display: inline-block;
  1057. width: 5px;
  1058. height: 30px;
  1059. background: #5473e8;
  1060. position: absolute;
  1061. left: 0;
  1062. }
  1063. .el-button--primary {
  1064. background-color: #5878e8;
  1065. border-color: #5878e8;
  1066. }
  1067. .el-col {
  1068. background: #f6f7fc;
  1069. }
  1070. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1071. padding: 0 25px;
  1072. border-left: 1px solid transparent;
  1073. background: #fff;
  1074. display: flex;
  1075. }
  1076. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1077. width: 100px;
  1078. text-align: center;
  1079. background: #fff;
  1080. // border: 1px solid #cdd2dc;
  1081. }
  1082. .button-container {
  1083. display: flex;
  1084. flex-wrap: nowrap;
  1085. justify-content: space-between;
  1086. align-items: center;
  1087. background-color: #fff;
  1088. width: 100%;
  1089. height: 50px;
  1090. padding: 0 10px;
  1091. & > div {
  1092. margin-left: 10px;
  1093. display: flex;
  1094. flex-wrap: nowrap;
  1095. flex-direction: row;
  1096. & > span {
  1097. line-height: 50px;
  1098. }
  1099. }
  1100. /deep/.auditFlow-box {
  1101. position: unset;
  1102. margin-left: 10px;
  1103. &/deep/.auditFlow-icon {
  1104. width: auto;
  1105. padding-right: 30px;
  1106. }
  1107. &/deep/.auditFlow-main {
  1108. position: absolute;
  1109. }
  1110. }
  1111. }
  1112. .box-app {
  1113. display: inline-block;
  1114. float: left;
  1115. margin-left: 30px;
  1116. line-height: 50px;
  1117. }
  1118. /deep/.el-dialog {
  1119. .el-form-item {
  1120. margin-bottom: 0 !important;
  1121. .el-input--medium {
  1122. textarea {
  1123. min-height: 100px !important;
  1124. }
  1125. }
  1126. }
  1127. }
  1128. .collapse-bottom {
  1129. margin-bottom: 20px;
  1130. }
  1131. .input-main .textarea .el-textarea__inner {
  1132. width: 100%;
  1133. z-index: 1;
  1134. }
  1135. .bg-left {
  1136. padding-left: 30px;
  1137. }
  1138. .bg-right {
  1139. padding-right: 10px;
  1140. text-align: right;
  1141. }
  1142. .bg-bottom {
  1143. margin: 15px 0px;
  1144. }
  1145. .wenzi {
  1146. width: 900px;
  1147. margin: 0 auto;
  1148. }
  1149. .wenzi h3 {
  1150. display: inline-block;
  1151. left: 10px;
  1152. }
  1153. .wenzi p {
  1154. display: inline-block;
  1155. }
  1156. .center {
  1157. width: 900px;
  1158. margin: 0 auto;
  1159. }
  1160. .center1 {
  1161. width: 100px;
  1162. margin: 0 auto;
  1163. margin-top: -2%;
  1164. }
  1165. .el-form-item {
  1166. width: 50%;
  1167. }
  1168. .el-form-item__label {
  1169. text-align: center;
  1170. }
  1171. .ce {
  1172. width: 900px;
  1173. margin: 0 auto;
  1174. }
  1175. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  1176. /* height: 82px;*/
  1177. /*}*/
  1178. // 控制select为只读的时候显示样式
  1179. .hide-sel {
  1180. .el-input__inner {
  1181. border: 0px;
  1182. }
  1183. .el-icon-arrow-up {
  1184. display: none;
  1185. }
  1186. .el-textarea__inner {
  1187. background-color: #fff !important;
  1188. border: 0;
  1189. }
  1190. .el-date-editor {
  1191. i {
  1192. display: none;
  1193. }
  1194. }
  1195. // .is-disabled {
  1196. // .el-input__inner:hover {
  1197. // background-color: #fff !important;
  1198. // border: 0;
  1199. // }
  1200. // color: #606266;
  1201. // .el-input__inner {
  1202. // background-color: #fff !important;
  1203. // border: 0;
  1204. // color: #606266;
  1205. // }
  1206. // .el-textarea__inner {
  1207. // background-color: #fff !important;
  1208. // border: 0;
  1209. // color: #606266;
  1210. // }
  1211. // }
  1212. }
  1213. // 控制select为只读的时候显示样式
  1214. /deep/.ws-class-table-col {
  1215. height: auto;
  1216. padding: 0px 2px;
  1217. /deep/.el-input__inner {
  1218. padding: 0px 2px;
  1219. }
  1220. }
  1221. // /deep/.is-disabled {
  1222. // .el-input__prefix,
  1223. // .el-input__suffix {
  1224. // display: none;
  1225. // }
  1226. // .el-input__inner {
  1227. // background-color: #fff;
  1228. // border-color: #fff !important;
  1229. // color: #000 !important;
  1230. // font-size: 14px;
  1231. // cursor: text;
  1232. // padding: 0 !important;
  1233. // }
  1234. // }
  1235. .winseaview-view {
  1236. padding: 0 0 20px;
  1237. }
  1238. .container {
  1239. overflow: scroll;
  1240. height: 93vh;
  1241. }
  1242. .ws-info-table .el-form-item {
  1243. width: 33.3333%;
  1244. }
  1245. .readonly:after {
  1246. display: none;
  1247. }
  1248. .el-textarea__inner {
  1249. display: none;
  1250. }
  1251. .el-form {
  1252. margin-top: 50px;
  1253. }
  1254. .readonly {
  1255. width: 16%;
  1256. }
  1257. //去边框
  1258. /deep/.el-form-item {
  1259. border-right: 0px;
  1260. border-bottom: 0px;
  1261. }
  1262. /deep/.ws-info-table {
  1263. border-left: 0px;
  1264. border-top: 0px;
  1265. }
  1266. .ws-info-table .el-form-item .el-form-item__content {
  1267. border: none;
  1268. }
  1269. /deep/.ws-info-table .el-form-item {
  1270. border: none;
  1271. height: 50px;
  1272. }
  1273. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1274. background: #f5f7fa;
  1275. border-radius: 4px;
  1276. border: 1px solid #d8dce6;
  1277. font-family: PingFangSC-Regular, PingFang SC;
  1278. margin-bottom: 5px;
  1279. background-color: #fff;
  1280. font-size: 14px;
  1281. font-weight: 400;
  1282. color: #8890b1;
  1283. line-height: 16px;
  1284. }
  1285. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1286. background-color: #fff;
  1287. font-size: 13px;
  1288. font-family: PingFangSC-Regular, PingFang SC;
  1289. font-weight: 400;
  1290. color: #8890b1;
  1291. line-height: 16px;
  1292. }
  1293. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1294. background: #f5f7fa;
  1295. border-radius: 4px;
  1296. border: 1px solid #d8dce6;
  1297. }
  1298. /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
  1299. border: 0px;
  1300. }
  1301. //联络员及车次
  1302. /deep/.liaison .ws-info-table .el-form-item {
  1303. width: 19%;
  1304. }
  1305. /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
  1306. width: 37%;
  1307. background: #f6f7fc;
  1308. }
  1309. /deep/.liaison .ws-info-table {
  1310. width: 100%;
  1311. background: #f6f7fc;
  1312. border-radius: 4px;
  1313. border: 1px solid #d8dce6;
  1314. margin-top: 20px;
  1315. }
  1316. .catNos {
  1317. width: 100%;
  1318. height: 30px;
  1319. margin-top: 10px;
  1320. margin-left: 20px;
  1321. font-size: 14px;
  1322. }
  1323. .catNosCor {
  1324. color: #5473e8;
  1325. }
  1326. .add {
  1327. width: 130px;
  1328. height: 34px;
  1329. background: #f6f7fb;
  1330. border-radius: 17px;
  1331. color: #5473e8;
  1332. font-size: 14px;
  1333. border: none;
  1334. }
  1335. .add img {
  1336. display: inline-block;
  1337. margin-top: 3px;
  1338. margin-left: -30px;
  1339. }
  1340. .add .spans {
  1341. display: table-caption;
  1342. width: 56px;
  1343. height: 20px;
  1344. line-height: 18px;
  1345. }
  1346. .signStatus {
  1347. height: 25px;
  1348. border-radius: 3px;
  1349. border: 1px solid #5473e8;
  1350. padding: 0 3px;
  1351. color: #ffffff;
  1352. background: #c4cada;
  1353. line-height: 24px;
  1354. margin-left: 18px;
  1355. }
  1356. .signStatus1 {
  1357. height: 25px;
  1358. background: #e6ebff;
  1359. border-radius: 3px;
  1360. border: 1px solid #5473e8;
  1361. padding: 0 3px;
  1362. margin-left: 18px;
  1363. color: #5473e8;
  1364. line-height: 24px;
  1365. }
  1366. .line {
  1367. height: 26px;
  1368. margin-top: 6px;
  1369. left: 2px;
  1370. }
  1371. /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  1372. padding: 0px;
  1373. }
  1374. //送达/未送达
  1375. .noservice,
  1376. .service {
  1377. display: inline-block;
  1378. border-radius: 4px;
  1379. border: 1px solid #d8dce6;
  1380. padding: 2px;
  1381. font-size: 12px;
  1382. }
  1383. .noservice {
  1384. background: #c4cada;
  1385. color: #ffffff;
  1386. }
  1387. .service {
  1388. background: #e5f1f7;
  1389. color: #50cad4;
  1390. }
  1391. .serviced {
  1392. display: inline-block;
  1393. border-radius: 4px;
  1394. border: 1px solid #d8dce6;
  1395. padding: 2px;
  1396. font-size: 12px;
  1397. background: #e5f1f7;
  1398. color: #2c81cf;
  1399. }
  1400. .tupian {
  1401. // margin-left: 14%;
  1402. // margin-top: -7%;
  1403. }
  1404. /deep/.el-input--suffix .el-input__inner {
  1405. padding-right: 0px;
  1406. }
  1407. .liaison {
  1408. margin-bottom: 20px;
  1409. }
  1410. .yd-bottom {
  1411. display: flex;
  1412. justify-content: space-between;
  1413. }
  1414. .yd-bottom-left {
  1415. display: flex;
  1416. }
  1417. .avatar-uploader {
  1418. margin-right: 10px;
  1419. }
  1420. /deep/.yd-bottom-left .el-form-item__content {
  1421. display: flex;
  1422. }
  1423. </style>