tranManagementTransporTrainNo.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937
  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. ><img
  15. width="6"
  16. height="10"
  17. style="vertical-align: bottom; margin-right: 3px"
  18. src="../../../public/img/lujing.png"
  19. alt=""
  20. />返回</el-button
  21. >
  22. </el-col>
  23. </el-row>
  24. <ws-form
  25. class="position"
  26. ref="deptBudgetList"
  27. :rules="rules"
  28. :model="deptBudgetList"
  29. >
  30. <div class="small-title" style="font-size: 16px;">任务详情</div>
  31. <ws-info-table>
  32. <!--任务编号-->
  33. <ws-form-item label="任务编号" span="1" prop="processNo">
  34. {{ deptBudgetList.processNo }}
  35. </ws-form-item>
  36. <!--货名-->
  37. <ws-form-item label="货名" span="1" prop="goodsName">
  38. {{ deptBudgetList.goodsName }}
  39. </ws-form-item>
  40. <!--重量(吨)-->
  41. <ws-form-item label="重量(吨)" span="1" prop="weight">
  42. {{ deptBudgetList.weight }}
  43. </ws-form-item>
  44. <!--发货地址-->
  45. <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
  46. {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
  47. }}{{ deptBudgetList.sendArea }}
  48. </ws-form-item>
  49. <!--发货人-->
  50. <ws-form-item label="发货人" span="1" prop="sender" class="readonly">
  51. {{ deptBudgetList.sender }}
  52. </ws-form-item>
  53. <!--发货人电话-->
  54. <ws-form-item
  55. label="发货人电话"
  56. span="1"
  57. prop="senderPhone"
  58. class="readonly"
  59. >
  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. </ws-info-table>
  88. <div class="small-title" style="font-size: 16px;">联络员及车皮信息</div>
  89. <div
  90. class="liaison"
  91. v-for="(item, index) in deptBudgetList.tranCarInfoList"
  92. :key="index"
  93. >
  94. <ws-info-table>
  95. <!--姓名-->
  96. <ws-form-item label="姓名" span="1" prop="driver">
  97. <el-select
  98. v-model="item.driver"
  99. placeholder="请选择姓名"
  100. filterable
  101. :filter-method="dataFilter"
  102. @change="selectstaff"
  103. >
  104. <el-option
  105. v-for="item in options"
  106. :key="item.value"
  107. :label="item.staffName"
  108. :value="item.staffName"
  109. />
  110. </el-select>
  111. </ws-form-item>
  112. <!--电话-->
  113. <ws-form-item label="电话" span="1" prop="driverPhone">
  114. <ws-input
  115. v-model="item.driverPhone"
  116. readonly
  117. unselectable="on"
  118. placeholder="请输入电话"
  119. maxlength="20"
  120. size="small"
  121. />
  122. </ws-form-item>
  123. <!--发车日期-->
  124. <ws-form-item label="发车日期" span="1" prop="sendDateStart">
  125. <ws-date-picker
  126. v-model="item.sendDateStart"
  127. type="date"
  128. placeholder="请选择发货日期"
  129. value-format="yyyy-MM-dd"
  130. />
  131. </ws-form-item>
  132. <!--到站日期-->
  133. <ws-form-item label="到站日期" span="1" prop="receiveDateEnd">
  134. <ws-date-picker
  135. v-model="item.receiveDateEnd"
  136. type="date"
  137. placeholder="请选择到站日期"
  138. value-format="yyyy-MM-dd"
  139. />
  140. </ws-form-item>
  141. <!--车型-->
  142. <ws-form-item label="车型" span="1" prop="carModel">
  143. <ws-select
  144. v-model="item.carModel"
  145. placeholder="请输入车型"
  146. class="typeselect"
  147. multiple
  148. filterable
  149. allow-create
  150. default-first-option
  151. >
  152. <ws-option
  153. v-for="items in carModel"
  154. :key="items.constKey"
  155. :label="items.constValue"
  156. :value="items.constValue"
  157. />
  158. </ws-select>
  159. </ws-form-item>
  160. </ws-info-table>
  161. <ws-info-table>
  162. <div
  163. style="width: 100%"
  164. class="flex position "
  165. v-for="(item1, index) in freightspace"
  166. :key="index"
  167. >
  168. <!--车厢号-->
  169. <ws-form-item
  170. :label="'车厢号-' + (index + 1)"
  171. span="1"
  172. prop="boxNo"
  173. >
  174. <ws-input
  175. v-model="item1.trainNo"
  176. placeholder="请输入车厢号"
  177. maxlength="20"
  178. size="small"
  179. />
  180. <span
  181. width="22"
  182. height="22"
  183. class="del"
  184. @click="del(index)"
  185. src="../../../public/img/del.png"
  186. alt=""
  187. >×</span
  188. >
  189. </ws-form-item>
  190. </div>
  191. </ws-info-table>
  192. </div>
  193. <el-button class="add bg-bottom" type="primary" size="small" @click="add">
  194. <img
  195. width="22"
  196. height="22"
  197. @click="add"
  198. src="../../../public/img/add.png"
  199. alt=""
  200. />
  201. <div class="spans">添加车厢</div>
  202. </el-button>
  203. </ws-form>
  204. <!-- 提交 -->
  205. <div style="text-align: right; padding: 10px" class="center">
  206. <el-button
  207. class="bg-bottom"
  208. type="primary"
  209. size="small"
  210. @click="submit(deptBudgetList)"
  211. >提交</el-button
  212. >
  213. </div>
  214. </div>
  215. </template>
  216. <script>
  217. import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
  218. import { seeCat, dispatchCat, packList } from '@/model/transport/index'
  219. import { getstaff } from '@/model/warehouse/index'
  220. import WsUpload from '@/components/WsUpload'
  221. import mapDrag from '@/components/mapdrag/mapdrag'
  222. export default {
  223. name: 'viewSpareMoney',
  224. components: {
  225. WsUpload,
  226. mapDrag,
  227. },
  228. watch: {
  229. vesselId(val) {
  230. this.getVesselData()
  231. },
  232. isShow(val) {
  233. this.showType = val
  234. },
  235. },
  236. data() {
  237. return {
  238. staffList: [],
  239. deptBudgetList: {
  240. totalStorage: 0,
  241. },
  242. options_: regionData,
  243. heightData: '600px',
  244. zoom: 7,
  245. selectedOptions: [],
  246. center: [116.244694, 39.517344],
  247. window: '',
  248. radio: 1,
  249. personCharge: [],
  250. district: null,
  251. driverList: [],
  252. listDate: { country: '中国', level: 'country', city: '' },
  253. citylist: [],
  254. compId: sessionStorage.getItem('ws-pf_compId'),
  255. tranType: 2,
  256. rules: {
  257. warehouseName: [
  258. {
  259. required: true,
  260. message: '请输入仓库名称',
  261. trigger: 'blur',
  262. },
  263. {
  264. min: 2,
  265. max: 20,
  266. message: '仓库名长度不符合要求,请输入2-20字符之内',
  267. trigger: 'blur',
  268. },
  269. ],
  270. },
  271. appendixIdsAdd: '',
  272. size: 10,
  273. value1: '',
  274. unitList: [],
  275. freightspace: [
  276. // {
  277. // trainNo: '',
  278. // },
  279. ],
  280. name: '',
  281. list: [],
  282. staffList: [],
  283. options: [],
  284. carModel: [],
  285. tranCarInfoList: {},
  286. arr: [],
  287. }
  288. },
  289. mounted() {
  290. this.deptBudgetList.id = this.$route.query.id
  291. this.getList()
  292. },
  293. computed: {
  294. totalStorage: function () {
  295. var maxStorage = 0
  296. for (var i = 0; i < this.freightspace.length; i++) {
  297. maxStorage += Number(this.freightspace[i].maxStorage)
  298. }
  299. return maxStorage
  300. },
  301. },
  302. methods: {
  303. dataFilter(val) {
  304. this.deptBudgetList.personCharge = val
  305. if (val) {
  306. this.options = this.staffList.filter((item) => {
  307. if (
  308. !!~item.staffName.indexOf(val) ||
  309. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  310. ) {
  311. return true
  312. }
  313. })
  314. } else {
  315. this.options = this.staffList
  316. }
  317. },
  318. selectstaff(e) {
  319. for (var i = 0; i < this.staffList.length; i++) {
  320. if (this.staffList[i].staffName == e) {
  321. this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
  322. this.deptBudgetList.tranCarInfoList[0].driverPhone =
  323. this.staffList[i].staffMobilePhone
  324. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  325. }
  326. }
  327. },
  328. marker: function (item) {
  329. this.deptBudgetList.warehousePositioning =
  330. item.lnglat.lat + ',' + item.lnglat.lng
  331. },
  332. selectedAddress(e) {
  333. this.deptBudgetList.warehousePositioning =
  334. e.center.lat + ',' + e.center.lng
  335. },
  336. confirmPositioncity() {
  337. this.listDate.level = 'city'
  338. this.listDate.country = this.name
  339. },
  340. // 关闭 dialog时 处理文件url 初始化upload组件
  341. handleClose() {
  342. this.dialogViewSpareMoney = false
  343. },
  344. add() {
  345. this.freightspace.push({
  346. trainNo: '',
  347. })
  348. },
  349. del(index) {
  350. if (this.freightspace.length > 1) {
  351. this.freightspace.splice(index, 1)
  352. }
  353. },
  354. //下拉司机姓名改变事件
  355. selectdriver() {},
  356. handleChange(value) {
  357. this.selectedOptions = value
  358. },
  359. returnsales() {
  360. this.deptBudgetList = {}
  361. this.freightspace = {}
  362. this.selectedOptions = ''
  363. this.$router.push({ path: 'tranManagementTransporTationFire' })
  364. },
  365. // confirmPosition() {
  366. // this.draggable = false
  367. // },
  368. // 上传附件
  369. uploadSuccess(data, files, url) {
  370. console.log(data, files, url)
  371. },
  372. submit() {
  373. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  374. if (!this.deptBudgetList.tranCarInfoList[i].driver) {
  375. this.$message({
  376. message: '姓名不能为空!',
  377. type: 'warning',
  378. })
  379. return
  380. }
  381. if (!this.deptBudgetList.tranCarInfoList[i].driverPhone) {
  382. this.$message({
  383. message: '电话不能为空!',
  384. type: 'warning',
  385. })
  386. return
  387. }
  388. if (!this.deptBudgetList.tranCarInfoList[i].sendDateStart) {
  389. this.$message({
  390. message: '发车日期不能为空!',
  391. type: 'warning',
  392. })
  393. return
  394. }
  395. if (!this.deptBudgetList.tranCarInfoList[i].receiveDateEnd) {
  396. this.$message({
  397. message: '到站日期不能为空',
  398. type: 'warning',
  399. })
  400. return
  401. }
  402. if (
  403. new Date(
  404. this.deptBudgetList.tranCarInfoList[i].sendDateStart
  405. ).getTime() >
  406. new Date(
  407. this.deptBudgetList.tranCarInfoList[i].receiveDateEnd
  408. ).getTime()
  409. ) {
  410. this.$message({
  411. message: '发车时间不能大于到站时间!',
  412. type: 'warning',
  413. })
  414. return
  415. }
  416. if (!this.deptBudgetList.tranCarInfoList[i].carModel) {
  417. this.$message({
  418. message: '车型不能为空!',
  419. type: 'warning',
  420. })
  421. return
  422. }
  423. }
  424. for (var j = 0; j < this.freightspace.length; j++) {
  425. if (!this.freightspace[j].trainNo) {
  426. this.$message({
  427. message: '车厢号不能为空',
  428. type: 'warning',
  429. })
  430. return
  431. }
  432. }
  433. this.$confirm(`提交成功后,任务将下发给相关人员,是否确定提交?`, {
  434. confirmButtonText: '确定',
  435. cancelButtonText: '取消',
  436. type: 'warning',
  437. })
  438. .then(() => {
  439. this.$refs.deptBudgetList.validate((valid) => {
  440. if (valid) {
  441. for (var i = 0; i < this.freightspace.length; i++) {
  442. var num = this.freightspace[i].trainNo
  443. this.arr.push(num)
  444. }
  445. this.deptBudgetList.totalStorage = this.totalStorage
  446. this.tranCarInfoList.driver = this.deptBudgetList.driver
  447. this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
  448. this.tranCarInfoList.sendDateStart =
  449. this.deptBudgetList.sendDateStart
  450. this.tranCarInfoList.receiveDateEnd =
  451. this.deptBudgetList.receiveDateEnd
  452. this.tranCarInfoList.carModel = this.deptBudgetList.carModel
  453. this.tranCarInfoList.id =
  454. this.deptBudgetList.tranCarInfoList[0].id
  455. this.tranCarInfoList.tranType = this.tranType
  456. this.tranCarInfoList.boxNo = this.arr.toString()
  457. var tranCarInfo = {}
  458. var tranList = [this.tranCarInfoList]
  459. tranCarInfo.id = this.deptBudgetList.id
  460. tranCarInfo.infoId = this.deptBudgetList.infoId
  461. tranCarInfo.tranCarInfoList = tranList
  462. // dispatchCat({tranCarInfo:{tranCarInfoList:[this.tranCarInfoList],id:this.deptBudgetList.id}
  463. dispatchCat(tranCarInfo)
  464. .toPromise()
  465. .then((response) => {
  466. this.$message.success('添加成功')
  467. this.deptBudgetList = {}
  468. this.freightspace = {}
  469. this.selectedOptions = ''
  470. this.$router.push({
  471. path: 'tranManagementTransporTationFire',
  472. })
  473. })
  474. } else {
  475. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  476. return false
  477. }
  478. })
  479. })
  480. .catch(() => {
  481. return false
  482. })
  483. },
  484. resetForm(deptBudgetList) {
  485. this.$refs[deptBudgetList].resetFields()
  486. },
  487. getList() {
  488. seeCat({ id: this.deptBudgetList.id })
  489. .toPromise()
  490. .then((response) => {
  491. this.deptBudgetList = response
  492. if (response.tranCarInfoList[0].boxNo) {
  493. this.list = response.tranCarInfoList[0].boxNo.split(',')
  494. for (var i = 0; i < this.list.length; i++) {
  495. var num = this.list[i]
  496. this.freightspace.push({
  497. trainNo: num,
  498. })
  499. }
  500. }
  501. })
  502. //司机姓名下拉
  503. getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
  504. .toPromise()
  505. .then((response) => {
  506. this.options = response
  507. this.staffList = response
  508. // this.deptBudgetList.tranCarInfoList.driverPhone = response
  509. })
  510. //车型
  511. packList({ constId: 'TRAN5' })
  512. .toPromise()
  513. .then((response) => {
  514. this.carModel = response
  515. })
  516. },
  517. handleExamine() {},
  518. approve() {},
  519. // returnsales() {
  520. // this.$router.push({ path: 'purchaseContract' })
  521. // },
  522. selectChapterTwo(e) {
  523. for (var i = 0; i < this.ChapterTwoList.length; i++) {
  524. if (this.ChapterTwoList[i].constValue == e) {
  525. this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
  526. }
  527. }
  528. },
  529. selectunitList(e) {
  530. for (var i = 0; i < this.unitList.length; i++) {
  531. if (this.unitList[i].constValue == e) {
  532. this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
  533. }
  534. }
  535. },
  536. selectgrade(e) {
  537. for (var i = 0; i < this.gradeList.length; i++) {
  538. if (this.gradeList[i].constValue == e) {
  539. this.deptBudgetList.gradeKey = this.gradeList[i].constKey
  540. }
  541. }
  542. },
  543. selectgoodsName(e) {
  544. for (var i = 0; i < this.goodnameList.length; i++) {
  545. if (this.goodnameList[i].constValue == e) {
  546. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  547. }
  548. }
  549. },
  550. selectpackingMethod(e) {
  551. for (var i = 0; i < this.packtypeList.length; i++) {
  552. if (this.packtypeList[i].constValue == e) {
  553. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  554. }
  555. }
  556. },
  557. // 编辑
  558. editClick(item, index) {
  559. const map = JSON.parse(JSON.stringify(item))
  560. if (Object.is(item.id, 1)) {
  561. return
  562. }
  563. if (Object.is(this.unitList[index].flag, 'delete')) {
  564. map.flag = 'check'
  565. this.$set(this.unitList, index, map)
  566. } else {
  567. map.flag = 'delete'
  568. this.$set(this.unitList, index, map)
  569. }
  570. },
  571. // 删除
  572. deleteClick(item, index) {
  573. if (Object.is(item.constKey, 1)) {
  574. return
  575. }
  576. if (!item.constValue) {
  577. this.unitList.splice(index, 1)
  578. return
  579. }
  580. delxiala({ id: this.unitList[index].id })
  581. .toPromise()
  582. .then((response) => {
  583. this.getUnitList()
  584. this.pleaseChoose = ''
  585. })
  586. },
  587. },
  588. }
  589. </script>
  590. <style lang="scss" scoped>
  591. /deep/.totalStorage .el-input__inner {
  592. color: #afb5cb;
  593. background: #f5f7fa;
  594. }
  595. .small-title {
  596. position: relative;
  597. padding: 10px;
  598. font-weight: 600;
  599. }
  600. .small-title::before {
  601. position: absolute;
  602. content: '';
  603. display: block;
  604. background: #5473e8;
  605. width: 4px;
  606. height: 14px;
  607. left: 0px;
  608. top: 13px;
  609. }
  610. .position {
  611. position: relative;
  612. }
  613. .del {
  614. position: absolute;
  615. // right: -38px;
  616. top: 9px;
  617. cursor: pointer;
  618. right: 0;
  619. display: inline-block;
  620. font-size: 20px;
  621. width: 16px;
  622. height: 10px;
  623. line-height: 0px;
  624. }
  625. .amap-page-container {
  626. width: 300px;
  627. height: 300px;
  628. }
  629. .el-form {
  630. padding: 0 15%;
  631. }
  632. /deep/.ws-info-table .el-form-item {
  633. border-right: 1px solid transparent;
  634. border-bottom: 1px solid transparent;
  635. }
  636. .readonly {
  637. position: relative;
  638. }
  639. .readonly:after {
  640. content: '*';
  641. color: #ff2727;
  642. position: absolute;
  643. right: 8px;
  644. z-index: 10;
  645. top: 21%;
  646. font-size: 20px;
  647. }
  648. .title {
  649. position: relative;
  650. }
  651. .title::before {
  652. content: '';
  653. display: inline-block;
  654. width: 5px;
  655. height: 30px;
  656. background: #5473e8;
  657. position: absolute;
  658. left: 0;
  659. }
  660. .el-button--primary {
  661. background-color: #5878e8;
  662. border-color: #5878e8;
  663. }
  664. .el-col {
  665. background: #f6f7fc;
  666. }
  667. /deep/.ws-info-table .el-form-item .el-form-item__content {
  668. padding: 0 25px;
  669. border-left: 1px solid transparent;
  670. background: #fff;
  671. }
  672. /deep/.ws-info-table .el-form-item .el-form-item__label {
  673. width: 100px;
  674. text-align: center;
  675. background: #fff;
  676. // border: 1px solid #cdd2dc;
  677. }
  678. .button-container {
  679. display: flex;
  680. flex-wrap: nowrap;
  681. justify-content: space-between;
  682. align-items: center;
  683. background-color: #fff;
  684. width: 100%;
  685. height: 50px;
  686. padding: 0 10px;
  687. & > div {
  688. margin-left: 10px;
  689. display: flex;
  690. flex-wrap: nowrap;
  691. flex-direction: row;
  692. & > span {
  693. line-height: 50px;
  694. }
  695. }
  696. /deep/.auditFlow-box {
  697. position: unset;
  698. margin-left: 10px;
  699. &/deep/.auditFlow-icon {
  700. width: auto;
  701. padding-right: 30px;
  702. }
  703. &/deep/.auditFlow-main {
  704. position: absolute;
  705. }
  706. }
  707. }
  708. .box-app {
  709. display: inline-block;
  710. float: left;
  711. margin-left: 30px;
  712. line-height: 50px;
  713. }
  714. /deep/.el-dialog {
  715. .el-form-item {
  716. margin-bottom: 0 !important;
  717. .el-input--medium {
  718. textarea {
  719. min-height: 100px !important;
  720. }
  721. }
  722. }
  723. }
  724. .collapse-bottom {
  725. margin-bottom: 20px;
  726. }
  727. .input-main .textarea .el-textarea__inner {
  728. width: 100%;
  729. z-index: 1;
  730. }
  731. .bg-left {
  732. padding-left: 30px;
  733. }
  734. .bg-right {
  735. padding-right: 10px;
  736. text-align: right;
  737. }
  738. .bg-bottom {
  739. margin: 15px 0px;
  740. }
  741. .center {
  742. width: 90%;
  743. margin: 0 auto;
  744. }
  745. .el-form-item {
  746. width: 50%;
  747. }
  748. .el-form-item__label {
  749. text-align: center;
  750. }
  751. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  752. /* height: 82px;*/
  753. /*}*/
  754. // 控制select为只读的时候显示样式
  755. .hide-sel {
  756. .el-input__inner {
  757. border: 0px;
  758. }
  759. .el-icon-arrow-up {
  760. display: none;
  761. }
  762. .el-textarea__inner {
  763. background-color: #fff !important;
  764. border: 0;
  765. }
  766. .el-date-editor {
  767. i {
  768. display: none;
  769. }
  770. }
  771. .is-disabled {
  772. .el-input__inner:hover {
  773. background-color: #fff !important;
  774. border: 0;
  775. }
  776. color: #606266;
  777. .el-input__inner {
  778. background-color: #fff !important;
  779. border: 0;
  780. color: #606266;
  781. }
  782. .el-textarea__inner {
  783. background-color: #fff !important;
  784. border: 0;
  785. color: #606266;
  786. }
  787. }
  788. }
  789. // 控制select为只读的时候显示样式
  790. /deep/.ws-class-table-col {
  791. height: auto;
  792. padding: 0px 2px;
  793. /deep/.el-input__inner {
  794. padding: 0px 2px;
  795. }
  796. }
  797. /deep/.is-disabled {
  798. .el-input__prefix,
  799. .el-input__suffix {
  800. display: none;
  801. }
  802. .el-input__inner {
  803. background-color: #fff;
  804. border-color: #fff !important;
  805. color: #000 !important;
  806. font-size: 14px;
  807. cursor: text;
  808. padding: 0 !important;
  809. }
  810. }
  811. .winseaview-view {
  812. padding: 0 0 20px;
  813. }
  814. .container {
  815. overflow: scroll;
  816. height: 93vh;
  817. }
  818. .ws-info-table .el-form-item {
  819. width: 33.3333%;
  820. }
  821. .readonly:after {
  822. display: none;
  823. }
  824. .el-textarea__inner {
  825. display: none;
  826. }
  827. .el-form {
  828. margin-top: 50px;
  829. }
  830. .readonly {
  831. width: 16%;
  832. }
  833. //去边框
  834. /deep/.el-form-item {
  835. border-right: 0px;
  836. border-bottom: 0px;
  837. }
  838. /deep/.ws-info-table {
  839. border-left: 0px;
  840. border-top: 0px;
  841. }
  842. /deep/.ws-info-table .el-form-item {
  843. border-right: 0px;
  844. border-bottom: 0px;
  845. border-left: 0px;
  846. border-top: 0px;
  847. }
  848. /deep/.ws-info-table .el-form-item .el-form-item__content {
  849. background: #f5f7fa;
  850. border-radius: 4px;
  851. border: 1px solid #d8dce6;
  852. font-family: PingFangSC-Regular, PingFang SC;
  853. margin-bottom: 5px;
  854. background-color: #fff;
  855. font-size: 14px;
  856. font-weight: 400;
  857. color: #8890b1;
  858. line-height: 16px;
  859. }
  860. /deep/.ws-info-table .el-form-item .el-form-item__label {
  861. background-color: #fff;
  862. font-size: 14px;
  863. font-family: PingFangSC-Regular, PingFang SC;
  864. font-weight: 400;
  865. color: #8890b1;
  866. line-height: 16px;
  867. }
  868. /deep/.ws-info-table .el-form-item .el-form-item__content {
  869. background: #f5f7fa;
  870. border-radius: 4px;
  871. border: 1px solid #d8dce6;
  872. }
  873. /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
  874. border: 0px;
  875. }
  876. //联络员及车次
  877. /deep/.liaison .ws-info-table .el-form-item {
  878. width: 20%;
  879. }
  880. /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
  881. width: 30%;
  882. border: 0px solid #d8dce6;
  883. background: #f5f7fa;
  884. }
  885. /deep/.liaison .flex {
  886. display: contents;
  887. }
  888. /deep/.liaison {
  889. background: #f5f7fa;
  890. border-radius: 4px;
  891. border: 0px solid #d8dce6;
  892. }
  893. /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  894. border: none;
  895. }
  896. .add {
  897. width: 100px;
  898. height: 34px;
  899. background: #f6f7fb;
  900. border-radius: 17px;
  901. color: #5473e8;
  902. font-size: 14px;
  903. border: none;
  904. }
  905. .add img {
  906. display: inline-block;
  907. margin-top: 3px;
  908. margin-left: -12px;
  909. }
  910. .add .spans {
  911. display: table-caption;
  912. width: 56px;
  913. height: 20px;
  914. line-height: 18px;
  915. }
  916. /deep/.carNos{
  917. margin-top: 20px;
  918. }
  919. </style>