| | |
| | | <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"> |
| | |
| | | <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> |
| | |
| | | </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 { |
| | |
| | | getDetails() { |
| | | this.$u.api.detail({ id: this.id }) |
| | | .then(res => { |
| | | res.data.managerId = res.data.managerId ? res.data.managerId : '' |
| | | this.info = res.data |
| | | }) |
| | | }, |
| | |
| | | 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 => { |
| | | |