MrShi
2025-08-19 30e858fa504b268b9b436afca0a1259cf6e8c488
h5/pages/details_dca/details_dca.vue
@@ -2,7 +2,7 @@
   <view class="dca" v-if="info">
      <view class="dca_head">
         <text>主工单号:{{info.code}}</text>
         <text v-if="isShow" @click="show = true">抄送</text>
         <text v-if="[...info.qwnoticeMemberIds.split(','), ...info.managerId.split(',')].includes(userInfo.qwId)" @click="show = true">抄送</text>
      </view>
      <u-gap height="5" bgColor="#EFEFEF"></u-gap>
      <view class="dca_list">
@@ -59,8 +59,11 @@
               <view class="dca_wt_list_item_info">
                  {{item.problemTitle}}
               </view>
               <view class="dca_wt_list_item_btn">
               <view class="dca_wt_list_item_btn" v-if="item.closeButton === 1">
                  <view class="btn" @click="handle(item.id)">处理</view>
               </view>
               <view class="dca_wt_list_item_btn" v-else>
                  <view class="btn" @click="handle(item.id)">查看</view>
               </view>
            </view>
         </view>
@@ -103,8 +106,12 @@
</template>
<script>
   import { mapState } from 'vuex'
   import pengTree from '@/uni_modules/peng-tree/peng-tree/peng-tree.vue'
   export default {
      computed: {
         ...mapState(['userInfo'])
      },
      components: { pengTree },
      data() {
         return {
@@ -188,6 +195,7 @@
         getDetails() {
            this.$u.api.detail({ id: this.id })
               .then(res => {
                  res.data.managerId = res.data.managerId ? res.data.managerId : ''
                  this.info = res.data
               })
         },
@@ -210,10 +218,10 @@
                  workorderId: that.info.id
               })
               if (res.code === 200) {
                  uni.showToast({ title: '操作成功', icon: 'none' })
                  that.canScroll()
                  that.show = false
                  that.getDetails()
                  uni.showToast({ title: '操作成功', icon: 'none' })
               }
            }).catch(errors => {