tranManagementTransporTrainNo.vue 24 KB

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