orderDetail.vue 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774
  1. <template>
  2. <view class="all-container">
  3. <view class="bg"></view>
  4. <zj-page-layout
  5. :isScroll="true"
  6. :hasFooter="true"
  7. :refresherTriggered="refresherTriggered"
  8. @refresherrefresh="refresherrefresh"
  9. >
  10. <!-- 状态 -->
  11. <view class="status-container">
  12. <view class="status" @tap="openFeedback"
  13. >{{ detail ? detail.orderStatusText : '' }}<text class="iconfont icon-jinru"></text
  14. ></view>
  15. <view class="time" v-if="detail && detail.appointmentTime"
  16. >已预约 {{ detail.appointmentTime.slice(0, 10) }}</view
  17. >
  18. </view>
  19. <!-- tab栏 -->
  20. <view class="tab-container">
  21. <u-tabs :scrollable="true" :list="tabList" :current="curTab - 1" @click="changeTab" itemStyle="height: 36px;">
  22. </u-tabs>
  23. </view>
  24. <view class="content-container" v-if="detail">
  25. <!-- 基本信息 -->
  26. <block v-if="~[1].indexOf(curTab)">
  27. <view class="user-container card">
  28. <view class="top">
  29. <view class="type">
  30. <view class="left">{{ detail.orderSmallTypeText ? detail.orderSmallTypeText.slice(0, 2) : '' }}</view>
  31. <view v-if="detail && orderStatus_v !== 'DQD'" class="right" @tap="copyData()">复制</view>
  32. </view>
  33. <view class="user">{{ detail.userName }} {{ detail.userMobile }}</view>
  34. <view class="address">
  35. <view class="text"
  36. >{{ detail.province }}{{ detail.city }}{{ detail.area }}{{ detail.street
  37. }}{{ detail.address || detail.gpsAddress }}
  38. </view>
  39. <view
  40. v-if="detail && orderStatus_v !== 'DQD'"
  41. class="ctrl"
  42. @tap.stop="
  43. $openLocation({
  44. lat: detail.lat,
  45. lng: detail.lng,
  46. address: detail.address || detail.gpsAddress
  47. })
  48. "
  49. ><text class="iconfont icon-daohang"></text>导航</view
  50. >
  51. </view>
  52. </view>
  53. <view class="bottom" v-if="detail && orderStatus_v !== 'DQD'">
  54. <view class="it" @tap="$callPhone(detail.userMobile)"
  55. ><text class="iconfont icon-call"></text>联系电话1</view
  56. >
  57. <view class="it" @tap="$callPhone(detail.userMobile2 || detail.userMobile)"
  58. ><text class="iconfont icon-call"></text>联系电话2</view
  59. >
  60. </view>
  61. </view>
  62. <!-- 商品信息 -->
  63. <view class="goods-container card mt30">
  64. <view class="common-title">商品信息</view>
  65. <view class="item" v-for="(item, index) in detail.pgOrderProducts" :key="index">
  66. <view class="main">
  67. <image :src="item.imgUrl ? item.imgUrl : require('@/static/images/logo.png')" mode="aspectFill"></image>
  68. <view class="info">
  69. <view class="name">
  70. <view class="left" v-if="detail.isZl">{{ item.mainName || '' }}</view>
  71. <view class="left" v-else>{{ item.smallName || '' }} {{ item.productName || '' }}</view>
  72. <view class="right">x{{ item.num }}</view>
  73. </view>
  74. <view class="tags" v-if="!detail.isZl">
  75. <view class="it">{{ item.brandName }}</view>
  76. <!-- <view class="it">家用空调</view> -->
  77. </view>
  78. </view>
  79. </view>
  80. <!-- <view class="images" v-if="isOpenGoods">
  81. <view class="it" v-if="item.insideImg">
  82. <image :src="imageUrl + item.insideImg" mode="aspectFill"
  83. @tap="prevImg(item.insideImg)"></image>
  84. <view class="text">内机</view>
  85. </view>
  86. <view class="it" v-if="item.outImg">
  87. <image :src="imageUrl + item.outImg" mode="aspectFill" @tap="prevImg(item.outImg)">
  88. </image>
  89. <view class="text">外机</view>
  90. </view>
  91. <block v-if="item.partImgs">
  92. <view class="it" v-for="(it, idx) in item.partImgs.split(',')" :key="idx">
  93. <image :src="imageUrl + it" mode="aspectFill" @tap="() => prevImg(it)"></image>
  94. <view class="text">配件</view>
  95. </view>
  96. </block>
  97. </view> -->
  98. </view>
  99. <!-- <view class="ctrl" @tap="isOpenGoods = !isOpenGoods">
  100. <text>{{ isOpenGoods ? '收起' : '查看更多' }}</text>
  101. <text class="iconfont icon-left" :class="isOpenGoods ? 'is' : ''"></text>
  102. </view> -->
  103. </view>
  104. <!-- 订单信息 -->
  105. <view class="info-container card mt30" v-if="detail.saleOrderId && !detail.pgIncreId">
  106. <view class="common-title">订单信息</view>
  107. <view>
  108. <view class="row">
  109. <view class="label">订单编号</view>
  110. <view class="value">{{ detail.saleOrderId }}</view>
  111. <view v-if="detail && orderStatus_v !== 'DQD'" class="ctrl" @tap="$copy(detail.saleOrderId)">复制</view>
  112. </view>
  113. <view class="row">
  114. <view class="label">下单时间</view>
  115. <view class="value">{{ detail.saleCreateTime || '' }}</view>
  116. </view>
  117. <view class="row">
  118. <view class="label">订单金额</view>
  119. <view class="value">¥{{ detail.saleTotalAmount | priceFilter }}</view>
  120. </view>
  121. <view class="row">
  122. <view class="label">订单备注</view>
  123. <view class="value">{{ detail.saleRemark || '' }}</view>
  124. </view>
  125. </view>
  126. </view>
  127. <view class="info-container card mt30" v-if="detail.pgIncreId && increDetail">
  128. <view class="common-title">产品信息</view>
  129. <view class="row">
  130. <view class="label">服务类型</view>
  131. <view class="value">延保</view>
  132. </view>
  133. <view class="row">
  134. <view class="label">产品品牌</view>
  135. <view class="value">{{ increDetail.brandName }}</view>
  136. </view>
  137. <view class="row">
  138. <view class="label">产品大类</view>
  139. <view class="value">{{ increDetail.mainName }}</view>
  140. </view>
  141. <view class="row">
  142. <view class="label">服务内容</view>
  143. <view class="value">{{ increDetail.increContent }}</view>
  144. </view>
  145. </view>
  146. <view class="info-container card mt30" v-if="detail.pgIncreId && increDetail">
  147. <view class="common-title">产品凭证</view>
  148. <view class="row">
  149. <view class="label">内机条码</view>
  150. <view class="value">{{ increDetail.insideCode }}</view>
  151. </view>
  152. <view class="imgs">
  153. <!-- 内机条码 -->
  154. <view class="it">
  155. <block>
  156. <image mode="aspectFill" :src="increDetail.insideCodeImg" @tap="prevImg(increDetail.insideCodeImg)">
  157. </image>
  158. </block>
  159. <view class="name">内机条码</view>
  160. </view>
  161. <!-- 机器铭牌 -->
  162. <view class="it">
  163. <block>
  164. <image mode="aspectFill" :src="increDetail.machineImg" @tap="prevImg(increDetail.machineImg)">
  165. </image>
  166. </block>
  167. <view class="name">机器铭牌<br />(含出厂日期)</view>
  168. </view>
  169. <!-- 购机凭证 -->
  170. <view class="it">
  171. <block>
  172. <image mode="aspectFill" :src="increDetail.buyCertImg" @tap="prevImg(increDetail.buyCertImg)">
  173. </image>
  174. </block>
  175. <view class="name">购机凭证</view>
  176. </view>
  177. </view>
  178. </view>
  179. <!-- 延保订单信息 -->
  180. <view class="info-container card mt30" v-if="detail.pgIncreId && increDetail">
  181. <view class="common-title">订单信息</view>
  182. <view>
  183. <view class="row">
  184. <view class="label">订单编号</view>
  185. <view class="value">{{ increDetail.id }}</view>
  186. <view v-if="detail && orderStatus_v !== 'DQD'" class="ctrl" @tap="$copy(increDetail.id)">复制</view>
  187. </view>
  188. <view class="row">
  189. <view class="label">下单时间</view>
  190. <view class="value">{{ increDetail.createTime || '' }}</view>
  191. </view>
  192. <view class="row">
  193. <view class="label">订单金额</view>
  194. <view class="value">¥{{ increDetail.amount }}</view>
  195. </view>
  196. <view class="row">
  197. <view class="label">订单备注</view>
  198. <view class="value">{{ detail.remark || '' }}</view>
  199. </view>
  200. </view>
  201. </view>
  202. <!-- 服务信息 -->
  203. <view class="info-container card mt30">
  204. <view class="common-title">服务信息</view>
  205. <view>
  206. <view class="row">
  207. <view class="label">工单编号</view>
  208. <view class="value">{{ detail.id }}</view>
  209. <view v-if="detail && orderStatus_v !== 'DQD'" class="ctrl" @tap="$copy(detail.id)">复制</view>
  210. </view>
  211. <view class="row">
  212. <view class="label">下单时间</view>
  213. <view class="value">{{ detail.createTime }}</view>
  214. </view>
  215. <view class="row">
  216. <view class="label">接单时间</view>
  217. <view class="value">{{ detail.workerReceTime || '' }}</view>
  218. </view>
  219. <view class="row">
  220. <view class="label">主工程师</view>
  221. <view class="value">{{ detail.workerName }} {{ detail.workerMobile }}</view>
  222. <view v-if="detail && orderStatus_v !== 'DQD'" class="ctrl" @tap="$callPhone(detail.workerMobile)"
  223. ><text class="iconfont icon-call"></text
  224. ></view>
  225. </view>
  226. <view class="row" v-for="(item, index) in detail.pgOrderWorkers.filter(o => !o.isMaster)" :key="index">
  227. <view class="label">辅工程师</view>
  228. <view class="value">{{ item.workerName }} {{ item.workerMobile }}</view>
  229. <view v-if="detail && orderStatus_v !== 'DQD'" class="ctrl" @tap="$callPhone(item.workerMobile)"
  230. ><text class="iconfont icon-call"></text
  231. ></view>
  232. </view>
  233. <view class="row">
  234. <view class="label">下单渠道</view>
  235. <view class="value">{{ detail.orderChannelText || '' }}</view>
  236. </view>
  237. <view class="row">
  238. <view class="label">订单备注</view>
  239. <view class="value">{{ detail.remark || '' }}</view>
  240. </view>
  241. </view>
  242. </view>
  243. <!-- 建单信息 -->
  244. <view class="info-container card mt30">
  245. <view class="common-title">建单信息</view>
  246. <view>
  247. <view class="row">
  248. <view class="label">建单人名</view>
  249. <view class="value">{{ detail.createBy || '' }}</view>
  250. </view>
  251. <view class="row">
  252. <view class="label">下单网点</view>
  253. <view class="value">{{ detail.websitName || '' }}</view>
  254. </view>
  255. </view>
  256. </view>
  257. </block>
  258. <!-- 服务信息 -->
  259. <block v-if="~[2].indexOf(curTab)">
  260. <!-- 过程反馈 -->
  261. <view class="feedback-container card">
  262. <view class="common-title2">
  263. <view class="title">过程反馈</view>
  264. <view v-if="detail && orderStatus_v !== 'DQD'" class="right" @tap="toFeedbackList"
  265. >查看全部<text class="iconfont icon-jinru"></text>
  266. </view>
  267. </view>
  268. <view class="list" v-if="detail.lastOperator">
  269. <view class="item">
  270. <u-avatar
  271. :text="detail.lastOperatorWebsit ? detail.lastOperatorWebsit.slice(0, 1) : 'A'"
  272. fontSize="18"
  273. randomBgColor
  274. ></u-avatar>
  275. <view class="main">
  276. <view class="name">{{ detail.lastOperatorWebsit || '' }}</view>
  277. <view class="time">{{ detail.lastOperatorTime || '' }}</view>
  278. <view class="content">{{ detail.lastOperator || '' }}</view>
  279. </view>
  280. </view>
  281. </view>
  282. <Loading :type="3" :loadStatus="2" :isLoadAnimation="false" v-else />
  283. </view>
  284. <!-- 预约信息 -->
  285. <view class="info-container card mt30" v-if="detail && detail.appointmentTime">
  286. <view class="common-title">预约信息</view>
  287. <view>
  288. <view class="row">
  289. <view class="label">预约时间</view>
  290. <view class="value">{{ detail.appointmentTime.slice(0, 10) }}</view>
  291. </view>
  292. <view class="row">
  293. <view class="label">预约备注</view>
  294. <view class="value">{{ detail.changeRemark || detail.appointmentRemark }}</view>
  295. </view>
  296. </view>
  297. </view>
  298. <!-- 完工信息 -->
  299. <view class="info-container card mt30" v-if="detail && (orderStatus_v == 'YWG' || orderStatus_v == 'YJS')">
  300. <view class="common-title2">
  301. <view class="title">完工信息</view>
  302. <view v-if="detail && orderStatus_v !== 'DQD'" class="right" @tap="toOverDetail"
  303. >查看更多<text class="iconfont icon-jinru"></text
  304. ></view>
  305. </view>
  306. <view>
  307. <view class="row">
  308. <view class="label">完工时间</view>
  309. <view class="value">{{ detail.overTime || detail.websitOverTime || '' }}</view>
  310. </view>
  311. <view class="row">
  312. <view class="label">完工地点</view>
  313. <view class="value"
  314. >{{ detail.province }}{{ detail.city }}{{ detail.area }}{{ detail.street }}{{ detail.address }}
  315. </view>
  316. </view>
  317. </view>
  318. </view>
  319. </block>
  320. <!-- 电子支付 -->
  321. <block v-if="~[3].indexOf(curTab)">
  322. <block v-if="detail.rpProjectRepairId">
  323. <view class="product-container card" v-for="(item, index) in payList" :key="index">
  324. <view class="row">
  325. <view class="label">支付单号</view>
  326. <view class="value">{{ item.orderId }}</view>
  327. </view>
  328. <view class="row">
  329. <view class="label">支付状态</view>
  330. <view class="value" style="color: red">{{ item.examineStatus | examineStatusFilter }}</view>
  331. </view>
  332. <view class="common-title mt30">产品信息</view>
  333. <view class="product">
  334. <view
  335. class="it"
  336. v-for="(it, idx) in item.rpMaterialOrderItems.filter(
  337. o => o.chargeType == 'ACC' || o.chargeType == 'MCC'
  338. )"
  339. :key="idx"
  340. >
  341. <view class="name"
  342. >{{ it.goodsName }}<text>×{{ it.num }}</text></view
  343. >
  344. <view class="price">¥{{ it.totalAmount }}</view>
  345. </view>
  346. <view class="total">
  347. <view class="text">合计:</view>
  348. <view class="price"
  349. >¥{{
  350. [
  351. 0,
  352. 0,
  353. 0,
  354. ...item.rpMaterialOrderItems
  355. .filter(o => o.chargeType == 'ACC' || o.chargeType == 'MCC')
  356. .map(val => val.totalAmount)
  357. ].reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  358. }}</view
  359. >
  360. </view>
  361. </view>
  362. <view class="common-title mt30">服务费用</view>
  363. <view class="product">
  364. <view
  365. class="it"
  366. v-for="(it, idx) in item.rpMaterialOrderItems.filter(o => o.chargeType == 'SERV')"
  367. :key="idx"
  368. >
  369. <view class="name">{{ it.amountName }}</view>
  370. <view class="price">¥{{ it.normAmount }}</view>
  371. </view>
  372. <view class="total">
  373. <view class="text">合计:</view>
  374. <view class="price"
  375. >¥{{
  376. [
  377. 0,
  378. 0,
  379. 0,
  380. ...item.rpMaterialOrderItems.filter(o => o.chargeType == 'SERV').map(val => val.normAmount)
  381. ].reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  382. }}</view
  383. >
  384. </view>
  385. </view>
  386. <view class="bottom">
  387. <view class="left">订单总金额</view>
  388. <view class="right">
  389. <view class="text">合计:</view>
  390. <view class="price"
  391. >¥{{
  392. [
  393. 0,
  394. 0,
  395. 0,
  396. ...item.rpMaterialOrderItems.filter(o => o.chargeType == 'SERV').map(val => val.normAmount),
  397. ...item.rpMaterialOrderItems
  398. .filter(o => o.chargeType == 'ACC' || o.chargeType == 'MCC')
  399. .map(val => val.totalAmount)
  400. ].reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  401. }}</view
  402. >
  403. </view>
  404. </view>
  405. <view class="row mt30">
  406. <view class="label">操作人员</view>
  407. <view class="value">{{ item.createBy }}</view>
  408. </view>
  409. <view class="row mt20">
  410. <view class="label">订单备注</view>
  411. <view class="value">{{ item.remark }}</view>
  412. </view>
  413. </view>
  414. </block>
  415. <block v-else>
  416. <view class="product-container card" v-for="(item, index) in payList" :key="index">
  417. <view class="common-title mt30">支付费用{{ index + 1 }}</view>
  418. <view class="row">
  419. <view class="label">支付单号</view>
  420. <view class="value">{{ item.orderId }}</view>
  421. </view>
  422. <view class="row">
  423. <view class="label">支付状态</view>
  424. <view
  425. class="value"
  426. :style="{ color: item.payStatus == 'WAIT' ? 'red' : item.payStatus == 'PAID' ? 'blue' : '' }"
  427. >{{ item.payStatus | payStatusFilter }}</view
  428. >
  429. </view>
  430. <view class="common-title mt30">产品信息</view>
  431. <view class="product">
  432. <view
  433. class="it"
  434. v-for="(it, idx) in item.workerOrderItems.filter(o => o.chargeType == 'ACC' || o.chargeType == 'MCC')"
  435. :key="idx"
  436. >
  437. <view class="name"
  438. >{{ it.goodsName }}<text>×{{ it.num }}</text></view
  439. >
  440. <view class="price">¥{{ it.totalAmount }}</view>
  441. </view>
  442. <view class="total">
  443. <view class="text">合计:</view>
  444. <view class="price"
  445. >¥{{
  446. [
  447. 0,
  448. 0,
  449. 0,
  450. ...item.workerOrderItems
  451. .filter(o => o.chargeType == 'ACC' || o.chargeType == 'MCC')
  452. .map(val => val.totalAmount)
  453. ].reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  454. }}</view
  455. >
  456. </view>
  457. </view>
  458. <view class="common-title mt30">服务费用</view>
  459. <view class="product">
  460. <view
  461. class="it"
  462. v-for="(it, idx) in item.workerOrderItems.filter(o => o.chargeType == 'SERV')"
  463. :key="idx"
  464. >
  465. <view class="name">{{ it.amountName }}</view>
  466. <view class="price">¥{{ it.normAmount }}</view>
  467. </view>
  468. <view class="total">
  469. <view class="text">合计:</view>
  470. <view class="price"
  471. >¥{{
  472. [
  473. 0,
  474. 0,
  475. 0,
  476. ...item.workerOrderItems.filter(o => o.chargeType == 'SERV').map(val => val.normAmount)
  477. ].reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  478. }}</view
  479. >
  480. </view>
  481. </view>
  482. <view class="bottom">
  483. <view class="left">订单总金额</view>
  484. <view class="right">
  485. <view class="text">合计:</view>
  486. <view class="price"
  487. >¥{{
  488. [
  489. 0,
  490. 0,
  491. 0,
  492. ...item.workerOrderItems.filter(o => o.chargeType == 'SERV').map(val => val.normAmount),
  493. ...item.workerOrderItems
  494. .filter(o => o.chargeType == 'ACC' || o.chargeType == 'MCC')
  495. .map(val => val.totalAmount)
  496. ].reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  497. }}</view
  498. >
  499. </view>
  500. </view>
  501. <view class="row mt30">
  502. <view class="label">操作人员</view>
  503. <view class="value">{{ item.createBy }}</view>
  504. </view>
  505. <view class="row mt20">
  506. <view class="label">订单备注</view>
  507. <view class="value">{{ item.remark }}</view>
  508. </view>
  509. <view style="height: 20rpx"></view>
  510. <view v-if="item.payStatus == 'WAIT'">
  511. <u-button type="success" text="扫码支付" @click="scanCode(item)">扫码支付</u-button>
  512. </view>
  513. </view>
  514. </block>
  515. <block v-if="payList.length < 1">
  516. <Loading :type="3" :loadStatus="2" showText="暂无电子支付信息" :isLoadAnimation="false" />
  517. </block>
  518. </block>
  519. <!-- 费用结算 -->
  520. <block v-if="~[4].indexOf(curTab)">
  521. <!-- 服务费用 -->
  522. <view class="info-container card mt30" v-for="(item, index) in settleList" :key="index">
  523. <block v-if="item.settleNormType !== 'OTHER'">
  524. <view class="common-title2">
  525. <view class="title">服务费用{{ index + 1 }}</view>
  526. <view class="right">{{ orderStatus_v == 'YJS' ? '已结算' : '结算中' }}</view>
  527. </view>
  528. <view>
  529. <view class="row">
  530. <view class="label">产品大类</view>
  531. <view class="value">{{ item.mainName || '' }}</view>
  532. </view>
  533. <view class="row">
  534. <view class="label">产品小类</view>
  535. <view class="value">{{ item.smallName || '' }}</view>
  536. </view>
  537. <view class="row">
  538. <view class="label">机型名称</view>
  539. <view class="value">{{ item.goodsName || '' }}</view>
  540. </view>
  541. <!-- <view class="row">
  542. <view class="label">收费标准</view>
  543. <view class="value">¥{{ item.normAmount | priceFilter }}</view>
  544. </view> -->
  545. <view class="row">
  546. <view class="label">数&emsp;&emsp;量</view>
  547. <view class="value">{{ item.settleNum || '' }}</view>
  548. </view>
  549. <view class="row">
  550. <view class="label">结算金额</view>
  551. <view class="value" v-if="orderStatus_v == 'YJS'">¥{{ item.workerSettleAmount | priceFilter }}</view>
  552. <view class="value" v-else>-</view>
  553. </view>
  554. </view>
  555. </block>
  556. <block v-else>
  557. <view class="common-title2">
  558. <view class="title">其他费用</view>
  559. <view class="right">{{ orderStatus_v == 'YJS' ? '已结算' : '结算中' }}</view>
  560. </view>
  561. <view>
  562. <view class="row">
  563. <view class="label">类&emsp;&emsp;型</view>
  564. <view class="value">{{ item.typeName || '' }}</view>
  565. </view>
  566. <view class="row">
  567. <view class="label">规&emsp;&emsp;格</view>
  568. <view class="value">{{ item.label || '' }}</view>
  569. </view>
  570. <!-- <view class="row">
  571. <view class="label">单&emsp;&emsp;价</view>
  572. <view class="value">¥{{ item.normAmount | priceFilter }}</view>
  573. </view> -->
  574. <view class="row">
  575. <view class="label">数&emsp;&emsp;量</view>
  576. <view class="value">{{ item.settleNum || '' }}</view>
  577. </view>
  578. <view class="row">
  579. <view class="label">结算金额</view>
  580. <view class="value" v-if="orderStatus_v == 'YJS'">¥{{ item.workerSettleAmount | priceFilter }}</view>
  581. <view class="value" v-else>-</view>
  582. </view>
  583. </view>
  584. </block>
  585. </view>
  586. <block v-if="settleList.length < 1">
  587. <Loading :type="3" :loadStatus="2" showText="暂无员工结算信息" :isLoadAnimation="false" />
  588. </block>
  589. </block>
  590. </view>
  591. <Loading :type="3" :loadStatus="loadStatus" :isLoadAnimation="false" />
  592. <template slot="footer">
  593. <view class="bottom-container" v-if="detail">
  594. <!-- 待抢单 -->
  595. <block v-if="orderStatus_v == 'DQD' && (detail.orderType == 'INSTALL' ? !!userInfo.workerNumber : true)">
  596. <u-button type="primary" text="抢单" @tap="qdOrder(detail)"></u-button>
  597. </block>
  598. <u-button
  599. v-if="
  600. ((orderStatus_v == 'DJD' && !detail.isImportExcel) || (detail.isImportExcel && !detail.isMeet)) &&
  601. (detail.orderType == 'INSTALL' ? !!userInfo.workerNumber : true)
  602. "
  603. type="primary"
  604. text="接单"
  605. @tap="actionReceive()"
  606. ></u-button>
  607. <!-- 待接单 -->
  608. <block v-if="orderStatus_v == 'DJD'">
  609. <u-button
  610. plain
  611. type="primary"
  612. text="配件申请"
  613. v-if="detail.orderType != 'INSTALL'"
  614. @tap="toPartsApply()"
  615. ></u-button>
  616. <u-button
  617. plain
  618. type="primary"
  619. text="取消加急"
  620. @tap="actionUrgent(false)"
  621. v-if="detail.pgOrderFlags && detail.pgOrderFlags.some(o => o.tag == 'JIA_JI')"
  622. ></u-button>
  623. <u-button plain type="primary" text="加急" @tap="actionUrgent(true)" v-else></u-button>
  624. </block>
  625. <!-- 服务中 -->
  626. <block v-if="orderStatus_v == 'FWZ' || orderStatus_v == 'YCD'">
  627. <u-button
  628. v-if="userInfo.workerNumber == detail.workerNumber"
  629. plain
  630. type="primary"
  631. text="变更小工"
  632. @tap="biangengxiaogong()"
  633. ></u-button>
  634. <u-button
  635. plain
  636. type="primary"
  637. text="配件申请"
  638. v-if="detail.orderType != 'INSTALL'"
  639. @tap="toPartsApply()"
  640. ></u-button>
  641. <u-button
  642. plain
  643. type="primary"
  644. text="辅材收费"
  645. @tap="toCharge('M')"
  646. v-if="detail.orderType == 'INSTALL'"
  647. ></u-button>
  648. <u-button plain type="primary" text="配件收费" @tap="toCharge('P')" v-else></u-button>
  649. <u-button type="primary" text="过程反馈" @tap="toFeedback()"></u-button>
  650. </block>
  651. </view>
  652. </template>
  653. </zj-page-layout>
  654. <selectionWorkers
  655. v-if="item"
  656. :title="title"
  657. :detail="item"
  658. :type="selectionWorkersType"
  659. :callback="callback"
  660. @close="
  661. () => {
  662. item = null
  663. selectionWorkersType = null
  664. callback = null
  665. }
  666. "
  667. />
  668. <u-popup :show="isShowFeedback" @close="isShowFeedback = false" closeable round="10">
  669. <view class="feedback-dialog">
  670. <view class="title">服务路由</view>
  671. <view class="content">
  672. <logistics :logisticsData="feedbackList"></logistics>
  673. </view>
  674. </view>
  675. </u-popup>
  676. <zhifutanchuan
  677. v-if="state > 0"
  678. :detail="detail_zf"
  679. :orderId="orderId_zf"
  680. :state="state"
  681. @scan="scan"
  682. @back="back"
  683. @offTiming="offTiming"
  684. />
  685. </view>
  686. </template>
  687. <script>
  688. import zjDialogPicker from '@/components/zj-dialog/zj-dialog-picker.vue'
  689. import Logistics from '@/components/logistics2/common-logistics.vue'
  690. import selectionWorkers from '@/components/selectionWorkers.vue'
  691. import zhifutanchuan from '@/components/zhifutanchuan.vue'
  692. import { wxScanCode } from '@/common/utils/util.js'
  693. import { getStorage } from '@/common/utils/storage.js'
  694. export default {
  695. components: {
  696. zjDialogPicker,
  697. Logistics,
  698. selectionWorkers,
  699. zhifutanchuan
  700. },
  701. filters: {
  702. payStatusFilter(val) {
  703. const MAP = {
  704. CANCEL: '已取消',
  705. WAIT: '待支付',
  706. PAID: '已支付'
  707. }
  708. return MAP[val]
  709. },
  710. examineStatusFilter(val) {
  711. const MAP = {
  712. WAIT: '待审批',
  713. OK: '审批通过',
  714. FAIL: '审批驳回',
  715. NO: '已取消',
  716. PAID: '已现场支付',
  717. NO_PAID: '未支付'
  718. }
  719. return MAP[val]
  720. }
  721. },
  722. data() {
  723. return {
  724. id: null,
  725. imageUrl: this.$imageUrl,
  726. detail: null,
  727. increDetail: null,
  728. loadStatus: 1,
  729. errorText: '',
  730. refresherTriggered: false,
  731. curTab: 1,
  732. tabList: [
  733. { name: '基本信息', value: 1 },
  734. { name: '服务信息', value: 2 },
  735. { name: '电子支付', value: 3 },
  736. { name: '员工结算', value: 4 }
  737. ],
  738. isOpenGoods: false,
  739. payList: [], // 支付信息列表
  740. settleList: [], // 结算列表
  741. isShowFeedback: false,
  742. feedbackList: [],
  743. behavior: '',
  744. selectionWorkersType: '',
  745. item: null,
  746. callback: null,
  747. title: '',
  748. state: 0,
  749. detail_zf: null,
  750. orderId_zf: null
  751. }
  752. },
  753. computed: {
  754. userInfo() {
  755. return getStorage('user')
  756. },
  757. orderStatus_v() {
  758. if (['DYY'].includes(this?.detail?.orderStatus)) {
  759. // 待预约
  760. return 'DYY'
  761. } else if (['DQD'].includes(this?.detail?.orderStatus)) {
  762. // 待抢单
  763. return 'DQD'
  764. } else if (
  765. [
  766. 'DSHPG',
  767. 'CJ',
  768. 'YPD',
  769. 'DXSPD',
  770. 'DZBPG',
  771. 'DWDSPGP',
  772. 'DXSSPGP',
  773. 'DTJXSSPGP',
  774. 'DZBSPGP',
  775. 'DFZXPD',
  776. 'DFZXSPGP',
  777. 'XSBH',
  778. 'TJXSBH',
  779. 'ZBBH',
  780. 'FZXBH',
  781. 'FL'
  782. ].includes(this?.detail?.orderStatus)
  783. ) {
  784. // 待商户派工
  785. return 'DSHPG'
  786. } else if (['DWDPG', 'DWDPD', 'WDBH'].includes(this?.detail?.orderStatus)) {
  787. // 待网点派工
  788. return 'DWDPG'
  789. } else if (['DJD', 'DSM', 'YZP'].includes(this?.detail?.orderStatus)) {
  790. // 待接单
  791. return 'DJD'
  792. } else if (['FWZ', 'GCSZT', 'BFWG'].includes(this?.detail?.orderStatus)) {
  793. // 服务中
  794. return 'FWZ'
  795. } else if (['YCD'].includes(this?.detail?.orderStatus)) {
  796. // 异常单
  797. return 'YCD'
  798. } else if (['YWG', 'GCSZX', 'WDWG', 'YWGO'].includes(this?.detail?.orderStatus)) {
  799. // 已完工待结算
  800. return 'YWG'
  801. } else if (['YJS', 'LRCD'].includes(this?.detail?.orderStatus)) {
  802. // 已结算
  803. return 'YJS'
  804. } else if (['YQX', 'FWZT', 'YCGB', 'FWQX'].includes(this?.detail?.orderStatus)) {
  805. // 已取消
  806. return 'YQX'
  807. }
  808. return ''
  809. }
  810. },
  811. async onLoad({ id, behavior }) {
  812. this.id = id
  813. this.behavior = behavior
  814. await this.refreshData()
  815. this.crossPage.$on('refreshWorkorderDetail', async () => {
  816. await this.refreshData()
  817. })
  818. },
  819. onUnload() {
  820. this.crossPage.$off('refreshWorkorderDetail')
  821. },
  822. methods: {
  823. scan() {
  824. if (this.timeout) {
  825. clearTimeout(this.timeout)
  826. }
  827. this.scanCode()
  828. },
  829. back() {
  830. if (this.timeout) {
  831. clearTimeout(this.timeout)
  832. }
  833. this.$navToPage(
  834. {
  835. url: `/packageMaterial/pages/index?type=M`
  836. },
  837. 'reLaunch'
  838. )
  839. },
  840. offTiming() {
  841. if (this.timeout) {
  842. clearTimeout(this.timeout)
  843. }
  844. },
  845. // 扫码
  846. async scanCode(item) {
  847. this.detail_zf = { ...item }
  848. this.orderId_zf = item.orderId
  849. var codeVal = await wxScanCode(['qrCode'])
  850. this.submitData(codeVal)
  851. },
  852. // 下单
  853. submitData(code) {
  854. this.$api
  855. .post('/pay/paid', {
  856. authCode: code,
  857. orderId: this.orderId_zf,
  858. payType: 'WECHAT'
  859. })
  860. .then(res => {
  861. if (res.data) {
  862. // 支付成功
  863. this.getPayList(() => {
  864. this.state = 2
  865. })
  866. } else {
  867. // 支付失败
  868. this.getPayList(() => {
  869. this.state = 4
  870. })
  871. }
  872. })
  873. .catch(res => {
  874. // 等待支付
  875. if (res.message === 'USERPAYING') {
  876. if (this.state == 0) {
  877. this.state = 1
  878. }
  879. this.getDetail__()
  880. } else {
  881. this.$tips(res.message)
  882. }
  883. })
  884. },
  885. getDetail__(cb) {
  886. this.$api
  887. .post('/pay/getOrder', {
  888. orderId: this.orderId_zf
  889. })
  890. .then(res => {
  891. this.detail_zf = res.data
  892. if (res.data.payStatus == 'PAID') {
  893. this.state = 2
  894. } else {
  895. this.timeout = setTimeout(() => {
  896. this.getDetail__(cb)
  897. }, 1000)
  898. }
  899. cb?.()
  900. })
  901. .catch(res => {})
  902. .finally(res => {})
  903. },
  904. // 触发下拉刷新
  905. async refresherrefresh(e) {
  906. this.refresherTriggered = true
  907. await this.refreshData()
  908. },
  909. async changeTab(e) {
  910. this.curTab = e.value
  911. this.loadStatus = 1
  912. await this.refreshData()
  913. },
  914. async refreshData() {
  915. try {
  916. await this.getDetail()
  917. await this.getSettleList()
  918. if (this.curTab === 1) {
  919. // await this.getDetail();
  920. } else if (this.curTab === 2) {
  921. } else if (this.curTab === 3) {
  922. await this.getPayList()
  923. } else if (this.curTab === 4) {
  924. await this.getSettleList()
  925. }
  926. this.refresherTriggered = false
  927. this.loadStatus = 0
  928. } catch (e) {
  929. this.loadStatus = 2
  930. }
  931. },
  932. // 获取详情
  933. getDetail() {
  934. return new Promise((resolve, reject) => {
  935. this.$api
  936. .post('/pg/order/base/detail', {
  937. orderBaseId: this.id
  938. })
  939. .then(res => {
  940. this.detail = res.data
  941. if (
  942. this.behavior === 'lqdd' &&
  943. !['DQD'].includes(res.data.orderStatus) &&
  944. res.data.workerId !== this.$store.state.user.userId
  945. ) {
  946. this.$modal({
  947. title: '提示',
  948. content: '来晚啦,工单已经被抢走了~',
  949. confirmText: '知道啦',
  950. showCancel: false
  951. })
  952. .then(() => {
  953. uni.switchTab({
  954. url: '/pages/index/index'
  955. })
  956. })
  957. .catch(() => {
  958. uni.switchTab({
  959. url: '/pages/index/index'
  960. })
  961. })
  962. }
  963. if (res.data.pgIncreOrderId) {
  964. this.getIncreDetail(res.data.pgIncreOrderId)
  965. }
  966. resolve(1)
  967. })
  968. .catch(res => {
  969. reject(0)
  970. })
  971. })
  972. },
  973. getIncreDetail(id) {
  974. this.$api
  975. .post('/increConfig/detailIncre', {
  976. id
  977. })
  978. .then(res => {
  979. this.increDetail = res.data
  980. })
  981. },
  982. copyData() {
  983. let name = this.detail.userName
  984. let phone = this.detail.userMobile
  985. let address = `${this.detail.gpsAddress ? this.detail.gpsAddress + this.detail.address : this.detail.address}`
  986. this.$copy(`${name},${phone},${address}`)
  987. },
  988. async openFeedback() {
  989. await this.getFeedbackList()
  990. this.isShowFeedback = true
  991. },
  992. getFeedbackList() {
  993. return new Promise((resolve, reject) => {
  994. this.$api
  995. .post('/pg/order/base/operator/list', {
  996. orderBaseId: this.id
  997. })
  998. .then(res => {
  999. let data = res.data.map(item => {
  1000. return {
  1001. title: item.type,
  1002. time: item.createTime,
  1003. content: item.content,
  1004. imgSrc: item.imgSrc
  1005. }
  1006. })
  1007. this.feedbackList = data
  1008. })
  1009. .finally(res => {
  1010. resolve(1)
  1011. })
  1012. })
  1013. },
  1014. // 获取支付信息
  1015. getPayList(cb) {
  1016. return new Promise((resolve, reject) => {
  1017. let url = ''
  1018. if (this.detail.rpProjectRepairId) {
  1019. url = '/engin/material/detailWorker'
  1020. } else {
  1021. url = '/changeOrder/getOrderList'
  1022. }
  1023. this.$api
  1024. .post(url, {
  1025. workerOrderId: this.id
  1026. })
  1027. .then(async res => {
  1028. this.payList = res.data.map(item => {
  1029. var gengduo = [
  1030. {
  1031. chargeType: 'SERV',
  1032. amountName: '服务费用',
  1033. normAmount: item.servicePrice || 0
  1034. },
  1035. {
  1036. chargeType: 'SERV',
  1037. amountName: '其他费用',
  1038. normAmount: item.otherPrice || 0
  1039. }
  1040. ]
  1041. if (this.detail.rpProjectRepairId) {
  1042. if (!item.rpMaterialOrderItems) {
  1043. item.rpMaterialOrderItems = []
  1044. }
  1045. item.rpMaterialOrderItems.push(...gengduo)
  1046. } else {
  1047. if (!item.workerOrderItems) {
  1048. item.workerOrderItems = []
  1049. }
  1050. item.workerOrderItems.push(...gengduo)
  1051. }
  1052. return { ...item }
  1053. })
  1054. cb?.()
  1055. resolve(1)
  1056. })
  1057. .catch(res => {
  1058. cb?.()
  1059. reject(0)
  1060. })
  1061. })
  1062. },
  1063. // 获取安装结算
  1064. getSettleList() {
  1065. return new Promise((resolve, reject) => {
  1066. this.$api
  1067. .post('/order/settle/norm/detail', {
  1068. orderId: this.id
  1069. })
  1070. .then(res => {
  1071. this.settleList = res.data
  1072. if (this.settleList.length > 0 && this.orderStatus_v == 'YJS') {
  1073. this.tabList[3].name = `员工结算(${this.settleList.reduce(
  1074. (total, obj) => total + obj.workerSettleAmount,
  1075. 0
  1076. )})`
  1077. } else {
  1078. this.tabList[3].name = `员工结算`
  1079. }
  1080. resolve(1)
  1081. })
  1082. .catch(res => {
  1083. reject(0)
  1084. })
  1085. })
  1086. },
  1087. // 预览图片
  1088. prevImg(url) {
  1089. uni.previewImage({
  1090. current: this.imageUrl + url,
  1091. urls: [this.imageUrl + url]
  1092. })
  1093. },
  1094. // 加急
  1095. actionUrgent(flag) {
  1096. this.$modal({
  1097. title: '加急操作',
  1098. content: '加急操作,会消息通知所有订单相关人员,请谨慎操作。'
  1099. })
  1100. .then(() => {
  1101. this.$api
  1102. .post('/pg/order/base/flag', {
  1103. orderBaseId: this.id,
  1104. orderFlagEnum: 'JIA_JI',
  1105. flag: flag
  1106. })
  1107. .then(res => {
  1108. this.$successToast()
  1109. this.getDetail()
  1110. this.crossPage.$emit('refreshWorkorderList', '')
  1111. })
  1112. })
  1113. .catch(() => {})
  1114. },
  1115. // 变更小工
  1116. biangengxiaogong() {
  1117. this.title = '更换小工'
  1118. this.selectionWorkersType = 3
  1119. this.item = { ...this.detail }
  1120. this.callback = () => {
  1121. this.$successToast()
  1122. this.getDetail()
  1123. this.crossPage.$emit('refreshWorkorderList', '')
  1124. this.$nextTick(() => {
  1125. this.item = null
  1126. this.selectionWorkersType = null
  1127. this.callback = null
  1128. this.title = null
  1129. })
  1130. }
  1131. },
  1132. // 接单
  1133. actionReceive() {
  1134. this.title = '接收确认'
  1135. this.selectionWorkersType = 1
  1136. this.item = { ...this.detail }
  1137. this.callback = () => {
  1138. this.$successToast()
  1139. this.getDetail()
  1140. this.crossPage.$emit('refreshWorkorderList', '')
  1141. this.$nextTick(() => {
  1142. this.item = null
  1143. this.selectionWorkersType = null
  1144. this.callback = null
  1145. this.title = null
  1146. })
  1147. }
  1148. // this.$modal({
  1149. // title: '接单确认',
  1150. // content: '确认接单?'
  1151. // })
  1152. // .then(() => {
  1153. // this.$api
  1154. // .post('/pg/order/base/rece', {
  1155. // orderBaseId: this.id
  1156. // })
  1157. // .then(res => {
  1158. // this.$successToast()
  1159. // this.getDetail()
  1160. // this.crossPage.$emit('refreshWorkorderList', '')
  1161. // })
  1162. // })
  1163. // .catch(() => {})
  1164. },
  1165. qdOrder(item) {
  1166. // this.title = '接收确认'
  1167. // this.selectionWorkersType = 2
  1168. // this.item = { ...item }
  1169. // this.callback = () => {
  1170. // this.$successToast()
  1171. // this.getDetail()
  1172. // this.crossPage.$emit('refreshWorkorderList', '')
  1173. // this.$nextTick(() => {
  1174. // this.item = null
  1175. // this.selectionWorkersType = null
  1176. // this.callback = null
  1177. // })
  1178. // }
  1179. this.$modal({
  1180. title: '抢单确认',
  1181. content: '确认抢单?'
  1182. })
  1183. .then(() => {
  1184. this.$api
  1185. .post('/pg/order/base/qd', {
  1186. orderBaseId: item.id
  1187. })
  1188. .then(res => {
  1189. this.$successToast()
  1190. this.getDetail()
  1191. this.crossPage.$emit('refreshWorkorderList', '')
  1192. })
  1193. })
  1194. .catch(() => {})
  1195. },
  1196. // 去收费
  1197. toCharge(type) {
  1198. if (type == 'M') {
  1199. this.$navToPage({
  1200. url: `/packageMaterial/pages/sale/orderList?type=${type}&oid=${this.id}`
  1201. })
  1202. } else if (type == 'P') {
  1203. this.$navToPage({
  1204. url: `/packageMaterial/pages/newSale/orderList?type=${type}&oid=${this.id}`
  1205. })
  1206. }
  1207. },
  1208. // 去配件申请
  1209. toPartsApply() {
  1210. this.$navToPage({
  1211. url: `/packageMaterial/pages/partsApply/form?id=${this.id}`
  1212. })
  1213. },
  1214. // 去过程反馈
  1215. toFeedback() {
  1216. this.$navToPage({
  1217. url: `/packageWorkorder/pages/processFeedback?id=${this.id}`
  1218. })
  1219. },
  1220. // 去过程反馈列表
  1221. toFeedbackList() {
  1222. this.$navToPage({
  1223. url: `/packageWorkorder/pages/feedbackList?id=${this.id}`
  1224. })
  1225. },
  1226. // 去完工明细
  1227. toOverDetail() {
  1228. this.$navToPage({
  1229. url: `/packageWorkorder/pages/overDetail?id=${this.id}`
  1230. })
  1231. }
  1232. }
  1233. }
  1234. </script>
  1235. <style lang="scss" scoped>
  1236. .all-container {
  1237. position: relative;
  1238. }
  1239. .bg {
  1240. position: absolute;
  1241. top: 0;
  1242. left: 0;
  1243. width: 100%;
  1244. height: 300rpx;
  1245. background: linear-gradient(179.48deg, rgba(200, 224, 251, 1) 0.45%, rgba(247, 247, 247, 1) 98.96%);
  1246. }
  1247. .status-container {
  1248. padding: 30rpx;
  1249. .status {
  1250. font-size: 36rpx;
  1251. font-weight: 500;
  1252. text {
  1253. margin-left: 12rpx;
  1254. }
  1255. }
  1256. .time {
  1257. font-size: 24rpx;
  1258. color: $sec-font;
  1259. margin-top: 12rpx;
  1260. }
  1261. }
  1262. .tab-container {
  1263. margin-bottom: 30rpx;
  1264. }
  1265. .card {
  1266. @include zj-card;
  1267. }
  1268. .common-title {
  1269. font-size: 36rpx;
  1270. font-weight: 600;
  1271. padding-bottom: 20rpx;
  1272. }
  1273. .common-title2 {
  1274. padding-bottom: 20rpx;
  1275. display: flex;
  1276. align-items: center;
  1277. justify-content: space-between;
  1278. .title {
  1279. font-size: 36rpx;
  1280. font-weight: 600;
  1281. }
  1282. .right {
  1283. font-size: 28rpx;
  1284. color: $theme-color;
  1285. display: flex;
  1286. align-items: center;
  1287. flex-wrap: wrap;
  1288. ::v-deep .u-button {
  1289. width: 175rpx;
  1290. margin: 0;
  1291. margin-left: 10rpx;
  1292. }
  1293. text {
  1294. font-size: 28rpx;
  1295. opacity: 0.5;
  1296. }
  1297. }
  1298. }
  1299. .content-container {
  1300. padding: 0 30rpx 30rpx;
  1301. }
  1302. .user-container {
  1303. .top {
  1304. padding: 30rpx;
  1305. .type {
  1306. display: flex;
  1307. align-items: center;
  1308. justify-content: space-between;
  1309. .left {
  1310. font-size: 36rpx;
  1311. color: $theme-color;
  1312. font-weight: 500;
  1313. }
  1314. .right {
  1315. font-size: 28rpx;
  1316. color: $theme-color;
  1317. }
  1318. }
  1319. .user {
  1320. font-weight: 500;
  1321. margin-top: 20rpx;
  1322. }
  1323. .address {
  1324. display: flex;
  1325. justify-content: space-between;
  1326. margin-top: 20rpx;
  1327. .text {
  1328. font-size: 28rpx;
  1329. flex: 1;
  1330. margin-right: 20rpx;
  1331. }
  1332. .ctrl {
  1333. font-size: 28rpx;
  1334. color: $theme-color;
  1335. .iconfont {
  1336. font-size: 28rpx;
  1337. margin-right: 4rpx;
  1338. }
  1339. }
  1340. }
  1341. }
  1342. .bottom {
  1343. border-top: 1px solid #eaeaea;
  1344. display: flex;
  1345. height: 80rpx;
  1346. .it {
  1347. flex: 1;
  1348. display: flex;
  1349. align-items: center;
  1350. justify-content: center;
  1351. font-size: 28rpx;
  1352. color: $theme-color;
  1353. &:last-child {
  1354. border-left: 1px solid #eaeaea;
  1355. }
  1356. .iconfont {
  1357. font-size: 36rpx;
  1358. margin-right: 8rpx;
  1359. }
  1360. }
  1361. }
  1362. }
  1363. .goods-container {
  1364. padding: 30rpx;
  1365. .item {
  1366. border-bottom: 1px solid #d6e0f2;
  1367. padding: 20rpx 0;
  1368. &:last-child {
  1369. border: none;
  1370. }
  1371. .main {
  1372. display: flex;
  1373. image {
  1374. width: 140rpx;
  1375. height: 140rpx;
  1376. flex-shrink: 0;
  1377. }
  1378. .info {
  1379. flex: 1;
  1380. margin-left: 20rpx;
  1381. .name {
  1382. display: flex;
  1383. justify-content: space-between;
  1384. .left {
  1385. font-weight: 500;
  1386. }
  1387. .right {
  1388. margin-left: 30rpx;
  1389. color: $sec-font;
  1390. }
  1391. }
  1392. .tags {
  1393. display: flex;
  1394. flex-wrap: wrap;
  1395. .it {
  1396. height: 42rpx;
  1397. padding: 0 16rpx;
  1398. background: #f4f5f9;
  1399. border-radius: 8rpx;
  1400. font-size: 24rpx;
  1401. display: flex;
  1402. align-items: center;
  1403. justify-content: center;
  1404. margin-top: 12rpx;
  1405. margin-right: 8rpx;
  1406. &:last-child {
  1407. margin-right: 0;
  1408. }
  1409. }
  1410. }
  1411. }
  1412. }
  1413. .images {
  1414. display: flex;
  1415. flex-wrap: wrap;
  1416. margin-top: 24rpx;
  1417. .it {
  1418. margin-right: 30rpx;
  1419. image {
  1420. width: 116rpx;
  1421. height: 116rpx;
  1422. }
  1423. .text {
  1424. text-align: center;
  1425. color: $sec-font;
  1426. margin-top: 8rpx;
  1427. }
  1428. }
  1429. }
  1430. }
  1431. .ctrl {
  1432. display: flex;
  1433. align-items: center;
  1434. justify-content: center;
  1435. margin-top: 10rpx;
  1436. text {
  1437. color: $sec-font;
  1438. }
  1439. .iconfont {
  1440. font-size: 24rpx;
  1441. transform: rotate(-90deg);
  1442. margin-left: 10rpx;
  1443. &.is {
  1444. transform: rotate(90deg);
  1445. }
  1446. }
  1447. }
  1448. }
  1449. .info-container {
  1450. padding: 30rpx;
  1451. .row {
  1452. display: flex;
  1453. margin-top: 20rpx;
  1454. &:first-child {
  1455. margin-top: 0;
  1456. }
  1457. .label {
  1458. font-size: 28rpx;
  1459. color: $sec-font;
  1460. margin-right: 20rpx;
  1461. flex-shrink: 0;
  1462. }
  1463. .value {
  1464. font-size: 28rpx;
  1465. }
  1466. .ctrl {
  1467. font-size: 28rpx;
  1468. color: $theme-color;
  1469. margin-left: 20rpx;
  1470. }
  1471. }
  1472. }
  1473. .product-container {
  1474. padding: 30rpx;
  1475. margin-bottom: 30rpx;
  1476. .row {
  1477. display: flex;
  1478. .label {
  1479. font-size: 28rpx;
  1480. color: $sec-font;
  1481. margin-right: 20rpx;
  1482. flex-shrink: 0;
  1483. }
  1484. .value {
  1485. font-size: 28rpx;
  1486. flex: 1;
  1487. }
  1488. }
  1489. .product {
  1490. background: #f5f5f5;
  1491. border-radius: 12rpx;
  1492. padding: 20rpx;
  1493. .it {
  1494. display: flex;
  1495. align-items: flex-end;
  1496. margin-bottom: 20rpx;
  1497. .name {
  1498. flex: 1;
  1499. font-size: 28rpx;
  1500. font-weight: 500;
  1501. text {
  1502. color: $sec-font;
  1503. margin-left: 12rpx;
  1504. font-weight: normal;
  1505. }
  1506. }
  1507. .price {
  1508. margin-left: 30rpx;
  1509. font-size: 28rpx;
  1510. font-weight: 500;
  1511. }
  1512. }
  1513. .total {
  1514. display: flex;
  1515. align-items: center;
  1516. justify-content: flex-end;
  1517. margin-top: 30rpx;
  1518. .text {
  1519. font-size: 28rpx;
  1520. color: $sec-font;
  1521. }
  1522. .price {
  1523. font-size: 28rpx;
  1524. color: $minor-color;
  1525. font-weight: 500;
  1526. }
  1527. }
  1528. }
  1529. .bottom {
  1530. margin-top: 20rpx;
  1531. display: flex;
  1532. align-items: center;
  1533. justify-content: space-between;
  1534. .left {
  1535. font-size: 28rpx;
  1536. font-weight: 500;
  1537. }
  1538. .right {
  1539. display: flex;
  1540. align-items: center;
  1541. .text {
  1542. font-size: 28rpx;
  1543. color: $sec-font;
  1544. }
  1545. .price {
  1546. font-size: 28rpx;
  1547. color: $minor-color;
  1548. font-weight: 500;
  1549. }
  1550. }
  1551. }
  1552. }
  1553. .feedback-container {
  1554. padding: 30rpx;
  1555. .list {
  1556. .item {
  1557. display: flex;
  1558. padding: 10rpx 0;
  1559. .main {
  1560. margin-left: 20rpx;
  1561. .name {
  1562. font-weight: 500;
  1563. line-height: 32rpx;
  1564. }
  1565. .time {
  1566. font-size: 28rpx;
  1567. margin-top: 12rpx;
  1568. color: $sec-font;
  1569. line-height: 32rpx;
  1570. }
  1571. .content {
  1572. font-size: 28rpx;
  1573. margin-top: 12rpx;
  1574. line-height: 32rpx;
  1575. }
  1576. }
  1577. }
  1578. }
  1579. }
  1580. .bottom-container {
  1581. box-sizing: border-box;
  1582. display: flex;
  1583. align-items: center;
  1584. justify-content: flex-end;
  1585. flex-wrap: wrap;
  1586. padding: 20rpx 20rpx 20rpx 0;
  1587. ::v-deep .u-button {
  1588. width: 175rpx;
  1589. box-sizing: border-box;
  1590. padding: 10rpx;
  1591. margin: 0;
  1592. margin-left: 10rpx;
  1593. margin-bottom: 10rpx;
  1594. }
  1595. }
  1596. .feedback-dialog {
  1597. padding: 30rpx 30rpx 0;
  1598. .title {
  1599. margin-bottom: 30rpx;
  1600. text-align: center;
  1601. font-weight: 600;
  1602. font-size: 36rpx;
  1603. }
  1604. .content {
  1605. padding-bottom: 30rpx;
  1606. max-height: 800rpx;
  1607. overflow-y: scroll;
  1608. }
  1609. }
  1610. .imgs {
  1611. display: flex;
  1612. flex-wrap: wrap;
  1613. .it {
  1614. display: flex;
  1615. flex-direction: column;
  1616. align-items: center;
  1617. position: relative;
  1618. margin-top: 30rpx;
  1619. margin-right: 30rpx;
  1620. &:nth-child(3n) {
  1621. margin-right: 0;
  1622. }
  1623. image {
  1624. width: 190rpx;
  1625. height: 190rpx;
  1626. background: #f4f4f7;
  1627. border-radius: 20rpx;
  1628. overflow: hidden;
  1629. }
  1630. .name {
  1631. margin-top: 24rpx;
  1632. color: $sec-font;
  1633. text {
  1634. color: $minor-color;
  1635. }
  1636. }
  1637. }
  1638. }
  1639. </style>