Browse Source

高级设置加字段

xiaowang-12345
是小王呀\24601 12 months ago
parent
commit
5ffc868eae
  1. 1
      src/api/index.js
  2. 8
      src/api/service.js
  3. 84
      src/views/HotlineDetail/index.vue

1
src/api/index.js

@ -22,6 +22,7 @@ const api = {
multiReply:'/governance/icEvent/multiReply',
refund:'/governance/icEvent/reply',
agencyRootDepttree:'/gov/org/customeragency/rootAgencyGridDepttree',
getStreetConfigDetail:'/governance/icEventConfig/getStreetConfigDetail',
}

8
src/api/service.js

@ -17,6 +17,14 @@ export function getServiceListProcess(params) {
params
})
}
// //高级系统配置
export function getStreetConfigDetail(params) {
return request({
url: api.getStreetConfigDetail,
method: 'get',
params
})
}
//已完成列表
export function getServiceListCompleted(params) {
return request({

84
src/views/HotlineDetail/index.vue

@ -269,50 +269,39 @@
<van-field v-if="showNoncompliance" type="textarea" v-model="noncomplianceNotesText"
label="不合规诉求申请说明" placeholder="请输入" rows="2" autosize show-word-limit required />
</div>
<van-field readonly is-link v-model="irregularityname" label="办理真实度" placeholder="请选择" required
<van-field readonly is-link v-model="irregularityname" label="办理真实度" placeholder="请选择" :required="smsFlag"
@click="showreal = true" />
<van-action-sheet v-if="showreal" v-model="showreal" :actions="realList" @click-overlay="showreal=false"
@select="onreal" />
<van-field readonly is-link v-if="operationType === '11'" v-model="solveStateName" label="问题解决情况"
placeholder="请选择" required @click="showSolveState = true" />
<van-field readonly is-link v-if="operationType === '11'" v-model="solveStateName" label="问题解决情况" :required="smsFlag"
placeholder="请选择" @click="showSolveState = true" />
<van-action-sheet v-if="showSolveState" v-model="showSolveState" :actions="solveStateOptions"
@click-overlay="showSolveState=false" @select="onSolveStateChange" />
<van-field v-if="operationType === '11'" readonly is-link v-model="solveEstimated" label="预计解决时间"
<van-field v-if="operationType === '11'" readonly is-link v-model="solveEstimated" label="预计解决时间"
placeholder="请选择" @click="showSolveEstimated = true" />
<van-datetime-picker v-if="showSolveEstimated" type="datetime" :min-date="minDate" :max-date="maxDate"
@confirm="confirmSolveEstimated" @cancel="cancelSolveEstimated" />
<van-field :required="smsFlag" v-if="operationType=='11'" v-model="returnVisitor" label="回访人" placeholder="请输入" />
<van-field required v-if="operationType=='11'" v-model="returnVisitor" label="回访人" placeholder="请输入" />
<van-field required v-if="operationType === '11'" readonly is-link v-model="returnTime" label="回访时间"
<van-field :required="smsFlag" v-if="operationType === '11'" readonly is-link v-model="returnTime" label="回访时间"
placeholder="请选择" @click="showtime = true" />
<van-datetime-picker v-if="showtime" type="datetime" :min-date="minDate" :max-date="maxDate"
@confirm="handleConfirm" @cancel="handleCancel" />
<van-field v-if="operationType=='11'" readonly is-link v-model="loseContactName" label="联系当事人"
placeholder="请选择" required @click="showloseContact = true" />
placeholder="请选择" :required="smsFlag" @click="showloseContact = true" />
<van-action-sheet v-if="showloseContact" v-model="showloseContact" :actions="loseContactList"
@select="onloseContact" @click-overlay="showloseContact = false" />
<van-field v-if="operationType=='11'" readonly is-link v-model="putThroughName" label="未接通电话"
placeholder="请选择" required @click="showputThrough = true" />
placeholder="请选择" :required="smsFlag" @click="showputThrough = true" />
<van-action-sheet v-if="showputThrough" v-model="showputThrough" :actions="putThroughList"
@select="onputThrough" @click-overlay="showputThrough = false" />
<van-field v-if="operationType=='11'" readonly is-link v-model="cooperateName" label="是否配合回访"
placeholder="请选择" required @click="showcooperate = true" />
placeholder="请选择" :required="smsFlag" @click="showcooperate = true" />
<van-action-sheet v-if="showcooperate" v-model="showcooperate" :actions="cooperateList"
@select="oncooperate" @click-overlay="showcooperate = false" />
<van-field v-if="operationType=='11'" readonly is-link v-model="satisfactionName" label="服务都满意度"
placeholder="请选择" required @click="showsatisfaction = true" />
placeholder="请选择" :required="smsFlag" @click="showsatisfaction = true" />
<van-action-sheet v-if="showsatisfaction" v-model="showsatisfaction" :actions="satisfactionList"
@select="onsatisfaction" @click-overlay="showsatisfaction = false" />
<van-field v-if="operationType=='11'" readonly is-link v-model="dissatisfyReasonName" label="不满意原因"
@ -322,7 +311,7 @@
@click-overlay="showdissatisfyReason = false" />
<div class="textarea">
<van-field v-if="operationType=='11'" type="textarea" v-model="visitComments" label="回访意见"
placeholder="请输入内容" rows="2" autosize show-word-limit required />
placeholder="请输入内容" rows="2" autosize show-word-limit :required="smsFlag" />
</div>
</van-cell-group>
<div class="flex flex-x flex-mean" style="margin-top: 10px;">
@ -338,7 +327,7 @@
<script>
import { getUserInfo } from '@/api/user'
import throttle from 'lodash/debounce'
import { icEventList,agencyGridDepttree,process,reply,refund,multiReply } from '@/api/service'
import { getStreetConfigDetail,icEventList,agencyGridDepttree,process,reply,refund,multiReply } from '@/api/service'
import { uploadvariedfile } from '@/api/basic'
import { ImagePreview } from 'vant';
export default {
@ -481,7 +470,8 @@ export default {
dissatisfyReason: '',//
visitComments: '',//访
examine: null,//
examineContent: ''//
examineContent: '',//
smsFlag:"" //
};
},
created() {
@ -491,6 +481,7 @@ export default {
this.icEventId =this.$route.query.icEventId;
this.icEventList()
this.process()
this.getStreetConfigDetail()
},
mounted() {
@ -500,6 +491,18 @@ export default {
},
methods: {
getStreetConfigDetail(){
let parms={
orgId: this.myagencyId
}
getStreetConfigDetail(parms).then(res => {
console.log(res,"配置");
this.smsFlag=!res.data.columnsIgnore
}).catch(err => {
})
},
handelClickDownFile(message) {
if (this.iosAgent()) {
console.log("input 复制方式 " + message);
@ -752,7 +755,6 @@ export default {
this.showPicker=true
},
onSelect(item){
console.log(item);
this.stutasName=item.name
this.operationType=item.value
this.showPicker=false
@ -764,11 +766,14 @@ export default {
this.respondentPhoneRequired = true
}
if (item.value=='11'&&this.tableData.videoNeedFlag=="1") {
console.log("dslkfjsdlkf");
this.required=true
}else{
this.required=false
}
if (item.value=='11'&&!this.smsFlag) {
this.respondentRequired = false
this.respondentPhoneRequired = false
}
this.irregularity = '';
this.irregularityname = '';
this.irregularityName = '';
@ -814,7 +819,6 @@ export default {
},
async onreply(){
console.log(this.fileList.length);
if(this.fileList.length==0&&this.required){
this.$toast.fail("请上传录音")
return
@ -832,42 +836,42 @@ export default {
console.log("sdfklsdjfk");
return
}
if(this.operationType=='9' || this.operationType=='11'){
if(this.operationType=='9' || this.operationType=='11'&&this.smsFlag){
if(this.respondent.trim()==''){
this.$toast.fail("请填写答复人")
return
}
}
if(this.operationType=='9' || this.operationType=='11'){
if(this.operationType=='9' || this.operationType=='11'&&this.smsFlag){
if(this.respondentPhone.trim()==''){
this.$toast.fail("请填写答复电话")
return
}
}
if(this.verified.trim()==''){
if(this.verified.trim()==''&&this.smsFlag){
this.$toast.fail("请选择办理真实度")
console.log("sdfklsdjfk");
return
}
if(this.irregularity=='0'){ //
if(this.irregularity=='0'&&this.smsFlag){ //
if(this.noncomplianceType==''){
this.$toast.fail("请选择不合规诉求类型")
return
}
if(this.noncomplianceNotesText==''){
if(this.noncomplianceNotesText==''&&this.smsFlag){
this.$toast.fail("请填写不合规诉求申请说明")
return
}
}
if(this.returnVisitor.trim()==''&&this.operationType=='11'){
if(this.returnVisitor.trim()==''&&this.operationType=='11'&&this.smsFlag){
this.$toast.fail("请填写回访人")
console.log("sdfklsdjfk");
return
}
if(this.solveState==''&&this.operationType=='11'){
if(this.solveState==''&&this.operationType=='11'&&this.smsFlag){
this.$toast.fail("请选择问题解决情况")
return
}
@ -878,32 +882,32 @@ export default {
// }
if(this.returnTime.trim()==''&&this.operationType=='11'){
if(this.returnTime.trim()==''&&this.operationType=='11'&&this.smsFlag){
this.$toast.fail("请选择回访时间")
console.log("sdfklsdjfk");
return
}
if(this.loseContact.trim()==''&&this.operationType=='11'){
if(this.loseContact.trim()==''&&this.operationType=='11'&&this.smsFlag){
this.$toast.fail("请选择是否联系当事人")
console.log("sdfklsdjfk");
return
}
if(this.putThrough==null&&this.operationType=='11'){
if(this.putThrough==null&&this.operationType=='11'&&this.smsFlag){
this.$toast.fail("请选择是否接通电话")
console.log("sdfklsdjfk");
return
}
if(this.cooperate.trim()==''&&this.operationType=='11'){
if(this.cooperate.trim()==''&&this.operationType=='11'&&this.smsFlag){
this.$toast.fail("请选择是否配合回访")
console.log("sdfklsdjfk");
return
}
if(this.satisfaction.trim()==''&&this.operationType=='11'){
if(this.satisfaction.trim()==''&&this.operationType=='11'&&this.smsFlag){
this.$toast.fail("请选择服务满意度")
console.log("sdfklsdjfk");
return
}
if(this.visitComments.trim()==''&&this.operationType=='11'){
if(this.visitComments.trim()==''&&this.operationType=='11'&&this.smsFlag){
this.$toast.fail("请填写回访意见")
console.log("sdfklsdjfk");
return

Loading…
Cancel
Save