tranManagementTransportAdd.vue 44 KB

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