detail.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918
  1. <template>
  2. <div class="repair-detail-box">
  3. <div
  4. :class="[
  5. 'repair-content',
  6. detailStatus === 'unAcceptance' ? 'fixed-page-content' : 'page-content',
  7. ]"
  8. >
  9. <div class="white-box page-1">
  10. <div class="cell-item">
  11. <p class="label">当前企业</p>
  12. <p class="tit">{{ detail.companyName }}</p>
  13. </div>
  14. <!-- <div class="cell-item">
  15. <p class="label">您是想</p>
  16. <div class="tit">{{ detail.type === "1" ? "填单" : "咨询" }}</div>
  17. </div> -->
  18. <div class="cell-item">
  19. <p class="label">快捷选择</p>
  20. <div class="tit">{{ detail.serviceType }}</div>
  21. </div>
  22. <div class="block-cell-item">
  23. <p class="label">工单描述</p>
  24. <div class="tit">
  25. <div class="textarea">
  26. {{ detail.description == null ? "" : detail.description }}
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="white-box page-2">
  32. <!-- <div class="cell-item">
  33. <p class="label">位置</p>
  34. <div class="tit">{{ detail.position === "1" ? "室内" : "公区" }}</div>
  35. </div> -->
  36. <div class="block-cell-item">
  37. <p class="label">补充说明</p>
  38. <div class="tit">
  39. <ul class="annex-list-box">
  40. <li
  41. @click="lookLookpng(explainAnnexList, index)"
  42. class="annex-item"
  43. v-for="(item, index) in explainAnnexList"
  44. :key="index"
  45. >
  46. <img :src="item" alt="" />
  47. </li>
  48. </ul>
  49. </div>
  50. </div>
  51. <div class="cell-item flex-item">
  52. <p class="label">填单人</p>
  53. <p class="tit tel-box">
  54. <span>{{ userId2 }}</span>
  55. <TelNum :num="detail.phone" v-if="detail.phone" :showTel="false" />
  56. </p>
  57. </div>
  58. <div class="cell-item">
  59. <p class="label">填单时间</p>
  60. <p class="tit">{{ detail.createdAt }}</p>
  61. </div>
  62. </div>
  63. <div
  64. class="white-box page-3 form-part"
  65. style="margin-bottom: 100rpx; padding-bottom: 100rpx"
  66. >
  67. <div class="custom-item-tit">
  68. <p class="tit">处理情况</p>
  69. </div>
  70. <div class="block-cell-item">
  71. <p class="label">处理进展</p>
  72. <div class="tit">
  73. <van-steps
  74. :active="stepActive"
  75. :active-color="'#6600FF'"
  76. :steps="processSteps"
  77. >
  78. </van-steps>
  79. </div>
  80. </div>
  81. <div
  82. v-if="detail.status == 'unAcceptance'"
  83. class="cell-item flex-item"
  84. style="width: 100%; min-height: 88rpx; padding: 0"
  85. >
  86. <div class="label">流转/派单</div>
  87. <div class="tit">
  88. <van-radio-group :value="radio" @change="getRadioStatuts">
  89. <van-radio name="流转">流转</van-radio>
  90. <van-radio name="派单">派单</van-radio>
  91. </van-radio-group>
  92. </div>
  93. </div>
  94. <div
  95. v-if="detail.status == 'unAcceptance' && radio == '派单'"
  96. class="cell-item flex-item"
  97. style="width: 100%; min-height: 88rpx; padding: 0"
  98. @click="openPicker()"
  99. >
  100. <div class="label">处理人</div>
  101. <div class="tit">
  102. {{ detail.handleUserName != null ? detail.handleUserName : "" }}
  103. <!-- {{ detail.handleUserName == null }} -->
  104. </div>
  105. </div>
  106. <div
  107. v-if="detail.status != 'unAcceptance'"
  108. class="cell-item flex-item"
  109. style="width: 100%; min-height: 88rpx; padding: 0"
  110. >
  111. <div class="label">处理人</div>
  112. <div class="tit">
  113. {{ detail.handleUserName != null ? detail.handleUserName : "" }}
  114. <!-- {{ detail.handleUserName == null }} -->
  115. </div>
  116. </div>
  117. <div
  118. v-if="detail.wanderAboutStatus == '未流转' && radio == '流转'"
  119. class="cell-item flex-item"
  120. style="width: 100%; min-height: 88rpx; padding: 0"
  121. @click="openPicker2()"
  122. >
  123. <div class="label">流转给</div>
  124. <div class="tit">
  125. {{ wanderAboutUserName != null ? wanderAboutUserName : "" }}
  126. <!-- {{ detail.handleUserName == null }} -->
  127. </div>
  128. </div>
  129. <div
  130. v-if="detail.wanderAboutStatus != '未流转'"
  131. class="cell-item flex-item"
  132. style="width: 100%; min-height: 88rpx; padding: 0"
  133. >
  134. <div class="label">流转给</div>
  135. <div class="tit">
  136. {{ wanderAboutUserName != null ? wanderAboutUserName : "" }}
  137. <!-- {{ detail.handleUserName == null }} -->
  138. </div>
  139. </div>
  140. <van-popup
  141. :show="showPicker"
  142. position="bottom"
  143. round
  144. :closeable="false"
  145. :close-on-click-overlay="false"
  146. >
  147. <div style="display: flex; justify-content: space-between">
  148. <div style="margin: 32rpx" @click="closePopup()">取消</div>
  149. <div style="margin: 32rpx" @click="getSelectValue()">确认</div>
  150. </div>
  151. <uni-easyinput
  152. v-model="name"
  153. placeholder="请输入内容"
  154. @confirm="getName"
  155. @iconClick="getName"
  156. suffixIcon="search"
  157. ></uni-easyinput>
  158. <div style="height: 50vh">
  159. <div
  160. class="list-row1"
  161. v-for="(item, index) in columns"
  162. :key="index"
  163. style="justify-content: space-between"
  164. >
  165. {{ item.text }}
  166. <van-checkbox
  167. :name="item.value"
  168. @change="onChange($event, index)"
  169. v-model="item.checked"
  170. >
  171. </van-checkbox>
  172. </div>
  173. </div>
  174. </van-popup>
  175. <div class="custom-item-tit">
  176. <p class="tit">备注</p>
  177. </div>
  178. <div class="custom-textarea-box">
  179. <uni-easyinput
  180. type="textarea"
  181. class="bgcF9F9F9 height218rpx"
  182. v-model="params.remark"
  183. autoHeight
  184. placeholder="请填写"
  185. show-word-limit
  186. :disabled="detail.status !== 'unAcceptance'"
  187. >
  188. </uni-easyinput>
  189. </div>
  190. </div>
  191. <!-- -->
  192. <div
  193. class="white-box page-4"
  194. v-if="detailStatus === 'processed' && detail.isUser === 'true'"
  195. style="padding-bottom: 120rpx"
  196. >
  197. <div class="custom-item-tit">
  198. <p class="tit">服务评价</p>
  199. </div>
  200. <div class="custom-white-box-content">
  201. <div class="evaluate-box">
  202. <p class="evaluate-left">企业对本次服务的评价</p>
  203. <div class="evaluate-right">
  204. <van-rate
  205. :vlaue="evaluateVal"
  206. color="#ffd21e"
  207. @change="getRate"
  208. />
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <!-- v-if="detailStatus === 'processed' && detail.isUser === 'true'" -->
  215. <div
  216. class="repair-bottom bottom-button"
  217. v-if="detailStatus === 'processed' && detail.isUser === 'true'"
  218. >
  219. <button class="btn" @click="onPinConfirm">评价提交</button>
  220. </div>
  221. <div
  222. class="repair-bottom bottom-button"
  223. v-if="
  224. detail.status === 'unAcceptance' && detail.wanderAboutStatus == '未流转'
  225. "
  226. >
  227. <button class="btn" @click="onConfirm()" v-if="radio == '派单'">
  228. 派单
  229. </button>
  230. <button
  231. class="btn"
  232. @click="editWanderAboutStatus()"
  233. v-if="radio == '流转'"
  234. >
  235. 流转
  236. </button>
  237. </div>
  238. <van-popup
  239. :show="showPicker2"
  240. position="bottom"
  241. round
  242. :closeable="false"
  243. :close-on-click-overlay="false"
  244. >
  245. <div style="display: flex; justify-content: space-between">
  246. <div style="margin: 32rpx" @click="closePopup2()">取消</div>
  247. <div style="margin: 32rpx" @click="getSelectValue2()">确认</div>
  248. </div>
  249. <uni-easyinput
  250. v-model="name2"
  251. placeholder="请输入内容"
  252. @confirm="getName2"
  253. @iconClick="getName2"
  254. suffixIcon="search"
  255. ></uni-easyinput>
  256. <div style="height: 50vh">
  257. <div
  258. class="list-row1"
  259. v-for="(item, index) in columns2"
  260. :key="index"
  261. style="justify-content: space-between"
  262. >
  263. {{ item.text }}
  264. <van-checkbox
  265. :name="item.value"
  266. @change="onChange($event, index)"
  267. v-model="item.checked"
  268. >
  269. </van-checkbox>
  270. </div>
  271. </div>
  272. </van-popup>
  273. </div>
  274. </template>
  275. <script>
  276. import vanPopup from "../../../wxcomponents/weapp/dist/popup/index";
  277. import vanRate from "../../../wxcomponents/weapp/dist/rate/index";
  278. import TelNum from "../../subPackages/components/tel-number";
  279. // import { getRepairDispatchById, getDispatchToPerson } from "../../service/api_repair";
  280. import {
  281. getByCodes,
  282. getRepairDispatchById,
  283. getUserLocalStorageInfo,
  284. getDispatchToPerson,
  285. editRepair,
  286. editWanderAboutStatus,
  287. } from "@/js_sdk/http";
  288. import Toast from "../../../wxcomponents/weapp/dist/toast/toast";
  289. // import Base from "@/pages/base/base";
  290. // import { editRepair } from "@/service/api_repair";
  291. // import { getCompanyById } from "@/service/api_road_show";
  292. // import { Toast, ImagePreview } from "vant";
  293. export default {
  294. components: {
  295. TelNum,
  296. vanPopup,
  297. vanRate,
  298. },
  299. data() {
  300. return {
  301. radio: "流转",
  302. columns2: [],
  303. name2: "",
  304. dic_key: ["QUICK_SELECTION", "REPAIR_STATUS"],
  305. dic_SelectList: {},
  306. detailId: "", // 详情id
  307. value: "",
  308. showPicker2: false,
  309. showPicker: false,
  310. name: "",
  311. columns: [],
  312. result: [],
  313. pickerValue: 0,
  314. handleUserNames: "",
  315. handleUserIds: "",
  316. detailStatus: "unAcceptance", // 1 待派单 2已派单
  317. explainAnnexList: [
  318. {
  319. type: "image",
  320. url: "",
  321. },
  322. ], // 说明附件 type image、图片 video、视频
  323. processedAnnexList: [
  324. {
  325. type: "image",
  326. url: "",
  327. },
  328. ], // 附件 type image、图片 video、视频
  329. stepActive: 0, // 当前处理到哪一步
  330. processSteps: [
  331. {
  332. id: 1,
  333. status: 1,
  334. text: "上报",
  335. },
  336. {
  337. id: 2,
  338. status: 1,
  339. text: "已受理",
  340. },
  341. {
  342. id: 3,
  343. status: 1,
  344. text: "已处理",
  345. },
  346. // {
  347. // id: 4,
  348. // status: 0,
  349. // text: "评价",
  350. // },
  351. ], // 处理流程
  352. evaluateVal: 0, // 评分
  353. id: "",
  354. detail: {},
  355. wanderAboutUserName: "",
  356. wanderAboutUserId: "",
  357. isSelectedIndex: 0,
  358. fileUrlList: [],
  359. pingParams: {
  360. id: "",
  361. evaluateNum: "",
  362. score: "",
  363. },
  364. lzPopuStatus: false,
  365. userId2: "",
  366. params: {
  367. id: "",
  368. status: "acceptance",
  369. dispatchUserId:
  370. getUserLocalStorageInfo().user.id +
  371. "-" +
  372. getUserLocalStorageInfo().user.truename +
  373. "-" +
  374. getUserLocalStorageInfo().user.phone, // getUserLocalStorageInfo().user.current
  375. dispatchTime: this.$common.transServDate(new Date()),
  376. handleUserId: "",
  377. remark: "",
  378. },
  379. };
  380. },
  381. onLoad(option) {
  382. console.log(option);
  383. this.id = option.id;
  384. this.getByCodes();
  385. getDispatchToPerson({ groupId: "", name: "" }).then((res) => {
  386. this.columns = res.data;
  387. });
  388. getDispatchToPerson({ groupId: "", name: "" }).then((res) => {
  389. this.columns2 = res.data;
  390. console.log(this.columns2);
  391. console.log(res.data);
  392. });
  393. },
  394. methods: {
  395. getRadioStatuts(e) {
  396. this.radio = e.detail;
  397. console.log(e);
  398. },
  399. async editWanderAboutStatus() {
  400. try {
  401. if (!this.wanderAboutUserName || this.wanderAboutUserName.length == 0) {
  402. this.$showToast("请选择流转人");
  403. return;
  404. }
  405. let param = {
  406. id: this.id,
  407. wanderAboutUserId: this.wanderAboutUserId,
  408. };
  409. let data = await editWanderAboutStatus(param);
  410. console.log(data);
  411. if (data.code == 200) {
  412. this.$showToast("订单已流转");
  413. uni.navigateBack({});
  414. }
  415. } catch (error) {
  416. console.log(error);
  417. }
  418. },
  419. changelzPopuStatus(status) {
  420. this.lzPopuStatus = status;
  421. },
  422. liuzhuan() {
  423. console.log(this.columns2[pickerValue]);
  424. console.log(123);
  425. },
  426. closePopup() {
  427. this.showPicker = false;
  428. },
  429. closePopup2() {
  430. this.showPicker2 = false;
  431. },
  432. getRowValue(event) {
  433. console.log(event.detail);
  434. this.result = event.detail;
  435. },
  436. getName2() {
  437. console.log(123, this.name);
  438. let that = this;
  439. getDispatchToPerson({ name: this.name2, groupId: "" }).then((res) => {
  440. that.columns2 = res.data;
  441. that.pickerValue = 0;
  442. that.$forceUpdate();
  443. });
  444. },
  445. getName() {
  446. console.log(123, this.name);
  447. let that = this;
  448. getDispatchToPerson({ name: this.name, groupId: "" }).then((res) => {
  449. that.columns = res.data;
  450. that.$forceUpdate();
  451. });
  452. },
  453. lookLookpng(imgList, i) {
  454. console.log(imgList);
  455. uni.previewImage({
  456. urls: imgList,
  457. longPressActions: {
  458. itemList: ["发送给朋友", "保存图片", "收藏"],
  459. success: function (data) {
  460. console.log(data);
  461. },
  462. fail: function (err) {
  463. console.log(err);
  464. },
  465. },
  466. });
  467. },
  468. openPicker() {
  469. this.showPicker = true;
  470. },
  471. openPicker2() {
  472. this.showPicker2 = true;
  473. },
  474. closePicker() {
  475. this.showPicker = false;
  476. },
  477. closePicker2() {
  478. this.showPicker2 = false;
  479. },
  480. async getByCodes() {
  481. let data = await getByCodes(JSON.stringify(this.dic_key));
  482. this.dic_SelectList = this.$common.handleDicList(data);
  483. this.getDetailById();
  484. },
  485. onSelect(event) {
  486. let val = event.detail.value;
  487. this.value = val.text;
  488. this.params.handleUserId = val.value + "-" + val.text;
  489. this.showPicker = false;
  490. },
  491. onChange2(event, i) {
  492. console.log(event);
  493. console.log(i);
  494. this.columns2[i].checked = event.detail;
  495. },
  496. onChange(event, i) {
  497. console.log(event);
  498. console.log(i);
  499. this.columns[i].checked = event.detail;
  500. },
  501. getSelectValue2() {
  502. let that = this;
  503. try {
  504. let wanderAboutUserId = [];
  505. let wanderAboutUserName = [];
  506. for (let i = 0; i < that.columns2.length; i++) {
  507. const element = that.columns2[i];
  508. if (element.checked) {
  509. wanderAboutUserName.push(element.text);
  510. wanderAboutUserId.push(element.value);
  511. }
  512. }
  513. let AllwanderAboutUserName = Array.from(
  514. new Set(
  515. wanderAboutUserName.concat(
  516. that.wanderAboutUserName.length > 0
  517. ? that.wanderAboutUserName.split(",")
  518. : []
  519. )
  520. )
  521. );
  522. let AllHandleUserIds = Array.from(
  523. new Set(
  524. wanderAboutUserId.concat(
  525. that.wanderAboutUserId.length > 0
  526. ? that.wanderAboutUserId.split(",")
  527. : []
  528. )
  529. )
  530. );
  531. that.wanderAboutUserName = AllwanderAboutUserName.toString();
  532. that.wanderAboutUserId = AllHandleUserIds.toString();
  533. that.$forceUpdate();
  534. that.showPicker2 = false;
  535. } catch (error) {
  536. console.log(error);
  537. }
  538. },
  539. getSelectValue() {
  540. let handleUserNames = [];
  541. let handleUserIds = [];
  542. for (let i = 0; i < this.columns.length; i++) {
  543. const element = this.columns[i];
  544. if (element.checked) {
  545. handleUserNames.push(element.text);
  546. handleUserIds.push(element.value);
  547. }
  548. }
  549. console.log(this.handleUserNames.split(","));
  550. let AllHandleUserNames = Array.from(
  551. new Set(
  552. handleUserNames.concat(
  553. this.handleUserNames.length > 0
  554. ? this.handleUserNames.split(",")
  555. : []
  556. )
  557. )
  558. );
  559. console.log(AllHandleUserNames);
  560. let AllHandleUserIds = Array.from(
  561. new Set(
  562. handleUserIds.concat(
  563. this.handleUserIds.length > 0 ? this.handleUserIds.split(",") : []
  564. )
  565. )
  566. );
  567. this.detail.handleUserName = AllHandleUserNames.toString();
  568. this.params.handleUserId = AllHandleUserIds.toString();
  569. console.log(this.columns);
  570. this.$forceUpdate();
  571. this.showPicker = false;
  572. },
  573. onPinConfirm(value) {
  574. this.pingParams.evaluateNum = this.pingParams.evaluateNum + 1;
  575. this.pingParams.score = this.pingParams.score + this.evaluateVal;
  576. this.pingParams.status = "evaluated";
  577. editRepair(this.pingParams).then((res) => {
  578. this.$showToast("评价成功");
  579. uni.navigateBack({});
  580. });
  581. },
  582. onConfirm() {
  583. let that = this;
  584. if (
  585. !that.params.handleUserId ||
  586. that.params.handleUserId == null ||
  587. that.params.handleUserId === "" ||
  588. that.params.handleUserId.length == 0
  589. ) {
  590. this.$showToast("请选择处理人");
  591. return;
  592. }
  593. this.params.id = that.id;
  594. that.params.updatedBy = getUserLocalStorageInfo().user.id;
  595. editRepair(that.params).then((res) => {
  596. this.$showToast("派单成功");
  597. uni.navigateBack({});
  598. });
  599. },
  600. open(item, index) {
  601. //
  602. let that = this;
  603. let fileUrlViewList = that.detail.fileUrlViewList.map((e) => {
  604. return e.url;
  605. });
  606. uni.previewImage({
  607. urls: fileUrlViewList,
  608. });
  609. },
  610. getDetailById() {
  611. const _this = this;
  612. getRepairDispatchById(_this.id).then((res) => {
  613. if (res.data) {
  614. const det = _this.getItemJson(res.data);
  615. this.detail = det;
  616. this.explainAnnexList = det.fileUrlViewList;
  617. this.processedAnnexList = det.handleUrlList;
  618. this.detailStatus = det.status;
  619. this.wanderAboutUserName = det.wanderAboutUserName
  620. ? det.wanderAboutUserName
  621. : "";
  622. console.log("this.wanderAboutUserName", this.wanderAboutUserName);
  623. this.params.handleUserId = det.handleUserId;
  624. this.value = det.dispatchUserId;
  625. if (det.handleUserId != null && det.handleUserId !== "") {
  626. const test = det.handleUserId.split("-");
  627. this.value = test[1] + "-" + test[2];
  628. }
  629. if (det.userId != null && det.userId !== "") {
  630. const test = det.userId.split("-");
  631. this.userId2 = test[1] + "-" + test[2];
  632. }
  633. this.params.remark = det.remark == "null" ? "" : det.remark;
  634. this.pingParams = {
  635. id: det.id,
  636. evaluateNum: det.evaluateNum,
  637. score: det.score,
  638. };
  639. // this.evaluateVal = ((det.score == null ? 0 : det.score) / (det.evaluateNum == null ? 1 : det.evaluateNum))
  640. }
  641. // const item = _this.getItemJson(res)
  642. });
  643. },
  644. getRate(event) {
  645. this.evaluateVal = event;
  646. },
  647. getItemJson: function (item) {
  648. // item.releaseTime = this.$common.transBaseDateTime(item.releaseTime);
  649. // item.createdAt = this.$common.transBaseDateTime(item.createdAt);
  650. item.serviceType =
  651. this.dic_SelectList.QUICK_SELECTION[item.serviceType - 1].label;
  652. // if (item.handleUserId) {
  653. // item.handlePhone = item.handleUserId.split("-")[1];
  654. // }
  655. // item.handleTime = this.$common.transDate(item.handleTime);
  656. switch (item.status) {
  657. case "unAcceptance":
  658. this.stepActive = 0;
  659. break;
  660. case "acceptance":
  661. this.stepActive = 1;
  662. break;
  663. case "evaluated":
  664. this.stepActive = 3;
  665. break;
  666. case "processed":
  667. this.stepActive = 2;
  668. break;
  669. }
  670. const fileUrls = item.fileUrl ? item.fileUrl.split(",") : [];
  671. console.log("files你到底是干嘛的", fileUrls);
  672. const fileUrlViews = [];
  673. if (fileUrls !== null && fileUrls.length > 0) {
  674. fileUrls.forEach((item) => {
  675. item =
  676. this.$constant.BASE_URI + "/wx/fileController/download/" + item;
  677. fileUrlViews.push(item);
  678. });
  679. }
  680. item.fileUrlViewList = fileUrlViews;
  681. const handleUrls = item.handleUrl ? item.handleUrl.split(",") : [];
  682. console.log(handleUrls);
  683. const handleUrl = [];
  684. if (handleUrls !== null && handleUrls.length > 0) {
  685. handleUrls.forEach((item) => {
  686. if (item.url) {
  687. const ul = {
  688. type: "image",
  689. url: item.url,
  690. };
  691. handleUrl.push(ul);
  692. }
  693. });
  694. }
  695. item.handleUrlList = handleUrl;
  696. console.log(item);
  697. return item;
  698. },
  699. /**
  700. *
  701. */
  702. quickSelect(item) {
  703. if (this.quickSleced.val && this.quickSleced.val === item.val) {
  704. this.quickSleced = {};
  705. } else {
  706. this.quickSleced = item;
  707. }
  708. },
  709. /**
  710. * 上传文件
  711. */
  712. afterRead(file) {
  713. console.log(file);
  714. },
  715. },
  716. };
  717. </script>
  718. <style lang="scss" >
  719. .list-row1 {
  720. width: calc(100% - 64rpx);
  721. padding: 16rpx 32rpx 18rpx 32rpx;
  722. background: #ffffff;
  723. display: flex;
  724. //height: 278rpx;
  725. border-radius: 8rpx 8rpx 8rpx 8rpx;
  726. }
  727. .bottom-button {
  728. position: fixed;
  729. z-index: 99;
  730. bottom: 0;
  731. left: 0;
  732. width: 100%;
  733. height: 160rpx;
  734. padding: 35rpx 30rpx;
  735. background-color: #fff;
  736. display: flex;
  737. align-items: center;
  738. justify-content: space-around;
  739. box-sizing: border-box;
  740. .btn {
  741. height: 100%;
  742. line-height: 80rpx;
  743. width: 100%;
  744. color: #fff;
  745. background-color: #6600ff;
  746. font-size: 34rpx;
  747. border-radius: 10rpx;
  748. }
  749. }
  750. .titname {
  751. margin-top: 10rpx;
  752. margin-bottom: 10rpx;
  753. }
  754. .repair-detail-box {
  755. // width: 100%;
  756. // height: 100%;
  757. .page-1 {
  758. .textarea {
  759. padding: 20rpx;
  760. border-radius: 10rpx;
  761. background: $page-color-base;
  762. box-sizing: border-box;
  763. }
  764. }
  765. .page-3 {
  766. padding-bottom: 100rpx;
  767. .input-item {
  768. padding: 0;
  769. }
  770. .custom-item-tit {
  771. height: 13.333vw;
  772. font-size: 4.267vw;
  773. color: #333;
  774. padding: 2.667vw 0;
  775. position: relative;
  776. display: -webkit-box;
  777. display: -ms-flexbox;
  778. display: flex;
  779. -webkit-box-pack: justify;
  780. -ms-flex-pack: justify;
  781. justify-content: space-between;
  782. -webkit-box-align: center;
  783. -ms-flex-align: center;
  784. align-items: center;
  785. -webkit-box-sizing: border-box;
  786. box-sizing: border-box;
  787. .tit {
  788. &::after {
  789. content: "";
  790. width: 0.8vw;
  791. height: 90%;
  792. background-color: #976dec;
  793. border-radius: 0.4vw;
  794. position: absolute;
  795. left: 0;
  796. top: 50%;
  797. -webkit-transform: translateY(-50%);
  798. transform: translateY(-50%);
  799. }
  800. }
  801. }
  802. .tit {
  803. padding-left: 2.667vw;
  804. position: relative;
  805. }
  806. }
  807. .page-4 {
  808. .custom-item-tit {
  809. height: 13.333vw;
  810. font-size: 4.267vw;
  811. color: #333;
  812. padding: 2.667vw 0;
  813. position: relative;
  814. display: -webkit-box;
  815. display: -ms-flexbox;
  816. display: flex;
  817. -webkit-box-pack: justify;
  818. -ms-flex-pack: justify;
  819. justify-content: space-between;
  820. -webkit-box-align: center;
  821. -ms-flex-align: center;
  822. align-items: center;
  823. -webkit-box-sizing: border-box;
  824. box-sizing: border-box;
  825. .tit {
  826. &::after {
  827. content: "";
  828. width: 0.8vw;
  829. height: 90%;
  830. background-color: #976dec;
  831. border-radius: 0.4vw;
  832. position: absolute;
  833. left: 0;
  834. top: 50%;
  835. -webkit-transform: translateY(-50%);
  836. transform: translateY(-50%);
  837. }
  838. }
  839. }
  840. .tit {
  841. padding-left: 2.667vw;
  842. position: relative;
  843. }
  844. s .evaluate-box {
  845. padding: 20rpx 30rpx;
  846. background: $page-color-base;
  847. border: 2rpx solid #ebedf0;
  848. border-radius: 100rpx;
  849. display: flex;
  850. align-items: center;
  851. justify-content: space-between;
  852. box-sizing: border-box;
  853. }
  854. }
  855. .annex-list-box {
  856. display: flex;
  857. flex-wrap: wrap;
  858. &::after {
  859. display: block;
  860. content: "";
  861. width: 30%;
  862. height: 0rpx;
  863. }
  864. .annex-item {
  865. width: 240rpx;
  866. height: 240rpx;
  867. border: 2rpx solid $text4;
  868. margin-bottom: 20rpx;
  869. position: relative;
  870. overflow: hidden;
  871. > img {
  872. width: 240rpx;
  873. height: 240rpx;
  874. position: absolute;
  875. top: 0;
  876. left: 0;
  877. right: 0;
  878. bottom: 0;
  879. margin: auto;
  880. display: block;
  881. }
  882. video {
  883. width: 100%;
  884. height: 100%;
  885. }
  886. }
  887. }
  888. .tel-box {
  889. display: flex;
  890. align-items: center;
  891. /deep/ .custom-tel-component {
  892. margin-left: 20rpx;
  893. }
  894. }
  895. }
  896. </style>
  897. <style lang="scss">
  898. .image-repairDispatch-box {
  899. .van-image-preview__close-icon {
  900. color: #fff;
  901. font-size: 64rpx;
  902. }
  903. }
  904. </style>