gasRecycleIssueDetail.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <!-- 回收申请-->
  2. <template>
  3. <view id="register">
  4. <view class="register_li">
  5. <view class="register_li_min">
  6. <view></view>
  7. <view>实验地点:</view>
  8. <input v-model="form.bottleStorage.location" disabled type="text" >
  9. </view>
  10. <view class="register_li_min">
  11. <view></view>
  12. <view>联系人:</view>
  13. <input v-model="form.bottleStorage.refuseName" disabled type="text" >
  14. </view>
  15. <view class="register_li_min">
  16. <view></view>
  17. <view>联系方式:</view>
  18. <input v-model="form.bottleStorage.refusePhonen" disabled type="text" >
  19. </view>
  20. <view class="register_li_min">
  21. <view></view>
  22. <view>运输人员:</view>
  23. <input v-model="form.bottleStorage.driverName" disabled type="text" >
  24. </view>
  25. <view class="register_li_min">
  26. <view></view>
  27. <view>拒收发起时间:</view>
  28. <input v-model="form.bottleStorage.rejectionApplyTime" disabled type="text" >
  29. </view>
  30. <view v-if="pageType==1" class="register_li_min">
  31. <view></view>
  32. <view>同意拒收时间:</view>
  33. <input v-model="form.bottleStorage.rejectionApplyTime" disabled type="text" >
  34. </view>
  35. <view class="register_li_min">
  36. <view></view>
  37. <view>问题描述:</view>
  38. <input v-model="form.bottleStorage.rejectionApplyRemark" disabled type="text" >
  39. </view>
  40. <view class="issue_li" style="border-bottom:0;" @click="lookItem(form.bottleStorage.rejectionApplyImg)">
  41. <view></view>
  42. <view>问题照片:</view>
  43. <view class="issue_img">
  44. <img v-for="(item,index) in form.bottleStorage.rejectionApplyImg.split(',')" :src="baseUrl+item">
  45. </view>
  46. </view>
  47. </view>
  48. <view class="register_li" v-if="listType==0">
  49. <view class="register_li_min">
  50. <view></view>
  51. <view>{{specificationName.airName}}-{{specificationName.configName}}:</view>
  52. <input v-model="'数量:'+form.detailList.bottleNumber" disabled type="text" >
  53. </view>
  54. </view>
  55. <view v-if="pageType==0" class="sub_btn" @click="submitForm()">同意拒收</view>
  56. </view>
  57. </template>
  58. <script>
  59. import {supplierBacklogDetail,
  60. supplierBacklogRecycleDetail,
  61. supplierBacklogIssueDetail,
  62. supplierBacklogPersonCar,
  63. supplierBacklogRejection,
  64. } from '@/api/apiDemo/index.js'
  65. import { config } from '@/api/request/config.js'
  66. export default {
  67. data() {
  68. return {
  69. baseUrl:config.base_url,
  70. pageType:0,//0待处理1已处理
  71. form:{
  72. },
  73. id:'',
  74. status:'',//gq hs wt
  75. personList:[],
  76. personListArr:[],
  77. carList:[],
  78. carListArr:[],
  79. editForm:{
  80. id:'',
  81. remark:'2',
  82. },//配送
  83. specificationName:{},//回收
  84. }
  85. },
  86. onLoad(option) {
  87. this.id=JSON.parse(decodeURIComponent(option.item)).id;
  88. this.pageType=option.status;
  89. },
  90. onShow(){
  91. },
  92. mounted() {
  93. this.getInfo();
  94. },
  95. methods: {
  96. lookItem(item){
  97. let arr=item.split(',')
  98. let arr2=[]
  99. arr.forEach(function(item2){
  100. arr2.push(config.base_url+item2)
  101. })
  102. //查看图片
  103. wx.previewImage({
  104. urls: arr2, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  105. current: '', // 当前显示图片的http链接,默认是第一个
  106. success: function(res) {},
  107. fail: function(res) {},
  108. complete: function(res) {},
  109. })
  110. },
  111. //获取详情
  112. async getInfo(){
  113. let _this = this;
  114. const {data} = await supplierBacklogIssueDetail({id:this.id})
  115. if(data.code==200){
  116. let res=data.data
  117. _this.form=res;
  118. _this.specificationName=JSON.parse(res.detailList.applyDescribe)
  119. }
  120. },
  121. //同意拒收
  122. async submitForm(){
  123. let _this = this;
  124. _this.editForm.id=_this.id;
  125. const {data} = await supplierBacklogRejection(_this.editForm);
  126. if(data.code == 200){
  127. uni.showToast({
  128. title: '提交成功',
  129. icon:"none",
  130. mask:true,
  131. duration: 2000
  132. });
  133. setTimeout(function(){
  134. uni.redirectTo({
  135. url: '/pages_supplier/gasRecycle/gasRecycle'
  136. });
  137. },2000);
  138. }
  139. },
  140. }
  141. }
  142. </script>
  143. <style lang="stylus" scoped>
  144. #register{
  145. height:auto;
  146. width:100%;
  147. display flex;
  148. flex-direction column;
  149. padding-bottom: 220rpx;
  150. .register_li{
  151. background #fff;
  152. border-radius:20rpx;
  153. margin:20rpx 20rpx 0;
  154. padding:20rpx 0;
  155. box-sizing: border-box;
  156. .register_li_min{
  157. margin:0 26rpx;
  158. display flex;
  159. align-items center;
  160. border-bottom: 1px solid #F5F5F5;
  161. view{
  162. line-height:100rpx;
  163. font-size:28rpx;
  164. }
  165. view:nth-child(1){
  166. color:red;
  167. line-height:28rpx;
  168. margin-right: 12rpx;
  169. }
  170. view:nth-child(2){
  171. //width:140rpx;
  172. font-size: 28rpx;
  173. font-family: PingFang SC;
  174. font-weight: 500;
  175. color: #999999;
  176. }
  177. >input{
  178. flex:1;
  179. text-align: right;
  180. font-size: 24rpx;
  181. font-family: PingFang SC;
  182. font-weight: 500;
  183. color: #333333;
  184. }
  185. }
  186. .issue_li{
  187. margin:34rpx 26rpx 0;
  188. display flex;
  189. border-bottom: 1px solid #F5F5F5;
  190. view:nth-child(1){
  191. color:red;
  192. line-height:28rpx;
  193. margin-right: 12rpx;
  194. }
  195. view:nth-child(2){
  196. width:220rpx;
  197. font-size: 28rpx;
  198. font-family: PingFang SC;
  199. font-weight: 500;
  200. color: #999999;
  201. }
  202. .issue_img{
  203. display flex;
  204. justify-content: flex-start;
  205. flex-wrap: wrap;
  206. >img{
  207. width: 150rpx;
  208. height: 150rpx;
  209. border-radius: 10rpx;
  210. margin-right: 20rpx;
  211. margin-bottom: 20rpx
  212. }
  213. }
  214. }
  215. }
  216. /* 按钮 */
  217. .sub_btn{
  218. width: 650rpx;
  219. height: 100rpx;
  220. background: #0183FA;
  221. border-radius: 20rpx;
  222. font-size: 28rpx;
  223. font-family: PingFang SC;
  224. font-weight: 500;
  225. color: #FFFFFF;
  226. line-height: 100rpx;
  227. text-align: center;
  228. margin-left: 50rpx;
  229. position: fixed;
  230. bottom:30rpx;
  231. z-index: 1000;
  232. }
  233. }
  234. /deep/.input-value-border{
  235. display :none !important;
  236. }
  237. </style>