tranManagementTransportAdd.vue 46 KB

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