tranManagementTransportAdd.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403
  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. // debugger
  1025. // if (this.deptBudgetList.endFlag=='1') {
  1026. this.$confirm(`运输任务提交成功后将派发到物流部门,是否确定提交?`, {
  1027. confirmButtonText: '确定',
  1028. cancelButtonText: '取消',
  1029. type: 'warning',
  1030. })
  1031. .then(() => {
  1032. this.$refs.deptBudgetList.validate((valid) => {
  1033. if (valid) {
  1034. this.deptBudgetList.compId =
  1035. sessionStorage.getItem('ws-pf_compId')
  1036. console.log()
  1037. this.deptBudgetList.tranType = this.checkList.toString()
  1038. this.deptBudgetList.startPrivate =
  1039. CodeToText[this.selectedOptions[0]]
  1040. this.deptBudgetList.startCity =
  1041. CodeToText[this.selectedOptions[1]]
  1042. this.deptBudgetList.startArea =
  1043. CodeToText[this.selectedOptions[2]]
  1044. this.deptBudgetList.tranProcessInfoList[0].sendPrivate =
  1045. CodeToText[this.selectedOptions[0]]
  1046. this.deptBudgetList.tranProcessInfoList[0].sendCity =
  1047. CodeToText[this.selectedOptions[1]]
  1048. this.deptBudgetList.tranProcessInfoList[0].sendArea =
  1049. CodeToText[this.selectedOptions[2]]
  1050. // if (this.endflag) {
  1051. // this.deptBudgetList.tranProcessInfoList[
  1052. // this.deptBudgetList.tranProcessInfoList.length - 1
  1053. // ].receivePrivate = CodeToText[this.selectedOptions1[0]]
  1054. // this.deptBudgetList.tranProcessInfoList[
  1055. // this.deptBudgetList.tranProcessInfoList.length - 1
  1056. // ].receiveCity = CodeToText[this.selectedOptions1[1]]
  1057. // this.deptBudgetList.tranProcessInfoList[
  1058. // this.deptBudgetList.tranProcessInfoList.length - 1
  1059. // ].receiveArea = CodeToText[this.selectedOptions1[2]]
  1060. // }
  1061. if (
  1062. this.deptBudgetList.taskType != '销售出库' ||
  1063. this.deptBudgetList.taskType != '贸易服务出库' ||
  1064. this.deptBudgetList.taskType != '暂存出库'
  1065. ){
  1066. this.deptBudgetList.endPrivate = CodeToText[this.selectedOptions1[0]]
  1067. this.deptBudgetList.endCity = CodeToText[this.selectedOptions1[1]]
  1068. this.deptBudgetList.endArea = CodeToText[this.selectedOptions1[2]]
  1069. }
  1070. for (
  1071. var i = 0;
  1072. i < this.deptBudgetList.tranProcessInfoList.length;
  1073. i++
  1074. ) {
  1075. this.deptBudgetList.tranProcessInfoList[i].sort = i
  1076. }
  1077. addtrantask(this.deptBudgetList)
  1078. .toPromise()
  1079. .then((response) => {
  1080. this.$message.success('添加成功')
  1081. this.deptBudgetList = {
  1082. taskNo: '',
  1083. totalStorage: 0,
  1084. goodsName: '玉米',
  1085. goodsNameKey: 1,
  1086. warehouseType: '1',
  1087. tranProcessInfoList: [
  1088. {
  1089. processNo: '',
  1090. tranType: '汽运',
  1091. deliveryDateStart: '',
  1092. deliveryDateEnd: '',
  1093. weight: '',
  1094. selectedOptions: [],
  1095. selectedOptions1: [],
  1096. sendPrivate: '',
  1097. sendCity: '',
  1098. sendArea: '',
  1099. receivePrivate: '',
  1100. receiveCity: '',
  1101. receiveArea: '',
  1102. sendDetailedAddress: '',
  1103. receiveDetailedAddress: '',
  1104. sender: '',
  1105. receiver: '',
  1106. senderPhone: '',
  1107. receiverPhone: '',
  1108. contractNo: '',
  1109. receiveWarehouse: '',
  1110. },
  1111. ],
  1112. }
  1113. this.$router.push({ path: 'tranManagementTransport' })
  1114. })
  1115. } else {
  1116. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1117. return false
  1118. }
  1119. })
  1120. })
  1121. .catch(() => {
  1122. return false
  1123. })
  1124. // } else {
  1125. // this.$confirm(`您还未选择粮款结算阶段,是否确定提交??`, {
  1126. // confirmButtonText: '确定',
  1127. // cancelButtonText: '取消',
  1128. // type: 'warning',
  1129. // })
  1130. // .then(() => {
  1131. // this.$refs.deptBudgetList.validate((valid) => {
  1132. // if (valid) {
  1133. // this.deptBudgetList.compId =
  1134. // sessionStorage.getItem('ws-pf_compId')
  1135. // console.log(this.checkList.toString())
  1136. // this.deptBudgetList.tranType = this.checkList.toString()
  1137. // this.deptBudgetList.startPrivate =
  1138. // CodeToText[this.selectedOptions[0]]
  1139. // this.deptBudgetList.startCity =
  1140. // CodeToText[this.selectedOptions[1]]
  1141. // this.deptBudgetList.startArea =
  1142. // CodeToText[this.selectedOptions[2]]
  1143. // this.deptBudgetList.tranProcessInfoList[0].sendPrivate =
  1144. // CodeToText[this.selectedOptions[0]]
  1145. // this.deptBudgetList.tranProcessInfoList[0].sendCity =
  1146. // CodeToText[this.selectedOptions[1]]
  1147. // this.deptBudgetList.tranProcessInfoList[0].sendArea =
  1148. // CodeToText[this.selectedOptions[2]]
  1149. // // if (this.endflag) {
  1150. // // this.deptBudgetList.tranProcessInfoList[
  1151. // // this.deptBudgetList.tranProcessInfoList.length - 1
  1152. // // ].receivePrivate = CodeToText[this.selectedOptions1[0]]
  1153. // // this.deptBudgetList.tranProcessInfoList[
  1154. // // this.deptBudgetList.tranProcessInfoList.length - 1
  1155. // // ].receiveCity = CodeToText[this.selectedOptions1[1]]
  1156. // // this.deptBudgetList.tranProcessInfoList[
  1157. // // this.deptBudgetList.tranProcessInfoList.length - 1
  1158. // // ].receiveArea = CodeToText[this.selectedOptions1[2]]
  1159. // // }
  1160. // if (
  1161. // this.deptBudgetList.taskType != '销售出库' ||
  1162. // this.deptBudgetList.taskType != '贸易服务出库' ||
  1163. // this.deptBudgetList.taskType != '暂存出库'
  1164. // ){
  1165. // this.deptBudgetList.endPrivate = CodeToText[this.selectedOptions1[0]]
  1166. // this.deptBudgetList.endCity = CodeToText[this.selectedOptions1[1]]
  1167. // this.deptBudgetList.endArea = CodeToText[this.selectedOptions1[2]]
  1168. // }
  1169. // for (
  1170. // var i = 0;
  1171. // i < this.deptBudgetList.tranProcessInfoList.length;
  1172. // i++
  1173. // ) {
  1174. // this.deptBudgetList.tranProcessInfoList[i].sort = i
  1175. // }
  1176. // addtrantask(this.deptBudgetList)
  1177. // .toPromise()
  1178. // .then((response) => {
  1179. // this.$message.success('添加成功')
  1180. // this.deptBudgetList = {
  1181. // taskNo: '',
  1182. // totalStorage: 0,
  1183. // goodsName: '玉米',
  1184. // goodsNameKey: 1,
  1185. // warehouseType: '1',
  1186. // tranProcessInfoList: [
  1187. // {
  1188. // processNo: '',
  1189. // tranType: '汽运',
  1190. // deliveryDateStart: '',
  1191. // deliveryDateEnd: '',
  1192. // weight: '',
  1193. // selectedOptions: [],
  1194. // selectedOptions1: [],
  1195. // sendPrivate: '',
  1196. // sendCity: '',
  1197. // sendArea: '',
  1198. // receivePrivate: '',
  1199. // receiveCity: '',
  1200. // receiveArea: '',
  1201. // sendDetailedAddress: '',
  1202. // receiveDetailedAddress: '',
  1203. // sender: '',
  1204. // receiver: '',
  1205. // senderPhone: '',
  1206. // receiverPhone: '',
  1207. // contractNo: '',
  1208. // receiveWarehouse: '',
  1209. // },
  1210. // ],
  1211. // }
  1212. // this.$router.push({ path: 'tranManagementTransport' })
  1213. // })
  1214. // } else {
  1215. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1216. // return false
  1217. // }
  1218. // })
  1219. // })
  1220. // .catch(() => {
  1221. // return false
  1222. // })
  1223. // }
  1224. },
  1225. resetForm(deptBudgetList) {
  1226. this.$refs[deptBudgetList].resetFields()
  1227. },
  1228. },
  1229. }
  1230. </script>
  1231. <style lang="scss" scoped>
  1232. .position {
  1233. position: relative;
  1234. border: 1px solid #5473e8;
  1235. border-radius: 4px;
  1236. margin-top: 20px;
  1237. background: #f6f7fc;
  1238. border-left: 5px solid #5473e8;
  1239. }
  1240. /deep/.position .ws-info-table .el-form-item {
  1241. width: 25%;
  1242. height: 50px;
  1243. }
  1244. /deep/.position .el-select,
  1245. /deep/.el-select {
  1246. width: 100%;
  1247. }
  1248. /deep/.position .ws-info-table .el-form-item .el-form-item__label,
  1249. /deep/.position .ws-info-table .el-form-item .el-form-item__content {
  1250. background: #f6f7fc;
  1251. font-size: 14px;
  1252. color: #8890b1;
  1253. }
  1254. .typeselect {
  1255. width: 42%;
  1256. margin-left: 32px;
  1257. }
  1258. .del,
  1259. .add {
  1260. cursor: pointer;
  1261. margin-left: 10px;
  1262. }
  1263. .el-checkbox-group {
  1264. font-size: 0;
  1265. float: right;
  1266. margin-left: 25px;
  1267. }
  1268. .check-box {
  1269. float: left;
  1270. font-size: 14px;
  1271. color: #8890b1;
  1272. }
  1273. .el-checkbox__label {
  1274. color: #8890b1;
  1275. }
  1276. .el-form {
  1277. padding: 0 10%;
  1278. }
  1279. .ws-info-table {
  1280. border: none;
  1281. }
  1282. /deep/.ws-info-table .el-form-item {
  1283. border-right: 1px solid #cdd2dc;
  1284. border-bottom: 1px solid #cdd2dc;
  1285. }
  1286. .readonly {
  1287. position: relative;
  1288. }
  1289. .title {
  1290. position: relative;
  1291. }
  1292. .title::before {
  1293. content: '';
  1294. display: inline-block;
  1295. width: 5px;
  1296. height: 30px;
  1297. background: #5473e8;
  1298. position: absolute;
  1299. left: 0;
  1300. }
  1301. //去边框
  1302. /deep/.el-form-item {
  1303. border-right: 0px;
  1304. border-bottom: 0px;
  1305. }
  1306. .el-form {
  1307. margin-top: 50px;
  1308. }
  1309. .endflag {
  1310. vertical-align: top;
  1311. }
  1312. .el-col {
  1313. background: #f6f7fc;
  1314. }
  1315. .bg-left {
  1316. padding-left: 30px;
  1317. }
  1318. .bg-right {
  1319. padding-right: 10px;
  1320. text-align: right;
  1321. }
  1322. .bg-bottom {
  1323. margin: 15px 0px;
  1324. }
  1325. .el-radio,
  1326. .el-radio__input {
  1327. margin-top: 11px;
  1328. margin-left: 11px;
  1329. width: 93px;
  1330. }
  1331. .driver {
  1332. margin-top: 10px;
  1333. font-weight: bold;
  1334. margin-left: 20px;
  1335. color: #5473e8;
  1336. font-size: 16px;
  1337. }
  1338. /deep/.nei {
  1339. .ws-info-table {
  1340. border: none;
  1341. }
  1342. .el-form-item {
  1343. width: 33.3333%;
  1344. border: none;
  1345. .el-form-item__label {
  1346. background: transparent;
  1347. border: none;
  1348. }
  1349. .el-form-item__content {
  1350. border: none;
  1351. }
  1352. }
  1353. }
  1354. /deep/.el-table--border:after,
  1355. /deep/.el-table--group:after,
  1356. /deep/.el-table:before {
  1357. background: transparent;
  1358. }
  1359. //输入框标题
  1360. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1361. background: #ffffff;
  1362. width: min-content;
  1363. font-size: 14px;
  1364. color: #8890b1;
  1365. }
  1366. //表单子项
  1367. /deep/.ws-info-table .el-form-item {
  1368. width: 20%;
  1369. border: none;
  1370. height: 50px;
  1371. }
  1372. //输入框
  1373. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1374. border: none;
  1375. font-size: 14px;
  1376. color: #8890b1;
  1377. }
  1378. /deep/ .el-input--small .el-input__inner {
  1379. font-size: 14px;
  1380. color: #8890b1;
  1381. }
  1382. .el-form-item.start-address.el-form-item--small {
  1383. width: 31.9%;
  1384. }
  1385. .el-cascader {
  1386. width: 100%;
  1387. }
  1388. .el-form {
  1389. height: 73vh;
  1390. overflow: scroll;
  1391. }
  1392. </style>