| | |
| | | }, |
| | | methods: { |
| | | async init() { |
| | | // if (!this.$store.state.userInfo) { |
| | | // let res = await this.$u.api.login({ code: 'ShiXuHui' }) |
| | | // if (res.code === 200) { |
| | | // this.$store.commit('setUserInfo', res.data) |
| | | // } |
| | | // } |
| | | // return |
| | | if (!this.$store.state.userInfo) { |
| | | let res = await this.$u.api.login({ code: 'ShiXuHui' }) |
| | | if (res.code === 200) { |
| | | this.$store.commit('setUserInfo', res.data) |
| | | } |
| | | } |
| | | return |
| | | let code = this.getQueryVariable('code') |
| | | if (code) { |
| | | if (!uni.getStorageSync('code')) { |
| | |
| | | }) |
| | | } else if (value[0] == 1) { |
| | | uni.navigateTo({ |
| | | url: `/pages/workOrder_dca/workOrder_dca?id=${value[1]}` |
| | | url: `/pages/details_dca/details_dca?id=${value[1]}&isShow=true` |
| | | }) |
| | | } else if (value[0] == 3) { |
| | | uni.navigateTo({ |
| | |
| | | }) |
| | | } else if (value[0] == 1) { |
| | | uni.navigateTo({ |
| | | url: `/pages/workOrder_dca/workOrder_dca?id=${value[1]}` |
| | | url: `/pages/details_dca/details_dca?id=${value[1]}&isShow=true` |
| | | }) |
| | | } else if (value[0] == 3) { |
| | | uni.navigateTo({ |
| | |
| | | App.mpType = 'app' |
| | | Vue.use(uView); |
| | | |
| | | Vue.prototype.$baseUrl = 'https://dmtest.ahapp.net/lianhelihua_interface' |
| | | // Vue.prototype.$baseUrl = 'http://192.168.0.135:10040' |
| | | // Vue.prototype.$baseUrl = 'https://dmtest.ahapp.net/lianhelihua_interface' |
| | | Vue.prototype.$baseUrl = 'http://192.168.0.131:10040' |
| | | Vue.prototype.$store = store; |
| | | Vue.prototype.$ww = ww; |
| | | Vue.prototype.$vConsole= new Vconsole() |
| | |
| | | <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> |
| | |
| | | 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 => { |
| | | |
| | |
| | | </view> |
| | | <image src="/static/bg_b.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="index_list_item" @click="jump(3)"> |
| | | <view class="index_list_item" @click="jump(3)" v-if="userInfo.dcaButton === 1"> |
| | | <view class="index_list_item_info"> |
| | | <text>深度符合性审查DCA</text> |
| | | <text>DCA</text> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | data() { |
| | | return { |
| | | title: 'Hello' |
| | |
| | | <view class="list_row_img" v-if="child.status === 2"> |
| | | <view class="list_row_img_label">图片</view> |
| | | <view class="list_row_img_list" v-if="child.imgList"> |
| | | <view class="list_row_img_list_row" v-for="(imgRow, n) in child.imgList.split(',')" :key="n"> |
| | | <view class="list_row_img_list_row" v-for="(imgRow, n) in child.imgList.split(',')" :key="n" @click="previewImage(base + imgRow, child.imgList.split(',').map(item => base + item))"> |
| | | <image :src="base + imgRow" mode="widthFix"></image> |
| | | </view> |
| | | <view class="list_row_img_list_zw"></view> |
| | |
| | | this.base = res.data.path |
| | | }) |
| | | }, |
| | | previewImage(current, urls) { |
| | | uni.previewImage({ |
| | | current, |
| | | urls |
| | | }); |
| | | }, |
| | | submit() { |
| | | // 总数 |
| | | let tatal = 0 |
| | |
| | | page: this.search.page, |
| | | model: { |
| | | myWorkOrder: 1, |
| | | memberId: this.userInfo.id, |
| | | type: this.typeId, |
| | | dealStatus: this.statusId, |
| | | localtionId: this.localtionId |
| | |
| | | if (type === 0) { |
| | | return 'SHE事件上报' |
| | | } else if (type === 3) { |
| | | return '跌绊滑事件' |
| | | return '跌绊滑事件上报' |
| | | } |
| | | } |
| | | } |
| | |
| | | <view class="dca" v-if="info"> |
| | | <view class="dca_head"> |
| | | <text>任务{{returnStatus(info.status)}}</text> |
| | | <text>工单号:{{info.code}}</text> |
| | | </view> |
| | | <u-gap height="5" bgColor="#EFEFEF"></u-gap> |
| | | <view class="dca_list"> |
| | |
| | | </view> |
| | | <view class="lc_item_content" v-else-if="item.objType === 4"> |
| | | <view class="lc_item_content_item"> |
| | | <view class="lc_item_content_item_label">已催促:</view> |
| | | <!-- <view class="lc_item_content_item_label">已催促:</view> --> |
| | | <view class="lc_item_content_item_val"> |
| | | <text>{{item.content}}</text> |
| | | </view> |
| | |
| | | this.getDetails() |
| | | }, |
| | | methods: { |
| | | // 工单催促 |
| | | async urge() { |
| | | let res = await this.$u.api.urge({ workorderId: this.info.id }) |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: '催促成功', icon: 'none' }) |
| | | this.getDetails() |
| | | this.show2 = false |
| | | } |
| | | }, |
| | | previewImage(current, urls) { |
| | | uni.previewImage({ |
| | | current, |
| | |
| | | info: that.model.info, |
| | | passOnUserId: that.model.passOnUserId, |
| | | multifileList: that.model.multifileList, |
| | | workorderId: that.info.id |
| | | workorderId: that.info.id, |
| | | passOnType: this.info.status |
| | | }) |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: '操作成功', icon: 'none' }) |
| | |
| | | </view> |
| | | <view class="lc_item_content" v-else-if="item.objType === 4"> |
| | | <view class="lc_item_content_item"> |
| | | <view class="lc_item_content_item_label">已催促:</view> |
| | | <!-- <view class="lc_item_content_item_label">已催促:</view> --> |
| | | <view class="lc_item_content_item_val"> |
| | | <text>{{item.content}}</text> |
| | | </view> |
| | |
| | | info: that.model.info, |
| | | passOnUserId: that.model.passOnUserId, |
| | | multifileList: that.model.multifileList, |
| | | workorderId: that.info.id |
| | | workorderId: that.info.id, |
| | | passOnType: this.info.status |
| | | }) |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: '操作成功', icon: 'none' }) |
| | |
| | | async urge() { |
| | | let res = await this.$u.api.urge({ workorderId: this.info.id }) |
| | | if (res.code === 200) { |
| | | uni.showToast({ |
| | | title: '操作成功', |
| | | icon: 'none' |
| | | }) |
| | | uni.showToast({ title: '催促成功', icon: 'none' }) |
| | | this.getDetails() |
| | | this.show2 = false |
| | | } |
| | |
| | | uni.$u.http.interceptors.response.use((response) => { |
| | | uni.hideLoading(); |
| | | // 登录过期 |
| | | if (response.data.code === 401) { |
| | | if (!isRefreshing) { // 是否已经执行刷新 |
| | | isRefreshing = true |
| | | uni.login({ |
| | | provider: 'weixin', |
| | | success: async function (loginRes) { |
| | | let { code } = loginRes; |
| | | uni.request({ |
| | | url: vm.$baseUrl + 'mobile/system/login', |
| | | method: "GET", |
| | | data: { code }, |
| | | success: (res) => { |
| | | isRefreshing = false |
| | | vm.$store.commit('setToken', res.data.data) |
| | | // 已经刷新了token,将所有队列中的请求进行重试 |
| | | requests.forEach(item => item(res.data.data)) |
| | | requests = [] |
| | | if (response.data.code === 5112) { |
| | | uni.showToast({ |
| | | title: '登录过期,正在重新跳转授权', |
| | | duration: 2000, |
| | | success() { |
| | | setTimeout(() => { |
| | | let loc_href = encodeURIComponent("https://dmtest.ahapp.net/lianhelihua_web/") |
| | | let corpId = 'wweea8f71b54e3b835'; |
| | | let agentId = '1000095'; |
| | | let wxUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${corpId}&redirect_uri=${loc_href}&response_type=code&scope=snsapi_base&state=#wechat_redirect` |
| | | location.href = wxUrl; |
| | | }, 1500) |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | return new Promise((resolve) => { |
| | | // 将resolve放进队列,用一个函数形式来保存,等token刷新后直接执行 |
| | | requests.push(token => { |
| | | response.config.header['eva-auth-token'] = token |
| | | resolve(uni.$u.http.request(response.config)); |
| | | }) |
| | | }) |
| | | return |
| | | } |
| | | if (response.data.code !== 200) { |
| | | uni.showToast({ |