tranManagementTransportAdd.vue 46 KB

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