detail.vue 25 KB

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