details.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <template>
  2. <view style="width: 100%; height: 100vh">
  3. <zj-page-container>
  4. <zj-page-fill>
  5. <view class="accessories_nfo_card_view" v-if="info">
  6. <!-- 配件信息 -->
  7. <view class="accessories_nfo_card">
  8. <view class="accessories_nfo_card_title">
  9. <text>配件信息</text>
  10. <text class="colorts">
  11. {{ info.flagName }}
  12. </text>
  13. </view>
  14. <view class="accessories_list_card">
  15. <view
  16. class="accessories_list_a"
  17. v-for="(item, index) in info.partsNewRefundManageRecordList || []"
  18. :key="index"
  19. >
  20. <view class="accessories_list_a_info">
  21. <view>
  22. {{ item.partsName }}
  23. </view>
  24. <view> *{{ item.qty }} </view>
  25. <view> ¥{{ item.totalAmount }} </view>
  26. </view>
  27. <view class="accessories_list_a_number">
  28. <text>{{ item.partsNumber }}</text>
  29. <view
  30. v-if="~['REFUNDED'].indexOf(info.flag)"
  31. class="viewtkstate"
  32. @tap.stop="
  33. () => {
  34. listItem = item
  35. showPopup = true
  36. }
  37. "
  38. >
  39. 查看退款状态
  40. </view>
  41. </view>
  42. </view>
  43. <view class="accessories_list_amount">
  44. 合计:<text class="colorts">
  45. ¥{{
  46. [...(info.partsNewRefundManageRecordList || []).map(a => a.totalAmount || 0), 0].reduce((a, b) => {
  47. return a + b
  48. })
  49. }}
  50. </text>
  51. </view>
  52. </view>
  53. <view class="accessories_nfo_card_title"> 备注信息 </view>
  54. <view class="accessories_nfo_card_note">
  55. {{ info.remark }}
  56. </view>
  57. </view>
  58. <!-- 申请信息 -->
  59. <view class="accessories_nfo_card">
  60. <view class="accessories_nfo_card_title"> 申请信息 </view>
  61. <view class="accessories_nfo_ac">
  62. <view class="accessories_nfo_title"> 申请单号: </view>
  63. <view class="accessories_nfo_info">
  64. <view>
  65. {{ info.applyNo }}
  66. </view>
  67. </view>
  68. </view>
  69. <view class="accessories_nfo_ac">
  70. <view class="accessories_nfo_title"> 申请日期: </view>
  71. <view class="accessories_nfo_info">
  72. <view>
  73. {{ info.createTime }}
  74. </view>
  75. </view>
  76. </view>
  77. <view class="accessories_nfo_ac">
  78. <view class="accessories_nfo_title"> 申请人: </view>
  79. <view class="accessories_nfo_info">
  80. <view> {{ info.workerName }}({{ info.workerId }}) </view>
  81. </view>
  82. </view>
  83. <view class="accessories_nfo_ac">
  84. <view class="accessories_nfo_title"> 网点: </view>
  85. <view class="accessories_nfo_info">
  86. <view> {{ info.websitName }}({{ info.websitNumber }}) </view>
  87. </view>
  88. </view>
  89. <view class="accessories_nfo_ac">
  90. <view class="accessories_nfo_title"> 申请类别: </view>
  91. <view class="accessories_nfo_info">
  92. <radio-group
  93. v-if="info.flag === 'SAVE'"
  94. @change="
  95. d => {
  96. info.applyCategory = d.detail.value
  97. }
  98. "
  99. >
  100. <label style="margin-right: 20upx">
  101. <radio value="HOME" :checked="info.applyCategory === 'HOME'" />家用空调
  102. </label>
  103. <label> <radio value="TRADE" :checked="info.applyCategory === 'TRADE'" />商用空调 </label>
  104. <br />
  105. <br />
  106. <label> <radio value="ELEC" :checked="info.applyCategory === 'ELEC'" />生活电器(小家电) </label>
  107. </radio-group>
  108. <view v-else>
  109. {{ info.applyCategoryName }}
  110. </view>
  111. </view>
  112. </view>
  113. <view class="accessories_nfo_ac">
  114. <view class="accessories_nfo_title"> 申请类型: </view>
  115. <view class="accessories_nfo_info">
  116. <radio-group
  117. v-if="info.flag === 'SAVE'"
  118. @change="
  119. d => {
  120. info.applyType = d.detail.value
  121. }
  122. "
  123. >
  124. <label style="margin-right: 20upx">
  125. <radio value="NEW" :checked="info.applyType === 'NEW'" />新件返还
  126. </label>
  127. <label> <radio value="LOST" :checked="info.applyType === 'LOST'" />破损返还 </label>
  128. <br />
  129. <br />
  130. <label> <radio value="BUG" :checked="info.applyType === 'BUG'" />故障返还 </label>
  131. </radio-group>
  132. <view v-else>
  133. {{ info.applyTypeName }}
  134. </view>
  135. </view>
  136. </view>
  137. <view class="accessories_nfo_ac">
  138. <view class="accessories_nfo_title"> 返件方式: </view>
  139. <view class="accessories_nfo_info">
  140. <radio-group
  141. v-if="info.flag === 'SAVE'"
  142. @change="
  143. d => {
  144. info.refundMode = d.detail.value
  145. }
  146. "
  147. >
  148. <label style="margin-right: 20upx">
  149. <radio value="EXPRESS" :checked="info.refundMode === 'EXPRESS'" />物流快递
  150. </label>
  151. <label> <radio value="SELF" :checked="info.refundMode === 'SELF'" />网点自还 </label>
  152. </radio-group>
  153. <view v-else>
  154. {{ info.refundModeName }}
  155. </view>
  156. </view>
  157. </view>
  158. <view class="accessories_nfo_ac">
  159. <view class="accessories_nfo_title"> 审批人: </view>
  160. <view class="accessories_nfo_info">
  161. <view>
  162. {{ info.examineBy }}
  163. </view>
  164. </view>
  165. </view>
  166. <view class="accessories_nfo_ac">
  167. <view class="accessories_nfo_title"> 审批时间: </view>
  168. <view class="accessories_nfo_info">
  169. <view>
  170. {{ info.examineTime }}
  171. </view>
  172. </view>
  173. </view>
  174. <view class="accessories_nfo_ac">
  175. <view class="accessories_nfo_title"> 审批结果: </view>
  176. <view class="accessories_nfo_info">
  177. <view>
  178. {{ info.flagName }}
  179. </view>
  180. </view>
  181. </view>
  182. <view class="accessories_nfo_ac">
  183. <view class="accessories_nfo_title"> 审批备注: </view>
  184. <view class="accessories_nfo_info">
  185. <view>
  186. {{ info.examineRemark }}
  187. </view>
  188. </view>
  189. </view>
  190. </view>
  191. <!-- 发货信息 -->
  192. <view class="accessories_nfo_card" v-if="~['SUBMIT', 'AGREE', 'REJECT', 'REFUNDED'].indexOf(info.flag)">
  193. <view class="accessories_nfo_card_title"> 发货信息 </view>
  194. <view class="accessories_nfo_ac">
  195. <view class="accessories_nfo_title"> 发货单位: </view>
  196. <view class="accessories_nfo_info">
  197. <view>
  198. {{ info.workerName }}
  199. </view>
  200. </view>
  201. </view>
  202. <view class="accessories_nfo_ac">
  203. <view class="accessories_nfo_title"> 接收单位: </view>
  204. <view class="accessories_nfo_info">
  205. <view> {{ info.receiveWebsitName }}({{ info.receiveWebsitId }}) </view>
  206. </view>
  207. </view>
  208. <view class="accessories_nfo_ac">
  209. <view class="accessories_nfo_title"> 收货地址: </view>
  210. <view class="accessories_nfo_info">
  211. <view>
  212. {{ info.receiveAddress }}
  213. </view>
  214. </view>
  215. </view>
  216. <view class="accessories_nfo_ac">
  217. <view class="accessories_nfo_title"> 物流单号: </view>
  218. <view class="accessories_nfo_info">
  219. <view>
  220. {{ info.expressNo }}
  221. </view>
  222. </view>
  223. </view>
  224. </view>
  225. <popup
  226. :value="showPopup"
  227. @input="
  228. val => {
  229. showPopup = val
  230. }
  231. "
  232. >
  233. <view
  234. v-if="listItem"
  235. style="
  236. background: #fff;
  237. width: 500upx;
  238. -moz-box-shadow: 0px 0px 20px #333333;
  239. -webkit-box-shadow: 0px 0px 20px #333333;
  240. box-shadow: 0px 0px 20px #333333;
  241. border-radius: 20rpx;
  242. "
  243. >
  244. <view class="accessories_nfo_card">
  245. <view class="accessories_nfo_ac">
  246. <view class="accessories_nfo_title"> 退款金额: </view>
  247. <view class="accessories_nfo_info">
  248. <view>
  249. {{ listItem.refundAmount }}
  250. </view>
  251. </view>
  252. </view>
  253. <view class="accessories_nfo_ac">
  254. <view class="accessories_nfo_title"> 退款状态: </view>
  255. <view class="accessories_nfo_info">
  256. <view>
  257. {{ ['成功', '失败', '等待'][['OK', 'FAIL', 'WAIT'].indexOf(listItem.refundState)] || '' }}
  258. </view>
  259. </view>
  260. </view>
  261. <view class="accessories_nfo_ac">
  262. <view class="accessories_nfo_title"> 退款时间: </view>
  263. <view class="accessories_nfo_info">
  264. <view>
  265. {{ listItem.refundTime }}
  266. </view>
  267. </view>
  268. </view>
  269. <view class="accessories_nfo_ac">
  270. <view class="accessories_nfo_title"> 退款方式: </view>
  271. <view class="accessories_nfo_info">
  272. <view> 微信 </view>
  273. </view>
  274. </view>
  275. <view class="accessories_nfo_ac">
  276. <view class="accessories_nfo_title"> 微信接收账号: </view>
  277. <view class="accessories_nfo_info">
  278. <view>
  279. {{ listItem.refundMchNo }}
  280. </view>
  281. </view>
  282. </view>
  283. </view>
  284. </view>
  285. </popup>
  286. </view>
  287. </zj-page-fill>
  288. <!-- <bt-container v-if="info && ~['AGREE'].indexOf(info.flag)">
  289. <view class=" btcon pv30 ph10">
  290. <view class="confirm-btn" v-if="~['AGREE'].indexOf(info.flag)">确认接收</view>
  291. </view>
  292. </bt-container> -->
  293. </zj-page-container>
  294. </view>
  295. </template>
  296. <script>
  297. import zjPageContainer from '@/components/zj-page-container/zj-page-container.vue'
  298. import zjPageFill from '@/components/zj-page-container/zj-page-fill.vue'
  299. import popup from '@/components/popup.vue'
  300. export default {
  301. components: {
  302. zjPageContainer,
  303. zjPageFill,
  304. popup
  305. },
  306. data() {
  307. return {
  308. showPopup: false,
  309. info: null,
  310. listItem: null
  311. }
  312. },
  313. onLoad: function (option) {
  314. this.getDetails(option.applyNo)
  315. },
  316. methods: {
  317. getDetails(applyNo) {
  318. this.$api
  319. .post('/app/worker/new-refund/detail', {
  320. applyNo
  321. })
  322. .then(res => {
  323. this.info = res.data
  324. })
  325. .catch(() => {})
  326. }
  327. }
  328. }
  329. </script>
  330. <style scoped lang="scss">
  331. @import '@/static/style/accessories_nfo_card.scss';
  332. </style>