receipt_infopage.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980
  1. <template>
  2. <view class="Receipt_infopage" v-if="Object.keys(infoDATA).length > 0">
  3. <view class="title">工单信息</view>
  4. <view class="page_item footerOtherMargin">
  5. <view class="page_item_top">
  6. <view class="page_item_top_L">
  7. <text class="L_text">单号:{{ infoDATA.gdcode }}</text>
  8. <view class="page_item_cont_start emergency1" v-if="infoDATA.emergencyType.value == 1">
  9. <text>
  10. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  11. {{ infoDATA.emergencyType.name }}
  12. </text>
  13. </view>
  14. <view class="page_item_cont_start emergency" v-if="infoDATA.emergencyType.value == 2">
  15. <text>
  16. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  17. {{ infoDATA.emergencyType.name }}
  18. </text>
  19. </view>
  20. <view class="page_item_cont_start emergencys" v-if="infoDATA.emergencyType.value == 3">
  21. <text>
  22. <text class="cubeic-star icon_transport transport-shiwujiaoxing"></text>
  23. {{ infoDATA.emergencyType.name }}
  24. </text>
  25. </view>
  26. </view>
  27. <view class="page_item_top_R">
  28. <text class="L_iocn" v-if="
  29. !(
  30. infoDATA.gdState.value == 5 &&
  31. infoDATA.taskType.associationType.value == 'inspect'
  32. )
  33. ">{{ infoDATA.gdState.name }}</text>
  34. <text class="L_iocn" v-if="
  35. infoDATA.gdState.value == 5 &&
  36. infoDATA.taskType.associationType.value == 'inspect'
  37. ">待送回</text>
  38. </view>
  39. <view class="L"></view>
  40. <view class="R"></view>
  41. </view>
  42. <view class="page_item_cont">
  43. <view class="page_item_cont_T">
  44. <view class="page_item_cont_title">
  45. <text> <text class="starting">起</text> 点科室 </text>
  46. <text class="text_big">{{ infoDATA.startDept.dept }}</text>
  47. </view>
  48. </view>
  49. <view class="line"></view>
  50. <view class="page_item_cont_B">
  51. <view class="page_item_cont_title" v-for="(dept, index) of infoDATA.middleDept" :key="'ico' + index">
  52. <view v-if="infoDATA.taskType.associationType.value == 'inspect'">
  53. <text> <text class="End">检</text> 查科室 </text>
  54. <text class="text_big">{{ dept.dept }}</text>
  55. <view></view>
  56. </view>
  57. </view>
  58. <template v-if="infoDATA.taskType.associationType.value != 'inspect'">
  59. <view class="page_item_cont_title" v-for="(dept, i) of infoDATA.endDepts" :key="i">
  60. <view>
  61. <text> <text class="End">终</text> 点科室 </text>
  62. <text class="text_big">{{ dept.dept }}</text>
  63. </view>
  64. </view>
  65. </template>
  66. <view v-if="
  67. infoDATA.taskType.associationType.value == 'inspect' ||
  68. infoDATA.taskType.associationType.value == 'patientTransport'
  69. ">
  70. <!-- 待抢单 -->
  71. <text class="red" v-if="infoDATA.gdState.value == 2">请扫描患者腕带,或者请扫描科室码</text>
  72. <!-- 待到达 -->
  73. <text class="red" v-if="infoDATA.gdState.value == 4">请扫描患者腕带</text>
  74. <!-- 执行中 -->
  75. <text class="red" v-if="infoDATA.gdState.value == 8">请扫描检查科室码,并扫描患者腕带</text>
  76. <!-- 待送达 -->
  77. <text class="red" v-if="infoDATA.gdState.value == 5">请扫描终点科室码,并扫描患者腕带</text>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="page_item_foot">
  82. <view class="page_item_foot_text">
  83. <text class="text1">状态</text>
  84. <text class="text2" v-if="
  85. !(
  86. infoDATA.gdState.value == 5 &&
  87. infoDATA.taskType.associationType.value == 'inspect'
  88. )
  89. ">{{ infoDATA.gdState.name }}</text>
  90. <text class="text2" v-if="
  91. infoDATA.gdState.value == 5 &&
  92. infoDATA.taskType.associationType.value == 'inspect'
  93. ">待送回</text>
  94. </view>
  95. <view class="page_item_foot_text">
  96. <text class="text1">关联类型</text>
  97. <text class="text2">{{ infoDATA.taskType.associationType.name }}</text>
  98. </view>
  99. <view class="page_item_foot_text">
  100. <text class="text1">任务类型</text>
  101. <text class="text2">{{ infoDATA.taskType.taskName }}<template
  102. v-if="infoDATA.goodsRemark">-{{infoDATA.goodsRemark}}</template></text>
  103. </view>
  104. <view class="page_item_foot_text" v-if="infoDATA.taskType.associationType.value==='inspect'">
  105. <text class="text1">是否半程陪检</text>
  106. <text class="text2">{{ infoDATA.isHalfInspect===1?'是':'否' }}</text>
  107. </view>
  108. <view class="page_item_foot_text">
  109. <text class="text1">执行人员</text>
  110. <text class="text2">{{ infoDATA.worker?infoDATA.worker.name:'-' }}</text>
  111. </view>
  112. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '2'">
  113. <text class="text1">预计响应时间</text>
  114. <text class="text2">{{ infoDATA.estimeResponseTime || 0 }}</text>
  115. </view>
  116. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '5'">
  117. <text class="text1" v-if="!(infoDATA.taskType.associationType.value == 'inspect')">预计送达时间</text>
  118. <text class="text1" v-if="infoDATA.taskType.associationType.value == 'inspect'">预计送回时间</text>
  119. <text class="text2">{{ infoDATA.estimeCompleteTime || 0 }}</text>
  120. </view>
  121. <view class="page_item_foot_text" v-if="infoDATA.gdState.value == '4'">
  122. <text class="text1">预计到达时间</text>
  123. <text class="text2">{{ infoDATA.estimateArriveTime || 0 }}</text>
  124. </view>
  125. <view class="page_item_foot_text">
  126. <text class="text1">创建时间</text>
  127. <text class="text2">{{ infoDATA.startTime }}</text>
  128. </view>
  129. <view class="page_item_foot_text">
  130. <text class="text1">预约时间</text>
  131. <text class="text2" v-if="infoDATA.taskType.associationType.value == 'inspect'">{{ infoDATA.yyTime }}</text>
  132. <text class="text2" v-if="infoDATA.taskType.associationType.value == 'patientTransport'">{{ infoDATA.yyjdTime }}</text>
  133. </view>
  134. <view class="page_item_foot_text" v-if="
  135. infoDATA.taskType.associationType.value == 'inspect' ||
  136. infoDATA.taskType.associationType.value == 'patientTransport'
  137. ">
  138. <text class="text1">床号</text>
  139. <text class="text2">{{
  140. infoDATA.patient ? infoDATA.patient.bedNum : "-"
  141. }}</text>
  142. </view>
  143. <view class="page_item_info" style="padding: 0;" v-if="infoDATA.workOrderRemark !== undefined">
  144. <view class="page_item_foot_text">
  145. <view class="text1">工单备注</view>
  146. <view class="text2" style="float: none;word-break: break-all;">{{ infoDATA.workOrderRemark }}</view>
  147. </view>
  148. </view>
  149. <view class="page_item_foot_text" v-if="
  150. infoDATA.taskType.associationType.value == 'inspect' ||
  151. infoDATA.taskType.associationType.value == 'patientTransport'
  152. ">
  153. <text class="text1">携带设备</text>
  154. <text class="text2">{{ infoDATA.goods || "暂无" }}</text>
  155. </view>
  156. <view class="page_item_foot_text" v-if="
  157. infoDATA.taskType.associationType.value == 'inspect' ||
  158. infoDATA.taskType.associationType.value == 'patientTransport'
  159. ">
  160. <text class="text1">患者姓名</text>
  161. <text class="text2">{{ infoDATA.patient.patientName }}({{
  162. infoDATA.patient.patientCode
  163. }})</text>
  164. </view>
  165. <view class="page_item_foot_text" v-if="
  166. (infoDATA.taskType.associationType.value == 'inspect' ||
  167. infoDATA.taskType.associationType.value == 'patientTransport')&&infoDATA.patient.careLevel
  168. ">
  169. <text class="text1">{{infoDATA.patient.careLevel.desc}}</text>
  170. <text class="text2"
  171. :class="[(infoDATA.patient.careLevel.value==0||infoDATA.patient.careLevel.value==1)?'red':'green']">{{infoDATA.patient.careLevel.name}}</text>
  172. </view>
  173. <view class="page_item_foot_text" v-if="
  174. (infoDATA.taskType.associationType.value == 'inspect' ||
  175. infoDATA.taskType.associationType.value == 'patientTransport')&&infoDATA.patient.illnessState
  176. ">
  177. <text class="text1">{{infoDATA.patient.illnessState.desc}}</text>
  178. <text class="text2"
  179. :class="{red:infoDATA.patient.illnessState.value==2||infoDATA.patient.illnessState.value==3}">{{infoDATA.patient.illnessState.name}}</text>
  180. </view>
  181. <view class="page_item_foot_text"
  182. v-if="
  183. (infoDATA.taskType.associationType.value == 'inspect' ||
  184. infoDATA.taskType.associationType.value == 'patientTransport')&&(infoDATA.isAccompany===1||infoDATA.isAccompany===0)">
  185. <text class="text1">陪同情况</text>
  186. <text class="text2"
  187. :class="{red:infoDATA.isAccompany===1}">{{ infoDATA.isAccompany===1?'需要医护陪同':'无需医护陪同'}}</text>
  188. </view>
  189. </view>
  190. <!-- 药包 -->
  191. <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'drugsBag'">
  192. <text class="page_item_info_title">药包编码</text>
  193. <text class="text">{{ infoDATA.drugs?infoDATA.drugs.packid:'无' }}</text>
  194. </view>
  195. <!-- 标本 -->
  196. <view class="page_item_info" v-if="
  197. infoDATA.taskType.associationType.value == 'specimen' ||
  198. infoDATA.taskType.associationType.value == 'specimenPlan'
  199. ">
  200. <view>
  201. <text class="page_item_info_title">标本信息</text>
  202. <text class="text">
  203. 预计标本总数
  204. <text class="page_item_info_txt">{{
  205. infoDATA.expectReceiveNum || 0
  206. }}</text>
  207. </text>
  208. </view>
  209. <view v-for="spe in infoDATA.specimenSet" :key="spe.id" class="spe_list">
  210. <view>
  211. <text class="page_item_info_title">标本类型</text>
  212. <text class="text">{{ spe.stype ? spe.stype.name : "-" }}({{
  213. spe.urgent == 1 ? "急" : "普"
  214. }})</text>
  215. </view>
  216. <view>
  217. <text class="page_item_info_title">标本编码</text>
  218. <text class="text">{{ spe.scode }}</text>
  219. </view>
  220. <view>
  221. <text class="page_item_info_title">患者姓名</text>
  222. <text class="text">{{ spe.patientName }}<text v-if="spe.bedNum">({{spe.bedNum}})</text></text>
  223. </view>
  224. <view>
  225. <text class="page_item_info_title">目标科室</text>
  226. <text class="text">{{
  227. spe.checkDept ? spe.checkDept.dept : "-"
  228. }}</text>
  229. </view>
  230. </view>
  231. </view>
  232. <!-- 静配 -->
  233. <view class="page_item_info" v-if="infoDATA.taskType.associationType.value == 'jPBag'">
  234. <text class="page_item_info_title">药包编码</text>
  235. <text class="text">{{ infoDATA.staticDistri?infoDATA.staticDistri.packid:'无' }}</text>
  236. </view>
  237. <!-- 陪检 -->
  238. <view v-if="infoDATA.taskType.associationType.value == 'inspect'">
  239. <view class="page_item_info">
  240. <text class="page_item_info_title">检查信息</text>
  241. </view>
  242. <view id="infos" :animation="animationData">
  243. <view class="page_item_infos" v-for="(item, index) of infoDATA.checkList" :key="index">
  244. <view class="page_item_info2">
  245. <view class="page_item_foot_text">
  246. <text class="text1">检查科室</text>
  247. <text class="text2">{{ item.execDept?item.execDept.dept:'-' }}</text>
  248. </view>
  249. <view class="page_item_foot_text">
  250. <text class="text1">检查项</text>
  251. <text class="text2">{{ item.inspectName||'-' }}</text>
  252. </view>
  253. <view class="page_item_foot_text">
  254. <text class="text1">叫号信息</text>
  255. <text class="text2">{{ item.reservationNumber||'-' }}</text>
  256. </view>
  257. <view class="page_item_foot_text">
  258. <text class="text1">预约时间</text>
  259. <text class="text2">{{ item.yyTime || "-" }}</text>
  260. </view>
  261. <view class="page_item_foot_text"
  262. v-show="item.inspectState.value==1||item.inspectState.value==2||item.inspectState.value==4">
  263. <view class="btn" @click.stop="remove(item)">移除</view>
  264. </view>
  265. </view>
  266. </view>
  267. </view>
  268. <view id="pulldown" @click="show('show')" v-if="showType == 'hiddle'">
  269. 点击可查看检查详情
  270. <text class="cubeic-pulldown icon_transport transport-paixujiantouxia"></text>
  271. </view>
  272. <view id="pullup" @click="show('hiddle')" v-if="showType == 'show'">
  273. 点击可收起检查详情
  274. <text class="cubeic-pullup icon_transport transport-paixujiantoushang"></text>
  275. </view>
  276. </view>
  277. </view>
  278. <view class="foot_btn2 footerPadding">
  279. <view class="btn2" @click="showAlert" v-if="infoDATA.gdState.value == 2">接单</view>
  280. <!-- 如果不是静配,药配,标本配送,标本轮巡 -->
  281. <template
  282. v-if="((!infoDATA.worker)||(infoDATA.worker&&infoDATA.worker.id == currentUserId))&&infoDATA.gdState.value != 6&&infoDATA.gdState.value != 7&&infoDATA.gdState.value != 11">
  283. <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" v-if="
  284. infoDATA.gdState.value != 2 &&
  285. infoDATA.taskType.associationType.value != 'jPBag' &&
  286. infoDATA.taskType.associationType.value != 'drugsBag' &&
  287. infoDATA.taskType.associationType.value != 'specimen' &&
  288. infoDATA.taskType.associationType.value != 'specimenPlan'
  289. " hover-class="seimin-btn-hover">
  290. <smallScreen :sData="infoDATA" :sType="1">扫码</smallScreen>
  291. </view>
  292. <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" @click="photograph(infoDATA)" v-if="
  293. infoDATA.gdState.value != 2 &&
  294. infoDATA.taskType.associationType.value != 'jPBag' &&
  295. infoDATA.taskType.associationType.value != 'drugsBag' &&
  296. infoDATA.taskType.associationType.value != 'specimen' &&
  297. infoDATA.taskType.associationType.value != 'specimenPlan' &&
  298. infoDATA.taskType.associationType.value != 'other' &&
  299. infoDATA.gdState.value == 4
  300. " hover-class="seimin-btn-hover">拍照</view>
  301. <view class="btn3" @click="specialCloseClick()" v-if="
  302. infoDATA.gdState.value != 2 &&
  303. infoDATA.taskType.associationType.value != 'jPBag' &&
  304. infoDATA.taskType.associationType.value != 'drugsBag' &&
  305. infoDATA.taskType.associationType.value != 'specimen' &&
  306. infoDATA.taskType.associationType.value != 'specimenPlan' &&
  307. infoDATA.taskType.specialCloseButton == 1
  308. " hover-class="seimin-btn-hover">特殊情况关闭</view>
  309. </template>
  310. <!-- 如果不是患者陪检或患者转运或其他 -->
  311. <view :class="[infoDATA.taskType.specialCloseButton == 1 ? 'btn3' : 'btn2']" v-if="
  312. infoDATA.gdState.value != 2 &&
  313. infoDATA.taskType.associationType.value != 'patientTransport' &&
  314. infoDATA.taskType.associationType.value != 'inspect' &&
  315. infoDATA.taskType.associationType.value != 'other'
  316. " hover-class="seimin-btn-hover">
  317. <smallScreen :sData="infoDATA" :sType="2">扫码</smallScreen>
  318. </view>
  319. <view class="btn3" @click="specialCloseClick()" v-if="
  320. infoDATA.gdState.value != 2 &&
  321. infoDATA.taskType.associationType.value != 'patientTransport' &&
  322. infoDATA.taskType.associationType.value != 'inspect' &&
  323. infoDATA.taskType.associationType.value != 'other' &&
  324. infoDATA.taskType.specialCloseButton == 1
  325. " hover-class="seimin-btn-hover">特殊情况关闭</view>
  326. </view>
  327. <!-- 弹窗 -->
  328. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
  329. @know="know" :operate="models.operate" @ok="ok" @cancel="cancel" :textareaFlag="textareaFlag"
  330. @textareaInput="textareaInput"></showModel>
  331. <!-- 弹窗 -->
  332. <showModel :title="models1.title" :icon="models1.icon" :disjunctor="models1.disjunctor" :content="models1.content"
  333. @know="know1" :operate="models1.operate" @ok="ok1" @cancel="cancel1"></showModel>
  334. </view>
  335. </template>
  336. <script>
  337. import smallScreen from "../../components/smallScreen/smallScreen.vue";
  338. import showModel from "../../components/showModel/showModel.vue";
  339. import {
  340. get,
  341. post,
  342. SM,
  343. webHandle
  344. } from "../../http/http.js";
  345. import {
  346. photographTool
  347. } from "../../tools/photograph.js";
  348. export default {
  349. data() {
  350. return {
  351. currentUserId: 0,
  352. // 弹窗model
  353. models: {
  354. disjunctor: false,
  355. },
  356. // 弹窗model1
  357. models1: {
  358. disjunctor: false,
  359. },
  360. currentInspect: null,
  361. showType: "show",
  362. infoDATA: {},
  363. dataId: "",
  364. animationData: {},
  365. // 特殊情况关闭原因开关
  366. textareaFlag: false,
  367. textareaText: "",
  368. };
  369. },
  370. methods: {
  371. // 移除检查->知道了
  372. know1() {
  373. this.models1.disjunctor = false;
  374. // this.getInfo(this.dataId);
  375. //baba
  376. uni.navigateTo({
  377. url: '../receiptpage/receiptpage',
  378. });
  379. },
  380. // 移除检查->确定
  381. ok1() {
  382. this.models1.disjunctor = false;
  383. let postData = {
  384. gdId: this.infoDATA.id,
  385. inspectId: this.currentInspect.id,
  386. };
  387. uni.showLoading({
  388. title: '移除中',
  389. mask: true,
  390. })
  391. post('/workerOrder/removeInspectByOderId', postData).then(res => {
  392. uni.hideLoading();
  393. if (res.state == 200) {
  394. this.models1 = {
  395. disjunctor: true,
  396. content: "移除成功",
  397. };
  398. } else {
  399. uni.showToast({
  400. icon: "none",
  401. title: "移除失败",
  402. });
  403. }
  404. })
  405. },
  406. // 移除检查->取消
  407. cancel1() {
  408. this.models1.disjunctor = false;
  409. },
  410. // 移除
  411. remove(item) {
  412. this.currentInspect = item;
  413. this.models1 = {
  414. disjunctor: true,
  415. content: "是否移除该检查信息",
  416. icon: "warn",
  417. operate: {
  418. ok: "确定",
  419. cancel: "取消",
  420. },
  421. };
  422. },
  423. // 拍照
  424. photograph(data) {
  425. photographTool(data);
  426. },
  427. // 特殊情况输入文字
  428. textareaInput(value) {
  429. this.textareaText = value;
  430. if (value.trim().length >= 10) {
  431. this.models.operate = {
  432. ok: "确定",
  433. cancel: "取消",
  434. };
  435. } else {
  436. this.models.operate = {
  437. cancel: "取消",
  438. };
  439. }
  440. },
  441. // 特殊情况关闭按钮
  442. specialCloseClick() {
  443. this.textareaFlag = true;
  444. this.models = {
  445. title: "特殊情况关闭",
  446. disjunctor: true,
  447. content: "",
  448. icon: "",
  449. operate: {
  450. cancel: "取消",
  451. },
  452. };
  453. },
  454. ok() {
  455. uni.showLoading({
  456. title: "加载中",
  457. mask: true,
  458. });
  459. post("/workerOrder/specialCaseClose", {
  460. workOrderId: this.dataId,
  461. reason: this.textareaText.trim(),
  462. }).then((result) => {
  463. this.models.disjunctor = false;
  464. this.textareaFlag = false;
  465. this.textareaText = "";
  466. if (result.state == 200) {
  467. uni.hideLoading();
  468. this.models = {
  469. disjunctor: true,
  470. content: "工单关闭成功",
  471. icon: "success",
  472. operate: {
  473. know: "知道了",
  474. },
  475. };
  476. } else {
  477. uni.hideLoading();
  478. this.models = {
  479. disjunctor: true,
  480. content: "工单关闭失败",
  481. icon: "error",
  482. operate: {
  483. know: "知道了",
  484. },
  485. };
  486. }
  487. });
  488. },
  489. cancel() {
  490. this.models.disjunctor = false;
  491. this.textareaFlag = false;
  492. this.textareaText = "";
  493. },
  494. // 点击可查看检查详情
  495. show(type) {
  496. this.showType = type;
  497. if (type === "show") {
  498. //展开
  499. // 计算高度
  500. const query = uni.createSelectorQuery().in(this);
  501. query
  502. .selectAll(".page_item_infos")
  503. .boundingClientRect((data) => {
  504. let len = data.reduce((prev, current) => {
  505. return prev + current.height;
  506. }, 0);
  507. this.animation.height(len).step();
  508. this.animationData = this.animation.export();
  509. })
  510. .exec();
  511. } else if (type === "hiddle") {
  512. this.animation.height(0).step();
  513. this.animationData = this.animation.export();
  514. }
  515. },
  516. // 抢单->知道了
  517. know() {
  518. this.models.disjunctor = false;
  519. uni.navigateTo({
  520. url: "../receiptpage/receiptpage",
  521. });
  522. },
  523. // 抢单
  524. showAlert() {
  525. get("/workerOrder/takeOrder/" + this.infoDATA.id).then((res) => {
  526. if (res.status == 200) {
  527. this.models = {
  528. disjunctor: true,
  529. content: "接单成功",
  530. icon: "success",
  531. operate: {
  532. know: "知道了",
  533. },
  534. };
  535. } else {
  536. uni.showToast({
  537. icon: "none",
  538. title: "请求失败!",
  539. });
  540. }
  541. });
  542. },
  543. // 请求详细页面的数据
  544. getInfo(id) {
  545. uni.showLoading({
  546. title: "加载中",
  547. mask: true,
  548. });
  549. get("/api/fetchData/workOrder/" + id).then((res) => {
  550. uni.hideLoading();
  551. if (res.status == 200) {
  552. this.infoDATA = res.data;
  553. // 计算高度
  554. setTimeout(() => {
  555. const query = uni.createSelectorQuery().in(this);
  556. query
  557. .selectAll(".page_item_infos")
  558. .boundingClientRect((data) => {
  559. let len = data.reduce((prev, current) => {
  560. return prev + current.height;
  561. }, 0);
  562. this.animation.height(len).step();
  563. this.animationData = this.animation.export();
  564. })
  565. .exec();
  566. }, 500)
  567. } else {
  568. uni.showToast({
  569. icon: "none",
  570. title: "请求失败!",
  571. });
  572. }
  573. });
  574. },
  575. },
  576. onLoad(options) {
  577. this.currentUserId = uni.getStorageSync('userData').user.id;
  578. let id = options.id;
  579. this.dataId = id;
  580. this.getInfo(id);
  581. // 创建动画
  582. this.animation = uni.createAnimation({
  583. duration: 500,
  584. timingFunction: "ease",
  585. });
  586. // #ifdef APP-PLUS
  587. webHandle("no", "app");
  588. // #endif
  589. // #ifdef H5
  590. webHandle("no", "wx");
  591. // #endif
  592. },
  593. onUnload() {
  594. // 页面关闭后清空数据
  595. this.animationData = {};
  596. },
  597. };
  598. </script>
  599. <style lang="less">
  600. .Receipt_infopage {
  601. padding: 0 20rpx;
  602. overflow: hidden;
  603. .red {
  604. color: red !important;
  605. font-weight: bold !important;
  606. }
  607. .green {
  608. color: #49b856 !important;
  609. font-weight: bold !important;
  610. }
  611. .title {
  612. font-size: 48rpx;
  613. margin-top: 24rpx;
  614. margin-bottom: 24rpx;
  615. text-align: center;
  616. }
  617. .page_item {
  618. margin-top: 16rpx;
  619. margin-bottom: 124rpx;
  620. background: #fff;
  621. border-radius: 8rpx;
  622. padding: 0 16rpx;
  623. border: 2rpx solid #e5e9ed;
  624. .L {
  625. width: 40rpx;
  626. height: 40rpx;
  627. border-radius: 50%;
  628. background: #f9fafb;
  629. position: relative;
  630. left: -50rpx;
  631. top: 66rpx;
  632. }
  633. .R {
  634. width: 40rpx;
  635. height: 40rpx;
  636. border-radius: 50%;
  637. background: #f9fafb;
  638. position: relative;
  639. float: right;
  640. right: -50rpx;
  641. top: 26rpx;
  642. }
  643. .starting {
  644. width: 50rpx;
  645. height: 50rpx;
  646. color: #fff;
  647. background: #49b856;
  648. display: inline-block;
  649. border-radius: 50%;
  650. text-align: center;
  651. line-height: 46rpx;
  652. font-size: 32rpx;
  653. margin-right: 6rpx;
  654. }
  655. .End {
  656. width: 50rpx;
  657. height: 50rpx;
  658. color: #fff;
  659. background: #39b199;
  660. display: inline-block;
  661. border-radius: 50%;
  662. text-align: center;
  663. line-height: 46rpx;
  664. font-size: 32rpx;
  665. margin-right: 6rpx;
  666. }
  667. .page_item_top {
  668. height: 86rpx;
  669. border-bottom: 2rpx dashed #666;
  670. padding: 0 16rpx;
  671. .page_item_top_L {
  672. height: 100%;
  673. float: left;
  674. line-height: 88rpx;
  675. .emergencys {
  676. background: #ff3b53 !important;
  677. width: 124rpx !important;
  678. }
  679. .emergency {
  680. background: #ff3b53 !important;
  681. }
  682. .emergency1 {
  683. background: #49b856 !important;
  684. }
  685. .page_item_cont_start {
  686. text-align: center;
  687. height: 44rpx;
  688. width: 104rpx;
  689. line-height: 44rpx;
  690. border-radius: 8rpx;
  691. background: #49b856;
  692. color: #fff;
  693. display: inline-block;
  694. font-size: 28rpx;
  695. .cubeic-star {
  696. margin-right: 8rpx;
  697. }
  698. }
  699. .L_time {
  700. color: #6cc076;
  701. font-size: 32rpx;
  702. }
  703. .L_text {
  704. font-size: 32rpx;
  705. display: inline-block;
  706. font-weight: 700;
  707. margin-right: 16rpx;
  708. }
  709. }
  710. .page_item_top_R {
  711. height: 60rpx;
  712. float: right;
  713. padding-top: 20rpx;
  714. font-size: 32rpx;
  715. position: absolute;
  716. right: 50rpx;
  717. .L_iocn {
  718. display: inline-block;
  719. height: 52rpx;
  720. line-height: 48rpx;
  721. color: rgb(7, 134, 60);
  722. font-size: 36rpx;
  723. font-weight: 700;
  724. }
  725. }
  726. }
  727. .page_item_cont {
  728. min-height: 180rpx;
  729. // max-height: 424rpx;
  730. padding: 0 16rpx;
  731. text-align: left;
  732. position: relative;
  733. .text_big {
  734. font-size: 32rpx;
  735. position: absolute;
  736. right: 16rpx;
  737. font-weight: 700;
  738. margin-top: 10rpx;
  739. }
  740. .text_big2 {
  741. font-size: 32rpx;
  742. position: absolute;
  743. right: 16rpx;
  744. font-weight: 700;
  745. }
  746. .line {
  747. height: 20rpx;
  748. width: 2rpx;
  749. border-left: 2rpx solid #666;
  750. position: absolute;
  751. top: 82rpx;
  752. left: 40rpx;
  753. }
  754. .lines {
  755. height: 40%;
  756. width: 2rpx;
  757. border-left: 2rpx solid #666;
  758. position: absolute;
  759. top: 23%;
  760. left: 36rpx;
  761. }
  762. .page_item_cont_T {
  763. padding-top: 28rpx;
  764. font-size: 28rpx;
  765. .page_item_cont_title {
  766. height: 100%;
  767. font-size: 32rpx;
  768. }
  769. }
  770. .page_item_cont_B {
  771. padding-top: 28rpx;
  772. margin-bottom: 28rpx;
  773. .page_item_cont_title {
  774. height: 60rpx;
  775. font-size: 32rpx;
  776. }
  777. .page_item_cont_title1 {
  778. height: 60rpx;
  779. line-height: 60rpx;
  780. font-size: 32rpx;
  781. padding-left: 64rpx;
  782. }
  783. }
  784. }
  785. .page_item_foot {
  786. border-top: 2rpx dashed #666;
  787. border-bottom: 2rpx dashed #666;
  788. padding: 28rpx 16rpx;
  789. text-align: left;
  790. .page_item_foot_text {
  791. font-size: 32rpx;
  792. margin-bottom: 20rpx;
  793. .text1 {
  794. color: rgb(102, 102, 102);
  795. }
  796. .text2 {
  797. float: right;
  798. font-weight: 700;
  799. }
  800. }
  801. }
  802. .page_item_info {
  803. padding: 20rpx 16rpx;
  804. text-align: left;
  805. line-height: 60rpx;
  806. font-size: 32rpx;
  807. .spe_list {
  808. padding: 32rpx 0;
  809. border-top: 2rpx solid #666;
  810. .page_item_info_title {
  811. color: #666;
  812. }
  813. }
  814. .page_item_info_title {
  815. font-weight: 700;
  816. }
  817. .text {
  818. float: right;
  819. font-weight: 700;
  820. .page_item_info_txt {
  821. color: #49b856;
  822. margin-left: 8rpx;
  823. }
  824. }
  825. }
  826. #infos {
  827. height: 0;
  828. overflow: hidden;
  829. }
  830. .page_item_infos {
  831. padding-top: 20rpx;
  832. padding-bottom: 20rpx;
  833. border-bottom: 2rpx dashed #666;
  834. .page_item_info2 {
  835. text-align: left;
  836. line-height: 60rpx;
  837. font-size: 32rpx;
  838. padding-left: 16rpx;
  839. .page_item_foot_text {
  840. font-size: 32rpx;
  841. margin-bottom: 20rpx;
  842. &:last-of-type {
  843. margin-bottom: 0;
  844. }
  845. .text1 {
  846. color: rgb(102, 102, 102);
  847. }
  848. .text2 {
  849. float: right;
  850. font-weight: 700;
  851. }
  852. .btn {
  853. height: 66rpx;
  854. width: 132rpx;
  855. margin: 0 auto;
  856. background-color: #49b856;
  857. color: #fff;
  858. border-radius: 8rpx;
  859. font-size: 32rpx;
  860. margin-top: 20rpx;
  861. text-align: center;
  862. }
  863. }
  864. }
  865. }
  866. #pulldown {
  867. color: #49b856;
  868. font-size: 36rpx;
  869. height: 60rpx;
  870. text-align: center;
  871. .cubeic-pulldown {
  872. font-size: 48rpx;
  873. position: relative;
  874. bottom: 6rpx;
  875. }
  876. }
  877. #pullup {
  878. color: #49b856;
  879. font-size: 36rpx;
  880. height: 60rpx;
  881. text-align: center;
  882. .cubeic-pullup {
  883. font-size: 48rpx;
  884. position: relative;
  885. top: 12rpx;
  886. }
  887. }
  888. }
  889. .foot_btn2 {
  890. position: fixed;
  891. bottom: 0;
  892. right: 20rpx;
  893. left: 20rpx;
  894. line-height: 66rpx;
  895. height: 100rpx;
  896. border-top: 2rpx solid #e5e9ed;
  897. background: #f9fafb;
  898. display: flex;
  899. justify-content: space-between;
  900. .btn2 {
  901. height: 66rpx;
  902. width: 100%;
  903. margin: 0 1%;
  904. background-image: linear-gradient(to right, #72c172, #3bb197);
  905. color: #fff;
  906. border-radius: 8rpx;
  907. font-size: 32rpx;
  908. margin-top: 16rpx;
  909. text-align: center;
  910. }
  911. .btn3 {
  912. height: 66rpx;
  913. width: 48%;
  914. margin: 0 1%;
  915. background-image: linear-gradient(to right, #72c172, #3bb197);
  916. color: #fff;
  917. border-radius: 8rpx;
  918. font-size: 32rpx;
  919. margin-top: 16rpx;
  920. text-align: center;
  921. }
  922. }
  923. }
  924. </style>