tranManagementTransporTrainNo.vue 27 KB

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