驳回后的处理

This commit is contained in:
shijing 2023-03-31 14:17:17 +08:00
parent 72b0884570
commit d39046d7f5
15 changed files with 715 additions and 95 deletions

View File

@ -2,8 +2,8 @@
"name" : "曲阳金隅EHS", "name" : "曲阳金隅EHS",
"appid" : "__UNI__B00D419", "appid" : "__UNI__B00D419",
"description" : "曲阳金隅EHS", "description" : "曲阳金隅EHS",
"versionName" : "1.01.28", "versionName" : "1.01.36",
"versionCode" : 101028, "versionCode" : 101036,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -19,14 +19,22 @@
<view>{{ticketDetail.title}}</view> <view>{{ticketDetail.title}}</view>
</view> </view>
</view> </view>
<view class="form-item" @click="logView"> <view class="form-item border-bottom" @click="logView">
<view class="form-left"> <view class="form-left">
<text class="form-left-text">工单状态</text> <text class="form-left-text">工单节点</text>
</view> </view>
<view class="form-right" style="color:blue"> <view class="form-right" style="color:blue">
<view v-if="ticketDetail.state">{{ticketDetail.state_.name}}</view> <view v-if="ticketDetail.state">{{ticketDetail.state_.name}}</view>
</view> </view>
</view> </view>
<view class="form-item border-bottom">
<view class="form-left">
<text class="form-left-text">工单状态</text>
</view>
<view class="form-right" style="color:red">
<view v-if="ticketDetail.state">{{act_states[ticketDetail.act_state]}}</view>
</view>
</view>
<view class="form-item" v-if="ticketDetail.participant_&&ticketDetail.participant_.length>0"> <view class="form-item" v-if="ticketDetail.participant_&&ticketDetail.participant_.length>0">
<view class="form-left"> <view class="form-left">
<text class="form-left-text">可处理人</text> <text class="form-left-text">可处理人</text>
@ -339,6 +347,23 @@
</view> </view>
</view> </view>
</block> </block>
<block v-if="type=='handle'&&oplDetail.ticket_.act_state==2">
<view class="ticket-info">
<view style="display: flex;flex-direction: column;">
<view style="display: block;">{{tLog[0].state_.name}}</view>
<view style="color:gray;font-size: 28rpx;">
<span v-if="tLog[0].participant">{{tLog[0].participant_.name}}-</span>
<span v-if="tLog[0].transition_attribute==1" style="color:green">同意-</span>
<span v-if="tLog[0].transition_attribute==2" style="color:red">拒绝-</span>
<span>{{tLog[0].create_time}}</span>
</view>
<view style="color:gray;font-size: 28rpx;">
<span>{{tLog[0].suggestion}}</span>
</view>
</view>
</view>
</block>
<block v-if="type=='handle'"> <block v-if="type=='handle'">
<view class="ticket-info"> <view class="ticket-info">
<view class="form-item" v-if="ticketDetail.state_&&ticketDetail.state_.key==='opl_close'"> <view class="form-item" v-if="ticketDetail.state_&&ticketDetail.state_.key==='opl_close'">
@ -351,7 +376,7 @@
<view class="form-item" v-if="ticketDetail.state_&&ticketDetail.state_.key==='opl_close'"> <view class="form-item" v-if="ticketDetail.state_&&ticketDetail.state_.key==='opl_close'">
<uni-data-select v-model="form.close_dos" :localdata="dosOption" label="关闭处理"></uni-data-select> <uni-data-select v-model="form.close_dos" :localdata="dosOption" label="关闭处理"></uni-data-select>
</view> </view>
<view class="form-item" style="height: 300rpx;"> <view class="form-item" style="height: 300rpx;" v-if="oplDetail.ticket_.act_state!==2">
<view class="form-left-text"> <view class="form-left-text">
<text class="star">*</text> <text class="star">*</text>
<text>审批意见</text> <text>审批意见</text>
@ -359,14 +384,18 @@
<textarea class="apply-reason-text" v-model="form.suggestion" maxlength="250" placeholder="请输入" /> <textarea class="apply-reason-text" v-model="form.suggestion" maxlength="250" placeholder="请输入" />
</view> </view>
<view class="btn" style="display: flex;justify-content: space-between;margin-top: 20rpx;"> <view class="btn" style="display: flex;justify-content: space-between;margin-top: 20rpx;">
<view class="left-content"> <view class="left-content" v-if="oplDetail.ticket_.act_state!==2">
<button class="mini-btn" size="mini" type="primary" @click="addNode">加签</button> <button class="mini-btn" size="mini" type="primary" @click="addNode">加签</button>
<button class="mini-btn" size="mini" <button class="mini-btn" size="mini"
v-if="ticketDetail.state_&&ticketDetail.state_.enable_deliver" type="primary" plain v-if="ticketDetail.state_&&ticketDetail.state_.enable_deliver" type="primary" plain
@click="deliverNode">转交 @click="deliverNode">转交
</button> </button>
</view> </view>
<view class="left-content" v-else>
<button class="mini-btn" size="mini" type="primary" @click="oplChuLi()">前往编辑</button>
</view>
<view class="right-time"> <view class="right-time">
<button v-for="item in operationBtn" :key="item.id" class="mini-btn" size="mini" <button v-for="item in operationBtn" :key="item.id" class="mini-btn" size="mini"
:type="item.attribute_type===2?'warn':'primary'" @click="operationSubmit(item.id)" :type="item.attribute_type===2?'warn':'primary'" @click="operationSubmit(item.id)"
style="margin-left:8upx"> style="margin-left:8upx">
@ -498,6 +527,14 @@
40: "进行中", 40: "进行中",
50: "已完成", 50: "已完成",
}, },
act_states: {
0: "草稿中",
1: "进行中",
2: "被退回",
3: "被撤回",
4: "已完成",
5: "已关闭",
},
noteOption: [{ noteOption: [{
value: 10, value: 10,
text: '作业正常结束' text: '作业正常结束'
@ -527,14 +564,19 @@
} }
}, },
onLoad(params) { onLoad(params) {
debugger; // debugger;
console.log(params) // console.log(params)
that = this; that = this;
that.ticketId = params.ticketId; that.ticketId = params.ticketId;
that.projectId = params.projectId; that.projectId = params.projectId;
that.cateType = params.cateType; that.cateType = params.cateType;
that.type = params.type; that.type = params.type;
}, },
mounted() {
this.$u.api.getTicketLog(this.ticketId).then((res) => {
this.tLog = res;
});
},
onShow() { onShow() {
if (this.cateType === 'visit') { if (this.cateType === 'visit') {
this.getVisit(); this.getVisit();
@ -545,6 +587,7 @@
} }
this.getticketItem(); this.getticketItem();
this.getBtns(); this.getBtns();
}, },
methods: { methods: {
closeDialog() { closeDialog() {
@ -552,10 +595,11 @@
}, },
// //
logView() { logView() {
this.$u.api.getTicketLog(this.ticketId).then((res) => { this.logDialog = true;
this.logDialog = true; // this.$u.api.getTicketLog(this.ticketId).then((res) => {
this.tLog = res; // this.logDialog = true;
}); // this.tLog = res;
// });
}, },
// //
getticketItem() { getticketItem() {
@ -565,9 +609,9 @@
}, },
//访 //访
getVisit() { getVisit() {
debugger; // debugger;
this.$u.api.visitItem(this.projectId).then(res => { this.$u.api.visitItem(this.projectId).then(res => {
debugger; // debugger;
this.visitDetail = res; this.visitDetail = res;
}) })
}, },
@ -698,7 +742,6 @@
params.ticket_data.close_note = this.form.close_note; params.ticket_data.close_note = this.form.close_note;
params.ticket_data.close_dos = this.form.close_dos; params.ticket_data.close_dos = this.form.close_dos;
} }
debugger;
uni.showLoading({ uni.showLoading({
mask: true, mask: true,
title: '正在提交...' title: '正在提交...'
@ -731,7 +774,20 @@
uni.navigateTo({ uni.navigateTo({
url: '/pages/workSpace/rpj/rpjDetail?rpjId=' + that.projectId url: '/pages/workSpace/rpj/rpjDetail?rpjId=' + that.projectId
}) })
} },
oplChuLi(){
debugger;
let item = this.oplDetail;
let params=null,oplCateCode = null;
let transition = this.operationBtn[0].id;
oplCateCode = item.cate_code;
console.log(transition)
params = `?oplId=${item.id}&oplcateId=${item.cate}&operationId=${item.operation}&type=edit&transition=${transition}`;
let url = '/pages/workSpace/opls/' + oplCateCode + params
uni.navigateTo({
url: url
})
},
} }
} }

View File

@ -42,7 +42,8 @@
<view class="itemCenter"> <view class="itemCenter">
<view class="info-details" v-if="item.ticket_data.name">工单名称{{item.ticket_data.name}}</view> <view class="info-details" v-if="item.ticket_data.name">工单名称{{item.ticket_data.name}}</view>
<view class="info-details">所属工作流{{item.workflow_.name}}</view> <view class="info-details">所属工作流{{item.workflow_.name}}</view>
<view class="info-details">工单状态{{item.state_.name}}</view> <view class="info-details">工单节点{{item.state_.name}}</view>
<view class="info-details">工单状态{{act_states[item.act_state]}}</view>
<view class="info-details">提交时间{{item.create_time}} </view> <view class="info-details">提交时间{{item.create_time}} </view>
<view class="info-details">更新时间{{item.update_time}} </view> <view class="info-details">更新时间{{item.update_time}} </view>
<!-- <view class="info-details">可处理人{{item.update_time}} </view> --> <!-- <view class="info-details">可处理人{{item.update_time}} </view> -->
@ -57,6 +58,12 @@
<image src="../../static/my/my_apply/blue-time.png" mode=""></image> <image src="../../static/my/my_apply/blue-time.png" mode=""></image>
处理 处理
</view> </view>
<view class="shenhezhong bottom-btn" @click="ticketHandle(item,'handle')"
v-if=" item.act_state===2&&item.create_by==vuex_user.id">
<image src="../../static/my/my_apply/blue-time.png" mode=""></image>
处理
</view>
<view class="shenhejieshu bottom-btn" @click="ticketHandle(item,'show')"> <view class="shenhejieshu bottom-btn" @click="ticketHandle(item,'show')">
<image src="../../static/my/my_apply/tongguo.png" mode=""></image> <image src="../../static/my/my_apply/tongguo.png" mode=""></image>
查看 查看
@ -165,6 +172,14 @@
eventCount: 0, eventCount: 0,
ticketCount: 0, ticketCount: 0,
copyCount:0, copyCount:0,
act_states: {
0: "草稿中",
1: "进行中",
2: "被退回",
3: "被撤回",
4: "已完成",
5: "已关闭",
},
// 2022218 // 2022218
mytopimg: require("@/static/home/bgimg-top.jpg"), mytopimg: require("@/static/home/bgimg-top.jpg"),
} }
@ -176,8 +191,6 @@
// #endif // #endif
}, },
onShow() { onShow() {
// debugger;
// console.log(this.vuex_perm)
if(this.vuex_user.type==='visitor'||this.vuex_user.type==='driver'){ if(this.vuex_user.type==='visitor'||this.vuex_user.type==='driver'){
this.limitedVisit = true; this.limitedVisit = true;
}else{ }else{
@ -244,7 +257,6 @@
}) })
}, },
goIntoTargetPage(type) { goIntoTargetPage(type) {
// debugger;
if(this.limitedVisit==true){ if(this.limitedVisit==true){
}else{ }else{
let params = `?type=${type}`; let params = `?type=${type}`;

View File

@ -29,7 +29,8 @@
</view> </view>
<view class="center-info"> <view class="center-info">
<view class="info-details">所属工作流{{val.workflow_.name}}</view> <view class="info-details">所属工作流{{val.workflow_.name}}</view>
<view class="info-details">工单状态{{val.state_.name}}</view> <view class="info-details">工单节点{{val.state_.name}}</view>
<view class="info-details">工单状态<text :style="{color:val.act_state===2 ? 'red' : ''}">{{act_states[val.act_state]}}</text></view>
<view class="info-details" v-if="val.participant_&&val.participant_.length>0">可处理人 <view class="info-details" v-if="val.participant_&&val.participant_.length>0">可处理人
<text v-for="(item,index) in val.participant_">{{item.name}} <text v-if="index!==val.participant_.length-1"></text></text> <text v-for="(item,index) in val.participant_">{{item.name}} <text v-if="index!==val.participant_.length-1"></text></text>
</view> </view>
@ -39,7 +40,7 @@
<view class="bottom-btns"> <view class="bottom-btns">
<block v-if="ticketTypye === 'duty'"> <block v-if="ticketTypye === 'duty'">
<view class="shenhezhong bottom-btn" @click="ticketHandle(val,'handle')" <view class="shenhezhong bottom-btn" @click="ticketHandle(val,'handle')"
v-if="(val.act_state===1||val.act_state===3)&&val.state_.type===0"> v-if="(val.act_state===1&&val.state_.type===0)||(val.act_state===3&&val.state_.type===0)||val.act_state===2">
<image src="../../../static/my/my_apply/blue-time.png" mode=""></image> <image src="../../../static/my/my_apply/blue-time.png" mode=""></image>
处理 处理
</view> </view>
@ -89,6 +90,14 @@
ticketTypye:'duty', ticketTypye:'duty',
totalNum: 0, totalNum: 0,
ticketList: [], ticketList: [],
act_states: {
0: "草稿中",
1: "进行中",
2: "被退回",
3: "被撤回",
4: "已完成",
5: "已关闭",
},
} }
}, },
onLoad(params) { onLoad(params) {

View File

@ -86,42 +86,72 @@
</view> </view>
<view class="wrap-view wrap-top"> <view class="wrap-view wrap-top">
<view class="item title"> <text class="blueLine"></text>作业人员</view> <view class="item title"> <text class="blueLine"></text>作业人员</view>
<view class="visitorsWrap"> <view class="workersWrap">
<view class="visitorsItem itemTitle"> <view class="workersItem itemTitle">
<text class="visitorCell">姓名</text> <text class="workerCell">姓名</text>
<text class="visitorCell">职责</text> <text class="workerCell">职责</text>
<text class="visitorCell">证书</text> <text class="workerCell">证书</text>
<text class="visitorCell">操作</text> <text class="workerCell">操作</text>
</view> </view>
<view class="visitorsItem" v-for="item in workerList" :key="item.id"> <view class="workersItem" v-for="item in workerList" :key="item.id">
<text class="visitorCell" @click="viewWorker(item)" style="color:blue">{{item.worker_name}}</text> <text class="workerCell" @click="viewWorker(item)" style="color:blue">{{item.worker_name}}</text>
<text class="visitorCell">{{item.duty}}</text> <text class="workerCell">{{item.duty}}</text>
<text class="visitorCell">{{item.certificates.length}}</text> <!-- <text class="workerCell">{{item.certificates.length}}</text> -->
<view class="visitorCell"> <view class="workerCell">
<!-- <text class="bindBtn" @click="bindBtl(item,10)" v-if="item.worker_.blt_===null||item.worker_.blt_===undefined">绑卡</text> <view class="certificate" @click="preView(cert.file)" style="color:blue" v-for="cert in item.certificates_" :key="cert.id">{{cert.number}}</view>
<text class="bindBtn" @click="bindBtl(item,20)" v-else>解绑</text> --> </view>
<view class="workerCell">
<text class="bindBtn" @click="bindBtl(item,10)" v-if="item.worker_.blt_===null||item.worker_.blt_===undefined">绑卡</text>
<text class="bindBtn" @click="bindBtl(item,20)" v-else>解绑</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="wrap-view wrap-top"> <view class="wrap-view wrap-top">
<view class="item title"> <text class="blueLine"></text>气体检测记录</view> <view class="item title"> <text class="blueLine"></text>气体检测记录</view>
<view class="visitorsWrap"> <view class="workersWrap">
<view class="visitorsItem itemTitle"> <view class="workersItem itemTitle">
<text class="visitorCell">检测部位</text> <text class="workerCell">检测部位</text>
<text class="visitorCell">可燃气体(V%LEL)</text> <text class="workerCell">可燃气体(V%LEL)</text>
<text class="visitorCell">检验结论</text> <text class="workerCell">检验结论</text>
</view> </view>
<view class="visitorsItem" v-for="item1 in gasList" :key="item1.id"> <view class="workersItem" v-for="item1 in gasList" :key="item1.id">
<text class="visitorCell">{{item1.check_place}}</text> <text class="workerCell">{{item1.check_place}}</text>
<text class="visitorCell"></text> <text class="workerCell"></text>
<text class="visitorCell"> <text class="workerCell">
<span v-if="item1.is_ok">正常</span> <span v-if="item1.is_ok">正常</span>
<span v-else>异常</span> <span v-else>异常</span>
</text> </text>
</view> </view>
</view> </view>
</view> </view>
<view id="workerWrap" v-if="detailLimited">
<view class="workerContainer">
<view class="workerInfo">
<view class="infoTitle">姓名</view><view>{{workerItem.worker_.name}}</view>
</view>
<view class="workerInfo">
<view class="infoTitle">手机</view><view>{{workerItem.worker_.phone}}</view>
</view>
<view class="workerInfo">
<view class="infoTitle">工作职责</view><view>{{workerItem.duty}}</view>
</view>
<view class="workerInfo">
<view class="infoTitle">证书编号</view>
<view>
<view v-for="item in workerItem.certificates_"
style="color: blue;"
@click="preView(item.file)"
>{{item.number}}</view>
</view>
</view>
</view>
<icon class="closeDetailIcon" type="cancel" size="36" color="#fefefe" @click="closeWorkerDetail"/>
</view>
<view class="preBigImgWrap" v-if="preImg" @click="cancelPreImg">
<image class="bigImg" :src="preImgSrc" mode="widthFix"></image>
</view>
<!-- <img-view ref="imgPreView" :imgSrc="preImgSrc" @cancelPreView="cancelPreView"></img-view> -->
</view> </view>
</template> </template>
@ -148,6 +178,10 @@
"STARTED": "进行中", "STARTED": "进行中",
"SUCCESS": "已完成" "SUCCESS": "已完成"
}, },
preImgSrc:'',
workerItem:{},
preImg:false,
detailLimited:false,
workerList:[], workerList:[],
gasList:[], gasList:[],
act_states: { act_states: {
@ -169,9 +203,12 @@
this.getgasList();// this.getgasList();//
}, },
methods: { methods: {
cancelPreImg(){
this.preImg = false;
},
//operation //operation
getOpl() { getOpl() {
debugger; //debugger;
let that = this; let that = this;
that.$u.api.oplItem(that.oplId).then((res) => { that.$u.api.oplItem(that.oplId).then((res) => {
that.formData ={...res} ; that.formData ={...res} ;
@ -215,13 +252,14 @@
let that = this; let that = this;
let form = {}; let form = {};
form.type = type; form.type = type;
form.code = res.result; form.employee = row.worker_.id;
form.employee = row.visitor_.employee;
if(type==10){ if(type==10){
uni.scanCode({ uni.scanCode({
success: function (res) { success: function (res) {
form.code = res.result;
that.$u.api.thirdBltBind(form).then(res=>{ that.$u.api.thirdBltBind(form).then(res=>{
debugger; //debugger;
console.log(res)
uni.showToast({ uni.showToast({
title: res, title: res,
icon: "none" icon: "none"
@ -231,7 +269,7 @@
}); });
}else{ }else{
that.$u.api.thirdBltBind(form).then(res=>{ that.$u.api.thirdBltBind(form).then(res=>{
debugger; //debugger;
uni.showToast({ uni.showToast({
title: res, title: res,
icon: "none" icon: "none"
@ -246,12 +284,73 @@
}) })
}, },
viewWorker(item) { viewWorker(item) {
uni.showToast({ this.workerItem = item;
title: item.id, this.detailLimited = true;
icon: 'none' },
}) closeWorkerDetail(){
} this.detailLimited = false;
this.workerItem = null;
},
preView(srcImg){
this.preImg = true;
this.preImgSrc = this.vuex_host+srcImg;
console.log(this.preImgSrc)
// this.$refs.imgPreView.open();
},
cancelPreView(){
this.preImgSrc = '';
},
viewcertificate(item){
let vuex_host = this.vuex_host;
uni.showModal({
title: '证书',
content:item.name+'-'+item.number,
confirmText:'下载',
success: function (res) {
if (res.confirm) {
//
console.log('点击下载');
console.log(item.file);
//debugger;
let downloadFileUrl = vuex_host+item.file;
console.log(vuex_host)
console.log(downloadFileUrl)
uni.downloadFile({
url:downloadFileUrl,
success:(data)=> {
console.log(data);
console.log('下载反馈');
if(data.statusCode==200){
uni.saveFile({
tempFilePath: data.tempFilePath,
success: function (ress) {
console.log('保存成功')
console.log(ress)
//debugger;
uni.showToast({
title: '文件已保存',
icon: 'none',
duration:3000,
})
//debugger;
},
fail(err) {
console.log(err);
}
})
}
},
fail(err) {
console.log(err.errMsg)
}
});
} else if (res.cancel) {
console.log('取消');
}
}
});
},
} }
} }
</script> </script>
@ -330,11 +429,11 @@
display: flex; display: flex;
/* justify-content: space-between; */ /* justify-content: space-between; */
} }
.visitorsWrap{ .workersWrap{
} }
.visitorsItem{ .workersItem{
display: flex; display: flex;
font-size: 28upx; font-size: 28upx;
align-items:center; align-items:center;
@ -345,12 +444,13 @@
font-size: 32upx; font-size: 32upx;
line-height: 40upx; line-height: 40upx;
} }
.itemTitle>.visitorCell{ .itemTitle>.workerCell{
color: #212121; color: #212121;
} }
.visitorCell{ .workerCell{
flex: 1; flex: 1;
color: #666666; color: #666666;
overflow: hidden;
text-align: center; text-align: center;
} }
.blueLine{ .blueLine{
@ -383,4 +483,63 @@
font-size: 25upx; font-size: 25upx;
text-align: center; text-align: center;
} }
.certificate{
word-break:keep-all;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
#workerWrap{
height: 100%;
width: 100%;
position: fixed;
top: 0;
left: 0;
background: rgba(0,0,0,.6);
}
.workerContainer{
position: relative;
width: 90%;
left: 5%;
background: #ffffff;
padding: 40upx;
top: 50%;
transform: translateY(-50%);
max-height: 80%;
overflow-y: scroll;
border-radius: 20upx;
}
.workerInfo{
display: flex;
margin: 20upx 0;
}
.infoTitle{
width: 170upx;
}
.closeDetailIcon{
position: absolute;
bottom: 5%;
left: 50%;
transform: translateX(-50%);
}
.preBigImgWrap{
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 100;
display: block;
background-color: rgba(0, 0, 0, 0.8);
}
.bigImg{
min-width: 90%;
max-width: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50% ,-50%);
}
</style> </style>

View File

@ -103,7 +103,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -127,7 +126,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -150,7 +148,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -197,6 +196,7 @@
dept_do_name:'', dept_do_name:'',
charger_name:'', charger_name:'',
monitor_name:'', monitor_name:'',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -214,6 +214,9 @@
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
this.getOperation(); this.getOperation();
} }
if(params.transition){
this.transition = params.transition;
}
}, },
onShow() { onShow() {
@ -434,7 +437,6 @@
// let imgId = item.response.id?item.response.id:item.id; // let imgId = item.response.id?item.response.id:item.id;
// that.formData.create_imgs.push(imgId) // that.formData.create_imgs.push(imgId)
}) })
if (that.oplId !== null) { if (that.oplId !== null) {
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => { that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
uni.hideLoading(); uni.hideLoading();
@ -455,6 +457,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>

View File

@ -103,7 +103,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -127,7 +126,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -148,7 +146,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -206,6 +205,7 @@
dept_do_name:'请选择作业部门', dept_do_name:'请选择作业部门',
charger_name:'请选择作业负责人', charger_name:'请选择作业负责人',
monitor_name:'请选择作业监护人', monitor_name:'请选择作业监护人',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -225,7 +225,9 @@
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
this.getOperation(); this.getOperation();
} }
if(params.transition){
this.transition = params.transition;
}
}, },
onShow() { onShow() {
this.getdept(); this.getdept();
@ -457,6 +459,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>

View File

@ -114,7 +114,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -138,7 +137,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -159,7 +157,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -218,6 +217,7 @@
dept_do_name:'', dept_do_name:'',
charger_name:'', charger_name:'',
monitor_name:'', monitor_name:'',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -237,7 +237,9 @@
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
this.getOperation(); this.getOperation();
} }
if(params.transition){
this.transition = params.transition;
}
}, },
onShow() { onShow() {
this.getdept(); this.getdept();
@ -469,6 +471,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>

View File

@ -113,7 +113,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -137,7 +136,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -158,7 +156,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -220,6 +219,7 @@
dept_do_name:'', dept_do_name:'',
charger_name:'', charger_name:'',
monitor_name:'', monitor_name:'',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -236,6 +236,9 @@
console.log('s', this.vuex_user.belong_dept) console.log('s', this.vuex_user.belong_dept)
this.formData.dept_do = this.vuex_user.belong_dept this.formData.dept_do = this.vuex_user.belong_dept
} }
if(params.transition){
this.transition = params.transition;
}
this.formData.cate = this.oplcateId; this.formData.cate = this.oplcateId;
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
}, },
@ -506,6 +509,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>

View File

@ -112,7 +112,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -136,7 +135,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -157,7 +155,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -216,6 +215,7 @@
dept_do_name:'', dept_do_name:'',
charger_name:'', charger_name:'',
monitor_name:'', monitor_name:'',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -235,7 +235,9 @@
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
this.getOperation(); this.getOperation();
} }
if(params.transition){
this.transition = params.transition;
}
}, },
onShow() { onShow() {
this.getdept(); this.getdept();
@ -467,6 +469,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>

View File

@ -103,7 +103,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -127,7 +126,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -150,7 +148,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -197,6 +196,7 @@
dept_do_name:'', dept_do_name:'',
charger_name:'', charger_name:'',
monitor_name:'', monitor_name:'',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -214,7 +214,9 @@
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
this.getOperation(); this.getOperation();
} }
if(params.transition){
this.transition = params.transition;
}
}, },
onShow() { onShow() {
this.getdept(); this.getdept();
@ -445,6 +447,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>

View File

@ -103,7 +103,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -127,7 +126,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -148,7 +146,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -206,6 +205,7 @@
dept_do_name:'请选择作业部门', dept_do_name:'请选择作业部门',
charger_name:'请选择作业负责人', charger_name:'请选择作业负责人',
monitor_name:'请选择作业监护人', monitor_name:'请选择作业监护人',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -225,7 +225,9 @@
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
this.getOperation(); this.getOperation();
} }
if(params.transition){
this.transition = params.transition;
}
}, },
onShow() { onShow() {
this.getdept(); this.getdept();
@ -457,6 +459,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>

View File

@ -113,7 +113,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -137,7 +136,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -158,7 +156,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -212,6 +211,7 @@
dept_do_name:'', dept_do_name:'',
charger_name:'', charger_name:'',
monitor_name:'', monitor_name:'',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -228,6 +228,9 @@
console.log('s', this.vuex_user.belong_dept) console.log('s', this.vuex_user.belong_dept)
this.formData.dept_do = this.vuex_user.belong_dept this.formData.dept_do = this.vuex_user.belong_dept
} }
if(params.transition){
this.transition = params.transition;
}
this.formData.cate = this.oplcateId; this.formData.cate = this.oplcateId;
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
}, },
@ -499,6 +502,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>

View File

@ -112,7 +112,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -136,7 +135,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -157,7 +155,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -215,6 +214,7 @@
dept_do_name:'', dept_do_name:'',
charger_name:'', charger_name:'',
monitor_name:'', monitor_name:'',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -231,6 +231,9 @@
console.log('s', this.vuex_user.belong_dept) console.log('s', this.vuex_user.belong_dept)
this.formData.dept_do = this.vuex_user.belong_dept this.formData.dept_do = this.vuex_user.belong_dept
} }
if(params.transition){
this.transition = params.transition;
}
this.formData.cate = this.oplcateId; this.formData.cate = this.oplcateId;
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
}, },
@ -503,6 +506,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>

View File

@ -205,7 +205,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他风险</text> <text class="form-left-text">其他风险</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -229,7 +228,6 @@
</view> </view>
<view class="form-item border-bottom"> <view class="form-item border-bottom">
<view class="form-left"> <view class="form-left">
<text class="star">*</text>
<text class="form-left-text">其他应急处置</text> <text class="form-left-text">其他应急处置</text>
</view> </view>
<view class="form-right"> <view class="form-right">
@ -250,7 +248,8 @@
</view> </view>
<view class="btn"> <view class="btn">
<button type="primary" class="save-btn" @click="saveSubmit">下一步</button> <button v-if="formData.ticket_.act_state===2" type="primary" class="save-btn" @click="saveChange">提交</button>
<button v-else type="primary" class="save-btn" @click="saveSubmit">下一步</button>
</view> </view>
</view> </view>
</template> </template>
@ -322,6 +321,7 @@
dept_do_name:'', dept_do_name:'',
charger_name:'', charger_name:'',
monitor_name:'', monitor_name:'',
transition:'',//
} }
}, },
onLoad(params) { onLoad(params) {
@ -338,6 +338,9 @@
console.log('s', this.vuex_user.belong_dept) console.log('s', this.vuex_user.belong_dept)
this.formData.dept_do = this.vuex_user.belong_dept this.formData.dept_do = this.vuex_user.belong_dept
} }
if(params.transition){
this.transition = params.transition;
}
this.formData.cate = this.oplcateId; this.formData.cate = this.oplcateId;
this.formData.operation = this.operationId; this.formData.operation = this.operationId;
}, },
@ -616,6 +619,42 @@
} }
}, },
saveChange(){
uni.showLoading({
mask: true,
title: '正在提交...'
})
let that = this;
let params = new Object();
params.ticket_data = {};
params.transition = that.transition;
that.formData.create_imgs = [];
that.fileList.forEach(item=>{
debugger;
if(item.id){
console.log(item.id);
that.formData.create_imgs.push(item.id)
}else{
console.log(item.response.id)
that.formData.create_imgs.push(item.response.id)
}
})
that.$u.api.oplUpdate(that.oplId, that.formData).then(res => {
debugger;
console.log(this.formData.ticket)
console.log(params)
this.$u.api.ticketHandle(this.formData.ticket, params).then(res => {
debugger;
console.log('已处理')
uni.switchTab({
url: '/pages/home/home_'
});
uni.hideLoading()
}).catch(e => {
uni.hideLoading()
})
})
},
} }
} }
</script> </script>