detail.vue 26 KB

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