changeStoreDetail.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. <template>
  2. <view class="content">
  3. <view class="topView">
  4. <!-- 待处理 -->
  5. <view class="waitBg" v-if="state>0">
  6. <view class="title">请等待平台处理</view>
  7. <!-- 进度条 -->
  8. <view class="progress">
  9. <image :src="(state>0 ? tongguoUrl : waitUrl)" class="waitImg" :class="{tongguoImg:state>0}">
  10. </image>
  11. <view class="line" :class="{lightLine:state>0}"></view>
  12. <image :src="(state>1 ? tongguoUrl : waitUrl)" class="waitImg" :class="{tongguoImg:state>1}">
  13. </image>
  14. <view class="line" :class="{lightLine:state>1}"></view>
  15. <image :src="(state>2 ? tongguoUrl : waitUrl)" class="waitImg" :class="{tongguoImg:state>2}">
  16. </image>
  17. </view>
  18. <!-- 进度条 文字提示 -->
  19. <view class="progressT">
  20. <view class="stateView">
  21. <view class="progressTitle">提交申请</view>
  22. <view class="time" v-if="state>0">2021-11-2 12:43</view>
  23. </view>
  24. <view style="width: 9%;"></view>
  25. <view class="stateView">
  26. <view class="progressTitle">平台审核</view>
  27. <view class="time" v-if="state>1">2021-11-2 12:43</view>
  28. </view>
  29. <view style="width: 9%;"></view>
  30. <view class="stateView">
  31. <view class="progressTitle">平台同意更换</view>
  32. <view class="time" v-if="state>2">2021-11-2 12:43</view>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 更换关闭 -->
  37. <view class="waitBg" v-if="state==0" style="height: 100rpx;">
  38. <view class="title">更换关闭</view>
  39. <view class="title3">2021年11月12日 12:43</view>
  40. </view>
  41. <!-- 平台拒绝 -->
  42. <view class="waitBg" v-if="state==-1" style="height: 100rpx;">
  43. <view class="title">平台已拒绝</view>
  44. <view class="title3">2021年11月12日 12:43</view>
  45. </view>
  46. </view>
  47. <!-- 更换提交 -->
  48. <view class="whiteView" v-if="state==1">
  49. <view class="title1">您已成功发起更换门店申请,请耐心等待平台处理</view>
  50. <view class="title2">平台同意后,系统将自动更新门店信息</view>
  51. <view class="title3">平台同意后,系统将自动更新门店信息</view>
  52. </view>
  53. <!-- 更换关闭 -->
  54. <view class="whiteView" v-if="state==0">
  55. <view class="title1">您已撤销本次退款申请,如有问题仍未解决,您可以重新发起申请</view>
  56. </view>
  57. <!-- 平台拒绝 -->
  58. <view class="whiteView" v-if="state==-1">
  59. <view class="title1">平台拒绝原因:这是选择的原因</view>
  60. <view class="title2">您可以修改更换申请后再次发起,平台会重新处理</view>
  61. </view>
  62. <!-- 同意申请 -->
  63. <view class="tongyiView" v-if="state==3">
  64. <view class="title1">进度详情</view>
  65. <image src="../../static/img/rightArrow.png" mode="" style="width: 14rpx; height: 23rpx;"></image>
  66. </view>
  67. <view class="whiteView">
  68. <view class="storeTitle">更换前门店信息</view>
  69. <view class="store">
  70. <image src="../../static/img/icon_state_gray.png" mode="" class="leftIcon"></image>
  71. <view class="name">{{detailData.oldShopName}}</view>
  72. </view>
  73. <view class="store">
  74. <image src="../../static/img/icon_coordinate.png" mode="" class="leftIcon"></image>
  75. <view class="address">{{detailData.oldShopAddress}}</view>
  76. </view>
  77. </view>
  78. <view class="whiteView">
  79. <view class="storeTitle">更换后门店信息</view>
  80. <view class="store">
  81. <image src="../../static/img/icon_state_gray.png" mode="" class="leftIcon"></image>
  82. <view class="name">{{detailData.newShopName}}</view>
  83. </view>
  84. <view class="store">
  85. <image src="../../static/img/icon_coordinate.png" mode="" class="leftIcon"></image>
  86. <view class="address">{{detailData.newShopAddress}}</view>
  87. </view>
  88. </view>
  89. <!-- 订单信息 -->
  90. <view class="whiteView">
  91. <view class="informationLine">
  92. <view class="informationTxt">更换原因:</view>
  93. <view class="informationNum">{{detailData.applyReason}}</view>
  94. </view>
  95. <view class="informationLine">
  96. <view class="informationTxt">申请时间:</view>
  97. <view class="informationNum">{{detailData.createTime}}</view>
  98. </view>
  99. <view class="informationLine">
  100. <view class="informationTxt">补充描述:</view>
  101. <view class="informationNum" v-if="detailData.applyReasonComment!=null">
  102. {{detailData.applyReasonComment}}</view>
  103. </view>
  104. <view class="informationLine">
  105. <view class="informationTxt">申请单号:</view>
  106. <view class="informationNum">{{detailData.changeCode}}</view>
  107. <view class="copyBtn" @click="copy(orderData.changeCode)">复制</view>
  108. </view>
  109. <view class="informationLine">
  110. <view class="informationTxt">订单单号:</view>
  111. <view class="informationNum">{{detailData.sheetID}}</view>
  112. <view class="copyBtn" @click="copy(orderData.sheetID)">复制</view>
  113. <view style="color: #3F90F7; font-size: 26rpx; margin-left: 50rpx;">详情</view>
  114. </view>
  115. </view>
  116. <!-- 底部按钮 操作 -->
  117. <view style="height: 150rpx;"></view>
  118. <view class="orderBottom" v-if="state==1">
  119. <view class="cancelBtn" @click="cancelBtn">撤销申请</view>
  120. <view class="cancelBtn" @click="editBtn">修改申请</view>
  121. </view>
  122. </view>
  123. </template>
  124. <script>
  125. export default {
  126. data() {
  127. return {
  128. state: -1, // -1 拒绝 0自己撤销关闭 1 提交申请 3 同意申请
  129. tongguoUrl: '../../static/img/icon_tongguo.png',
  130. waitUrl: '../../static/img/icon_yuan.png',
  131. id: '',
  132. detailData: '',
  133. }
  134. },
  135. onLoad(opt) {
  136. this.id = opt.id
  137. this.getData();
  138. },
  139. onShow() {
  140. this.getData();
  141. },
  142. methods: {
  143. getData() {
  144. uni.showLoading({
  145. title: '加载中'
  146. })
  147. let url = '/worldKeepCar/orderChangeShop/changeDetail',
  148. params = {
  149. id: this.id,
  150. }
  151. this.$http(url, params, 'GET').then(res => {
  152. uni.hideLoading();
  153. this.detailData = res.data
  154. // 更换状态
  155. // "changeState": 备注:处理状态1待处理2更换成功3更换关闭
  156. if (this.detailData.changeState == 1) {
  157. // 平台处理
  158. this.state = 1;
  159. } else if (this.detailData.changeState == 2) {
  160. // 平台同意
  161. this.state = 3;
  162. }
  163. if (this.detailData.handlerReasonID != null) {
  164. // 拒绝
  165. this.state = -1;
  166. }
  167. if (this.detailData.cancelType != null) {
  168. // 关闭
  169. this.state = 0;
  170. }
  171. })
  172. },
  173. copy(txt) {
  174. uni.setClipboardData({
  175. data: txt,
  176. success: function() {
  177. uni.showToast({
  178. title: '复制成功',
  179. icon: 'none',
  180. duration: 2000
  181. });
  182. }
  183. });
  184. },
  185. cancelBtn(){
  186. uni.showLoading({
  187. title: '加载中'
  188. })
  189. let url = 'worldKeepCar/orderChangeShop/cancelApply',
  190. params = {
  191. id: this.detailData.id,
  192. }
  193. this.$http(url, params, 'POST').then(res => {
  194. uni.hideLoading();
  195. if(res.code==0){
  196. uni.showToast({
  197. title: '撤销成功',
  198. icon: 'none',
  199. duration: 2000,
  200. });
  201. setTimeout(function() {
  202. uni.navigateBack({
  203. })
  204. }, 2000);
  205. }
  206. })
  207. },
  208. editBtn(){
  209. uni.navigateTo({
  210. url:'changeStore?edit=true'+'&editId='+this.detailData.id+'&oldStoreName='+this.detailData.oldShopName+'&oldStoreAddress='+this.detailData.oldShopAddress+'&store='+this.detailData.newShopName+'&storeId='+this.detailData.newShopID+'&reasonId='+this.detailData.applyReasonID+'&reason='+this.detailData.applyReason+'&exeContent='+this.detailData.applyReasonComment
  211. })
  212. }
  213. }
  214. }
  215. </script>
  216. <style>
  217. .content {
  218. background-color: #F4F5F7;
  219. min-height: 100vh;
  220. }
  221. .topView {
  222. background: linear-gradient(315deg, #FD5002 0%, #FE8F00 100%);
  223. padding: 20rpx 24rpx;
  224. }
  225. .waitBg {
  226. background-color: #FFFFFF;
  227. border-radius: 20rpx;
  228. height: 209rpx;
  229. padding: 30rpx;
  230. }
  231. .title {
  232. color: #333333;
  233. font-size: 32rpx;
  234. font-weight: bold;
  235. margin-bottom: 30rpx;
  236. }
  237. .progress {
  238. display: flex;
  239. align-items: center;
  240. padding: 10rpx 70rpx;
  241. }
  242. .waitImg {
  243. width: 20rpx;
  244. height: 20rpx;
  245. }
  246. .tongguoImg {
  247. width: 38rpx;
  248. height: 38rpx;
  249. }
  250. .line {
  251. width: 40%;
  252. margin: 0rpx 5rpx;
  253. height: 2px;
  254. background: #FF2400;
  255. opacity: 0.4;
  256. }
  257. .lightLine {
  258. width: 40%;
  259. margin: 0rpx 5rpx;
  260. height: 2px;
  261. background: #FF2400;
  262. opacity: 1.0;
  263. }
  264. .progressT {
  265. display: flex;
  266. align-items: center;
  267. }
  268. .stateView {
  269. width: 30%;
  270. }
  271. .progressTitle {
  272. color: #333333;
  273. font-size: 22rpx;
  274. text-align: center;
  275. }
  276. .time {
  277. color: #999999;
  278. font-size: 22rpx;
  279. text-align: center;
  280. }
  281. .whiteView {
  282. background-color: #FFFFFF;
  283. padding: 30rpx 24rpx;
  284. margin: 20rpx 0;
  285. }
  286. .title1 {
  287. color: #3C3C3C;
  288. font-size: 30rpx;
  289. font-weight: bold;
  290. }
  291. .title2 {
  292. color: #999999;
  293. font-size: 24rpx;
  294. padding-top: 16rpx;
  295. padding-bottom: 8rpx;
  296. }
  297. .title3 {
  298. color: #999999;
  299. font-size: 24rpx;
  300. }
  301. .storeTitle {
  302. color: #3C3C3C;
  303. font-size: 30rpx;
  304. font-weight: bold;
  305. border-bottom: 1rpx #EEEEEE solid;
  306. padding-bottom: 22rpx;
  307. }
  308. .store {
  309. display: flex;
  310. padding-top: 20rpx;
  311. align-items: center;
  312. }
  313. .leftIcon {
  314. width: 30rpx;
  315. height: 30rpx;
  316. margin-right: 10rpx;
  317. }
  318. .name {
  319. color: #3C3C3C;
  320. font-size: 26rpx;
  321. }
  322. .address {
  323. color: #999999;
  324. font-size: 26rpx;
  325. }
  326. .informationLine {
  327. display: flex;
  328. font-size: 26rpx;
  329. padding: 20rpx 0;
  330. }
  331. .informationTxt {
  332. width: 130rpx;
  333. color: #666666;
  334. }
  335. .informationNum {
  336. color: #333333;
  337. width: 50%;
  338. }
  339. .copyBtn {
  340. width: 86rpx;
  341. height: 40rpx;
  342. background: #F4F5F7;
  343. border-radius: 20rpx;
  344. font-size: 24rpx;
  345. color: #333333;
  346. text-align: center;
  347. line-height: 40rpx;
  348. margin-left: 20rpx;
  349. }
  350. .orderBottom {
  351. width: 750rpx;
  352. height: 98rpx;
  353. background: #FFFFFF;
  354. position: fixed;
  355. left: 0;
  356. bottom: 0;
  357. display: flex;
  358. justify-content: flex-end;
  359. }
  360. .cancelBtn {
  361. width: 150rpx;
  362. height: 56rpx;
  363. border-radius: 36rpx;
  364. border: 2rpx solid #DDDDDD;
  365. text-align: center;
  366. line-height: 56rpx;
  367. font-size: 28rpx;
  368. color: #3C3C3C;
  369. margin-top: 21rpx;
  370. margin-right: 16rpx;
  371. margin-left: 20rpx;
  372. }
  373. .tongyiView {
  374. display: flex;
  375. justify-content: space-between;
  376. align-items: center;
  377. background-color: #FFFFFF;
  378. padding: 30rpx 24rpx;
  379. margin: 20rpx 0;
  380. }
  381. </style>