|
@@ -56,17 +56,17 @@
|
|
|
<view class="footer">
|
|
|
<!-- receiveFlag 接收人/责任人标记 只有处理人可以整改-->
|
|
|
<!-- 目前版本不做 -->
|
|
|
- <!-- <u-button @click="handleSubmit(0)" v-if="infoData.receiveFlag && infoData.receiveFlag == 1 && infoData.statusDictValue=='待整改'" type="primary">整改完成</u-button> -->
|
|
|
+ <!-- <u-button @click="handleSubmit('SOLVE')" v-if="infoData.receiveFlag && infoData.receiveFlag == 1 && infoData.statusDictValue=='待整改'" type="primary">整改完成</u-button> -->
|
|
|
<!-- putFlag 创建人标记 只有创建人可以审核-->
|
|
|
<view v-if="infoData.putFlag && infoData.putFlag == 1 && infoData.statusDictValue=='待审核'" class="check-pending">
|
|
|
- <u-button @click="handleSubmit(1)" class="act-btn" type="error">整改不通过</u-button>
|
|
|
- <u-button @click="handleSubmit(2)" class="act-btn" type="success">整改通过</u-button>
|
|
|
+ <u-button @click="handleSubmit('AUDIT_NO')" class="act-btn" type="error">整改不通过</u-button>
|
|
|
+ <u-button @click="handleSubmit('AUDIT_YES')" class="act-btn" type="success">整改通过</u-button>
|
|
|
</view>
|
|
|
<!-- copyFlag 抄送标识 只有抄送人可以评论-->
|
|
|
<view v-if="infoData.copyFlag && infoData.copyFlag==1" class="comment-input">
|
|
|
<view class="input-cont">
|
|
|
- <textarea auto-height :class="[isFocus?'active':'']" v-model="comment" @focus="sendComment" placeholder="请输入评论..."/>
|
|
|
- <u-button @click="handleSubmit(3)" class="input-btn" v-if="isFocus" size="mini" type="warning">发送</u-button>
|
|
|
+ <textarea auto-height :class="[isFocus?'active':'']" v-model="comment" @focus="isFocus = true" @blur="isFocus=false" placeholder="请输入评论..."/>
|
|
|
+ <u-button @click="handleSubmit('COMMENTS')" :disabled="comment" class="input-btn" v-if="isFocus" size="mini" type="warning">发送</u-button>
|
|
|
</view>
|
|
|
<view>整改状态:<text :class="clsStatus(infoData.statusDictValue)">{{infoData.statusDictValue}}</text></view>
|
|
|
</view>
|
|
@@ -85,12 +85,10 @@
|
|
|
infoData:{}, // 详情数据
|
|
|
numList: [],
|
|
|
comment: '', // 评论
|
|
|
- isFocus: false, // 评论键盘是否弹起
|
|
|
- handleType: ['SOLVE','AUDIT_NO','AUDIT_YES','COMMENTS'] //SOLVE("SOLVE", "整改问题"),AUDIT_YES("AUDIT_YES", "审核通过"),AUDIT_NO("AUDIT_NO", "审核不通过"),COMMENTS("COMMENTS", "发表评论");
|
|
|
+ isFocus: false // 评论键盘是否弹起
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- console.log(option.id)
|
|
|
this.backlogId = option.id
|
|
|
this.getData(option.id)
|
|
|
this.getRecordData(option.id)
|
|
@@ -99,8 +97,9 @@
|
|
|
// 获取详情数据
|
|
|
getData (id) {
|
|
|
getBackLogDetail({id:id}).then(res=>{
|
|
|
+ console.log(res,'rrrrrrrr')
|
|
|
if(res.status==200){
|
|
|
- this.infoData = res.data
|
|
|
+ this.infoData = res.data
|
|
|
} else {
|
|
|
this.toashMsg(res.message)
|
|
|
this.infoData = {}
|
|
@@ -125,24 +124,27 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- sendComment (v) {
|
|
|
- console.log(v,'vvvvvvvvvv')
|
|
|
- this.isFocus = true
|
|
|
- },
|
|
|
- // 提交处理
|
|
|
- handleSubmit(index) {
|
|
|
+ // 提交处理
|
|
|
+ //type: SOLVE("SOLVE", "整改问题"),AUDIT_YES("AUDIT_YES", "审核通过"),AUDIT_NO("AUDIT_NO", "审核不通过"),COMMENTS("COMMENTS", "发表评论");
|
|
|
+ handleSubmit(type) {
|
|
|
const params = {
|
|
|
backlogId: this.backlogId,
|
|
|
handleDesc: this.comment,
|
|
|
- handleType: this.handleType[index]
|
|
|
+ handleType: type
|
|
|
}
|
|
|
handleBackLog(params).then(res=>{
|
|
|
+ this.toashMsg(res.message)
|
|
|
if(res.status==200){
|
|
|
this.comment = ''
|
|
|
this.isFocus = false
|
|
|
- this.getRecordData(this.backlogId)
|
|
|
+ if (type=='COMMENTS') {
|
|
|
+ this.getRecordData(this.backlogId)
|
|
|
+ } else {
|
|
|
+ setTimeout(()=>{
|
|
|
+ uni.navigateBack()
|
|
|
+ },300)
|
|
|
+ }
|
|
|
}
|
|
|
- this.toashMsg(res.message)
|
|
|
})
|
|
|
},
|
|
|
// 状态颜色处理
|
|
@@ -245,7 +247,7 @@
|
|
|
}
|
|
|
.active{
|
|
|
background-color: #fff;
|
|
|
- margin: 20upx;
|
|
|
+ margin: 20upx 20upx 20upx 0;
|
|
|
}
|
|
|
.input-btn{
|
|
|
padding: 20upx;
|