orderDetail.vue 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806
  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. if (res.data) {
  823. // 支付成功
  824. this.getPayList(() => {
  825. this.state = 2
  826. })
  827. } else {
  828. // 支付失败
  829. this.getPayList(() => {
  830. this.state = 4
  831. })
  832. }
  833. })
  834. .catch(res => {
  835. // 等待支付
  836. if (res.message === 'USERPAYING') {
  837. if (this.state == 0) {
  838. this.state = 1
  839. }
  840. this.getDetail__()
  841. } else {
  842. this.$tips(res.message)
  843. }
  844. })
  845. },
  846. getDetail__(cb) {
  847. this.$api
  848. .post('/pay/getOrder', {
  849. orderId: this.orderId_zf
  850. })
  851. .then(res => {
  852. this.detail_zf = res.data
  853. if (res.data.payStatus == 'PAID') {
  854. this.state = 2
  855. } else {
  856. this.timeout = setTimeout(() => {
  857. this.getDetail__(cb)
  858. }, 1000)
  859. }
  860. cb?.()
  861. })
  862. .catch(res => {})
  863. .finally(res => {})
  864. },
  865. // 触发下拉刷新
  866. async refresherrefresh(e) {
  867. this.refresherTriggered = true
  868. await this.refreshData()
  869. },
  870. async changeTab(e) {
  871. this.curTab = e.value
  872. this.loadStatus = 1
  873. await this.refreshData()
  874. },
  875. async refreshData() {
  876. try {
  877. await this.getDetail()
  878. await this.getSettleList()
  879. if (this.curTab === 1) {
  880. // await this.getDetail();
  881. } else if (this.curTab === 2) {
  882. } else if (this.curTab === 3) {
  883. await this.getPayList()
  884. } else if (this.curTab === 4) {
  885. await this.getSettleList()
  886. }
  887. this.refresherTriggered = false
  888. this.loadStatus = 0
  889. } catch (e) {
  890. this.loadStatus = 2
  891. }
  892. },
  893. // 获取详情
  894. getDetail() {
  895. return new Promise((resolve, reject) => {
  896. this.$api
  897. .post('/pg/order/base/detail', {
  898. orderBaseId: this.id
  899. })
  900. .then(res => {
  901. this.detail = res.data
  902. console.log(res.data)
  903. console.log(
  904. `
  905. 完工时间: ${res.data.overTime}
  906. 工程师编号号: ${this.userInfo.workerNumber}
  907. 网点属性(attr): ${res.data.attr}
  908. 工单类型(orderType): ${res.data.orderType}
  909. 是否4.0(isImportExcel): ${res.data.isImportExcel}
  910. 4.0是否已经接单(isMeet): ${res.data.isMeet}
  911. 原工单状态(orderStatus): ${res.data.orderStatus} ==> 复合状态对应:${(orderStatus => {
  912. if (res.data?.isImportExcel && res.data?.isMeet === false) {
  913. return 'DJD'
  914. }
  915. if (['DYY'].includes(orderStatus)) {
  916. // 待预约
  917. return 'DYY'
  918. } else if (['DQD'].includes(orderStatus)) {
  919. // 待抢单
  920. return 'DQD'
  921. } else if (
  922. [
  923. 'DSHPG',
  924. 'CJ',
  925. 'YPD',
  926. 'DXSPD',
  927. 'DZBPG',
  928. 'DWDSPGP',
  929. 'DXSSPGP',
  930. 'DTJXSSPGP',
  931. 'DZBSPGP',
  932. 'DFZXPD',
  933. 'DFZXSPGP',
  934. 'XSBH',
  935. 'TJXSBH',
  936. 'ZBBH',
  937. 'FZXBH',
  938. 'FL'
  939. ].includes(orderStatus)
  940. ) {
  941. // 待商户派工
  942. return 'DSHPG'
  943. } else if (['DWDPG', 'DWDPD', 'WDBH'].includes(orderStatus)) {
  944. // 待网点派工
  945. return 'DWDPG'
  946. } else if (['DJD'].includes(orderStatus)) {
  947. // 待接单
  948. return 'DJD'
  949. } else if (['FWZ', 'GCSZT', 'BFWG', 'DSM', 'YZP'].includes(orderStatus)) {
  950. // 服务中
  951. return 'FWZ'
  952. } else if (['YCD'].includes(orderStatus)) {
  953. // 异常单
  954. return 'YCD'
  955. } else if (['YWG', 'GCSZX', 'WDWG', 'YWGO'].includes(orderStatus)) {
  956. // 已完工待结算
  957. return 'YWG'
  958. } else if (['YJS', 'LRCD'].includes(orderStatus)) {
  959. // 已结算
  960. return 'YJS'
  961. } else if (['YQX', 'FWZT', 'YCGB', 'FWQX'].includes(orderStatus)) {
  962. // 已取消
  963. return 'YQX'
  964. }
  965. return ''
  966. })(res.data.orderStatus)}
  967. `
  968. )
  969. if (
  970. this.behavior === 'lqdd' &&
  971. !['DQD'].includes(res.data.orderStatus) &&
  972. res.data.workerId !== this.$store.state.user.userId
  973. ) {
  974. this.$modal({
  975. title: '提示',
  976. content: '来晚啦,工单已经被抢走了~',
  977. confirmText: '知道啦',
  978. showCancel: false
  979. })
  980. .then(() => {
  981. uni.switchTab({
  982. url: '/pages/index/index'
  983. })
  984. })
  985. .catch(() => {
  986. uni.switchTab({
  987. url: '/pages/index/index'
  988. })
  989. })
  990. }
  991. if (res.data.pgIncreOrderId) {
  992. this.getIncreDetail(res.data.pgIncreOrderId)
  993. }
  994. resolve(1)
  995. })
  996. .catch(res => {
  997. reject(0)
  998. })
  999. })
  1000. },
  1001. getIncreDetail(id) {
  1002. this.$api
  1003. .post('/increConfig/detailIncre', {
  1004. id
  1005. })
  1006. .then(res => {
  1007. this.increDetail = res.data
  1008. })
  1009. },
  1010. copyData() {
  1011. let name = this.detail.userName
  1012. let phone = this.detail.userMobile
  1013. let address = `${this.detail.gpsAddress ? this.detail.gpsAddress + this.detail.address : this.detail.address}`
  1014. this.$copy(`${name},${phone},${address}`)
  1015. },
  1016. async openFeedback() {
  1017. await this.getFeedbackList()
  1018. this.isShowFeedback = true
  1019. },
  1020. getFeedbackList() {
  1021. return new Promise((resolve, reject) => {
  1022. this.$api
  1023. .post('/pg/order/base/operator/list', {
  1024. orderBaseId: this.id
  1025. })
  1026. .then(res => {
  1027. let data = res.data.map(item => {
  1028. return {
  1029. title: item.type,
  1030. time: item.createTime,
  1031. content: item.content,
  1032. imgSrc: item.imgSrc
  1033. }
  1034. })
  1035. this.feedbackList = data
  1036. })
  1037. .finally(res => {
  1038. resolve(1)
  1039. })
  1040. })
  1041. },
  1042. // 获取支付信息
  1043. getPayList(cb) {
  1044. return new Promise((resolve, reject) => {
  1045. let url = ''
  1046. if (this.detail.rpProjectRepairId) {
  1047. url = '/engin/material/detailWorker'
  1048. } else {
  1049. url = '/changeOrder/getOrderList'
  1050. }
  1051. this.$api
  1052. .post(url, {
  1053. workerOrderId: this.id
  1054. })
  1055. .then(async res => {
  1056. this.payList = res.data.map(item => {
  1057. var gengduo = [
  1058. {
  1059. chargeType: 'SERV',
  1060. goodsName: '服务费用',
  1061. totalAmount: item.servicePrice || 0
  1062. },
  1063. {
  1064. chargeType: 'SERV',
  1065. goodsName: '其他费用',
  1066. totalAmount: item.otherPrice || 0
  1067. }
  1068. ]
  1069. if (this.detail.rpProjectRepairId) {
  1070. if (!item.rpMaterialOrderItems) {
  1071. item.rpMaterialOrderItems = []
  1072. }
  1073. item.rpMaterialOrderItems.push(...gengduo)
  1074. } else {
  1075. if (!item.workerOrderItems) {
  1076. item.workerOrderItems = []
  1077. }
  1078. item.workerOrderItems.push(...gengduo)
  1079. }
  1080. return { ...item }
  1081. })
  1082. cb?.()
  1083. resolve(1)
  1084. })
  1085. .catch(res => {
  1086. cb?.()
  1087. reject(0)
  1088. })
  1089. })
  1090. },
  1091. // 获取安装结算
  1092. getSettleList() {
  1093. return new Promise((resolve, reject) => {
  1094. this.$api
  1095. .post('/order/settle/norm/detail', {
  1096. orderId: this.id
  1097. })
  1098. .then(res => {
  1099. this.settleList = res.data
  1100. if (this.settleList.length > 0 && this.orderStatus_v == 'YJS') {
  1101. this.tabList[3].name = `员工结算(${this.settleList.reduce(
  1102. (total, obj) => total + obj.workerSettleAmount,
  1103. 0
  1104. )})`
  1105. } else {
  1106. this.tabList[3].name = `员工结算`
  1107. }
  1108. resolve(1)
  1109. })
  1110. .catch(res => {
  1111. reject(0)
  1112. })
  1113. })
  1114. },
  1115. // 预览图片
  1116. prevImg(url) {
  1117. uni.previewImage({
  1118. current: this.imageUrl + url,
  1119. urls: [this.imageUrl + url]
  1120. })
  1121. },
  1122. // 加急
  1123. actionUrgent(flag) {
  1124. this.$modal({
  1125. title: '加急操作',
  1126. content: '加急操作,会消息通知所有订单相关人员,请谨慎操作。'
  1127. })
  1128. .then(() => {
  1129. this.$api
  1130. .post('/pg/order/base/flag', {
  1131. orderBaseId: this.id,
  1132. orderFlagEnum: 'JIA_JI',
  1133. flag: flag
  1134. })
  1135. .then(res => {
  1136. this.$successToast()
  1137. this.getDetail()
  1138. this.crossPage.$emit('refreshWorkorderList', '')
  1139. })
  1140. })
  1141. .catch(() => {})
  1142. },
  1143. // 变更小工
  1144. biangengxiaogong() {
  1145. this.title = '更换小工'
  1146. this.selectionWorkersType = 3
  1147. this.item = { ...this.detail }
  1148. this.callback = () => {
  1149. this.$successToast()
  1150. this.getDetail()
  1151. this.crossPage.$emit('refreshWorkorderList', '')
  1152. this.$nextTick(() => {
  1153. this.item = null
  1154. this.selectionWorkersType = null
  1155. this.callback = null
  1156. this.title = null
  1157. })
  1158. }
  1159. },
  1160. // 接单
  1161. actionReceive() {
  1162. this.title = '接收确认'
  1163. this.selectionWorkersType = 1
  1164. this.item = { ...this.detail }
  1165. this.callback = () => {
  1166. this.$successToast()
  1167. this.getDetail()
  1168. this.crossPage.$emit('refreshWorkorderList', '')
  1169. this.$nextTick(() => {
  1170. this.item = null
  1171. this.selectionWorkersType = null
  1172. this.callback = null
  1173. this.title = null
  1174. })
  1175. }
  1176. // this.$modal({
  1177. // title: '接单确认',
  1178. // content: '确认接单?'
  1179. // })
  1180. // .then(() => {
  1181. // this.$api
  1182. // .post('/pg/order/base/rece', {
  1183. // orderBaseId: this.id
  1184. // })
  1185. // .then(res => {
  1186. // this.$successToast()
  1187. // this.getDetail()
  1188. // this.crossPage.$emit('refreshWorkorderList', '')
  1189. // })
  1190. // })
  1191. // .catch(() => {})
  1192. },
  1193. qdOrder(item) {
  1194. // this.title = '接收确认'
  1195. // this.selectionWorkersType = 2
  1196. // this.item = { ...item }
  1197. // this.callback = () => {
  1198. // this.$successToast()
  1199. // this.getDetail()
  1200. // this.crossPage.$emit('refreshWorkorderList', '')
  1201. // this.$nextTick(() => {
  1202. // this.item = null
  1203. // this.selectionWorkersType = null
  1204. // this.callback = null
  1205. // })
  1206. // }
  1207. this.$modal({
  1208. title: '抢单确认',
  1209. content: '确认抢单?'
  1210. })
  1211. .then(() => {
  1212. this.$api
  1213. .post('/pg/order/base/qd', {
  1214. orderBaseId: item.id
  1215. })
  1216. .then(res => {
  1217. this.$successToast()
  1218. this.getDetail()
  1219. this.crossPage.$emit('refreshWorkorderList', '')
  1220. })
  1221. })
  1222. .catch(() => {})
  1223. },
  1224. // 去收费
  1225. toCharge(type) {
  1226. if (type == 'M') {
  1227. this.$navToPage({
  1228. url: `/packageMaterial/pages/sale/orderList?type=${type}&oid=${this.id}&tabCurrent=1`
  1229. })
  1230. } else if (type == 'P') {
  1231. this.$navToPage({
  1232. url: `/packageMaterial/pages/newSale/orderList?type=${type}&oid=${this.id}&tabCurrent=1`
  1233. })
  1234. }
  1235. },
  1236. // 去配件申请
  1237. toPartsApply() {
  1238. this.$navToPage({
  1239. url: `/packageMaterial/pages/partsApply/form?id=${this.id}`
  1240. })
  1241. },
  1242. // 去过程反馈
  1243. toFeedback() {
  1244. this.$navToPage({
  1245. url: `/packageWorkorder/pages/processFeedback?id=${this.id}`
  1246. })
  1247. },
  1248. // 去过程反馈列表
  1249. toFeedbackList() {
  1250. this.$navToPage({
  1251. url: `/packageWorkorder/pages/feedbackList?id=${this.id}`
  1252. })
  1253. },
  1254. // 去完工明细
  1255. toOverDetail() {
  1256. this.$navToPage({
  1257. url: `/packageWorkorder/pages/overDetail?id=${this.id}`
  1258. })
  1259. }
  1260. }
  1261. }
  1262. </script>
  1263. <style lang="scss" scoped>
  1264. .all-container {
  1265. position: relative;
  1266. }
  1267. .bg {
  1268. position: absolute;
  1269. top: 0;
  1270. left: 0;
  1271. width: 100%;
  1272. height: 300rpx;
  1273. background: linear-gradient(179.48deg, rgba(200, 224, 251, 1) 0.45%, rgba(247, 247, 247, 1) 98.96%);
  1274. }
  1275. .status-container {
  1276. padding: 30rpx;
  1277. .status {
  1278. font-size: 36rpx;
  1279. font-weight: 500;
  1280. text {
  1281. margin-left: 12rpx;
  1282. }
  1283. }
  1284. .time {
  1285. font-size: 24rpx;
  1286. color: $sec-font;
  1287. margin-top: 12rpx;
  1288. }
  1289. }
  1290. .tab-container {
  1291. margin-bottom: 30rpx;
  1292. }
  1293. .card {
  1294. @include zj-card;
  1295. }
  1296. .common-title {
  1297. font-size: 36rpx;
  1298. font-weight: 600;
  1299. padding-bottom: 20rpx;
  1300. }
  1301. .common-title2 {
  1302. padding-bottom: 20rpx;
  1303. display: flex;
  1304. align-items: center;
  1305. justify-content: space-between;
  1306. .title {
  1307. font-size: 36rpx;
  1308. font-weight: 600;
  1309. }
  1310. .right {
  1311. font-size: 28rpx;
  1312. color: $theme-color;
  1313. display: flex;
  1314. align-items: center;
  1315. flex-wrap: wrap;
  1316. ::v-deep .u-button {
  1317. width: 175rpx;
  1318. margin: 0;
  1319. margin-left: 10rpx;
  1320. }
  1321. text {
  1322. font-size: 28rpx;
  1323. opacity: 0.5;
  1324. }
  1325. }
  1326. }
  1327. .content-container {
  1328. padding: 0 30rpx 30rpx;
  1329. }
  1330. .user-container {
  1331. .top {
  1332. padding: 30rpx;
  1333. .type {
  1334. display: flex;
  1335. align-items: center;
  1336. justify-content: space-between;
  1337. .left {
  1338. font-size: 36rpx;
  1339. color: $theme-color;
  1340. font-weight: 500;
  1341. }
  1342. .right {
  1343. font-size: 28rpx;
  1344. color: $theme-color;
  1345. }
  1346. }
  1347. .user {
  1348. font-weight: 500;
  1349. margin-top: 20rpx;
  1350. }
  1351. .address {
  1352. display: flex;
  1353. justify-content: space-between;
  1354. margin-top: 20rpx;
  1355. .text {
  1356. font-size: 28rpx;
  1357. flex: 1;
  1358. margin-right: 20rpx;
  1359. }
  1360. .ctrl {
  1361. font-size: 28rpx;
  1362. color: $theme-color;
  1363. .iconfont {
  1364. font-size: 28rpx;
  1365. margin-right: 4rpx;
  1366. }
  1367. }
  1368. }
  1369. }
  1370. .bottom {
  1371. border-top: 1px solid #eaeaea;
  1372. display: flex;
  1373. height: 80rpx;
  1374. .it {
  1375. flex: 1;
  1376. display: flex;
  1377. align-items: center;
  1378. justify-content: center;
  1379. font-size: 28rpx;
  1380. color: $theme-color;
  1381. &:last-child {
  1382. border-left: 1px solid #eaeaea;
  1383. }
  1384. .iconfont {
  1385. font-size: 36rpx;
  1386. margin-right: 8rpx;
  1387. }
  1388. }
  1389. }
  1390. }
  1391. .goods-container {
  1392. padding: 30rpx;
  1393. .item {
  1394. border-bottom: 1px solid #d6e0f2;
  1395. padding: 20rpx 0;
  1396. &:last-child {
  1397. border: none;
  1398. }
  1399. .main {
  1400. display: flex;
  1401. image {
  1402. width: 140rpx;
  1403. height: 140rpx;
  1404. flex-shrink: 0;
  1405. }
  1406. .info {
  1407. flex: 1;
  1408. margin-left: 20rpx;
  1409. .name {
  1410. display: flex;
  1411. justify-content: space-between;
  1412. .left {
  1413. font-weight: 500;
  1414. }
  1415. .right {
  1416. margin-left: 30rpx;
  1417. color: $sec-font;
  1418. }
  1419. }
  1420. .tags {
  1421. display: flex;
  1422. flex-wrap: wrap;
  1423. .it {
  1424. height: 42rpx;
  1425. padding: 0 16rpx;
  1426. background: #f4f5f9;
  1427. border-radius: 8rpx;
  1428. font-size: 24rpx;
  1429. display: flex;
  1430. align-items: center;
  1431. justify-content: center;
  1432. margin-top: 12rpx;
  1433. margin-right: 8rpx;
  1434. &:last-child {
  1435. margin-right: 0;
  1436. }
  1437. }
  1438. }
  1439. }
  1440. }
  1441. .images {
  1442. display: flex;
  1443. flex-wrap: wrap;
  1444. margin-top: 24rpx;
  1445. .it {
  1446. margin-right: 30rpx;
  1447. image {
  1448. width: 116rpx;
  1449. height: 116rpx;
  1450. }
  1451. .text {
  1452. text-align: center;
  1453. color: $sec-font;
  1454. margin-top: 8rpx;
  1455. }
  1456. }
  1457. }
  1458. }
  1459. .ctrl {
  1460. display: flex;
  1461. align-items: center;
  1462. justify-content: center;
  1463. margin-top: 10rpx;
  1464. text {
  1465. color: $sec-font;
  1466. }
  1467. .iconfont {
  1468. font-size: 24rpx;
  1469. transform: rotate(-90deg);
  1470. margin-left: 10rpx;
  1471. &.is {
  1472. transform: rotate(90deg);
  1473. }
  1474. }
  1475. }
  1476. }
  1477. .info-container {
  1478. padding: 30rpx;
  1479. .row {
  1480. display: flex;
  1481. margin-top: 20rpx;
  1482. &:first-child {
  1483. margin-top: 0;
  1484. }
  1485. .label {
  1486. font-size: 28rpx;
  1487. color: $sec-font;
  1488. margin-right: 20rpx;
  1489. flex-shrink: 0;
  1490. }
  1491. .value {
  1492. font-size: 28rpx;
  1493. }
  1494. .ctrl {
  1495. font-size: 28rpx;
  1496. color: $theme-color;
  1497. margin-left: 20rpx;
  1498. }
  1499. }
  1500. }
  1501. .product-container {
  1502. padding: 30rpx;
  1503. margin-bottom: 30rpx;
  1504. .row {
  1505. display: flex;
  1506. .label {
  1507. font-size: 28rpx;
  1508. color: $sec-font;
  1509. margin-right: 20rpx;
  1510. flex-shrink: 0;
  1511. }
  1512. .value {
  1513. font-size: 28rpx;
  1514. flex: 1;
  1515. }
  1516. }
  1517. .product {
  1518. background: #f5f5f5;
  1519. border-radius: 12rpx;
  1520. padding: 20rpx;
  1521. .it {
  1522. display: flex;
  1523. align-items: flex-end;
  1524. margin-bottom: 20rpx;
  1525. .name {
  1526. flex: 1;
  1527. font-size: 28rpx;
  1528. font-weight: 500;
  1529. text {
  1530. color: $sec-font;
  1531. margin-left: 12rpx;
  1532. font-weight: normal;
  1533. }
  1534. }
  1535. .price {
  1536. margin-left: 30rpx;
  1537. font-size: 28rpx;
  1538. font-weight: 500;
  1539. }
  1540. }
  1541. .total {
  1542. display: flex;
  1543. align-items: center;
  1544. justify-content: flex-end;
  1545. margin-top: 30rpx;
  1546. .text {
  1547. font-size: 28rpx;
  1548. color: $sec-font;
  1549. }
  1550. .price {
  1551. font-size: 28rpx;
  1552. color: $minor-color;
  1553. font-weight: 500;
  1554. }
  1555. }
  1556. }
  1557. .bottom {
  1558. margin-top: 20rpx;
  1559. display: flex;
  1560. align-items: center;
  1561. justify-content: space-between;
  1562. .left {
  1563. font-size: 28rpx;
  1564. font-weight: 500;
  1565. }
  1566. .right {
  1567. display: flex;
  1568. align-items: center;
  1569. .text {
  1570. font-size: 28rpx;
  1571. color: $sec-font;
  1572. }
  1573. .price {
  1574. font-size: 28rpx;
  1575. color: $minor-color;
  1576. font-weight: 500;
  1577. }
  1578. }
  1579. }
  1580. }
  1581. .feedback-container {
  1582. padding: 30rpx;
  1583. .list {
  1584. .item {
  1585. display: flex;
  1586. padding: 10rpx 0;
  1587. .main {
  1588. margin-left: 20rpx;
  1589. .name {
  1590. font-weight: 500;
  1591. line-height: 32rpx;
  1592. }
  1593. .time {
  1594. font-size: 28rpx;
  1595. margin-top: 12rpx;
  1596. color: $sec-font;
  1597. line-height: 32rpx;
  1598. }
  1599. .content {
  1600. font-size: 28rpx;
  1601. margin-top: 12rpx;
  1602. line-height: 32rpx;
  1603. }
  1604. }
  1605. }
  1606. }
  1607. }
  1608. .bottom-container {
  1609. box-sizing: border-box;
  1610. display: flex;
  1611. align-items: center;
  1612. justify-content: flex-end;
  1613. flex-wrap: wrap;
  1614. padding: 20rpx 20rpx 20rpx 0;
  1615. ::v-deep .u-button {
  1616. width: 175rpx;
  1617. box-sizing: border-box;
  1618. padding: 10rpx;
  1619. margin: 0;
  1620. margin-left: 10rpx;
  1621. margin-bottom: 10rpx;
  1622. }
  1623. }
  1624. .feedback-dialog {
  1625. padding: 30rpx 30rpx 0;
  1626. .title {
  1627. margin-bottom: 30rpx;
  1628. text-align: center;
  1629. font-weight: 600;
  1630. font-size: 36rpx;
  1631. }
  1632. .content {
  1633. padding-bottom: 30rpx;
  1634. max-height: 800rpx;
  1635. overflow-y: scroll;
  1636. }
  1637. }
  1638. .imgs {
  1639. display: flex;
  1640. flex-wrap: wrap;
  1641. .it {
  1642. display: flex;
  1643. flex-direction: column;
  1644. align-items: center;
  1645. position: relative;
  1646. margin-top: 30rpx;
  1647. margin-right: 30rpx;
  1648. &:nth-child(3n) {
  1649. margin-right: 0;
  1650. }
  1651. image {
  1652. width: 190rpx;
  1653. height: 190rpx;
  1654. background: #f4f4f7;
  1655. border-radius: 20rpx;
  1656. overflow: hidden;
  1657. }
  1658. .name {
  1659. margin-top: 24rpx;
  1660. color: $sec-font;
  1661. text {
  1662. color: $minor-color;
  1663. }
  1664. }
  1665. }
  1666. }
  1667. </style>