tranManagementVehicleDispatching.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339
  1. // 汽车调度派车
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="20">
  6. <h2 class="bg-left title">汽车调度</h2>
  7. </el-col>
  8. <el-col :span="4" class="bg-right">
  9. <el-button class="bg-bottom" type="primary" size="small" @click="revert()"><img width="6" height="10"
  10. style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
  11. </el-button>
  12. </el-col>
  13. </el-row>
  14. <div class="center">
  15. <el-form ref="deptBudgetList" :model="deptBudgetList" label-width="110px">
  16. <div class="basicInformation">
  17. <div class="small-title" style="font-size: 16px">任务详情</div>
  18. <el-row>
  19. <el-col :span="8">
  20. <el-form-item label="任务编号" span="1" prop="processNo">
  21. <el-input type="text" class="row-item" v-model="deptBudgetList.processNo" disabled></el-input>
  22. </el-form-item>
  23. </el-col>
  24. <el-col :span="8">
  25. <el-form-item label="货名" span="1">
  26. <el-input type="text" class="row-item" v-model="deptBudgetList.goodsName" disabled></el-input>
  27. </el-form-item>
  28. </el-col>
  29. <el-col :span="8">
  30. <el-form-item label="重量(吨)" span="1" prop="tare" class="readonly">
  31. <el-input type="text" class="row-item" v-model="deptBudgetList.weight" disabled></el-input>
  32. </el-form-item>
  33. </el-col>
  34. <el-col :span="8">
  35. <el-form-item label="发货地址" span="1" prop="netWeight">
  36. <el-input type="text" class="row-item" v-model="fhaddress" disabled></el-input>
  37. <!-- {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
  38. }}{{ deptBudgetList.sendArea
  39. }}{{ deptBudgetList.sendDetailedAddress }} -->
  40. </el-form-item>
  41. </el-col>
  42. <el-col :span="8">
  43. <el-form-item label="发货人" span="1" prop="agent">
  44. <el-input type="text" class="row-item" v-model="deptBudgetList.sender" disabled></el-input>
  45. </el-form-item>
  46. </el-col>
  47. <el-col :span="8">
  48. <el-form-item label="发货人电话" span="1" prop="agent">
  49. <el-input type="text" class="row-item" v-model="deptBudgetList.senderPhone" disabled></el-input>
  50. </el-form-item>
  51. </el-col>
  52. <el-col :span="8">
  53. <el-form-item label="收货地址" span="1" prop="netWeight">
  54. <el-input type="text" class="row-item" v-model="shaddress" disabled></el-input>
  55. </el-form-item>
  56. </el-col>
  57. <el-col :span="8">
  58. <el-form-item label="收货人电话" span="1" prop="receiverPhone">
  59. <el-input type="text" class="row-item" v-model="deptBudgetList.receiverPhone" disabled></el-input>
  60. </el-form-item>
  61. </el-col>
  62. <el-col :span="8">
  63. <el-form-item label="发货日期" span="1" prop="inOutDate" class="deliverydate">
  64. <el-input type="text" class="row-item" v-model="deptBudgetList.deliveryDateStart" disabled></el-input>
  65. </el-form-item>
  66. </el-col>
  67. <el-col :span="8">
  68. <el-form-item label="最晚到货日期" span="1" prop="inOutDate" class="deliverydate">
  69. <el-input type="text" class="row-item" v-model="deptBudgetList.deliveryDateEnd" disabled></el-input>
  70. </el-form-item>
  71. </el-col>
  72. <el-col :span="8">
  73. <el-form-item v-if="deptBudgetList.taskType=='移库'" label="移库编号" span="1" prop="contractNo">
  74. <el-input type="text" class="row-item" v-model="deptBudgetList.contractNo" disabled></el-input>
  75. </el-form-item>
  76. <el-form-item v-else label="合同编号" span="1" prop="contractNo">
  77. <el-input type="text" class="row-item" v-model="deptBudgetList.contractNo" disabled></el-input>
  78. </el-form-item>
  79. </el-col>
  80. <el-col :span="8">
  81. <el-form-item label="关联合同" v-if="deptBudgetList.relatedContract" span="1" prop="inOutDate"
  82. class="relatedContract">
  83. <el-input type="text" class="row-item" v-model="deptBudgetList.relatedContract" disabled></el-input>
  84. </el-form-item>
  85. </el-col>
  86. </el-row>
  87. <div class="small-title" style="font-size: 16px">派车
  88. <el-radio-group @change='pricetypechange' v-model="pricetype">
  89. <el-radio label="1">元/吨计费</el-radio>
  90. <el-radio label="2">元/车计费</el-radio>
  91. </el-radio-group>
  92. </div>
  93. <div class="myTest">
  94. <el-form-item v-if='pricetype==1' label="当前运输单价(元/吨):" prop="tranPrice" label-width="150px" class="input-item-margin">
  95. <el-input v-model="deptBudgetList.tranPrice" maxlength="70" disabled />
  96. </el-form-item>
  97. <el-form-item v-else label="当前运输单价(元/车):" prop="tranPrice" label-width="150px" class="input-item-margin">
  98. <el-input v-model="deptBudgetList.tranPriceCar" maxlength="70" disabled />
  99. </el-form-item>
  100. <el-form-item v-if='pricetype==1' label="审核中的运输总价(元/吨):" prop="tranPriceIng" label-width="180px" class="input-item-margin">
  101. <el-input v-if="deptBudgetList.priceStatus=='审核中'" :disabled="readonly"
  102. v-model="deptBudgetList.tranPriceIng" maxlength="70" />
  103. <el-input v-else v-model="deptBudgetList.tranPriceIng" maxlength="70" />
  104. </el-form-item>
  105. <el-form-item v-else label="审核中的运输总价(元/车):" prop="tranPriceIng" label-width="180px" class="input-item-margin">
  106. <el-input v-if="deptBudgetList.priceStatusCar=='审核中'" :disabled="readonly"
  107. v-model="deptBudgetList.tranPriceIngCar" maxlength="70" />
  108. <el-input v-else v-model="deptBudgetList.tranPriceIngCar" maxlength="70" />
  109. </el-form-item>
  110. <div class="input-item-margin">
  111. <div v-if="deptBudgetList.priceStatus=='审核中'&&pricetype==1">
  112. <el-button type="primary" v-hasPermission="`tranManager.vehicleDispatching.reprice`" size="small"
  113. @click="examine(1)">审核中
  114. </el-button>
  115. </div>
  116. <el-button v-if="deptBudgetList.priceStatus!='审核中'&&pricetype==1" type="primary" @click="priceSubmit(1)">提交</el-button>
  117. <el-button v-else-if="deptBudgetList.priceStatus=='审核中'&&pricetype==1" type="primary">{{deptBudgetList.approveStatus}}</el-button>
  118. <div v-if="deptBudgetList.priceStatusCar=='审核中'&&pricetype==2">
  119. <el-button type="primary" v-hasPermission="`tranManager.vehicleDispatching.reprice`" size="small"
  120. @click="examine(2)">审核中
  121. </el-button>
  122. </div>
  123. <el-button v-if="deptBudgetList.priceStatusCar!='审核中'&&pricetype==2" type="primary" @click="priceSubmit(2)">提交</el-button>
  124. <el-button v-else-if="deptBudgetList.priceStatus=='审核中'&&pricetype==2" type="primary">{{deptBudgetList.approveStatus}}</el-button>
  125. </div>
  126. </div>
  127. <div class="content3" v-for="(item, index) in driverlist" :key="index">
  128. <div class="content3-item1">
  129. <div class="">
  130. <span style="margin-left: 30px;font-weight: 600;">司机-{{ index + 1 }}</span>
  131. <span class="noservice" v-show="item.status == '未装车'">{{
  132. item.status
  133. }}</span>
  134. <span class="service" v-show="item.status == '已装车'">{{
  135. item.status
  136. }}</span>
  137. <span class="serviced" v-show="item.status == '已送达'">{{
  138. item.status
  139. }}</span>
  140. </div>
  141. <el-col :span="8">
  142. <el-form-item label="姓名:" span="1" prop="driverName" label-width="125px">
  143. <el-select ref="driverSelect" v-show="!item.temporaryDriverFlag" @visible-change="clearBlur"
  144. v-model="item.driver" filterable clearable placeholder="请选择司机" class="row-item" @change="
  145. (val) => {
  146. carchange(val, item.tranCarIndex)
  147. }
  148. ">
  149. <el-option v-for="(items, index) in carList" :key="index" :label="items.driverName"
  150. :value="items.driverName" />
  151. </el-select>
  152. <span v-show="
  153. item.temporaryDriverFlag == 0 ||
  154. item.temporaryDriverFlag == 1
  155. ">{{ item.driver }}</span>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="8">
  159. <el-form-item label="司机电话:" span="1" prop="impurity" label-width="125px">
  160. <el-select v-show="!item.temporaryDriverFlag" v-model="item.driverPhone" placeholder="请选择司机电话"
  161. filterable clearable class="row-item" @change="
  162. (val) => {
  163. phonechange(val, item.tranCarIndex)
  164. }
  165. ">
  166. <el-option v-for="(items, index) in carList" :key="index" :label="items.driverPhone"
  167. :value="items.driverPhone" />
  168. </el-select>
  169. <span v-show="
  170. item.temporaryDriverFlag == 0 ||
  171. item.temporaryDriverFlag == 1
  172. ">{{ item.driverPhone }}</span>
  173. </el-form-item>
  174. </el-col>
  175. <el-col :span="8">
  176. <el-form-item label="车牌号:" span="1" prop="carNo" label-width="125px">
  177. <el-select :disabled="item.id" v-model="item.carNo" placeholder="请选择车牌号"
  178. filterable clearable @clear="clear" class="row-item" @change="
  179. (val) => {
  180. carNochange(val, item.tranCarIndex)
  181. }
  182. ">
  183. <el-option v-for="(items, index) in carNoList" :key="index" :label="items.carNumber"
  184. :value="items.carNumber" />
  185. </el-select>
  186. <!-- <el-input :disabled="readonly" v-model="item.carNo" placeholder="" maxlength="120" size="small" /> -->
  187. </el-form-item>
  188. </el-col>
  189. <el-col :span="8">
  190. <el-form-item label="派车编号:" span="1" prop="carModel" label-width="125px">
  191. <el-input :disabled="readonly" v-model="item.tranCarNo" maxlength="120" size="small" />
  192. </el-form-item>
  193. </el-col>
  194. <el-col :span="8">
  195. <el-form-item label="箱号:" span="1" prop="carModel" label-width="125px">
  196. <el-input v-if="item.status == '已装车'||item.status == '已送达'" :disabled="readonly" v-model="item.caseNo"
  197. maxlength="120" size="small" />
  198. <el-input v-else v-model="item.caseNo" placeholder="请输入箱号" maxlength="120" size="small" />
  199. </el-form-item>
  200. </el-col>
  201. <el-col :span="8">
  202. <el-form-item label="封号:" span="1" prop="carModel" label-width="125px">
  203. <el-input v-if="item.status == '已装车'||item.status == '已送达'" v-model="item.titleNo" placeholder=""
  204. :disabled="readonly" maxlength="120" size="small" />
  205. <el-input v-model="item.titleNo" placeholder="请输入封号" v-else maxlength="120" size="small" />
  206. </el-form-item>
  207. </el-col>
  208. <el-col :span="8">
  209. <el-form-item label="车型:" span="1" prop="carModel" label-width="125px">
  210. <el-input :disabled="readonly" v-model="item.carModel" placeholder="" maxlength="120" size="small" />
  211. </el-form-item>
  212. </el-col>
  213. <el-col :span="8">
  214. <el-form-item label="车长:" span="1" prop="carLength" label-width="125px">
  215. <el-input :disabled="readonly" v-model="item.carLength" placeholder="" maxlength="120" size="small" />
  216. </el-form-item>
  217. </el-col>
  218. <el-col :span="8">
  219. <el-form-item label="载重(吨):" span="1" prop="loadWeight" label-width="125px">
  220. <el-input :disabled="readonly" v-model="item.loadWeight" placeholder="" maxlength="120"
  221. size="small" />
  222. </el-form-item>
  223. </el-col>
  224. <el-col :span="8">
  225. <el-form-item v-if='item.billingMethod==1' label="运输单价(元/吨):" span="1" prop="carModel" label-width="125px">
  226. <el-input :disabled="readonly" v-model="item.tranPrice" size="small" />
  227. </el-form-item>
  228. <el-form-item v-else label="运输单价(元/车):" span="1" prop="carModel" label-width="125px">
  229. <el-input :disabled="readonly" v-model="item.tranPrice" size="small" />
  230. </el-form-item>
  231. </el-col>
  232. <span v-if="item.status == '未装车'||item.temporaryDriverFlag!=0" width="22" height="22" class="del"
  233. @click="del(index, item,0)" src="../../../public/img/del.png" alt="">×</span>
  234. </div>
  235. </div>
  236. <div class="contentitem" v-for="(item, index) in teamlist" :key="'team'+index">
  237. <div class="content3-item1">
  238. <el-col :span="8">
  239. <!-- <span style="margin-left: 30px;font-weight: 600;">车队-{{ index + 1 }}</span> -->
  240. <el-form-item :label="'车队-'+(index + 1 )" span="1" prop="carModel" label-width="125px">
  241. <el-input :disabled="item.id?true:false" v-model="item.fleetName" size="small" />
  242. </el-form-item>
  243. </el-col>
  244. <el-col :span="8">
  245. <el-form-item v-if='item.billingMethod==1' label="运输单价(元/吨):" span="1" prop="carModel" label-width="125px">
  246. <el-input :disabled="readonly" v-model="item.tranPrice" size="small" />
  247. </el-form-item>
  248. <el-form-item v-else label="运输单价(元/车):" span="1" prop="carModel" label-width="125px">
  249. <el-input :disabled="readonly" v-model="item.tranPrice" size="small" />
  250. </el-form-item>
  251. </el-col>
  252. <span v-if="!item.id" width="22" height="22" class="del"
  253. @click="del(index, item,1)" src="../../../public/img/del.png" alt="">×</span>
  254. </div>
  255. </div>
  256. <div style="text-align: right; color: #8890b1; font-size: 16px">
  257. 共{{ total }}/{{ deptBudgetList.weight }}
  258. </div>
  259. <el-button class="add" type="primary" size="small" @click="add()">
  260. <!-- <img width="22" height="22" src="../../../public/img/add.png" alt="" /> -->
  261. <div class="spans">添加司机</div>
  262. </el-button>
  263. <el-button class="add" type="primary" size="small" @click="addteam()">
  264. <div class="spans">添加车队</div>
  265. </el-button>
  266. <div style="text-align: right; padding: 10px">
  267. <el-button class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
  268. </div>
  269. </div>
  270. </el-form>
  271. </div>
  272. </div>
  273. </template>
  274. <script>
  275. import Pagination from '@/components/Pagination'
  276. import WsUpload from '@/components/WsUpload'
  277. import {
  278. seeCat,
  279. nameXiala,
  280. arrange,
  281. dispatchCat,
  282. delhaulagestage,
  283. setUpTranPrice,
  284. setUpTranPriceCar,
  285. getcarNumber,
  286. getdriverinfo
  287. } from '@/model/transport/index'
  288. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  289. import {
  290. dayjs,
  291. EventBus
  292. } from 'base-core-lib'
  293. export default {
  294. name: 'viewSpareMoney',
  295. components: {
  296. WsUpload,
  297. Pagination,
  298. },
  299. watch: {
  300. // vesselId(val) {
  301. // this.getList()
  302. // },
  303. isShow(val) {
  304. this.showType = val
  305. },
  306. },
  307. data() {
  308. return {
  309. fhaddress: '',
  310. shaddress: '',
  311. // 是否显示
  312. showType: true,
  313. deptBudgetTotal: 0,
  314. currentPage: 1,
  315. pageSize: 10,
  316. pricetype:'1',
  317. searchType: 1,
  318. startDate: null,
  319. endDate: null,
  320. carList: [],
  321. carNoList:[],
  322. // 提交类型
  323. readonly: true,
  324. tranPriceApprove: {},
  325. carList1:[],
  326. size: 10,
  327. compId: localStorage.getItem('ws-pf_compId'),
  328. date: {
  329. year: dayjs().format('YYYY'),
  330. month: dayjs().format('MM'),
  331. },
  332. deptBudgetList: {
  333. tranCarInfoList: [],
  334. },
  335. pickerBeginDateBefore: {
  336. disabledDate: (time) => {
  337. return time.getTime() > Date.now()
  338. },
  339. },
  340. accessoryTFs: false,
  341. index: 0,
  342. }
  343. },
  344. activated() {
  345. this.getList()
  346. },
  347. computed: {
  348. total: function() {
  349. if (this.deptBudgetList.tranCarInfoList.length > 0) {
  350. var maxStorage = 0
  351. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  352. if(this.deptBudgetList.tranCarInfoList[i].loadWeight){
  353. maxStorage += Number(
  354. this.deptBudgetList.tranCarInfoList[i].loadWeight
  355. )
  356. }
  357. }
  358. return maxStorage
  359. }
  360. },
  361. teamlist: function() {
  362. if (this.deptBudgetList.tranCarInfoList.length > 0) {
  363. var arr = []
  364. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  365. if(this.deptBudgetList.tranCarInfoList[i].fleetFlag==1){
  366. this.deptBudgetList.tranCarInfoList[i].tranCarIndex=i
  367. arr.push(this.deptBudgetList.tranCarInfoList[i])
  368. }
  369. }
  370. return arr
  371. }
  372. },
  373. driverlist: function() {
  374. if (this.deptBudgetList.tranCarInfoList.length > 0) {
  375. var arr = []
  376. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  377. if(this.deptBudgetList.tranCarInfoList[i].fleetFlag==0){
  378. this.deptBudgetList.tranCarInfoList[i].tranCarIndex=i
  379. arr.push(this.deptBudgetList.tranCarInfoList[i])
  380. }
  381. }
  382. return arr
  383. }
  384. },
  385. },
  386. methods: {
  387. pricetypechange(e){
  388. console.log(e)
  389. this.deptBudgetList.billingMethod=e
  390. if (this.deptBudgetList.tranCarInfoList.length > 0) {
  391. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  392. if(!this.deptBudgetList.tranCarInfoList[i].id){
  393. this.deptBudgetList.tranCarInfoList[i].billingMethod=e
  394. if(e==1){
  395. this.deptBudgetList.tranCarInfoList[i].tranPrice=this.deptBudgetList.tranPrice
  396. }else{
  397. this.deptBudgetList.tranCarInfoList[i].tranPrice=this.deptBudgetList.tranPriceCar
  398. }
  399. }
  400. }
  401. }
  402. },
  403. clearBlur(e) {
  404. let k = this.$refs.driverSelect
  405. if (!e) {
  406. for (let i = 0; i < k.length; i++) {
  407. k[i].blur()
  408. }
  409. }
  410. },
  411. //返回按钮
  412. revert() {
  413. this.$router.go(-1)
  414. },
  415. del(index, row,status) {
  416. if (row.status == null) {
  417. if(status==1){
  418. if (this.deptBudgetList.tranCarInfoList.length > 1) {
  419. for (let i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  420. console.log(this.deptBudgetList.tranCarInfoList[i])
  421. if(this.deptBudgetList.tranCarInfoList[i].index){
  422. if(this.deptBudgetList.tranCarInfoList[i].index==row.index){
  423. this.deptBudgetList.tranCarInfoList.splice(i, 1)
  424. }
  425. }
  426. }
  427. }
  428. }else{
  429. if (this.deptBudgetList.tranCarInfoList.length > 1) {
  430. this.deptBudgetList.tranCarInfoList.splice(index, 1)
  431. for (let i = index; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  432. let number = Number(this.deptBudgetList.tranCarInfoList[i].tranCarNo.split('C')[1]) - 1
  433. if (number < 10) {
  434. this.deptBudgetList.tranCarInfoList[i].tranCarNo = 'C00' + number
  435. } else if (number < 100) {
  436. this.deptBudgetList.tranCarInfoList[i].tranCarNo = 'C0' + number
  437. } else {
  438. this.deptBudgetList.tranCarInfoList[i].tranCarNo = 'C' + number
  439. }
  440. }
  441. }
  442. }
  443. } else {
  444. this.$confirm('派车信息删除后不可恢复,是否确定删除?', '提示', {
  445. confirmButtonText: '确定',
  446. cancelButtonText: '取消',
  447. type: 'warning',
  448. }).then(() => {
  449. delhaulagestage({
  450. id: row.id
  451. })
  452. .toPromise()
  453. .then((response) => {
  454. this.$message.success('删除成功')
  455. if (this.deptBudgetList.tranCarInfoList.length > 1) {
  456. this.deptBudgetList.tranCarInfoList.splice(index, 1)
  457. }
  458. this.getList()
  459. })
  460. })
  461. }
  462. },
  463. addteam(){
  464. if(this.pricetype==1){
  465. if (!this.deptBudgetList.tranPrice) {
  466. this.$message({
  467. message: '请设置运输单价(元/吨)!',
  468. type: 'warning',
  469. })
  470. } else {
  471. this.deptBudgetList.tranCarInfoList.push({
  472. fleetName:'',
  473. fleetFlag:1,
  474. index:this.deptBudgetList.tranCarInfoList.length,
  475. billingMethod:this.pricetype,
  476. tranPrice:this.deptBudgetList.tranPrice,
  477. tranType: '1',
  478. })
  479. }
  480. }else{
  481. if (!this.deptBudgetList.tranPriceCar) {
  482. this.$message({
  483. message: '请设置运输单价(元/车)!',
  484. type: 'warning',
  485. })
  486. } else {
  487. this.deptBudgetList.tranCarInfoList.push({
  488. fleetName:'',
  489. fleetFlag:1,
  490. index:this.deptBudgetList.tranCarInfoList.length,
  491. billingMethod:this.pricetype,
  492. tranPrice:this.deptBudgetList.tranPriceCar,
  493. tranType: '1',
  494. })
  495. }
  496. }
  497. },
  498. add() {
  499. if(this.pricetype==1){
  500. if (!this.deptBudgetList.tranPrice) {
  501. this.$message({
  502. message: '请设置运输单价(元/吨)!',
  503. type: 'warning',
  504. })
  505. } else {
  506. var tmp1 = 'C00'
  507. this.deptBudgetList.count++
  508. if (this.deptBudgetList.tranCarInfoList.length < 10) {
  509. this.deptBudgetList.tranCarInfoList.push({
  510. driverName: '',
  511. driverPhone: '',
  512. carLength: 0,
  513. carLengthKey: '',
  514. loadWeight: null,
  515. carModel: '',
  516. carModelKey: '',
  517. carNumber: '',
  518. disabled: false,
  519. tranType: '1',
  520. fleetFlag:0,
  521. tranPriceCar:this.deptBudgetList.tranPriceCar,
  522. billingMethod:this.pricetype,
  523. // tranCarNo: tmp1+(this.deptBudgetList.count),
  524. tranCarNo: 'C00' + (this.deptBudgetList.tranCarInfoList.length + 1),
  525. tranPrice: this.deptBudgetList.tranPrice
  526. })
  527. } else if (this.deptBudgetList.tranCarInfoList.length < 100 && this.deptBudgetList.tranCarInfoList.length >=
  528. 10) {
  529. tmp1 = 'C0'
  530. this.deptBudgetList.count++
  531. this.deptBudgetList.tranCarInfoList.push({
  532. driverName: '',
  533. driverPhone: '',
  534. carLength: 0,
  535. carLengthKey: '',
  536. loadWeight: null,
  537. carModel: '',
  538. carModelKey: '',
  539. carNumber: '',
  540. disabled: false,
  541. fleetFlag:0,
  542. tranType: '1',
  543. tranPriceCar:this.deptBudgetList.tranPriceCar,
  544. billingMethod:this.pricetype,
  545. // tranCarNo: tmp1+(this.deptBudgetList.count),
  546. tranCarNo: 'C0' + (this.deptBudgetList.tranCarInfoList.length + 1),
  547. tranPrice: this.deptBudgetList.tranPrice
  548. })
  549. } else if (this.deptBudgetList.tranCarInfoList.length < 1000 && this.deptBudgetList.tranCarInfoList.length >=
  550. 100) {
  551. tmp1 = 'C'
  552. this.deptBudgetList.count++
  553. this.deptBudgetList.tranCarInfoList.push({
  554. driverName: '',
  555. driverPhone: '',
  556. carLength: 0,
  557. carLengthKey: '',
  558. loadWeight: null,
  559. carModel: '',
  560. carModelKey: '',
  561. carNumber: '',
  562. disabled: false,
  563. fleetFlag:0,
  564. tranType: '1',
  565. billingMethod:this.pricetype,
  566. tranPriceCar:this.deptBudgetList.tranPriceCar,
  567. // tranCarNo: tmp1+(this.deptBudgetList.count),
  568. tranCarNo: 'C' + (this.deptBudgetList.tranCarInfoList.length + 1),
  569. tranPrice: this.deptBudgetList.tranPrice
  570. })
  571. }
  572. }
  573. }else{
  574. if (!this.deptBudgetList.tranPriceCar) {
  575. this.$message({
  576. message: '请设置运输单价(元/车)!',
  577. type: 'warning',
  578. })
  579. } else {
  580. var tmp1 = 'C00'
  581. this.deptBudgetList.count++
  582. if (this.deptBudgetList.tranCarInfoList.length < 10) {
  583. this.deptBudgetList.tranCarInfoList.push({
  584. driverName: '',
  585. driverPhone: '',
  586. carLength: 0,
  587. carLengthKey: '',
  588. loadWeight: null,
  589. carModel: '',
  590. carModelKey: '',
  591. carNumber: '',
  592. disabled: false,
  593. tranType: '1',
  594. fleetFlag:0,
  595. tranPriceCar:this.deptBudgetList.tranPriceCar,
  596. billingMethod:this.pricetype,
  597. // tranCarNo: tmp1+(this.deptBudgetList.count),
  598. tranCarNo: 'C00' + (this.deptBudgetList.tranCarInfoList.length + 1),
  599. tranPrice: this.deptBudgetList.tranPrice
  600. })
  601. } else if (this.deptBudgetList.tranCarInfoList.length < 100 && this.deptBudgetList.tranCarInfoList.length >=
  602. 10) {
  603. tmp1 = 'C0'
  604. this.deptBudgetList.count++
  605. this.deptBudgetList.tranCarInfoList.push({
  606. driverName: '',
  607. driverPhone: '',
  608. carLength: 0,
  609. carLengthKey: '',
  610. loadWeight: null,
  611. carModel: '',
  612. carModelKey: '',
  613. carNumber: '',
  614. disabled: false,
  615. fleetFlag:0,
  616. tranType: '1',
  617. tranPriceCar:this.deptBudgetList.tranPriceCar,
  618. billingMethod:this.pricetype,
  619. // tranCarNo: tmp1+(this.deptBudgetList.count),
  620. tranCarNo: 'C0' + (this.deptBudgetList.tranCarInfoList.length + 1),
  621. tranPrice: this.deptBudgetList.tranPrice
  622. })
  623. } else if (this.deptBudgetList.tranCarInfoList.length < 1000 && this.deptBudgetList.tranCarInfoList.length >=
  624. 100) {
  625. tmp1 = 'C'
  626. this.deptBudgetList.count++
  627. this.deptBudgetList.tranCarInfoList.push({
  628. driverName: '',
  629. driverPhone: '',
  630. carLength: 0,
  631. carLengthKey: '',
  632. loadWeight: null,
  633. carModel: '',
  634. carModelKey: '',
  635. carNumber: '',
  636. disabled: false,
  637. fleetFlag:0,
  638. tranType: '1',
  639. billingMethod:this.pricetype,
  640. tranPriceCar:this.deptBudgetList.tranPriceCar,
  641. // tranCarNo: tmp1+(this.deptBudgetList.count),
  642. tranCarNo: 'C' + (this.deptBudgetList.tranCarInfoList.length + 1),
  643. tranPrice: this.deptBudgetList.tranPrice
  644. })
  645. }
  646. }
  647. }
  648. },
  649. //审核
  650. examine(status) {
  651. this.$prompt('运输单价审核', {
  652. cancelButtonText: '取消',
  653. confirmButtonText: '确定',
  654. inputValue: status==1?this.deptBudgetList.tranPriceIng:this.deptBudgetList.tranPriceIngCar
  655. }).then(({
  656. value
  657. }) => {
  658. var tranProcessInfo = {}
  659. tranProcessInfo.reviewer = localStorage.getItem('ws-pf_roleName') +
  660. localStorage.getItem('ws-pf_staffName')
  661. tranProcessInfo.id = this.deptBudgetList.id
  662. tranProcessInfo.flag = '2'
  663. tranProcessInfo.tranTypeKey = 1
  664. tranProcessInfo.billingMethod= this.deptBudgetList.billingMethod
  665. if(this.deptBudgetList.billingMethod==2){
  666. tranProcessInfo.tranPriceIngCar=value
  667. setUpTranPriceCar(tranProcessInfo)
  668. .toPromise()
  669. .then((response) => {
  670. this.$message.success('提交成功')
  671. this.getList()
  672. })
  673. }else{
  674. tranProcessInfo.tranPriceIng = value
  675. setUpTranPrice(tranProcessInfo)
  676. .toPromise()
  677. .then((response) => {
  678. this.$message.success('审核成功')
  679. this.getList()
  680. });
  681. }
  682. }).catch(() => {
  683. this.$message.warning(
  684. '取消审核'
  685. );
  686. });
  687. },
  688. priceSubmit(status) {
  689. if(status==1&&!this.deptBudgetList.tranPriceIng){
  690. this.$message({
  691. message: '请输入运输单价元/吨!',
  692. type: 'warning',
  693. })
  694. return
  695. }
  696. if(status==2&&!this.deptBudgetList.tranPriceIngCar){
  697. this.$message({
  698. message: '请输入运输单价元/车!',
  699. type: 'warning',
  700. })
  701. return
  702. }
  703. this.$confirm(`运输单价将发送给决策人审核,确定提交?`, {
  704. cancelButtonText: '取消',
  705. confirmButtonText: '确定',
  706. type: 'warning',
  707. })
  708. .then(() => {
  709. var tranProcessInfo = {}
  710. tranProcessInfo.id = this.deptBudgetList.id
  711. tranProcessInfo.flag = '1'
  712. tranProcessInfo.tranTypeKey = 1
  713. tranProcessInfo.tranPriceIng = this.deptBudgetList.tranPriceIng
  714. if(!this.deptBudgetList.billingMethod) this.deptBudgetList.billingMethod=1
  715. tranProcessInfo.billingMethod= this.deptBudgetList.billingMethod
  716. tranProcessInfo.tranPriceIngCar = this.deptBudgetList.tranPriceIngCar
  717. if(status==2){
  718. setUpTranPriceCar(tranProcessInfo)
  719. .toPromise()
  720. .then((response) => {
  721. this.$message.success('提交成功')
  722. this.getList()
  723. })
  724. }else{
  725. setUpTranPrice(tranProcessInfo)
  726. .toPromise()
  727. .then((response) => {
  728. this.$message.success('提交成功')
  729. this.getList()
  730. })
  731. }
  732. })
  733. .catch(() => {
  734. return false
  735. })
  736. },
  737. //提交按钮
  738. submit() {
  739. if (!this.deptBudgetList.tranPrice&&this.deptBudgetList.tranPrice!= 0 && this.pricetype==1) {
  740. this.$message({
  741. message: '请设置运输单价!',
  742. type: 'warning',
  743. })
  744. return
  745. } else if(!this.deptBudgetList.tranPriceCar&&this.deptBudgetList.tranPriceCar!= 0 && this.pricetype!=1){
  746. this.$message({
  747. message: '请设置运输单价!',
  748. type: 'warning',
  749. })
  750. return
  751. } else {
  752. for (var i = this.index; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  753. if (!this.deptBudgetList.tranCarInfoList[i].driver&&this.deptBudgetList.tranCarInfoList[i].fleetFlag==0) {
  754. this.$message({
  755. message: '姓名不能为空!',
  756. type: 'warning',
  757. })
  758. return
  759. }
  760. if (!this.deptBudgetList.tranCarInfoList[i].fleetName&&this.deptBudgetList.tranCarInfoList[i].fleetFlag==1) {
  761. this.$message({
  762. message: '车队名称不能为空!',
  763. type: 'warning',
  764. })
  765. return
  766. }
  767. if (this.deptBudgetList.tranCarInfoList[i].fleetName&&this.deptBudgetList.tranCarInfoList[i].fleetName.length<1&&this.deptBudgetList.tranCarInfoList[i].fleetFlag==1||this.deptBudgetList.tranCarInfoList[i].fleetName&&this.deptBudgetList.tranCarInfoList[i].fleetName.length>10&&this.deptBudgetList.tranCarInfoList[i].fleetFlag==1) {
  768. this.$message({
  769. message: '车队名称1-10个字!',
  770. type: 'warning',
  771. })
  772. return
  773. }
  774. for (var j = 0; j < this.carList.length; j++) {
  775. if (this.carList[j].driverName == this.deptBudgetList.tranCarInfoList[i].driver && this.carList[j]
  776. .disableStatusFlag == 1) {
  777. this.$message({
  778. message: this.deptBudgetList.tranCarInfoList[i].driver + '该司机已被禁用!',
  779. type: 'warning',
  780. })
  781. return
  782. }
  783. }
  784. }
  785. this.$confirm(`确定提交派车信息?`, {
  786. cancelButtonText: '取消',
  787. confirmButtonText: '确定',
  788. type: 'warning',
  789. })
  790. .then(() => {
  791. this.$refs.deptBudgetList.validate((valid) => {
  792. if (valid) {
  793. var tranCarInfo = {}
  794. tranCarInfo.id = this.deptBudgetList.id
  795. tranCarInfo.processNo = this.deptBudgetList.processNo
  796. tranCarInfo.tranPrice = this.deptBudgetList.tranPrice
  797. tranCarInfo.infoId = this.deptBudgetList.infoId
  798. tranCarInfo.billingMethod=this.pricetype
  799. tranCarInfo.tranCarInfoList = this.deptBudgetList.tranCarInfoList
  800. dispatchCat(tranCarInfo)
  801. .toPromise()
  802. .then((response) => {
  803. this.$message.success('提交成功')
  804. this.$router.go(-1)
  805. })
  806. } else {
  807. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  808. return false
  809. }
  810. })
  811. })
  812. .catch(() => {
  813. return false
  814. })
  815. }
  816. },
  817. handleClose() {
  818. this.accessoryTFs = false
  819. },
  820. getList() {
  821. seeCat({
  822. id: this.$route.query.id
  823. })
  824. .toPromise()
  825. .then((response) => {
  826. if (response.tranCarInfoList.length > 0) {
  827. this.index = response.tranCarInfoList.length
  828. for (var i = 0; i < response.tranCarInfoList.length; i++) {
  829. if (response.tranCarInfoList[i].id) {
  830. response.tranCarInfoList[i].disabled = true
  831. }
  832. }
  833. }
  834. if(response.billingMethod){
  835. this.pricetype=response.billingMethod
  836. }
  837. this.deptBudgetList = response
  838. this.fhaddress = response.sendPrivate + response.sendCity + response.sendArea + response
  839. .sendDetailedAddress
  840. this.shaddress = response.receivePrivate + response.receiveCity + response.receiveArea + response
  841. .receiveDetailedAddress
  842. if (this.deptBudgetList.tranPriceIng == 0) {
  843. this.deptBudgetList.tranPriceIng = ''
  844. }
  845. if (this.deptBudgetList.tranCarInfoList.length == 0) {
  846. this.deptBudgetList.tranCarInfoList = [{
  847. driverName: '',
  848. driverPhone: '',
  849. carLength: 0,
  850. carLengthKey: '',
  851. loadWeight: null,
  852. carModel: '',
  853. carModelKey: '',
  854. carNumber: '',
  855. disabled: false,
  856. fleetFlag:0,
  857. tranType: '1',
  858. tranCarNo: 'C001',
  859. billingMethod:1,
  860. tranPrice: this.deptBudgetList.tranPrice
  861. }, ]
  862. }
  863. })
  864. nameXiala({
  865. compId: this.compId
  866. })
  867. .toPromise()
  868. .then((response) => {
  869. this.carList = response
  870. this.carList1 = response
  871. })
  872. getcarNumber({
  873. compId: this.compId
  874. })
  875. .toPromise()
  876. .then((response) => {
  877. this.carNoList = response
  878. })
  879. },
  880. carchange(val, index) {
  881. for (var i = 0; i < this.carList.length; i++) {
  882. if (this.carList[i].driverName == val) {
  883. this.deptBudgetList.tranCarInfoList[index].driverPhone =
  884. this.carList[i].driverPhone
  885. arrange({
  886. id: this.carList[i].id
  887. })
  888. .toPromise()
  889. .then((response) => {
  890. console.log(index,this.deptBudgetList.tranCarInfoList)
  891. this.deptBudgetList.tranCarInfoList[index].carNo =
  892. response.carNumber
  893. if (response.carLoad != null) {
  894. this.deptBudgetList.tranCarInfoList[index].loadWeight =
  895. response.carLoad
  896. } else {
  897. this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
  898. }
  899. this.deptBudgetList.tranCarInfoList[index].carModel =
  900. response.carModel
  901. this.deptBudgetList.tranCarInfoList[index].carLength =
  902. response.carLength
  903. this.deptBudgetList.tranCarInfoList[index].carLengthKey =
  904. response.carLengthKey
  905. this.deptBudgetList.tranCarInfoList[index].carModelKey =
  906. response.carModelKey
  907. this.$forceUpdate()
  908. })
  909. }
  910. }
  911. },
  912. clear(){
  913. this.carList=this.carList1
  914. },
  915. carNochange(val,index){
  916. for (var i = 0; i < this.carNoList.length; i++) {
  917. if (this.carNoList[i].carNumber == val) {
  918. console.log(this.carNoList[i])
  919. if (this.carNoList[i].carLoad != null) {
  920. this.deptBudgetList.tranCarInfoList[index].loadWeight =
  921. this.carNoList[i].carLoad
  922. } else {
  923. this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
  924. }
  925. this.deptBudgetList.tranCarInfoList[index].carModel =
  926. this.carNoList[i].carModel
  927. this.deptBudgetList.tranCarInfoList[index].carLength =
  928. this.carNoList[i].carLength
  929. this.deptBudgetList.tranCarInfoList[index].carLengthKey =
  930. this.carNoList[i].carLengthKey
  931. this.deptBudgetList.tranCarInfoList[index].carModelKey =
  932. this.carNoList[i].carModelKey
  933. getdriverinfo({
  934. carNumber: this.carNoList[i].carNumber
  935. })
  936. .toPromise()
  937. .then((response) => {
  938. this.carList=response
  939. })
  940. }
  941. }
  942. },
  943. phonechange(val, index) {
  944. for (var i = 0; i < this.carList.length; i++) {
  945. if (this.carList[i].driverPhone == val) {
  946. this.deptBudgetList.tranCarInfoList[index].driver =
  947. this.carList[i].driverName
  948. arrange({
  949. id: this.carList[i].id
  950. })
  951. .toPromise()
  952. .then((response) => {
  953. console.log(this, response)
  954. this.deptBudgetList.tranCarInfoList[index].carNo =
  955. response.carNumber
  956. if (response.carLoad != null) {
  957. this.deptBudgetList.tranCarInfoList[index].loadWeight =
  958. response.carLoad
  959. } else {
  960. this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
  961. }
  962. this.deptBudgetList.tranCarInfoList[index].carModel =
  963. response.carModel
  964. this.deptBudgetList.tranCarInfoList[index].carLength =
  965. response.carLength
  966. this.deptBudgetList.tranCarInfoList[index].carLengthKey =
  967. response.carLengthKey
  968. this.deptBudgetList.tranCarInfoList[index].carModelKey =
  969. response.carModelKey
  970. })
  971. }
  972. }
  973. },
  974. },
  975. }
  976. </script>
  977. <style lang="scss" scoped>
  978. // /deep/.basicInformation {
  979. // .ws-info-table {
  980. // border: none;
  981. // }
  982. // .myTest {
  983. // width: 800px;
  984. // display: flex;
  985. // height: 40px;
  986. // }
  987. // .el-form-item {
  988. // width: 33.3333%;
  989. // border: none;
  990. // height: 50px;
  991. // .el-form-item__label {
  992. // background: transparent;
  993. // border: none;
  994. // }
  995. // .el-form-item__content {
  996. // border: none;
  997. // }
  998. // }
  999. // }
  1000. // .title {
  1001. // position: relative;
  1002. // padding-left: 10px;
  1003. // }
  1004. // .title::before {
  1005. // content: '';
  1006. // display: inline-block;
  1007. // width: 5px;
  1008. // height: 30px;
  1009. // background: #5473e8;
  1010. // position: absolute;
  1011. // left: 0;
  1012. // }
  1013. // .el-form {
  1014. // padding: 0 10%;
  1015. // }
  1016. // .el-button--primary {
  1017. // background-color: #5878e8;
  1018. // border-color: #5878e8;
  1019. // }
  1020. // .el-col {
  1021. // background: #f6f7fc;
  1022. // }
  1023. // .bg-right {
  1024. // text-align: right;
  1025. // padding: 16px 20px;
  1026. // }
  1027. // .center {
  1028. // margin: 0 auto;
  1029. // width: 70%;
  1030. // }
  1031. //表格文字
  1032. // /deep/.ws-info-table .el-form-item .el-form-item__label {
  1033. // text-align: center;
  1034. // font-size: 14px;
  1035. // font-weight: 400;
  1036. // color: #8890b1;
  1037. // line-height: 16px;
  1038. // }
  1039. // //蓝标
  1040. // .small-title {
  1041. // position: relative;
  1042. // padding: 10px;
  1043. // font-weight: 600;
  1044. // }
  1045. // .small-title::before {
  1046. // position: absolute;
  1047. // content: '';
  1048. // display: block;
  1049. // background: #5473e8;
  1050. // width: 4px;
  1051. // height: 14px;
  1052. // left: 0px;
  1053. // top: 13px;
  1054. // padding: 4px 2px;
  1055. // }
  1056. // .position {
  1057. // position: relative;
  1058. // }
  1059. // .position .zaizhong {
  1060. // width: 16%;
  1061. // }
  1062. // //减号
  1063. // .del {
  1064. // position: absolute;
  1065. // // right: -38px;
  1066. // top: 9px;
  1067. // cursor: pointer;
  1068. // right: 0;
  1069. // display: inline-block;
  1070. // font-size: 20px;
  1071. // width: 20px;
  1072. // height: 10px;
  1073. // line-height: 0px;
  1074. // }
  1075. // .driver .el-form-item {
  1076. // width: 16.63%;
  1077. // }
  1078. // /deep/.ws-info-table .el-form-item .el-form-item__content {
  1079. // background: #f5f7fa;
  1080. // border-radius: 4px;
  1081. // color: #8890b1;
  1082. // font-size: 14px;
  1083. // padding: 0 25px;
  1084. // }
  1085. // /deep/.driver .ws-info-table .el-form-item .el-form-item__label {
  1086. // width: 72px;
  1087. // }
  1088. // /deep/.liaison .ws-info-table .el-form-item {
  1089. // width: 220px;
  1090. // color: #8890b1;
  1091. // font-size: 14px;
  1092. // }
  1093. // /deep/.ws-info-table .el-form-item {
  1094. // border: none;
  1095. // height: 50px;
  1096. // }
  1097. // /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
  1098. // width: 50%;
  1099. // border: 0px solid #d8dce6;
  1100. // background: #f5f7fa;
  1101. // text-align: center;
  1102. // }
  1103. // /deep/.liaison {
  1104. // background: #f5f7fa;
  1105. // border-radius: 4px;
  1106. // border: 0px solid #d8dce6;
  1107. // }
  1108. // /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  1109. // border: none;
  1110. // background: #f5f7fa;
  1111. // padding: 0px;
  1112. // }
  1113. // .catNos {
  1114. // width: 100%;
  1115. // height: 30px;
  1116. // margin-top: 10px;
  1117. // margin-left: 20px;
  1118. // font-size: 14px;
  1119. // }
  1120. // /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  1121. // border-radius: 0px;
  1122. // border-left: none;
  1123. // border-bottom: none;
  1124. // border-top: none;
  1125. // }
  1126. // /deep/.liaison .ws-info-table {
  1127. // background: #f6f7fc;
  1128. // border-radius: 4px;
  1129. // border: 1px solid #d8dce6;
  1130. // margin-top: 20px;
  1131. // }
  1132. //送达/未送达
  1133. // .noservice,
  1134. // .service {
  1135. // display: inline-block;
  1136. // border-radius: 4px;
  1137. // border: 1px solid #d8dce6;
  1138. // padding: 2px;
  1139. // font-size: 12px;
  1140. // }
  1141. // .noservice {
  1142. // background: #c4cada;
  1143. // color: #ffffff;
  1144. // }
  1145. // .service {
  1146. // background: #e5f1f7;
  1147. // color: #50cad4;
  1148. // }
  1149. // .serviced {
  1150. // display: inline-block;
  1151. // border-radius: 4px;
  1152. // border: 1px solid #d8dce6;
  1153. // padding: 2px;
  1154. // font-size: 12px;
  1155. // background: #e5f1f7;
  1156. // color: #2c81cf;
  1157. // }
  1158. // //添加司机
  1159. // .add {
  1160. // width: 100px;
  1161. // height: 34px;
  1162. // background: #f6f7fb;
  1163. // border-radius: 17px;
  1164. // color: #5473e8;
  1165. // font-size: 14px;
  1166. // border: none;
  1167. // }
  1168. // .add img {
  1169. // display: inline-block;
  1170. // margin-top: 3px;
  1171. // margin-left: -12px;
  1172. // }
  1173. // .add .spans {
  1174. // display: table-caption;
  1175. // width: 56px;
  1176. // height: 20px;
  1177. // line-height: 18px;
  1178. // }
  1179. /deep/.el-form-item--small.el-form-item {
  1180. margin-bottom: 0px
  1181. }
  1182. .input-item-margin {
  1183. margin-right: 20px;
  1184. }
  1185. .row-item {
  1186. width: 100%;
  1187. }
  1188. .bg-right {
  1189. text-align: right;
  1190. padding: 16px 20px;
  1191. }
  1192. .center {
  1193. margin: 0 auto;
  1194. width: 70%;
  1195. }
  1196. //蓝标
  1197. .small-title {
  1198. position: relative;
  1199. padding: 10px;
  1200. font-weight: 600;
  1201. }
  1202. //小标题文字
  1203. .small-title::before {
  1204. position: absolute;
  1205. content: '';
  1206. display: block;
  1207. background: #5473e8;
  1208. width: 4px;
  1209. height: 14px;
  1210. left: 0px;
  1211. top: 16px;
  1212. padding: 4px 2px;
  1213. }
  1214. .bg-left {
  1215. padding-left: 30px;
  1216. }
  1217. .title::before {
  1218. content: '';
  1219. display: inline-block;
  1220. width: 5px;
  1221. height: 30px;
  1222. background: #5473e8;
  1223. position: absolute;
  1224. left: 0;
  1225. }
  1226. .myTest {
  1227. display: flex;
  1228. margin-bottom: 20px;
  1229. // background: green;
  1230. padding-left: 20px;
  1231. align-items: center;
  1232. width: 800px;
  1233. }
  1234. .myTest .el-form-item {
  1235. width: 33.333%;
  1236. }
  1237. .content3 ,.contentitem{
  1238. width: calc(100% + 20px);
  1239. .content3-item1 {
  1240. position: relative;
  1241. background: #F5F7FA;
  1242. border: 1px solid #E4E7ED;
  1243. border-radius: 5px;
  1244. height: 200px;
  1245. width: 100%;
  1246. padding: 10px 20px 0 0;
  1247. margin-top: 20px;
  1248. }
  1249. }
  1250. .contentitem{
  1251. .content3-item1 {
  1252. height: 90px;
  1253. }
  1254. }
  1255. .content4 {
  1256. background: #F5F7FA;
  1257. display: flex;
  1258. margin: 10px 0;
  1259. border: 1px solid #E4E7ED;
  1260. border-radius: 5px;
  1261. position: relative;
  1262. }
  1263. .del {
  1264. position: absolute;
  1265. right: 4px;
  1266. top: 0px;
  1267. cursor: pointer;
  1268. font-size: 20px;
  1269. width: 16px;
  1270. height: 10px;
  1271. }
  1272. </style>