index.vue 25 KB

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