index.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839
  1. <template>
  2. <view class="index">
  3. <view class="arc_edge"></view>
  4. <view class="index_container">
  5. <!-- 头部搜索 -->
  6. <view class="search">
  7. <view class="search_wrap">
  8. <input :focus="isFocus" @blur="blur" placeholder="请输入标本编码/检查单号/患…" :placeholder-style="placeholderStyle"
  9. confirm-type="search" v-model="searchText" :adjust-position="false" />
  10. <view class="searchBtn"> 搜索 </view>
  11. </view>
  12. <view class="icon-saoma">
  13. <text class="pda pda-saoma"></text>
  14. </view>
  15. </view>
  16. <!-- 通告栏 -->
  17. <uni-notice-bar :speed="20" scrollable single showIcon :text="updateTipsForNurses" background-color="#fff"
  18. color="#666">
  19. </uni-notice-bar>
  20. <!-- 一键收标本 -->
  21. <view class="collect_specimens" v-if="openSpecimen">
  22. <view class="collect_icon"> 标 </view>
  23. <view class="collect_specimensNum">
  24. <view class="urgent collect_row" @click="gotoSpecimenList('urgent')">
  25. 急标数量<text class="collect_num">{{
  26. urgentNum | specimenNum
  27. }}</text>
  28. </view>
  29. <view class="ordinary collect_row" @click="gotoSpecimenList('ordinary')">
  30. 普标数量<text class="collect_num">{{
  31. ordinaryNum | specimenNum
  32. }}</text>
  33. </view>
  34. </view>
  35. <button class="collect_btn" type="default" @click="collectSpecimens">
  36. {{ specimenButton }}
  37. </button>
  38. </view>
  39. <!-- 最新工单 -->
  40. <view class="newOrders">
  41. <view class="newOrders_header">
  42. <text class="newOrders_header_title">最新工单</text>
  43. <text class="newOrders_header_more" @click="goToMore">更多&gt;&gt;</text>
  44. </view>
  45. <view class="newOrders_item" v-for="newOrder in newOrderList" :key="newOrder.id" @click="toDetail(newOrder.id)">
  46. <image class="ji" src="../../static/imgs/icon_ji.png" mode="widthFix"
  47. v-if="newOrder.emergencyType && newOrder.emergencyType.value == 2"></image>
  48. <image class="jiaji" src="../../static/imgs/icon_jiaji.png" mode="widthFix"
  49. v-if="newOrder.emergencyType && newOrder.emergencyType.value == 3"></image>
  50. <view class="newOrders_item_time" v-if="newOrder.showCreateTime">{{ newOrder.showCreateTime }}</view>
  51. <view class="newOrders_item_time" v-else-if="newOrder.yyjdTime && newOrder.gdState.value == 11">
  52. {{newOrder.yyjdTime | formatDate('MM-dd HH:mm')}}
  53. </view>
  54. <text class="newOrders_item_taskType">{{
  55. newOrder.isHalfInspect === 1
  56. ? "半程陪检"
  57. : newOrder.taskType && newOrder.taskType.taskName
  58. }}</text>
  59. <text class="newOrders_item_patientName">{{
  60. newOrder.patient && newOrder.patient.patientName
  61. }}</text>
  62. <text class="newOrders_item_status"
  63. :class="newOrder.stateTextClass">{{ newOrder.gdState && newOrder.gdState.name }}</text>
  64. </view>
  65. </view>
  66. <!-- 快捷工单 -->
  67. <view class="quick_other">
  68. <view class="quick_other_header">
  69. <text class="quick_other_header_title">快捷工单</text>
  70. </view>
  71. <view class="quick_other_container">
  72. <view class="quick_other_container_item" v-for="quickOther in quickOtherList" :key="quickOther.id">
  73. <view class="quick_other_container_item_text" @click="quickOrderOther(quickOther)">
  74. {{ quickOther.taskName }}
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <seiminFooterNav></seiminFooterNav>
  81. <seiminModel ref="seiminModel"></seiminModel>
  82. <seiminPicker ref="sPicker" :title="pickerTitle" titleColor="#808080" titleFontSize="28rpx" confirmColor="#333"
  83. confirmFontSize="38rpx" confirmFontWeight="500" itemFontSize="32rpx" @onClose="closePicker"
  84. @onConfirm="confirmPicker" :pickerList="hospitalList">
  85. </seiminPicker>
  86. </view>
  87. </template>
  88. <script>
  89. import {
  90. backPress,
  91. getCurrentPagesSeiminAll
  92. } from '../../utils/index.js';
  93. import {
  94. mapState,
  95. mapMutations,
  96. mapActions
  97. } from "vuex";
  98. import {
  99. reqSpecimenWorkOrderMsg,
  100. reqDeptTaskType,
  101. reqFetchDataList,
  102. } from "../../request/api.js";
  103. import {
  104. GDSTATE
  105. } from "../../utils/enum.gdstate.js";
  106. import {
  107. ASSOCIATION_TYPES
  108. } from "../../utils/enum.association_types.js";
  109. export default {
  110. onBackPress() {
  111. backPress();
  112. },
  113. onShow() {
  114. this.flag = true;
  115. },
  116. watch: {
  117. // 首页搜索内容
  118. searchText(newVal) {
  119. if (newVal && this.flag) {
  120. this.flag = false;
  121. uni.navigateTo({
  122. url: `/pages/search/search?txt=${newVal}`,
  123. })
  124. }
  125. },
  126. reFresh() {
  127. uni.redirectTo({
  128. url: `${getCurrentPagesSeiminAll()}`,
  129. })
  130. }
  131. },
  132. data() {
  133. return {
  134. isFocus: true,
  135. reFresh: '',
  136. openSpecimen: false, //标本的开通权限
  137. searchText: '', //首页搜索内容
  138. placeholderStyle: "color:#999;font-size:30rpx;line-height:66rpx;",
  139. urgentNum: 0, //急标数量
  140. ordinaryNum: 0, //普标数量
  141. newOrderList: [], //最新工单列表
  142. quickOtherList: [], //快捷工单列表
  143. hospitalList: [], //当前用户权限中的院区列表
  144. pickerTitle: "", //选择院区picker的title
  145. specimenTaskTypeId: undefined, //标本任务类型id
  146. flag: true, //是否可以跳转
  147. updateTipsForNurses: '', //护士端更新提示
  148. };
  149. },
  150. computed: {
  151. ...mapState("login", ["loginInfo"]),
  152. ...mapState('other', [
  153. "isShowSeiminModel",
  154. "deptDisplay",
  155. "specimenButton",
  156. ]),
  157. },
  158. methods: {
  159. ...mapMutations('other', [
  160. "changeSeiminModel",
  161. "changeQucikCreateOrderType",
  162. "changeDeptDisplay",
  163. "changeSpecimenButton",
  164. "changeNurseDeptSwitchTip",
  165. "changeSearchDeptParams",
  166. ]),
  167. ...mapActions('system', ["vxSystem"]),
  168. blur() {
  169. this.isFocus = false;
  170. },
  171. // 前往标本列表
  172. gotoSpecimenList(type) {
  173. uni.navigateTo({
  174. url: `/pages/specimenList/specimenList?urgent=${type==='urgent'?1:0}`
  175. })
  176. },
  177. // 前往工单详情
  178. toDetail(id) {
  179. uni.navigateTo({
  180. url: `/pages/orderDetail/orderDetail?id=${id}`
  181. })
  182. },
  183. // 跳转到工单列表页面
  184. goToMore() {
  185. uni.navigateTo({
  186. url: '/pages/orderList/orderList'
  187. })
  188. },
  189. // 获取页面数据
  190. init() {
  191. uni.showLoading({
  192. title: "加载中",
  193. });
  194. Promise.all([
  195. this.querySpecimenNumRequest(), //查询急标和普标数量
  196. this.queryWorkOrdersRequest(), //查询最新工单列表
  197. this.queryDeptTaskTypeRequest(), //查询快捷工单(其他临床服务任务类型)
  198. this.queryDeptDisplayRequest(), //护士端科室显示选择(名称还是别名)
  199. this.queryUpdateTipsForNursesRequest(), //护士端更新提示
  200. this.querySpecimenButtonRequest(), //标本按钮文字
  201. this.queryNurseDeptSwitchTipRequest(), //护士科室切换提示自动关闭设置
  202. ]).then((values) => {
  203. uni.hideLoading();
  204. uni.stopPullDownRefresh();
  205. this.querySpecimenNumResponse(values[0]);
  206. this.queryWorkOrdersResponse(values[1]);
  207. this.queryDeptTaskTypeResponse(values[2]);
  208. this.queryDeptDisplayResponse(values[3]);
  209. this.queryUpdateTipsForNursesResponse(values[4]);
  210. this.querySpecimenButtonResponse(values[5]);
  211. this.queryNurseDeptSwitchTipResponse(values[6]);
  212. if (this.isShowSeiminModel) {
  213. this.showDeptModel();
  214. this.changeSeiminModel(false);
  215. }
  216. });
  217. },
  218. // 查询急标和普标数量
  219. querySpecimenNumRequest() {
  220. if (this.openSpecimen) {
  221. return reqSpecimenWorkOrderMsg({
  222. deptId: this.loginInfo.user.dept.id,
  223. });
  224. } else {
  225. return Promise.resolve();
  226. }
  227. },
  228. // 查询急标和普标数量
  229. querySpecimenNumResponse(res) {
  230. if (!this.openSpecimen) {
  231. return;
  232. }
  233. if (res.status == 200) {
  234. if (res.specimenCount) {
  235. this.urgentNum = res.specimenCount.urgent;
  236. }
  237. if (res.specimenCount) {
  238. this.ordinaryNum = res.specimenCount.noUrgent;
  239. }
  240. } else {
  241. this.$refs.seiminModel.show({
  242. skin: "toast",
  243. icon: "error",
  244. content: res.msg || "获取数据失败",
  245. });
  246. throw new Error(res.msg || '获取数据失败');
  247. }
  248. },
  249. // 查询最新工单列表
  250. queryWorkOrdersRequest() {
  251. return reqFetchDataList("nurse", "workOrder", {
  252. workOrder: {
  253. createDept: this.loginInfo.user.dept.id,
  254. platform: 2,
  255. searchDays: 2,
  256. },
  257. idx: 0,
  258. sum: 5,
  259. });
  260. },
  261. // 查询最新工单列表
  262. queryWorkOrdersResponse(res) {
  263. if (res.status == 200) {
  264. res.list = res.list || [];
  265. this.newOrderList = res.list.map((v) => {
  266. if (v.gdState) {
  267. if (
  268. v.gdState.value == GDSTATE["待接单"] ||
  269. v.gdState.value == GDSTATE["待抢单"]
  270. ) {
  271. v.stateTextClass = "red";
  272. } else if (
  273. v.gdState.value == GDSTATE["待评价"] ||
  274. v.gdState.value == GDSTATE["已完成"]
  275. ) {
  276. v.stateTextClass = "green";
  277. } else {
  278. v.stateTextClass = "yellow";
  279. }
  280. }
  281. return v;
  282. });
  283. } else {
  284. this.$refs.seiminModel.show({
  285. skin: "toast",
  286. icon: "error",
  287. content: res.msg || "获取数据失败",
  288. });
  289. throw new Error(res.msg || '获取数据失败');
  290. }
  291. },
  292. // 查询快捷工单(其他临床服务任务类型)
  293. queryDeptTaskTypeRequest() {
  294. return reqDeptTaskType({
  295. deptId: this.loginInfo.user.dept.id,
  296. });
  297. },
  298. // 查询快捷工单(其他临床服务,标本)
  299. queryDeptTaskTypeResponse(res) {
  300. if (res.status == 200) {
  301. res.data = res.data || {};
  302. res.data.allTaskTypes = res.data.allTaskTypes || [];
  303. this.openSpecimen = res.data.openSpecimen;
  304. this.quickOtherList = res.data.allTaskTypes.filter(
  305. (v) => v.associationType ? v.associationType.value == ASSOCIATION_TYPES["其他临床服务"] : false
  306. );
  307. let specimenTaskType = res.data.allTaskTypes.find(
  308. (v) => v.associationType ? v.associationType.value == ASSOCIATION_TYPES["临时标本业务"] : false
  309. );
  310. this.specimenTaskTypeId = specimenTaskType && specimenTaskType.id;
  311. } else {
  312. this.$refs.seiminModel.show({
  313. skin: "toast",
  314. icon: "error",
  315. content: res.msg || "获取数据失败",
  316. });
  317. throw new Error(res.msg || '获取数据失败');
  318. }
  319. },
  320. // 护士端科室显示选择(名称还是别名)
  321. queryDeptDisplayRequest() {
  322. return this.vxSystem({
  323. idx: 0,
  324. sum: 1,
  325. systemConfiguration: {
  326. keyconfig: "deptDisplay",
  327. },
  328. });
  329. },
  330. // 护士端科室显示选择(名称还是别名)
  331. queryDeptDisplayResponse(res) {
  332. if (res.status == 200) {
  333. res.list = res.list || [];
  334. res.list[0] = res.list[0] || {};
  335. if (!res.list[0].id) {
  336. this.$refs.seiminModel.show({
  337. skin: "toast",
  338. icon: "error",
  339. content: "无法获取到【护士端科室显示选择】配置,请前往配置",
  340. });
  341. throw new Error('无法获取到【护士端科室显示选择】配置,请前往配置');
  342. }
  343. this.changeDeptDisplay(res.list[0].valueconfig);
  344. } else {
  345. this.$refs.seiminModel.show({
  346. skin: "toast",
  347. icon: "error",
  348. content: res.msg || "无法获取到【护士端科室显示选择】配置,请前往配置",
  349. });
  350. throw new Error(res.msg || '无法获取到【护士端科室显示选择】配置,请前往配置');
  351. }
  352. },
  353. // 护士端更新提示
  354. queryUpdateTipsForNursesRequest() {
  355. return this.vxSystem({
  356. idx: 0,
  357. sum: 1,
  358. systemConfiguration: {
  359. keyconfig: "updateTipsForNurses",
  360. },
  361. });
  362. },
  363. // 护士端更新提示
  364. queryUpdateTipsForNursesResponse(res) {
  365. if (res.status == 200) {
  366. res.list = res.list || [];
  367. res.list[0] = res.list[0] || {};
  368. if (!res.list[0].id) {
  369. this.$refs.seiminModel.show({
  370. skin: "toast",
  371. icon: "error",
  372. content: "无法获取到【护士端更新提示】配置,请前往配置",
  373. });
  374. throw new Error('无法获取到【护士端更新提示】配置,请前往配置');
  375. }
  376. this.updateTipsForNurses = res.list[0].valueconfig;
  377. } else {
  378. this.$refs.seiminModel.show({
  379. skin: "toast",
  380. icon: "error",
  381. content: res.msg || "无法获取到【护士端更新提示】配置,请前往配置",
  382. });
  383. throw new Error(res.msg || '无法获取到【护士端更新提示】配置,请前往配置');
  384. }
  385. },
  386. // 标本按钮文字
  387. querySpecimenButtonRequest() {
  388. return this.vxSystem({
  389. idx: 0,
  390. sum: 1,
  391. systemConfiguration: {
  392. keyconfig: "specimenButton",
  393. },
  394. });
  395. },
  396. // 标本按钮文字
  397. querySpecimenButtonResponse(res) {
  398. if (res.status == 200) {
  399. res.list = res.list || [];
  400. res.list[0] = res.list[0] || {};
  401. if (!res.list[0].id) {
  402. this.$refs.seiminModel.show({
  403. skin: "toast",
  404. icon: "error",
  405. content: "无法获取到【标本按钮文字】配置,请前往配置",
  406. });
  407. throw new Error('无法获取到【标本按钮文字】配置,请前往配置');
  408. }
  409. this.changeSpecimenButton(res.list[0].valueconfig);
  410. } else {
  411. this.$refs.seiminModel.show({
  412. skin: "toast",
  413. icon: "error",
  414. content: res.msg || "无法获取到【标本按钮文字】配置,请前往配置",
  415. });
  416. throw new Error(res.msg || '无法获取到【标本按钮文字】配置,请前往配置');
  417. }
  418. },
  419. // 护士科室切换提示自动关闭设置
  420. queryNurseDeptSwitchTipRequest() {
  421. return this.vxSystem({
  422. idx: 0,
  423. sum: 1,
  424. systemConfiguration: {
  425. keyconfig: "nurseDeptSwitchTip",
  426. },
  427. });
  428. },
  429. // 护士科室切换提示自动关闭设置
  430. queryNurseDeptSwitchTipResponse(res) {
  431. if (res.status == 200) {
  432. res.list = res.list || [];
  433. res.list[0] = res.list[0] || {};
  434. if (!res.list[0].id) {
  435. this.$refs.seiminModel.show({
  436. skin: "toast",
  437. icon: "error",
  438. content: "无法获取到【护士科室切换提示自动关闭设置】配置,请前往配置",
  439. });
  440. throw new Error('无法获取到【护士科室切换提示自动关闭设置】配置,请前往配置');
  441. }
  442. this.changeNurseDeptSwitchTip(res.list[0].valueconfig);
  443. } else {
  444. this.$refs.seiminModel.show({
  445. skin: "toast",
  446. icon: "error",
  447. content: res.msg || "无法获取到【护士科室切换提示自动关闭设置】配置,请前往配置",
  448. });
  449. throw new Error(res.msg || '无法获取到【护士科室切换提示自动关闭设置】配置,请前往配置');
  450. }
  451. },
  452. // 一键收取标本
  453. collectSpecimens() {
  454. if (!this.specimenTaskTypeId) {
  455. this.$refs.seiminModel.show({
  456. skin: "toast",
  457. icon: "error",
  458. content: "无法获取到临时标本业务",
  459. });
  460. throw new Error('无法获取到标本任务类型id');
  461. }
  462. this.changeQucikCreateOrderType({
  463. type: "specimen",
  464. taskTypeId: this.specimenTaskTypeId,
  465. });
  466. uni.navigateTo({
  467. url: "/pages/quickCreateOrder/quickCreateOrder",
  468. });
  469. },
  470. //其他临床服务快捷建单
  471. quickOrderOther(quickOther) {
  472. this.changeQucikCreateOrderType({
  473. type: "other",
  474. taskTypeId: quickOther.id,
  475. });
  476. uni.navigateTo({
  477. url: "/pages/quickCreateOrder/quickCreateOrder",
  478. });
  479. },
  480. // 切换科室弹窗
  481. showDeptModel() {
  482. const {
  483. user, //当前登录用户
  484. } = this.loginInfo;
  485. const userDept =
  486. user && user.dept ?
  487. this.deptDisplay == 1 ?
  488. user.dept.dept :
  489. user.dept.deptalias :
  490. "";
  491. this.$refs.seiminModel.showChangeDept({
  492. content: `您当前所属科室为<text class="green">${userDept}</text>,如与您实际科室不符点击<text class="red">切换科室</text>。`,
  493. btns: [{
  494. name: "知道了",
  495. textColor: "#49B856",
  496. flex: 2,
  497. click: () => {
  498. this.$refs.seiminModel.close();
  499. this.isFocus = true;
  500. }
  501. },
  502. {
  503. name: "前往切换科室",
  504. textColor: "#666",
  505. flex: 3,
  506. click: (e) => {
  507. this.$refs.seiminModel.close();
  508. this.openPicker();
  509. },
  510. },
  511. ],
  512. });
  513. },
  514. //关闭
  515. closePicker() {
  516. this.$refs.sPicker._close();
  517. },
  518. //打开
  519. openPicker() {
  520. this.$refs.sPicker._open();
  521. let index = this.hospitalList.findIndex(v => v.value == this.loginInfo.user.currentHospital.id);
  522. this.$refs.sPicker._changeValue(index);
  523. },
  524. //确定:接收子组件传来的参数
  525. confirmPicker(checkedObj) {
  526. this.changeSearchDeptParams({
  527. backUrl: "/pages/index/index", //返回的url
  528. type: "changeDept_index", //首页切换科室
  529. hospital: checkedObj, //先选择院区
  530. });
  531. uni.navigateTo({
  532. url: "/pages/searchDept/searchDept",
  533. });
  534. },
  535. },
  536. mounted() {
  537. //选择院区picker的title
  538. this.pickerTitle = `您当前所属科室为<b class="green">${this.loginInfo.user.dept.dept}</b>,请您先选择院区`;
  539. //权限中的院区修改数据结构
  540. this.hospitalList = this.loginInfo.infoPermission.hospitals.map((v) => ({
  541. value: v.id,
  542. label: v.hosName,
  543. }));
  544. this.init();
  545. },
  546. onPullDownRefresh() {
  547. this.init();
  548. },
  549. };
  550. </script>
  551. <style lang="scss" scoped>
  552. .index {
  553. padding-bottom: 108rpx;
  554. // 弧形背景
  555. .arc_edge {
  556. @include arc_edge(220rpx);
  557. }
  558. .index_container {
  559. padding: 0 24rpx;
  560. position: relative;
  561. z-index: 2;
  562. // 搜素框
  563. .search {
  564. height: 66rpx;
  565. margin-top: -200rpx;
  566. @include flex(space-between, center);
  567. .search_wrap {
  568. width: 600rpx;
  569. height: 100%;
  570. border-radius: 33rpx;
  571. background-color: #fff;
  572. position: relative;
  573. input {
  574. height: 100%;
  575. padding-left: 33rpx;
  576. padding-right: 147rpx;
  577. }
  578. .searchBtn {
  579. position: absolute;
  580. right: 0;
  581. top: 50%;
  582. transform: translateY(-50%);
  583. line-height: 1em;
  584. color: #666;
  585. font-size: 32rpx;
  586. width: 110rpx;
  587. text-align: center;
  588. padding: 6rpx 0;
  589. @include border(left);
  590. }
  591. }
  592. .icon-saoma {
  593. width: 66rpx;
  594. height: 66rpx;
  595. background-color: #bee1a7;
  596. border-radius: 50%;
  597. color: $defaultColor;
  598. @include flex(center, center);
  599. }
  600. }
  601. // 通告栏
  602. .uni-noticebar {
  603. height: 88rpx;
  604. margin-top: 24rpx;
  605. margin-bottom: 0;
  606. @include border;
  607. }
  608. // 一键收标本
  609. .collect_specimens {
  610. width: 702rpx;
  611. height: 176rpx;
  612. background-color: #fff;
  613. margin-top: 8rpx;
  614. border-radius: 8rpx;
  615. // box-shadow: 0 0 7rpx 0 rgba(73, 184, 86, 0.09);
  616. position: relative;
  617. @include border;
  618. @include flex(center, center);
  619. @include semicircle(#f9fafb);
  620. .collect_icon {
  621. width: 48rpx;
  622. height: 48rpx;
  623. border-radius: 50%;
  624. background-color: rgba(57, 177, 153, 0.3);
  625. font-size: 24rpx;
  626. color: #39b199;
  627. @include border($color:#39b199);
  628. @include flex(center, center);
  629. }
  630. .collect_specimensNum {
  631. margin: 0 35rpx;
  632. width: 277rpx;
  633. font-size: 34rpx;
  634. color: #666;
  635. .collect_num {
  636. font-size: 46rpx;
  637. font-weight: 600;
  638. color: #333;
  639. margin-left: 16rpx;
  640. }
  641. .collect_row {
  642. height: 88rpx;
  643. @include border($directive:bottom, $style:dashed);
  644. @include flex(flex-start, center);
  645. &:last-of-type {
  646. border-bottom: none;
  647. }
  648. }
  649. }
  650. .collect_btn {
  651. margin: 0;
  652. width: 224rpx;
  653. height: 88rpx;
  654. background: linear-gradient(90deg, #74c271 0%, #39b199 100%);
  655. border-radius: 56rpx;
  656. color: #fff;
  657. font-size: 32rpx;
  658. line-height: 88rpx;
  659. @include clamp;
  660. &::after {
  661. border: none;
  662. }
  663. }
  664. }
  665. // 最新工单
  666. .newOrders {
  667. width: 702rpx;
  668. min-height: 530rpx;
  669. background-color: #fff;
  670. margin-top: 8rpx;
  671. border-radius: 8rpx;
  672. // box-shadow: 0 0 7rpx 0 rgba(73, 184, 86, 0.09);
  673. position: relative;
  674. padding: 0 15rpx;
  675. font-size: 32rpx;
  676. @include border;
  677. @include semicircle(#f9fafb, 70rpx);
  678. .newOrders_header {
  679. height: 87rpx;
  680. padding: 0 27rpx;
  681. @include border($directive:bottom, $style:dashed);
  682. @include flex(space-between, center);
  683. .newOrders_header_title {
  684. color: #333;
  685. }
  686. .newOrders_header_more {
  687. color: #666;
  688. }
  689. }
  690. .newOrders_item {
  691. height: 88rpx;
  692. padding: 0 27rpx;
  693. color: #333;
  694. font-size: 30rpx;
  695. position: relative;
  696. @include border(bottom);
  697. @include flex(center, center);
  698. .ji,
  699. .jiaji {
  700. width: 60rpx;
  701. position: absolute;
  702. right: 0;
  703. top: 0;
  704. }
  705. &:last-of-type {
  706. border-bottom: none;
  707. }
  708. .newOrders_item_time {
  709. width: 88rpx;
  710. text-align: center;
  711. }
  712. .newOrders_item_taskType {
  713. flex: 1;
  714. margin-left: 16rpx;
  715. @include clamp(1);
  716. }
  717. .newOrders_item_patientName {
  718. margin-left: 16rpx;
  719. margin-right: 16rpx;
  720. width: 148rpx;
  721. @include clamp(1);
  722. }
  723. .newOrders_item_status {
  724. width: 4em;
  725. }
  726. }
  727. }
  728. // 快捷工单
  729. .quick_other {
  730. width: 702rpx;
  731. background-color: #fff;
  732. margin-top: 8rpx;
  733. border-radius: 8rpx;
  734. // box-shadow: 0 0 7rpx 0 rgba(73, 184, 86, 0.09);
  735. position: relative;
  736. padding: 0 15rpx;
  737. font-size: 32rpx;
  738. @include border;
  739. @include semicircle(#f9fafb, 70rpx);
  740. .quick_other_header {
  741. height: 87rpx;
  742. padding: 0 27rpx;
  743. @include border($directive:bottom, $style:dashed);
  744. @include flex(space-between, center);
  745. .quick_other_header_title {
  746. color: #333;
  747. }
  748. }
  749. .quick_other_container {
  750. min-height: 288rpx;
  751. @include flex(flex-start, center);
  752. flex-wrap: wrap;
  753. font-size: 28rpx;
  754. .quick_other_container_item {
  755. width: 96rpx;
  756. height: 96rpx;
  757. border-radius: 8rpx;
  758. margin: 16rpx 35rpx;
  759. color: #fff;
  760. text-align: center;
  761. @include flex(center, center);
  762. .quick_other_container_item_text {
  763. @include clamp(2);
  764. }
  765. &:nth-of-type(8n + 1) {
  766. background-color: #a4c4c1;
  767. }
  768. &:nth-of-type(8n + 2) {
  769. background-color: #56bab6;
  770. }
  771. &:nth-of-type(8n + 3) {
  772. background-color: #39b199;
  773. }
  774. &:nth-of-type(8n + 4) {
  775. background-color: #48717f;
  776. }
  777. &:nth-of-type(8n + 5) {
  778. background-color: #56bab6;
  779. }
  780. &:nth-of-type(8n + 6) {
  781. background-color: #a4c4c1;
  782. }
  783. &:nth-of-type(8n + 7) {
  784. background-color: #48717f;
  785. }
  786. &:nth-of-type(8n + 8) {
  787. background-color: #8e9d9e;
  788. }
  789. }
  790. }
  791. }
  792. }
  793. }
  794. </style>