backlogManageIssueDetail.vue 5.8 KB

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