receipt_infopage.vue 31 KB

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