tranManagementTransportAdd.vue 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402
  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. >
  15. <img
  16. width="6"
  17. height="10"
  18. style="vertical-align: bottom; margin-right: 3px"
  19. src="../../../public/img/lujing.png"
  20. alt
  21. />返回
  22. </el-button>
  23. </el-col>
  24. </el-row>
  25. <el-form
  26. ref="deptBudgetList"
  27. :rules="mainReportAdd"
  28. :model="deptBudgetList"
  29. >
  30. <ws-info-table class="el-table">
  31. <el-form-item label="任务编号" span="1" prop="taskNo" class="forlist">
  32. <el-input
  33. v-model="deptBudgetList.taskNo"
  34. placeholder="请输入任务编号"
  35. maxlength="20"
  36. size="small"
  37. disabled
  38. ></el-input>
  39. </el-form-item>
  40. <el-form-item prop="taskType" label="任务类型" span="1">
  41. <el-select
  42. v-model="deptBudgetList.taskType"
  43. placeholder="请输入任务类型"
  44. @change="selecttaskType"
  45. >
  46. <el-option
  47. v-for="item in taskType"
  48. :key="item.constKey"
  49. :label="item.constValue"
  50. :value="item.constValue"
  51. ></el-option>
  52. </el-select>
  53. </el-form-item>
  54. <el-form-item prop="contractNo" label="合同编号/移库任务编号" span="1">
  55. <el-select
  56. v-model="deptBudgetList.contractNo"
  57. placeholder="请选择编号"
  58. @change=" (val) => {
  59. selectcontractNo(val)
  60. }"
  61. >
  62. <el-option
  63. v-for="item in contractNoList"
  64. :key="item.constKey"
  65. :label="item.contractNo"
  66. :value="item.contractNo"
  67. ></el-option>
  68. </el-select>
  69. </el-form-item>
  70. <el-form-item prop="goodsName" label="货名" span="1">
  71. <el-input
  72. disabled
  73. v-model="deptBudgetList.goodsName"
  74. placeholder="请输入货名"
  75. size="small"
  76. ></el-input>
  77. </el-form-item>
  78. <el-form-item label="重量(吨)" span="1" prop="weight">
  79. <el-input
  80. @input="weightchange"
  81. v-model="deptBudgetList.weight"
  82. placeholder="请输入重量"
  83. maxlength="20"
  84. size="small"
  85. ></el-input>
  86. </el-form-item>
  87. </ws-info-table>
  88. <ws-info-table class="el-table">
  89. <div class="start-address" style="width: 36%">
  90. <el-radio-group
  91. @change="warehouseTypechange"
  92. v-model="deptBudgetList.warehouseType"
  93. >
  94. <el-radio label="1">常用仓库发货</el-radio>
  95. <el-radio label="2">临时仓库发货</el-radio>
  96. </el-radio-group>
  97. <el-select
  98. @change="sendWarehousechange"
  99. v-model="deptBudgetList.sendWarehouse"
  100. placeholder="选择仓库"
  101. class="typeselect"
  102. >
  103. <el-option
  104. v-for="item in warehouseList"
  105. :key="item.constKey"
  106. :label="item.warehouseName"
  107. :value="item.warehouseName"
  108. ></el-option>
  109. </el-select>
  110. </div>
  111. <el-form-item label="始发地" span="1" class="start-address">
  112. <el-cascader
  113. :options="options_"
  114. v-model="selectedOptions"
  115. clearable
  116. size="large"
  117. placeholder="请选择始发地"
  118. @change="handleChange"
  119. />
  120. </el-form-item>
  121. <el-form-item
  122. label="始发地详细地址"
  123. span="1"
  124. prop="startDetailedAddress"
  125. style="width: 31.333%"
  126. >
  127. <el-input
  128. v-model="deptBudgetList.startDetailedAddress"
  129. placeholder="请输入始发地详细地址"
  130. maxlength="20"
  131. size="small"
  132. ></el-input>
  133. </el-form-item>
  134. <el-form-item
  135. label="收货库点"
  136. span="1"
  137. prop="contractNo"
  138. class="start-address"
  139. style="width: 36%"
  140. >
  141. <el-select
  142. @change="sendWarehousechange1"
  143. v-model="deptBudgetList.receiveWarehouse"
  144. :disabled="warehouse"
  145. placeholder="请输入收货库点"
  146. style="width: 100%"
  147. >
  148. <el-option
  149. v-for="item in warehouseList1"
  150. :key="item.constKey"
  151. :label="item.warehouseName"
  152. :value="item.warehouseName"
  153. ></el-option>
  154. </el-select>
  155. </el-form-item>
  156. <el-form-item
  157. label="终到地"
  158. span="1"
  159. prop="contractNo"
  160. class="start-address"
  161. >
  162. <el-cascader
  163. :options="options_"
  164. v-model="selectedOptions1"
  165. clearable
  166. size="large"
  167. placeholder="请选择终到地"
  168. @change="handleChange1"
  169. />
  170. </el-form-item>
  171. <el-form-item
  172. label="终到地详细地址"
  173. span="1"
  174. prop="endDetailedAddress"
  175. class="bg-right start-address"
  176. >
  177. <el-input
  178. v-model="deptBudgetList.endDetailedAddress"
  179. placeholder="请输入终到地详细地址"
  180. maxlength="20"
  181. size="small"
  182. ></el-input>
  183. </el-form-item>
  184. <div class="check-box">
  185. <span class="check-box">运输方式</span>
  186. <el-checkbox-group v-model="checkList" prop="tranType">
  187. <el-checkbox label="汽运" checked></el-checkbox>
  188. <el-checkbox label="火运"></el-checkbox>
  189. <el-checkbox label="船运"></el-checkbox>
  190. </el-checkbox-group>
  191. </div>
  192. </ws-info-table>
  193. <div
  194. style="width: 100%"
  195. class="position"
  196. v-for="(item, index) in deptBudgetList.tranProcessInfoList"
  197. :key="item.id"
  198. >
  199. <div class="driver">
  200. <span>运输阶段{{ item.key }} {{ item.processNo }}</span>
  201. <img
  202. width="22"
  203. height="22"
  204. class="add"
  205. @click="add(index)"
  206. src="../../../public/img/add.png"
  207. alt
  208. />
  209. <img
  210. width="22"
  211. height="22"
  212. class="del"
  213. @click="del(index)"
  214. src="../../../public/img/del.png"
  215. alt
  216. />
  217. <el-checkbox
  218. @change="(val) => {engflagchange(val, index)}"
  219. class="endflag"
  220. true-label="1"
  221. :disabled='disabled'
  222. false-label="0"
  223. v-model="item.endFlag"
  224. :label="1"
  225. >粮款结算阶段</el-checkbox
  226. >
  227. </div>
  228. <ws-info-table>
  229. <el-form-item label="运输方式" span="1" prop="waterContent">
  230. <el-select
  231. v-model="item.tranType"
  232. placeholder="运输方式"
  233. @change="
  234. (val) => {
  235. selecttaskwayList(val, index)
  236. }
  237. "
  238. >
  239. <el-option
  240. v-for="item in taskwayList"
  241. :key="item.constKey"
  242. :label="item.constValue"
  243. :value="item.constValue"
  244. ></el-option>
  245. </el-select>
  246. </el-form-item>
  247. <el-form-item label="发货日期" span="1" prop="impurity">
  248. <ws-date-picker
  249. v-model="item.deliveryDateStart"
  250. type="date"
  251. placeholder="请选择发货日期"
  252. value-format="yyyy-MM-dd"
  253. />
  254. </el-form-item>
  255. <el-form-item label="最晚到货日期" span="1" prop="bulkDensity">
  256. <ws-date-picker
  257. v-model="item.deliveryDateEnd"
  258. type="date"
  259. placeholder="请选择最晚到货日期"
  260. value-format="yyyy-MM-dd"
  261. />
  262. </el-form-item>
  263. <!-- 本阶段重量 -->
  264. <el-form-item
  265. label="本阶段运输重量(吨)"
  266. span="1"
  267. prop="bulkDensity"
  268. >
  269. <el-input
  270. v-model="item.weight"
  271. placeholder="请输入本阶段运输重量"
  272. size="small"
  273. ></el-input>
  274. </el-form-item>
  275. </ws-info-table>
  276. <ws-info-table>
  277. <el-form-item label="发货地区" span="1" prop="waterContent">
  278. <el-cascader
  279. :options="options_"
  280. v-model="item.selectedOptions"
  281. clearable
  282. size="large"
  283. placeholder="请选择发货地区"
  284. style="width: 200%"
  285. @change="
  286. (val) => {
  287. handleChange3(val, index)
  288. }
  289. "
  290. />
  291. </el-form-item>
  292. <el-form-item label="发货地详细地址" span="1" prop="impurity">
  293. <el-input
  294. v-model="item.sendDetailedAddress"
  295. placeholder="请输入发货地详细地址"
  296. maxlength="20"
  297. size="small"
  298. ></el-input>
  299. </el-form-item>
  300. <el-form-item label="发货人" span="1" prop="sender">
  301. <el-select
  302. v-model="item.sender"
  303. placeholder="请选择发货人"
  304. filterable
  305. @change=" (val) => {
  306. selectstaff(val, index)
  307. }"
  308. >
  309. <el-option
  310. v-for="item in options"
  311. :key="item.value"
  312. :label="item.staffName"
  313. :value="item.staffName"
  314. />
  315. </el-select>
  316. </el-form-item>
  317. <el-form-item label="发货人电话" span="1" prop="bulkDensity">
  318. <el-input
  319. v-model="item.senderPhone"
  320. placeholder="请输入发货人电话"
  321. maxlength="20"
  322. size="small"
  323. disabled
  324. ></el-input>
  325. </el-form-item>
  326. </ws-info-table>
  327. <ws-info-table>
  328. <el-form-item label="收货地区" span="1" prop="bulkDensity">
  329. <el-cascader
  330. :options="options_"
  331. v-model="item.selectedOptions1"
  332. clearable
  333. size="large"
  334. placeholder="请选择收货地区"
  335. style="width: 200%"
  336. @change="
  337. (val) => {
  338. handleChange4(val, index)
  339. }
  340. "
  341. />
  342. </el-form-item>
  343. <el-form-item label="收货地详细地址" span="1" prop="impurity">
  344. <el-input
  345. v-model="item.receiveDetailedAddress"
  346. placeholder="请输入收货地详细地址"
  347. maxlength="20"
  348. size="small"
  349. ></el-input>
  350. </el-form-item>
  351. <el-form-item label="收货人" span="1" prop="bulkDensity">
  352. <el-select
  353. v-model="item.receiver"
  354. placeholder="请选择收货人"
  355. filterable
  356. @change="(val) => {
  357. selectstaff1(val, index)
  358. }"
  359. >
  360. <el-option
  361. v-for="item in options"
  362. :key="item.value"
  363. :label="item.staffName"
  364. :value="item.staffName"
  365. />
  366. </el-select>
  367. </el-form-item>
  368. <el-form-item label="收货人电话" span="1" prop="bulkDensity">
  369. <el-input
  370. v-model="item.receiverPhone"
  371. placeholder="请输入收货人电话"
  372. maxlength="20"
  373. size="small"
  374. disabled
  375. ></el-input>
  376. </el-form-item>
  377. </ws-info-table>
  378. </div>
  379. </el-form>
  380. <!-- 提交 -->
  381. <div style="text-align: right; padding: 10px" class="center">
  382. <el-button
  383. class="bg-bottom"
  384. type="primary"
  385. size="small"
  386. @click="submit(deptBudgetList)"
  387. >提交</el-button
  388. >
  389. </div>
  390. </div>
  391. </template>
  392. <script>
  393. import { packList } from '@/model/contarct/index'
  394. import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
  395. import { addtrantask, getwarehousename, xialaNo,getstaff} from '@/model/tasksport/index'
  396. import WsUpload from '@/components/WsUpload'
  397. import mapDrag from '@/components/mapdrag/mapdrag'
  398. export default {
  399. name: 'viewSpareMoney',
  400. components: {
  401. WsUpload,
  402. mapDrag,
  403. },
  404. watch: {
  405. vesselId(val) {
  406. this.getVesselData()
  407. },
  408. isShow(val) {
  409. this.showType = val
  410. },
  411. },
  412. data() {
  413. let self = this
  414. return {
  415. checkList: [],
  416. disabled:false,
  417. deptBudgetList: {
  418. taskNo: '',
  419. totalStorage: 0,
  420. // goodsName: '玉米',
  421. // goodsNameKey: 1,
  422. warehouseType: '1',
  423. tranProcessInfoList: [
  424. {
  425. sort: 0,
  426. processNo: '',
  427. tranType: '汽运',
  428. tranTypeKey: '1',
  429. deliveryDateStart: '',
  430. deliveryDateEnd: '',
  431. weight: '',
  432. selectedOptions: [],
  433. selectedOptions1: [],
  434. sendPrivate: '',
  435. sendCity: '',
  436. sendArea: '',
  437. receivePrivate: '',
  438. receiveCity: '',
  439. receiveArea: '',
  440. sendDetailedAddress: '',
  441. receiveDetailedAddress: '',
  442. sender: '',
  443. receiver: '',
  444. key: 1,
  445. senderPhone: '',
  446. receiverPhone: '',
  447. endFlag: '0',
  448. },
  449. ],
  450. },
  451. radio: '1',
  452. options_: regionData,
  453. heightData: '600px',
  454. zoom: 7,
  455. options: [],
  456. selectedOptions: [],
  457. selectedOptions1: [],
  458. window: '',
  459. district: null,
  460. goodnameList: [],
  461. listDate: { country: '中国', level: 'country', city: '' },
  462. citylist: [],
  463. taskType: [],
  464. taskwayList: [],
  465. contractNoList: [],
  466. compId: sessionStorage.getItem('ws-pf_compId'),
  467. mainReportAdd: {},
  468. appendixIdsAdd: '',
  469. warehouseList: [],
  470. warehouseList1: [],
  471. size: 10,
  472. value1: '',
  473. unitList: [],
  474. name: '',
  475. age: '',
  476. number: 2,
  477. }
  478. },
  479. activated() {
  480. this.loaddata()
  481. this.showType = this.isShow
  482. },
  483. computed: {
  484. warehouse: function () {
  485. if (
  486. this.deptBudgetList.taskType == '销售出库' ||
  487. this.deptBudgetList.taskType == '贸易服务出库' ||
  488. this.deptBudgetList.taskType == '暂存出库'
  489. ) {
  490. return true
  491. } else {
  492. return false
  493. }
  494. },
  495. },
  496. methods: {
  497. sendWarehousechange(e) {
  498. for (let i = 0; i < this.warehouseList.length; i++) {
  499. if (this.warehouseList[i].warehouseName == e) {
  500. var tmp = []
  501. tmp[0] = TextToCode[this.warehouseList[i].warehousePrivate].code
  502. tmp[1] =
  503. TextToCode[this.warehouseList[i].warehousePrivate][
  504. this.warehouseList[i].warehouseCity
  505. ].code
  506. tmp[2] =
  507. TextToCode[this.warehouseList[i].warehousePrivate][
  508. this.warehouseList[i].warehouseCity
  509. ][this.warehouseList[i].warehouseArea].code
  510. this.selectedOptions = tmp
  511. this.deptBudgetList.tranProcessInfoList[0].selectedOptions = tmp
  512. this.$set(
  513. this.deptBudgetList,
  514. 'startDetailedAddress',
  515. this.warehouseList[i].detailedAddress
  516. )
  517. this.$set(
  518. this.deptBudgetList.tranProcessInfoList[0],
  519. 'sendDetailedAddress',
  520. this.deptBudgetList.startDetailedAddress
  521. )
  522. }
  523. }
  524. },
  525. dataFilter(val) {
  526. this.deptBudgetList.personCharge = val
  527. if (val) {
  528. console.log(val)
  529. this.options = this.staffList.filter((item) => {
  530. if (
  531. !!~item.staffName.indexOf(val) ||
  532. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  533. ) {
  534. return true
  535. }
  536. })
  537. } else {
  538. this.options = this.staffList
  539. }
  540. },
  541. selectstaff(val, index) {
  542. for (var i = 0; i < this.staffList.length; i++) {
  543. if (this.staffList[i].staffName == val) {
  544. this.deptBudgetList.tranProcessInfoList[index].senderPhone = this.staffList[i].staffMobilePhone
  545. }
  546. }
  547. },
  548. selectstaff1(val, index) {
  549. for (var i = 0; i < this.staffList.length; i++) {
  550. if (this.staffList[i].staffName == val) {
  551. this.deptBudgetList.tranProcessInfoList[index].receiverPhone = this.staffList[i].staffMobilePhone
  552. }
  553. }
  554. },
  555. selectcontractNo(val) {
  556. for (var i = 0; i < this.contractNoList.length; i++) {
  557. if (this.contractNoList[i].contractNo == val) {
  558. this.deptBudgetList.goodsName = this.contractNoList[i].goodsName
  559. }
  560. }
  561. },
  562. sendWarehousechange1(e) {
  563. for (let i = 0; i < this.warehouseList1.length; i++) {
  564. if (this.warehouseList1[i].warehouseName == e) {
  565. var tmp = []
  566. tmp[0] = TextToCode[this.warehouseList1[i].warehousePrivate].code
  567. tmp[1] =
  568. TextToCode[this.warehouseList1[i].warehousePrivate][
  569. this.warehouseList1[i].warehouseCity
  570. ].code
  571. tmp[2] =
  572. TextToCode[this.warehouseList1[i].warehousePrivate][
  573. this.warehouseList1[i].warehouseCity
  574. ][this.warehouseList1[i].warehouseArea].code
  575. this.selectedOptions1 = tmp
  576. this.$set(
  577. this.deptBudgetList,
  578. 'endDetailedAddress',
  579. this.warehouseList1[i].detailedAddress
  580. )
  581. }
  582. }
  583. },
  584. warehouseTypechange() {
  585. getwarehousename({
  586. compId: this.compId,
  587. warehouseType: this.deptBudgetList.warehouseType,
  588. })
  589. .toPromise()
  590. .then((response) => {
  591. this.warehouseList = response
  592. })
  593. },
  594. weightchange(e) {
  595. this.deptBudgetList.tranProcessInfoList[0].weight = e
  596. },
  597. engflagchange(e, index) {
  598. this.$confirm('选择结算阶段后不可修改,是否确定选择?', {
  599. distinguishCancelAndClose: true,
  600. confirmButtonText: '确定',
  601. cancelButtonText: '取消'
  602. })
  603. .then(() => {
  604. this.$message({
  605. type: 'success',
  606. message: '选择成功'
  607. });
  608. // this.disabled=true
  609. })
  610. .catch(action => {
  611. });
  612. for(var i=0;i<this.deptBudgetList.tranProcessInfoList.length;i++){
  613. this.deptBudgetList.tranProcessInfoList[i].endFlag='0'
  614. }
  615. this.deptBudgetList.tranProcessInfoList[index].endFlag = e
  616. // if (this.endflag) {
  617. // this.deptBudgetList.tranProcessInfoList[
  618. // this.deptBudgetList.tranProcessInfoList.length - 1
  619. // ].selectedOptions1 = this.selectedOptions1
  620. // this.deptBudgetList.tranProcessInfoList[
  621. // this.deptBudgetList.tranProcessInfoList.length - 1
  622. // ].receiveDetailedAddress = this.deptBudgetList.endDetailedAddress
  623. // } else {
  624. // this.deptBudgetList.tranProcessInfoList[
  625. // this.deptBudgetList.tranProcessInfoList.length - 1
  626. // ].selectedOptions1 = []
  627. // this.deptBudgetList.tranProcessInfoList[
  628. // this.deptBudgetList.tranProcessInfoList.length - 1
  629. // ].receiveDetailedAddress = ''
  630. // }
  631. },
  632. // 获取当前年月日
  633. getdate() {
  634. var date = new Date()
  635. var year = date.getFullYear() //获取完整的年份(4位)
  636. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  637. var datetime = date.getDate() //获取当前日(1-31)
  638. if (mouth < 10) {
  639. mouth = '0' + mouth
  640. }
  641. if (datetime < 10) {
  642. datetime = '0' + datetime
  643. }
  644. return year +'' + mouth + datetime
  645. },
  646. MathRand() {
  647. var Num = ''
  648. for (var i = 0; i < 4; i++) {
  649. Num += Math.floor(Math.random() * 10)
  650. }
  651. return Num
  652. },
  653. // 随机验证码
  654. verifyinit() {
  655. var arr = []
  656. for (var i = 48; i < 123; i++) {
  657. if (i > 57 && i < 65) continue
  658. if (i > 90 ) continue
  659. arr.push(String.fromCharCode(i))
  660. }
  661. arr.sort(function () {
  662. return Math.random() - 0.5
  663. })
  664. arr.length = 4
  665. return arr.join('')
  666. },
  667. loaddata() {
  668. this.deptBudgetList.taskNo = 'YS' + this.getdate() + this.MathRand()
  669. this.deptBudgetList.tranProcessInfoList[0].processNo =
  670. this.deptBudgetList.taskNo + '-1'
  671. // 货名
  672. packList({ constId: 'CON2' })
  673. .toPromise()
  674. .then((response) => {
  675. this.goodnameList = response
  676. })
  677. // 任务类型
  678. packList({ constId: 'TRAN3' })
  679. .toPromise()
  680. .then((response) => {
  681. this.taskType = response
  682. })
  683. // 运输方式
  684. packList({ constId: 'TRAN6' })
  685. .toPromise()
  686. .then((response) => {
  687. this.taskwayList = response
  688. })
  689. getwarehousename({
  690. compId: this.compId,
  691. warehouseType: this.deptBudgetList.warehouseType,
  692. })
  693. .toPromise()
  694. .then((response) => {
  695. this.warehouseList = response
  696. })
  697. getwarehousename({
  698. compId: this.compId,
  699. warehouseType: 1,
  700. })
  701. .toPromise()
  702. .then((response) => {
  703. this.warehouseList1 = response
  704. })
  705. getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
  706. .toPromise()
  707. .then((response) => {
  708. // this.agent = response
  709. this.options = response
  710. this.staffList = response
  711. this.sender = response
  712. })
  713. xialaNo({
  714. compId: this.compId,
  715. flag: 8,
  716. })
  717. .toPromise()
  718. .then((response) => {
  719. this.contractNoList = response
  720. })
  721. },
  722. confirmPositioncity() {
  723. this.listDate.level = 'city'
  724. this.listDate.country = this.name
  725. },
  726. // 关闭 dialog时 处理文件url 初始化upload组件
  727. handleClose() {
  728. this.dialogViewSpareMoney = false
  729. },
  730. add(index) {
  731. this.deptBudgetList.tranProcessInfoList.push({
  732. processNo:
  733. this.deptBudgetList.taskNo +
  734. '-' +
  735. (this.deptBudgetList.tranProcessInfoList.length + 1),
  736. tranType: '汽运',
  737. tranTypeKey: '1',
  738. deliveryDateStart: '',
  739. deliveryDateEnd: '',
  740. weight:
  741. this.deptBudgetList.tranProcessInfoList[
  742. this.deptBudgetList.tranProcessInfoList.length - 1
  743. ].weight,
  744. selectedOptions: [],
  745. selectedOptions1: [],
  746. sendPrivate: '',
  747. sendCity: '',
  748. sendArea: '',
  749. receivePrivate: '',
  750. receiveCity: '',
  751. receiveArea: '',
  752. sendDetailedAddress: '',
  753. receiveDetailedAddress: '',
  754. sender: '',
  755. receiver: '',
  756. key: this.deptBudgetList.tranProcessInfoList.length + 1,
  757. senderPhone: '',
  758. receiverPhone: '',
  759. endFlag: '0',
  760. })
  761. },
  762. del(index) {
  763. if (this.deptBudgetList.tranProcessInfoList.length > 1) {
  764. this.deptBudgetList.tranProcessInfoList.splice(index, 1)
  765. }
  766. for (let i = 0; i < this.deptBudgetList.tranProcessInfoList.length; i++) {
  767. this.$set(this.deptBudgetList.tranProcessInfoList[i], 'key', i + 1)
  768. this.$set(
  769. this.deptBudgetList.tranProcessInfoList[i],
  770. 'processNo',
  771. this.deptBudgetList.taskNo + '-' + (i + 1)
  772. )
  773. }
  774. this.$forceUpdate()
  775. },
  776. handleChange(value) {
  777. this.selectedOptions = value
  778. this.deptBudgetList.startPrivate = CodeToText[value[0]]
  779. this.deptBudgetList.startCity = CodeToText[value[1]]
  780. this.deptBudgetList.startArea = CodeToText[value[2]]
  781. },
  782. handleChange1(value) {
  783. this.selectedOptions1 = value
  784. this.deptBudgetList.endPrivate = CodeToText[value[0]]
  785. this.deptBudgetList.endCity = CodeToText[value[1]]
  786. this.deptBudgetList.endArea = CodeToText[value[2]]
  787. },
  788. handleChange3(value, index) {
  789. this.deptBudgetList.tranProcessInfoList[index].sendPrivate =
  790. CodeToText[value[0]]
  791. this.deptBudgetList.tranProcessInfoList[index].sendCity =
  792. CodeToText[value[1]]
  793. this.deptBudgetList.tranProcessInfoList[index].sendArea =
  794. CodeToText[value[2]]
  795. },
  796. handleChange4(value, index) {
  797. this.deptBudgetList.tranProcessInfoList[index].receivePrivate =
  798. CodeToText[value[0]]
  799. this.deptBudgetList.tranProcessInfoList[index].receiveCity =
  800. CodeToText[value[1]]
  801. this.deptBudgetList.tranProcessInfoList[index].receiveArea =
  802. CodeToText[value[2]]
  803. },
  804. returnsales() {
  805. this.$router.push({ path: 'tranManagementTransport' })
  806. this.deptBudgetList = {
  807. taskNo: '',
  808. totalStorage: 0,
  809. goodsName: '玉米',
  810. goodsNameKey: 1,
  811. warehouseType: '1',
  812. tranProcessInfoList: [
  813. {
  814. processNo: '',
  815. tranType: '汽运',
  816. deliveryDateStart: '',
  817. deliveryDateEnd: '',
  818. weight: '',
  819. selectedOptions: [],
  820. selectedOptions1: [],
  821. sendPrivate: '',
  822. sendCity: '',
  823. sendArea: '',
  824. receivePrivate: '',
  825. receiveCity: '',
  826. receiveArea: '',
  827. sendDetailedAddress: '',
  828. receiveDetailedAddress: '',
  829. sender: '',
  830. receiver: '',
  831. senderPhone: '',
  832. receiverPhone: '',
  833. },
  834. ],
  835. }
  836. },
  837. selecttaskType(e) {
  838. for (var i = 0; i < this.taskType.length; i++) {
  839. if (this.taskType[i].constValue == e) {
  840. this.deptBudgetList.taskTypeKey = this.taskType[i].constKey
  841. }
  842. }
  843. },
  844. selecttaskwayList(e, index) {
  845. for (var i = 0; i < this.taskwayList.length; i++) {
  846. if (this.taskwayList[i].constValue == e) {
  847. this.deptBudgetList.tranProcessInfoList[index].tranTypeKey =
  848. this.taskwayList[i].constKey
  849. }
  850. }
  851. },
  852. selectgoodsname(e) {
  853. for (var i = 0; i < this.goodnameList.length; i++) {
  854. if (this.goodnameList[i].constValue == e) {
  855. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  856. }
  857. }
  858. },
  859. onChange(files) {
  860. this.fileNum = files
  861. this.$refs.upload.handleSaveBill().then((res) => {})
  862. },
  863. submit() {
  864. if (!this.deptBudgetList.taskNo) {
  865. this.$message({
  866. message: '任务编号不能为空!',
  867. type: 'warning',
  868. })
  869. return
  870. }
  871. if (!this.deptBudgetList.taskType) {
  872. this.$message({
  873. message: '任务类型不能为空!',
  874. type: 'warning',
  875. })
  876. return
  877. }
  878. if (!this.deptBudgetList.contractNo) {
  879. this.$message({
  880. message: '合同编号/移库任务编号不能为空!',
  881. type: 'warning',
  882. })
  883. return
  884. }
  885. if (!this.deptBudgetList.goodsName) {
  886. this.$message({
  887. message: '货名不能为空!',
  888. type: 'warning',
  889. })
  890. return
  891. }
  892. if (!this.deptBudgetList.weight) {
  893. this.$message({
  894. message: '重量(吨)不能为空!',
  895. type: 'warning',
  896. })
  897. return
  898. }
  899. if (!this.deptBudgetList.sendWarehouse) {
  900. this.$message({
  901. message: '发货仓库不能为空!',
  902. type: 'warning',
  903. })
  904. return
  905. }
  906. if (this.selectedOptions.length <= 0) {
  907. this.$message({
  908. message: '始发地不能为空!',
  909. type: 'warning',
  910. })
  911. return
  912. }
  913. if (!this.deptBudgetList.startDetailedAddress) {
  914. this.$message({
  915. message: '始发地详细地址不能为空!',
  916. type: 'warning',
  917. })
  918. return
  919. }
  920. if (this.selectedOptions1.length <= 0) {
  921. this.$message({
  922. message: '终到地不能为空!',
  923. type: 'warning',
  924. })
  925. return
  926. }
  927. if (!this.deptBudgetList.endDetailedAddress) {
  928. this.$message({
  929. message: '终到地详细地址不能为空!',
  930. type: 'warning',
  931. })
  932. return
  933. }
  934. if (this.checkList.length <= 0) {
  935. this.$message({
  936. message: '运输方式多选框不能为空!',
  937. type: 'warning',
  938. })
  939. return
  940. }
  941. for (var i = 0; i < this.deptBudgetList.tranProcessInfoList.length; i++) {
  942. this.deptBudgetList.tranProcessInfoList[i].processNo =
  943. this.deptBudgetList.taskNo + (i + 1)
  944. if (
  945. new Date(
  946. this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart
  947. ).getTime() >
  948. new Date(
  949. this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd
  950. ).getTime()
  951. ) {
  952. this.$message({
  953. message: '发货日期不能大于最晚到货日期!',
  954. type: 'warning',
  955. })
  956. return
  957. }
  958. if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
  959. this.$message({
  960. message: '发货日期不能为空!',
  961. type: 'warning',
  962. })
  963. return
  964. }
  965. if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
  966. this.$message({
  967. message: '最晚到货日期不能为空!',
  968. type: 'warning',
  969. })
  970. return
  971. }
  972. if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
  973. this.$message({
  974. message: '重量不能为空!',
  975. type: 'warning',
  976. })
  977. return
  978. }
  979. if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
  980. this.$message({
  981. message: '发货人不能为空!',
  982. type: 'warning',
  983. })
  984. return
  985. }
  986. if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
  987. this.$message({
  988. message: '发货人电话不能为空!',
  989. type: 'warning',
  990. })
  991. return
  992. }
  993. if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
  994. this.$message({
  995. message: '收货人不能为空!',
  996. type: 'warning',
  997. })
  998. return
  999. }
  1000. if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
  1001. this.$message({
  1002. message: '收货人电话不能为空!',
  1003. type: 'warning',
  1004. })
  1005. return
  1006. }
  1007. if (
  1008. !this.deptBudgetList.tranProcessInfoList[i].receiveDetailedAddress
  1009. ) {
  1010. this.$message({
  1011. message: '收获详细地址不能为空!',
  1012. type: 'warning',
  1013. })
  1014. return
  1015. }
  1016. if (!this.deptBudgetList.tranProcessInfoList[i].sendDetailedAddress) {
  1017. this.$message({
  1018. message: '发货详细地址不能为空!',
  1019. type: 'warning',
  1020. })
  1021. return
  1022. }
  1023. }
  1024. // if (this.deptBudgetList.endFlag=='1') {
  1025. this.$confirm(`运输任务提交成功后将派发到物流部门,是否确定提交?`, {
  1026. confirmButtonText: '确定',
  1027. cancelButtonText: '取消',
  1028. type: 'warning',
  1029. })
  1030. .then(() => {
  1031. this.$refs.deptBudgetList.validate((valid) => {
  1032. if (valid) {
  1033. this.deptBudgetList.compId =
  1034. sessionStorage.getItem('ws-pf_compId')
  1035. console.log()
  1036. this.deptBudgetList.tranType = this.checkList.toString()
  1037. this.deptBudgetList.startPrivate =
  1038. CodeToText[this.selectedOptions[0]]
  1039. this.deptBudgetList.startCity =
  1040. CodeToText[this.selectedOptions[1]]
  1041. this.deptBudgetList.startArea =
  1042. CodeToText[this.selectedOptions[2]]
  1043. this.deptBudgetList.tranProcessInfoList[0].sendPrivate =
  1044. CodeToText[this.selectedOptions[0]]
  1045. this.deptBudgetList.tranProcessInfoList[0].sendCity =
  1046. CodeToText[this.selectedOptions[1]]
  1047. this.deptBudgetList.tranProcessInfoList[0].sendArea =
  1048. CodeToText[this.selectedOptions[2]]
  1049. // if (this.endflag) {
  1050. // this.deptBudgetList.tranProcessInfoList[
  1051. // this.deptBudgetList.tranProcessInfoList.length - 1
  1052. // ].receivePrivate = CodeToText[this.selectedOptions1[0]]
  1053. // this.deptBudgetList.tranProcessInfoList[
  1054. // this.deptBudgetList.tranProcessInfoList.length - 1
  1055. // ].receiveCity = CodeToText[this.selectedOptions1[1]]
  1056. // this.deptBudgetList.tranProcessInfoList[
  1057. // this.deptBudgetList.tranProcessInfoList.length - 1
  1058. // ].receiveArea = CodeToText[this.selectedOptions1[2]]
  1059. // }
  1060. if (
  1061. this.deptBudgetList.taskType != '销售出库' ||
  1062. this.deptBudgetList.taskType != '贸易服务出库' ||
  1063. this.deptBudgetList.taskType != '暂存出库'
  1064. ){
  1065. this.deptBudgetList.endPrivate = CodeToText[this.selectedOptions1[0]]
  1066. this.deptBudgetList.endCity = CodeToText[this.selectedOptions1[1]]
  1067. this.deptBudgetList.endArea = CodeToText[this.selectedOptions1[2]]
  1068. }
  1069. for (
  1070. var i = 0;
  1071. i < this.deptBudgetList.tranProcessInfoList.length;
  1072. i++
  1073. ) {
  1074. this.deptBudgetList.tranProcessInfoList[i].sort = i
  1075. }
  1076. addtrantask(this.deptBudgetList)
  1077. .toPromise()
  1078. .then((response) => {
  1079. this.$message.success('添加成功')
  1080. this.deptBudgetList = {
  1081. taskNo: '',
  1082. totalStorage: 0,
  1083. goodsName: '玉米',
  1084. goodsNameKey: 1,
  1085. warehouseType: '1',
  1086. tranProcessInfoList: [
  1087. {
  1088. processNo: '',
  1089. tranType: '汽运',
  1090. deliveryDateStart: '',
  1091. deliveryDateEnd: '',
  1092. weight: '',
  1093. selectedOptions: [],
  1094. selectedOptions1: [],
  1095. sendPrivate: '',
  1096. sendCity: '',
  1097. sendArea: '',
  1098. receivePrivate: '',
  1099. receiveCity: '',
  1100. receiveArea: '',
  1101. sendDetailedAddress: '',
  1102. receiveDetailedAddress: '',
  1103. sender: '',
  1104. receiver: '',
  1105. senderPhone: '',
  1106. receiverPhone: '',
  1107. contractNo: '',
  1108. receiveWarehouse: '',
  1109. },
  1110. ],
  1111. }
  1112. this.$router.push({ path: 'tranManagementTransport' })
  1113. })
  1114. } else {
  1115. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1116. return false
  1117. }
  1118. })
  1119. })
  1120. .catch(() => {
  1121. return false
  1122. })
  1123. // } else {
  1124. // this.$confirm(`您还未选择粮款结算阶段,是否确定提交??`, {
  1125. // confirmButtonText: '确定',
  1126. // cancelButtonText: '取消',
  1127. // type: 'warning',
  1128. // })
  1129. // .then(() => {
  1130. // this.$refs.deptBudgetList.validate((valid) => {
  1131. // if (valid) {
  1132. // this.deptBudgetList.compId =
  1133. // sessionStorage.getItem('ws-pf_compId')
  1134. // console.log(this.checkList.toString())
  1135. // this.deptBudgetList.tranType = this.checkList.toString()
  1136. // this.deptBudgetList.startPrivate =
  1137. // CodeToText[this.selectedOptions[0]]
  1138. // this.deptBudgetList.startCity =
  1139. // CodeToText[this.selectedOptions[1]]
  1140. // this.deptBudgetList.startArea =
  1141. // CodeToText[this.selectedOptions[2]]
  1142. // this.deptBudgetList.tranProcessInfoList[0].sendPrivate =
  1143. // CodeToText[this.selectedOptions[0]]
  1144. // this.deptBudgetList.tranProcessInfoList[0].sendCity =
  1145. // CodeToText[this.selectedOptions[1]]
  1146. // this.deptBudgetList.tranProcessInfoList[0].sendArea =
  1147. // CodeToText[this.selectedOptions[2]]
  1148. // // if (this.endflag) {
  1149. // // this.deptBudgetList.tranProcessInfoList[
  1150. // // this.deptBudgetList.tranProcessInfoList.length - 1
  1151. // // ].receivePrivate = CodeToText[this.selectedOptions1[0]]
  1152. // // this.deptBudgetList.tranProcessInfoList[
  1153. // // this.deptBudgetList.tranProcessInfoList.length - 1
  1154. // // ].receiveCity = CodeToText[this.selectedOptions1[1]]
  1155. // // this.deptBudgetList.tranProcessInfoList[
  1156. // // this.deptBudgetList.tranProcessInfoList.length - 1
  1157. // // ].receiveArea = CodeToText[this.selectedOptions1[2]]
  1158. // // }
  1159. // if (
  1160. // this.deptBudgetList.taskType != '销售出库' ||
  1161. // this.deptBudgetList.taskType != '贸易服务出库' ||
  1162. // this.deptBudgetList.taskType != '暂存出库'
  1163. // ){
  1164. // this.deptBudgetList.endPrivate = CodeToText[this.selectedOptions1[0]]
  1165. // this.deptBudgetList.endCity = CodeToText[this.selectedOptions1[1]]
  1166. // this.deptBudgetList.endArea = CodeToText[this.selectedOptions1[2]]
  1167. // }
  1168. // for (
  1169. // var i = 0;
  1170. // i < this.deptBudgetList.tranProcessInfoList.length;
  1171. // i++
  1172. // ) {
  1173. // this.deptBudgetList.tranProcessInfoList[i].sort = i
  1174. // }
  1175. // addtrantask(this.deptBudgetList)
  1176. // .toPromise()
  1177. // .then((response) => {
  1178. // this.$message.success('添加成功')
  1179. // this.deptBudgetList = {
  1180. // taskNo: '',
  1181. // totalStorage: 0,
  1182. // goodsName: '玉米',
  1183. // goodsNameKey: 1,
  1184. // warehouseType: '1',
  1185. // tranProcessInfoList: [
  1186. // {
  1187. // processNo: '',
  1188. // tranType: '汽运',
  1189. // deliveryDateStart: '',
  1190. // deliveryDateEnd: '',
  1191. // weight: '',
  1192. // selectedOptions: [],
  1193. // selectedOptions1: [],
  1194. // sendPrivate: '',
  1195. // sendCity: '',
  1196. // sendArea: '',
  1197. // receivePrivate: '',
  1198. // receiveCity: '',
  1199. // receiveArea: '',
  1200. // sendDetailedAddress: '',
  1201. // receiveDetailedAddress: '',
  1202. // sender: '',
  1203. // receiver: '',
  1204. // senderPhone: '',
  1205. // receiverPhone: '',
  1206. // contractNo: '',
  1207. // receiveWarehouse: '',
  1208. // },
  1209. // ],
  1210. // }
  1211. // this.$router.push({ path: 'tranManagementTransport' })
  1212. // })
  1213. // } else {
  1214. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1215. // return false
  1216. // }
  1217. // })
  1218. // })
  1219. // .catch(() => {
  1220. // return false
  1221. // })
  1222. // }
  1223. },
  1224. resetForm(deptBudgetList) {
  1225. this.$refs[deptBudgetList].resetFields()
  1226. },
  1227. },
  1228. }
  1229. </script>
  1230. <style lang="scss" scoped>
  1231. .position {
  1232. position: relative;
  1233. border: 1px solid #5473e8;
  1234. border-radius: 4px;
  1235. margin-top: 20px;
  1236. background: #f6f7fc;
  1237. border-left: 5px solid #5473e8;
  1238. }
  1239. /deep/.position .ws-info-table .el-form-item {
  1240. width: 25%;
  1241. height: 50px;
  1242. }
  1243. /deep/.position .el-select,
  1244. /deep/.el-select {
  1245. width: 100%;
  1246. }
  1247. /deep/.position .ws-info-table .el-form-item .el-form-item__label,
  1248. /deep/.position .ws-info-table .el-form-item .el-form-item__content {
  1249. background: #f6f7fc;
  1250. font-size: 14px;
  1251. color: #8890b1;
  1252. }
  1253. .typeselect {
  1254. width: 42%;
  1255. margin-left: 32px;
  1256. }
  1257. .del,
  1258. .add {
  1259. cursor: pointer;
  1260. margin-left: 10px;
  1261. }
  1262. .el-checkbox-group {
  1263. font-size: 0;
  1264. float: right;
  1265. margin-left: 25px;
  1266. }
  1267. .check-box {
  1268. float: left;
  1269. font-size: 14px;
  1270. color: #8890b1;
  1271. }
  1272. .el-checkbox__label {
  1273. color: #8890b1;
  1274. }
  1275. .el-form {
  1276. padding: 0 10%;
  1277. }
  1278. .ws-info-table {
  1279. border: none;
  1280. }
  1281. /deep/.ws-info-table .el-form-item {
  1282. border-right: 1px solid #cdd2dc;
  1283. border-bottom: 1px solid #cdd2dc;
  1284. }
  1285. .readonly {
  1286. position: relative;
  1287. }
  1288. .title {
  1289. position: relative;
  1290. }
  1291. .title::before {
  1292. content: '';
  1293. display: inline-block;
  1294. width: 5px;
  1295. height: 30px;
  1296. background: #5473e8;
  1297. position: absolute;
  1298. left: 0;
  1299. }
  1300. //去边框
  1301. /deep/.el-form-item {
  1302. border-right: 0px;
  1303. border-bottom: 0px;
  1304. }
  1305. .el-form {
  1306. margin-top: 50px;
  1307. }
  1308. .endflag {
  1309. vertical-align: top;
  1310. }
  1311. .el-col {
  1312. background: #f6f7fc;
  1313. }
  1314. .bg-left {
  1315. padding-left: 30px;
  1316. }
  1317. .bg-right {
  1318. padding-right: 10px;
  1319. text-align: right;
  1320. }
  1321. .bg-bottom {
  1322. margin: 15px 0px;
  1323. }
  1324. .el-radio,
  1325. .el-radio__input {
  1326. margin-top: 11px;
  1327. margin-left: 11px;
  1328. width: 93px;
  1329. }
  1330. .driver {
  1331. margin-top: 10px;
  1332. font-weight: bold;
  1333. margin-left: 20px;
  1334. color: #5473e8;
  1335. font-size: 16px;
  1336. }
  1337. /deep/.nei {
  1338. .ws-info-table {
  1339. border: none;
  1340. }
  1341. .el-form-item {
  1342. width: 33.3333%;
  1343. border: none;
  1344. .el-form-item__label {
  1345. background: transparent;
  1346. border: none;
  1347. }
  1348. .el-form-item__content {
  1349. border: none;
  1350. }
  1351. }
  1352. }
  1353. /deep/.el-table--border:after,
  1354. /deep/.el-table--group:after,
  1355. /deep/.el-table:before {
  1356. background: transparent;
  1357. }
  1358. //输入框标题
  1359. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1360. background: #ffffff;
  1361. width: min-content;
  1362. font-size: 14px;
  1363. color: #8890b1;
  1364. }
  1365. //表单子项
  1366. /deep/.ws-info-table .el-form-item {
  1367. width: 20%;
  1368. border: none;
  1369. height: 50px;
  1370. }
  1371. //输入框
  1372. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1373. border: none;
  1374. font-size: 14px;
  1375. color: #8890b1;
  1376. }
  1377. /deep/ .el-input--small .el-input__inner {
  1378. font-size: 14px;
  1379. color: #8890b1;
  1380. }
  1381. .el-form-item.start-address.el-form-item--small {
  1382. width: 31.9%;
  1383. }
  1384. .el-cascader {
  1385. width: 100%;
  1386. }
  1387. .el-form {
  1388. height: 73vh;
  1389. overflow: scroll;
  1390. }
  1391. </style>