release.vue 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346
  1. <template>
  2. <view class="content">
  3. <!-- <u-navbar title="发布" :placeholder="true" rightText="记录" @rightClick="goToRecord" @leftClick="back()"> -->
  4. <!-- view class="u-nav-slot" slot="left">
  5. <u-icon name="arrow-left" size="19"></u-icon>
  6. <u-line direction="column" :hairline="false" length="16" margin="0 8px"></u-line>
  7. <u-icon name="home" size="20"></u-icon>
  8. </view> -->
  9. <!-- </u-navbar> -->
  10. <!-- <view class="fixed1"></view>
  11. <view class='title top-title flex'>
  12. <u-icon class="back" name="arrow-left" color="" size="20" @click="back"></u-icon>
  13. <view class="nav-title">发布</view>
  14. <view class="search" @click="goToRecord">
  15. <u-icon class="" name="order" color="" size="28"></u-icon>
  16. <view>
  17. 记录
  18. </view>
  19. </view>
  20. </view> -->
  21. <view class="content1">
  22. <view class="row" @click="selectCargoOwner">
  23. <view class="left select-sf" :class='dataObj.cargoOwner?"":"select-sf1"'>{{dataObj.cargoOwner?dataObj.cargoOwner:'选择货主身份'}}</view>
  24. <view class="right"><image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image></view>
  25. </view>
  26. <!-- <view class="row" @click="selectCargoOwner" v-if="dataObj.cargoOwner">
  27. <view class="left">{{dataObj.cargoOwner}}</view>
  28. <view class="right">></view>
  29. </view> -->
  30. <u-picker :show="show" :columns="columns" :closeOnClickOverlay='true' @close='selectCargoOwnerClose'
  31. @cancel='selectCargoOwnerClose' @confirm='confirmSelectCargoOwner'></u-picker>
  32. </view>
  33. <view class="content2">
  34. <view class="row1">
  35. <view class="left">
  36. <view class="top" @click="selectAddress(0)">
  37. <view class="send">发</view>
  38. <view class="title">
  39. {{dataObj.sendArea?(dataObj.sendPrivate + dataObj.sendCity+dataObj.sendArea):'选择发货地区'}}
  40. </view>
  41. </view>
  42. <view class="bottom">
  43. <input type="text" value="" placeholder="输入详细地址" v-model="dataObj.sendDetailedAddress" />
  44. </view>
  45. </view>
  46. <view class="right" @click="selectAddress(0)" v-if="!dataObj.sendArea">
  47. <view v-if='dataObj.sendArea' class="right"></view>
  48. <view class="right" v-else><image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image></view>
  49. </view>
  50. </view>
  51. <view class="row2">
  52. <view class="left">
  53. <view class="top" @click="selectAddress(1)">
  54. <view class="collect">收</view>
  55. <view class="title">
  56. {{dataObj.unloadArea?(dataObj.unloadPrivate + dataObj.unloadCity+dataObj.unloadArea):'选择收货地区'}}
  57. </view>
  58. </view>
  59. <view class="bottom">
  60. <input type="text" value="" placeholder="输入详细地址" v-model="dataObj.unloadDetailedAddress" />
  61. </view>
  62. </view>
  63. <view class="right" @click="selectAddress(1)" v-if="!dataObj.unloadArea">
  64. <view v-if='dataObj.unloadArea' class="right">{{(dataObj.unloadCity+dataObj.unloadArea)}}</view>
  65. <view class="right" v-else><image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image></view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="content3">
  70. <view class="row">
  71. <view class="left">距离</view>
  72. <!-- <input type="text" value="" class="input" placeholder="自动计算" v-model="dataObj.distance" disabled /> -->
  73. {{dataObj.distance }}
  74. km
  75. </view>
  76. <view class="row">
  77. <view class="left">货物类别</view>
  78. <view class="right" @click="goodstypeChange">{{dataObj.goodsType?dataObj.goodsType:"请选择货物类别"}}</view>
  79. </view>
  80. <view class="row">
  81. <view class="left">货名</view>
  82. <view class="right"><input type="text" class="input" value="" placeholder="输入货物名称"
  83. v-model="dataObj.goodsName" /></view>
  84. </view>
  85. <view class="row">
  86. <view class="left">收货方</view>
  87. <view class="right flex">
  88. <input type="text" value="" placeholder="输入收货人姓名或企业名称" class="input" v-model="dataObj.receiver" />
  89. </view>
  90. </view>
  91. <view class="row">
  92. <view class="left">收货方手机号</view>
  93. <view class="right flex">
  94. <input type="number" maxlength="11" placeholder="输入收货方手机号" class="input"
  95. v-model="dataObj.receiverPhone" />
  96. </view>
  97. </view>
  98. <view class="row">
  99. <view class="left">收货人身份证号</view>
  100. <view class="right flex">
  101. <input type="number" maxlength="18" placeholder="输入收货人身份证号" class="input"
  102. v-model="dataObj.receiverIdcard" />
  103. </view>
  104. </view>
  105. <view class="row">
  106. <view class="left">收货方信用代码(选填)</view>
  107. <view class="right flex">
  108. <input maxlength="18" placeholder="统一社会信用代码" class="input" v-model="dataObj.receiverCreditCode" />
  109. </view>
  110. </view>
  111. <view class="flex row">
  112. <view class="left-text">运费计算方式</view>
  113. <u-radio-group placement="row" v-model="dataObj.billingMethod" class="select-type">
  114. <u-radio :customStyle="radioCustomStyle" v-for="(item, index) in radiolist1" :key="index"
  115. :label="item.name" :name="item.name" @change="radioChange">
  116. </u-radio>
  117. </u-radio-group>
  118. </view>
  119. <view class="row">
  120. <view class="left">运费单价</view>
  121. <view class="right"><input type="number" value="" placeholder="输入运费单价" class="input"
  122. v-model="dataObj.freightPrice" /></view>
  123. </view>
  124. <view v-if='dataObj.freightAdvance' class="row">
  125. <view class="left">该任务申请运费垫付</view>
  126. <view class="right">
  127. <u-switch v-model="dataObj.freightAdvance" @change="change" size="20"></u-switch>
  128. </view>
  129. </view>
  130. </view>
  131. <view class="content4 flex">
  132. <view class="title">以下为附加信息</view>
  133. <view class="btn-text">选填</view>
  134. </view>
  135. <view class="content5">
  136. <view class="row">
  137. <view class="left">发货联系人</view>
  138. <view class="right flex">
  139. <input type="text" value="" placeholder="输入发货联系人姓名" class="input" v-model="dataObj.sender" />
  140. </view>
  141. </view>
  142. <view class="row">
  143. <view class="left">发货联系人电话</view>
  144. <view class="right flex">
  145. <input type="number" maxlength="11" value="" placeholder="输入发货联系人手机号" class="input"
  146. v-model="dataObj.senderPhone" />
  147. </view>
  148. </view>
  149. <view class="row">
  150. <view class="left">重量(吨)</view>
  151. <view class="right flex">
  152. <input type="number" value="" placeholder="输入预计发运重量" class="number" v-model="dataObj.weight"
  153. style="text-align: right;" />
  154. </view>
  155. </view>
  156. <view class="flex row" @click="selectValidityPeriod(0)">
  157. <view class="left-text">预计装车日期起</view>
  158. <view :class="!dataObj.loadingDateStart?'select-data':''">
  159. {{dataObj.loadingDateStart?dataObj.loadingDateStart:'选择有效截止日期>'}}
  160. </view>
  161. </view>
  162. <view class="flex row" @click="selectValidityPeriod(1)">
  163. <view class="left-text">预计装车日期止</view>
  164. <view :class="!dataObj.loadingDateEnd?'select-data':''">
  165. {{dataObj.loadingDateEnd?dataObj.loadingDateEnd:'选择有效截止日期>'}}
  166. </view>
  167. </view>
  168. <view class="row">
  169. <view class="left">车长要求(米)</view>
  170. </view>
  171. <view class="row flex-space-between row-bgc">
  172. <view class="car-row">
  173. <input type="number" value="" placeholder="最短不限" class="" v-model="dataObj.carLengthSmall"
  174. class="car-input" />
  175. <view>m</view>
  176. </view>
  177. <view class="car-line">-</view>
  178. <view class="car-row">
  179. <input type="number" value="" placeholder="最长不限" class="" v-model="dataObj.carLength"
  180. class="car-input" />
  181. <view>m</view>
  182. </view>
  183. </view>
  184. <view class="row">
  185. <view class="left">载重要求(吨)</view>
  186. </view>
  187. <view class="row flex-space-between row-bgc">
  188. <view class="car-row">
  189. <input type="number" value="" placeholder="最小不限" class="car-input"
  190. v-model="dataObj.loadWeightSmall" />
  191. <view>吨</view>
  192. </view>
  193. <view class="car-line">-</view>
  194. <view class="car-row">
  195. <input type="number" value="" placeholder="最大不限" class="car-input" v-model="dataObj.loadWeight" />
  196. <view>吨</view>
  197. </view>
  198. </view>
  199. <view class="row">
  200. <view class="left">车型要求</view>
  201. </view>
  202. <view class="row">
  203. <u-checkbox-group v-model="checkboxValue1" placement="row" @change="checkboxChange">
  204. <u-checkbox :customStyle="radioCustomStyle" v-for="(item, index) in checkboxList1" :key="index"
  205. :label="item.name" :name="item.name">
  206. </u-checkbox>
  207. </u-checkbox-group>
  208. </view>
  209. <view class="row">
  210. <view class="left">任务描述</view>
  211. </view>
  212. <view class="row">
  213. <u--textarea v-model="dataObj.taskDescription" placeholder="请输入内容" :count='true' maxlength='200'>
  214. </u--textarea>
  215. </view>
  216. <view class="flex row noborder" @click="selectValidityPeriodcq">
  217. <view class="left-text">任务有效期</view>
  218. <view :class="dataObj.taskValidity?'':'select-data'">
  219. {{dataObj.taskValidity?dataObj.taskValidity:'选择任务有效期>'}}
  220. </view>
  221. </view>
  222. <u-picker :show="isShowcardValidity" ref="uPicker" :columns="validityPeriodcq"
  223. @confirm="confirmValidityPeriodcq" @change="changeHandler" @close='isShowcardValidity=false'
  224. @cancel='isShowcardValidity=false' :closeOnClickOverlay='true'>
  225. </u-picker>
  226. </view>
  227. <view class="submit" @click="submit">立即发布</view>
  228. <u-picker :show="isShowValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
  229. :closeOnClickOverlay='true' @close='isShowValidity=false' @cancel='isShowValidity=false'>
  230. </u-picker>
  231. <!-- //货物类别 -->
  232. <u-picker :show="isGoodsType" ref="uPicker" :columns="goodsList" keyName="constValue" @confirm="goodsSubmit"
  233. :closeOnClickOverlay='true' @close='isGoodsType=false' @cancel='isGoodsType=false'>
  234. </u-picker>
  235. <u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='false'
  236. :showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="$u.throttle(confirmClick(), 5000)" @close="cancelClick"
  237. @cancel="cancelClick"></u-modal>
  238. <u-modal :show="isShowAlert1" :title="alertTitle" :confirmText='confirmText' :content='alertContent'
  239. :closeOnClickOverlay='false' :showCancelButton='showCancelButton' confirmColor='#2772FB'
  240. @confirm="$u.throttle(confirmClick(), 5000)" @close="cancelClick" @cancel="cancelClick"></u-modal>
  241. <u-toast ref="uToast"></u-toast>
  242. </view>
  243. </template>
  244. <script>
  245. var _this;
  246. import {
  247. mapState
  248. } from 'vuex';
  249. export default {
  250. data() {
  251. return {
  252. showCancelButton: true,
  253. qyList: [],
  254. isShowAlert: false,
  255. alertTitle: '确定发布运输任务?',
  256. alertContent: null,
  257. radioCustomStyle: {
  258. margin: '0 0 0 20rpx'
  259. },
  260. show: false,
  261. columns: [
  262. []
  263. ],
  264. dataObj: {
  265. commonId: '',
  266. cargoOwner: '',
  267. sendPrivate: '',
  268. sendCity: '',
  269. sendArea: '',
  270. sendDetailedAddress: '',
  271. unloadPrivate: '',
  272. unloadCity: '',
  273. unloadArea: '',
  274. unloadDetailedAddress: '',
  275. distance: '',
  276. goodsName: '',
  277. billingMethod: '元/吨',
  278. freightPrice: '',
  279. freightAdvance: false,
  280. sender: '',
  281. senderPhone: '',
  282. receiver: '',
  283. receiverPhone: '',
  284. weight: '',
  285. loadingDateStart: '',
  286. loadingDateEnd: '',
  287. carLengthSmall: '',
  288. carLength: '',
  289. loadWeightSmall: '',
  290. loadWeight: '',
  291. carModel: '',
  292. taskDescription: '',
  293. taskValidity: '',
  294. sendLongitude: '',
  295. sendLatitude: '',
  296. unsendLongitude: '',
  297. unsendLatitude: '',
  298. },
  299. confirmText: '',
  300. isShowAlert1: false,
  301. checkboxValue1: ['不限'],
  302. checkboxList1: [{
  303. name: '不限',
  304. disabled: false
  305. },
  306. {
  307. name: '高栏',
  308. disabled: false
  309. },
  310. {
  311. name: '集装箱',
  312. disabled: false
  313. },
  314. {
  315. name: '自卸车',
  316. disabled: false
  317. }
  318. ],
  319. value: true,
  320. isShowcardValidity: false,
  321. ValidityPeriodType: '',
  322. validityPeriod: [],
  323. validityPeriodcq: [],
  324. isShowValidity: false,
  325. dataDetails: {
  326. type: '元/车'
  327. },
  328. radiolist1: [{
  329. name: '元/吨',
  330. disabled: false
  331. },
  332. {
  333. name: '元/车',
  334. disabled: false
  335. },
  336. ],
  337. // 货物类别
  338. isGoodsType:false,
  339. goodsList:[]
  340. }
  341. },
  342. onNavigationBarButtonTap(e) {
  343. console.log("success")
  344. this.goToRecord()
  345. },
  346. onShow() {
  347. _this = this
  348. // #ifdef APP-PLUS
  349. // let _status = this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
  350. // phone: this.userInfo.phone
  351. // }).then(res => {
  352. // uni.setStorageSync("firstAuthentication",res.data)
  353. // return res.data.authenticationStatus
  354. // })
  355. // if (_status == '已禁用') {
  356. // this.isShowAlert = true
  357. // this.alertTitle = '账号审核中'
  358. // this.confirmText = '退出APP'
  359. // this.showCancelButton = false
  360. // return
  361. // } else {
  362. // }
  363. // #endif
  364. if (!this.hasLogin) {
  365. uni.$u.route('/pages/public/login');
  366. return
  367. }
  368. this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
  369. phone: this.userInfo.phone
  370. }).then(res => {
  371. uni.setStorageSync("firstAuthentication", res.data)
  372. let _obj = res.data
  373. if (_obj.authenticationStatus == '已认证') {
  374. uni.$u.route('/pages/components/empty/index');
  375. } else if (_obj.authenticationStatus == '审核中') {
  376. uni.showToast({
  377. title: '身份信息审核中',
  378. icon: 'none'
  379. })
  380. } else if (_obj.authenticationStatus == '已过期') {
  381. this.alertTitle = '身份信息已过期!'
  382. this.showCancelButton = false
  383. this.confirmText = '立即修改'
  384. this.isShowAlert1 = true
  385. } else {
  386. this.alertTitle = '身份信息未认证,去认证?'
  387. this.confirmText = '确认'
  388. this.showCancelButton = false
  389. this.isShowAlert = true
  390. }
  391. })
  392. this.validityPeriod = this.$helper.makeValidityPeriod(0, '随时')
  393. this.validityPeriodcq = this.$helper.makeValidityPeriod(0, '长期')
  394. let _faddress = uni.getStorageSync('storage_faddress');
  395. let _saddress = uni.getStorageSync('storage_saddress');
  396. if (_faddress) {
  397. this.dataObj.sendCity = _faddress.city
  398. this.dataObj.sendArea = _faddress.area
  399. this.dataObj.sendPrivate = _faddress.province
  400. this.dataObj.sendDetailedAddress = _faddress.detailedAddress
  401. this.dataObj.sendLongitude = _faddress.longitude
  402. this.dataObj.sendLatitude = _faddress.latitude
  403. if(_faddress.contactPhone){
  404. this.dataObj.senderPhone = _faddress.contactPhone
  405. }
  406. if(_faddress.contacts){
  407. this.dataObj.sender = _faddress.contacts
  408. }
  409. } else {
  410. this.getDefaultPlace(0)
  411. }
  412. if (_saddress) {
  413. this.dataObj.unloadDetailedAddress = _saddress.detailedAddress
  414. this.dataObj.unloadCity = _saddress.city
  415. this.dataObj.unloadArea = _saddress.area
  416. this.dataObj.unloadPrivate = _saddress.province
  417. this.dataObj.unsendLongitude = _saddress.longitude
  418. this.dataObj.unsendLatitude = _saddress.latitude
  419. if(_saddress.contacts){
  420. this.dataObj.receiver = _saddress.contacts
  421. }
  422. if(_saddress.contactPhone){
  423. this.dataObj.receiverPhone = _saddress.contactPhone
  424. }
  425. } else {
  426. this.getDefaultPlace(1)
  427. }
  428. if (this.dataObj.sendLatitude && this.dataObj.sendLongitude && this.dataObj.unsendLatitude && this.dataObj
  429. .unsendLongitude) {
  430. this.dataObj.distance = this.$helper.getDistance(this.dataObj.unsendLatitude, this.dataObj
  431. .unsendLongitude,
  432. this.dataObj.sendLatitude, this.dataObj.sendLongitude)
  433. }
  434. this.dataObj.loadingDateStart = '随时'
  435. this.dataObj.loadingDateEnd = '随时'
  436. this.dataObj.taskValidity = '长期'
  437. this.getSFList()
  438. },
  439. async onLoad() {
  440. //货物类别(默认上一次)
  441. this.queryGoodsList() // 查询货物类别
  442. let goods = uni.getStorageSync("goodsType")
  443. if(goods){
  444. this.dataObj.goodsType = goods.name
  445. this.dataObj.goodsTypeKey = goods.key
  446. }
  447. // _this = this
  448. // // #ifdef APP-PLUS
  449. // let _status = await this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
  450. // phone: this.userInfo.phone,
  451. // }).then(res => {
  452. // if(res.data){
  453. // return res.data.authenticationStatus
  454. // }
  455. // })
  456. // if (_status == '已禁用') {
  457. // this.isShowAlert = true
  458. // this.alertTitle = '账号审核中'
  459. // this.confirmText = '退出APP'
  460. // this.showCancelButton = false
  461. // return
  462. // } else {}
  463. // // #endif
  464. },
  465. computed: {
  466. ...mapState(['hasLogin', 'userInfo']),
  467. },
  468. methods: {
  469. queryGoodsList(){
  470. this.$request.baseRequest('get', '/commonSysParameter/getInfo', {
  471. constId: "CON1"
  472. }).then(res => {
  473. this.goodsList.push(res.data)
  474. console.log(this.goodsList)
  475. })
  476. },
  477. goodstypeChange(){
  478. this.isGoodsType = true
  479. },
  480. goodsSubmit(e){
  481. this.dataObj.goodsType = e.value[0].constValue
  482. this.dataObj.goodsTypeKey = e.value[0].constKey
  483. let _obj={
  484. name:e.value[0].constValue,
  485. key:e.value[0].constKey
  486. }
  487. uni.setStorageSync("goodsType",_obj)
  488. this.isGoodsType = false
  489. },
  490. getSFList() {
  491. this.dataObj.commonId = this.userInfo.id
  492. this.$request.baseRequest('get', '/cargoOwnerCompInfo/cargoOwnerList', {
  493. commonId: this.userInfo.id
  494. }).then(res => {
  495. if (uni.getStorageSync('releaseCargoOwner')) {
  496. this.dataObj.cargoOwner = uni.getStorageSync('releaseCargoOwner')
  497. this.dataObj.compId =uni.getStorageSync('releasecompId')
  498. }
  499. // 可用企业货主
  500. this.qyList = []
  501. // 自己法人
  502. // let _self = res.data.companyInfoList
  503. let _self = res.data.hyCompanyInfoList
  504. //代理货主
  505. // let _dlhz = res.data.cargoOwnerCompInfoList
  506. let _dlhz = res.data.hyCargoOwnerCompInfoList
  507. if (!_dlhz) _dlhz = []
  508. if (!_self) _self = []
  509. if (_self.length > 0) {
  510. for (let i = 0; i < _self.length; i++) {
  511. _self[i].compStatus='wd'
  512. if (_self[i].status == '已认证') {
  513. this.qyList.push(_self[i])
  514. }
  515. }
  516. }
  517. if (_dlhz.length > 0) {
  518. for (let i = 0; i < _dlhz.length; i++) {
  519. _dlhz[i].compStatus='ss'
  520. if (_dlhz[i].status == '已认证') {
  521. this.qyList.push(_dlhz[i])
  522. }
  523. }
  524. }
  525. this.columns = [
  526. []
  527. ]
  528. let obj = uni.getStorageSync("firstAuthentication")
  529. if (obj && obj.authenticationStatus == '已认证') {
  530. this.columns[0].push("个人货主")
  531. }
  532. for (let i = 0; i < this.qyList.length; i++) {
  533. this.columns[0].push(this.qyList[i].company ? this.qyList[i].company : this.qyList[i]
  534. .companyName)
  535. }
  536. this.$forceUpdate()
  537. })
  538. .catch(res => {});
  539. },
  540. validate() {
  541. if (uni.$u.test.isEmpty(this.dataObj.cargoOwner)) {
  542. this.$refs.uToast.show({
  543. type: 'error',
  544. message: "货主不能为空!",
  545. })
  546. return true
  547. }
  548. if (uni.$u.test.isEmpty(this.dataObj.sendArea)) {
  549. this.$refs.uToast.show({
  550. type: 'error',
  551. message: "请选择发货地区!",
  552. })
  553. return true
  554. }
  555. if (uni.$u.test.isEmpty(this.dataObj.sendDetailedAddress)) {
  556. this.$refs.uToast.show({
  557. type: 'error',
  558. message: "发货详细地址不能为空!",
  559. })
  560. return true
  561. }
  562. if (uni.$u.test.isEmpty(this.dataObj.unloadArea)) {
  563. this.$refs.uToast.show({
  564. type: 'error',
  565. message: "请选择收货地区!",
  566. })
  567. return true
  568. }
  569. if (uni.$u.test.isEmpty(this.dataObj.unloadDetailedAddress)) {
  570. this.$refs.uToast.show({
  571. type: 'error',
  572. message: "收货详细地址不能为空!",
  573. })
  574. return true
  575. }
  576. if (uni.$u.test.isEmpty(this.dataObj.goodsName)) {
  577. this.$refs.uToast.show({
  578. type: 'error',
  579. message: "货名不能为空!",
  580. })
  581. return true
  582. }
  583. if (!uni.$u.test.chinese(this.dataObj.goodsName)) {
  584. this.$refs.uToast.show({
  585. type: 'error',
  586. message: "货名输入错误!",
  587. })
  588. return true
  589. }
  590. console.log(this.dataObj.receiver,"收货方")
  591. console.log(this.dataObj.receiverPhone,"收货方手机号")
  592. if (uni.$u.test.isEmpty(this.dataObj.receiver)) {
  593. this.$refs.uToast.show({
  594. type: 'error',
  595. message: "收货方不能为空!",
  596. })
  597. return true
  598. }
  599. if (uni.$u.test.isEmpty(this.dataObj.receiverPhone)) {
  600. this.$refs.uToast.show({
  601. type: 'error',
  602. message: "收货方手机号不能为空!",
  603. })
  604. return true
  605. }
  606. // if (uni.$u.test.isEmpty(this.dataObj.receiverIdcard)) {
  607. // this.$refs.uToast.show({
  608. // type: 'error',
  609. // message: "收货人身份证不能为空!",
  610. // })
  611. // return true
  612. // }
  613. if (!this.dataObj.receiverIdcard && !this.dataObj.receiverCreditCode) {
  614. this.$refs.uToast.show({
  615. type: 'error',
  616. message: "收款方统一社会信用代码和收货人身份证号码至少填写一个!",
  617. })
  618. return true
  619. }
  620. // if(this.dataObj.receiverIdcard&&!uni.$u.test.rangeLength(this.dataObj.receiverIdcard, [18, 18])){
  621. // this.$refs.uToast.show({
  622. // type: 'error',
  623. // message: "身份证号输入错误!",
  624. // })
  625. // return true
  626. // }
  627. if(this.dataObj.receiverIdcard&&this.dataObj.receiverIdcard.length!=18){
  628. this.$refs.uToast.show({
  629. type: 'error',
  630. message: "身份证号输入错误!",
  631. })
  632. return true
  633. }
  634. if(this.dataObj.receiverCreditCode&&this.dataObj.receiverCreditCode.length!=18){
  635. this.$refs.uToast.show({
  636. type: 'error',
  637. message: "信用代码输入错误!",
  638. })
  639. return true
  640. }
  641. if (uni.$u.test.isEmpty(this.dataObj.freightPrice)) {
  642. this.$refs.uToast.show({
  643. type: 'error',
  644. message: "运费单价不能为空!",
  645. })
  646. return true
  647. }
  648. if (
  649. this.dataObj.freightPrice < 0 || this.dataObj.freightPrice > 100000 || (
  650. String(this.dataObj.freightPrice).indexOf('.') != -1 && String(this.dataObj.freightPrice).length -
  651. (String(this.dataObj.freightPrice).indexOf(
  652. '.') + 1) > 2)
  653. ) {
  654. uni.showToast({
  655. title: '运费单价输入错误!',
  656. duration: 2000,
  657. icon: "none",
  658. });
  659. return true
  660. }
  661. if (this.dataObj.weight) {
  662. if (
  663. this.dataObj.weight < 0.1 || this.dataObj.weight > 10000000 || (
  664. String(this.dataObj.weight).indexOf('.') != -1 && String(tthis.dataObj.weight).length -
  665. (String(this.dataObj.weight).indexOf(
  666. '.') + 1) > 2)
  667. ) {
  668. uni.showToast({
  669. title: '重量输入错误!',
  670. duration: 2000,
  671. icon: "none",
  672. });
  673. return true
  674. }
  675. }
  676. if (this.dataObj.carLengthSmall) {
  677. if (this.dataObj.carLengthSmall < 2 || this.dataObj.carLengthSmall > 30) {
  678. uni.showToast({
  679. title: '最小车长输入错误!',
  680. duration: 2000,
  681. icon: "none",
  682. });
  683. return true
  684. }
  685. }
  686. if (this.dataObj.carLength) {
  687. if (this.dataObj.carLength < 2 || this.dataObj.carLength > 30) {
  688. uni.showToast({
  689. title: '最大车长输入错误!',
  690. duration: 2000,
  691. icon: "none",
  692. });
  693. return true
  694. }
  695. }
  696. if (this.dataObj.carLengthSmall && this.dataObj.carLength && (Number(this.dataObj.carLengthSmall) > Number(
  697. this.dataObj
  698. .carLength))) {
  699. uni.showToast({
  700. title: '最小车长应小于最大车长!',
  701. duration: 2000,
  702. icon: "none",
  703. });
  704. return true
  705. }
  706. if (this.dataObj.loadWeightSmall) {
  707. if (
  708. this.dataObj.loadWeightSmall < 0.1 || this.dataObj.loadWeightSmall > 100 || (
  709. String(this.dataObj.loadWeightSmall).indexOf('.') != -1 && String(tthis.dataObj
  710. .loadWeightSmall).length -
  711. (String(this.dataObj.loadWeightSmall).indexOf(
  712. '.') + 1) > 3)
  713. ) {
  714. uni.showToast({
  715. title: '载量输入错误!',
  716. duration: 2000,
  717. icon: "none",
  718. });
  719. return true
  720. }
  721. }
  722. if (this.dataObj.loadWeight) {
  723. if (
  724. this.dataObj.loadWeight < 0.1 || this.dataObj.loadWeight > 100 || (
  725. String(this.dataObj.loadWeight).indexOf('.') != -1 && String(tthis.dataObj.loadWeight).length -
  726. (String(this.dataObj.loadWeight).indexOf(
  727. '.') + 1) > 3)
  728. ) {
  729. uni.showToast({
  730. title: '载量输入错误!',
  731. duration: 2000,
  732. icon: "none",
  733. });
  734. return true
  735. }
  736. }
  737. if (this.dataObj.loadWeightSmall && this.dataObj.loadWeight && (Number(this.dataObj.loadWeightSmall) >
  738. Number(this.dataObj
  739. .loadWeight))) {
  740. uni.showToast({
  741. title: '最小载重应小于最大载重!',
  742. duration: 2000,
  743. icon: "none",
  744. });
  745. return true
  746. }
  747. },
  748. confirmClick() {
  749. uni.$u.throttle(this.requestdata, 500)
  750. },
  751. requestdata(){
  752. // // #ifdef APP-PLUS
  753. // if (this.alertTitle == '账号审核中') {
  754. // if (uni.getSystemInfoSync().platform == 'ios') {
  755. // plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
  756. // } else if (uni.getSystemInfoSync().platform == 'android') {
  757. // plus.runtime.quit();
  758. // }
  759. // return
  760. // }
  761. // // #endif
  762. // if (this.alertTitle == '身份信息未认证,去认证?') {
  763. // uni.switchTab({
  764. // url: '/pages/mine/index'
  765. // })
  766. // return
  767. // }
  768. // this.isShowAlert = false
  769. if (this.dataObj.billingMethod == '元/吨') {
  770. this.dataObj.billingMethod = 0
  771. } else {
  772. this.dataObj.billingMethod = 1
  773. }
  774. if (this.dataObj.freightAdvance) {
  775. this.dataObj.freightAdvance = 1
  776. } else {
  777. this.dataObj.freightAdvance = 0
  778. }
  779. if(!this.dataObj.receiverIdcard){
  780. this.dataObj.receiverIdcard=''
  781. }
  782. if(!this.dataObj.receiverCreditCode){
  783. this.dataObj.receiverCreditCode=''
  784. }
  785. let _list = []
  786. for (let i = 0; i < this.checkboxValue1.length; i++) {
  787. if (this.checkboxValue1[i] == '不限') {
  788. _list.push(1)
  789. } else if (this.checkboxValue1[i] == '高栏') {
  790. _list.push(2)
  791. } else if (this.checkboxValue1[i] == '集装箱') {
  792. _list.push(3)
  793. } else if (this.checkboxValue1[i] == '自卸车') {
  794. _list.push(4)
  795. }
  796. }
  797. this.dataObj.carModel = _list.toString()
  798. this.dataObj.commonId = this.userInfo.id
  799. this.$request.baseRequest('post', '/publishTaskInfo/api/addTask', this.dataObj).then(res => {
  800. uni.removeStorage({
  801. key: 'storage_saddress'
  802. });
  803. uni.removeStorage({
  804. key: 'storage_faddress'
  805. });
  806. uni.removeStorage({
  807. key: 'releaseCargoOwner'
  808. });
  809. uni.removeStorage({
  810. key: 'releasecompId'
  811. });
  812. this.$refs.uToast.show({
  813. type: 'success',
  814. message: "发布成功",
  815. complete() {
  816. _this.dataObj = {
  817. commonId: '',
  818. cargoOwner: '',
  819. sendPrivate: '',
  820. sendCity: '',
  821. sendArea: '',
  822. sendDetailedAddress: '',
  823. unloadPrivate: '',
  824. unloadCity: '',
  825. unloadArea: '',
  826. unloadDetailedAddress: '',
  827. distance: '',
  828. goodsName: '',
  829. billingMethod: '元/吨',
  830. freightPrice: '',
  831. freightAdvance: true,
  832. sender: '',
  833. senderPhone: '',
  834. receiver: '',
  835. receiverPhone: '',
  836. weight: '',
  837. loadingDateStart: '',
  838. loadingDateEnd: '',
  839. carLengthSmall: '',
  840. carLength: '',
  841. loadWeightSmall: '',
  842. loadWeight: '',
  843. carModel: '',
  844. taskDescription: '',
  845. taskValidity: '',
  846. sendLongitude: '',
  847. sendLatitude: '',
  848. unsendLongitude: '',
  849. unsendLatitude: '',
  850. }
  851. _this.checkboxValue1 = ['不限']
  852. // uni.$u.route("/pages/release/record")
  853. }
  854. })
  855. this.isShowAlert = false
  856. })
  857. .catch(res => {
  858. uni.showToast({
  859. title: res.message,
  860. icon: 'none',
  861. duration: 2000
  862. })
  863. });
  864. },
  865. cancelClick() {
  866. this.isShowAlert = false
  867. },
  868. //获取默认发货地、收货地
  869. getDefaultPlace(type) {
  870. // 0时获取默认发货地址,1时获取默认收货地址 通过选择获取的地址无需获取默认地址
  871. uni.showLoading({
  872. mask: true,
  873. title: '加载中...'
  874. })
  875. this.$request.baseRequest('get', '/cargoOwnerAddressInfo/addressList', {
  876. commonId: this.userInfo.id
  877. }).then(res => {
  878. for (let i = 0; i < res.data.length; i++) {
  879. if (res.data[i].defaultShipment == 1 && type == 0) {
  880. this.dataObj.sendCity = res.data[i].city
  881. this.dataObj.sendArea = res.data[i].area
  882. this.dataObj.sendPrivate = res.data[i].province
  883. this.dataObj.sendDetailedAddress = res.data[i].detailedAddress
  884. this.dataObj.sendLongitude = res.data[i].longitude
  885. this.dataObj.sendLatitude = res.data[i].latitude
  886. this.dataObj.sender = res.data[i].contacts
  887. this.dataObj.senderPhone = res.data[i].contactPhone
  888. }
  889. if (res.data[i].defaultReceipt == 1 && type == 1) {
  890. this.dataObj.unloadDetailedAddress = res.data[i].detailedAddress
  891. this.dataObj.unloadCity = res.data[i].city
  892. this.dataObj.unloadArea = res.data[i].area
  893. this.dataObj.unloadPrivate = res.data[i].province
  894. this.dataObj.unsendLongitude = res.data[i].longitude
  895. this.dataObj.unsendLatitude = res.data[i].latitude
  896. this.dataObj.receiver = res.data[i].contacts
  897. this.dataObj.receiverPhone = res.data[i].contactPhone
  898. }
  899. }
  900. if (this.dataObj.sendLatitude && this.dataObj.sendLongitude && this.dataObj.unsendLatitude &&
  901. this.dataObj.unsendLongitude) {
  902. this.dataObj.distance = this.$helper.getDistance(this.dataObj.unsendLatitude, this.dataObj
  903. .unsendLongitude, this.dataObj.sendLatitude, this.dataObj.sendLongitude)
  904. }
  905. uni.hideLoading()
  906. })
  907. .catch(res => {
  908. uni.showToast({
  909. title: res.message,
  910. icon: 'none',
  911. duration: 2000
  912. })
  913. });
  914. },
  915. changeHandler(e) {
  916. const {
  917. columnIndex,
  918. value,
  919. values,
  920. index,
  921. picker = this.$refs.uPicker
  922. } = e
  923. // if (columnIndex === 0) {
  924. //
  925. // if (e.index != 0) {
  926. // picker.setColumnValues(1, this.validityPeriod[1].shift())
  927. // }
  928. // } else if (columnIndex === 1) {
  929. // if (e.index != 0) {
  930. // picker.setColumnValues(2, this.validityPeriod[2].shift())
  931. // }
  932. // }
  933. },
  934. selectCargoOwnerClose() {
  935. this.show = false
  936. },
  937. confirmSelectCargoOwner(e) {
  938. this.dataObj.cargoOwner = e.value[0]
  939. for (let i = 0; i < this.qyList.length; i++) {
  940. let _name = this.qyList[i].company ? this.qyList[i].company : this.qyList[i].companyName
  941. if (_name == e.value[0]) {
  942. if(e.value[0]!='个人货主'){
  943. if(this.qyList[i].compStatus=='ss'){
  944. this.dataObj.compId=this.qyList[i].compId
  945. }else{
  946. this.dataObj.compId=this.qyList[i].id
  947. }
  948. console.log(this.qyList[i].compStatus,this.dataObj.compId)
  949. uni.setStorageSync('releasecompId', this.dataObj.compId)
  950. }
  951. this.dataObj.freightAdvance = this.qyList[i].advanceFreightService == 1 ? true : false
  952. }
  953. }
  954. uni.setStorageSync('releaseCargoOwner', this.dataObj.cargoOwner)
  955. this.show = false
  956. },
  957. selectCargoOwner() {
  958. this.show = true
  959. },
  960. selectAddress(type) {
  961. // uni.removeStorage({
  962. // key: 'storage_faddress'
  963. // });
  964. // uni.removeStorage({
  965. // key: 'storage_saddress'
  966. // });
  967. uni.$u.route('/pages/release/selectAddress', {
  968. type: type,
  969. });
  970. },
  971. checkboxChange(n) {
  972. if (n.length > 1 && n.length < 4 && n.includes('不限')) {
  973. n.shift(0)
  974. } else if (n.length == 4) {
  975. this.checkboxValue1 = n.splice(1, 4)
  976. }
  977. },
  978. selectValidityPeriodcq() {
  979. this.isShowcardValidity = true
  980. },
  981. confirmValidityPeriod(e) {
  982. if (e.value[0] == '随时') {
  983. switch (this.ValidityPeriodType) {
  984. case 0:
  985. this.dataObj.loadingDateStart = e.value[0]
  986. break
  987. case 1:
  988. this.dataObj.loadingDateEnd = e.value[0]
  989. break
  990. }
  991. } else {
  992. if (!e.value[1] || !e.value[2]) {
  993. this.$refs.uToast.show({
  994. type: 'error',
  995. message: "日期格式错误,请重新选择!",
  996. })
  997. return
  998. }
  999. switch (this.ValidityPeriodType) {
  1000. case 0:
  1001. this.dataObj.loadingDateStart = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  1002. break
  1003. case 1:
  1004. this.dataObj.loadingDateEnd = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  1005. break
  1006. }
  1007. }
  1008. this.isShowValidity = false
  1009. },
  1010. getTime: function() {
  1011. var date = new Date().getTime()
  1012. year = date.getFullYear(),
  1013. month = date.getMonth() + 1,
  1014. day = date.getDate(),
  1015. month >= 1 && month <= 9 ? (month = "0" + month) : "";
  1016. day >= 0 && day <= 9 ? (day = "0" + day) : "";
  1017. var timer = year + '-' + month + '-' + day
  1018. return timer;
  1019. },
  1020. confirmValidityPeriodcq(e) {
  1021. if (e.value[0] == '长期') {
  1022. if(e.value[1]||e.value[2]){
  1023. this.$refs.uToast.show({
  1024. type: 'error',
  1025. message: "选择长期时不允许选择月日!",
  1026. })
  1027. return
  1028. }
  1029. this.dataObj.taskValidity = e.value[0]
  1030. } else {
  1031. if (!e.value[1] || !e.value[2]) {
  1032. this.$refs.uToast.show({
  1033. type: 'error',
  1034. message: "日期格式错误,请重新选择!",
  1035. })
  1036. return
  1037. }
  1038. var datetime = new Date().getTime()
  1039. var datetime1 = datetime + (24 * 60 * 60 * 1000 * 30 * 6)
  1040. var currecttime = new Date(e.value[0] + '-' + e.value[1] + '-' + e.value[2]).getTime()
  1041. if (currecttime < datetime || currecttime > datetime1) {
  1042. this.$refs.uToast.show({
  1043. type: 'error',
  1044. message: "请选择未来六个月之内的日期!",
  1045. })
  1046. } else {
  1047. this.dataObj.taskValidity = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  1048. this.isShowcardValidity = false
  1049. }
  1050. console.log(datetime, currecttime)
  1051. }
  1052. },
  1053. selectValidityPeriod(type) {
  1054. this.ValidityPeriodType = type
  1055. this.isShowValidity = true
  1056. },
  1057. change(e) {
  1058. console.log('change', e);
  1059. },
  1060. back() {
  1061. uni.navigateBack({
  1062. delta: 1
  1063. })
  1064. },
  1065. goToRecord() {
  1066. uni.$u.route('/pages/release/record');
  1067. },
  1068. radioChange(n) {
  1069. this.dataDetails.type = n
  1070. },
  1071. submit() {
  1072. if (this.validate()) return
  1073. if (this.dataObj.cargoOwner == '个人货主') {
  1074. this.dataObj.compId == ""
  1075. } else {
  1076. for (let i = 0; i < this.qyList.length; i++) {
  1077. if (this.dataObj.cargoOwner == this.qyList[i].companyName) {
  1078. this.dataObj.compId = this.qyList[i].id
  1079. break
  1080. }
  1081. }
  1082. }
  1083. this.isShowAlert = true;
  1084. },
  1085. }
  1086. }
  1087. </script>
  1088. <style scoped lang="scss">
  1089. .input {
  1090. text-align: right;
  1091. }
  1092. .content {
  1093. height: 100vh;
  1094. overflow: scroll;
  1095. }
  1096. .title {
  1097. padding: 0 20rpx;
  1098. display: flex;
  1099. justify-content: center;
  1100. position: relative;
  1101. .nav-title {
  1102. font-size: 32rpx;
  1103. }
  1104. .back {
  1105. position: absolute;
  1106. left: 20rpx;
  1107. }
  1108. .search {
  1109. display: flex;
  1110. align-items: center;
  1111. position: absolute;
  1112. right: 20rpx;
  1113. }
  1114. }
  1115. .fixed1 {
  1116. height: var(--status-bar-height);
  1117. }
  1118. .row {
  1119. display: flex;
  1120. justify-content: space-between;
  1121. }
  1122. .content1 {
  1123. background: white;
  1124. margin: 40rpx 20rpx 0 20rpx;
  1125. border-radius: 20rpx;
  1126. padding: 40rpx;
  1127. .select-sf {
  1128. color: #171717;
  1129. font-size: 34rpx;
  1130. font-weight: 600;
  1131. }
  1132. .select-sf1 {
  1133. color: #999999;
  1134. }
  1135. .right {
  1136. color: #CBCBCB
  1137. }
  1138. }
  1139. .content2,
  1140. .content3,
  1141. .content5 {
  1142. box-sizing: border-box;
  1143. background: white;
  1144. border-radius: 20rpx;
  1145. padding: 20rpx;
  1146. margin: 20rpx;
  1147. .row {
  1148. margin: 30rpx;
  1149. }
  1150. .row1,
  1151. .row2 {
  1152. display: flex;
  1153. justify-content: space-between;
  1154. align-items: center;
  1155. .left .top {
  1156. display: flex;
  1157. }
  1158. }
  1159. }
  1160. .select-type {
  1161. display: flex;
  1162. justify-content: flex-end;
  1163. }
  1164. .top-title {
  1165. background: #fff;
  1166. padding: 20rpx;
  1167. position: fixed;
  1168. z-index: 100;
  1169. top: 0;
  1170. box-sizing: border-box;
  1171. width: 100%;
  1172. }
  1173. .content2 {
  1174. padding: 40rpx;
  1175. .row1,
  1176. .row2 {
  1177. .left {
  1178. width: 100%;
  1179. }
  1180. .right {
  1181. color: #CBCBCB
  1182. }
  1183. }
  1184. .row2 {
  1185. margin-top: 40rpx;
  1186. }
  1187. .top {
  1188. display: flex;
  1189. align-items: center;
  1190. }
  1191. .bottom {
  1192. margin-top: 10rpx;
  1193. padding-left: 72rpx;
  1194. }
  1195. .title {
  1196. font-size: 36rpx;
  1197. font-weight: 700;
  1198. color: #171717;
  1199. }
  1200. .collect {
  1201. width: 40rpx;
  1202. height: 40rpx;
  1203. line-height: 40rpx;
  1204. background: #2772FB;
  1205. color: white;
  1206. padding: 6rpx;
  1207. border-radius: 50%;
  1208. text-align: center;
  1209. }
  1210. .send {
  1211. width: 40rpx;
  1212. height: 40rpx;
  1213. line-height: 40rpx;
  1214. background: #101010;
  1215. color: white;
  1216. padding: 6rpx;
  1217. border-radius: 50%;
  1218. text-align: center;
  1219. }
  1220. }
  1221. .content3 {}
  1222. .content4 {
  1223. margin: 20rpx;
  1224. padding-left: 20rpx;
  1225. .title {
  1226. color: #999999;
  1227. }
  1228. .btn-text {
  1229. color: #2772FB;
  1230. border: 1px solid #2772FB;
  1231. border-radius: 40rpx;
  1232. padding: 0rpx 10rpx;
  1233. box-sizing: border-box;
  1234. }
  1235. }
  1236. .submit {
  1237. width: 90%;
  1238. margin: 100rpx auto;
  1239. font-size: 36rpx;
  1240. font-weight: 500;
  1241. color: #FFFFFF;
  1242. background: #2772FB;
  1243. text-align: center;
  1244. padding: 20rpx 0;
  1245. border-radius: 50rpx;
  1246. }
  1247. .select-data {
  1248. color: #999999;
  1249. }
  1250. .row-bgc {
  1251. background: #F7F8FA;
  1252. padding: 20rpx 30rpx;
  1253. box-sizing: border-box;
  1254. border-radius: 10rpx;
  1255. }
  1256. .car-input {
  1257. // padding:20rpx;
  1258. // box-sizing: border-box;
  1259. // border-radius: 10px;
  1260. }
  1261. .car-line {
  1262. margin: 0 20rpx;
  1263. }
  1264. .car-row {
  1265. display: flex;
  1266. background: white;
  1267. padding: 20rpx;
  1268. box-sizing: border-box;
  1269. border-radius: 10rpx;
  1270. }
  1271. </style>