receipt_infopage.vue 31 KB

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