warehouse-application-record-detail.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>仓库管理-发货详情-创业帮</title>
  6. <meta name="keywords" content="仓库管理-发货详情-创业帮">
  7. <meta name="description" content="仓库管理-发货详情-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="仓库管理-发货详情-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. <style>
  17. .warehouse-application .topline{border-top:1px solid #f2f2f2;}
  18. .allocationRecord-detail .van-cell{padding-bottom:0;}
  19. .van-cell__title{flex:.5;}
  20. </style>
  21. </head>
  22. <body class="pb0 pt0" style="padding-top:0;">
  23. <div class="warehouse allocationRecord-detail warehouse-application" id="app" v-cloak style="height:100vh">
  24. <van-nav-bar class="user_rank_explan_title user_title_normal titlef16 rightc333" left-arrow title="发货详情" @click-left="goback">
  25. <template #left><img src="./static/images/left.png" alt=""></template>
  26. </van-nav-bar>
  27. <van-cell-group class="warp topline">
  28. <van-cell title="申请时间" :border="false" :value="detailInfo.CreateDate"></van-cell>
  29. <van-cell title="申请数量" :border="false" :value="`${detailInfo.ApplyNum } 台`"></van-cell>
  30. <van-cell title="发货数量" :border="false" :value="`${detailInfo.SendNum } 台`"></van-cell>
  31. <van-cell title="使用额度" :border="false" :value="`${detailInfo.UseAmount } 元`"></van-cell>
  32. <van-cell title="发货方式" :border="false" :value="detailInfo.SendMode"></van-cell>
  33. <van-cell title="快递单号" :border="false" @click="copy" style="align-items: center;" :data-clipboard-text="detailInfo.ErpCode" @touchstart="copy" data-clipboard-action="copy" data-clipboard-target="#inviteCode" ref="copy">
  34. <template #right-icon><img src="./static/images/icon-copy.png" alt="" style="width:.3733rem;height: .3733rem;margin-left:.16rem"></template>
  35. <template>
  36. <div class="c333 f14" id="inviteCode" style="word-wrap: normal;">{{detailInfo.ErpCode}}</div>
  37. </template>
  38. </van-cell>
  39. <van-cell :border="false" v-for="(item,index) in detailInfo.SendSn" :key="index">
  40. <template #title>
  41. <div class="f14 c333">{{item.Name}}({{item.SnList.length}})</div>
  42. </template>
  43. <template>
  44. <div class="f14 c333" v-show="item.showAll === false">{{item.SnList[0].SnNo}}</div>
  45. <div class="c333 f14" v-for="(i,ind) in item.SnList" :key="ind" v-show="item.showAll === true &amp;&amp; item.SnList.length &gt; 1">{{i.SnNo}}</div>
  46. <div class="f12 c333" @click="item.showAll = !item.showAll" v-if="item.SnList.length &gt; 1"> <span>{{item.showAll ? '收起' : '展开'}}</span>
  47. <van-icon id="arrowicon" :name="item.showAll ? 'arrow-up' : 'arrow-down'" style="margin-left: .16rem;"></van-icon>
  48. </div>
  49. </template>
  50. </van-cell>
  51. </van-cell-group>
  52. </div>
  53. <script src="./static/js/clipboard.min.js"></script>
  54. <script src="./static/js/klm-vv.min.js"></script>
  55. <script src="./static/js/appfunc.min.js"></script>
  56. <script src="./static/js/klm-axios-config.js"></script>
  57. <script src="./static/js/publicfn.js"></script>
  58. <script>
  59. Vue.use(vant.Lazyload);
  60. // 在 #app 标签下渲染一个按钮组件
  61. let app = new Vue({
  62. el: '#app',
  63. data(){
  64. return{
  65. toptitleisshow,
  66. showAll:false,
  67. detailInfo:{
  68. CreateDate:'',
  69. ApplyNum:0,
  70. SendNum:0,
  71. UseAmount:0,
  72. SendMode:'',
  73. ErpCode:'',
  74. SwapSnExpand:[],
  75. }
  76. }
  77. },
  78. created(){
  79. //- console.log(this.showAll)
  80. this.getApplycationDetail()
  81. },
  82. methods:{
  83. goback(){
  84. PublicLib.GoBack({Level:1});
  85. },
  86. giveToast(str){
  87. vant.Toast(str);
  88. },
  89. copy(){
  90. const that = this;
  91. that.copyBtn = new ClipboardJS(this.$refs.copy);
  92. that.copyBtn = new ClipboardJS(this.$refs.copy);
  93. const clipboard = that.copyBtn;
  94. clipboard.on('success', function(e) {
  95. that.giveToast('复制成功');
  96. });
  97. clipboard.on('error', function(e) {
  98. that.giveToast('复制失败,请手动选择复制!');
  99. });
  100. },
  101. async getApplycationDetail(){
  102. const UserId = PublicLib.getCookieInfo('userId');
  103. const Id = PublicLib.getCookieInfo('appication-Id');
  104. const res = await getRequest('api/v1/storemachineapply/applydetail?t='+Math.random(6),JSON.stringify({Id,UserId}));
  105. if(res.status === '1'){
  106. res.data.SendSn.forEach((item,idnex)=>{
  107. item.showAll = false
  108. })
  109. this.detailInfo = res.data;
  110. }
  111. //- this.detailInfo.ProductName = JSON.parse(PublicLib.getCookieInfo('appication-item')).ProductName
  112. },
  113. },
  114. })
  115. </script>
  116. </body>
  117. </html>