index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. <template>
  2. <view class="main">
  3. <NavBar :user-info="userInfo" :work-Status="workStatus" @update-user="updateUser" />
  4. <view class="body">
  5. <view class="tab-box">
  6. <view class="tab-bar">
  7. <view class="tab_item" v-for="(tab, index) in tabList" :key="index"
  8. :class="{'active':tabActive==index}" @click="checkIndex(index)">
  9. <text class="text">{{tab.title}}{{tabActive===0 && index==0 && orderList.length>0?"("+orderList.length+")":""}}</text>
  10. </view>
  11. </view>
  12. <view class="search-bar">
  13. <view v-if="tabActive === 0" class="today">
  14. <view class="search">
  15. <uni-easyinput prefixIcon="search" v-model="searchVal" placeholder="请输入姓名" />
  16. </view>
  17. <button type="primary" @click="handleSearch" class="search-button">搜 索</button>
  18. <button type="primary" v-if="s=='1'" :disabled="workStatus==='1'?false:true" @click="handleRefresh" :class="workStatus==='1'?'refresh':'refresh active'">{{ccc}}</button>
  19. <button type="primary" v-else @click="handleRelease" :class="'refresh'">完成</button>
  20. </view>
  21. <view v-else class="history">
  22. <view class="searchchoice">
  23. <view class="row1">
  24. <view class="timequan">
  25. <text class="time_t">时间区间:</text>
  26. <uni-datetime-picker v-model="searchTime[0]" placeholder="开始时间" type="datetime" :hide-second="true" class="datepick"/>
  27. <uni-datetime-picker v-model="searchTime[1]" placeholder="结束时间" type="datetime" :hide-second="true" class="datepick"/>
  28. <!-- <timeSlot
  29. ref="timeslot"
  30. :title="'选择时间段'"
  31. @confirm="confirmTime">
  32. </timeSlot> -->
  33. <!-- <el-date-picker
  34. v-model="searchTime"
  35. type="datetimerange"
  36. range-separator="-"
  37. start-placeholder="开始时间"
  38. end-placeholder="结束时间"
  39. /> -->
  40. </view>
  41. </view>
  42. <view class="row2">
  43. <view class="office">
  44. <view class="time_t">
  45. 科室:
  46. </view>
  47. <picker @change="handleGetOffice" placeholder="请选择" :value="officeIndex" :range="officeArr">
  48. <view class="uni-input">{{officeArr[officeIndex]}}</view>
  49. </picker>
  50. </view>
  51. <view class="presid">
  52. <picker @change="handleGetType" :value="typeIndex" :range="typeArr">
  53. <view class="uni-input">{{typeArr[typeIndex]}}</view>
  54. </picker>
  55. </view>
  56. <view v-if="typeIndex === 0" class="search">
  57. <uni-easyinput prefixIcon="search" v-model="searchName" placeholder="请输入姓名" />
  58. </view>
  59. <view v-else class="search">
  60. <uni-easyinput prefixIcon="search" v-model="searchPreNo" placeholder="请输入处方号" />
  61. </view>
  62. <button type="primary" @click="handleSearch" class="search-button">搜索</button>
  63. </view>
  64. <view class="row3">
  65. <view class="tag-view" v-for="(v, i) in tags" :key="i">
  66. <uni-tag :circle="true" :inverted="!searchTags.includes(v)" :text=v @click="handleGetTags(v)" />
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="tab-content">
  74. <view class="order-list">
  75. <scroll-view
  76. v-if="orderList.length > 0"
  77. class="order-list-wrap"
  78. scroll-y="true"
  79. :scroll-top="50"
  80. @scrolltoupper="loadPreList"
  81. @scrolltolower="loadMoreList"
  82. >
  83. <template v-for="(v,i) in orderList" :key="i">
  84. <orderCard v-if="v " :s="s" :v="v" :work-Status="workStatus" :c="tabActive"
  85. @emit-select="emitSelect"
  86. />
  87. </template>
  88. <view v-if="isBottom" class="order-bottom">
  89. <view class="text">-- 没有更多数据 --</view>
  90. </view>
  91. </scroll-view>
  92. <view v-else class="text">
  93. <image class="zwsj" aspectFill :src="'/static/zwsj.png'" />
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script setup>
  101. import NavBar from "@/components/nav-bar/nav-bar.vue"
  102. import OrderCard from "@/components/order-card/order-card.vue"
  103. import { onMounted,ref, getCurrentInstance } from 'vue'
  104. import { onLoad } from "@dcloudio/uni-app"
  105. import {receiveOrderList, selectDepartment } from "@/static/js/api.js"
  106. import {releaseOrder} from "@/static/js/request.js"
  107. // import { ID_INJECTION_KEY } from 'element-plus'
  108. const userInfo = ref({})
  109. const workStatus = ref('0')
  110. const tabList = ref([
  111. {title:"今日待完成", status: '0', leng:0},
  112. {title:"历史处方", status: '1'},
  113. ])
  114. const currentStatus = ref(0)
  115. const tabActive = ref(0) // 当前tab Index
  116. const tabName = ref('今日待完成') // 当前tab Name
  117. // const tags = ref([])
  118. const orderList = ref([
  119. {id:1,prescriptionTime:'2023-07-06 14:54', faceurl:'/static/hz.png',name:'张三三',sex: '女',age: 23,disName:'胃脘痛病',symName:'脾胃虚寒证',deployState:'调配',preNo:10230516091026,department:'中医内科',dosageForm:'汤剂',number:3,prescriptionSum:135.62,preMzZy:'1'},
  120. {id:2,prescriptionTime:'2023-07-06 14:54', faceurl:'/static/hz.png',name:'张三三',sex: '女',age: 23,disName:'胃脘痛病',symName:'脾胃虚寒证',deployState:'调配',preNo:10230516091026,department:'中医内科',dosageForm:'汤剂',number:3,prescriptionSum:135.62,preMzZy:'1'},
  121. {id:3,prescriptionTime:'2023-07-06 14:54', faceurl:'/static/hz.png',name:'张三三',sex: '女',age: 23,disName:'胃脘痛病',symName:'脾胃虚寒证',deployState:'调配',preNo:10230516091026,department:'中医内科',dosageForm:'汤剂',number:3,prescriptionSum:135.62,preMzZy:'2'},
  122. {id:4,prescriptionTime:'2023-07-06 14:54', faceurl:'/static/hz.png',name:'张三三',sex: '女',age: 23,disName:'胃脘痛病',symName:'脾胃虚寒证',deployState:'调配',preNo:10230516091026,department:'中医内科',dosageForm:'汤剂',number:3,prescriptionSum:135.62,preMzZy:'1'},
  123. {id:5,prescriptionTime:'2023-07-06 14:54', faceurl:'/static/hz.png',name:'张三三',sex: '女',age: 23,disName:'胃脘痛病',symName:'脾胃虚寒证',deployState:'调配',preNo:10230516091026,department:'中医内科',dosageForm:'汤剂',number:3,prescriptionSum:135.62,preMzZy:'2'}
  124. ])
  125. const isBottom = ref(false) // 是否触底
  126. const officeArr = ref(['全部'])
  127. const officeIndex = ref(0)
  128. const typeArr = ref(['姓名:','处方号:'])
  129. const typeIndex = ref(0)
  130. const searchVal = ref('')
  131. const searchTime =ref([])
  132. const searchDepartment = ref('')
  133. const searchName = ref('')
  134. const searchPreNo = ref('')
  135. const searchSex = ref('')
  136. const searchPreMzZy = ref('')
  137. const searchStatus = ref('')
  138. const searchTags = ref([])
  139. const tags = ref(['全部','门诊','住院','男','女','煎煮','发药'])
  140. const deployArr = ref([
  141. {name:'抓药', id: '1' },
  142. {name:'复核', id: '2' },
  143. {name:'浸泡', id: '3' },
  144. {name:'煎煮', id: '4' },
  145. {name:'打包', id: '5' },
  146. ])
  147. const page = ref(1)
  148. const pageSize = ref(10)
  149. const total = ref(0)
  150. const status = ref('')
  151. const s = ref('1')
  152. const ccc = ref('一键释放')
  153. const ids = ref([])
  154. const today =ref({
  155. leng: 0,
  156. })
  157. // app.provide(ID_INJECTION_KEY, {
  158. // prefix: Math.floor(Math.random() * 10000),
  159. // current: 0,
  160. // })
  161. const {proxy} = getCurrentInstance()
  162. onMounted(() => {
  163. })
  164. onLoad(async () => {
  165. const token = uni.getStorageSync('token')
  166. userInfo.value.name = uni.getStorageSync('username')
  167. workStatus.value = uni.getStorageSync('workStatus') || '0'
  168. const params = {
  169. token: token,
  170. data:JSON.stringify({
  171. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  172. pageNum: page.value,
  173. pageSize: pageSize.value,
  174. status: '0'
  175. })
  176. }
  177. const {data:res} = await receiveOrderList(params)
  178. if (res.code === 200) {
  179. total.value = res.total
  180. orderList.value = res.rows
  181. if(orderList.value.length < pageSize.value){
  182. isBottom.value = true
  183. }
  184. if(tabActive.value ==0){
  185. tabList.value[0].leng = orderList.value.length
  186. }
  187. }
  188. })
  189. const reset = ()=>{
  190. searchTime.value =[]
  191. officeIndex.value =0
  192. searchName.value =''
  193. searchPreNo.value =''
  194. searchSex.value =''
  195. searchPreMzZy.value =''
  196. searchStatus.value =''
  197. searchVal.value = ''
  198. officeArr.value = ['全部']
  199. }
  200. // 子传父,更新userInfo
  201. const updateUser = (v)=>{
  202. console.log('updateUserStatus', v)
  203. workStatus.value = v+''
  204. console.log('workStatus.value', workStatus.value)
  205. }
  206. const emitSelect = (v)=>{
  207. console.log('emitSelect', v)
  208. // 查在ids中查找v,如果存在就删除,如果不存在就添加
  209. const index = ids.value.findIndex(x=>x==v)
  210. if (index>-1){
  211. ids.value.splice(index, 1)
  212. } else {
  213. ids.value.push(v)
  214. }
  215. }
  216. const handleSearch = async()=>{
  217. console.log('handleSearch searchPreMzZy',searchPreMzZy.value)
  218. console.log('handleSearch searchStatus',searchStatus.value)
  219. console.log('handleSearch searchSex',searchSex.value)
  220. if(tabActive.value ===0) {
  221. const params = {
  222. token: uni.getStorageSync('token'),
  223. data: JSON.stringify({
  224. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  225. name: searchVal.value.trim(),
  226. pageNum: page.value,
  227. pageSize: pageSize.value,
  228. status: tabList.value[tabActive.value].status,
  229. })
  230. }
  231. const {data:res} = await receiveOrderList(params)
  232. if (res.code === 200) {
  233. total.value = res.total
  234. orderList.value = res.rows
  235. if(orderList.value.length < pageSize.value){
  236. isBottom.value = true
  237. }
  238. }
  239. }
  240. if(tabActive.value==1){
  241. const params = {
  242. token: uni.getStorageSync('token'),
  243. data: JSON.stringify({
  244. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  245. startTime: searchTime.value[0] || '',
  246. endTime: searchTime.value[1] || '',
  247. name: searchName.value.trim() || '',
  248. preNo: searchPreNo.value || '',
  249. department: searchDepartment.value || '',
  250. prescriptionStatus: searchStatus.value || '',//煎煮发药
  251. sex: searchSex.value || '',
  252. preMzZy: searchPreMzZy.value || '',//门诊住院
  253. pageNum: page.value,
  254. pageSize: pageSize.value,
  255. status: tabList.value[tabActive.value].status
  256. })
  257. }
  258. console.log('历史记录查询params',params)
  259. const {data:res} = await receiveOrderList(params)
  260. if (res.code === 200) {
  261. total.value = res.total
  262. orderList.value = res.rows
  263. if(orderList.value.length < pageSize.value){
  264. isBottom.value = true
  265. }
  266. if(tabActive.value ==0){
  267. tabList.value[0].leng = orderList.value.length
  268. }
  269. }
  270. }
  271. }
  272. const handleRefresh = ()=>{
  273. console.log('yijianshifang >orderList>>', orderList.value)
  274. // let ids = ''
  275. // orderList.value.forEach((v)=>{if(v.id){
  276. // ids= ids+v.id+','
  277. // console.log('yijianshifang >orderList>>',ids)
  278. // }})
  279. // console.log('yijianshifang >orderList>>666',ids)
  280. s.value = '0'
  281. console.log('handleRefresh>>ids.value ',ids.value)
  282. // ccc.value = '完成'
  283. // const params = {
  284. // token: uni.getStorageSync('token'),
  285. // data:{ids:ids.value.toString()}
  286. // }
  287. // console.log('handleRefresh >params>>666',params)
  288. // const {data:res} = await releaseOrder(params)
  289. // if (res.code === 200) {
  290. // if(ids.value.length>0){
  291. // console.log('ids.value',ids.value)
  292. // ids.value.forEach(x=>{
  293. // console.log('orderList',orderList.value)
  294. // const index = orderList.value.findIndex(y=>y.id == x)
  295. // console.log('orderList index',index)
  296. // if(index>-1){
  297. // console.log('orderList',orderList.value)
  298. // orderList.value.splice(index,1)
  299. // console.log('orderList',orderList.value)
  300. // }
  301. // })
  302. // ids.value = []
  303. // }
  304. // }
  305. }
  306. const handleRelease = async()=>{
  307. const params = {
  308. token: uni.getStorageSync('token'),
  309. data:{ids:ids.value.toString()}
  310. }
  311. console.log('handleRefresh >params>>666',params)
  312. const {data:res} = await releaseOrder(params)
  313. if (res.code === 200) {
  314. if(ids.value.length>0){
  315. console.log('ids.value',ids.value)
  316. ids.value.forEach(x=>{
  317. console.log('orderList',orderList.value)
  318. const index = orderList.value.findIndex(y=>y.id == x)
  319. console.log('orderList index',index)
  320. if(index>-1){
  321. console.log('orderList',orderList.value)
  322. orderList.value.splice(index,1)
  323. console.log('orderList',orderList.value)
  324. }
  325. })
  326. ids.value = []
  327. }
  328. }
  329. s.value = '1'
  330. console.log('after handleRelease ids.value', ids.value)
  331. }
  332. const handleGetOffice = (e)=>{
  333. console.log('handleGetOffice', e.detail.value)
  334. console.log('officeIndex', officeIndex)
  335. console.log('officeIndex', officeIndex)
  336. officeIndex.value = e.detail.value
  337. searchDepartment.value = officeArr.value[officeIndex.value]
  338. }
  339. const handleGetType = (e)=>{
  340. console.log('handleGetType', e.detail.value)
  341. console.log('typeIndex', typeIndex)
  342. console.log('typeArr', typeIndex)
  343. typeIndex.value = e.detail.value
  344. if(typeIndex.value ===1 ){
  345. searchName.value = ''
  346. } else {
  347. searchPreNo.value = ''
  348. }
  349. }
  350. const handleGetTags = (v)=>{
  351. console.log('handleGetTags', v)
  352. if(!searchTags.value.includes(v)) {
  353. searchTags.value.push(v)
  354. } else {
  355. searchTags.value.splice(searchTags.value.indexOf(v), 1)
  356. if(v=='门诊' || v=='住院'){
  357. searchPreMzZy.value = ''
  358. console.log('删除了 v searchPreMzZy.value',v,searchPreMzZy.value)
  359. }
  360. if(v=='男' || v=='女'){
  361. searchSex.value = ''
  362. console.log('删除了 v searchSex.value',v,searchSex.value)
  363. }
  364. if(v=='煎煮' || v=='发药'){
  365. searchStatus.value = ''
  366. console.log('删除了 v searchStatus.value',v,searchStatus.value)
  367. }
  368. }
  369. switch (v) {
  370. case '全部':
  371. if(searchTags.value.includes(v)){
  372. searchTags.value = ['全部']
  373. searchTime.value = []
  374. searchDepartment.value = ''
  375. searchName.value = ''
  376. searchPreNo.value = ''
  377. searchSex.value = ''
  378. searchPreMzZy.value = ''
  379. searchStatus.value = ''
  380. officeIndex.value = 0
  381. }
  382. break
  383. case '门诊':
  384. if(searchTags.value.includes(v)){
  385. if(searchTags.value.includes('住院')){
  386. searchTags.value.splice(searchTags.value.indexOf('住院'), 1)
  387. }
  388. if(searchTags.value.includes('全部')){
  389. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  390. }
  391. searchPreMzZy.value = '1'
  392. }
  393. break
  394. case '住院':
  395. if(searchTags.value.includes(v)){
  396. if(searchTags.value.includes('门诊')){
  397. searchTags.value.splice(searchTags.value.indexOf('门诊'), 1)
  398. }
  399. if(searchTags.value.includes('全部')){
  400. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  401. }
  402. searchPreMzZy.value = '2'
  403. }
  404. break
  405. case '男':
  406. if(searchTags.value.includes(v)){
  407. if(searchTags.value.includes('女')){
  408. searchTags.value.splice(searchTags.value.indexOf('女'), 1)
  409. }
  410. if(searchTags.value.includes('全部')){
  411. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  412. }
  413. searchSex.value = '男'
  414. }
  415. break
  416. case '女':
  417. if(searchTags.value.includes(v)){
  418. if(searchTags.value.includes('男')){
  419. searchTags.value.splice(searchTags.value.indexOf('男'), 1)
  420. }
  421. if(searchTags.value.includes('全部')){
  422. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  423. }
  424. searchSex.value = '女'
  425. }
  426. break
  427. case '煎煮':
  428. if(searchTags.value.includes(v)){
  429. if(searchTags.value.includes('发药')){
  430. searchTags.value.splice(searchTags.value.indexOf('发药'), 1)
  431. }
  432. if(searchTags.value.includes('全部')){
  433. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  434. }
  435. searchStatus.value = '2'
  436. }
  437. break
  438. case '发药':
  439. if(searchTags.value.includes(v)){
  440. if(searchTags.value.includes('煎煮')){
  441. searchTags.value.splice(searchTags.value.indexOf('煎煮'), 1)
  442. }
  443. if(searchTags.value.includes('全部')){
  444. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  445. }
  446. searchStatus.value = '3'
  447. }
  448. break
  449. default:
  450. searchTags.value = ['全部']
  451. }
  452. }
  453. // 更新处方列表
  454. const checkIndex = async(index) => {
  455. tabActive.value = index
  456. page.value= 1
  457. console.log('index',index)
  458. ids.value = []
  459. reset()
  460. tabName.value = tabList.value[index].title
  461. currentStatus.value = parseInt(tabList.value[index].status)
  462. const token = uni.getStorageSync('token')
  463. const paramss = {
  464. token: uni.getStorageSync('token'),
  465. data:JSON.stringify({
  466. currentUserId: parseInt(uni.getStorageSync('userId')),
  467. pageNum: page.value,
  468. pageSize: pageSize.value,
  469. status: tabList.value[tabActive.value].status
  470. })
  471. }
  472. console.log('checkIndex params',paramss)
  473. const {data:res} = await receiveOrderList(paramss)
  474. if (res.code === 200) {
  475. total.value = res.total
  476. orderList.value = res.rows
  477. if(orderList.value.length < pageSize.value){
  478. isBottom.value = true
  479. }
  480. if(tabActive.value ==0){
  481. tabList.value[0].leng = orderList.value.length
  482. }
  483. }
  484. if(tabActive.value==1) {
  485. const param = {
  486. token: uni.getStorageSync('token'),
  487. // data:JSON.stringify({
  488. // currentUserId: parseInt(uni.getStorageSync('userId')),
  489. // page: page.value,
  490. // pageSize: pageSize.value,
  491. // status: tabList.value[tabActive.value].status
  492. // })
  493. }
  494. console.log('checkIndex param',param)
  495. const {data:res} = await selectDepartment(param)
  496. if (res.code === 200) {
  497. officeArr.value.push(...res.data)
  498. console.log('selectDepartment officeArr.value', officeArr.value)
  499. }
  500. }
  501. }
  502. const openTime = ()=>{
  503. proxy.$refs.timeslot.open()
  504. }
  505. const loadMoreList =async()=>{
  506. console.log('loadMoreList>>>')
  507. if(isBottom){
  508. return
  509. }
  510. page.value = page.value +1
  511. const params = {
  512. token: uni.getStorageSync('token'),
  513. data: JSON.stringify({
  514. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  515. name: searchVal.value,
  516. pageNum: page.value,
  517. pageSize: pageSize.value,
  518. status: tabActive.value + ''
  519. })
  520. }
  521. const {data:res} = await receiveOrderList(params)
  522. console.log('orderList.value before',orderList.value)
  523. if (res.code === 200) {
  524. total.value = res.total
  525. if(total.value< pageSize.value){
  526. isBottom.value = true
  527. }
  528. console.log('res.rows after',res.rows)
  529. res.rows.forEach(item=>{
  530. orderList.value.push(item)
  531. })
  532. console.log('orderList.value after',orderList.value)
  533. if(tabActive.value ==0){
  534. console.log('tabActive===',)
  535. tabList.value[0].leng = orderList.value.length
  536. }
  537. }
  538. }
  539. const loadPreList = async()=>{
  540. console.log('loadPreList>>>')
  541. page.value = 1
  542. const params = {
  543. token: uni.getStorageSync('token'),
  544. data: JSON.stringify({
  545. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  546. name: searchVal.value,
  547. pageNum: page.value,
  548. pageSize: pageSize.value,
  549. status: tabList.value[tabActive.value].status
  550. })
  551. }
  552. const {data:res} = await receiveOrderList(params)
  553. if (res.code === 200) {
  554. total.value = res.total
  555. orderList.value = res.rows
  556. if(orderList.value.length < pageSize.value){
  557. isBottom.value = true
  558. }
  559. if(tabActive ==0){
  560. tabList.value[0].leng = orderList.value.length
  561. }
  562. }
  563. }
  564. </script>
  565. <style lang="scss">
  566. .main {
  567. display: flex;
  568. flex-direction:column;
  569. justify-content:flex-start;
  570. // height: 2000px;
  571. width: 750rpx;
  572. .nav{
  573. display: flex;
  574. height:74.34rpx;
  575. width: 750rpx;
  576. // position: sticky;
  577. // top: 0;
  578. }
  579. .body{
  580. display: flex;
  581. height:calc(100% - 74.34rpx);
  582. flex-direction:column;
  583. justify-content:flex-start;
  584. .tab-box {
  585. display: flex;
  586. position: sticky;
  587. flex-direction:column;
  588. z-index: 100;
  589. .tab-bar{
  590. height: 62.5rpx;
  591. display: flex;
  592. justify-content:center;
  593. width: 100%;
  594. // border: 1px solid #000;
  595. .tab_item{
  596. display: flex;
  597. flex:1;
  598. justify-content:center;
  599. align-items: center;
  600. font-size: 17.5rpx;
  601. background-color: #fff;
  602. color: #000;
  603. }
  604. .active{
  605. border-bottom: 5rpx solid #18C7B0;
  606. }
  607. }
  608. .search-bar{
  609. display: flex;
  610. background-color: #fff;
  611. border-radius: 4rpx;
  612. .today{
  613. display: flex;
  614. flex-direction:row;
  615. justify-content: flex-start;
  616. .search{
  617. width: 453.75rpx;
  618. margin: 13.75rpx 10.1rpx;
  619. :deep(.uni-easyinput__placeholder-class){
  620. font-size: 15rpx;
  621. }
  622. }
  623. .search-button{
  624. display: flex;
  625. justify-content:center;
  626. align-items: center;
  627. width:112.5rpx;
  628. margin: 13.75rpx 10.1rpx;
  629. font-size: 15rpx;
  630. background-color: #18C7B0;
  631. }
  632. .refresh {
  633. display: flex;
  634. justify-content:center;
  635. align-items: center;
  636. width:120rpx;
  637. margin: 13.75px 8rpx;
  638. font-size: 15rpx;
  639. background-color: #18C7B0;
  640. }
  641. .active{
  642. background-color:#DEDEDE;
  643. }
  644. }
  645. .history{
  646. display: flex;
  647. width: 100%;
  648. .searchchoice{
  649. padding: 0 10rpx;
  650. display: flex;
  651. width: 100%;
  652. flex-direction:column;
  653. font-size: 24rpx;
  654. .row1{
  655. display: flex;
  656. width: 100%;
  657. justify-content:flex-start;
  658. align-items: center;
  659. margin: 10rpx 0 10rpx;
  660. font-size: 15rpx;
  661. .timequan{
  662. display: flex;
  663. justify-content:center;
  664. align-items: center;
  665. :deep(.uni-date__x-input){
  666. font-size: 15rpx;
  667. }
  668. .datepick {
  669. z-index: 999;
  670. width: 300rpx;
  671. margin:0 10rpx;
  672. }
  673. }
  674. }
  675. .row2{
  676. display: flex;
  677. width: 100%;
  678. justify-content:flex-start;
  679. align-items: center;
  680. margin: 0 0 10rpx;
  681. .office{
  682. display: flex;
  683. justify-content:center;
  684. align-items: center;
  685. font-size: 15rpx;
  686. .uni-input{
  687. display: flex;
  688. justify-content:center;
  689. align-items: center;
  690. border:1px solid #e1e5f1;
  691. // font-size: 15rpx;
  692. width:190rpx;
  693. // height: 40rpx;
  694. border-radius: 5rpx;
  695. background-color: #e1e5f1;
  696. margin-right: 10rpx;
  697. }
  698. }
  699. .uni-input{
  700. display: flex;
  701. justify-content:center;
  702. align-items: center;
  703. border:1px solid #e1e5f1;
  704. font-size: 15rpx;
  705. width:100rpx;
  706. height: 40rpx;
  707. border-radius: 5rpx;
  708. background-color: #e1e5f1;
  709. margin-right: 10rpx;
  710. }
  711. .search{
  712. width: 187.5rpx;
  713. // height: 40rpx;
  714. // :deep(.easyinput__content-input){
  715. // // height: 40rpx!important;
  716. // }
  717. :deep(.uni-easyinput__placeholder-class){
  718. font-size: 14rpx;
  719. }
  720. }
  721. .search-button{
  722. display: flex;
  723. justify-content:center;
  724. align-items: center;
  725. width:120rpx;
  726. margin: 8rpx 12rpx;
  727. font-size: 14rpx;
  728. height: 40rpx!important;
  729. color: #fff;
  730. background-color: #18C7B0;
  731. }
  732. }
  733. .row3{
  734. display: flex;
  735. width: 100%;
  736. justify-content:flex-start;
  737. align-items: center;
  738. margin: 0 0 18rpx;
  739. .tag-view:deep(.uni-tag){
  740. display: inline;
  741. font-size: 15rpx;
  742. font-weight:500;
  743. margin-right: 16.67rpx;
  744. // height: 40px;
  745. width: 120rpx;
  746. padding: 6rpx 20rpx;
  747. }
  748. }
  749. }
  750. }
  751. }
  752. }
  753. .tab-content{
  754. display: flex;
  755. margin: 8rpx 10rpx;
  756. border-radius: 4rpx;
  757. background-color: #fff;
  758. width: calc(100% - 20rpx);
  759. height: 980rpx;
  760. z-index:10;
  761. .order-list{
  762. padding: 8rpx;
  763. display: flex;
  764. width: 100%;
  765. // height: 100%;
  766. .text{
  767. display: flex;
  768. width: 750rpx;
  769. justify-content:center;
  770. align-items: flex-start;
  771. .zwsj {
  772. margin-top: 103.13rpx;
  773. width: 640.63rpx;
  774. height: 310rpx;
  775. }
  776. }
  777. .order-list-wrap{
  778. display: flex;
  779. .order-card{
  780. display: flex;
  781. width: 100%;
  782. // border-bottom: 1px solid #e6e8ee;;
  783. }
  784. }
  785. }
  786. }
  787. }
  788. }
  789. </style>