index.vue 26 KB

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