tranManagementTransportAdd.vue 45 KB

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