publishSource.vue 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652
  1. <template>
  2. <view class="content">
  3. <view class="content2">
  4. <view class="row1">
  5. <view class="left">
  6. <view class="top" @click="selectAddress(0)">
  7. <view class="send">装</view>
  8. <view class="title">
  9. {{dataObj.sendArea?(dataObj.sendPrivate + dataObj.sendCity+dataObj.sendArea):'选择装货地区'}}
  10. </view>
  11. </view>
  12. <view class="bottom">
  13. <input type="text" value="" placeholder="输入详细地址" v-model="dataObj.sendDetailedAddress" />
  14. </view>
  15. </view>
  16. <view class="right" @click="selectAddress(0)" v-if="!dataObj.sendArea">
  17. <view v-if='dataObj.sendArea' class="right"></view>
  18. <view class="right" v-else>
  19. <image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;">
  20. </image>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="row2">
  25. <view class="left">
  26. <view class="top" @click="selectAddress(1)">
  27. <view class="collect">卸</view>
  28. <view class="title">
  29. {{dataObj.unloadArea?(dataObj.unloadPrivate + dataObj.unloadCity+dataObj.unloadArea):'选择卸货地区'}}
  30. </view>
  31. </view>
  32. <view class="bottom">
  33. <input type="text" value="" placeholder="输入详细地址" v-model="dataObj.unloadDetailedAddress" />
  34. </view>
  35. </view>
  36. <view class="right" @click="selectAddress(1)" v-if="!dataObj.unloadArea">
  37. <view v-if='dataObj.unloadArea' class="right">{{(dataObj.unloadCity+dataObj.unloadArea)}}</view>
  38. <view class="right" v-else>
  39. <image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;">
  40. </image>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="content3">
  46. <view class="row">
  47. <view class="left">预估总里程</view>
  48. {{dataObj.cargoDistance }}
  49. km
  50. </view>
  51. </view>
  52. <view class="content3">
  53. <view class="row" @click="isShowPopup1=true">
  54. <view class="left">货物信息</view>
  55. <view class="right flex">
  56. {{dataObj.goodsName?dataObj.goodsName+'、'+dataObj.packageType+'、'+dataObj.weight:"完善货物信息"}}
  57. <u-icon name="arrow-right" size="20"></u-icon>
  58. </view>
  59. </view>
  60. <view class="row" @click="isShowPopup2=true">
  61. <view class="left">车型车长</view>
  62. <view class="right flex">{{dataObj.carModel?dataObj.carModel+'、'+dataObj.carLength:"选择车型车长"}}<u-icon
  63. name="arrow-right" size="20"></u-icon></view>
  64. </view>
  65. </view>
  66. <view class="content3">
  67. <view class="row">
  68. <view class="left">运价单位</view>
  69. <view class="btn flex">
  70. <view class="price-item" :class="index==priceIndex?'active':''" v-for="(item,index) in priceBtnList"
  71. @click="selectPriceType(item,index)">
  72. <view class="">
  73. {{item.name}}
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="row y-price flex">
  79. <view class="left">运价</view>
  80. <view class="right" v-if="priceBtnType==0">
  81. <input type="number" value="" placeholder="输入运费单价" class="input" v-model="dataObj.freightPrice" />
  82. </view>
  83. <view class="right" v-if="priceBtnType==1">
  84. <input type="number" value="" placeholder="输入车数" class="input" v-model="dataObj.freightPrice" />
  85. </view>
  86. <view class="right" v-if="priceBtnType==2">
  87. <input type="number" value="" placeholder="输入方数" class="input" v-model="dataObj.freightPrice" />
  88. </view>
  89. </view>
  90. </view>
  91. <view class="content3">
  92. <view class="row" @click="isShowPopup3=true">
  93. <view class="left">货站信息</view>
  94. <view class="right flex row-ellipsis">
  95. {{dataObj.contacts?dataObj.contacts+'、'+dataObj.contactsPhone+'、'+dataObj.freightStationName:"完善货站信息"}}
  96. <u-icon name="arrow-right" size="20"></u-icon>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="content5">
  101. <view class="flex row" @click="selectValidityPeriod(0)">
  102. <view class="left">装车日期</view>
  103. <view class="right flex">
  104. {{dataObj.loadingDate?dataObj.loadingDate:"选择装车日期"}}
  105. <u-icon name="arrow-right" size="20"></u-icon>
  106. </view>
  107. </view>
  108. <view class="flex row" @click="selectValidityPeriod(1)">
  109. <view class="left-text">时段</view>
  110. <view class="right flex">
  111. {{dataObj.periodOfTime?dataObj.periodOfTime:'选择装时段'}}
  112. <u-icon name="arrow-right" size="20"></u-icon>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="content5">
  117. <view class="row">
  118. <view class="left">备注(选填)</view>
  119. </view>
  120. <view class="row">
  121. <u--textarea v-model="dataObj.remark" placeholder="请输入内容" :count='true' maxlength='500'>
  122. </u--textarea>
  123. </view>
  124. <view class="cartype-item" style="font-size: 24rpx;" :class="item.checked?'active':''"
  125. v-for="(item,index) in remarkList" @click="selectRemarkType(item,index)">
  126. <view class="">
  127. {{item.name}}
  128. </view>
  129. </view>
  130. </view>
  131. <view class="content5">
  132. <view class="row">
  133. <view class="left">货站信息费</view>
  134. <view class="right flex"><input type="number" value="" placeholder="输入信息费金额" class="input"
  135. v-model="dataObj.stationFee" /><text style="width: 100rpx;">元/吨</text></view>
  136. </view>
  137. </view>
  138. <view class="">
  139. <view class="submit" @click="goodsSubmit">发布货源</view>
  140. </view>
  141. <u-popup :show="isShowPopup1" :round="10" closeable safeAreaInsetBottom @close="isShowPopup1=false">
  142. <view style="padding: 60rpx 40rpx;" class="popup">
  143. <view class="title">
  144. 货物信息
  145. </view>
  146. <u--form labelPosition="left" :model="dataObj" ref="uForm">
  147. <u-form-item label="货名" prop="contacts" borderBottom labelWidth="140rpx">
  148. <u--input v-model="dataObj.goodsName" border="none" placeholder="输入货名"
  149. inputAlign='right'></u--input>
  150. </u-form-item>
  151. <u-form-item label="包装类型" prop="contacts" borderBottom labelWidth="140rpx">
  152. <view style="display: flex;justify-content: flex-end;width: 100%;">
  153. <view class="price-item" :class="index==bzIndex?'active':''"
  154. v-for="(item,index) in packageTypePickerColumns" @click="selectBzType(item,index)">
  155. <view class="">
  156. {{item}}
  157. </view>
  158. </view>
  159. </view>
  160. </u-form-item>
  161. <u-form-item label="计量方式" borderBottom labelWidth="140rpx">
  162. <view style="display: flex;justify-content: flex-end;width: 100%;">
  163. <view class="price-item" :class="item.checked?'active':''"
  164. v-for="(item,index) in measuringMethodList" @click="selectJlType(item,index)">
  165. <view class="">
  166. {{item.name}}
  167. </view>
  168. </view>
  169. </view>
  170. </u-form-item>
  171. <u-form-item label="货物重量" borderBottom labelWidth="140rpx" v-if="measuringMethodList[0].checked">
  172. <u--input v-model="dataObj.weight" border="none" placeholder="输入重量"
  173. inputAlign='right'></u--input><text style="margin-left: 10rpx;">吨</text>
  174. </u-form-item>
  175. <u-form-item label="货物体积" borderBottom labelWidth="140rpx" v-if="measuringMethodList[1].checked">
  176. <u--input v-model="dataObj.volume" border="none" placeholder="输入体积"
  177. inputAlign='right'></u--input><text style="margin-left: 10rpx;">方</text>
  178. </u-form-item>
  179. <u-form-item label="预计用车数量" labelWidth="200rpx">
  180. <u--input v-model="dataObj.expectedNum" border="none" placeholder="输入用车数量"
  181. inputAlign='right'></u--input><text style="margin-left: 10rpx;">辆</text>
  182. </u-form-item>
  183. <!-- <u-form-item label="货站名称" prop="contacts" borderBottom labelWidth="140rpx">
  184. <u--input v-model="dataObj.freightStationName" border="none" placeholder="输入货站名称,不超过10个字"
  185. inputAlign='right'></u--input>
  186. </u-form-item> -->
  187. </u--form>
  188. <view class="submit" @click="goodsInfoSubmit">完成</view>
  189. </view>
  190. </u-popup>
  191. <u-popup :show="isShowPopup2" :round="10" closeable safeAreaInsetBottom @close="isShowPopup2=false">
  192. <view style="padding: 60rpx 40rpx;" class="popup">
  193. <view class="title">
  194. 车型车长
  195. </view>
  196. <view class="">
  197. 选择车型 <text style="color:rgb(170, 170, 170);margin-left: 20rpx;">(1-3个)</text>
  198. </view>
  199. <view class="cartype-item" :class="item.checked?'active':''" v-for="(item,index) in carTypeList"
  200. @click="selectCarType(item,index)">
  201. <view class="">
  202. {{item.name}}
  203. </view>
  204. </view>
  205. <view class="" style="margin: 40rp 0;">
  206. 选择车长 <text style="color:rgb(170, 170, 170);margin-left: 20rpx;">(1-3个)</text>
  207. </view>
  208. <view class="cartype-item" :class="item.checked?'active':''" v-for="(item,index) in carLengthList"
  209. @click="selectCarLength(item,index)">
  210. <view class="">
  211. {{item.name}}
  212. </view>
  213. </view>
  214. <view class="submit" @click="carInfoSubmit">完成</view>
  215. </view>
  216. </u-popup>
  217. <u-popup :show="isShowPopup3" :round="10" closeable safeAreaInsetBottom @close="isShowPopup3=false">
  218. <view style="padding: 60rpx 40rpx;" class="popup">
  219. <view class="title">
  220. 货站信息
  221. </view>
  222. <u--form labelPosition="left" :model="dataObj" ref="uForm">
  223. <u-form-item label="联系人" borderBottom labelWidth="140rpx">
  224. <u--input v-model="dataObj.contacts" border="none" placeholder="输入联系人姓名"
  225. inputAlign='right'></u--input>
  226. </u-form-item>
  227. <u-form-item label="联系人电话" borderBottom labelWidth="160rpx">
  228. <u--input v-model="dataObj.contactsPhone" border="none" placeholder="输入联系人"
  229. inputAlign='right'></u--input>
  230. </u-form-item>
  231. <u-form-item label="货站名称" labelWidth="140rpx">
  232. <u--input v-model="dataObj.freightStationName" border="none" placeholder="输入货站名称,不超过10个字"
  233. inputAlign='right'></u--input>
  234. </u-form-item>
  235. </u--form>
  236. <view class="submit" @click="isShowPopup3=false">完成</view>
  237. </view>
  238. </u-popup>
  239. <u-popup :show="isShowPopup4" :round="10" closeable safeAreaInsetBottom @close="isShowPopup4=false">
  240. <view style="padding: 60rpx 40rpx;" class="popup">
  241. <view class="title">
  242. 装车时间
  243. </view>
  244. <u-line></u-line>
  245. <view class="select-date">
  246. <view class="title-two">
  247. 选择日期
  248. </view>
  249. <view class="date-list">
  250. <view class="date-list-item" :class="item.checked?'active':''" v-for="(item,index) in dateList"
  251. @click="selectDate(item,index)">
  252. {{index==0?"今天"+item.date:item.date}}
  253. </view>
  254. </view>
  255. <view class="title-two">
  256. 选择时段
  257. </view>
  258. <view class="row flex" style="margin-bottom: 20rpx;">
  259. <view class="" style="flex: 1;text-align: center;">
  260. 开始时间
  261. </view>
  262. <view class="" style="flex: 1;text-align: center;">
  263. 结束时间
  264. </view>
  265. </view>
  266. <picker-view class="picker" :value="value" @change="getime">
  267. <picker-view-column>
  268. <view class="hours" style="line-height:30px; text-align: center;"
  269. v-for="(item,index) in hoursList" :key="index">{{item}}</view>
  270. </picker-view-column>
  271. <picker-view-column>
  272. <view class="hours" style="line-height:30px; text-align: center;"
  273. v-for="(item,index) in hoursList" :key="index">{{item}}</view>
  274. </picker-view-column>
  275. </picker-view>
  276. </view>
  277. <view class="submit" @click="dateInfoSubmit" v-if="isCanBeSubmit">完成</view>
  278. <view class="fa-submit" v-if="!isCanBeSubmit">
  279. 完成
  280. </view>
  281. </view>
  282. </u-popup>
  283. <!-- <u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='false'
  284. :showCancelButton='showCancelButton' confirmColor='#F5BA3C' @confirm="$u.throttle(confirmClick(), 1000)"
  285. @close="cancelClick" @cancel="cancelClick"></u-modal>
  286. <u-modal :show="isShowAlert1" :title="alertTitle" :confirmText='confirmText' :content='alertContent'
  287. :closeOnClickOverlay='false' :showCancelButton='showCancelButton' confirmColor='#F5BA3C'
  288. @confirm="$u.throttle(confirmClick(), 1000)" @close="cancelClick" @cancel="cancelClick"></u-modal> -->
  289. <u-toast ref="uToast"></u-toast>
  290. </view>
  291. </template>
  292. <script>
  293. var _this;
  294. import {
  295. mapState
  296. } from 'vuex';
  297. export default {
  298. data() {
  299. return {
  300. isCanBeSubmit: true,
  301. isEdit: false,
  302. isCopy: false,
  303. hoursList: [
  304. '00:00',
  305. '00:30',
  306. '01:00',
  307. '01:30',
  308. '02:00',
  309. '02:30',
  310. '03:00',
  311. '03:30',
  312. '04:00',
  313. '04:30',
  314. '05:00',
  315. '05:30',
  316. '06:00',
  317. '06:30',
  318. '07:00',
  319. '07:30',
  320. '08:00',
  321. '08:30',
  322. '09:00',
  323. '09:30',
  324. '10:00',
  325. '10:00',
  326. '11:00',
  327. '11:30',
  328. '12:00',
  329. '12:30',
  330. '13:00',
  331. '13:30',
  332. '14:00',
  333. '14:30',
  334. '15:00',
  335. '15:30',
  336. '16:00',
  337. '16:30',
  338. '17:00',
  339. '17:30',
  340. '18:00',
  341. '18:30',
  342. '19:00',
  343. '19:30',
  344. '20:00',
  345. '20:30',
  346. '21:00',
  347. '21:30',
  348. '22:00',
  349. '22:30',
  350. '23:00',
  351. '23:30'
  352. ],
  353. value: ["18", "34"],
  354. checkTime: ["09:00", "17:00"],
  355. dateCheckList: [],
  356. dateList: [],
  357. jlLindex: 0,
  358. bzIndex: 0,
  359. priceIndex: 0,
  360. measuringMethodList: [{
  361. name: '重量(吨)',
  362. checked: true,
  363. },
  364. {
  365. name: '体积(方)',
  366. checked: false,
  367. }
  368. ],
  369. jlCheckList: ['重量(吨)'],
  370. carLengthCheckList: ['不限'],
  371. carTypeCheckList: [],
  372. carLengthList: [{
  373. name: '不限',
  374. checked: false
  375. },
  376. {
  377. name: '2',
  378. checked: false
  379. },
  380. {
  381. name: '3',
  382. checked: false
  383. },
  384. {
  385. name: '4',
  386. checked: false
  387. },
  388. {
  389. name: '5',
  390. checked: false
  391. },
  392. {
  393. name: '6',
  394. checked: false
  395. },
  396. {
  397. name: '7',
  398. checked: false
  399. },
  400. {
  401. name: '8',
  402. checked: false
  403. },
  404. {
  405. name: '9',
  406. checked: false
  407. },
  408. {
  409. name: '10',
  410. checked: false
  411. },
  412. {
  413. name: '11',
  414. checked: false
  415. },
  416. {
  417. name: '12',
  418. checked: false
  419. },
  420. {
  421. name: '13',
  422. checked: false
  423. },
  424. {
  425. name: '14',
  426. checked: false
  427. },
  428. {
  429. name: '15',
  430. checked: false
  431. },
  432. {
  433. name: '16',
  434. checked: false
  435. },
  436. {
  437. name: '17',
  438. checked: false
  439. },
  440. {
  441. name: '18',
  442. checked: false
  443. }
  444. ],
  445. carTypeList: [{
  446. name: '高栏',
  447. checked: false
  448. },
  449. {
  450. name: '集装箱',
  451. checked: false
  452. },
  453. {
  454. name: '平板',
  455. checked: false
  456. },
  457. {
  458. name: '厢式',
  459. checked: false
  460. },
  461. {
  462. name: '自卸',
  463. checked: false
  464. },
  465. {
  466. name: '冷藏车',
  467. checked: false
  468. },
  469. {
  470. name: '保温车',
  471. checked: false
  472. },
  473. {
  474. name: '轻型',
  475. checked: false
  476. }
  477. ],
  478. packageTypePickerColumns: ['散装', '袋装', '其他'],
  479. packageTypePicker: false,
  480. isShowPopup1: false,
  481. isShowPopup2: false,
  482. isShowPopup3: false,
  483. isShowPopup4: false,
  484. remarkCheckList: [],
  485. remarkList: [{
  486. name: "到付",
  487. checked: false,
  488. },
  489. {
  490. name: "需防雨",
  491. checked: false,
  492. },
  493. {
  494. name: "不压车",
  495. checked: false,
  496. }, {
  497. name: "合规运输",
  498. checked: false,
  499. }
  500. ],
  501. priceBtnType: '0',
  502. priceBtnList: [{
  503. name: '吨',
  504. index: 0
  505. },
  506. {
  507. name: '车',
  508. index: 1
  509. },
  510. {
  511. name: '方',
  512. index: 2
  513. }
  514. ],
  515. showCancelButton: true,
  516. qyList: [],
  517. isShowAlert: false,
  518. alertTitle: '确定发布运输任务?',
  519. alertContent: null,
  520. radioCustomStyle: {
  521. margin: '0 0 0 20rpx'
  522. },
  523. freightAdvance: false,
  524. dataObj: {
  525. commonId: '',
  526. sendPrivate: '',
  527. sendCity: '',
  528. sendArea: '',
  529. sendDetailedAddress: '',
  530. unloadPrivate: '',
  531. unloadCity: '',
  532. unloadArea: '',
  533. unloadDetailedAddress: '',
  534. cargoDistance: '',
  535. goodsName: '',
  536. packageType: '散装',
  537. measuringMethod: '重量(吨)',
  538. weight: '',
  539. volume: '',
  540. expectedNum: '',
  541. carModel: '',
  542. carLength: '',
  543. billingMethod: '0',
  544. freightPrice: '',
  545. contacts: '',
  546. contactsPhone: '',
  547. freightStationName: '',
  548. loadingDate: '',
  549. periodOfTime: '',
  550. remark: '',
  551. stationFee: '',
  552. sendLongitude: '',
  553. sendLatitude: '',
  554. unsendLongitude: '',
  555. unsendLatitude: ''
  556. },
  557. confirmText: '',
  558. isShowAlert1: false,
  559. ValidityPeriodType: '',
  560. }
  561. },
  562. onShow() {
  563. if (!this.hasLogin) {
  564. uni.$u.route('/pages/public/login');
  565. return
  566. }
  567. this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
  568. phone: this.userInfo.phone
  569. }).then(res => {
  570. uni.setStorageSync("firstAuthentication", res.data)
  571. let _obj = res.data
  572. if (_obj.authenticationStatus == '已认证') {
  573. uni.$u.route('/pages/components/empty/index');
  574. } else if (_obj.authenticationStatus == '审核中') {
  575. uni.showToast({
  576. title: '身份信息审核中',
  577. icon: 'none'
  578. })
  579. } else if (_obj.authenticationStatus == '已过期') {
  580. this.alertTitle = '身份信息已过期!'
  581. this.showCancelButton = false
  582. this.confirmText = '立即修改'
  583. this.isShowAlert1 = true
  584. } else {
  585. this.alertTitle = '身份信息未认证,去认证?'
  586. this.confirmText = '确认'
  587. this.showCancelButton = false
  588. this.isShowAlert = true
  589. }
  590. })
  591. if (!this.isEdit || !this.isCopy) {
  592. let _faddress = uni.getStorageSync('storage_faddress');
  593. let _saddress = uni.getStorageSync('storage_saddress');
  594. if (_faddress) {
  595. this.dataObj.sendCity = this.$helper.filterUrban(_faddress.city)
  596. this.dataObj.sendArea = this.$helper.filterArea(_faddress.area)
  597. this.dataObj.sendAdCode = _faddress.adCode
  598. this.dataObj.sendPrivate = _faddress.province
  599. this.dataObj.sendDetailedAddress = _faddress.detailedAddress
  600. this.dataObj.sendLongitude = _faddress.longitude
  601. this.dataObj.sendLatitude = _faddress.latitude
  602. if (_faddress.contactPhone) {
  603. this.dataObj.senderPhone = _faddress.contactPhone
  604. }
  605. if (_faddress.contacts) {
  606. this.dataObj.sender = _faddress.contacts
  607. }
  608. } else {
  609. this.getDefaultPlace(0)
  610. }
  611. if (_saddress) {
  612. this.dataObj.unloadDetailedAddress = _saddress.detailedAddress
  613. this.dataObj.unloadCity = this.$helper.filterUrban(_saddress.city)
  614. this.dataObj.unloadArea = this.$helper.filterArea(_saddress.area)
  615. this.dataObj.unsendAdCode = _faddress.adCode
  616. this.dataObj.unloadPrivate = _saddress.province
  617. this.dataObj.unsendLongitude = _saddress.longitude
  618. this.dataObj.unsendLatitude = _saddress.latitude
  619. if (_saddress.contacts) {
  620. this.dataObj.receiver = _saddress.contacts
  621. }
  622. if (_saddress.contactPhone) {
  623. this.dataObj.receiverPhone = _saddress.contactPhone
  624. }
  625. } else {
  626. this.getDefaultPlace(1)
  627. }
  628. if (this.dataObj.sendLatitude && this.dataObj.sendLongitude && this.dataObj.unsendLatitude && this.dataObj
  629. .unsendLongitude) {
  630. this.dataObj.cargoDistance = this.$helper.getDistance(this.dataObj.unsendLatitude, this.dataObj
  631. .unsendLongitude,
  632. this.dataObj.sendLatitude, this.dataObj.sendLongitude)
  633. }
  634. }
  635. },
  636. onLoad(options) {
  637. if (options.type == 1) {
  638. this.isCopy = true
  639. }
  640. if (options.type == 2) {
  641. this.isEdit = true
  642. }
  643. if (options.type == 1 || options.type == 2) {
  644. this.dataObj = uni.getStorageSync("selectGoodObj")
  645. if (this.dataObj.packageType == '散装') {
  646. this.bzIndex = 0
  647. } else if (this.dataObj.packageType == '袋装') {
  648. this.bzIndex = 1
  649. } else {
  650. this.bzIndex = 2
  651. }
  652. let _carModel = this.dataObj.carModel.split(',')
  653. for (let i = 0; i < this.carTypeList.length; i++) {
  654. for (let k = 0; k < _carModel.length; k++) {
  655. if (this.carTypeList[i].name == _carModel[k]) {
  656. this.carTypeList[i].checked = true
  657. this.carTypeCheckList.push(this.carTypeList[i])
  658. }
  659. }
  660. }
  661. let _carLength = this.dataObj.carLength.split(',')
  662. for (let i = 0; i < this.carLengthList.length; i++) {
  663. for (let k = 0; k < _carLength.length; k++) {
  664. if (this.carLengthList[i].name == _carLength[k]) {
  665. this.carLengthList[i].checked = true
  666. this.carLengthCheckList.push(this.carLengthList[i].name)
  667. }
  668. }
  669. }
  670. let _measuringMethod = this.dataObj.measuringMethod.split(',')
  671. this.jlCheckList = []
  672. for (let i = 0; i < this.measuringMethodList.length; i++) {
  673. this.measuringMethodList[i].checked = false
  674. for (let k = 0; k < _measuringMethod.length; k++) {
  675. if (this.measuringMethodList[i].name == _measuringMethod[k]) {
  676. this.measuringMethodList[i].checked = true
  677. this.jlCheckList.push(this.measuringMethodList[i].name)
  678. }
  679. }
  680. }
  681. this.priceIndex = this.dataObj.billingMethod
  682. let _loadingDate = this.dataObj.loadingDate.split(',')
  683. }
  684. _this = this
  685. },
  686. computed: {
  687. ...mapState(['hasLogin', 'userInfo']),
  688. },
  689. methods: {
  690. goodsSubmit() {
  691. this.dataObj.commonId = this.userInfo.id
  692. if (this.validate()) return
  693. uni.showLoading({
  694. mask: true,
  695. title: '加载中'
  696. })
  697. console.log("this.dataObj", this.dataObj)
  698. this.dataObj.headSculpture = this.userInfo.avatarUrl
  699. if (this.isEdit) {
  700. this.$request.baseRequest('post', '/hyReleaseGoodsInfo/api/editTask', this.dataObj).then(res => {
  701. uni.hideLoading()
  702. uni.navigateBack()
  703. })
  704. .catch(res => {});
  705. } else {
  706. this.$request.baseRequest('post', '/hyReleaseGoodsInfo/api/addTask', this.dataObj).then(res => {
  707. uni.hideLoading()
  708. uni.navigateBack()
  709. })
  710. .catch(res => {});
  711. }
  712. },
  713. getime(e) {
  714. let val = e.detail.value
  715. console.log(val)
  716. this.checkTime[0] = this.hoursList[val[0]]
  717. this.checkTime[1] = this.hoursList[val[1]]
  718. if (val[0] > val[1]) {
  719. uni.showToast({
  720. icon: 'none',
  721. title: "开始时间不能大于结束时间!"
  722. })
  723. this.isCanBeSubmit = false
  724. return
  725. } else {
  726. this.isCanBeSubmit = true
  727. }
  728. console.log(this.checkTime)
  729. },
  730. selectDate(val, index) {
  731. console.log("val--index", val, index)
  732. let _startCheckIndex = ''
  733. let _endCheckIndex = ''
  734. if (this.dateCheckList.length != 0) {
  735. _startCheckIndex = this.dateCheckList[0].index
  736. _endCheckIndex = this.dateCheckList[this.dateCheckList.length - 1].index
  737. console.log("选中开始", _startCheckIndex)
  738. console.log("选中结束", _endCheckIndex)
  739. }
  740. if (this.dateCheckList.length == 0) {
  741. val.checked = !val.checked
  742. if (val.checked) {
  743. this.dateCheckList.push(val)
  744. }
  745. } else if (this.dateCheckList.length == 1) {
  746. val.checked = !val.checked
  747. if (!val.checked) {
  748. this.dateCheckList = []
  749. } else {
  750. this.dateCheckList = []
  751. if (val.index < _startCheckIndex) {
  752. for (let i = val.index; i <= _startCheckIndex; i++) {
  753. this.dateList[i].checked = true
  754. this.dateCheckList.push(this.dateList[i])
  755. }
  756. } else if (val.index > _startCheckIndex) {
  757. for (let i = _startCheckIndex; i <= val.index; i++) {
  758. console.log(i)
  759. this.dateList[i].checked = true
  760. this.dateCheckList.push(this.dateList[i])
  761. }
  762. }
  763. }
  764. } else if (this.dateCheckList.length == 2) {
  765. //点开始或点结束
  766. val.checked = !val.checked
  767. if (val.index == _startCheckIndex) {
  768. this.dateCheckList.splice(0, 1)
  769. }
  770. if (val.index == _endCheckIndex) {
  771. this.dateCheckList.splice(1, 1)
  772. }
  773. if (val.index < _startCheckIndex) {
  774. this.dateCheckList = []
  775. for (let i = val.index; i <= _endCheckIndex; i++) {
  776. this.dateList[i].checked = true
  777. this.dateCheckList.push(this.dateList[i])
  778. }
  779. }
  780. if (val.index > _endCheckIndex) {
  781. this.dateCheckList = []
  782. for (let i = _startCheckIndex; i <= val.index; i++) {
  783. this.dateList[i].checked = true
  784. this.dateCheckList.push(this.dateList[i])
  785. }
  786. }
  787. } else {
  788. let _dateCheckList = JSON.parse(JSON.stringify(this.dateCheckList))
  789. if (val.index == _startCheckIndex || val.index == _endCheckIndex) {
  790. val.checked = !val.checked
  791. for (let i = 0; i < _dateCheckList.length; i++) {
  792. if (val.index == _dateCheckList[i].index) {
  793. this.dateCheckList.splice(i, 1)
  794. }
  795. }
  796. } else if (_startCheckIndex < val.index && val.index < _endCheckIndex) {
  797. for (let i = 0; i < this.dateList.length; i++) {
  798. this.dateList[i].checked = false
  799. }
  800. this.dateCheckList = []
  801. } else if (val.index < _startCheckIndex) {
  802. this.dateCheckList = []
  803. for (let i = val.index; i <= _endCheckIndex; i++) {
  804. this.dateList[i].checked = true
  805. this.dateCheckList.push(this.dateList[i])
  806. }
  807. } else if (val.index > _endCheckIndex) {
  808. this.dateCheckList = []
  809. for (let i = _startCheckIndex; i <= val.index; i++) {
  810. console.log(i)
  811. this.dateList[i].checked = true
  812. this.dateCheckList.push(this.dateList[i])
  813. }
  814. }
  815. }
  816. console.log("this.dateCheckList", this.dateCheckList)
  817. },
  818. selectJlType(val, index) {
  819. val.checked = !val.checked
  820. if (val.checked) {
  821. this.jlCheckList.push(val.name)
  822. } else {
  823. let _jlCheckList = JSON.parse(JSON.stringify(this.jlCheckList))
  824. for (let i = 0; i < _jlCheckList.length; i++) {
  825. if (_jlCheckList[i] == val.name) {
  826. this.jlCheckList.splice(i, 1)
  827. if (this.jlCheckList.length == 0 && val.name == '重量(吨)') {
  828. this.jlCheckList.push('体积(方)')
  829. this.measuringMethodList[1].checked = true
  830. this.measuringMethodList[0].checked = false
  831. }
  832. if (this.jlCheckList.length == 0 && val.name == '体积(方)') {
  833. this.jlCheckList.push('重量(吨)')
  834. this.measuringMethodList[0].checked = true
  835. this.measuringMethodList[1].checked = false
  836. }
  837. }
  838. }
  839. }
  840. console.log('this.jlCheckList', this.jlCheckList)
  841. },
  842. selectBzType(val, index) {
  843. this.bzIndex = index
  844. this.dataObj.packageType = val
  845. },
  846. selectPriceType(val, index) {
  847. this.priceIndex = index
  848. this.priceBtnType = index
  849. this.dataObj.billingMethod = index
  850. },
  851. carInfoSubmit() {
  852. if (this.carTypeCheckList.length == 0) {
  853. uni.showToast({
  854. icon: 'none',
  855. title: "至少选择1个车型!"
  856. })
  857. return
  858. }
  859. if (this.carLengthCheckList.length == 0) {
  860. uni.showToast({
  861. icon: 'none',
  862. title: "至少选择1个车长!"
  863. })
  864. return
  865. }
  866. this.dataObj.carLength = this.carLengthCheckList.toString()
  867. this.dataObj.carModel = this.carTypeCheckList.toString()
  868. this.isShowPopup2 = false
  869. },
  870. selectRemarkType(val, index) {
  871. this.dataObj.remark += val.name + ','
  872. },
  873. selectCarType(val, index) {
  874. if (this.carTypeCheckList.length > 2 && !val.checked) {
  875. uni.showToast({
  876. icon: 'none',
  877. title: "最多选择3个车型!"
  878. })
  879. return
  880. }
  881. val.checked = !val.checked
  882. if (val.checked) {
  883. this.carTypeCheckList.push(val.name)
  884. } else {
  885. let _carTypeCheckList = JSON.parse(JSON.stringify(this.carTypeCheckList))
  886. for (let i = 0; i < _carTypeCheckList.length; i++) {
  887. if (_carTypeCheckList[i] == val.name) {
  888. this.carTypeCheckList.splice(i, 1)
  889. }
  890. }
  891. }
  892. console.log("carTypeCheckList", this.carTypeCheckList)
  893. },
  894. selectCarLength(val, index) {
  895. if (this.carLengthCheckList.length > 2 && !val.checked && index != 0) {
  896. uni.showToast({
  897. icon: 'none',
  898. title: "最多选择3个车长!"
  899. })
  900. return
  901. }
  902. this.carLengthCheckList = []
  903. val.checked = !val.checked
  904. // this.carLengthList[0].checked = false
  905. console.log(val)
  906. if (index == 0 && val.checked) {
  907. this.carLengthCheckList = ['不限']
  908. for (let i = 1; i < this.carLengthList.length; i++) {
  909. this.carLengthList[i].checked = false
  910. }
  911. console.log("this.carLengthCheckList", this.carLengthCheckList)
  912. return
  913. } else {
  914. this.carLengthList[0].checked = false
  915. }
  916. for (let i = 0; i < this.carLengthList.length; i++) {
  917. if (this.carLengthList[i].checked) {
  918. this.carLengthCheckList.push(this.carLengthList[i].name)
  919. }
  920. }
  921. },
  922. packageTypeConfirm(val) {
  923. console.log(val)
  924. this.dataObj.packageType = val.value[0]
  925. this.packageTypePicker = false
  926. },
  927. goodsInfoSubmit() {
  928. this.dataObj.measuringMethod = this.jlCheckList.toString()
  929. this.isShowPopup1 = false
  930. },
  931. dateInfoSubmit() {
  932. let _dateList = []
  933. for (let i = 0; i < this.dateCheckList.length; i++) {
  934. _dateList.push(this.dateCheckList[i].date)
  935. }
  936. this.dataObj.loadingDate = _dateList.toString()
  937. this.dataObj.periodOfTime = this.checkTime.toString()
  938. this.isShowPopup4 = false
  939. },
  940. funDate() {
  941. let timestamp = new Date(new Date().toLocaleDateString()).getTime();
  942. let basetime = 24 * 60 * 60 * 1000;
  943. for (let i = 0; i < 8; i++) {
  944. let _date = timestamp + basetime * i
  945. console.log(new Date(_date).toLocaleDateString())
  946. let _obj = {
  947. date: new Date(_date).getMonth()+1+"."+new Date(_date).getDate(),
  948. index: i,
  949. checked: false,
  950. }
  951. this.dateList.push(_obj)
  952. console.log("t_obj", _obj)
  953. }
  954. console.log(this.dateList)
  955. },
  956. validate() {
  957. if (uni.$u.test.isEmpty(this.dataObj.commonId)) {
  958. this.$refs.uToast.show({
  959. type: 'error',
  960. message: "货主不能为空!",
  961. })
  962. return true
  963. }
  964. if (uni.$u.test.isEmpty(this.dataObj.sendArea)) {
  965. this.$refs.uToast.show({
  966. type: 'error',
  967. message: "请选择装货地区!",
  968. })
  969. return true
  970. }
  971. if (uni.$u.test.isEmpty(this.dataObj.sendDetailedAddress)) {
  972. this.$refs.uToast.show({
  973. type: 'error',
  974. message: "装货详细地址不能为空!",
  975. })
  976. return true
  977. }
  978. if (uni.$u.test.isEmpty(this.dataObj.unloadArea)) {
  979. this.$refs.uToast.show({
  980. type: 'error',
  981. message: "请选择卸货地区!",
  982. })
  983. return true
  984. }
  985. if (uni.$u.test.isEmpty(this.dataObj.unloadDetailedAddress)) {
  986. this.$refs.uToast.show({
  987. type: 'error',
  988. message: "卸货详细地址不能为空!",
  989. })
  990. return true
  991. }
  992. if (uni.$u.test.isEmpty(this.dataObj.packageType)) {
  993. this.$refs.uToast.show({
  994. type: 'error',
  995. message: "包装类型不能为空!",
  996. })
  997. return true
  998. }
  999. if (uni.$u.test.isEmpty(this.dataObj.goodsName)) {
  1000. this.$refs.uToast.show({
  1001. type: 'error',
  1002. message: "货名不能为空!",
  1003. })
  1004. return true
  1005. }
  1006. if (uni.$u.test.isEmpty(this.dataObj.measuringMethod)) {
  1007. this.$refs.uToast.show({
  1008. type: 'error',
  1009. message: "计量方式不能为空!",
  1010. })
  1011. return true
  1012. }
  1013. if (this.dataObj.measuringMethod == '重量(吨)') {
  1014. if (uni.$u.test.isEmpty(this.dataObj.weight)) {
  1015. this.$refs.uToast.show({
  1016. type: 'error',
  1017. message: "货物重量不能为空!",
  1018. })
  1019. return true
  1020. }
  1021. } else if (this.dataObj.measuringMethod == '体积(方)') {
  1022. if (uni.$u.test.isEmpty(this.dataObj.volume)) {
  1023. this.$refs.uToast.show({
  1024. type: 'error',
  1025. message: "货物体积不能为空!",
  1026. })
  1027. return true
  1028. }
  1029. } else {
  1030. if (uni.$u.test.isEmpty(this.dataObj.volume) || uni.$u.test.isEmpty(this.dataObj.weight)) {
  1031. this.$refs.uToast.show({
  1032. type: 'error',
  1033. message: "货物体积、货物重量不能为空!",
  1034. })
  1035. return true
  1036. }
  1037. }
  1038. if (uni.$u.test.isEmpty(this.dataObj.expectedNum)) {
  1039. this.$refs.uToast.show({
  1040. type: 'error',
  1041. message: "预计用车数量不能为空!",
  1042. })
  1043. return true
  1044. }
  1045. if (uni.$u.test.isEmpty(this.dataObj.carModel)) {
  1046. this.$refs.uToast.show({
  1047. type: 'error',
  1048. message: "车型不能为空!",
  1049. })
  1050. return true
  1051. }
  1052. if (uni.$u.test.isEmpty(this.dataObj.carLength)) {
  1053. this.$refs.uToast.show({
  1054. type: 'error',
  1055. message: "车长不能为空!",
  1056. })
  1057. return true
  1058. }
  1059. if (uni.$u.test.isEmpty(this.dataObj.billingMethod)) {
  1060. this.$refs.uToast.show({
  1061. type: 'error',
  1062. message: "运价单位不能为空!",
  1063. })
  1064. return true
  1065. }
  1066. if (uni.$u.test.isEmpty(this.dataObj.freightPrice)) {
  1067. this.$refs.uToast.show({
  1068. type: 'error',
  1069. message: "运价不能为空!",
  1070. })
  1071. return true
  1072. }
  1073. if (
  1074. this.dataObj.freightPrice < 0 || this.dataObj.freightPrice > 100000 || (
  1075. String(this.dataObj.freightPrice).indexOf('.') != -1 && String(this.dataObj.freightPrice).length -
  1076. (String(this.dataObj.freightPrice).indexOf(
  1077. '.') + 1) > 2)
  1078. ) {
  1079. uni.showToast({
  1080. title: '运价输入错误!',
  1081. duration: 2000,
  1082. icon: "none",
  1083. });
  1084. return true
  1085. }
  1086. if (uni.$u.test.isEmpty(this.dataObj.contacts)) {
  1087. this.$refs.uToast.show({
  1088. type: 'error',
  1089. message: "联系人不能为空!",
  1090. })
  1091. return true
  1092. }
  1093. if (uni.$u.test.isEmpty(this.dataObj.contactsPhone)) {
  1094. this.$refs.uToast.show({
  1095. type: 'error',
  1096. message: "联系人电话不能为空!",
  1097. })
  1098. return true
  1099. }
  1100. if (uni.$u.test.isEmpty(this.dataObj.freightStationName)) {
  1101. this.$refs.uToast.show({
  1102. type: 'error',
  1103. message: "货站名称不能为空!",
  1104. })
  1105. return true
  1106. }
  1107. if (uni.$u.test.isEmpty(this.dataObj.loadingDate)) {
  1108. this.$refs.uToast.show({
  1109. type: 'error',
  1110. message: "装车日期不能为空!",
  1111. })
  1112. return true
  1113. }
  1114. if (uni.$u.test.isEmpty(this.dataObj.periodOfTime)) {
  1115. this.$refs.uToast.show({
  1116. type: 'error',
  1117. message: "时段不能为空!",
  1118. })
  1119. return true
  1120. }
  1121. // if (uni.$u.test.isEmpty(this.dataObj.stationFee)) {
  1122. // this.$refs.uToast.show({
  1123. // type: 'error',
  1124. // message: "货站信息费不能为空!",
  1125. // })
  1126. // return true
  1127. // }
  1128. },
  1129. confirmClick() {
  1130. uni.$u.throttle(this.requestdata, 500)
  1131. },
  1132. requestdata() {
  1133. if (this.dataDetails.type == '元/吨') {
  1134. this.dataObj.billingMethod = 0
  1135. } else {
  1136. this.dataObj.billingMethod = 1
  1137. }
  1138. if (this.dataObj.freightAdvance) {
  1139. this.dataObj.freightAdvance = 1
  1140. } else {
  1141. this.dataObj.freightAdvance = 0
  1142. }
  1143. if (!this.dataObj.receiverIdcard) {
  1144. this.dataObj.receiverIdcard = ''
  1145. }
  1146. if (!this.dataObj.receiverCreditCode) {
  1147. this.dataObj.receiverCreditCode = ''
  1148. }
  1149. this.dataObj.carModel = this.carTypeCheckList.toString()
  1150. this.dataObj.commonId = this.userInfo.id
  1151. uni.$u.route('/pages/order/signContract', {
  1152. obj: JSON.stringify(this.dataObj),
  1153. type: 1
  1154. });
  1155. },
  1156. cancelClick() {
  1157. this.isShowAlert = false
  1158. },
  1159. //获取默认装货地、卸货地
  1160. getDefaultPlace(type) {
  1161. // 0时获取默认装货地址,1时获取默认卸货地址 通过选择获取的地址无需获取默认地址
  1162. uni.showLoading({
  1163. mask: true,
  1164. title: '加载中...'
  1165. })
  1166. this.$request.baseRequest('get', '/cargoOwnerAddressInfo/addressList', {
  1167. commonId: this.userInfo.id
  1168. }).then(res => {
  1169. uni.hideLoading()
  1170. for (let i = 0; i < res.data.length; i++) {
  1171. if (res.data[i].defaultShipment == 1 && type == 0) {
  1172. this.dataObj.sendCity = res.data[i].city
  1173. this.dataObj.sendArea = res.data[i].area
  1174. this.dataObj.sendPrivate = res.data[i].province
  1175. this.dataObj.sendDetailedAddress = res.data[i].detailedAddress
  1176. this.dataObj.sendLongitude = res.data[i].longitude
  1177. this.dataObj.sendLatitude = res.data[i].latitude
  1178. this.dataObj.sender = res.data[i].contacts
  1179. this.dataObj.senderPhone = res.data[i].contactPhone
  1180. }
  1181. if (res.data[i].defaultReceipt == 1 && type == 1) {
  1182. this.dataObj.unloadDetailedAddress = res.data[i].detailedAddress
  1183. this.dataObj.unloadCity = res.data[i].city
  1184. this.dataObj.unloadArea = res.data[i].area
  1185. this.dataObj.unloadPrivate = res.data[i].province
  1186. this.dataObj.unsendLongitude = res.data[i].longitude
  1187. this.dataObj.unsendLatitude = res.data[i].latitude
  1188. this.dataObj.receiver = res.data[i].contacts
  1189. this.dataObj.receiverPhone = res.data[i].contactPhone
  1190. }
  1191. }
  1192. if (this.dataObj.sendLatitude && this.dataObj.sendLongitude && this.dataObj.unsendLatitude &&
  1193. this.dataObj.unsendLongitude) {
  1194. this.dataObj.cargoDistance = this.$helper.getDistance(this.dataObj.unsendLatitude, this
  1195. .dataObj
  1196. .unsendLongitude, this.dataObj.sendLatitude, this.dataObj.sendLongitude)
  1197. }
  1198. })
  1199. .catch(res => {
  1200. uni.hideLoading()
  1201. uni.showToast({
  1202. title: res.message,
  1203. icon: 'none',
  1204. duration: 2000
  1205. })
  1206. });
  1207. },
  1208. changeHandler(e) {
  1209. const {
  1210. columnIndex,
  1211. value,
  1212. values,
  1213. index,
  1214. picker = this.$refs.uPicker
  1215. } = e
  1216. },
  1217. selectAddress(type) {
  1218. uni.$u.route('/pages/release/selectAddress', {
  1219. type: type,
  1220. });
  1221. },
  1222. selectValidityPeriod(type) {
  1223. this.funDate()
  1224. if (this.isEdit || this.isCopy) {
  1225. let _loadingDate = this.dataObj.loadingDate.split(',')
  1226. for (let i = 0; i < this.dateList.length; i++) {
  1227. this.dateList[i].checked = false
  1228. for (let k = 0; k < _loadingDate.length; k++) {
  1229. if (this.dateList[i].date == _loadingDate[k]) {
  1230. this.dateList[i].checked = true
  1231. this.dateCheckList.push(this.dateList[i])
  1232. }
  1233. }
  1234. }
  1235. }
  1236. this.isShowPopup4 = true
  1237. },
  1238. }
  1239. }
  1240. </script>
  1241. <style scoped lang="scss">
  1242. .input {
  1243. text-align: right;
  1244. width: 100%;
  1245. }
  1246. .content {
  1247. height: 100vh;
  1248. overflow: scroll;
  1249. }
  1250. .title {
  1251. padding: 0 20rpx;
  1252. display: flex;
  1253. justify-content: center;
  1254. position: relative;
  1255. .nav-title {
  1256. font-size: 32rpx;
  1257. }
  1258. .back {
  1259. position: absolute;
  1260. left: 20rpx;
  1261. }
  1262. .search {
  1263. display: flex;
  1264. align-items: center;
  1265. position: absolute;
  1266. right: 20rpx;
  1267. }
  1268. }
  1269. .fixed1 {
  1270. height: var(--status-bar-height);
  1271. }
  1272. .row {
  1273. display: flex;
  1274. justify-content: space-between;
  1275. }
  1276. .content1 {
  1277. background: white;
  1278. margin: 40rpx 20rpx 0 20rpx;
  1279. border-radius: 20rpx;
  1280. padding: 40rpx;
  1281. .select-sf {
  1282. color: #171717;
  1283. font-size: 34rpx;
  1284. font-weight: 600;
  1285. }
  1286. .select-sf1 {
  1287. color: #999999;
  1288. }
  1289. .right {
  1290. color: #CBCBCB
  1291. }
  1292. }
  1293. .content2,
  1294. .content3,
  1295. .content5 {
  1296. box-sizing: border-box;
  1297. background: white;
  1298. border-radius: 20rpx;
  1299. padding: 20rpx;
  1300. margin: 20rpx;
  1301. .row {
  1302. margin: 30rpx;
  1303. }
  1304. .row1,
  1305. .row2 {
  1306. display: flex;
  1307. justify-content: space-between;
  1308. align-items: center;
  1309. .left .top {
  1310. display: flex;
  1311. }
  1312. }
  1313. }
  1314. .content5{
  1315. .left{
  1316. width: 100px;
  1317. }
  1318. .right{
  1319. overflow-x: auto;
  1320. }
  1321. }
  1322. .select-type {
  1323. display: flex;
  1324. justify-content: flex-end;
  1325. }
  1326. .top-title {
  1327. background: #fff;
  1328. padding: 20rpx;
  1329. position: fixed;
  1330. z-index: 100;
  1331. top: 0;
  1332. box-sizing: border-box;
  1333. width: 100%;
  1334. }
  1335. .content2 {
  1336. padding: 40rpx;
  1337. .row1,
  1338. .row2 {
  1339. .left {
  1340. width: 100%;
  1341. }
  1342. .right {
  1343. color: #CBCBCB
  1344. }
  1345. }
  1346. .row2 {
  1347. margin-top: 40rpx;
  1348. }
  1349. .top {
  1350. display: flex;
  1351. align-items: center;
  1352. }
  1353. .bottom {
  1354. margin-top: 10rpx;
  1355. padding-left: 72rpx;
  1356. }
  1357. .title {
  1358. font-size: 36rpx;
  1359. font-weight: 700;
  1360. color: #171717;
  1361. width: 90%;
  1362. justify-content: flex-start;
  1363. // text-align:left;
  1364. }
  1365. .collect {
  1366. width: 40rpx;
  1367. height: 40rpx;
  1368. line-height: 40rpx;
  1369. background: #F5BA3C;
  1370. color: white;
  1371. // font-size:1px;
  1372. padding: 6rpx;
  1373. border-radius: 50%;
  1374. text-align: center;
  1375. }
  1376. .send {
  1377. width: 40rpx;
  1378. height: 40rpx;
  1379. line-height: 40rpx;
  1380. background: #101010;
  1381. color: white;
  1382. padding: 6rpx;
  1383. border-radius: 50%;
  1384. text-align: center;
  1385. }
  1386. }
  1387. .content3 {
  1388. .left {
  1389. width: 160rpx;
  1390. }
  1391. }
  1392. .content4 {
  1393. margin: 20rpx;
  1394. padding-left: 20rpx;
  1395. .title {
  1396. color: #999999;
  1397. }
  1398. .btn-text {
  1399. color: #F5BA3C;
  1400. border: 1px solid #F5BA3C;
  1401. border-radius: 40rpx;
  1402. padding: 0rpx 10rpx;
  1403. box-sizing: border-box;
  1404. }
  1405. }
  1406. .submit {
  1407. width: 90%;
  1408. margin: 50rpx auto;
  1409. font-size: 36rpx;
  1410. font-weight: 500;
  1411. color: #FFFFFF;
  1412. background: #F5BA3C;
  1413. text-align: center;
  1414. padding: 20rpx 0;
  1415. border-radius: 50rpx;
  1416. }
  1417. .fa-submit {
  1418. width: 90%;
  1419. margin: 50rpx auto;
  1420. font-size: 36rpx;
  1421. font-weight: 500;
  1422. color: #FFFFFF;
  1423. background: rgb(153, 153, 153);
  1424. text-align: center;
  1425. padding: 20rpx 0;
  1426. border-radius: 50rpx;
  1427. }
  1428. .select-data {
  1429. color: #999999;
  1430. }
  1431. .row-bgc {
  1432. background: #F7F8FA;
  1433. padding: 20rpx 30rpx;
  1434. box-sizing: border-box;
  1435. border-radius: 10rpx;
  1436. }
  1437. .car-input {
  1438. // padding:20rpx;
  1439. // box-sizing: border-box;
  1440. // border-radius: 10px;
  1441. }
  1442. .car-line {
  1443. margin: 0 20rpx;
  1444. }
  1445. .car-row {
  1446. display: flex;
  1447. background: white;
  1448. padding: 20rpx;
  1449. box-sizing: border-box;
  1450. border-radius: 10rpx;
  1451. }
  1452. uni-navigator {
  1453. display: inline-block;
  1454. color: #F5BA3C;
  1455. }
  1456. .popup .title {
  1457. position: relative;
  1458. top: -30rpx;
  1459. font-size: 36rpx;
  1460. font-weight: 700;
  1461. }
  1462. .price-item {
  1463. display: inline-block;
  1464. background: rgb(243, 243, 243);
  1465. border: 1px solid rgb(243, 243, 243);
  1466. text-align: center;
  1467. margin-left: 20rpx;
  1468. padding: 14rpx 30rpx;
  1469. box-sizing: border-box;
  1470. font-size: 28rpx;
  1471. border-radius: 10rpx;
  1472. }
  1473. .cartype-item {
  1474. display: inline-block;
  1475. width: calc(25% - 40rpx);
  1476. background: rgb(243, 243, 243);
  1477. border: 1px solid rgb(243, 243, 243);
  1478. text-align: center;
  1479. margin: 20rpx;
  1480. padding: 14rpx 10rpx;
  1481. box-sizing: border-box;
  1482. font-size: 28rpx;
  1483. border-radius: 10rpx;
  1484. }
  1485. .active {
  1486. background: rgb(251, 240, 229) !important;
  1487. border: 1px solid rgb(255, 134, 0) !important;
  1488. color: rgb(255, 134, 0);
  1489. }
  1490. .y-price {
  1491. justify-content: space-between;
  1492. .left {
  1493. width: 320rpx;
  1494. }
  1495. .right {
  1496. width: 100%;
  1497. }
  1498. }
  1499. .date-list-item {
  1500. display: inline-block;
  1501. background: rgb(243, 243, 243);
  1502. border: 1px solid rgb(243, 243, 243);
  1503. box-sizing: border-box;
  1504. width: calc(25% - 20rpx);
  1505. text-align: center;
  1506. margin: 10rpx;
  1507. padding: 10rpx 0;
  1508. border-radius: 10rpx;
  1509. }
  1510. .title-two {
  1511. margin: 20rpx 0;
  1512. }
  1513. .time1 {
  1514. width: 100%;
  1515. margin: 0 auto;
  1516. background-color: #FFFFFF;
  1517. color: #000;
  1518. height: 450rpx;
  1519. .top {
  1520. width: 690rpx;
  1521. margin: 0 auto;
  1522. height: 100rpx;
  1523. line-height: 100rpx;
  1524. text {
  1525. font-weight: bold;
  1526. &:nth-child(1) {
  1527. font-size: 28rpx;
  1528. color: #999;
  1529. }
  1530. &:nth-child(2) {
  1531. font-size: 28rpx;
  1532. color: #0A84FF;
  1533. }
  1534. }
  1535. }
  1536. .tip12 {
  1537. width: 100%;
  1538. height: 100rpx;
  1539. view {
  1540. width: 50%;
  1541. text-align: center;
  1542. line-height: 100rpx;
  1543. font-size: 40rpx;
  1544. color: #000000;
  1545. }
  1546. }
  1547. .hours {
  1548. font-size: 30rpx;
  1549. font-weight: bold;
  1550. color: #000;
  1551. }
  1552. .minutes {
  1553. font-size: 30rpx;
  1554. font-weight: bold;
  1555. color: #000;
  1556. }
  1557. }
  1558. .picker {
  1559. width: 100%;
  1560. height: 300rpx;
  1561. }
  1562. .row-ellipsis {
  1563. text-overflow: ellipsis;
  1564. white-space: nowrap;
  1565. overflow: hidden;
  1566. }
  1567. </style>