tranManagementTransporTrainNo.vue 26 KB

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