|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <cu-custom bgColor="bg-blue" :isBack="true" v-if="title == '问题诉求情况'">
|
|
|
+ <cu-custom bgColor="bg-blue" :isBack="true" >
|
|
|
<block slot="backText">返回</block>
|
|
|
- <block slot="content">问题诉求情况</block>
|
|
|
+ <block slot="content">{{title}}</block>
|
|
|
</cu-custom>
|
|
|
|
|
|
<form @submit="formSubmit" class="cu-list menu">
|
|
@@ -141,8 +141,23 @@
|
|
|
</radio-group>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 挂钩干部或大走访办公室 -->
|
|
|
- <view class="cu-form-group margin-top" v-if="roleIds=='1910175386924417025'||roleIds=='1910141956174053377'" >
|
|
|
+ <!-- 交办部门 -->
|
|
|
+ <view class="cu-form-group margin-top" v-if="roleIds=='1910175949166673921'" >
|
|
|
+ <view class="title">
|
|
|
+ 问题处理
|
|
|
+ </view>
|
|
|
+ <radio-group @change="(e) => radioChange(e, index2)" class="radiog">
|
|
|
+ <label class="uni-list-cell uni-list-cell-pd" v-for="(item3, index3) in dels3" :key="item3">
|
|
|
+ <view>
|
|
|
+ <radio :value="item3" :checked="index3 === item.current" :disabled="index3 != item.current&&!item.cansubmit"/>
|
|
|
+ </view>
|
|
|
+ <view style="padding-left: 15rpx;">{{item3}}</view>
|
|
|
+ </label>
|
|
|
+ </radio-group>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 挂钩干部或大走访办公室或交办部门 -->
|
|
|
+ <view class="cu-form-group margin-top" v-if="roleIds=='1910175386924417025'||roleIds=='1910141956174053377'||roleIds=='1910175949166673921'" >
|
|
|
<view class="title">
|
|
|
预计办结时间
|
|
|
</view>
|
|
@@ -172,6 +187,13 @@
|
|
|
></zqs-select>
|
|
|
</view>
|
|
|
|
|
|
+ <view v-if="item.showjbdw2" class="cu-form-group margin-top" >
|
|
|
+ <view class="title">
|
|
|
+ 交办单位
|
|
|
+ </view>
|
|
|
+ <view class="input2" >{{item.des2||'请选择'}}</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
<view class="cu-form-group margin-top" v-if="(roleIds=='1910175386924417025'||roleIds=='1910141956174053377')&&showjbdw">
|
|
|
<view class="title">
|
|
@@ -180,7 +202,7 @@
|
|
|
<textarea v-model="item.delyj" placeholder="请填写交办要求" ></textarea>
|
|
|
</view>
|
|
|
|
|
|
- <view class="cu-form-group margin-top" v-if="(roleIds=='1910175386924417025'||roleIds=='1910141956174053377')&&!showjbdw">
|
|
|
+ <view class="cu-form-group margin-top" v-if="(roleIds=='1910175386924417025'||roleIds=='1910141956174053377'||roleIds=='1910175949166673921')&&!showjbdw">
|
|
|
<view class="title">
|
|
|
处理建议
|
|
|
</view>
|
|
@@ -203,7 +225,7 @@
|
|
|
</view> -->
|
|
|
|
|
|
|
|
|
- <view class="cu-form-group margin-top" style="border-bottom: 3px solid #eee;" v-if="roleIds=='1910175386924417025'||roleIds=='1910141956174053377'">
|
|
|
+ <view class="cu-form-group margin-top" style="border-bottom: 3px solid #eee;" v-if="roleIds=='1910175386924417025'||roleIds=='1910141956174053377'||roleIds=='1910175949166673921'">
|
|
|
<uni-file-picker style="margin-bottom: 10px;" limit="3" ref="picFile" v-model="item.fj"
|
|
|
fileMediatype="all" mode="grid" title="附件上传" :auto-upload="autoUpload" @select="select"
|
|
|
@progress="progress" @success="success" @fail="fail" @delete="deleteFile"
|
|
@@ -212,7 +234,7 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 流程展示 -->
|
|
|
- <view v-for="(record, index4) in item.oplist" :key="index4" class="record-item" @click="viewDetails(record)" style="border-bottom: 6px solid #eee;">
|
|
|
+ <view v-for="(record, index4) in item.oplist" :key="index4" class="record-item" @click="viewDetails(record)" style="border-bottom: 2px solid #eee;">
|
|
|
|
|
|
<view style="display: flex; flex-direction:row;align-items: center; ">
|
|
|
<view v-if="item.oplist.length!=1" :class="index4 === item.oplist.length - 1 ? 'record-p2' : 'record-p1'"></view>
|
|
@@ -232,7 +254,48 @@
|
|
|
</view>
|
|
|
|
|
|
|
|
|
+ <view v-if="canpj">
|
|
|
+
|
|
|
+ <view class="cu-form-group margin-top" >
|
|
|
+ <view class="title" style="color: #3c9cff;">
|
|
|
+ 企业主要负责人知晓情况:
|
|
|
+ </view>
|
|
|
+ <radio-group @change="(e) => radioChange2(e, index2,1)" class="radiog radiog2">
|
|
|
+ <label class="uni-list-cell uni-list-cell-pd" v-for="(item3, index3) in dels4" :key="item3">
|
|
|
+ <view>
|
|
|
+ <radio :value="item3" :checked="index3 === item.current" />
|
|
|
+ </view>
|
|
|
+ <view style="padding-left: 15rpx;place-self: center;padding-right: 18rpx;">{{item3}}</view>
|
|
|
+ </label>
|
|
|
+ </radio-group>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="cu-form-group margin-top" >
|
|
|
+ <view class="title" style="padding-right: 0;color: #3c9cff;">
|
|
|
+ 满意度评价:
|
|
|
+ </view>
|
|
|
+ <radio-group @change="(e) => radioChange2(e, index2,2)" class="radiog radiog2">
|
|
|
+ <label class="uni-list-cell uni-list-cell-pd" v-for="(item3, index3) in dels5" :key="item3">
|
|
|
+ <view>
|
|
|
+ <radio :value="item3" :checked="index3 === item.current" />
|
|
|
+ </view>
|
|
|
+ <view style="padding-left: 5rpx;place-self: center;padding-right: 9rpx;">{{item3}}</view>
|
|
|
+ </label>
|
|
|
+ </radio-group>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ <view class="cu-form-group margin-top" v-if="item.showpjedit">
|
|
|
+ <view class="title">
|
|
|
+ 说明
|
|
|
+ </view>
|
|
|
+ <textarea v-model="item.delyj" placeholder="请填写说明" ></textarea>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
+ <view style="border-bottom: 8px solid #eee;">
|
|
|
+
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
@@ -247,6 +310,10 @@
|
|
|
<button v-if="roleIds=='38a14f1f42ed424eab4cb5d489596b0d'" @click="save" class="bt1 block margin-tb-sm lg">暂存</button>
|
|
|
<button form-type="submit" class="bt1 cu-btn block bg-blue margin-tb-sm lg">提交</button>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view class="flexC" v-if="canpj">
|
|
|
+ <button @click="pjsave" class="bt1 cu-btn block bg-blue margin-tb-sm lg">立即评价</button>
|
|
|
+ </view>
|
|
|
<view style="height: 40rpx;"></view>
|
|
|
</form>
|
|
|
</view>
|
|
@@ -266,6 +333,7 @@
|
|
|
return {
|
|
|
title: '问题诉求情况',
|
|
|
cansubmit: false,
|
|
|
+ canpj:false,
|
|
|
roleIds:'',
|
|
|
uid:'',
|
|
|
inputForm: {
|
|
@@ -307,6 +375,9 @@
|
|
|
questionList:[{qname:"",qtype:"",qTypeindex:"",gaps:"",des:"",t1:"",t1s:""}],
|
|
|
dels:["办结","反馈大走访活动办","正在办理","难以化解","持续跟踪","提请会办"],
|
|
|
dels2:["办结","交办"],
|
|
|
+ dels3:["办结","正在办理","难以化解","持续跟踪","提请会办"],
|
|
|
+ dels4:["是","否"],
|
|
|
+ dels5:["非常满意","满意","不满意"],
|
|
|
index:0,
|
|
|
ischeck: false,
|
|
|
|
|
@@ -354,9 +425,9 @@
|
|
|
},
|
|
|
async onLoad(query) {
|
|
|
this.uid= $auth.getUserInfo().id;
|
|
|
+ this.roleIds= $auth.getUserInfo().roleIds;
|
|
|
|
|
|
-
|
|
|
- if(query.ischeck!=undefined&&query.ischeck=='1'){
|
|
|
+ if(query.ischeck!=undefined){
|
|
|
//查看
|
|
|
this.ischeck=true;
|
|
|
let data2 = await loginService.getdzfQuestionqueryById({id:query.id})
|
|
@@ -381,6 +452,7 @@
|
|
|
for (let i = 0; i < data2.data.dzfQuestionDetilDTOList.length; i++) {
|
|
|
let opsize=data2.data.dzfQuestionDetilDTOList[i].oplist.length;
|
|
|
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].showpjedit=false
|
|
|
for (let j = 0; j < opsize; j++) {
|
|
|
|
|
|
//当前登录人
|
|
@@ -391,16 +463,43 @@
|
|
|
}else if(data2.data.dzfQuestionDetilDTOList[i].oplist[j].opType=='4'){
|
|
|
data2.data.dzfQuestionDetilDTOList[i].current=1
|
|
|
}else if(data2.data.dzfQuestionDetilDTOList[i].oplist[j].opType=='5'){
|
|
|
- data2.data.dzfQuestionDetilDTOList[i].current=2
|
|
|
- }else if(data2.data.dzfQuestionDetilDTOList[i].oplist[j].opType=='6'){
|
|
|
- data2.data.dzfQuestionDetilDTOList[i].current=3
|
|
|
+ //挂钩干部
|
|
|
+ if(this.roleIds=='1910141956174053377'){
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].current=2
|
|
|
+ //交办部门
|
|
|
+ }else{
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].current=1
|
|
|
+ }
|
|
|
+ }else if(data2.data.dzfQuestionDetilDTOList[i].oplist[j].opType=='6'){
|
|
|
+ //挂钩干部
|
|
|
+ if(this.roleIds=='1910141956174053377'){
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].current=3
|
|
|
+ //交办部门
|
|
|
+ }else{
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].current=2
|
|
|
+ }
|
|
|
}else if(data2.data.dzfQuestionDetilDTOList[i].oplist[j].opType=='7'){
|
|
|
- data2.data.dzfQuestionDetilDTOList[i].current=4
|
|
|
+ //挂钩干部
|
|
|
+ if(this.roleIds=='1910141956174053377'){
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].current=4
|
|
|
+ //交办部门
|
|
|
+ }else{
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].current=3
|
|
|
+ }
|
|
|
}else if(data2.data.dzfQuestionDetilDTOList[i].oplist[j].opType=='8'){
|
|
|
- data2.data.dzfQuestionDetilDTOList[i].current=5
|
|
|
+ //挂钩干部
|
|
|
+ if(this.roleIds=='1910141956174053377'){
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].current=5
|
|
|
+ //交办部门
|
|
|
+ }else{
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].current=4
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //大走访办公室角色
|
|
|
+ else if(data2.data.dzfQuestionDetilDTOList[i].oplist[j].opType=='9'){
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].current=1
|
|
|
+ data2.data.dzfQuestionDetilDTOList[i].showjbdw2=true;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
//处理建议
|
|
|
data2.data.dzfQuestionDetilDTOList[i].delyj=data2.data.dzfQuestionDetilDTOList[i].oplist[j].des6
|
|
|
|
|
@@ -434,8 +533,10 @@
|
|
|
this.questionList=data2.data.dzfQuestionDetilDTOList;
|
|
|
|
|
|
|
|
|
- this.roleIds= $auth.getUserInfo().roleIds;
|
|
|
-
|
|
|
+ if(query.ischeck=='2'){
|
|
|
+ this.title="诉求办理评价";
|
|
|
+ this.canpj=true;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}else{
|
|
@@ -489,8 +590,8 @@
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- //其他选择
|
|
|
- }else{
|
|
|
+ //挂钩干部
|
|
|
+ }else if(this.roleIds=='1910141956174053377'){
|
|
|
|
|
|
console.log("选择:"+evt.detail.value);
|
|
|
for (let i = 0; i < this.dels.length; i++) {
|
|
@@ -499,11 +600,50 @@
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ //交办部门
|
|
|
+ }else if(this.roleIds=='1910175949166673921'){
|
|
|
+
|
|
|
+ console.log("选择:"+evt.detail.value);
|
|
|
+ for (let i = 0; i < this.dels3.length; i++) {
|
|
|
+ if (this.dels3[i] === evt.detail.value) {
|
|
|
+ this.questionList[index2].current = i;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ radioChange2: function(evt,index2,witch) {
|
|
|
+
|
|
|
+ if(evt.detail.value=='非常满意'||evt.detail.value=='满意'){
|
|
|
+ this.questionList[index2].showpjedit=false;
|
|
|
+ this.questionList[index2].pjyj="";
|
|
|
+ }else if(evt.detail.value=='不满意'){
|
|
|
+ this.questionList[index2].showpjedit=true;
|
|
|
+ }
|
|
|
+ if(witch==1){
|
|
|
+ for (let i = 0; i < this.dels4.length; i++) {
|
|
|
+ if (this.dels4[i] === evt.detail.value) {
|
|
|
+ this.questionList[index2].current1 = i;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ for (let i = 0; i < this.dels5.length; i++) {
|
|
|
+ if (this.dels5[i] === evt.detail.value) {
|
|
|
+ this.questionList[index2].current2 = i;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
addfj(){
|
|
|
|
|
|
},
|
|
@@ -621,6 +761,42 @@
|
|
|
// this.inputForm.dzfQuestionDetilDTOList=this.questionList;
|
|
|
// this.checkinput();
|
|
|
},
|
|
|
+
|
|
|
+ pjsave(){
|
|
|
+ let cansave=true;
|
|
|
+ for (let i = 0; i < this.questionList.length; i++) {
|
|
|
+
|
|
|
+ this.questionList[i].checkUserList="";
|
|
|
+ if (this.questionList[i].current1 ==undefined||this.questionList[i].current2 ==undefined) {
|
|
|
+ cansave=false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ this.inputForm.dzfQuestionDetilDTOList=this.questionList;
|
|
|
+ if(cansave){
|
|
|
+ uni.showLoading()
|
|
|
+ loginService.savepj(this.inputForm).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ uni.hideLoading();
|
|
|
+ uni.showToast({
|
|
|
+ title: "评价成功!",
|
|
|
+ icon: "success"
|
|
|
+ });
|
|
|
+ uni.redirectTo({
|
|
|
+ url: '/pages/question/questionList?w=2'
|
|
|
+ })
|
|
|
+ }).catch((e) => {
|
|
|
+ uni.hideLoading();
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "评价意见还未填写!",
|
|
|
+ icon: "success"
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
formSubmit: function(e) {
|
|
|
//将交办单位的名称带出
|
|
|
for (let i = 0; i < this.questionList.length; i++) {
|
|
@@ -631,7 +807,7 @@
|
|
|
const item = this.pickerData.find((option) => option.value === value);
|
|
|
return item ? item.label : value; // 如果找不到,返回 value
|
|
|
})
|
|
|
- .join(", ");
|
|
|
+ .join(",");
|
|
|
|
|
|
}
|
|
|
this.questionList[i].checkUserList=this.questionList[i].checkUserList.join(",");
|
|
@@ -648,8 +824,7 @@
|
|
|
});
|
|
|
}else{
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
uni.showLoading()
|
|
@@ -661,7 +836,7 @@
|
|
|
title: "提交成功!",
|
|
|
icon: "success"
|
|
|
});
|
|
|
- uni.navigateTo({
|
|
|
+ uni.redirectTo({
|
|
|
url: '/pages/question/questionList'
|
|
|
})
|
|
|
}).catch((e) => {
|
|
@@ -795,6 +970,9 @@
|
|
|
flex:1;
|
|
|
margin: 10rpx;
|
|
|
}
|
|
|
+ .radiog2{
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
.uni-list-cell{
|
|
|
display: flex;
|
|
|
|