summaryOrderDetail.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. <template>
  2. <div class="againAssign">
  3. <div class="conentBox">
  4. <div class="header">汇总单</div>
  5. <div v-if="$route.params.incidentId" class="conent">
  6. <div class="navBar">
  7. <div>事件单号:{{ summaryObj.incidentDTO.incidentsign }}</div>
  8. <div>报修科室:{{ summaryObj.incidentDTO.department ? summaryObj.incidentDTO.department.dept : '' }}</div>
  9. <div>登记时间:{{ summaryObj.incidentDTO.acceptDate }}</div>
  10. <div>处理人/组:{{ summaryObj.incidentDTO.groupORHandlerUser }}</div>
  11. <div>事件描述:{{ summaryObj.incidentDTO.description }}</div>
  12. </div>
  13. <div class="label headtop" id="info">耗材清单</div>
  14. <div class="info">
  15. <ConsumableMaterial v-for="item in summaryObj.consumableList" :key="item.id" class="bottomBorder" :model="item" :id="item.id" :summaryId="summaryId" :incidentId="$route.params.incidentId" :noClick="true"></ConsumableMaterial>
  16. <p class="textCenter">
  17. <span>耗材总价:<strong class="fontBold">{{ totalPriceConsumable }}元</strong></span>
  18. </p>
  19. <div class="label" id="progress">工时清单</div>
  20. <WorkHourManagement v-for="item in summaryObj.workHourManagementList" :key="item.id" class="bottomBorder" :model="item" :id="item.id" :summaryId="summaryId" :incidentId="$route.params.incidentId" :summaryObj="summaryObj" :noClick="true"></WorkHourManagement>
  21. <p class="textCenter">
  22. <span>工时总价:<strong class="fontBold">{{ totalPriceWorkHourManagement }}元</strong></span>
  23. </p>
  24. <p class="textCenter total">
  25. <span>汇总单总价:<strong class="fontBold">{{ totalMaintenancePrice }}元</strong></span>
  26. </p>
  27. </div>
  28. </div>
  29. <load-ing v-if="loadShow"></load-ing>
  30. <promp-ting
  31. :conents="promptingConent"
  32. :status="promptingStatus"
  33. ></promp-ting>
  34. </div>
  35. <seiminModel ref="seiminModel"></seiminModel>
  36. <div class="sub">
  37. <cube-button type="submit" @click="goBackDetail()">返回事件详情</cube-button>
  38. </div>
  39. </div>
  40. </template>
  41. <script>
  42. import seiminModel from "./../custom/seiminModel";
  43. import LoadIng from "./loading.vue";
  44. import PrompTing from "./prompting.vue";
  45. import ConsumableMaterial from "../components/ConsumableMaterial/index.vue";
  46. import WorkHourManagement from "../components/WorkHourManagement/index.vue";
  47. export default {
  48. data() {
  49. return {
  50. // 耗材总价格
  51. totalMaintenancePrice: null,
  52. totalPriceConsumable: null,
  53. totalPriceWorkHourManagement: null,
  54. summaryObj: {},
  55. loginUser: JSON.parse(localStorage.getItem("loginUser")),
  56. id: "",
  57. model: {}, //提交数据
  58. loadShow: false,
  59. pro_hides: false, //展开/收起处理进度
  60. name: "",
  61. label: "incidentInfo", //顶部快速定位
  62. modelData: {
  63. incident: {}
  64. }, //上传的model
  65. model: {
  66. handleCategory: "", //处理方式
  67. closecode: "", //关闭代码
  68. category: [], //确认事件分类
  69. handleDescription: "", //处理方案
  70. knowledge: false, //是否提交知识库
  71. isHelper: false, //是否需要协同
  72. solutionType: [], //知识库类型
  73. handlerUser: "", //升级/转派对象
  74. isupreason: "", //升级原因
  75. transferReason: "", //转派原因
  76. synergeticReason: "", //协同原因
  77. selectArea: "",
  78. selectPlace: "",
  79. transferMode: "", //转派方式
  80. branch: "", //院区
  81. duty: "" //责任科室
  82. },
  83. promptingConent: "",
  84. promptingStatus: ""
  85. };
  86. },
  87. methods: {
  88. // 刷新
  89. refresh(){
  90. this.getInfo();
  91. },
  92. // 新增耗材
  93. addConsumableMaterial() {
  94. this.$router.push({
  95. path: `/main/ConsumableList/${this.$route.params.incidentId}/${this.summaryId}/${this.$route.params.processInstanceId}`
  96. });
  97. },
  98. // 新增工时
  99. addWorkHourManagementOne() {
  100. this.$router.push({
  101. path: `/main/WorkHourManagementOne/${this.$route.params.incidentId}/${this.summaryId}/${this.$route.params.processInstanceId}`
  102. });
  103. },
  104. // 获取汇总单信息
  105. getInfo() {
  106. const toast = this.$createToast({
  107. txt: "Loading...",
  108. mask: true
  109. });
  110. toast.show();
  111. this.$http.post("/service/bpm/data/querySummaryDoc", {incidentId: this.$route.params.incidentId}).then(res => {
  112. toast.hide();
  113. if(res.data.status == 200){
  114. this.summaryObj = res.data;
  115. this.totalMaintenancePrice = this.summaryObj.totalMaintenancePrice;
  116. this.totalPriceConsumable = this.summaryObj.consumablePrice;
  117. this.totalPriceWorkHourManagement = this.summaryObj.workHourPrice;
  118. this.summaryId = res.data.summaryId;
  119. }else if(res.data.status == 201){
  120. // 事件第一次绑定汇总单
  121. this.summaryId = res.data.summaryId;
  122. }
  123. });
  124. },
  125. // 返回事件详情
  126. goBackDetail() {
  127. this.$router.go(-1);
  128. }
  129. },
  130. mounted() {
  131. console.log(this.$route);
  132. console.log(this.modelData, this.model, 999);
  133. this.getInfo();
  134. },
  135. components: {
  136. seiminModel,
  137. LoadIng,
  138. PrompTing,
  139. ConsumableMaterial,
  140. WorkHourManagement,
  141. }
  142. };
  143. </script>
  144. <style lang="less" scoped>
  145. .bottomBorder {
  146. border-bottom: 0.2rem solid #eee;
  147. }
  148. .textCenter {
  149. text-align: center;
  150. &.total{
  151. border-top: 0.2rem solid #eee;
  152. }
  153. }
  154. .addConsumableMaterial {
  155. border-top: 0.01rem solid #e6e6e6;
  156. border-bottom: 0.01rem solid #e6e6e6;
  157. }
  158. .hcList {
  159. display: flex;
  160. align-items: center;
  161. margin-top: 0.1rem;
  162. }
  163. .hcItem {
  164. flex: 4;
  165. margin: 0 0.05rem;
  166. }
  167. .hcItemClose {
  168. flex: 1;
  169. font-size: 0.4rem;
  170. }
  171. .addHc {
  172. width: 90%;
  173. height: 1rem;
  174. margin: 0 auto;
  175. border: 0.02rem solid #ccc;
  176. display: flex;
  177. justify-content: center;
  178. align-items: center;
  179. }
  180. .addHc .cubeic-add {
  181. font-size: 0.8rem;
  182. }
  183. .newIncident .cube-form-group {
  184. border-bottom: 0.02rem solid rgb(245, 245, 245);
  185. }
  186. .newIncident .sub .cube-btn {
  187. margin-top: 1.1rem;
  188. }
  189. .btn_plcaeholde .cube-btn {
  190. padding-left: 0;
  191. padding-right: 0;
  192. text-align: left;
  193. color: inherit;
  194. background: none;
  195. border: none;
  196. }
  197. .btn_plcaeholde .cube-btn:active {
  198. background-color: #fff;
  199. }
  200. .btn_plcaeholde .cube-btn::after {
  201. content: ">";
  202. float: right;
  203. margin-right: 0.15rem;
  204. }
  205. .cube-form_standard .cube-upload-def .cube-upload-btn,
  206. .cube-form_standard .cube-upload-def .cube-upload-file {
  207. margin-left: 3% !important;
  208. }
  209. .sub {
  210. background: #ececec;
  211. display: flex;
  212. .cube-btn {
  213. background-color: #005395 !important;
  214. margin: 0.2rem auto;
  215. border-radius: 8px;
  216. }
  217. }
  218. .cube-picker-wheel-item {
  219. text-overflow: ellipsis;
  220. }
  221. </style>
  222. <style lang="less" scoped>
  223. .header {
  224. width: 100%;
  225. height: 0.88rem;
  226. line-height: 0.88rem;
  227. text-align: center;
  228. color: #fff;
  229. font-size: 0.37rem;
  230. background: linear-gradient(#2e2f32, #414246);
  231. position: fixed;
  232. top: 0;
  233. z-index: 6;
  234. }
  235. .incidentTitle {
  236. .titleRefer {
  237. display: flex;
  238. align-items: center;
  239. justify-content: space-between;
  240. .titleTxtArea {
  241. font-size: 0.3rem;
  242. color: #333;
  243. height: 2rem;
  244. width: 62%;
  245. &:focus {
  246. outline: none;
  247. }
  248. }
  249. .abtn {
  250. display: inline-block;
  251. width: 37%;
  252. text-align: center;
  253. height: 0.48rem;
  254. color: #005395;
  255. font-size: 0.28rem;
  256. }
  257. }
  258. }
  259. .form-custom {
  260. .cube-form-item {
  261. .cube-btn {
  262. padding-left: 0;
  263. padding-right: 0;
  264. text-align: left;
  265. color: inherit;
  266. background: none;
  267. border: none;
  268. }
  269. }
  270. }
  271. .label {
  272. background-color: rgb(238, 238, 238);
  273. height: 0.6rem;
  274. line-height: 0.6rem;
  275. padding-left: 0.2rem;
  276. font-size: 0.24rem;
  277. color: #666666;
  278. span {
  279. font-size: 0.2rem;
  280. display: inline-block;
  281. margin-left: 0.08rem;
  282. color: #999999;
  283. }
  284. &.formLabel {
  285. background-color: #fff;
  286. }
  287. }
  288. .zhidu {
  289. display: flex;
  290. height: 0.7rem;
  291. line-height: 0.7rem;
  292. border-bottom: 0.02rem solid rgb(245, 245, 245);
  293. div:nth-child(1) {
  294. width: 27.5%;
  295. padding-left: 6%;
  296. }
  297. }
  298. .bgColor {
  299. background-color: white;
  300. &.newIncident {
  301. padding-top: 1.84rem;
  302. }
  303. }
  304. .uplod {
  305. padding: 0 0.24rem;
  306. border-bottom: 0.02rem solid rgb(245, 245, 245);
  307. }
  308. .handleRadio {
  309. border-bottom: 0.02rem solid rgb(245, 245, 245);
  310. }
  311. .synerBox {
  312. height: 3rem;
  313. overflow: scroll;
  314. }
  315. i.iconfont.blue {
  316. color: #005395;
  317. // &::after {
  318. // content: "";
  319. // width: 0.01rem;
  320. // height: 0.4rem;
  321. // background: #005395;
  322. // position: relative;
  323. // display: block;
  324. // left: 0.14rem;
  325. // }
  326. }
  327. .againAssign {
  328. .header {
  329. width: 100%;
  330. height: 0.88rem;
  331. line-height: 0.88rem;
  332. text-align: center;
  333. color: #fff;
  334. font-size: 0.37rem;
  335. background: linear-gradient(#2e2f32, #414246);
  336. position: fixed;
  337. top: 0;
  338. z-index: 6;
  339. }
  340. .navBar {
  341. width: 100%;
  342. line-height: 0.6rem;
  343. background-color: #fff;
  344. font-size: 0.28rem;
  345. padding-top: 0.88rem;
  346. color: #999;
  347. div {
  348. padding: 0 0.2rem;
  349. &.p50 {
  350. width: 49.99%;
  351. }
  352. a {
  353. display: inline-block;
  354. height: 0.9rem;
  355. width: 1.7rem;
  356. padding: 0 0.1rem;
  357. &.active {
  358. color: #005395;
  359. border-bottom: 0.06rem solid #005395;
  360. }
  361. }
  362. }
  363. }
  364. .label {
  365. background-color: #eeeeee;
  366. height: 0.6rem;
  367. line-height: 0.58rem;
  368. padding-left: 0.2rem;
  369. font-size: 0.24rem;
  370. color: #666666;
  371. span {
  372. font-size: 0.2rem;
  373. display: inline-block;
  374. margin-left: 0.08rem;
  375. color: #999999;
  376. }
  377. &.formLabel {
  378. background-color: #fff;
  379. }
  380. }
  381. .conentBox {
  382. width: 100%;
  383. .conent {
  384. font-size: 0.32rem;
  385. font-weight: 400;
  386. line-height: 0.45rem;
  387. // border-bottom: 0.16rem solid #e5e5e5;
  388. .shows {
  389. display: none;
  390. }
  391. .boeder_B {
  392. border-bottom: 0.01rem solid #ccc;
  393. }
  394. p {
  395. &.desc {
  396. overflow: hidden;
  397. }
  398. .grayFont {
  399. width: 75%;
  400. text-align: right;
  401. overflow-x: scroll;
  402. }
  403. }
  404. .bottom {
  405. overflow: hidden;
  406. line-height: 0.86rem;
  407. border-bottom: 0.01rem solid #e6e6e6;
  408. font-size: 0.24rem;
  409. color: #999;
  410. padding: 0 0.24rem 0 0.48rem;
  411. }
  412. .info {
  413. color: #999;
  414. font-size: 0.28rem;
  415. overflow: hidden;
  416. .head {
  417. border-bottom: 0.01rem solid #e6e6e6;
  418. p {
  419. padding: 0.24rem 0.3rem;
  420. i {
  421. color: #00559d;
  422. }
  423. }
  424. }
  425. p {
  426. line-height: 0.4rem;
  427. padding: 0.1rem 0.24rem;
  428. overflow: hidden;
  429. .overflowEllipsis2 {
  430. margin-left: 1.96rem;
  431. }
  432. }
  433. .info_hide {
  434. padding: 0.2rem 0.24rem;
  435. border-bottom: 0.01rem solid #e6e6e6;
  436. .hide {
  437. color: #00559d;
  438. }
  439. }
  440. .imgs-container {
  441. a {
  442. color: #03c !important;
  443. &:visited {
  444. color: #551a8b !important;
  445. }
  446. }
  447. img {
  448. width: 1.5rem;
  449. height: 1.5rem;
  450. margin-right: 0.7rem;
  451. &:nth-child(1) {
  452. margin-left: 0.75rem;
  453. }
  454. }
  455. }
  456. .progress {
  457. padding: 0.2rem 0.2rem;
  458. overflow: hidden;
  459. transition-duration: 0.2s;
  460. transition-timing-function: linear;
  461. &.progressHide {
  462. height: 1.7rem;
  463. }
  464. .progress_info {
  465. overflow: hidden;
  466. margin-bottom: 0.1rem;
  467. &:nth-last-child(1) {
  468. .cont {
  469. border: none !important;
  470. }
  471. }
  472. .progress_info_L {
  473. float: left;
  474. color: #333;
  475. max-width: 18%;
  476. }
  477. .progress_info_R {
  478. float: right;
  479. margin-left: 0.09rem;
  480. width: 80%;
  481. font-size: 0.25rem;
  482. .time {
  483. i {
  484. margin-left: -0.15rem;
  485. &.icon-icon_weizuo {
  486. color: #005495;
  487. }
  488. &.icon-icon_zhengzaijinx {
  489. color: #48a843;
  490. font-size: 0.37rem;
  491. }
  492. }
  493. span {
  494. margin-left: 0.15rem;
  495. }
  496. }
  497. .cont {
  498. border-left: 1px solid #999;
  499. padding-left: 0.4rem;
  500. min-height: 0.4rem;
  501. &.blue {
  502. border-left: 1px solid #005395;
  503. }
  504. }
  505. .text1 {
  506. font-size: 0.15rem;
  507. }
  508. .text2 {
  509. color: #666;
  510. word-break: break-all;
  511. }
  512. p {
  513. padding: 0;
  514. }
  515. }
  516. }
  517. }
  518. }
  519. .txtLabel {
  520. width: 100%;
  521. overflow: hidden;
  522. padding: 0.32rem 0.24rem 0.32rem 0.32rem;
  523. .txt {
  524. width: 30%;
  525. color: #666;
  526. }
  527. .cube-textarea-wrapper {
  528. width: 62%;
  529. }
  530. }
  531. .sub {
  532. background: #ececec;
  533. .cube-btn {
  534. background-color: #005395 !important;
  535. width: 90%;
  536. margin: 0.2rem auto;
  537. border-radius: 8px;
  538. }
  539. }
  540. }
  541. }
  542. .showwrap {
  543. width: 75%;
  544. text-align: right;
  545. }
  546. }
  547. </style>