tranManagementTransporTrainNo.vue 24 KB

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