RepairDetails.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. <template>
  2. <view>
  3. <!-- 状态 -->
  4. <!-- && userInfoRoleName.indexOf('admin') == -1 -->
  5. <view class="label" v-if="(form.dispatchingWorkers == 2 || form.status == 3 || form.status == 4)">
  6. <view class="tab" ref="wx" :style="{'color':wxStyle,'height':'100%','border-right': '1rpx solid #f4f4f4'}" @click="tab('wx')">
  7. <text>报修单</text>
  8. </view>
  9. <view class="tab" ref="gz" :style="{'color':gzStyle,'height':'100%','border-left': '1rpx solid #f4f4f4'}"
  10. @click="tab('gz')">
  11. <text>工作单</text>
  12. </view>
  13. </view>
  14. <view class="repairdetails" v-if="form.status == 1">
  15. <view class="cardBox">
  16. <!-- <view class="text">设备信息:</view> -->
  17. <u-input v-model="form.deviceName" disabledColor="#fff" disabled
  18. border="none" placeholder="请选择设备信息" >
  19. <!-- <template slot="suffix">
  20. <u-icon name="scan" color="#bbb" size="32"></u-icon>
  21. </template> -->
  22. </u-input>
  23. </view>
  24. <view class="cardBox">
  25. <!-- <view class="text">客户名称:</view> -->
  26. <u-input v-model="form.corpName" disabled disabledColor="#fff"
  27. border="none" placeholder="客户名称" ></u-input>
  28. </view>
  29. <view class="cardBox">
  30. <!-- <view class="text">地址:</view> -->
  31. <u-input v-model="form.deviceAddress" disabledColor="#fff" disabled
  32. border="none" placeholder="设备地址" ></u-input>
  33. </view>
  34. <view class="cardBox">
  35. <!-- <view class="text">故障描述:</view> -->
  36. <u--textarea v-model="form.faultDescribe" placeholder="故障描述" disabled
  37. border="none" >
  38. </u--textarea>
  39. </view>
  40. <view class="kapian">
  41. <!-- <view style="font-size: 30rpx;color: #999;margin-left: 10rpx;">添加图片</view> -->
  42. <view style="margin-top: 20rpx;">
  43. <u-upload
  44. :fileList="form.maintenanceFiles"
  45. :disabled="form.status != 3"
  46. @afterRead="afterRead"
  47. @delete="deletePic"
  48. name="1"
  49. multiple
  50. :maxCount="10"
  51. ></u-upload>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 维修单 -->
  56. <view class="repairdetails" v-if="wxStyle != ''">
  57. <view class="cardBox">
  58. <!-- <view class="text">设备信息:</view> -->
  59. <u-input v-model="form.deviceName" disabledColor="#fff" disabled
  60. border="none" placeholder="请选择设备信息" >
  61. <!-- <template slot="suffix">
  62. <u-icon name="scan" color="#bbb" size="32"></u-icon>
  63. </template> -->
  64. </u-input>
  65. </view>
  66. <view class="cardBox">
  67. <!-- <view class="text">客户名称:</view> -->
  68. <u-input v-model="form.corpName" disabled disabledColor="#fff"
  69. border="none" placeholder="客户名称" ></u-input>
  70. </view>
  71. <view class="cardBox">
  72. <!-- <view class="text">地址:</view> -->
  73. <u-input v-model="form.deviceAddress" disabledColor="#fff" disabled
  74. border="none" placeholder="设备地址" ></u-input>
  75. </view>
  76. <view class="cardBox">
  77. <!-- <view class="text">故障描述:</view> -->
  78. <u--textarea v-model="form.faultDescribe" placeholder="故障描述" disabled
  79. border="none" >
  80. </u--textarea>
  81. </view>
  82. <view class="kapian">
  83. <!-- <view style="font-size: 30rpx;color: #999;margin-left: 10rpx;">添加图片</view> -->
  84. <view style="margin-top: 20rpx;">
  85. <u-upload
  86. :fileList="userImgList"
  87. disabled
  88. @afterRead="afterRead"
  89. @delete="deletePic"
  90. name="1"
  91. multiple
  92. :maxCount="10"
  93. ></u-upload>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 工作单 -->
  98. <view class="repairdetails" v-if="gzStyle != ''">
  99. <view class="cardBox">
  100. <!-- <view class="text">设备信息:</view> -->
  101. <u-input v-model="form.deviceName" disabledColor="#fff" disabled
  102. border="none" placeholder="请选择设备信息" >
  103. <!-- <template slot="suffix">
  104. <u-icon name="scan" color="#bbb" size="32"></u-icon>
  105. </template> -->
  106. </u-input>
  107. </view>
  108. <view class="cardBox">
  109. <u--textarea v-model="form.repairDescription" placeholder="维修描述" border="none" :disabled="form.status != 3" >
  110. </u--textarea>
  111. </view>
  112. <view class="kapian">
  113. <!-- <view style="font-size: 30rpx;color: #999;margin-left: 10rpx;">添加图片</view> -->
  114. <view style="margin-top: 20rpx;">
  115. <u-upload
  116. :fileList="form.maintenanceFiles"
  117. :disabled="form.status != 3"
  118. @afterRead="afterRead"
  119. @delete="deletePic"
  120. name="1"
  121. multiple
  122. :maxCount="10"
  123. ></u-upload>
  124. </view>
  125. </view>
  126. <view>
  127. <view class="kapian" v-for="(item,index) in form.maintenanceFees" :key="item.id">
  128. <view class="WXflex">
  129. <view class="wxscfun" style="color: #fff; background-color: #FD4B09;" v-if="form.status == 3" @click="kapianClick(item,index)">修改</view>
  130. </view>
  131. <view class="repairProject">
  132. <view class="wxbox">
  133. {{item.costName}}
  134. </view>
  135. <view class="wxbox" style="color: #FD4B09;">
  136. {{item.amount}}元
  137. </view>
  138. </view>
  139. </view>
  140. </view>
  141. <view class="kapian" >
  142. <view class="wxtitleflex">
  143. <view class="wxtitle">添加费用</view>
  144. <view v-if="form.status == 3 && type != 'XQ'" style="color: #fff; background-color: #FD4B09;" class="addwx" @click="kapianShow = true">添加</view>
  145. </view>
  146. </view>
  147. </view>
  148. <!-- wxaddfun -->
  149. <u-gap height="60"></u-gap>
  150. <view class="bottombox">
  151. <view class="bottombox_name" v-if="form.dispatchingWorkers == 2 && form.status != 1">
  152. <text>{{form.maintenanceWorkerName}}</text>
  153. </view>
  154. <view class="bottombox_name" @click="pickerShowfun" v-if="form.dispatchingWorkers == 1 && userInfoRoleName.indexOf('admin') != -1">
  155. <text>{{form.maintenanceWorkerName == null || form.maintenanceWorkerName == '' ? '请选择维修工' : form.maintenanceWorkerName}}</text>
  156. </view>
  157. <view v-if="(form.status == 3 || form.status == 4) && form.dispatchingWorkers == 3" style="color: #FD4B09;">维修费:{{form.maintenanceAmount?form.maintenanceAmount:0}}元</view>
  158. <view class="bottombox_right">
  159. <view class="buttonClass"
  160. v-if="form.dispatchingWorkers == 1 && userInfoRoleName.indexOf('admin') != -1"
  161. @click="maintenanceDispatchingWorkersfun">确认派工</view>
  162. <view class="buttonClass"
  163. v-if="form.dispatchingWorkers == 2 && userInfoRoleName.indexOf('admin') != -1"
  164. @click="maintenanceRevokeDispatchingWorkersfun">撤销派工</view>
  165. <view class="buttonClass" v-if="form.dispatchingWorkers == 2 && userInfoRoleName.indexOf('维修工') != -1" @click="receivingOrdersfun">确认接单</view>
  166. <view class="buttonClass" v-if="form.status == 3 && userInfoRoleName.indexOf('维修工') != -1 && form.dispatchingWorkers == 3" @click="Confirmexpenses">确认费用</view>
  167. <view class="buttonClass" v-if="form.status == 4" @click="Revocationfeesfun">撤销费用</view>
  168. <view class="buttonClass" v-if="form.status == 4" @click="ConfirmSettlement">确认结算</view>
  169. </view>
  170. </view>
  171. <u-picker :show="pickerShow" :columns="pickerList" keyName="name"
  172. @confirm="pickerShowConfirm" @cancel="pickerShowCancel"></u-picker>
  173. <u-toast ref="uToast"></u-toast>
  174. <!-- 添加费用弹窗 -->
  175. <!-- <u-popup :show="show" mode="top" @close="close" @open="open">
  176. <view>
  177. <text>人生若只如初见,何事秋风悲画扇</text>
  178. </view>
  179. </u-popup> -->
  180. <u-modal :show="kapianShow" title="收费项目" :showCancelButton="true" @cancel="kapianCancel" @confirm="kapianConfirm" confirmColor="#FD4B09">
  181. <view style="position: relative;">
  182. <view class="positionSC" @click="maintenanceDe(kapianindex)">删除</view>
  183. <view class="kapianModel">
  184. <text style="color: #FD4B09;font-size: 28rpx;">项目:</text>
  185. <u-input v-model="kapian.costName" disabledColor="#fff" :disabled="form.status != 3"
  186. border="bottom" confirm-type="next" placeholder="收费项目" ></u-input>
  187. </view>
  188. <view class="kapianModel">
  189. <text style="color: #FD4B09;font-size: 28rpx;">金额:</text>
  190. <u-input v-model="kapian.amount" disabledColor="#fff" :disabled="form.status != 3"
  191. border="bottom" type="digit" confirm-type="done" @input="moneyInput" placeholder="金额" ></u-input>
  192. </view>
  193. </view>
  194. </u-modal>
  195. <!-- <u-overlay :show="overlayShow">
  196. <view class="warp">
  197. <view class="rect" @tap.stop></view>
  198. </view>
  199. </u-overlay> -->
  200. <u-loading-page bg-color="#e8e8e8" :loading="overlayShow" loading-text="加载中..." style="z-index: 999;" bgColor="rgba(0,0,0,0.5)"></u-loading-page>
  201. </view>
  202. </template>
  203. <script>
  204. import {
  205. maintenanceDetail,
  206. maintenanceReceivingOrders,
  207. maintenanceConfirm,
  208. userList,
  209. maintenanceDispatchingWorkers,
  210. maintenanceRevokeDispatchingWorkers,
  211. maintenancerRvokeConfirmFees
  212. } from '@/api/device/index.js'
  213. import http from '@/http/api.js'
  214. import {
  215. clientId,
  216. clientSecret
  217. } from '@/common/setting'
  218. export default {
  219. data() {
  220. return {
  221. id:null,
  222. wxStyle: '',
  223. gzStyle: '',
  224. overlayShow: false,
  225. form:{
  226. maintenanceFees:[
  227. {
  228. id:null,
  229. costId:null,
  230. costName:null,
  231. number:1,
  232. price:null,
  233. amount:null,
  234. currency:'CNY',
  235. settlementAmount:null,
  236. remarks:null,
  237. }
  238. ]
  239. },
  240. // 项目
  241. kapian: {},
  242. // 弹窗的开启
  243. pickerShow:false,
  244. // 添加费用弹窗
  245. kapianShow: false,
  246. pickerList:[],
  247. userInfoRoleName:[],
  248. // 当前点击费用的下标
  249. kapianindex:null,
  250. // 用户图片
  251. userImgList: []
  252. }
  253. },
  254. onLoad(e) {
  255. this.id = e.id
  256. this.type = e.type
  257. this.userInfoRoleName = uni.getStorageSync('userInfo').role_name.split(',')
  258. this.maintenanceDetailfun()
  259. },
  260. onShow() {
  261. },
  262. methods: {
  263. // 添加费用的点击
  264. kapianClick(item,index) {
  265. if (this.form.status == 4) return
  266. this.kapian = item
  267. this.kapianindex = index
  268. this.kapianShow = true;
  269. },
  270. // 添加项目取消
  271. kapianCancel() {
  272. this.kapian = {};
  273. this.kapianShow = false;
  274. },
  275. // 添加项目确认
  276. kapianConfirm() {
  277. console.log("this.kapianindex," + this.kapianindex);
  278. if (this.kapianindex != null) {
  279. this.form.maintenanceFees[this.kapianindex] = this.kapian
  280. }else {
  281. this.form.maintenanceFees.push(this.kapian)
  282. }
  283. this.kapianindex = null
  284. this.kapianShow = false;
  285. this.kapian = {}
  286. },
  287. moneyInput() {
  288. var money = 0
  289. for (let fees of this.form.maintenanceFees) {
  290. money += Number(fees.amount)
  291. }
  292. this.form.maintenanceAmount = money;
  293. },
  294. tab(type) {
  295. if(type == "wx") {
  296. this.wxStyle = "#fd4b09"
  297. this.gzStyle = ""
  298. // this.form.status = 2
  299. } else if (type == "gz") {
  300. if (this.form.dispatchingWorkers == 2) return
  301. this.gzStyle = "#fd4b09"
  302. this.wxStyle = ""
  303. // this.form.status = 3
  304. }
  305. },
  306. // 设备删除
  307. maintenanceDe(index){
  308. this.form.maintenanceFees.splice(index,1)
  309. this.moneyInput()
  310. },
  311. // 撤销派工
  312. maintenanceRevokeDispatchingWorkersfun(){
  313. this.overlayShow = true;
  314. maintenanceRevokeDispatchingWorkers(this.form).then(res=>{
  315. if (res.code == 200) {
  316. this.$refs.uToast.show({
  317. type: 'success',
  318. message: "撤销派工成功",
  319. })
  320. this.form = res.data
  321. }else {
  322. this.$refs.uToast.show({
  323. type: 'error',
  324. message: res.msg,
  325. })
  326. }
  327. this.overlayShow = false;
  328. })
  329. },
  330. // 派工
  331. maintenanceDispatchingWorkersfun(){
  332. this.overlayShow = true;
  333. if (!this.form.maintenanceWorkerId) {
  334. this.overlayShow = false;
  335. return this.$refs.uToast.show({type: 'warning',message: '请选择维修工'})
  336. }
  337. // if (!this.form.maintenanceWorkerTel) {
  338. // return this.$refs.uToast.show({type: 'warning',message: '请输入维修工电话'})
  339. // }
  340. maintenanceDispatchingWorkers(this.form).then(res=>{
  341. if (res.code == 200) {
  342. this.$refs.uToast.show({
  343. type: 'success',
  344. message: "派工成功",
  345. })
  346. this.form = res.data
  347. this.tab('wx')
  348. }else {
  349. this.$refs.uToast.show({
  350. type: 'error',
  351. message: res.msg,
  352. })
  353. }
  354. this.overlayShow = false;
  355. })
  356. },
  357. // 维修工弹窗开启
  358. pickerShowfun(){
  359. this.pickerShow = true
  360. this.userListfun()
  361. },
  362. // 维修工获取
  363. userListfun(){
  364. userList({roleAlias:'维修工'}).then(res=>{
  365. this.pickerList = [res.data]
  366. })
  367. },
  368. // 维修工弹窗的确认
  369. pickerShowConfirm(e){
  370. console.log(e.value[0],181);
  371. this.form.maintenanceWorkerId = e.value[0].id
  372. this.form.maintenanceWorkerName = e.value[0].name
  373. this.form.maintenanceWorkerTel = e.value[0].phone
  374. this.pickerShow = false
  375. },
  376. // 维修工弹窗取消
  377. pickerShowCancel() {
  378. this.pickerShow = false
  379. },
  380. // 维修费用的添加
  381. wxaddfun(){
  382. this.form.maintenanceFees.push({
  383. id:null,
  384. costId:null,
  385. costName:null,
  386. number:1,
  387. price:null,
  388. amount:null,
  389. currency:'CNY',
  390. settlementAmount:null,
  391. remarks:null,
  392. })
  393. },
  394. // 确认费用
  395. Confirmexpenses(){
  396. this.overlayShow = true
  397. let a = true
  398. if (this.form.maintenanceFees.length <= 0) {
  399. this.overlayShow = false;
  400. return this.$refs.uToast.show({type: 'warning',message: '请添加维修费用'})
  401. }else {
  402. this.form.maintenanceFees.map((item,index)=>{
  403. if (!item.costName) {
  404. this.$refs.uToast.show({type: 'warning',message: `请填写序号${index + 1}的费用名称`})
  405. a = false
  406. this.overlayShow = false;
  407. return
  408. }
  409. if (!item.amount) {
  410. this.$refs.uToast.show({type: 'warning',message: `请填写序号${index + 1}的金额`})
  411. a = false
  412. this.overlayShow = false;
  413. return
  414. }
  415. })
  416. if (a == false) {
  417. this.overlayShow = false;
  418. return
  419. }
  420. var imgList = this.form.maintenanceFiles
  421. for (let key in imgList) {
  422. this.form.maintenanceFiles[key].sort = key + 1
  423. }
  424. maintenanceConfirm(this.form).then(res=>{
  425. if (res.code == 200) {
  426. this.$refs.uToast.show({
  427. type: 'success',
  428. message: "操作成功",
  429. })
  430. // uni.navigateBack({
  431. // delta: 1
  432. // });
  433. this.form = res.data
  434. }else {
  435. this.$refs.uToast.show({
  436. type: 'error',
  437. message: res.msg,
  438. })
  439. }
  440. this.overlayShow = false;
  441. })
  442. }
  443. },
  444. // 撤销费用
  445. Revocationfeesfun(){
  446. this.overlayShow = true;
  447. maintenancerRvokeConfirmFees(this.form).then(res=>{
  448. if (res.code == 200) {
  449. this.$refs.uToast.show({
  450. type: 'success',
  451. message: "撤销成功",
  452. })
  453. this.form = res.data
  454. }else {
  455. this.$refs.uToast.show({
  456. type: 'error',
  457. message: res.msg,
  458. })
  459. }
  460. this.overlayShow = false;
  461. })
  462. },
  463. // 确认结算
  464. ConfirmSettlement(){
  465. this.overlayShow = true;
  466. this.overlayShow = false;
  467. },
  468. // 确认接单接口
  469. receivingOrdersfun(){
  470. this.overlayShow = true
  471. maintenanceReceivingOrders(this.form).then(res=>{
  472. console.log(res,180);
  473. if (res.code == 200) {
  474. this.$refs.uToast.show({
  475. type: 'success',
  476. message: "接单成功",
  477. })
  478. this.form = res.data
  479. this.tab('gz')
  480. }else {
  481. this.$refs.uToast.show({
  482. type: 'error',
  483. message: res.msg,
  484. })
  485. }
  486. this.overlayShow = false
  487. })
  488. },
  489. // 维修设备详情
  490. maintenanceDetailfun(){
  491. maintenanceDetail({id:this.id}).then(res=>{
  492. this.form = res.data
  493. for (let index in this.form.maintenanceFiles) {
  494. if(this.form.maintenanceFiles[index].uploadType == 0) {
  495. this.userImgList.push(img)
  496. this.form.maintenanceFiles.splice(index, 1)
  497. }
  498. }
  499. if (this.form.status == 4) {
  500. this.gzStyle = "#fd4b09"
  501. this.wxStyle = ""
  502. } else if (this.form.status == 3 && this.form.dispatchingWorkers == 3) {
  503. this.gzStyle = "#fd4b09"
  504. this.wxStyle = ""
  505. } else if (this.form.status == 3 && this.form.dispatchingWorkers == 1) {
  506. this.wxStyle = "#fd4b09"
  507. this.gzStyle = ""
  508. } else if (this.form.dispatchingWorkers == 2) {
  509. console.log(this.form.status);
  510. this.wxStyle = "#fd4b09"
  511. this.gzStyle = ""
  512. } else if (this.form.status == 1) {
  513. userList({roleAlias:'维修工'}).then(res=>{
  514. this.wxUserList = [res.data]
  515. })
  516. }
  517. // if (this.type == 'JD') {
  518. // this.form.maintenanceFees.push({
  519. // id:null,
  520. // costId:null,
  521. // costName:null,
  522. // number:1,
  523. // price:null,
  524. // amount:null,
  525. // currency:'CNY',
  526. // settlementAmount:null,
  527. // remarks:null,
  528. // })
  529. // }
  530. })
  531. },
  532. // 图片删除
  533. deletePic(e){
  534. if(e.file.uploadType == 0) return this.$refs.uToast.show({ type: 'warning', message: '请勿删除客户添加的图片',})
  535. if(this.form.status != 3) return this.$refs.uToast.show({ type: 'warning', message: '修改数据请撤销费用',})
  536. this.form.maintenanceFiles.splice(e.index,1)
  537. },
  538. // 上传图片
  539. async afterRead(event){
  540. // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
  541. let lists = [].concat(event.file)
  542. console.log(lists);
  543. let fileListLen = this.form.maintenanceFiles.length
  544. lists.map((item) => {
  545. this.form.maintenanceFiles.push({
  546. uploadType:1,
  547. ...item
  548. })
  549. })
  550. for (let i = 0; i < lists.length; i++) {
  551. const result = await this.uploadFilePromise(lists[i].url)
  552. let item = this.form.maintenanceFiles[fileListLen]
  553. this.form.maintenanceFiles.splice(fileListLen, 1, Object.assign(item, {
  554. sort: this.form.maintenanceFiles.length,
  555. fileName: JSON.parse(result).data.originalName,
  556. url: JSON.parse(result).data.link
  557. }))
  558. fileListLen++
  559. }
  560. },
  561. uploadFilePromise(url) {
  562. return new Promise((resolve, reject) => {
  563. let a = uni.uploadFile({
  564. url: http.config.baseURL +
  565. '/blade-resource/oss/endpoint/put-file', // 仅为示例,非真实的接口地址
  566. filePath: url,
  567. name: 'file',
  568. formData: {
  569. user: 'test'
  570. },
  571. header: {
  572. // 客户端认证参数
  573. 'Authorization': 'Basic ' + Base64.encode(clientId + ':' +
  574. clientSecret),
  575. 'Blade-Auth': 'bearer ' + uni.getStorageSync('accessToken')
  576. },
  577. success: (res) => {
  578. setTimeout(() => {
  579. resolve(res.data)
  580. }, 1000)
  581. }
  582. });
  583. })
  584. },
  585. }
  586. }
  587. </script>
  588. <style lang="scss" scoped>
  589. .kapianModel {
  590. display: flex;
  591. align-items: center;
  592. // justify-content: flex-start;
  593. }
  594. .positionSC {
  595. position: absolute;
  596. top: -80rpx;
  597. right: -60rpx;
  598. background: #fd4b09;
  599. color: #fff;
  600. font-size: 30rpx;
  601. padding: 10rpx 15rpx;
  602. border-radius: 12rpx;
  603. }
  604. .label {
  605. left: 0rpx;
  606. top: 190rpx;
  607. width: 100%;
  608. height: 114rpx;
  609. line-height: 40rpx;
  610. background-color: rgba(255, 255, 255, 1);
  611. text-align: center;
  612. display: flex;
  613. align-items: center;
  614. .tab {
  615. width: 50%;
  616. display: flex;
  617. color: #c4c4c4;
  618. align-items: center;
  619. justify-content: center;
  620. font-size: 40rpx;
  621. text-align: left;
  622. font-family: PingFangSC-semiBold;
  623. }
  624. }
  625. .repairdetails {
  626. padding: 20rpx;
  627. box-sizing: border-box;
  628. }
  629. .cardBox {
  630. background: #fff;
  631. border-radius: 12rpx;
  632. width: 100%;
  633. padding: 30rpx;
  634. box-sizing: border-box;
  635. margin-bottom: 20rpx;
  636. display: flex;
  637. align-items: center;
  638. justify-content: center;
  639. }
  640. .text {
  641. font-size: 30rpx;
  642. color: #999;
  643. margin-right: 10rpx;
  644. }
  645. .kapian {
  646. background: #fff;
  647. border-radius: 12rpx;
  648. width: 100%;
  649. padding: 30rpx;
  650. box-sizing: border-box;
  651. margin-bottom: 20rpx;
  652. .repairProject {
  653. display: flex;
  654. justify-content: space-between;
  655. padding: 0 20rpx;
  656. }
  657. .wxtitleflex {
  658. display: flex;
  659. align-items: center;
  660. justify-content: space-between;
  661. }
  662. .wxtitle {
  663. font-size: 34rpx;
  664. color: #888;
  665. }
  666. .wxbox {
  667. border-bottom: 2rpx solid #eee;
  668. display: flex;
  669. align-items: center;
  670. justify-content: center;
  671. padding: 20rpx 0;
  672. margin: 10rpx 0;
  673. }
  674. .addwx {
  675. color: #dd451b;
  676. font-size: 30rpx;
  677. padding: 10rpx 20rpx;
  678. border: 2rpx solid;
  679. border-radius: 30rpx;
  680. }
  681. .WXflex {
  682. display: flex;
  683. justify-content: space-between;
  684. align-items: center;
  685. .xuhao {
  686. font-size: 32rpx;
  687. color: #101010;
  688. }
  689. .wxscfun {
  690. color: red;
  691. font-size: 30rpx;
  692. padding: 10rpx 20rpx;
  693. border: 2rpx solid;
  694. border-radius: 28rpx;
  695. }
  696. }
  697. }
  698. .bottombox {
  699. position: fixed;
  700. bottom: 0;
  701. width: 100%;
  702. height: 120rpx;
  703. background: #fff;
  704. box-shadow: 0rpx 4rpx 4rpx 4rpx rgba(0, 0, 0, 0.5);
  705. padding: 0 40rpx;
  706. box-sizing: border-box;
  707. display: flex;
  708. justify-content: space-between;
  709. align-items: center;
  710. .bottombox_name {
  711. font-size: 38rpx;
  712. color: #101010;
  713. }
  714. .bottombox_right {
  715. display: flex;
  716. .buttonClass {
  717. // background: #2d4a6a;
  718. background: #FD4B09;
  719. padding: 15rpx;
  720. margin: 0 5rpx;
  721. border-radius: 30rpx;
  722. color: #fff;
  723. // font-weight: bold;
  724. // margin: 0 10rpx;
  725. }
  726. }
  727. }
  728. </style>