orderDetail.vue 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810
  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.toFixed(2) }}</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. ]
  358. .reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  359. .toFixed(2)
  360. }}</view
  361. >
  362. </view>
  363. </view>
  364. <view class="common-title mt30">服务费用</view>
  365. <view class="product">
  366. <view
  367. class="it"
  368. v-for="(it, idx) in item.rpMaterialOrderItems.filter(o => o.chargeType == 'SERV')"
  369. :key="idx"
  370. >
  371. <view class="name">{{ it.goodsName }}</view>
  372. <view class="price">¥{{ it.totalAmount.toFixed(2) }}</view>
  373. </view>
  374. <view class="total">
  375. <view class="text">合计:</view>
  376. <view class="price"
  377. >¥{{
  378. [
  379. 0,
  380. 0,
  381. 0,
  382. ...item.rpMaterialOrderItems.filter(o => o.chargeType == 'SERV').map(val => val.totalAmount)
  383. ]
  384. .reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  385. .toFixed(2)
  386. }}</view
  387. >
  388. </view>
  389. </view>
  390. <view class="bottom">
  391. <view class="left">订单总金额</view>
  392. <view class="right">
  393. <view class="text">合计:</view>
  394. <view class="price"
  395. >¥{{
  396. [
  397. 0,
  398. 0,
  399. 0,
  400. ...item.rpMaterialOrderItems.filter(o => o.chargeType == 'SERV').map(val => val.totalAmount),
  401. ...item.rpMaterialOrderItems
  402. .filter(o => o.chargeType == 'ACC' || o.chargeType == 'MCC')
  403. .map(val => val.totalAmount)
  404. ]
  405. .reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  406. .toFixed(2)
  407. }}</view
  408. >
  409. </view>
  410. </view>
  411. <view class="row mt30">
  412. <view class="label">操作人员</view>
  413. <view class="value">{{ item.createBy }}</view>
  414. </view>
  415. <view class="row mt20">
  416. <view class="label">订单备注</view>
  417. <view class="value">{{ item.remark }}</view>
  418. </view>
  419. </view>
  420. </block>
  421. <block v-else>
  422. <view class="product-container card" v-for="(item, index) in payList" :key="index">
  423. <view class="common-title mt30">支付费用{{ index + 1 }}</view>
  424. <view class="row">
  425. <view class="label">支付单号</view>
  426. <view class="value">{{ item.orderId }}</view>
  427. </view>
  428. <view class="row">
  429. <view class="label">支付状态</view>
  430. <view
  431. class="value"
  432. :style="{ color: item.payStatus == 'WAIT' ? 'red' : item.payStatus == 'PAID' ? 'blue' : '' }"
  433. >{{ item.payStatus | payStatusFilter }}</view
  434. >
  435. </view>
  436. <view class="common-title mt30">产品信息</view>
  437. <view class="product">
  438. <view
  439. class="it"
  440. v-for="(it, idx) in item.workerOrderItems.filter(o => o.chargeType == 'ACC' || o.chargeType == 'MCC')"
  441. :key="idx"
  442. >
  443. <view class="name"
  444. >{{ it.goodsName }}<text>×{{ it.num }}</text></view
  445. >
  446. <view class="price">¥{{ it.totalAmount.toFixed(2) }}</view>
  447. </view>
  448. <view class="total">
  449. <view class="text">合计:</view>
  450. <view class="price"
  451. >¥{{
  452. [
  453. 0,
  454. 0,
  455. 0,
  456. ...item.workerOrderItems
  457. .filter(o => o.chargeType == 'ACC' || o.chargeType == 'MCC')
  458. .map(val => val.totalAmount)
  459. ]
  460. .reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  461. .toFixed(2)
  462. }}</view
  463. >
  464. </view>
  465. </view>
  466. <view class="common-title mt30">服务费用</view>
  467. <view class="product">
  468. <view
  469. class="it"
  470. v-for="(it, idx) in item.workerOrderItems.filter(o => o.chargeType == 'SERV')"
  471. :key="idx"
  472. >
  473. <view class="name">{{ it.goodsName }}</view>
  474. <view class="price">¥{{ it.totalAmount.toFixed(2) }}</view>
  475. </view>
  476. <view class="total">
  477. <view class="text">合计:</view>
  478. <view class="price"
  479. >¥{{
  480. [
  481. 0,
  482. 0,
  483. 0,
  484. ...item.workerOrderItems.filter(o => o.chargeType == 'SERV').map(val => val.totalAmount)
  485. ]
  486. .reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  487. .toFixed(2)
  488. }}</view
  489. >
  490. </view>
  491. </view>
  492. <view class="bottom">
  493. <view class="left">订单总金额</view>
  494. <view class="right">
  495. <view class="text">合计:</view>
  496. <view class="price"
  497. >¥{{
  498. [
  499. 0,
  500. 0,
  501. 0,
  502. ...item.workerOrderItems.filter(o => o.chargeType == 'SERV').map(val => val.totalAmount),
  503. ...item.workerOrderItems
  504. .filter(o => o.chargeType == 'ACC' || o.chargeType == 'MCC')
  505. .map(val => val.totalAmount)
  506. ]
  507. .reduce((a, b) => (a * 100 + b * 100) / 100, 0)
  508. .toFixed(2)
  509. }}</view
  510. >
  511. </view>
  512. </view>
  513. <view class="row mt30">
  514. <view class="label">操作人员</view>
  515. <view class="value">{{ item.createBy }}</view>
  516. </view>
  517. <view class="row mt20">
  518. <view class="label">订单备注</view>
  519. <view class="value">{{ item.remark }}</view>
  520. </view>
  521. <view style="height: 20rpx"></view>
  522. <view v-if="item.payStatus == 'WAIT'">
  523. <u-button type="success" text="扫码支付" @click="scanCode(item)">扫码支付</u-button>
  524. </view>
  525. </view>
  526. </block>
  527. <block v-if="payList.length < 1">
  528. <Loading :type="3" :loadStatus="2" showText="暂无电子支付信息" :isLoadAnimation="false" />
  529. </block>
  530. </block>
  531. <!-- 费用结算 -->
  532. <block v-if="~[4].indexOf(curTab)">
  533. <!-- 服务费用 -->
  534. <view class="info-container card mt30" v-for="(item, index) in settleList" :key="index">
  535. <block v-if="item.settleNormType !== 'OTHER'">
  536. <view class="common-title2">
  537. <view class="title">服务费用{{ index + 1 }}</view>
  538. <view class="right">{{ orderStatus_v == 'YJS' ? '已结算' : '结算中' }}</view>
  539. </view>
  540. <view>
  541. <view class="row">
  542. <view class="label">产品大类</view>
  543. <view class="value">{{ item.mainName || '' }}</view>
  544. </view>
  545. <view class="row">
  546. <view class="label">产品小类</view>
  547. <view class="value">{{ item.smallName || '' }}</view>
  548. </view>
  549. <view class="row">
  550. <view class="label">机型名称</view>
  551. <view class="value">{{ item.goodsName || '' }}</view>
  552. </view>
  553. <!-- <view class="row">
  554. <view class="label">收费标准</view>
  555. <view class="value">¥{{ item.normAmount | priceFilter }}</view>
  556. </view> -->
  557. <view class="row">
  558. <view class="label">数&emsp;&emsp;量</view>
  559. <view class="value">{{ item.settleNum || '' }}</view>
  560. </view>
  561. <view class="row">
  562. <view class="label">结算金额</view>
  563. <view class="value" v-if="orderStatus_v == 'YJS'">¥{{ item.workerSettleAmount | priceFilter }}</view>
  564. <view class="value" v-else>-</view>
  565. </view>
  566. </view>
  567. </block>
  568. <block v-else>
  569. <view class="common-title2">
  570. <view class="title">其他费用</view>
  571. <view class="right">{{ orderStatus_v == 'YJS' ? '已结算' : '结算中' }}</view>
  572. </view>
  573. <view>
  574. <view class="row">
  575. <view class="label">类&emsp;&emsp;型</view>
  576. <view class="value">{{ item.typeName || '' }}</view>
  577. </view>
  578. <view class="row">
  579. <view class="label">规&emsp;&emsp;格</view>
  580. <view class="value">{{ item.label || '' }}</view>
  581. </view>
  582. <!-- <view class="row">
  583. <view class="label">单&emsp;&emsp;价</view>
  584. <view class="value">¥{{ item.normAmount | priceFilter }}</view>
  585. </view> -->
  586. <view class="row">
  587. <view class="label">数&emsp;&emsp;量</view>
  588. <view class="value">{{ item.settleNum || '' }}</view>
  589. </view>
  590. <view class="row">
  591. <view class="label">结算金额</view>
  592. <view class="value" v-if="orderStatus_v == 'YJS'">¥{{ item.workerSettleAmount | priceFilter }}</view>
  593. <view class="value" v-else>-</view>
  594. </view>
  595. </view>
  596. </block>
  597. </view>
  598. <block v-if="settleList.length < 1">
  599. <Loading :type="3" :loadStatus="2" showText="暂无员工结算信息" :isLoadAnimation="false" />
  600. </block>
  601. </block>
  602. </view>
  603. <Loading :type="3" :loadStatus="loadStatus" :isLoadAnimation="false" />
  604. <template slot="footer">
  605. <view class="bottom-container" v-if="detail">
  606. <!-- 接单 -->
  607. <u-button v-if="JIEDAN(detail, userInfo)" type="primary" text="接单" @tap="actionReceive()"></u-button>
  608. <!-- 待抢单 -->
  609. <u-button v-if="QIANGDAN(detail, userInfo)" type="primary" text="抢单" @tap="qdOrder(detail)"></u-button>
  610. <!-- 配件申请 -->
  611. <u-button
  612. v-if="PEIJIANSHENQING(detail, userInfo)"
  613. plain
  614. type="primary"
  615. text="配件申请"
  616. @tap="toPartsApply()"
  617. ></u-button>
  618. <!-- 变更小工 -->
  619. <u-button
  620. v-if="BIANGENGXIAOGONG(detail, userInfo)"
  621. plain
  622. type="primary"
  623. text="变更小工"
  624. @tap="biangengxiaogong()"
  625. ></u-button>
  626. <!-- 辅材收费 ok-->
  627. <u-button
  628. plain
  629. type="primary"
  630. text="辅材收费"
  631. @tap="toCharge('M')"
  632. v-if="FUCAISHOUFEI(detail, userInfo)"
  633. ></u-button>
  634. <!-- 配件收费 ok-->
  635. <u-button
  636. plain
  637. type="primary"
  638. text="配件收费"
  639. @tap="toCharge('P')"
  640. v-if="PEIJIANSHOUFEI(detail, userInfo)"
  641. ></u-button>
  642. <!-- 过程反馈 ok-->
  643. <u-button
  644. v-if="GUOCHENFANKUI(detail, userInfo)"
  645. type="primary"
  646. text="过程反馈"
  647. @tap="toFeedback()"
  648. ></u-button>
  649. <!-- <block v-if="orderStatus_v == 'DJD'">
  650. <u-button
  651. plain
  652. type="primary"
  653. text="取消加急"
  654. @tap="actionUrgent(false)"
  655. v-if="detail.pgOrderFlags && detail.pgOrderFlags.some(o => o.tag == 'JIA_JI')"
  656. ></u-button>
  657. <u-button plain type="primary" text="加急" @tap="actionUrgent(true)" v-else></u-button>
  658. </block> -->
  659. </view>
  660. </template>
  661. </zj-page-layout>
  662. <selectionWorkers
  663. v-if="item"
  664. :title="title"
  665. :detail="item"
  666. :type="selectionWorkersType"
  667. :callback="callback"
  668. @close="
  669. () => {
  670. item = null
  671. selectionWorkersType = null
  672. callback = null
  673. }
  674. "
  675. />
  676. <u-popup :show="isShowFeedback" @close="isShowFeedback = false" closeable round="10">
  677. <view class="feedback-dialog">
  678. <view class="title">服务路由</view>
  679. <view class="content">
  680. <logistics :logisticsData="feedbackList"></logistics>
  681. </view>
  682. </view>
  683. </u-popup>
  684. <zhifutanchuan
  685. v-if="state > 0"
  686. :detail="detail_zf"
  687. :orderId="orderId_zf"
  688. :state="state"
  689. @scan="scan"
  690. @back="back"
  691. @offTiming="offTiming"
  692. />
  693. </view>
  694. </template>
  695. <script>
  696. import zjDialogPicker from '@/components/zj-dialog/zj-dialog-picker.vue'
  697. import Logistics from '@/components/logistics2/common-logistics.vue'
  698. import selectionWorkers from '@/components/selectionWorkers.vue'
  699. import zhifutanchuan from '@/components/zhifutanchuan.vue'
  700. import { wxScanCode } from '@/common/utils/util.js'
  701. import { getStorage } from '@/common/utils/storage.js'
  702. import orderBtnsShow from './mixins/orderBtnsShow.js'
  703. import orderStatus_v from './mixins/orderStatus_fh.js'
  704. export default {
  705. mixins: [orderBtnsShow],
  706. components: {
  707. zjDialogPicker,
  708. Logistics,
  709. selectionWorkers,
  710. zhifutanchuan
  711. },
  712. filters: {
  713. payStatusFilter(val) {
  714. const MAP = {
  715. CANCEL: '已取消',
  716. WAIT: '待支付',
  717. PAID: '已支付'
  718. }
  719. return MAP[val]
  720. },
  721. examineStatusFilter(val) {
  722. const MAP = {
  723. WAIT: '待审批',
  724. OK: '审批通过',
  725. FAIL: '审批驳回',
  726. NO: '已取消',
  727. PAID: '已现场支付',
  728. NO_PAID: '未支付'
  729. }
  730. return MAP[val]
  731. }
  732. },
  733. data() {
  734. return {
  735. id: null,
  736. imageUrl: this.$imageUrl,
  737. detail: null,
  738. increDetail: null,
  739. loadStatus: 1,
  740. errorText: '',
  741. refresherTriggered: false,
  742. curTab: 1,
  743. tabList: [
  744. { name: '基本信息', value: 1 },
  745. { name: '服务信息', value: 2 },
  746. { name: '电子支付', value: 3 },
  747. { name: '员工结算', value: 4 }
  748. ],
  749. isOpenGoods: false,
  750. payList: [], // 支付信息列表
  751. settleList: [], // 结算列表
  752. isShowFeedback: false,
  753. feedbackList: [],
  754. behavior: '',
  755. selectionWorkersType: '',
  756. item: null,
  757. callback: null,
  758. title: '',
  759. state: 0,
  760. detail_zf: null,
  761. orderId_zf: null
  762. }
  763. },
  764. computed: {
  765. userInfo() {
  766. return getStorage('user')
  767. },
  768. orderStatus_v() {
  769. return orderStatus_v(this?.detail?.orderStatus, this?.detail)
  770. }
  771. },
  772. async onLoad({ id, behavior }) {
  773. this.id = id
  774. this.behavior = behavior
  775. await this.refreshData()
  776. this.crossPage.$on('refreshWorkorderDetail', async () => {
  777. await this.refreshData()
  778. })
  779. },
  780. onUnload() {
  781. this.crossPage.$off('refreshWorkorderDetail')
  782. },
  783. methods: {
  784. scan() {
  785. if (this.timeout) {
  786. clearTimeout(this.timeout)
  787. }
  788. this.scanCode()
  789. },
  790. back() {
  791. if (this.timeout) {
  792. clearTimeout(this.timeout)
  793. }
  794. this.$navToPage(
  795. {
  796. url: `/packageMaterial/pages/index?type=${this.detail_zf.goodsType}`
  797. },
  798. 'reLaunch'
  799. )
  800. },
  801. offTiming() {
  802. if (this.timeout) {
  803. clearTimeout(this.timeout)
  804. }
  805. },
  806. // 扫码
  807. async scanCode(item) {
  808. this.detail_zf = { ...item }
  809. this.orderId_zf = item.orderId
  810. var codeVal = await wxScanCode(['qrCode'])
  811. this.submitData(codeVal)
  812. },
  813. // 下单
  814. submitData(code) {
  815. this.$api
  816. .post('/pay/paid', {
  817. authCode: code,
  818. orderId: this.orderId_zf,
  819. payType: 'WECHAT'
  820. })
  821. .then(res => {
  822. this.detail_zf = res.data
  823. this.orderId_zf = res.data.orderId
  824. if (res.data.payStatus == 'PAID') {
  825. // 支付成功
  826. this.getPayList(() => {
  827. this.state = 2
  828. })
  829. } else {
  830. // 支付失败
  831. this.getPayList(() => {
  832. this.state = 4
  833. })
  834. }
  835. })
  836. .catch(res => {
  837. // 等待支付
  838. var [USERPAYING, orderId] = res.message.split('|')
  839. if (USERPAYING === 'USERPAYING' && !!orderId) {
  840. this.orderId_zf = orderId
  841. if (this.state == 0) {
  842. this.state = 1
  843. }
  844. this.getDetail__()
  845. } else {
  846. this.$tips(res.message)
  847. }
  848. })
  849. },
  850. getDetail__(cb) {
  851. this.$api
  852. .post('/pay/getOrder', {
  853. orderId: this.orderId_zf
  854. })
  855. .then(res => {
  856. this.detail_zf = res.data
  857. if (res.data.payStatus == 'PAID') {
  858. this.state = 2
  859. } else {
  860. this.timeout = setTimeout(() => {
  861. this.getDetail__(cb)
  862. }, 1000)
  863. }
  864. cb?.()
  865. })
  866. .catch(res => {})
  867. .finally(res => {})
  868. },
  869. // 触发下拉刷新
  870. async refresherrefresh(e) {
  871. this.refresherTriggered = true
  872. await this.refreshData()
  873. },
  874. async changeTab(e) {
  875. this.curTab = e.value
  876. this.loadStatus = 1
  877. await this.refreshData()
  878. },
  879. async refreshData() {
  880. try {
  881. await this.getDetail()
  882. await this.getSettleList()
  883. if (this.curTab === 1) {
  884. // await this.getDetail();
  885. } else if (this.curTab === 2) {
  886. } else if (this.curTab === 3) {
  887. await this.getPayList()
  888. } else if (this.curTab === 4) {
  889. await this.getSettleList()
  890. }
  891. this.refresherTriggered = false
  892. this.loadStatus = 0
  893. } catch (e) {
  894. this.loadStatus = 2
  895. }
  896. },
  897. // 获取详情
  898. getDetail() {
  899. return new Promise((resolve, reject) => {
  900. this.$api
  901. .post('/pg/order/base/detail', {
  902. orderBaseId: this.id
  903. })
  904. .then(res => {
  905. this.detail = res.data
  906. console.log(res.data)
  907. console.log(
  908. `
  909. 完工时间: ${res.data.overTime}
  910. 工程师编号号: ${this.userInfo.workerNumber}
  911. 网点属性(attr): ${res.data.attr}
  912. 工单类型(orderType): ${res.data.orderType}
  913. 是否4.0(isImportExcel): ${res.data.isImportExcel}
  914. 4.0是否已经接单(isMeet): ${res.data.isMeet}
  915. 原工单状态(orderStatus): ${res.data.orderStatus} ==> 复合状态对应:${(orderStatus => {
  916. if (res.data?.isImportExcel && res.data?.isMeet === false) {
  917. return 'DJD'
  918. }
  919. if (['DYY'].includes(orderStatus)) {
  920. // 待预约
  921. return 'DYY'
  922. } else if (['DQD'].includes(orderStatus)) {
  923. // 待抢单
  924. return 'DQD'
  925. } else if (
  926. [
  927. 'DSHPG',
  928. 'CJ',
  929. 'YPD',
  930. 'DXSPD',
  931. 'DZBPG',
  932. 'DWDSPGP',
  933. 'DXSSPGP',
  934. 'DTJXSSPGP',
  935. 'DZBSPGP',
  936. 'DFZXPD',
  937. 'DFZXSPGP',
  938. 'XSBH',
  939. 'TJXSBH',
  940. 'ZBBH',
  941. 'FZXBH',
  942. 'FL'
  943. ].includes(orderStatus)
  944. ) {
  945. // 待商户派工
  946. return 'DSHPG'
  947. } else if (['DWDPG', 'DWDPD', 'WDBH'].includes(orderStatus)) {
  948. // 待网点派工
  949. return 'DWDPG'
  950. } else if (['DJD'].includes(orderStatus)) {
  951. // 待接单
  952. return 'DJD'
  953. } else if (['FWZ', 'GCSZT', 'BFWG', 'DSM', 'YZP'].includes(orderStatus)) {
  954. // 服务中
  955. return 'FWZ'
  956. } else if (['YCD'].includes(orderStatus)) {
  957. // 异常单
  958. return 'YCD'
  959. } else if (['YWG', 'GCSZX', 'WDWG', 'YWGO'].includes(orderStatus)) {
  960. // 已完工待结算
  961. return 'YWG'
  962. } else if (['YJS', 'LRCD'].includes(orderStatus)) {
  963. // 已结算
  964. return 'YJS'
  965. } else if (['YQX', 'FWZT', 'YCGB', 'FWQX'].includes(orderStatus)) {
  966. // 已取消
  967. return 'YQX'
  968. }
  969. return ''
  970. })(res.data.orderStatus)}
  971. `
  972. )
  973. if (
  974. this.behavior === 'lqdd' &&
  975. !['DQD'].includes(res.data.orderStatus) &&
  976. res.data.workerId !== this.$store.state.user.userId
  977. ) {
  978. this.$modal({
  979. title: '提示',
  980. content: '来晚啦,工单已经被抢走了~',
  981. confirmText: '知道啦',
  982. showCancel: false
  983. })
  984. .then(() => {
  985. uni.switchTab({
  986. url: '/pages/index/index'
  987. })
  988. })
  989. .catch(() => {
  990. uni.switchTab({
  991. url: '/pages/index/index'
  992. })
  993. })
  994. }
  995. if (res.data.pgIncreOrderId) {
  996. this.getIncreDetail(res.data.pgIncreOrderId)
  997. }
  998. resolve(1)
  999. })
  1000. .catch(res => {
  1001. reject(0)
  1002. })
  1003. })
  1004. },
  1005. getIncreDetail(id) {
  1006. this.$api
  1007. .post('/increConfig/detailIncre', {
  1008. id
  1009. })
  1010. .then(res => {
  1011. this.increDetail = res.data
  1012. })
  1013. },
  1014. copyData() {
  1015. let name = this.detail.userName
  1016. let phone = this.detail.userMobile
  1017. let address = `${this.detail.gpsAddress ? this.detail.gpsAddress + this.detail.address : this.detail.address}`
  1018. this.$copy(`${name},${phone},${address}`)
  1019. },
  1020. async openFeedback() {
  1021. await this.getFeedbackList()
  1022. this.isShowFeedback = true
  1023. },
  1024. getFeedbackList() {
  1025. return new Promise((resolve, reject) => {
  1026. this.$api
  1027. .post('/pg/order/base/operator/list', {
  1028. orderBaseId: this.id
  1029. })
  1030. .then(res => {
  1031. let data = res.data.map(item => {
  1032. return {
  1033. title: item.type,
  1034. time: item.createTime,
  1035. content: item.content,
  1036. imgSrc: item.imgSrc
  1037. }
  1038. })
  1039. this.feedbackList = data
  1040. })
  1041. .finally(res => {
  1042. resolve(1)
  1043. })
  1044. })
  1045. },
  1046. // 获取支付信息
  1047. getPayList(cb) {
  1048. return new Promise((resolve, reject) => {
  1049. let url = ''
  1050. if (this.detail.rpProjectRepairId) {
  1051. url = '/engin/material/detailWorker'
  1052. } else {
  1053. url = '/changeOrder/getOrderList'
  1054. }
  1055. this.$api
  1056. .post(url, {
  1057. workerOrderId: this.id
  1058. })
  1059. .then(async res => {
  1060. this.payList = res.data.map(item => {
  1061. var gengduo = [
  1062. {
  1063. chargeType: 'SERV',
  1064. goodsName: '服务费用',
  1065. totalAmount: item.servicePrice || 0
  1066. },
  1067. {
  1068. chargeType: 'SERV',
  1069. goodsName: '其他费用',
  1070. totalAmount: item.otherPrice || 0
  1071. }
  1072. ]
  1073. if (this.detail.rpProjectRepairId) {
  1074. if (!item.rpMaterialOrderItems) {
  1075. item.rpMaterialOrderItems = []
  1076. }
  1077. item.rpMaterialOrderItems.push(...gengduo)
  1078. } else {
  1079. if (!item.workerOrderItems) {
  1080. item.workerOrderItems = []
  1081. }
  1082. item.workerOrderItems.push(...gengduo)
  1083. }
  1084. return { ...item }
  1085. })
  1086. cb?.()
  1087. resolve(1)
  1088. })
  1089. .catch(res => {
  1090. cb?.()
  1091. reject(0)
  1092. })
  1093. })
  1094. },
  1095. // 获取安装结算
  1096. getSettleList() {
  1097. return new Promise((resolve, reject) => {
  1098. this.$api
  1099. .post('/order/settle/norm/detail', {
  1100. orderId: this.id
  1101. })
  1102. .then(res => {
  1103. this.settleList = res.data
  1104. if (this.settleList.length > 0 && this.orderStatus_v == 'YJS') {
  1105. this.tabList[3].name = `员工结算(${this.settleList.reduce(
  1106. (total, obj) => total + obj.workerSettleAmount,
  1107. 0
  1108. )})`
  1109. } else {
  1110. this.tabList[3].name = `员工结算`
  1111. }
  1112. resolve(1)
  1113. })
  1114. .catch(res => {
  1115. reject(0)
  1116. })
  1117. })
  1118. },
  1119. // 预览图片
  1120. prevImg(url) {
  1121. uni.previewImage({
  1122. current: this.imageUrl + url,
  1123. urls: [this.imageUrl + url]
  1124. })
  1125. },
  1126. // 加急
  1127. actionUrgent(flag) {
  1128. this.$modal({
  1129. title: '加急操作',
  1130. content: '加急操作,会消息通知所有订单相关人员,请谨慎操作。'
  1131. })
  1132. .then(() => {
  1133. this.$api
  1134. .post('/pg/order/base/flag', {
  1135. orderBaseId: this.id,
  1136. orderFlagEnum: 'JIA_JI',
  1137. flag: flag
  1138. })
  1139. .then(res => {
  1140. this.$successToast()
  1141. this.getDetail()
  1142. this.crossPage.$emit('refreshWorkorderList', '')
  1143. })
  1144. })
  1145. .catch(() => {})
  1146. },
  1147. // 变更小工
  1148. biangengxiaogong() {
  1149. this.title = '更换小工'
  1150. this.selectionWorkersType = 3
  1151. this.item = { ...this.detail }
  1152. this.callback = () => {
  1153. this.$successToast()
  1154. this.getDetail()
  1155. this.crossPage.$emit('refreshWorkorderList', '')
  1156. this.$nextTick(() => {
  1157. this.item = null
  1158. this.selectionWorkersType = null
  1159. this.callback = null
  1160. this.title = null
  1161. })
  1162. }
  1163. },
  1164. // 接单
  1165. actionReceive() {
  1166. this.title = '接收确认'
  1167. this.selectionWorkersType = 1
  1168. this.item = { ...this.detail }
  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. this.title = null
  1178. })
  1179. }
  1180. // this.$modal({
  1181. // title: '接单确认',
  1182. // content: '确认接单?'
  1183. // })
  1184. // .then(() => {
  1185. // this.$api
  1186. // .post('/pg/order/base/rece', {
  1187. // orderBaseId: this.id
  1188. // })
  1189. // .then(res => {
  1190. // this.$successToast()
  1191. // this.getDetail()
  1192. // this.crossPage.$emit('refreshWorkorderList', '')
  1193. // })
  1194. // })
  1195. // .catch(() => {})
  1196. },
  1197. qdOrder(item) {
  1198. // this.title = '接收确认'
  1199. // this.selectionWorkersType = 2
  1200. // this.item = { ...item }
  1201. // this.callback = () => {
  1202. // this.$successToast()
  1203. // this.getDetail()
  1204. // this.crossPage.$emit('refreshWorkorderList', '')
  1205. // this.$nextTick(() => {
  1206. // this.item = null
  1207. // this.selectionWorkersType = null
  1208. // this.callback = null
  1209. // })
  1210. // }
  1211. this.$modal({
  1212. title: '抢单确认',
  1213. content: '确认抢单?'
  1214. })
  1215. .then(() => {
  1216. this.$api
  1217. .post('/pg/order/base/qd', {
  1218. orderBaseId: item.id
  1219. })
  1220. .then(res => {
  1221. this.$successToast()
  1222. this.getDetail()
  1223. this.crossPage.$emit('refreshWorkorderList', '')
  1224. })
  1225. })
  1226. .catch(() => {})
  1227. },
  1228. // 去收费
  1229. toCharge(type) {
  1230. if (type == 'M') {
  1231. this.$navToPage({
  1232. url: `/packageMaterial/pages/sale/orderList?type=${type}&oid=${this.id}&tabCurrent=1`
  1233. })
  1234. } else if (type == 'P') {
  1235. this.$navToPage({
  1236. url: `/packageMaterial/pages/newSale/orderList?type=${type}&oid=${this.id}&tabCurrent=1`
  1237. })
  1238. }
  1239. },
  1240. // 去配件申请
  1241. toPartsApply() {
  1242. this.$navToPage({
  1243. url: `/packageMaterial/pages/partsApply/form?id=${this.id}`
  1244. })
  1245. },
  1246. // 去过程反馈
  1247. toFeedback() {
  1248. this.$navToPage({
  1249. url: `/packageWorkorder/pages/processFeedback?id=${this.id}`
  1250. })
  1251. },
  1252. // 去过程反馈列表
  1253. toFeedbackList() {
  1254. this.$navToPage({
  1255. url: `/packageWorkorder/pages/feedbackList?id=${this.id}`
  1256. })
  1257. },
  1258. // 去完工明细
  1259. toOverDetail() {
  1260. this.$navToPage({
  1261. url: `/packageWorkorder/pages/overDetail?id=${this.id}`
  1262. })
  1263. }
  1264. }
  1265. }
  1266. </script>
  1267. <style lang="scss" scoped>
  1268. .all-container {
  1269. position: relative;
  1270. }
  1271. .bg {
  1272. position: absolute;
  1273. top: 0;
  1274. left: 0;
  1275. width: 100%;
  1276. height: 300rpx;
  1277. background: linear-gradient(179.48deg, rgba(200, 224, 251, 1) 0.45%, rgba(247, 247, 247, 1) 98.96%);
  1278. }
  1279. .status-container {
  1280. padding: 30rpx;
  1281. .status {
  1282. font-size: 36rpx;
  1283. font-weight: 500;
  1284. text {
  1285. margin-left: 12rpx;
  1286. }
  1287. }
  1288. .time {
  1289. font-size: 24rpx;
  1290. color: $sec-font;
  1291. margin-top: 12rpx;
  1292. }
  1293. }
  1294. .tab-container {
  1295. margin-bottom: 30rpx;
  1296. }
  1297. .card {
  1298. @include zj-card;
  1299. }
  1300. .common-title {
  1301. font-size: 36rpx;
  1302. font-weight: 600;
  1303. padding-bottom: 20rpx;
  1304. }
  1305. .common-title2 {
  1306. padding-bottom: 20rpx;
  1307. display: flex;
  1308. align-items: center;
  1309. justify-content: space-between;
  1310. .title {
  1311. font-size: 36rpx;
  1312. font-weight: 600;
  1313. }
  1314. .right {
  1315. font-size: 28rpx;
  1316. color: $theme-color;
  1317. display: flex;
  1318. align-items: center;
  1319. flex-wrap: wrap;
  1320. ::v-deep .u-button {
  1321. width: 175rpx;
  1322. margin: 0;
  1323. margin-left: 10rpx;
  1324. }
  1325. text {
  1326. font-size: 28rpx;
  1327. opacity: 0.5;
  1328. }
  1329. }
  1330. }
  1331. .content-container {
  1332. padding: 0 30rpx 30rpx;
  1333. }
  1334. .user-container {
  1335. .top {
  1336. padding: 30rpx;
  1337. .type {
  1338. display: flex;
  1339. align-items: center;
  1340. justify-content: space-between;
  1341. .left {
  1342. font-size: 36rpx;
  1343. color: $theme-color;
  1344. font-weight: 500;
  1345. }
  1346. .right {
  1347. font-size: 28rpx;
  1348. color: $theme-color;
  1349. }
  1350. }
  1351. .user {
  1352. font-weight: 500;
  1353. margin-top: 20rpx;
  1354. }
  1355. .address {
  1356. display: flex;
  1357. justify-content: space-between;
  1358. margin-top: 20rpx;
  1359. .text {
  1360. font-size: 28rpx;
  1361. flex: 1;
  1362. margin-right: 20rpx;
  1363. }
  1364. .ctrl {
  1365. font-size: 28rpx;
  1366. color: $theme-color;
  1367. .iconfont {
  1368. font-size: 28rpx;
  1369. margin-right: 4rpx;
  1370. }
  1371. }
  1372. }
  1373. }
  1374. .bottom {
  1375. border-top: 1px solid #eaeaea;
  1376. display: flex;
  1377. height: 80rpx;
  1378. .it {
  1379. flex: 1;
  1380. display: flex;
  1381. align-items: center;
  1382. justify-content: center;
  1383. font-size: 28rpx;
  1384. color: $theme-color;
  1385. &:last-child {
  1386. border-left: 1px solid #eaeaea;
  1387. }
  1388. .iconfont {
  1389. font-size: 36rpx;
  1390. margin-right: 8rpx;
  1391. }
  1392. }
  1393. }
  1394. }
  1395. .goods-container {
  1396. padding: 30rpx;
  1397. .item {
  1398. border-bottom: 1px solid #d6e0f2;
  1399. padding: 20rpx 0;
  1400. &:last-child {
  1401. border: none;
  1402. }
  1403. .main {
  1404. display: flex;
  1405. image {
  1406. width: 140rpx;
  1407. height: 140rpx;
  1408. flex-shrink: 0;
  1409. }
  1410. .info {
  1411. flex: 1;
  1412. margin-left: 20rpx;
  1413. .name {
  1414. display: flex;
  1415. justify-content: space-between;
  1416. .left {
  1417. font-weight: 500;
  1418. }
  1419. .right {
  1420. margin-left: 30rpx;
  1421. color: $sec-font;
  1422. }
  1423. }
  1424. .tags {
  1425. display: flex;
  1426. flex-wrap: wrap;
  1427. .it {
  1428. height: 42rpx;
  1429. padding: 0 16rpx;
  1430. background: #f4f5f9;
  1431. border-radius: 8rpx;
  1432. font-size: 24rpx;
  1433. display: flex;
  1434. align-items: center;
  1435. justify-content: center;
  1436. margin-top: 12rpx;
  1437. margin-right: 8rpx;
  1438. &:last-child {
  1439. margin-right: 0;
  1440. }
  1441. }
  1442. }
  1443. }
  1444. }
  1445. .images {
  1446. display: flex;
  1447. flex-wrap: wrap;
  1448. margin-top: 24rpx;
  1449. .it {
  1450. margin-right: 30rpx;
  1451. image {
  1452. width: 116rpx;
  1453. height: 116rpx;
  1454. }
  1455. .text {
  1456. text-align: center;
  1457. color: $sec-font;
  1458. margin-top: 8rpx;
  1459. }
  1460. }
  1461. }
  1462. }
  1463. .ctrl {
  1464. display: flex;
  1465. align-items: center;
  1466. justify-content: center;
  1467. margin-top: 10rpx;
  1468. text {
  1469. color: $sec-font;
  1470. }
  1471. .iconfont {
  1472. font-size: 24rpx;
  1473. transform: rotate(-90deg);
  1474. margin-left: 10rpx;
  1475. &.is {
  1476. transform: rotate(90deg);
  1477. }
  1478. }
  1479. }
  1480. }
  1481. .info-container {
  1482. padding: 30rpx;
  1483. .row {
  1484. display: flex;
  1485. margin-top: 20rpx;
  1486. &:first-child {
  1487. margin-top: 0;
  1488. }
  1489. .label {
  1490. font-size: 28rpx;
  1491. color: $sec-font;
  1492. margin-right: 20rpx;
  1493. flex-shrink: 0;
  1494. }
  1495. .value {
  1496. font-size: 28rpx;
  1497. }
  1498. .ctrl {
  1499. font-size: 28rpx;
  1500. color: $theme-color;
  1501. margin-left: 20rpx;
  1502. }
  1503. }
  1504. }
  1505. .product-container {
  1506. padding: 30rpx;
  1507. margin-bottom: 30rpx;
  1508. .row {
  1509. display: flex;
  1510. .label {
  1511. font-size: 28rpx;
  1512. color: $sec-font;
  1513. margin-right: 20rpx;
  1514. flex-shrink: 0;
  1515. }
  1516. .value {
  1517. font-size: 28rpx;
  1518. flex: 1;
  1519. }
  1520. }
  1521. .product {
  1522. background: #f5f5f5;
  1523. border-radius: 12rpx;
  1524. padding: 20rpx;
  1525. .it {
  1526. display: flex;
  1527. align-items: flex-end;
  1528. margin-bottom: 20rpx;
  1529. .name {
  1530. flex: 1;
  1531. font-size: 28rpx;
  1532. font-weight: 500;
  1533. text {
  1534. color: $sec-font;
  1535. margin-left: 12rpx;
  1536. font-weight: normal;
  1537. }
  1538. }
  1539. .price {
  1540. margin-left: 30rpx;
  1541. font-size: 28rpx;
  1542. font-weight: 500;
  1543. }
  1544. }
  1545. .total {
  1546. display: flex;
  1547. align-items: center;
  1548. justify-content: flex-end;
  1549. margin-top: 30rpx;
  1550. .text {
  1551. font-size: 28rpx;
  1552. color: $sec-font;
  1553. }
  1554. .price {
  1555. font-size: 28rpx;
  1556. color: $minor-color;
  1557. font-weight: 500;
  1558. }
  1559. }
  1560. }
  1561. .bottom {
  1562. margin-top: 20rpx;
  1563. display: flex;
  1564. align-items: center;
  1565. justify-content: space-between;
  1566. .left {
  1567. font-size: 28rpx;
  1568. font-weight: 500;
  1569. }
  1570. .right {
  1571. display: flex;
  1572. align-items: center;
  1573. .text {
  1574. font-size: 28rpx;
  1575. color: $sec-font;
  1576. }
  1577. .price {
  1578. font-size: 28rpx;
  1579. color: $minor-color;
  1580. font-weight: 500;
  1581. }
  1582. }
  1583. }
  1584. }
  1585. .feedback-container {
  1586. padding: 30rpx;
  1587. .list {
  1588. .item {
  1589. display: flex;
  1590. padding: 10rpx 0;
  1591. .main {
  1592. margin-left: 20rpx;
  1593. .name {
  1594. font-weight: 500;
  1595. line-height: 32rpx;
  1596. }
  1597. .time {
  1598. font-size: 28rpx;
  1599. margin-top: 12rpx;
  1600. color: $sec-font;
  1601. line-height: 32rpx;
  1602. }
  1603. .content {
  1604. font-size: 28rpx;
  1605. margin-top: 12rpx;
  1606. line-height: 32rpx;
  1607. }
  1608. }
  1609. }
  1610. }
  1611. }
  1612. .bottom-container {
  1613. box-sizing: border-box;
  1614. display: flex;
  1615. align-items: center;
  1616. justify-content: flex-end;
  1617. flex-wrap: wrap;
  1618. padding: 20rpx 20rpx 20rpx 0;
  1619. ::v-deep .u-button {
  1620. width: 175rpx;
  1621. box-sizing: border-box;
  1622. padding: 10rpx;
  1623. margin: 0;
  1624. margin-left: 10rpx;
  1625. margin-bottom: 10rpx;
  1626. }
  1627. }
  1628. .feedback-dialog {
  1629. padding: 30rpx 30rpx 0;
  1630. .title {
  1631. margin-bottom: 30rpx;
  1632. text-align: center;
  1633. font-weight: 600;
  1634. font-size: 36rpx;
  1635. }
  1636. .content {
  1637. padding-bottom: 30rpx;
  1638. max-height: 800rpx;
  1639. overflow-y: scroll;
  1640. }
  1641. }
  1642. .imgs {
  1643. display: flex;
  1644. flex-wrap: wrap;
  1645. .it {
  1646. display: flex;
  1647. flex-direction: column;
  1648. align-items: center;
  1649. position: relative;
  1650. margin-top: 30rpx;
  1651. margin-right: 30rpx;
  1652. &:nth-child(3n) {
  1653. margin-right: 0;
  1654. }
  1655. image {
  1656. width: 190rpx;
  1657. height: 190rpx;
  1658. background: #f4f4f7;
  1659. border-radius: 20rpx;
  1660. overflow: hidden;
  1661. }
  1662. .name {
  1663. margin-top: 24rpx;
  1664. color: $sec-font;
  1665. text {
  1666. color: $minor-color;
  1667. }
  1668. }
  1669. }
  1670. }
  1671. </style>