tranManagementTransportAdd.vue 45 KB

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