orders.vue 39 KB

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