index.vue 25 KB

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