index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  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" :index="i" :c=tabActive class="order-card"
  85. @emit-select="emitSelect"
  86. />
  87. </template>
  88. </scroll-view>
  89. <view v-else class="text">
  90. <image class="zwsj" aspectFill :src="'/static/zwsj.png'" />
  91. </view>
  92. </view>
  93. <view v-if="isBottom" class="order-bottom">
  94. <view class="text">-- 没有更多数据 --</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 searchPrescriptionStatus = ref('')
  139. const searchTags = ref([])
  140. const tags = ref(['全部','门诊','住院','男','女','煎煮','发药'])
  141. const deployArr = ref([
  142. {name:'抓药', id: '1' },
  143. {name:'复核', id: '2' },
  144. {name:'浸泡', id: '3' },
  145. {name:'煎煮', id: '4' },
  146. {name:'打包', id: '5' },
  147. ])
  148. const page = ref(1)
  149. const total = ref(0)
  150. const pageSize = ref(10)
  151. const status = ref('')
  152. const s = ref('1')
  153. const ccc = ref('一键释放')
  154. const ids = ref([])
  155. const today =ref({
  156. leng: 0,
  157. })
  158. // app.provide(ID_INJECTION_KEY, {
  159. // prefix: Math.floor(Math.random() * 10000),
  160. // current: 0,
  161. // })
  162. const {proxy} = getCurrentInstance()
  163. onMounted(() => {
  164. })
  165. onLoad(async () => {
  166. const token = uni.getStorageSync('token')
  167. userInfo.value.name = uni.getStorageSync('username')
  168. workStatus.value = uni.getStorageSync('workStatus') || '0'
  169. const params = {
  170. token: token,
  171. data:JSON.stringify({
  172. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  173. page: page.value,
  174. pageSize: pageSize.value,
  175. status: '0'
  176. })
  177. }
  178. const {data:res} = await receiveOrderList(params)
  179. if (res.code === 200) {
  180. total.value = res.total
  181. orderList.value = res.rows
  182. if(tabActive.value ==0){
  183. tabList.value[0].leng = orderList.value.length
  184. }
  185. }
  186. })
  187. const reset = ()=>{
  188. searchTime.value =[]
  189. officeIndex.value =0
  190. searchName.value =''
  191. searchPreNo.value =''
  192. searchSex.value =''
  193. searchPreMzZy.value =''
  194. searchStatus.value =''
  195. searchVal.value = ''
  196. officeArr.value = ['全部']
  197. }
  198. // 子传父,更新userInfo
  199. const updateUser = (v)=>{
  200. console.log('updateUserStatus', v)
  201. workStatus.value = v+''
  202. console.log('workStatus.value', workStatus.value)
  203. }
  204. const emitSelect = (v)=>{
  205. console.log('emitSelect', v)
  206. // 查在ids中查找v,如果存在就删除,如果不存在就添加
  207. const index = ids.value.findIndex(x=>x==v)
  208. if (index>-1){
  209. ids.value.splice(index, 1)
  210. } else {
  211. ids.value.push(v)
  212. }
  213. }
  214. const handleSearch = async()=>{
  215. if(tabActive.value ===0) {
  216. const params = {
  217. token: uni.getStorageSync('token'),
  218. data: JSON.stringify({
  219. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  220. name: searchVal.value.trim(),
  221. page: page.value,
  222. pageSize: pageSize.value,
  223. status: tabList.value[tabActive.value].status,
  224. })
  225. }
  226. const {data:res} = await receiveOrderList(params)
  227. if (res.code === 200) {
  228. total.value = res.total
  229. orderList.value = res.rows
  230. }
  231. }
  232. if(tabActive.value==1){
  233. const params = {
  234. token: uni.getStorageSync('token'),
  235. data: JSON.stringify({
  236. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  237. startTime: searchTime.value[0] || '',
  238. endTime: searchTime.value[1] || '',
  239. name: searchName.value.trim() || '',
  240. preNo: searchPreNo.value || '',
  241. department: officeArr.value[officeIndex.value] || '',
  242. prescriptionStatus: searchStatus.value || '',//煎煮发药
  243. sex: searchSex.value || '',
  244. preMzZy: searchPreMzZy.value || '',//门诊住院
  245. page: page.value,
  246. pageSize: pageSize.value,
  247. status: tabList.value[tabActive.value].status
  248. })
  249. }
  250. console.log('历史记录查询params',params)
  251. const {data:res} = await receiveOrderList(params)
  252. if (res.code === 200) {
  253. total.value = res.total
  254. orderList.value = res.rows
  255. if(tabActive.value ==0){
  256. tabList.value[0].leng = orderList.value.length
  257. }
  258. }
  259. }
  260. }
  261. const handleRefresh = async()=>{
  262. console.log('yijianshifang >orderList>>', orderList.value)
  263. // let ids = ''
  264. // orderList.value.forEach((v)=>{if(v.id){
  265. // ids= ids+v.id+','
  266. // console.log('yijianshifang >orderList>>',ids)
  267. // }})
  268. // console.log('yijianshifang >orderList>>666',ids)
  269. s.value = '0'
  270. // ccc.value = '完成'
  271. // const params = {
  272. // token: uni.getStorageSync('token'),
  273. // data:{ids:ids.value.toString()}
  274. // }
  275. // console.log('handleRefresh >params>>666',params)
  276. // const {data:res} = await releaseOrder(params)
  277. // if (res.code === 200) {
  278. // if(ids.value.length>0){
  279. // console.log('ids.value',ids.value)
  280. // ids.value.forEach(x=>{
  281. // console.log('orderList',orderList.value)
  282. // const index = orderList.value.findIndex(y=>y.id == x)
  283. // console.log('orderList index',index)
  284. // if(index>-1){
  285. // console.log('orderList',orderList.value)
  286. // orderList.value.splice(index,1)
  287. // console.log('orderList',orderList.value)
  288. // }
  289. // })
  290. // ids.value = []
  291. // }
  292. // }
  293. }
  294. const handleRelease = async()=>{
  295. const params = {
  296. token: uni.getStorageSync('token'),
  297. data:{ids:ids.value.toString()}
  298. }
  299. console.log('handleRefresh >params>>666',params)
  300. const {data:res} = await releaseOrder(params)
  301. if (res.code === 200) {
  302. if(ids.value.length>0){
  303. console.log('ids.value',ids.value)
  304. ids.value.forEach(x=>{
  305. console.log('orderList',orderList.value)
  306. const index = orderList.value.findIndex(y=>y.id == x)
  307. console.log('orderList index',index)
  308. if(index>-1){
  309. console.log('orderList',orderList.value)
  310. orderList.value.splice(index,1)
  311. console.log('orderList',orderList.value)
  312. }
  313. })
  314. ids.value = []
  315. }
  316. }
  317. }
  318. const handleGetOffice = (e)=>{
  319. console.log('handleGetOffice', e.detail.value)
  320. console.log('officeIndex', officeIndex)
  321. console.log('officeIndex', officeIndex)
  322. officeIndex.value = e.detail.value
  323. }
  324. const handleGetType = (e)=>{
  325. console.log('handleGetType', e.detail.value)
  326. console.log('typeIndex', typeIndex)
  327. console.log('typeArr', typeIndex)
  328. typeIndex.value = e.detail.value
  329. if(typeIndex.value ===1 ){
  330. searchName.value = ''
  331. } else {
  332. searchPreNo.value = ''
  333. }
  334. }
  335. const handleGetTags = (v)=>{
  336. console.log('handleGetTags', v)
  337. if(!searchTags.value.includes(v)) {
  338. searchTags.value.push(v)
  339. } else {
  340. searchTags.value.splice(searchTags.value.indexOf(v), 1)
  341. }
  342. switch (v) {
  343. case '全部':
  344. if(searchTags.value.includes(v)){
  345. searchTags.value = ['全部']
  346. searchTime.value = []
  347. searchDepartment.value = ''
  348. searchName.value = ''
  349. searchPreNo.value = ''
  350. searchSex.value = ''
  351. searchPreMzZy.value = ''
  352. searchStatus.value = ''
  353. }
  354. break
  355. case '门诊':
  356. if(searchTags.value.includes(v) && searchTags.value.includes('住院')){
  357. searchTags.value.splice(searchTags.value.indexOf('住院'), 1)
  358. }
  359. if(searchTags.value.includes('全部')){
  360. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  361. }
  362. searchPreMzZy.value = '1'
  363. break
  364. case '住院':
  365. if(searchTags.value.includes(v) && searchTags.value.includes('门诊')){
  366. searchTags.value.splice(searchTags.value.indexOf('门诊'), 1)
  367. }
  368. if(searchTags.value.includes('全部')){
  369. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  370. }
  371. searchPreMzZy.value = '2'
  372. break
  373. case '男':
  374. if(searchTags.value.includes(v) && searchTags.value.includes('女')){
  375. searchTags.value.splice(searchTags.value.indexOf('女'), 1)
  376. }
  377. if(searchTags.value.includes('全部')){
  378. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  379. }
  380. searchSex.value = '男'
  381. break
  382. case '女':
  383. if(searchTags.value.includes(v) && searchTags.value.includes('男')){
  384. searchTags.value.splice(searchTags.value.indexOf('男'), 1)
  385. }
  386. if(searchTags.value.includes('全部')){
  387. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  388. }
  389. searchSex.value = '女'
  390. break
  391. case '煎煮':
  392. if(searchTags.value.includes(v) && searchTags.value.includes('发药')){
  393. searchTags.value.splice(searchTags.value.indexOf('发药'), 1)
  394. }
  395. if(searchTags.value.includes('全部')){
  396. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  397. }
  398. searchStatus.value = '2'
  399. break
  400. case '发药':
  401. if(searchTags.value.includes(v) && searchTags.value.includes('煎煮')){
  402. searchTags.value.splice(searchTags.value.indexOf('煎煮'), 1)
  403. }
  404. if(searchTags.value.includes('全部')){
  405. searchTags.value.splice(searchTags.value.indexOf('全部'), 1)
  406. }
  407. searchStatus.value = '3'
  408. break
  409. default:
  410. searchTags.value = ['全部']
  411. }
  412. }
  413. // 更新处方列表
  414. const checkIndex = async(index) => {
  415. tabActive.value = index
  416. page.value= 1
  417. console.log('index',index)
  418. ids.value = []
  419. reset()
  420. tabName.value = tabList.value[index].title
  421. currentStatus.value = parseInt(tabList.value[index].status)
  422. const token = uni.getStorageSync('token')
  423. const paramss = {
  424. token: uni.getStorageSync('token'),
  425. data:JSON.stringify({
  426. currentUserId: parseInt(uni.getStorageSync('userId')),
  427. page: page.value,
  428. pageSize: pageSize.value,
  429. status: tabList.value[tabActive.value].status
  430. })
  431. }
  432. console.log('checkIndex params',paramss)
  433. const {data:res} = await receiveOrderList(paramss)
  434. if (res.code === 200) {
  435. total.value = res.total
  436. orderList.value = res.rows
  437. if(tabActive.value ==0){
  438. tabList.value[0].leng = orderList.value.length
  439. }
  440. }
  441. if(tabActive.value==1) {
  442. const param = {
  443. token: uni.getStorageSync('token'),
  444. // data:JSON.stringify({
  445. // currentUserId: parseInt(uni.getStorageSync('userId')),
  446. // page: page.value,
  447. // pageSize: pageSize.value,
  448. // status: tabList.value[tabActive.value].status
  449. // })
  450. }
  451. console.log('checkIndex param',param)
  452. const {data:res} = await selectDepartment(param)
  453. if (res.code === 200) {
  454. officeArr.value.push(...res.data)
  455. console.log('selectDepartment officeArr.value', officeArr.value)
  456. }
  457. }
  458. }
  459. const openTime = ()=>{
  460. proxy.$refs.timeslot.open()
  461. }
  462. const loadMoreList =async()=>{
  463. console.log('loadMoreList>>>')
  464. if(isBottom){
  465. return
  466. }
  467. page.value = page.value +1
  468. const params = {
  469. token: uni.getStorageSync('token'),
  470. data: JSON.stringify({
  471. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  472. name: searchVal.value,
  473. page: page.value,
  474. pageSize: pageSize.value,
  475. status: tabActive.value + ''
  476. })
  477. }
  478. const {data:res} = await receiveOrderList(params)
  479. console.log('orderList.value before',orderList.value)
  480. if (res.code === 200) {
  481. total.value = res.total
  482. if(total.value< pageSize.value){
  483. isBottom.value = true
  484. }
  485. console.log('res.rows after',res.rows)
  486. res.rows.forEach(item=>{
  487. orderList.value.push(item)
  488. })
  489. console.log('orderList.value after',orderList.value)
  490. if(tabActive.value ==0){
  491. console.log('tabActive===',)
  492. tabList.value[0].leng = orderList.value.length
  493. }
  494. }
  495. }
  496. const loadPreList = async()=>{
  497. console.log('loadPreList>>>')
  498. page.value = 1
  499. const params = {
  500. token: uni.getStorageSync('token'),
  501. data: JSON.stringify({
  502. currentUserId: parseInt(uni.getStorageSync('userId')) || 0,
  503. name: searchVal.value,
  504. page: page.value,
  505. pageSize: pageSize.value,
  506. status: tabList.value[tabActive.value].status
  507. })
  508. }
  509. const {data:res} = await receiveOrderList(params)
  510. if (res.code === 200) {
  511. total.value = res.total
  512. orderList.value = res.rows
  513. if(tabActive ==0){
  514. tabList.value[0].leng = orderList.value.length
  515. }
  516. }
  517. }
  518. </script>
  519. <style lang="scss">
  520. .main {
  521. display: flex;
  522. flex-direction:column;
  523. justify-content:flex-start;
  524. // height: 2000px;
  525. width: 750rpx;
  526. .nav{
  527. display: flex;
  528. height:74.34rpx;
  529. width: 750rpx;
  530. // position: sticky;
  531. // top: 0;
  532. }
  533. .body{
  534. display: flex;
  535. height:calc(100% - 74.34rpx);
  536. flex-direction:column;
  537. justify-content:flex-start;
  538. .tab-box {
  539. display: flex;
  540. position: sticky;
  541. flex-direction:column;
  542. z-index: 100;
  543. .tab-bar{
  544. height: 62.5rpx;
  545. display: flex;
  546. justify-content:center;
  547. width: 100%;
  548. // border: 1px solid #000;
  549. .tab_item{
  550. display: flex;
  551. flex:1;
  552. justify-content:center;
  553. align-items: center;
  554. font-size: 17.5rpx;
  555. background-color: #fff;
  556. color: #000;
  557. }
  558. .active{
  559. border-bottom: 5rpx solid #18C7B0;
  560. }
  561. }
  562. .search-bar{
  563. display: flex;
  564. background-color: #fff;
  565. border-radius: 4rpx;
  566. .today{
  567. display: flex;
  568. flex-direction:row;
  569. justify-content: flex-start;
  570. .search{
  571. width: 453.75rpx;
  572. margin: 13.75rpx 10.1rpx;
  573. :deep(.uni-easyinput__placeholder-class){
  574. font-size: 15rpx;
  575. }
  576. }
  577. .search-button{
  578. display: flex;
  579. justify-content:center;
  580. align-items: center;
  581. width:112.5rpx;
  582. margin: 13.75rpx 10.1rpx;
  583. font-size: 15rpx;
  584. background-color: #18C7B0;
  585. }
  586. .refresh {
  587. display: flex;
  588. justify-content:center;
  589. align-items: center;
  590. width:120rpx;
  591. margin: 13.75px 8rpx;
  592. font-size: 15rpx;
  593. background-color: #18C7B0;
  594. }
  595. .active{
  596. background-color:#DEDEDE;
  597. }
  598. }
  599. .history{
  600. display: flex;
  601. width: 100%;
  602. .searchchoice{
  603. padding: 0 10rpx;
  604. display: flex;
  605. width: 100%;
  606. flex-direction:column;
  607. font-size: 24rpx;
  608. .row1{
  609. display: flex;
  610. width: 100%;
  611. justify-content:flex-start;
  612. align-items: center;
  613. margin: 10rpx 0 10rpx;
  614. font-size: 15rpx;
  615. .timequan{
  616. display: flex;
  617. justify-content:center;
  618. align-items: center;
  619. :deep(.uni-date__x-input){
  620. font-size: 15rpx;
  621. }
  622. .datepick {
  623. z-index: 999;
  624. width: 300rpx;
  625. margin:0 10rpx;
  626. }
  627. }
  628. }
  629. .row2{
  630. display: flex;
  631. width: 100%;
  632. justify-content:flex-start;
  633. align-items: center;
  634. margin: 0 0 10rpx;
  635. .office{
  636. display: flex;
  637. justify-content:center;
  638. align-items: center;
  639. font-size: 15rpx;
  640. .uni-input{
  641. display: flex;
  642. justify-content:center;
  643. align-items: center;
  644. border:1px solid #e1e5f1;
  645. // font-size: 15rpx;
  646. width:190rpx;
  647. // height: 40rpx;
  648. border-radius: 5rpx;
  649. background-color: #e1e5f1;
  650. margin-right: 10rpx;
  651. }
  652. }
  653. .uni-input{
  654. display: flex;
  655. justify-content:center;
  656. align-items: center;
  657. border:1px solid #e1e5f1;
  658. font-size: 15rpx;
  659. width:100rpx;
  660. height: 40rpx;
  661. border-radius: 5rpx;
  662. background-color: #e1e5f1;
  663. margin-right: 10rpx;
  664. }
  665. .search{
  666. width: 187.5rpx;
  667. // height: 40rpx;
  668. // :deep(.easyinput__content-input){
  669. // // height: 40rpx!important;
  670. // }
  671. :deep(.uni-easyinput__placeholder-class){
  672. font-size: 14rpx;
  673. }
  674. }
  675. .search-button{
  676. display: flex;
  677. justify-content:center;
  678. align-items: center;
  679. width:120rpx;
  680. margin: 8rpx 12rpx;
  681. font-size: 14rpx;
  682. height: 40rpx!important;
  683. color: #fff;
  684. background-color: #18C7B0;
  685. }
  686. }
  687. .row3{
  688. display: flex;
  689. width: 100%;
  690. justify-content:flex-start;
  691. align-items: center;
  692. margin: 0 0 18rpx;
  693. .tag-view:deep(.uni-tag){
  694. display: inline;
  695. font-size: 15rpx;
  696. font-weight:500;
  697. margin-right: 16.67rpx;
  698. // height: 40px;
  699. width: 120rpx;
  700. padding: 6rpx 20rpx;
  701. }
  702. }
  703. }
  704. }
  705. }
  706. }
  707. .tab-content{
  708. display: flex;
  709. margin: 8rpx 10rpx;
  710. border-radius: 4rpx;
  711. background-color: #fff;
  712. width: calc(100% - 20rpx);
  713. height: 980rpx;
  714. z-index:10;
  715. .order-list{
  716. padding: 8rpx;
  717. display: flex;
  718. width: 100%;
  719. // height: 100%;
  720. .text{
  721. display: flex;
  722. width: 750rpx;
  723. justify-content:center;
  724. align-items: flex-start;
  725. .zwsj {
  726. margin-top: 103.13rpx;
  727. width: 640.63rpx;
  728. height: 310rpx;
  729. }
  730. }
  731. .order-list-wrap{
  732. display: flex;
  733. .order-card{
  734. display: flex;
  735. width: 100%;
  736. // border-bottom: 1px solid #e6e8ee;;
  737. }
  738. }
  739. }
  740. }
  741. }
  742. }
  743. </style>