RepairDetails.vue 21 KB

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