detection.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="tabBox">
  5. <view class="tabline" :class="{tabActive:tabIndex==1}" @click="tbFn(1)">我的</view>
  6. <view class="tabline" :class="{tabActive:tabIndex==2}" @click="tbFn(2)">全部</view>
  7. </view>
  8. <view class="qiehuanBOx">
  9. <view class="tabBox2">
  10. <view class="tabline2 " :class="{tabActive2:tabIndex2==1}" @click="tbFn2(1)">未处理 (7)</view>
  11. <view class="tabline2" :class="{tabActive2:tabIndex2==2}" @click="tbFn2(2)">处理中 (99+)</view>
  12. <view class="tabline2" :class="{tabActive2:tabIndex2==3}" @click="tbFn2(3)">已完成</view>
  13. <view class="tabline2" :class="{tabActive2:tabIndex2==4}" @click="tbFn2(4)">全部</view>
  14. </view>
  15. </view>
  16. <view class="topPadding">
  17. <view class="searchBox">
  18. <view class="searchInputBox">
  19. <image src="../../static/img/icon_search.png" mode="" class="searchIcon"></image>
  20. <input type="text" placeholder="单号、车牌号、客户姓名、手机号 " class="searchInput">
  21. </view>
  22. <view class="searchBtnBox" @click="sxShowFn">
  23. <image src="../../static/img/shaixuan.png" v-show="!sxShow" mode="" class="shaixuan"></image>
  24. <image src="../../static/img/icon_shaix.png" v-show="sxShow" mode="" class="shaixuan"></image>
  25. <span class="searchBtnSpan" :class="{searchBtnSpanActive:sxShow}">筛选</span>
  26. </view>
  27. </view>
  28. <view class="sxBox" v-show="!sxShow">
  29. <view class="sxLine">
  30. <span>检测门店</span>
  31. <image src="../../static/img/arrow_down.png" mode="" class="downIcon"></image>
  32. </view>
  33. <view class="sxLine">
  34. <span>下次服务日期</span>
  35. <image src="../../static/img/arrow_down.png" mode="" class="downIcon"></image>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="heightView"></view>
  41. <view class="lineBox">
  42. <view class="line" @click="goDetail()">
  43. <view class="codeBox">
  44. <view class="code">TX202209090009</view>
  45. <view class="linestate">提醒单状态</view>
  46. </view>
  47. <view class="lineCont">
  48. <view class="lineCtop">
  49. <view class="lineCtopLeft">
  50. <view class="name">鲁A29090</view>
  51. <view class="name" style="padding-left: 30rpx;">张珊</view>
  52. <image src="../../static/img/wechat.png" mode="" class="weChat"></image>
  53. <image src="../../static/img/wx1.png" mode="" class="weChat"></image>
  54. </view>
  55. <image src="../../static/img/lanCall.png" mode="" class="call"></image>
  56. </view>
  57. <view class="lineMs1">东风日产-轩逸-2022款 e-POWER 超智PLUS</view>
  58. <view class="lineMs1">上次到店:2019-05-12</view>
  59. <view class="lineMs2">
  60. <view>下次服务:2016-06-25</view>
  61. <view class="day">剩15天到期</view>
  62. </view>
  63. <view class="lineMs3">
  64. <view>检测部位:机油滤清器备份</view>
  65. <view>处理人:张三</view>
  66. </view>
  67. <view class="jianche">
  68. <view class="jcLine">检测结果:长了换 行检测结果:长了换行
  69. 检测结果:长了换行检测结果:长了换行检测结果:长了换行检测结果:长了换行
  70. </view>
  71. <view class="jcLine">检测日期:2024-01-12</view>
  72. <view class="jcLine">检测门店:这是门店名称</view>
  73. </view>
  74. </view>
  75. <view class="lineBottom">
  76. <view class="lineB">
  77. <image src="../../static/img/bcall.png" mode="" class="lineBIcon"></image>
  78. <view class="lineBtxt">电话</view>
  79. </view>
  80. <view class="lineB">
  81. <image src="../../static/img/duanxin.png" mode="" class="lineBIcon"></image>
  82. <view class="lineBtxt">短信</view>
  83. </view>
  84. <view class="lineB">
  85. <image src="../../static/img/bwx.png" mode="" class="lineBIcon"></image>
  86. <view class="lineBtxt">微信</view>
  87. </view>
  88. <view class="lineB">
  89. <image src="../../static/img/bwc.png" mode="" class="lineBIcon"></image>
  90. <view class="lineBtxt">完成</view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- 筛选 -->
  96. <view class="sxY" v-if="sxShow" @click="sxHdie">
  97. <view class="sxTkBox" @click.stop="">
  98. <view class="sxTitle">处理人</view>
  99. <picker @change="bindPickerChange" :value="index" :range="array">
  100. <view class="sxInputBox">
  101. <view class="sxLineCont">{{array[index]}}</view>
  102. <image src="../../static/img/jt2.png" mode="" class="sxJt"></image>
  103. </view>
  104. </picker>
  105. <view class="sxTitle" >检测部位</view>
  106. <picker @change="bindPickerChange" :value="index" :range="array">
  107. <view class="sxInputBox">
  108. <view class="sxLineCont">{{array[index]}}</view>
  109. <image src="../../static/img/jt2.png" mode="" class="sxJt"></image>
  110. </view>
  111. </picker>
  112. <view class="sxTitle" >检测日期</view>
  113. <view class="sxTimeBox">
  114. <view class="sxtimeLine">请选择</view>
  115. <view class="sxTimeHx"></view>
  116. <view class="sxtimeLine">请选择</view>
  117. </view>
  118. <view class="sxTitle" style="padding-top: 40rpx;">客户所属门店</view>
  119. <picker @change="bindPickerChange" :value="index" :range="array">
  120. <view class="sxInputBox">
  121. <view class="sxLineCont">{{array[index]}}</view>
  122. <image src="../../static/img/jt2.png" mode="" class="sxJt"></image>
  123. </view>
  124. </picker>
  125. <view class="sxTitle" >电话提醒</view>
  126. <view class="scCklineBox">
  127. <view class="scCkline" @click="sxIndex1=1" :class="{scCklineActive:sxIndex1==1}">未提醒</view>
  128. <view class="scCkline" @click="sxIndex1=2" :class="{scCklineActive:sxIndex1==2}">已提醒</view>
  129. </view>
  130. <view class="sxTitle" style="padding-top: 40rpx;">短信提醒</view>
  131. <view class="scCklineBox">
  132. <view class="scCkline" @click="sxIndex2=1" :class="{scCklineActive:sxIndex2==1}">未提醒</view>
  133. <view class="scCkline " @click="sxIndex2=2" :class="{scCklineActive:sxIndex2==2}">已提醒</view>
  134. </view>
  135. <view class="sxTitle" style="padding-top: 40rpx;">发放优惠券</view>
  136. <view class="scCklineBox">
  137. <view class="scCkline" @click="sxIndex3=1" :class="{scCklineActive:sxIndex3==1}">未发放</view>
  138. <view class="scCkline" @click="sxIndex3=2" :class="{scCklineActive:sxIndex3==2}">已发放</view>
  139. </view>
  140. <view class="sxTitle" style="padding-top: 40rpx;">处理人</view>
  141. <view class="scCklineBox">
  142. <view class="scCkline" @click="sxIndex4=1" :class="{scCklineActive:sxIndex4==1}">未分配</view>
  143. <view class="scCkline" @click="sxIndex4=2" :class="{scCklineActive:sxIndex4==2}">已分配</view>
  144. </view>
  145. <view class="sxBottom">
  146. <view class="chongzhi">重置</view>
  147. <view class="sxSure">确定</view>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. </template>
  153. <script>
  154. export default {
  155. data() {
  156. return {
  157. iStatusBarHeight:'',
  158. token:'',
  159. uid:'',
  160. sxShow:false,
  161. array: ['请选择','中国', '美国', '巴西', '日本'],
  162. index: 0,
  163. sxIndex1:'',
  164. sxIndex2:'',
  165. sxIndex3:'',
  166. sxIndex4:'',
  167. tabIndex:1,
  168. tabIndex2:1,
  169. }
  170. },
  171. onLoad(opt) {
  172. console.log(window.location.origin)
  173. //this.url=window.location.origin
  174. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  175. this.token=opt.token;
  176. this.uid=opt.uid
  177. },
  178. methods: {
  179. tbFn(num){
  180. this.tabIndex=num
  181. },
  182. tbFn2(num){
  183. this.tabIndex2=num
  184. },
  185. sxShowFn(){
  186. this.sxShow=!this.sxShow;
  187. },
  188. sxHdie(){
  189. this.sxShow=false;
  190. },
  191. bindPickerChange: function(e) {
  192. console.log('picker发送选择改变,携带值为', e.detail.value)
  193. this.index = e.detail.value
  194. },
  195. getList(){
  196. //console.log("list")
  197. },
  198. goDetail(){
  199. uni.navigateTo({
  200. url:'detectionDetail'
  201. })
  202. }
  203. },
  204. onPullDownRefresh() {
  205. this.page = 1;
  206. this.getList()
  207. setTimeout(function() {
  208. uni.stopPullDownRefresh();
  209. }, 1000);
  210. }
  211. }
  212. </script>
  213. <style scoped>
  214. .sxBottom{
  215. display: flex;justify-content: space-between;padding-top: 50rpx;
  216. }
  217. .chongzhi{
  218. width: 334rpx;
  219. height: 70rpx;
  220. border-radius: 10rpx;
  221. border: 1px solid #DDDDDD;
  222. line-height: 70rpx;
  223. font-size: 26rpx;
  224. color: #333333;
  225. text-align: center;
  226. }
  227. .sxSure{
  228. width: 334rpx;
  229. height: 70rpx;
  230. border-radius: 10rpx;
  231. line-height: 70rpx;
  232. font-size: 26rpx;
  233. color: #FFFFFF;
  234. text-align: center;
  235. background: #FF8113;
  236. }
  237. .sxTimeBox{
  238. display: flex;justify-content: space-between;
  239. }
  240. .sxtimeLine{
  241. width: 317rpx;
  242. height: 54rpx;
  243. background: #F7F7F7;
  244. border-radius: 6rpx;
  245. font-size: 22rpx;
  246. color: #999999;
  247. padding-left: 20rpx;
  248. line-height:54rpx ;
  249. }
  250. .sxTimeHx{
  251. width: 13rpx;
  252. height: 4rpx;
  253. background: #DDDDDD;
  254. margin-top: 26rpx;
  255. }
  256. .scCklineBox{
  257. display: flex;
  258. }
  259. .scCkline{
  260. width: 160rpx;
  261. height: 54rpx;
  262. background: #F7F7F7;
  263. border-radius: 6rpx;
  264. line-height: 54rpx;
  265. text-align: center;
  266. font-size: 22rpx;
  267. color: #3C3C3C;
  268. margin-right: 20rpx;
  269. }
  270. .scCklineActive{
  271. background: rgba(255,129,19,0.1);
  272. border-radius: 6rpx;
  273. border: 2rpx solid #FF8113;
  274. width: 156rpx;
  275. height: 50rpx;
  276. color: #FF8113;
  277. line-height: 50rpx
  278. }
  279. .content{
  280. min-height: 100vh;
  281. background: #F6F6F6;
  282. }
  283. .tabBox{
  284. display: flex;justify-content: space-around;
  285. }
  286. .tabline{
  287. font-size: 30rpx;
  288. color: #666666;
  289. width: 134rpx;
  290. text-align: center;
  291. line-height: 76rpx;
  292. }
  293. .top{
  294. background: #ffffff;
  295. position: fixed;
  296. width:750rpx;
  297. left: 0;
  298. top: 44px;
  299. z-index: 11;
  300. }
  301. .heightView{
  302. height: calc(260rpx + 44px);
  303. }
  304. .tabActive{
  305. color: #3F90F7;border-bottom: 4rpx solid #3F90F7;
  306. }
  307. .tabBox2{
  308. display: flex;
  309. line-height: 58rpx;
  310. border: 1px solid #EEEEEE;
  311. border-radius: 6rpx;
  312. overflow: hidden;
  313. }
  314. .qiehuanBOx{
  315. padding: 20rpx 34rpx 0 34rpx;
  316. }
  317. .tabline2{
  318. width: 25%;text-align: center;
  319. font-size: 26rpx;
  320. color: #333333;
  321. }
  322. .tabActive2{
  323. color: #3F90F7;background: rgba(63,144,247,0.08);
  324. }
  325. .topPadding{
  326. padding: 20rpx 24rpx;
  327. }
  328. .shaixuan{
  329. width: 32rpx;
  330. height: 32rpx;
  331. }
  332. .searchBox{
  333. display: flex;
  334. }
  335. .searchInputBox{
  336. display: flex;
  337. width: 572rpx;
  338. height: 72rpx;
  339. background: #F4F5F7;
  340. border-radius: 36rpx;
  341. }
  342. .searchIcon{
  343. width: 40rpx;height: 40rpx;
  344. margin-top: 16rpx;
  345. margin-left: 20rpx;
  346. }
  347. .searchInput{
  348. height: 72rpx;
  349. line-height: 73rpx;
  350. padding-left: 11px;
  351. font-size: 26rpx;
  352. color: #9999;
  353. width: 400rpx;
  354. }
  355. .searchBtnBox{
  356. display: flex;
  357. padding: 20rpx;
  358. }
  359. .searchBtnSpan{
  360. line-height: 32rpx;padding-left:10rpx ;
  361. font-size: 26rpx;
  362. color: #333333;
  363. }
  364. .downIcon{
  365. width: 24rpx;height: 24rpx;
  366. margin-top: 6rpx;margin-left: 6rpx;
  367. }
  368. .sxLine{
  369. display: flex;
  370. font-size: 26rpx;
  371. color: #3C3C3C;
  372. line-height: 36rpx;
  373. }
  374. .sxBox{
  375. display: flex;justify-content: space-around;
  376. padding-top: 36rpx;
  377. }
  378. .line{
  379. background: #FFFFFF;
  380. border-radius: 10rpx;
  381. margin-top: 20rpx;
  382. }
  383. .lineBox{
  384. padding: 0 24rpx;
  385. }
  386. .codeBox{
  387. border-bottom: 1px solid #EEEEEE;
  388. padding: 20rpx;
  389. display: flex;
  390. justify-content: space-between;
  391. font-size: 26rpx;
  392. color: #999999;
  393. line-height: 37rpx;
  394. }
  395. .linestate{
  396. color: #3F90F7;
  397. }
  398. .lineCtopLeft{
  399. display: flex;
  400. font-weight: 500;
  401. font-size: 30rpx;
  402. color: #3C3C3C;
  403. line-height: 38rpx;
  404. }
  405. .weChat{
  406. width: 38rpx;height: 31rpx;
  407. margin-left: 16rpx;
  408. margin-top: 2rpx;
  409. }
  410. .lineCont{
  411. padding: 20rpx;
  412. border-bottom: 1px solid #EEEEEE;
  413. }
  414. .lineMs1{
  415. font-size: 24rpx;
  416. color: #999999;
  417. padding-top: 10rpx;
  418. }
  419. .lineMs2{
  420. display: flex;
  421. padding-top: 10rpx;
  422. line-height: 36rpx;
  423. font-weight: 500;
  424. font-size: 24rpx;
  425. color: #3C3C3C;
  426. }
  427. .day{
  428. background: #FEF8EB;
  429. border-radius: 4rpx;
  430. height: 36rpx;
  431. font-size: 22rpx;
  432. color: #F19D01;
  433. line-height: 36rpx;
  434. padding: 0 10rpx;
  435. font-weight: 400;
  436. margin-left: 20rpx;
  437. }
  438. .lineMs3{
  439. display: flex;
  440. padding-top: 10rpx;
  441. line-height: 36rpx;
  442. font-weight: 500;
  443. font-size: 24rpx;
  444. color: #3C3C3C;
  445. justify-content: space-between;
  446. }
  447. .call{
  448. width: 40rpx;height: 40rpx;
  449. }
  450. .lineCtop{
  451. display: flex;justify-content: space-between;
  452. }
  453. .lineBottom{
  454. display: flex;
  455. justify-content: space-between;
  456. padding: 26rpx 30rpx;
  457. }
  458. .lineBIcon{
  459. width: 32rpx;height: 32rpx;
  460. }
  461. .lineB{
  462. display: flex;line-height: 32rpx;
  463. }
  464. .lineBtxt{
  465. font-size: 26rpx;
  466. color: #333333;
  467. padding-left: 6rpx;
  468. }
  469. .jianche{
  470. background: #FAFAFA;
  471. border-radius: 10rpx;
  472. padding: 0 20rpx;
  473. padding-bottom: 20rpx;
  474. margin-top: 20rpx;
  475. }
  476. .jcLine{
  477. font-size: 24rpx;
  478. color: #999999;
  479. padding-top: 20rpx;
  480. }
  481. .sxY{
  482. width: 750rpx;
  483. height: 100vh;
  484. position: fixed;
  485. left: 0;
  486. top: 0;
  487. background: rgba(0,0,0,0.5);
  488. }
  489. .sxTkBox{
  490. padding: 24rpx;
  491. background: #ffffff;
  492. margin-top: 350rpx;
  493. }
  494. .sxTitle{
  495. font-weight: 500;
  496. font-size: 26rpx;
  497. color: #3C3C3C;
  498. padding-bottom: 15rpx;
  499. }
  500. .sxJt{
  501. width: 14rpx;height: 23rpx;
  502. margin-top: 16rpx;
  503. margin-right: 20rpx;
  504. }
  505. .sxInputBox{
  506. display: flex;
  507. height: 54rpx;
  508. background: #F7F7F7;
  509. border-radius: 6rpx;
  510. margin-bottom: 40rpx;
  511. line-height: 54rpx;
  512. padding-left: 22rpx;
  513. justify-content: space-between;
  514. font-size: 22rpx;
  515. color: #999999;
  516. }
  517. .searchBtnSpanActive{
  518. color: #FF8113;
  519. }
  520. </style>