orders1.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541
  1. <template>
  2. <view class="page">
  3. <!-- 头部区域 -->
  4. <u-sticky zIndex="10072" customNavHeight="0">
  5. <uni-NavBar headerTitle="报价详情" background="#fff" :isSlot="true" :rightSlot="true"
  6. :borderBottom="orderFilterShow?'1rpx solid #eee':'none'">
  7. <template #search>
  8. <view class="order-search dis a-c j-s">
  9. <view @tap="goToSearch" style="flex: 1;">
  10. <u-search placeholder="可使用车牌号查询" v-model="SearchText" bgColor="#f7f7f7"
  11. :showAction="false"></u-search>
  12. </view>
  13. <view class="right-icon dis a-c " @tap="orderFilterShow=!orderFilterShow">
  14. <image src="/static/icon/orders/filterIcon.png" mode=""></image>
  15. <text>筛选</text>
  16. </view>
  17. </view>
  18. </template>
  19. </uni-NavBar>
  20. <!-- 下拉内容(默认隐藏) -->
  21. <view class="dropdown-content" :class="[ { 'show': orderFilterShow }]">
  22. <view class="p-3">
  23. <!-- 筛选条件 -->
  24. <view class="overflow-content">
  25. <view class="filterCriteria-item mb-3">
  26. <text class="title">险种</text>
  27. <view class="options dis a-c f-wrap mt-3">
  28. <view class="options-card dis a-c j-c"
  29. :class="item.value==pageRequest.productid? 'active':''"
  30. v-for="(item,index) in insurance_typeoptions" :key="index"
  31. @click="filterCriteriaClick(item.value,'productid')">
  32. {{item.label}}
  33. </view>
  34. </view>
  35. </view>
  36. <view class="filterCriteria-item mb-3">
  37. <text class="title">录单时间</text>
  38. <view class="options dis a-c f-wrap mt-3">
  39. <view class="options-card dis a-c j-c"
  40. :class="item.value==timespecifications? 'active':''"
  41. v-for="(item,index) in dateList" :key="index" @click="dateclick(item.value)">
  42. {{item.label}}
  43. </view>
  44. </view>
  45. <!-- 自定义时间选择 -->
  46. <view class="customTime mt-3 dis a-c j-s " @click="customDateShow=true">
  47. <view class="item dis a-c j-c">{{pageRequest.startDate|| '起始时间'}}</view>
  48. <text class="line">-</text>
  49. <view class="item dis a-c j-c">{{pageRequest.endDate|| '终止时间'}}</view>
  50. </view>
  51. </view>
  52. <view class="filterCriteria-item mb-3">
  53. <text class="title">保险公司</text>
  54. <view class="options dis a-c f-wrap mt-3" style="grid-template-columns: repeat(3, 1fr);">
  55. <view class="options-card nameSimple dis a-c j-c"
  56. :class="item.id==pageRequest.companyId? 'active':''"
  57. v-for="(item,index) in esmInsCompanyList" :key="index"
  58. @click="filterCriteriaClick(item.id,'companyId')">
  59. <u--text :lines="1" align="center" :text="item.nameSimple" color="#666"
  60. size="14"></u--text>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="footer dis a-c j-s ">
  66. <view class="btn dis a-c j-c mr-3" @click="clearForm">
  67. 清空
  68. </view>
  69. <view class="btn btns dis a-c j-c" @click="querySearch">
  70. 确定
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <!-- 下拉遮罩 -->
  76. <view class="overlay-mask" :class="[ { 'show': orderFilterShow }]"
  77. @click="orderFilterShow=!orderFilterShow">
  78. </view>
  79. <view class="tabView">
  80. <u-tabs :list="statusList" @click="tabClick" :current="statusCurrent" :scrollable="true" lineWidth="32"
  81. :activeStyle="{ color: '#333', fontWeight: 'bold' }" :inactiveStyle="{ color: '#999' }"
  82. :itemStyle="{ height: '48rpx' }"></u-tabs>
  83. </view>
  84. </u-sticky>
  85. <!-- 区分两种布局样式 -->
  86. <view class="content-body">
  87. <template v-if="statusCurrent==0">
  88. <view class="orderAll-card" @longpress="bigOrderActionSheet=true" v-for="(item,index) in subPageResult"
  89. :key="index">
  90. <view class="cardAll-header">
  91. <view class="title dis a-c ">
  92. <text class="plateNo">{{item.licenseNo}}</text>
  93. <view class="status-tag dis a-c j-c ml-1" :style="statusColorMatch(item.orderStatus).style">
  94. {{statusColorMatch(item.orderStatus).label}}
  95. </view>
  96. <!-- <text class="company-sum" -->
  97. <!-- v-if="['1','2','6','7'].includes(item.orderStatus)">12家保司可报价</text> -->
  98. </view>
  99. <view class="content dis f-wrap">
  100. <view class="item">
  101. <text>姓名</text>
  102. <text>{{item.ownerName}}</text>
  103. </view>
  104. <view class="item">
  105. <text>投保人</text>
  106. <text>{{item.policyName}}</text>
  107. </view>
  108. <view class="item">
  109. <text>录单时间</text>
  110. <text>{{item.createTime.slice(0,10)}}</text>
  111. </view>
  112. <view class="item">
  113. <text>险种</text>
  114. <text>{{item.productName}}</text>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="cardAll-btn dis a-c j-end ">
  119. <view v-for="(cardAllitem,cardAllindex) in cardAllbtns(item.orderStatus)" :key="cardAllindex"
  120. @click="cardAllbtnChange(cardAllitem.value,item.mainDetails[cardAllitem.value],'ITEM',item)">
  121. <text>{{cardAllitem.label}}</text>
  122. <u-badge v-if="item.mainDetails && item.mainDetails[cardAllitem.value] "
  123. numberType="overflow" :max="99" :value="item.mainDetails[cardAllitem.value].length"
  124. :absolute="true" bgColor="#FF4545" :offset="[-5,-16]"
  125. style="font-size: 18rpx;"></u-badge>
  126. </view>
  127. <view @click="cardAllbtnChangeAll(item.mainDetails,'ALL')">查看全部</view>
  128. </view>
  129. </view>
  130. <u-loadmore v-if="subPageResult.length!=0" :status="substatus" />
  131. </template>
  132. <template v-else>
  133. <view class="orderStatus-card mb-2" v-for="(subPageItem,subPageIndex) in subPageResult"
  134. :key="subPageIndex" @click="orderDetails(subPageItem)">
  135. <view class="header-title dis a-c ">
  136. <image src="/static/image/insuranceicon/dajia.png" class="companyIcon" mode=""></image>
  137. <text class="companyName">{{subPageItem.companyName}}</text>
  138. <view class="dis a-end price" v-if="subPageItem.sumPremium">
  139. <text>¥</text>
  140. <text>{{subPageItem.sumPremium}}</text>
  141. </view>
  142. </view>
  143. <view class="content dis f-wrap">
  144. <view class="item">
  145. <text>车主</text>
  146. <text>{{subPageItem.ownerName}}</text>
  147. </view>
  148. <view class="item">
  149. <text>投保人</text>
  150. <text>{{subPageItem.policyName}}</text>
  151. </view>
  152. <view class="item">
  153. <text>录单时间</text>
  154. <text>{{subPageItem.createTime.slice(0,10)}}</text>
  155. </view>
  156. <view class="item">
  157. <text>险种</text>
  158. <text>{{subPageItem.productName}}</text>
  159. </view>
  160. </view>
  161. <view class="card-footer dis a-c j-s">
  162. <view class="plateNo-tag dis a-c">
  163. <text>{{subPageItem.licenseNo}}</text>
  164. </view>
  165. <view class="dis a-c btns">
  166. <view class="loadMore">
  167. <uni-cloudPopup text="更多" color="#666" size="14"
  168. :buttons="loadMoreButtons(pageRequest.orderStatus)" direction="bottom"
  169. @click="val=>cloudPopupChange(val,subPageItem)"></uni-cloudPopup>
  170. </view>
  171. <view class="btn" @tap.stop="primaryButtonClick(item,subPageItem)"
  172. v-for="(item,index) in primaryButton(pageRequest.orderStatus)" :key="index">
  173. {{item}}
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. <u-loadmore v-if="subPageResult.length!=0" :status="substatus" />
  179. </template>
  180. </view>
  181. <!-- 订单轨迹弹窗 -->
  182. <uni-Popup :show="orderTrackingShow" @close='orderTrackingShow=false' headerTitle="订单轨迹" overflow="auto"
  183. maxHeight="1250rpx">
  184. <template #content>
  185. <view class="orderTracking">
  186. <view class=" dis f-c " v-for="(item,index) in orderTrackingList" :key="index">
  187. <view class="trackFlow dis a-c j-s">
  188. <view class="dis a-c ">
  189. <view class="circle mr-2"></view>
  190. <text class="time">{{item.createTime}}</text>
  191. </view>
  192. <image
  193. :src="item.orderTrackingisCollapsed?'/static/icon/orders/collapse.png':'/static/icon/orders/expand.png'"
  194. mode="" @click="toggleCollapse(item)"></image>
  195. </view>
  196. <view class="content">
  197. <text class="actionContent">{{item.createBy}} <text
  198. class="ml-1">{{matchOperationType(item.optType)}}</text> </text>
  199. <view v-if="item.orderTrackingisCollapsed">
  200. <view class="feedbackDetails" v-if="item.status==1">
  201. {{item.result}}
  202. </view>
  203. <view class="updateRecord mt-2" v-if="Array.isArray(item.result)">
  204. <ul>
  205. <li v-for="(resultItem,resultIndex) in item.result" :key="resultIndex">
  206. <text>{{item.createBy}}</text>将<text>{{resultItem.propertyName}}</text>由<text>{{resultItem.oldValue}}</text>修改为<text>{{resultItem.newValue}}</text>
  207. </li>
  208. </ul>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. </template>
  215. </uni-Popup>
  216. <!-- 子订单状态弹窗 -->
  217. <uni-Popup :show="subOrderStatusModal" @close='subOrderStatusModal=false' :headerSlot="true"
  218. headerTitle="选择出单机构" overflow="auto" maxHeight="1280rpx" class="subOrderStatusModalClass">
  219. <template #header>
  220. <view class="dis a-c j-c">
  221. <text class="plateNo">{{itemInfo.licenseNo}}</text>
  222. <view class="tag">{{itemInfo.productName}}</view>
  223. </view>
  224. </template>
  225. <template #content>
  226. <view class="content">
  227. <view class="status-card dis "
  228. v-if="bigOrderIndicator=='ITEM'? cardAllbtnsIndex==item.statusCode:item.companyOptions!=null"
  229. :style="{borderColor:item.style.cardBorderColor}" v-for="item in subOrderStatusModalList"
  230. :key="item.statusName">
  231. <view class="left-title dis a-c j-c"
  232. :style="{borderColor:item.style.titleBorderColor,background:item.style.titlebg}">
  233. {{item.statusName}}
  234. </view>
  235. <view class="right-company dis f-c">
  236. <view class="item dis a-c " v-for="(companyItem,companyIndex) in item.companyOptions"
  237. :key="companyIndex" @click="subOrderRedirectLogic(item.statusName,companyItem)">
  238. <image class="logo" :src="companyItem.logo" mode=""></image>
  239. <text class="name ml-1">{{companyItem.companyName}}</text>
  240. <view class="getView dis a-c" v-if="['核保中','核保失败','已承保'].includes(item.statusName)">
  241. <text class="mr-1">查看</text>
  242. <u-icon name="arrow-right" color="#666" size="11"></u-icon>
  243. </view>
  244. <view class="getView dis a-c" v-if="['报价失败'].includes(item.statusName)">
  245. <text class="mr-1" style="color: #FFAC1D;">去报价</text>
  246. <u-icon name="arrow-right" color="#FFAC1D" size="11"></u-icon>
  247. </view>
  248. <view class="price dis a-c " v-if="['报价成功','待缴费'].includes(item.statusName)">
  249. <text class="mr-1">{{companyItem.totalPremium || 0}}</text>
  250. <u-icon name="arrow-right" color="#FF540A" size="11"></u-icon>
  251. </view>
  252. </view>
  253. </view>
  254. </view>
  255. </view>
  256. </template>
  257. </uni-Popup>
  258. <!-- 日期组件 -->
  259. <uni-datePicker :contentTabslist="contentTabslist" :show="customDateShow" @close="customDateShow=false"
  260. :quickOptionsShow="false" @customTime="customTime"></uni-datePicker>
  261. <!-- 大订单长按菜单 -->
  262. <u-action-sheet :actions="[{name:'删除订单'}]" cancelText="取消" @close="bigOrderActionSheet=false"
  263. :show="bigOrderActionSheet" :closeOnClickOverlay="false" round="10"
  264. @select="deletebigOrderShow=true"></u-action-sheet>
  265. <!-- 大订单删除订单提示 -->
  266. <uni-PopupMessage :show="deletebigOrderShow" @close='deletebigOrderShow=false'
  267. @cancelEvent='deletebigOrderEvent' headerTitle="提示" @confirmEvent="deletebigOrderShow=false"
  268. cancelText="确认删除" confirmText="关闭">
  269. <template #content>
  270. <view class="dis a-c j-c ">
  271. 确认要删除订单吗
  272. </view>
  273. </template>
  274. </uni-PopupMessage>
  275. <!-- 小订单删除 -->
  276. <uni-PopupMessage :show="deletesubOrderShow" @close='deletesubOrderShow=false'
  277. @cancelEvent='deletesubOrderEvent' headerTitle="提示" @confirmEvent="deletesubOrderShow=false"
  278. cancelText="确认删除" confirmText="关闭">
  279. <template #content>
  280. <view class="dis a-c j-c ">
  281. 确认要删除订单吗
  282. </view>
  283. </template>
  284. </uni-PopupMessage>
  285. <!-- 自定义加载动画 -->
  286. <u-overlay :show="loadingShow" style="background-color: rgba(255, 255, 255, 0.9);">
  287. <view class="dis f-c a-c j-c " style="height: 100%;">
  288. <u-loading-icon></u-loading-icon>
  289. <text style="color: #909399;" class="mt-1">{{loadingText}}</text>
  290. </view>
  291. </u-overlay>
  292. </view>
  293. </template>
  294. <script>
  295. import {
  296. mapState,
  297. mapMutations
  298. } from "vuex"
  299. import {
  300. turnBase64Image
  301. } from "../../plugins/utils";
  302. export default {
  303. data() {
  304. return {
  305. loadingShow: false, //loading
  306. loadingText: "加载中", //加载文字
  307. cloudPopupName: "", //选中搜索字段名称
  308. fieldName: "", //搜索字段Field
  309. SearchText: "",
  310. contentTabslist: [{
  311. name: "自定义时间"
  312. }],
  313. bigOrderId: "", //大订单id
  314. subOrderId: "", //子订单 id
  315. deletesubOrderShow: false,
  316. deletebigOrderShow: false, //删除订单弹窗
  317. bigOrderActionSheet: false, //大订单长按菜单
  318. customDateShow: false, //日期组件
  319. orderFilterShow: false,
  320. cardAllbtnsIndex: "", //子订单指定状态
  321. subOrderStatusModal: false, //子订单状态弹窗
  322. orderTrackingShow: false, //订单轨迹弹窗
  323. bigOrderIndicator: 'ITEM',
  324. orderStatus: "1", //订单状态
  325. AllorderStatus: "7",
  326. statusCurrent: 0, //状态tabs切换
  327. insurance_typeoptions: [], //险种集合
  328. esmInsCompanyList: [], //保险公司集合
  329. timespecifications: "",
  330. orderTrackingList: [], //订单轨迹数据
  331. pageRequest: { //查询的默认条件
  332. companyId: "",
  333. orderNo: "",
  334. frameNo: "",
  335. insuredName: "",
  336. licenseNo: "",
  337. orderStatus: "",
  338. userId: "",
  339. deptId: "",
  340. endDate: "",
  341. startDate: "",
  342. productid: "",
  343. parentId: '0',
  344. pages: 1,
  345. size: 20,
  346. },
  347. subPageResult: [], //子订单列表
  348. substatus: "loadmore",
  349. subtotalPages: 0, //订单总页数
  350. // 状态列表
  351. statusList: [{
  352. name: "全部",
  353. value: null,
  354. },
  355. {
  356. name: "待核保",
  357. value: 1,
  358. },
  359. {
  360. name: "核保中",
  361. value: 2,
  362. },
  363. {
  364. name: "人工处理",
  365. value: 3,
  366. },
  367. {
  368. name: "待缴费",
  369. value: 4,
  370. },
  371. {
  372. name: "已承保",
  373. value: 5,
  374. }, {
  375. name: "报价失败",
  376. value: 6,
  377. }, {
  378. name: "核保失败",
  379. value: 7,
  380. },
  381. {
  382. label: "订单关闭",
  383. value: 8,
  384. }
  385. ],
  386. // 子订单弹窗综合数据
  387. subOrderStatusModalList: [{
  388. statusName: "报价成功",
  389. statusCode: 1,
  390. style: {
  391. cardBorderColor: '#FFE6B5',
  392. titleBorderColor: '#FFF1D5',
  393. titlebg: '#FFFEF0',
  394. },
  395. companyOptions: [],
  396. },
  397. {
  398. statusName: "报价失败",
  399. statusCode: 6,
  400. style: {
  401. cardBorderColor: '#DBECFF',
  402. titleBorderColor: '#E9F4FF',
  403. titlebg: '#F2F9FF',
  404. },
  405. companyOptions: [],
  406. },
  407. {
  408. statusName: "核保中",
  409. statusCode: 2,
  410. style: {
  411. cardBorderColor: '#FFDDD3',
  412. titleBorderColor: '#FFE8E1',
  413. titlebg: '#FFF6F0',
  414. },
  415. companyOptions: [],
  416. },
  417. {
  418. statusName: "待缴费",
  419. statusCode: 4,
  420. style: {
  421. cardBorderColor: '#FFE8C2',
  422. titleBorderColor: '#FFF0D9',
  423. titlebg: '#FFF9EE',
  424. },
  425. companyOptions: [],
  426. },
  427. {
  428. statusName: "核保失败",
  429. statusCode: 7,
  430. style: {
  431. cardBorderColor: '#FFD9D9',
  432. titleBorderColor: '#FFE5E5',
  433. titlebg: '#FFF8F8',
  434. },
  435. companyOptions: [],
  436. },
  437. {
  438. statusName: "已承保",
  439. statusCode: 5,
  440. style: {
  441. cardBorderColor: '#FFD9D9',
  442. titleBorderColor: '#FFE5E5',
  443. titlebg: '#FFF8F8',
  444. },
  445. companyOptions: [],
  446. }
  447. ],
  448. //日期筛选list
  449. dateList: [{
  450. label: '今日',
  451. value: "今日",
  452. },
  453. {
  454. label: '近7天',
  455. value: 7,
  456. },
  457. {
  458. label: '近30天',
  459. value: '近30天',
  460. },
  461. {
  462. label: '近6个月',
  463. value: '近6个月',
  464. },
  465. ],
  466. scrollTop: 0,
  467. itemInfo: {}, //操作中数据信息
  468. }
  469. },
  470. async onShow() {
  471. this.loadingShow = true;
  472. try {
  473. this.getDicType("insurance_type"); //车船税类型
  474. await this.esmInsCompany();
  475. await this.getsubOrdersList();
  476. this.loadingShow = false;
  477. } catch {
  478. this.loadingShow = false;
  479. }
  480. },
  481. onLoad() {},
  482. onReachBottom() {
  483. if (this.pageRequest.pages >= this.subtotalPages) {
  484. this.substatus = 'nomore';
  485. return
  486. };
  487. this.substatus = 'loading';
  488. this.pageRequest.pages = ++this.pageRequest.pages;
  489. setTimeout(async () => {
  490. let res = await this.$http.post('/supplementOrder/queryList', this.pageRequest);
  491. if (res.code == '200') {
  492. this.subPageResult = [...this.subPageResult, ...res.data.records];
  493. }
  494. if (this.pageRequest.pages >= this.subtotalPages) this.substatus = 'nomore';
  495. else this.substatus = 'loading';
  496. }, 1000)
  497. },
  498. onPageScroll(e) {
  499. this.handleScroll(e);
  500. },
  501. destroyed() {
  502. uni.$off('scroll', this.handleScroll);
  503. },
  504. computed: {
  505. ...mapState(['userInfo'])
  506. },
  507. methods: {
  508. // 订单详情
  509. orderDetails(item) {
  510. switch (item.orderStatus) {
  511. case "1":
  512. case "7":
  513. uni.navigateTo({
  514. url: '/pages/quote/quoteRecordDetail?ordersNo=' + item.orderNo,
  515. })
  516. break;
  517. case "6":
  518. uni.navigateTo({
  519. url: "/pages/quote/premiumCalc1?ordersNo=" + item.orderNo,
  520. })
  521. break;
  522. case "2":
  523. case "4":
  524. case "5":
  525. case "8":
  526. uni.navigateTo({
  527. url: "/pages/quote/quoteDetail?ordersNo=" + item.orderNo,
  528. })
  529. break;
  530. default:
  531. }
  532. },
  533. // 删除大订单
  534. deletebigOrderEvent() {
  535. console.log(1);
  536. },
  537. // 删除子订单
  538. deletesubOrderEvent() {
  539. console.log(1);
  540. },
  541. handleScroll(e) {
  542. this.scrollTop = e.scrollTop;
  543. },
  544. //订单轨迹展开收起
  545. toggleCollapse(item) {
  546. item.orderTrackingisCollapsed = !item.orderTrackingisCollapsed
  547. },
  548. //订单轨迹状态命名
  549. matchOperationType(optType) {
  550. const Operation = {
  551. 0: '订单创建',
  552. 1: '报价',
  553. 2: '补传影像',
  554. 3: '调整特约',
  555. 4: '修改折扣系数',
  556. 5: '核保',
  557. 6: '获取支付码',
  558. 7: '撤销支付码',
  559. 8: '下载电子保单',
  560. 9: '同步订单',
  561. 10: '订单编辑',
  562. }
  563. return Operation[optType] || ''
  564. },
  565. // 子订单列表接口
  566. async getsubOrdersList(page, size) {
  567. if (page) {
  568. this.pageRequest.pages = page;
  569. this.pageRequest.size = size;
  570. }
  571. if (this.statusCurrent == 0) {
  572. this.pageRequest.parentId = '0';
  573. this.pageRequest.isLargeOrder = '1';
  574. } else {
  575. this.pageRequest.parentId = '1';
  576. }
  577. let res = await this.$http.post('/supplementOrder/queryList', this.pageRequest);
  578. if (res.code == '200') {
  579. this.subPageResult = res.data.records;
  580. this.subtotalPages = res.data.pages;
  581. }
  582. },
  583. //日期自定义时间回调
  584. customTime(start, end) {
  585. this.pageRequest.startDate = start;
  586. this.pageRequest.endDate = end;
  587. this.customDateShow = false;
  588. },
  589. // 跳转搜索页
  590. goToSearch() {
  591. let params = {
  592. cloudPopupName: this.cloudPopupName, //选中搜索字段名称
  593. fieldName: this.fieldName, //搜索字段Field
  594. ...this.pageRequest
  595. }
  596. uni.navigateTo({
  597. url: '/pages/orders/orderSearch?search=' + JSON.stringify(params)
  598. })
  599. },
  600. //分页列表查询事件
  601. async querySearch() {
  602. this.orderFilterShow = false;
  603. await this.getsubOrdersList();
  604. },
  605. // 下拉筛选清空操作
  606. clearForm() {
  607. for (let key in this.pageRequest) {
  608. if (key != 'pages' && key != 'size') {
  609. this.pageRequest[key] = "";
  610. }
  611. }
  612. this.timespecifications = null;
  613. },
  614. //日期筛选
  615. dateclick(e) {
  616. this.timespecifications = e;
  617. switch (e) {
  618. case '今日':
  619. this.pageRequest.startDate = this.transformTime();
  620. this.pageRequest.endDate = this.transformTime();
  621. break;
  622. case 7:
  623. this.pageRequest.startDate = this.transformTime(e);
  624. this.pageRequest.endDate = this.transformTime();
  625. break;
  626. case '近30天':
  627. this.pageRequest.startDate = this.transformTime1(1);
  628. this.pageRequest.endDate = this.transformTime();
  629. break;
  630. case '近6个月':
  631. this.pageRequest.startDate = this.transformTime1(6);
  632. this.pageRequest.endDate = this.transformTime();
  633. break;
  634. default:
  635. }
  636. },
  637. // 保险公司列表
  638. async esmInsCompany() {
  639. let commpanykad = await this.$http.get('/supplementOrder/getExistCompany');
  640. if (commpanykad.code == '200') {
  641. this.esmInsCompanyList = [{
  642. nameSimple: "全部",
  643. value: null,
  644. }, ...commpanykad.data];
  645. }
  646. },
  647. // 条件筛选选择
  648. filterCriteriaClick(value, name) {
  649. this.pageRequest[name] = value;
  650. },
  651. // 字典
  652. async getDicType(type) {
  653. let res = await this.$http.get('/dict/get?dictCode=' + type);
  654. if (res.code == 200) {
  655. this[type + 'options'] = [{
  656. label: "全部",
  657. value: null,
  658. }, ...res.data];
  659. }
  660. },
  661. // 子订单弹窗订单跳转逻辑
  662. /**
  663. * @param {string} statusName 订单状态--不同状态区分不同跳转逻辑
  664. * @param {string} item 子订单数据
  665. */
  666. subOrderRedirectLogic(statusName, item) {
  667. console.log(statusName);
  668. switch (statusName) {
  669. case '报价成功':
  670. uni.navigateTo({
  671. url: '/pages/quote/quoteRecordDetail?ordersNo=' + item.id,
  672. })
  673. break;
  674. case '报价失败':
  675. uni.navigateTo({
  676. url: "/pages/quote/premiumCalc1?ordersNo=" + item.id,
  677. })
  678. break;
  679. case '核保中':
  680. case '待缴费':
  681. case '核保失败':
  682. case '已承保':
  683. uni.navigateTo({
  684. url: "/pages/quote/quoteDetail?ordersNo=" + item.id,
  685. })
  686. break;
  687. default:
  688. }
  689. },
  690. // 订单状态颜色匹配
  691. statusColorMatch(orderStatus) {
  692. const STATUS_COLOR = {
  693. 1: {
  694. label: "待核保",
  695. style: {
  696. color: '#FFA719',
  697. background: '#FFF4E1',
  698. border: '1rpx solid #FFA719',
  699. }
  700. },
  701. 2: {
  702. label: "核保中",
  703. style: {
  704. color: '#FF5722',
  705. background: '#FFF4ED',
  706. border: '1rpx solid #FF5722',
  707. }
  708. },
  709. 4: {
  710. label: "待缴费",
  711. style: {
  712. color: '#FF496D',
  713. background: '#FFF1F4',
  714. border: '1rpx solid #FF496D',
  715. }
  716. },
  717. 5: {
  718. label: "已承保",
  719. style: {
  720. color: '#22C2BA',
  721. background: '#E8FFFF',
  722. border: '1rpx solid #22C2BA',
  723. }
  724. },
  725. 6: {
  726. label: "报价失败",
  727. style: {
  728. color: '#0a6cb6',
  729. background: '#deecff',
  730. border: '1rpx solid #0a6cb6',
  731. }
  732. },
  733. 7: {
  734. label: "核保失败",
  735. style: {
  736. color: '#0a6cb6',
  737. background: '#deecff',
  738. border: '1rpx solid #0a6cb6',
  739. }
  740. },
  741. };
  742. return STATUS_COLOR[orderStatus] || [];
  743. },
  744. // 大订单按钮过滤
  745. cardAllbtns(orderStatus) {
  746. const STATUS_BUTTONS = {
  747. 1: [{
  748. label: "报价成功",
  749. value: "1"
  750. }, {
  751. label: "报价失败",
  752. value: "6"
  753. }],
  754. 2: [{
  755. label: "核保中",
  756. value: "2",
  757. }, {
  758. label: "报价成功",
  759. value: "1",
  760. }],
  761. 4: [{
  762. label: "待缴费",
  763. value: "4",
  764. }, {
  765. label: "核保失败",
  766. value: "7",
  767. }, {
  768. label: "报价成功",
  769. value: "1",
  770. }],
  771. 5: [{
  772. label: '已承保',
  773. value: "5",
  774. }],
  775. 6: [{
  776. label: "报价成功",
  777. value: "1",
  778. },
  779. {
  780. label: '报价失败',
  781. value: "6",
  782. }
  783. ],
  784. 7: [{
  785. label: "报价成功",
  786. value: "1",
  787. },
  788. {
  789. label: '报价失败',
  790. value: "6",
  791. }
  792. ],
  793. };
  794. return STATUS_BUTTONS[orderStatus] || [];
  795. },
  796. // 大订单按钮弹窗事件
  797. /**
  798. * @param {Object} value 当前按钮对应的订单状态
  799. * @param {Object} list 该状态下的所有报价记录
  800. */
  801. cardAllbtnChange(value, list, identifier, item) {
  802. this.itemInfo = item;
  803. this.cardAllbtnsIndex = value;
  804. this.bigOrderIndicator = identifier;
  805. this.subOrderStatusModalList.map(val => {
  806. if (val.statusCode == value) {
  807. val.companyOptions = list;
  808. }
  809. return val;
  810. })
  811. this.subOrderStatusModal = true;
  812. },
  813. //查看全部
  814. cardAllbtnChangeAll(item, identifier) {
  815. this.bigOrderIndicator = identifier;
  816. Object.keys(item).forEach(key => {
  817. this.subOrderStatusModalList.map(val => {
  818. if (val.statusCode == key) {
  819. val.companyOptions = item[key];
  820. }
  821. return val;
  822. })
  823. })
  824. this.subOrderStatusModal = true;
  825. },
  826. // 小订单主按钮过滤
  827. primaryButton(orderStatus) {
  828. const STATUS_BUTTONS = {
  829. 1: ['修改信息', '去核保'],
  830. 2: ['订单轨迹'],
  831. 4: ['支付码', '更新状态'],
  832. 5: ['查看电子保单'],
  833. 6: ['查看详情'],
  834. 7: ['查看详情'],
  835. 8: ['查看详情', '重新提核'],
  836. };
  837. return STATUS_BUTTONS[orderStatus] || [];
  838. },
  839. //小订单更多操作按钮过滤
  840. loadMoreButtons(orderStatus) {
  841. const STATUS_BUTTONS = {
  842. 1: ['修改方案', '删除订单', '订单轨迹'],
  843. 2: ['删除订单', '取消核保'],
  844. 4: ['订单轨迹', '删除订单', '撤销支付码'],
  845. 5: ['订单轨迹'],
  846. 6: ['删除订单', '订单轨迹'],
  847. 7: ['删除订单', '订单轨迹'],
  848. 8: ['删除订单', '订单轨迹'],
  849. };
  850. return STATUS_BUTTONS[orderStatus] || [];
  851. },
  852. // tabs状态切换
  853. async tabClick(e) {
  854. this.loadingShow = true;
  855. try {
  856. if (e.name == '全部') {
  857. this.pageRequest.orderStatus = null;
  858. this.statusCurrent = e.index;
  859. this.pageRequest.parentId = '0';
  860. this.pageRequest.isLargeOrder = '1';
  861. await this.getsubOrdersList(1, 20);
  862. } else {
  863. this.pageRequest.orderStatus = e.value;
  864. this.statusCurrent = e.index;
  865. this.pageRequest.parentId = '1';
  866. delete this.pageRequest.isLargeOrder
  867. await this.getsubOrdersList(1, 20)
  868. }
  869. if (this.scrollTop > 0) {
  870. uni.pageScrollTo({
  871. selector: 'content-body', // 滚动到顶部
  872. duration: 100, // 动画时长(ms)
  873. });
  874. }
  875. this.loadingShow = false;
  876. } catch {
  877. this.loadingShow = false;
  878. }
  879. },
  880. // 小订单主按钮点击
  881. async primaryButtonClick(name, info) {
  882. console.log(name, info);
  883. switch (name) {
  884. case '修改信息':
  885. uni.navigateTo({
  886. url: "/pages/quote/premiumCalc1?ordersNo=" + info.orderNo,
  887. })
  888. break;
  889. case '去核保':
  890. // 跳转报价详情
  891. uni.navigateTo({
  892. url: '/pages/quote/quoteRecordDetail?ordersNo=' + info.orderNo,
  893. })
  894. break;
  895. case '订单轨迹':
  896. await this.trackOrder(info.orderNo); //订单轨迹接口
  897. break;
  898. case '更新状态':
  899. await this.refreshPayment(info.orderNo) //支付状态刷新
  900. break;
  901. case '支付码':
  902. // 跳转支付码页面
  903. uni.navigateTo({
  904. url: '/pages/quote/paymentCode?ordersNo=' + info.orderNo,
  905. })
  906. break;
  907. case '查看电子保单':
  908. //跳转电子保单页面
  909. uni.navigateTo({
  910. url: '/pages/quote/ePolicy?ordersNo=' + info.orderNo,
  911. })
  912. break;
  913. case '查看详情':
  914. uni.navigateTo({
  915. url: "/pages/quote/quoteDetail?ordersNo=" + info.orderNo,
  916. })
  917. break;
  918. case '重新提核':
  919. // 跳转报价详情
  920. uni.navigateTo({
  921. url: '/pages/quote/quoteRecordDetail?ordersNo=' + info.orderNo,
  922. })
  923. break;
  924. default:
  925. }
  926. },
  927. //更多操作选中
  928. async cloudPopupChange(name, info) {
  929. console.log(name, info);
  930. switch (name) {
  931. case '修改方案':
  932. uni.navigateTo({
  933. url: "/pages/quote/premiumCalc1?ordersNo=" + info.orderNo,
  934. })
  935. break;
  936. case '删除订单':
  937. this.deletesubOrderShow = true;
  938. break;
  939. case '订单轨迹':
  940. await this.trackOrder(info.orderNo); //订单轨迹接口
  941. break;
  942. case '取消核保':
  943. break;
  944. case '撤销支付码':
  945. break;
  946. default:
  947. }
  948. },
  949. //订单轨迹查询
  950. async trackOrder(ordersNo) {
  951. let res = await this.$http.post('/orderTrack/list', {
  952. orderNo: ordersNo
  953. })
  954. if (res.code == 200) {
  955. res.data.map(item => {
  956. item.orderTrackingisCollapsed = false;
  957. })
  958. this.orderTrackingList = res.data;
  959. this.orderTrackingShow = true;
  960. }
  961. },
  962. //支付状态刷新
  963. async refreshPayment(ordersNo) {
  964. let OrderStatus = await this.$http.post('/unify/order/getOrderStatus', {
  965. order: {
  966. ordersNo: ordersNo,
  967. },
  968. });
  969. if (OrderStatus.code == '200') {
  970. uni.showToast({
  971. icon: 'none',
  972. title: OrderStatus.msg,
  973. })
  974. }
  975. },
  976. //当前时间
  977. transformTime(day) {
  978. const date = new Date();
  979. if (day) {
  980. date.setDate(date.getDate() - day);
  981. }
  982. const year = date.getFullYear();
  983. const month = date.getMonth() + 1; // 月份从0开始
  984. const dayOfMonth = date.getDate();
  985. // 格式化月份和日期
  986. const formattedMonth = month < 10 ? `0${month}` : month;
  987. const formattedDay = dayOfMonth < 10 ? `0${dayOfMonth}` : dayOfMonth;
  988. return `${year}-${formattedMonth}-${formattedDay}`;
  989. },
  990. transformTime1(month) {
  991. const date = new Date();
  992. let year = date.getFullYear();
  993. let monthValue = date.getMonth() + 1; // 月份从0开始,所以要+1
  994. let day = date.getDate();
  995. // 处理月份偏移
  996. if (month) {
  997. monthValue -= month;
  998. // 处理跨年情况
  999. while (month < 1) {
  1000. monthValue += 12;
  1001. year--;
  1002. }
  1003. // 处理月份超过12的情况
  1004. while (monthValue > 12) {
  1005. monthValue -= 12;
  1006. year++;
  1007. }
  1008. }
  1009. // 格式化月份和日期
  1010. const strMonth = monthValue < 10 ? `0${monthValue}` : monthValue;
  1011. const strDay = day < 10 ? `0${day}` : day;
  1012. return `${year}-${strMonth}-${strDay}`;
  1013. },
  1014. }
  1015. }
  1016. </script>
  1017. <style lang="scss" scoped>
  1018. page {
  1019. background-color: #f8f8f8;
  1020. }
  1021. .page {
  1022. background-color: #f8f8f8;
  1023. }
  1024. .order-search {
  1025. flex: 1;
  1026. }
  1027. .right-icon {
  1028. image {
  1029. width: 28rpx;
  1030. height: 28rpx;
  1031. margin-left: 20rpx;
  1032. margin-right: 8rpx;
  1033. }
  1034. font-size: 28rpx;
  1035. color: #333;
  1036. }
  1037. .tabView {
  1038. padding: 20rpx 0;
  1039. box-sizing: border-box;
  1040. background-color: #fff;
  1041. }
  1042. .content-body {
  1043. padding: 20rpx 30rpx;
  1044. box-sizing: border-box;
  1045. .orderAll-card {
  1046. background-color: #fff;
  1047. border-radius: 10rpx 10rpx 10rpx 10rpx;
  1048. margin-bottom: 20rpx;
  1049. .cardAll-header {
  1050. padding: 25rpx 20rpx 20rpx;
  1051. box-sizing: border-box;
  1052. .title {
  1053. .plateNo {
  1054. font-size: 32rpx;
  1055. color: #333;
  1056. font-weight: bold;
  1057. }
  1058. .status-tag {
  1059. padding: 2rpx 10rpx;
  1060. box-sizing: border-box;
  1061. background: #E3FBE7;
  1062. border-radius: 20rpx 20rpx 20rpx 0rpx;
  1063. border: 1rpx solid #18B63B;
  1064. color: #18B63B;
  1065. font-size: 22rpx;
  1066. }
  1067. .company-sum {
  1068. font-size: 22rpx;
  1069. color: #999;
  1070. margin-left: auto;
  1071. }
  1072. }
  1073. .content {
  1074. padding: 20rpx;
  1075. box-sizing: border-box;
  1076. gap: 20rpx 0;
  1077. .item {
  1078. width: 50%;
  1079. text:first-child {
  1080. width: 112rpx;
  1081. font-size: 28rpx;
  1082. color: #999;
  1083. display: inline-block;
  1084. }
  1085. text:last-child {
  1086. font-size: 28rpx;
  1087. color: #333;
  1088. margin-left: 20rpx;
  1089. }
  1090. }
  1091. }
  1092. }
  1093. .cardAll-btn {
  1094. padding: 20rpx 30rpx;
  1095. box-sizing: border-box;
  1096. border-top: 1rpx solid #eee;
  1097. gap: 0 70rpx;
  1098. >view {
  1099. position: relative;
  1100. font-size: 28rpx;
  1101. color: #FFAC1D;
  1102. }
  1103. }
  1104. }
  1105. .orderStatus-card {
  1106. background-color: #fff;
  1107. border-radius: 10rpx;
  1108. .header-title {
  1109. padding: 25rpx 20rpx 0;
  1110. box-sizing: border-box;
  1111. .companyIcon {
  1112. width: 40rpx;
  1113. height: 40rpx;
  1114. }
  1115. .companyName {
  1116. font-size: 32rpx;
  1117. color: #333;
  1118. font-weight: bold;
  1119. margin-left: 10rpx;
  1120. }
  1121. .price {
  1122. margin-left: auto;
  1123. text:first-child {
  1124. font-size: 28rpx;
  1125. color: #FF540A;
  1126. font-weight: bold;
  1127. }
  1128. text:last-child {
  1129. font-size: 42rpx;
  1130. color: #FF540A;
  1131. font-weight: bold;
  1132. line-height: 1.2;
  1133. }
  1134. }
  1135. }
  1136. .content {
  1137. padding: 0 20rpx;
  1138. box-sizing: border-box;
  1139. margin-top: 30rpx;
  1140. gap: 20rpx 0;
  1141. .item {
  1142. width: 50%;
  1143. text:first-child {
  1144. width: 112rpx;
  1145. font-size: 28rpx;
  1146. color: #999;
  1147. display: inline-block;
  1148. }
  1149. text:last-child {
  1150. font-size: 28rpx;
  1151. color: #333;
  1152. margin-left: 20rpx;
  1153. }
  1154. }
  1155. }
  1156. .card-footer {
  1157. margin-top: 30rpx;
  1158. padding-right: 20rpx;
  1159. box-sizing: border-box;
  1160. .btns {
  1161. gap: 0 25rpx;
  1162. }
  1163. .plateNo-tag {
  1164. width: 256rpx;
  1165. height: 100rpx;
  1166. // position: absolute;
  1167. // left: 0;
  1168. // bottom: 0;
  1169. background-image: url('../../static/image/plateNoback.png');
  1170. background-size: 100% 100%;
  1171. text {
  1172. font-size: 34rpx;
  1173. color: #333;
  1174. font-weight: bold;
  1175. margin-left: 36rpx;
  1176. }
  1177. }
  1178. .loadMore {
  1179. font-size: 28rpx;
  1180. color: #666;
  1181. }
  1182. .btn {
  1183. padding: 14rpx 20rpx;
  1184. box-sizing: border-box;
  1185. font-size: 28rpx;
  1186. color: #1F1F1F;
  1187. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1188. border: 1rpx solid #DDDDDD;
  1189. line-height: 1;
  1190. }
  1191. .btn:last-child {
  1192. background-color: #FDE935;
  1193. border: 1rpx solid #FDE935;
  1194. }
  1195. }
  1196. }
  1197. }
  1198. .subOrderStatusModalClass {
  1199. .plateNo {
  1200. font-size: 36rpx;
  1201. color: #333;
  1202. font-weight: bold;
  1203. }
  1204. .tag {
  1205. padding: 3rpx 16rpx;
  1206. box-sizing: border-box;
  1207. font-size: 24rpx;
  1208. color: #FF5174;
  1209. font-weight: bold;
  1210. background: #FFEAEE;
  1211. border-radius: 20rpx 20rpx 20rpx 0rpx;
  1212. margin-left: 20rpx;
  1213. }
  1214. .content {
  1215. padding: 40rpx;
  1216. box-sizing: border-box;
  1217. .status-card {
  1218. margin-bottom: 30rpx;
  1219. border-radius: 4rpx 4rpx 4rpx 4rpx;
  1220. border: 1rpx solid #FFD9D9;
  1221. .left-title {
  1222. width: 50rpx;
  1223. padding: 20rpx 12rpx;
  1224. box-sizing: border-box;
  1225. background: #FFF8F8;
  1226. border-radius: 4rpx 0rpx 0rpx 4rpx;
  1227. border-right: 1rpx solid #FFE5E5;
  1228. writing-mode: vertical-rl; //文字竖排
  1229. font-size: 28rpx;
  1230. color: #333;
  1231. }
  1232. .right-company {
  1233. width: 100%;
  1234. height: 100%;
  1235. padding: 30rpx 20rpx 0;
  1236. box-sizing: border-box;
  1237. // gap: 30rpx 0;
  1238. .item {
  1239. margin-bottom: 30rpx;
  1240. }
  1241. .logo {
  1242. width: 36rpx;
  1243. height: 36rpx;
  1244. }
  1245. .name {
  1246. font-size: 30rpx;
  1247. color: #333;
  1248. }
  1249. .getQuote {
  1250. font-size: 28rpx;
  1251. color: #FFAC1D;
  1252. margin-left: auto;
  1253. }
  1254. .getView {
  1255. font-size: 28rpx;
  1256. color: #666;
  1257. margin-left: auto;
  1258. }
  1259. .price {
  1260. font-size: 24rpx;
  1261. color: #FF540A;
  1262. margin-left: auto;
  1263. }
  1264. }
  1265. }
  1266. }
  1267. }
  1268. /* 自定义tab滑块样式 */
  1269. ::v-deep .u-tabs__wrapper__nav__line {
  1270. background: linear-gradient(90deg, #FDE935 10%, rgba(253, 233, 53, 0.1) 100%) !important;
  1271. border-radius: 6rpx;
  1272. }
  1273. /* 下拉内容(绝对定位,默认隐藏) */
  1274. .dropdown-content {
  1275. position: absolute;
  1276. /* 紧贴按钮下方 */
  1277. left: 0;
  1278. right: 0;
  1279. background: white;
  1280. height: 0px;
  1281. overflow: hidden;
  1282. z-index: 100;
  1283. transition: height 0.4s ease;
  1284. border-radius: 0 0 20rpx 20rpx;
  1285. .overflow-content {
  1286. overflow-y: auto;
  1287. height: 926rpx;
  1288. }
  1289. // 筛选条件
  1290. .filterCriteria-item {
  1291. .title {
  1292. flex: 1;
  1293. font-size: 30rpx;
  1294. color: #333;
  1295. font-weight: bold;
  1296. }
  1297. .options {
  1298. display: grid;
  1299. /* 启用网格布局 */
  1300. grid-template-columns: repeat(4, 1fr);
  1301. /* 3 列,每列等宽 */
  1302. grid-template-rows: auto;
  1303. /* 行高自适应 */
  1304. row-gap: 30rpx;
  1305. /* 只设置行间距(上下) */
  1306. column-gap: 20rpx;
  1307. /* 列间距设为 0(可选) */
  1308. }
  1309. .options-card {
  1310. padding: 9rpx 24rpx;
  1311. box-sizing: border-box;
  1312. border-radius: 4rpx 4rpx 4rpx 4rpx;
  1313. border: 1rpx solid #EEEEEE;
  1314. font-size: 28rpx;
  1315. color: #666;
  1316. }
  1317. .active {
  1318. background-color: #FDE935;
  1319. border: 1rpx solid #FDE935;
  1320. color: #333;
  1321. }
  1322. // 自定义日期
  1323. .customTime {
  1324. .item {
  1325. width: 50%;
  1326. padding: 20rpx;
  1327. box-sizing: border-box;
  1328. border-radius: 6rpx 6rpx 6rpx 6rpx;
  1329. border: 1rpx solid #EEEEEE;
  1330. font-size: 28rpx;
  1331. color: #999;
  1332. }
  1333. .line {
  1334. margin: 0 20rpx;
  1335. font-size: 28rpx;
  1336. color: #000;
  1337. }
  1338. }
  1339. }
  1340. .footer {
  1341. position: absolute;
  1342. bottom: 0;
  1343. left: 0;
  1344. right: 0;
  1345. background: #FFFFFF;
  1346. border-radius: 0rpx 0rpx 20rpx 20rpx;
  1347. border-top: 1rpx solid #EEEEEE;
  1348. padding: 30rpx 44rpx;
  1349. box-sizing: border-box;
  1350. .btn {
  1351. padding: 18rpx 30rpx;
  1352. box-sizing: border-box;
  1353. width: 50%;
  1354. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1355. border: 1rpx solid #FDE935;
  1356. font-size: 30rpx;
  1357. color: #333;
  1358. }
  1359. .btns {
  1360. width: 50%;
  1361. background: #FDE935;
  1362. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1363. }
  1364. }
  1365. }
  1366. .dropdown-content.show {
  1367. opacity: 1;
  1368. height: 1126rpx;
  1369. overflow: auto;
  1370. }
  1371. //订单轨迹弹窗
  1372. .orderTracking {
  1373. padding: 30rpx 40rpx;
  1374. box-sizing: border-box;
  1375. .trackFlow {
  1376. .circle {
  1377. width: 20rpx;
  1378. height: 20rpx;
  1379. background: #FDE935;
  1380. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1381. }
  1382. .time {
  1383. font-size: 30rpx;
  1384. color: #999;
  1385. }
  1386. image {
  1387. width: 40rpx;
  1388. height: 40rpx;
  1389. }
  1390. }
  1391. .content {
  1392. padding: 20rpx 0 40rpx 30rpx;
  1393. margin-left: 10rpx;
  1394. border-left: 2rpx dashed #333;
  1395. .actionContent {
  1396. font-size: 30rpx;
  1397. color: #333;
  1398. font-weight: bold;
  1399. }
  1400. .feedbackDetails {
  1401. background-color: #FAFAFA;
  1402. border-radius: 6rpx;
  1403. padding: 30rpx 20rpx;
  1404. box-sizing: border-box;
  1405. font-size: 28rpx;
  1406. margin-top: 20rpx;
  1407. color: #666;
  1408. }
  1409. .updateRecord {
  1410. ul {
  1411. padding-left: 60rpx;
  1412. li {
  1413. margin-top: 20rpx;
  1414. color: #666;
  1415. font-size: 30rpx;
  1416. text {
  1417. color: #333;
  1418. font-weight: bold;
  1419. }
  1420. }
  1421. li::marker {
  1422. color: #333;
  1423. }
  1424. }
  1425. }
  1426. }
  1427. }
  1428. /* 遮罩层(覆盖全屏) */
  1429. .overlay-mask {
  1430. position: fixed;
  1431. top: 0;
  1432. left: 0;
  1433. right: 0;
  1434. bottom: 0;
  1435. background: rgba(0, 0, 0, 0.5);
  1436. display: none;
  1437. /* 默认隐藏 */
  1438. z-index: 99;
  1439. /* 低于下拉内容,高于其他元素 */
  1440. }
  1441. /* 激活状态 */
  1442. .overlay-mask.show {
  1443. display: block;
  1444. }
  1445. </style>