Browse Source

Merge branch 'dev_shequzhili' into test

test
dai 3 years ago
parent
commit
0341e8458e
  1. 93
      src/assets/scss/modules/shequzhili/event-info.scss
  2. 2
      src/js/dai/request.js
  3. 2
      src/js/dai/request2.js
  4. 360
      src/views/modules/communityService/measure/info.vue
  5. 5
      src/views/modules/shequzhili/event/cpts/add.vue
  6. 64
      src/views/modules/shequzhili/event/cpts/event-detail.vue
  7. 4
      src/views/modules/shequzhili/event/cpts/event-info.vue
  8. 25
      src/views/modules/shequzhili/event/cpts/process-form-demand.vue
  9. 5
      src/views/modules/shequzhili/event/cpts/process-form-project.vue
  10. 1
      src/views/modules/shequzhili/event/cpts/process-form-replay.vue
  11. 13
      src/views/modules/shequzhili/event/cpts/process-form.vue
  12. 3
      src/views/modules/shequzhili/event/eventList.vue
  13. 4
      src/views/modules/shequzhili/xiangmu/index.vue
  14. 1
      src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue
  15. 28
      src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue

93
src/assets/scss/modules/shequzhili/event-info.scss

@ -24,29 +24,58 @@
.avatar-uploader { .avatar-uploader {
margin: 0 0 0 20px; margin: 0 0 0 20px;
/deep/ .el-upload--picture-card{ // /deep/ .el-upload--picture-card{
width: 100px; // width: 100px;
height: 100px; // height: 100px;
} // }
/deep/ .el-upload{ // /deep/ .el-upload{
width: 100px; // width: 100px;
height: 100px; // height: 100px;
line-height: 100px; // line-height: 100px;
} // }
/deep/ .el-upload-list--picture-card .el-upload-list__item{ // /deep/ .el-upload-list--picture-card .el-upload-list__item{
width: 100px; // width: 100px;
height: 100px; // height: 100px;
line-height: 100px; // line-height: 100px;
} // }
/deep/ .el-upload-list--picture-card .el-upload-list__item-thumbnail{ // /deep/ .el-upload-list--picture-card .el-upload-list__item-thumbnail{
width: 100px; // width: 100px;
height: 100px; // height: 100px;
line-height: 100px; // line-height: 100px;
} // }
/deep/ .avatar{ // /deep/ .avatar{
width: 100px; // width: 100px;
height: 100px; // height: 100px;
} // }
// /deep/ .el-upload-list__item-status-label {
// display: block;
// position: absolute;
// right: -15px;
// top: -6px;
// width: 40px;
// height: 24px;
// background: #13ce66;
// text-align: center;
// -webkit-transform: rotate(45deg);
// transform: rotate(45deg);
// -webkit-box-shadow: 0 0 1pc 1px rgba(0, 0, 0, 0.2);
// box-shadow: 0 0 1pc 1px rgba(0, 0, 0, 0.2);
// }
// /deep/ .el-upload-list__item-actions {
// position: absolute;
// width: 100%;
// height: 100%;
// left: 0;
// top: 0;
// cursor: default;
// text-align: center;
// color: #fff;
// opacity: 0;
// font-size: 20px;
// background-color: rgba(0, 0, 0, 0.5);
// -webkit-transition: opacity .3s;
// transition: opacity .3s;
// }
} }
@ -206,8 +235,9 @@
} }
.m-row { .m-row {
display: flex; // display: flex;
justify-content: space-between; justify-content: space-between;
width:100%;
} }
.m-hint { .m-hint {
@ -404,17 +434,20 @@
} }
.div-satisfy{ .div-satisfy{
padding:50px; padding:10px 0 0;
display:flex ; display:flex ;
justify-content: space-around; justify-content: flex-start;
text-align: center; text-align: center;
>div{
margin-left:50px;
}
img{ img{
width:100px; width:80px;
height:100px; height:80px;
} }
.tip-satisfy{ .tip-satisfy{
text-align: center; text-align: center;
margin-top:20px margin-top:10px
} }
} }

2
src/js/dai/request.js

@ -36,7 +36,7 @@ const request = curry(
// retData = Vue.$afterRequestHook(retData); // retData = Vue.$afterRequestHook(retData);
// } // }
if (res.data.code > 8000 && res.data.code < 10000) { if (res.data.code > 8000 && res.data.code < 10000) {
Message.error(res.data.msg); // Message.error(res.data.msg);
} }
if (res.code == 10005 || res.code == 10006 || res.code == 10007) { if (res.code == 10005 || res.code == 10006 || res.code == 10007) {
// 10005 token为空 10006登陆超时 10007别处登录 // 10005 token为空 10006登陆超时 10007别处登录

2
src/js/dai/request2.js

@ -36,7 +36,7 @@ const request = curry(
// retData = Vue.$afterRequestHook(retData); // retData = Vue.$afterRequestHook(retData);
// } // }
if (res.data.code > 8000 && res.data.code < 10000) { if (res.data.code > 8000 && res.data.code < 10000) {
Message.error(res.data.msg); // Message.error(res.data.msg);
} }
if (res.code == 10005 || res.code == 10006 || res.code == 10007) { if (res.code == 10005 || res.code == 10006 || res.code == 10007) {
// 10005 token为空 10006登陆超时 10007别处登录 // 10005 token为空 10006登陆超时 10007别处登录

360
src/views/modules/communityService/measure/info.vue

@ -1,41 +1,30 @@
<template> <template>
<el-dialog <el-dialog title="需求信息"
title="需求信息"
width="50%" width="50%"
top="5vh" top="5vh"
append-to-body append-to-body
class="dialog-h" class="dialog-h"
:visible="true" :visible="true"
:close-on-click-modal="false" :close-on-click-modal="false"
:before-close="handlerClose" :before-close="handlerClose">
> <el-form label-width="120px"
<el-form
label-width="120px"
:model="form" :model="form"
:rules="rules" :rules="rules"
ref="ruleForm" ref="ruleForm"
class="form-wr dialog-h-content scroll-h" class="form-wr dialog-h-content scroll-h">
> <el-form-item label="操作方式"
<el-form-item label="操作方式" prop="addType"> prop="addType">
<el-radio-group v-model="addType"> <el-radio-group v-model="addType">
<el-radio label="look">查看</el-radio> <el-radio label="look">查看</el-radio>
<template v-if="form.reportType != 'self_help'"> <template v-if="form.reportType != 'self_help'">
<el-radio label="edit" v-if="form.status === 'pending'" <el-radio label="edit"
>修改</el-radio v-if="form.status === 'pending'">修改</el-radio>
> <el-radio label="cancel"
<el-radio v-if="form.status !== 'finished' && form.status !== 'canceled'">取消</el-radio>
label="cancel"
v-if="form.status !== 'finished' && form.status !== 'canceled'"
>取消</el-radio
>
</template> </template>
<el-radio <el-radio label="appoint"
label="appoint" v-if="form.status === 'pending' || form.status === 'assigned'">指派</el-radio>
v-if="form.status === 'pending' || form.status === 'assigned'" <!-- <el-radio label="finish"
>指派</el-radio
>
<el-radio
label="finish"
v-if=" v-if="
(form.reportType == 'self_help' && (form.reportType == 'self_help' &&
form.serviceShowFlag && form.serviceShowFlag &&
@ -44,230 +33,198 @@
form.status === 'assigned' || form.status === 'assigned' ||
form.status === 'have_order' || form.status === 'have_order' ||
(form.status == 'finished' && !form.evaluateFlag) (form.status == 'finished' && !form.evaluateFlag)
" ">完成</el-radio> -->
>完成</el-radio <el-radio label="finish"
> v-if="
(form.reportType == 'self_help' &&
form.serviceShowFlag &&
form.serviceType !== 'volunteer' &&
form.status !== 'finished') ||
form.status === 'assigned' ||
form.status === 'have_order'
">完成</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="所属网格" prop="gridId"> <el-form-item label="所属网格"
<el-input prop="gridId">
v-if="disabled" <el-input v-if="disabled"
v-model="form.gridName" v-model="form.gridName"
:disabled="disabled" :disabled="disabled"
class="input-width" class="input-width"></el-input>
></el-input>
<!-- <span >{{ form.gridName }}</span> --> <!-- <span >{{ form.gridName }}</span> -->
<el-select <el-select v-else
v-else
v-model="form.gridId" v-model="form.gridId"
filterable filterable
placeholder="请选择" placeholder="请选择"
class="input-width" class="input-width"
clearable clearable
:disabled="disabled" :disabled="disabled"
@change="handleGridChange" @change="handleGridChange">
> <el-option v-for="item in disabled ? optionsG : optionsEditG"
<el-option
v-for="item in disabled ? optionsG : optionsEditG"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="需求类型" prop="categoryCode"> <el-form-item label="需求类型"
<el-input prop="categoryCode">
v-if="disabled" <el-input v-if="disabled"
v-model="form.categoryName" v-model="form.categoryName"
:disabled="disabled" :disabled="disabled"
class="input-width" class="input-width"
clearable clearable></el-input>
></el-input> <el-cascader v-else
<el-cascader
v-else
v-model="form.categoryCodeArr" v-model="form.categoryCodeArr"
:options="demandOptions" :options="demandOptions"
:disabled="disabled" :disabled="disabled"
clearable clearable
class="input-width" class="input-width"
@change="handleCateSlect" @change="handleCateSlect"></el-cascader>
></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="上报类型" prop="reportType"> <el-form-item label="上报类型"
<el-input prop="reportType">
v-if="disabled" <el-input v-if="disabled"
v-model="form.reportTypeName" v-model="form.reportTypeName"
:disabled="disabled" :disabled="disabled"
class="input-width" class="input-width"></el-input>
></el-input> <el-select v-else
<el-select
v-else
v-model="form.reportType" v-model="form.reportType"
filterable filterable
class="input-width" class="input-width"
placeholder="请选择" placeholder="请选择"
clearable clearable
:disabled="disabled" :disabled="disabled">
> <el-option v-for="item in reportOptions"
<el-option
v-for="item in reportOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="上报人" prop="reportUserName"> <el-form-item label="上报人"
<el-input prop="reportUserName">
v-model="form.reportUserName" <el-input v-model="form.reportUserName"
:disabled="disabled" :disabled="disabled"
placeholder="请输入" placeholder="请输入"
class="input-width" class="input-width"
clearable clearable></el-input>
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="上报人手机号" prop="reportUserMobile"> <el-form-item label="上报人手机号"
<el-input prop="reportUserMobile">
v-model="form.reportUserMobile" <el-input v-model="form.reportUserMobile"
:disabled="disabled" :disabled="disabled"
placeholder="请输入" placeholder="请输入"
class="input-width" class="input-width"
maxlength="11" maxlength="11"
clearable clearable></el-input>
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="上报时间" prop="reportTime"> <el-form-item label="上报时间"
<el-date-picker prop="reportTime">
v-model="form.reportTime" <el-date-picker v-model="form.reportTime"
type="datetime" type="datetime"
class="input-width" class="input-width"
clearable clearable
:disabled="disabled" :disabled="disabled"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择日期时间" placeholder="选择日期时间">
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="需求人" prop="demandUserId"> <el-form-item label="需求人"
<el-input prop="demandUserId">
v-if="disabled" <el-input v-if="disabled"
v-model="form.demandUserName" v-model="form.demandUserName"
:disabled="disabled" :disabled="disabled"
class="input-width" class="input-width"></el-input>
></el-input> <el-select v-else
<el-select
v-else
v-model="selectDemandUser" v-model="selectDemandUser"
class="input-width" class="input-width"
filterable filterable
:disabled="disabled" :disabled="disabled"
placeholder="请选择" placeholder="请选择"
clearable clearable
@change="handleDemandChange" @change="handleDemandChange">
> <el-option v-for="item in demandUserList"
<el-option
v-for="item in demandUserList"
:key="item.demandUserId" :key="item.demandUserId"
:label="item.label" :label="item.label"
:value="item" :value="item">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="服务时间" prop="wantServiceTime"> <el-form-item label="服务时间"
<el-date-picker prop="wantServiceTime">
v-model="form.wantServiceTime" <el-date-picker v-model="form.wantServiceTime"
type="datetime" type="datetime"
class="input-width" class="input-width"
clearable clearable
:disabled="disabled" :disabled="disabled"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择日期时间" placeholder="选择日期时间">
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="需求内容" prop="content"> <el-form-item label="需求内容"
<el-input prop="content">
v-model="form.content" <el-input v-model="form.content"
:autosize="{ minRows: 2, maxRows: 10 }" :autosize="{ minRows: 2, maxRows: 10 }"
:disabled="disabled" :disabled="disabled"
type="textarea" type="textarea"
clearable clearable
class="input-width-textarea" class="input-width-textarea"
placeholder="请输入内容" placeholder="请输入内容"></el-input>
></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item v-if="
v-if="
addType === 'appoint' || addType === 'appoint' ||
addType == 'finish' || addType == 'finish' ||
(addType == 'look' && form.serviceShowFlag) (addType == 'look' && form.serviceShowFlag)
" "
label="服务方" label="服务方"
prop="serviceType" prop="serviceType">
>
<template v-if="disabled && addType !== 'appoint'"> <template v-if="disabled && addType !== 'appoint'">
<el-input <el-input v-model="form.serviceShowName"
v-model="form.serviceShowName"
:disabled="disabled" :disabled="disabled"
class="input-width" class="input-width"></el-input>
></el-input>
</template> </template>
<template v-else> <template v-else>
<el-select <el-select v-model="form.serviceType"
v-model="form.serviceType"
class="input-width-small" class="input-width-small"
placeholder="请选择" placeholder="请选择"
clearable clearable
:disabled="disabled && addType !== 'appoint'" :disabled="disabled && addType !== 'appoint'"
@change="handleServiceChange('add', $event)" @change="handleServiceChange('add', $event)">
> <el-option v-for="item in serviceOptions"
<el-option
v-for="item in serviceOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
- -
<el-select <el-select v-model="form.serverId"
v-model="form.serverId"
class="input-width-middle" class="input-width-middle"
filterable filterable
placeholder="请选择" placeholder="请选择"
clearable clearable
:disabled="disabled && addType !== 'appoint'" :disabled="disabled && addType !== 'appoint'">
> <el-option v-for="item in serviceOptiondList"
<el-option
v-for="item in serviceOptiondList"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</template> </template>
</el-form-item> </el-form-item>
<el-form-item <el-form-item v-if="addType == 'look' && form.status == 'canceled'"
v-if="addType == 'look' && form.status == 'canceled'"
label="取消时间" label="取消时间"
prop="cancelTime" prop="cancelTime">
>
<span>{{ form.cancelTime }}</span> <span>{{ form.cancelTime }}</span>
</el-form-item> </el-form-item>
<template <template v-if="
v-if="
(addType == 'finish' && form.reportType != 'self_help') || (addType == 'finish' && form.reportType != 'self_help') ||
(addType == 'look' && form.status == 'finished') (addType == 'look' && form.status == 'finished')
" ">
> <el-form-item label="实际服务时间"
<el-form-item label="实际服务时间" prop="serviceStartTime"> prop="serviceStartTime">
<el-date-picker <el-date-picker v-model="finishServiceTime"
v-model="finishServiceTime"
class="input-width-min" class="input-width-min"
clearable clearable
:disabled="disabled && addType != 'finish'" :disabled="disabled && addType != 'finish'"
@ -276,47 +233,40 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
@change="handelBlurServiceTime" @change="handelBlurServiceTime">
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="完成情况" prop="finishResult"> <el-form-item label="完成情况"
<el-radio prop="finishResult">
v-model="form.finishResult" <el-radio v-model="form.finishResult"
label="resolved" label="resolved"
:disabled="disabled && addType != 'finish'" :disabled="disabled && addType != 'finish'">已解决</el-radio>
>已解决</el-radio <el-radio v-model="form.finishResult"
>
<el-radio
v-model="form.finishResult"
label="unresolved" label="unresolved"
:disabled="disabled && addType != 'finish'" :disabled="disabled && addType != 'finish'">未解决</el-radio>
>未解决</el-radio
>
</el-form-item> </el-form-item>
<el-form-item label="评价" prop="score" class="form-score"> <el-form-item label="评价"
<el-rate prop="score"
v-model="form.score" class="form-score">
<el-rate v-model="form.score"
:allow-half="true" :allow-half="true"
:disabled="disabled && addType != 'finish'" :disabled="disabled && addType != 'finish'"></el-rate>
></el-rate>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="finishDesc"> <el-form-item label="备注"
<el-input prop="finishDesc">
v-model="form.finishDesc" <el-input v-model="form.finishDesc"
:autosize="{ minRows: 2, maxRows: 10 }" :autosize="{ minRows: 2, maxRows: 10 }"
:disabled="disabled && addType != 'finish'" :disabled="disabled && addType != 'finish'"
type="textarea" type="textarea"
clearable clearable
class="input-width-textarea" class="input-width-textarea"
placeholder="请输入内容" placeholder="请输入内容"></el-input>
></el-input>
</el-form-item> </el-form-item>
</template> </template>
<template v-if="addType == 'finish' && form.reportType == 'self_help'"> <template v-if="addType == 'finish' && form.reportType == 'self_help'">
<el-form-item label="实际服务时间" prop="serviceStartTime"> <el-form-item label="实际服务时间"
<el-date-picker prop="serviceStartTime">
v-model="finishServiceTime" <el-date-picker v-model="finishServiceTime"
class="input-width-min" class="input-width-min"
clearable clearable
:disabled="disabled && addType != 'finish'" :disabled="disabled && addType != 'finish'"
@ -325,22 +275,19 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
@change="handelBlurServiceTime" @change="handelBlurServiceTime">
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</template> </template>
</el-form> </el-form>
<div class="resi-btns"> <div class="resi-btns">
<el-button size="small" @click="handlerClose">关闭</el-button> <el-button size="small"
<el-button @click="handlerClose">关闭</el-button>
v-if="addType != 'look'" <el-button v-if="addType != 'look'"
type="primary" type="primary"
size="small" size="small"
:loading="btnLoading" :loading="btnLoading"
@click="handleSubmit" @click="handleSubmit">提交</el-button>
>提交</el-button
>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
@ -354,17 +301,17 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
addType: { // addType: {
type: String, // type: String,
default: "look", // default: "look",
}, // },
}, },
data() { data () {
return { return {
btnLoading: false, btnLoading: false,
pageLoading: false, pageLoading: false,
addType: 'look',
form: { form: {
gridId: "", gridId: "",
categoryCodeArr: [], categoryCodeArr: [],
@ -432,18 +379,18 @@ export default {
computed: { computed: {
...mapGetters(["clientHeight", "iframeHeight"]), ...mapGetters(["clientHeight", "iframeHeight"]),
disabled() { disabled () {
return this.addType != "edit"; return this.addType != "edit";
}, },
}, },
watch: { watch: {
addType(val) { addType (val) {
this.formatRowForm(val); this.formatRowForm(val);
}, },
}, },
async created() { async created () {
this.customerId = localStorage.getItem("customerId"); this.customerId = localStorage.getItem("customerId");
this.getInfo(); this.getInfo();
@ -452,11 +399,11 @@ export default {
}, },
methods: { methods: {
filterEdit(id) { filterEdit (id) {
const { user } = this.$store.state; const { user } = this.$store.state;
return id === user.agencyId; return id === user.agencyId;
}, },
handleCateSlect(val) { handleCateSlect (val) {
console.log("val", val); console.log("val", val);
if (val.length === 1) { if (val.length === 1) {
this.demandOptions.forEach((item) => { this.demandOptions.forEach((item) => {
@ -468,31 +415,31 @@ export default {
this.form.categoryCode = val[1]; this.form.categoryCode = val[1];
} }
}, },
handleDemandChange(val) { handleDemandChange (val) {
console.log("val", val, this.selectDemandUser); console.log("val", val, this.selectDemandUser);
this.selectDemandUser = val.label; this.selectDemandUser = val.label;
this.form.demandUserName = val.demandUserName; this.form.demandUserName = val.demandUserName;
this.form.demandUserMobile = val.demandUserMobile; this.form.demandUserMobile = val.demandUserMobile;
this.form.demandUserId = val.demandUserId; this.form.demandUserId = val.demandUserId;
}, },
handelBlurServiceTime(val) { handelBlurServiceTime (val) {
console.log("val", val); console.log("val", val);
if (val.length > 0) { if (val.length > 0) {
this.form.serviceStartTime = val[0]; this.form.serviceStartTime = val[0];
this.form.serviceEndTime = val[1]; this.form.serviceEndTime = val[1];
} }
}, },
handleServiceChange(type, val) { handleServiceChange (type, val) {
if (val === "social_org") { if (val === "social_org") {
if (type === "add") this.getServiceuserList(val, "add_demand"); if (type === "add") this.getServiceuserList(val, "add_demand");
else this.getServiceuserList(val, "query_demand"); else this.getServiceuserList(val, "query_demand");
} else this.getServiceuserList(val, ""); } else this.getServiceuserList(val, "");
}, },
handleGridChange(val) { handleGridChange (val) {
this.getDemandUserList(); this.getDemandUserList();
}, },
handelBlurServiceTime(val) { handelBlurServiceTime (val) {
console.log("val", val); console.log("val", val);
if (val.length > 0) { if (val.length > 0) {
this.form.serviceStartTime = val[0]; this.form.serviceStartTime = val[0];
@ -500,23 +447,23 @@ export default {
} }
}, },
handleServiceChange(type, val) { handleServiceChange (type, val) {
if (val === "social_org") { if (val === "social_org") {
if (type === "add") this.getServiceuserList(val, "add_demand"); if (type === "add") this.getServiceuserList(val, "add_demand");
else this.getServiceuserList(val, "query_demand"); else this.getServiceuserList(val, "query_demand");
} else this.getServiceuserList(val, ""); } else this.getServiceuserList(val, "");
}, },
handleAdd(addType) { handleAdd (addType) {
this.addType = addType; this.addType = addType;
this.dialogVisible = true; this.dialogVisible = true;
}, },
handlerClose() { handlerClose () {
this.$emit("close"); this.$emit("close");
}, },
async formatRowForm(addType) { async formatRowForm (addType) {
this.addType = addType; this.addType = addType;
const { form: row } = this; const { form: row } = this;
@ -529,9 +476,14 @@ export default {
""; "";
} }
if (addType == "finish") { if (addType == "finish") {
if (row.serviceStartTime) if (row.serviceStartTime && row.serviceEndTime) {
this.finishServiceTime = [row.serviceStartTime, row.serviceEndTime]; this.finishServiceTime = [row.serviceStartTime, row.serviceEndTime];
} else {
this.finishServiceTime = []
}
this.form.finishResult = "resolved"; this.form.finishResult = "resolved";
this.form.score = 5; this.form.score = 5;
} }
@ -554,7 +506,7 @@ export default {
this.dialogVisible = true; this.dialogVisible = true;
}, },
async appointAjax() { async appointAjax () {
const _form = { const _form = {
demandRecId: this.form.demandRecId, demandRecId: this.form.demandRecId,
serviceType: this.form.serviceType, serviceType: this.form.serviceType,
@ -578,7 +530,7 @@ export default {
this.btnLoading = false; this.btnLoading = false;
}, },
async finishAjax() { async finishAjax () {
const { reportType, serviceShowFlag, serviceType } = this.form; const { reportType, serviceShowFlag, serviceType } = this.form;
const _form = { const _form = {
demandRecId: this.form.demandRecId, demandRecId: this.form.demandRecId,
@ -607,7 +559,7 @@ export default {
this.btnLoading = false; this.btnLoading = false;
}, },
async editCate() { async editCate () {
const categoryCode = this.form.categoryCode; const categoryCode = this.form.categoryCode;
if (Array.isArray(categoryCode)) { if (Array.isArray(categoryCode)) {
if (categoryCode.length === 1) { if (categoryCode.length === 1) {
@ -643,7 +595,7 @@ export default {
this.btnLoading = false; this.btnLoading = false;
}, },
handleSubmit() { handleSubmit () {
this.$refs.ruleForm.validate(async (valid) => { this.$refs.ruleForm.validate(async (valid) => {
if (valid) { if (valid) {
this.btnLoading = true; this.btnLoading = true;
@ -659,7 +611,7 @@ export default {
}); });
}, },
handleDel() { handleDel () {
let params = { let params = {
demandRecId: this.demandRecId, demandRecId: this.demandRecId,
}; };
@ -680,7 +632,7 @@ export default {
}); });
}, },
getTreeData(data) { getTreeData (data) {
if (!Array.isArray(data)) return []; if (!Array.isArray(data)) return [];
let arr = data.map((item) => { let arr = data.map((item) => {
let _item = {}; let _item = {};
@ -696,7 +648,7 @@ export default {
return arr; return arr;
}, },
getFlagData(data, flag) { getFlagData (data, flag) {
if (!Array.isArray(data)) return []; if (!Array.isArray(data)) return [];
let arr1 = data.filter((item) => item[flag]); let arr1 = data.filter((item) => item[flag]);
let arr2 = arr1.map((item) => { let arr2 = arr1.map((item) => {
@ -708,7 +660,7 @@ export default {
return arr2; return arr2;
}, },
async getGridList(type, agencyId) { async getGridList (type, agencyId) {
const { user } = await this.$store.state; const { user } = await this.$store.state;
console.log("user---ppp", user); console.log("user---ppp", user);
// addorupdate query // addorupdate query
@ -732,7 +684,7 @@ export default {
}); });
}, },
async getDemandUserList() { async getDemandUserList () {
const { user } = await this.$store.state; const { user } = await this.$store.state;
console.log("user---ppp", user); console.log("user---ppp", user);
const params = { const params = {
@ -756,7 +708,7 @@ export default {
}); });
}, },
async getDemandOptions() { async getDemandOptions () {
this.$http this.$http
.post("/heart/icresidemanddict/demandoption") .post("/heart/icresidemanddict/demandoption")
.then(({ data: res }) => { .then(({ data: res }) => {
@ -775,7 +727,7 @@ export default {
}); });
}, },
async getServiceuserList(serviceType, query) { async getServiceuserList (serviceType, query) {
if (!serviceType) return false; if (!serviceType) return false;
const { demandUserId } = this.form; const { demandUserId } = this.form;
const params = { const params = {
@ -799,7 +751,7 @@ export default {
}); });
}, },
async getDictOptions() { async getDictOptions () {
this.$http this.$http
.post("/sys/dict/data/dictlist", { dictType: "user_demand_status" }) .post("/sys/dict/data/dictlist", { dictType: "user_demand_status" })
.then(({ data: res }) => { .then(({ data: res }) => {
@ -845,7 +797,7 @@ export default {
}); });
}, },
async getInfo() { async getInfo () {
let params = { let params = {
demandRecId: this.demandRecId, demandRecId: this.demandRecId,
}; };
@ -863,6 +815,8 @@ export default {
res.data.parentCode + res.data.categoryCode, res.data.parentCode + res.data.categoryCode,
], ],
}; };
this.finishServiceTime = [this.form.serviceStartTime, this.form.serviceEndTime]
this.getGridList(); this.getGridList();
this.getDemandOptions(); this.getDemandOptions();
this.getDemandUserList(); this.getDemandUserList();

5
src/views/modules/shequzhili/event/cpts/add.vue

@ -467,10 +467,8 @@ export default {
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
this.demandUserList = data; this.demandUserList = data;
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }
@ -587,12 +585,15 @@ export default {
removePic (file, fileList) { removePic (file, fileList) {
this.formData.imageList.splice(this.formData.imageList.findIndex(item => item === file.url), 1) this.formData.imageList.splice(this.formData.imageList.findIndex(item => item === file.url), 1)
this.replayImgList.splice(this.replayImgList.findIndex(item => item.uid === file.uid), 1) this.replayImgList.splice(this.replayImgList.findIndex(item => item.uid === file.uid), 1)
this.hideUploadBtn = fileList.length >= 3;
}, },
// 3 // 3
handleEditChange (file, fileList) { handleEditChange (file, fileList) {
this.hideUploadBtn = fileList.length >= 3; this.hideUploadBtn = fileList.length >= 3;
}, },
exceedPic () { exceedPic () {

64
src/views/modules/shequzhili/event/cpts/event-detail.vue

@ -73,32 +73,18 @@
</div> </div>
</div> </div>
<div v-if="info.operationId||info.status==='closed_case'"
<div v-if="info.operationId&&info.status!=='closed_case'"
class="div-btn "> class="div-btn ">
<el-button v-if=" !info.satisfactionName && user.id===info.createdUserId"
size="small"
class="diy-button--reset"
@click="handleSatisfy">满意度评价</el-button>
<el-button size="small" <el-button size="small"
@click="handleCloseEvent">关闭</el-button> @click="handleCloseEvent">关闭</el-button>
</div> </div>
</el-card> </el-card>
<!-- <div v-if="showType=='project'"> <el-card v-if=" info.status==='closed_case'">
<project-info ref="eleEditForm" <h3>满意度评价</h3>
:type="projectPageType" <div class="m-row">
:projectId="info.operationId" <div class="m-info">
@close="handleClose"
@afterEdit="handleClose" />
</div> -->
<el-dialog :visible.sync="showSatisfy"
:close-on-click-modal="false"
:close-on-press-escape="false"
title="满意度评价"
width="550px"
top="15vh"
class="dialog-h"
@closed="showSatisfy=false">
<div class="div-satisfy"> <div class="div-satisfy">
<div> <div>
@ -117,6 +103,30 @@
<div class="tip-satisfy">非常满意</div> <div class="tip-satisfy">非常满意</div>
</div> </div>
</div> </div>
</div>
</div>
<div v-if="info.operationId||info.status==='closed_case'"
class="div-btn ">
<el-button size="small"
@click="handleCloseEvent">关闭</el-button>
<el-button v-if="info.status==='closed_case'&&!info.satisfactionName && user.id===info.createdUserId"
size="small"
type="primary"
@click="handleComfirmSatisfy">确定</el-button>
</div>
</el-card>
<el-dialog :visible.sync="showSatisfy"
:close-on-click-modal="false"
:close-on-press-escape="false"
title="满意度评价"
width="550px"
top="15vh"
class="dialog-h"
@closed="showSatisfy=false">
<div class="div-btn"> <div class="div-btn">
<el-button size="small" <el-button size="small"
@click="showSatisfy=false">关闭</el-button> @click="showSatisfy=false">关闭</el-button>
@ -213,6 +223,11 @@ export default {
this.user = this.$store.state.user this.user = this.$store.state.user
if (this.eventId) { if (this.eventId) {
this.info = JSON.parse(JSON.stringify(this.eventDetailData)); this.info = JSON.parse(JSON.stringify(this.eventDetailData));
//
if (this.info.status === 'closed_case' && this.info.satisfactionName) {
this.changeSatisfyType(this.info.satisfaction)
}
} }
// this.getApiData(); // this.getApiData();
@ -255,6 +270,14 @@ export default {
}, },
clickSatisfy (type) { clickSatisfy (type) {
if (this.info.satisfactionName) {
return false
}
this.changeSatisfyType(type)
},
changeSatisfyType (type) {
if (type === 'bad') { if (type === 'bad') {
this.selGood = false this.selGood = false
this.selPerfect = false this.selPerfect = false
@ -297,7 +320,6 @@ export default {
this.info.satisfactionName = '111' this.info.satisfactionName = '111'
this.showSatisfy = false this.showSatisfy = false
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }

4
src/views/modules/shequzhili/event/cpts/event-info.vue

@ -403,7 +403,7 @@ export default {
this.replayInfo = {} this.replayInfo = {}
this.project = {} this.project = {}
this.demand = this.$refs.ref_processinfo_add.demand this.demand = this.$refs.ref_processinfo_add.demand
this.demand.gridId = this.eventInfoData.gridId
// //
this.eventInfoData.categoryList = [] this.eventInfoData.categoryList = []
this.eventInfoData.categoryList.push(this.demand.categoryId) this.eventInfoData.categoryList.push(this.demand.categoryId)
@ -440,6 +440,7 @@ export default {
} }
this.$emit("handleOk"); this.$emit("handleOk");
} else { } else {
this.$message.error(msg);
} }
}, },
@ -500,6 +501,7 @@ export default {
this.$emit("handleOk"); this.$emit("handleOk");
} else { } else {
this.$message.error(msg);
} }
}, },

25
src/views/modules/shequzhili/event/cpts/process-form-demand.vue

@ -238,30 +238,7 @@ export default {
}, },
formData: iniFmData(), formData: iniFmData(),
formDataTemp: {
icEventId: "",
serviceLocation: "34534534",
categoryCode: "10030002",
content: "341231",
demandUserId: "",
demandUserMobile: "15111111111",
demandUserName: "123123",
gridId: "",
operationType: "2",
parentCode: "1003",
reportTime: "",
reportType: "self_help",
reportUserMobile: "",
reportUserName: "",
serverId: "cebe59b05d02715141762211bf57734f",
serviceType: "volunteer",
wantServiceTime: "2022-05-17 00:00:00",
latitude: 36.069920462445104,
locationDetail: "345345",
longitude: 120.38677261825706,
serviceLocation: "山东省青岛市市南区闽江路82号"
},
okflag: false, okflag: false,
// //

5
src/views/modules/shequzhili/event/cpts/process-form-project.vue

@ -393,14 +393,11 @@ export default {
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
let treeDataNew = this.filterTree(data) let treeDataNew = this.filterTree(data)
// //
++this.iscascaderShow ++this.iscascaderShow
this.casOptions = [] this.casOptions = []
this.casOptions = treeDataNew this.casOptions = treeDataNew
} else { } else {
@ -433,7 +430,6 @@ export default {
}, },
async loadGrid () { async loadGrid () {
const url = "/gov/org/customergrid/gridoption" const url = "/gov/org/customergrid/gridoption"
let params = { let params = {
agencyId: this.agencyId agencyId: this.agencyId
} }
@ -483,7 +479,6 @@ export default {
// //
async getTagList () { async getTagList () {
const url = "/gov/issue/issueprojecttagdict/list"; const url = "/gov/issue/issueprojecttagdict/list";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
}); });

1
src/views/modules/shequzhili/event/cpts/process-form-replay.vue

@ -143,7 +143,6 @@ export default {
++this.iscascaderShow ++this.iscascaderShow
this.casOptions = [] this.casOptions = []
this.casOptions = treeDataNew this.casOptions = treeDataNew
} else { } else {

13
src/views/modules/shequzhili/event/cpts/process-form.vue

@ -10,10 +10,13 @@
<el-form-item label="处理方式" <el-form-item label="处理方式"
label-width="150px" label-width="150px"
prop="operationType"> prop="operationType">
<el-radio-group v-model="operationType"> <el-radio-group v-model="operationType"
@change="handleChangeOperationType">
<el-radio label="">暂不处理</el-radio>
<el-radio label="0">回复</el-radio> <el-radio label="0">回复</el-radio>
<el-radio label="1">立项</el-radio> <el-radio label="1">立项</el-radio>
<el-radio label="2">转服务</el-radio> <el-radio label="2">转服务</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -142,13 +145,11 @@ export default {
}, },
methods: { methods: {
handleChangeOperationType (val) {
},
async getProcessInfo () { async getProcessInfo () {
this.okflag = false this.okflag = false
// this.categoryList = []
// this.categoryList.push(this.selCategoryArray[1])
if (this.operationType === '0') { if (this.operationType === '0') {
this.$refs.ref_process_form_replay.getReplayInfo() this.$refs.ref_process_form_replay.getReplayInfo()
if (this.$refs.ref_process_form_replay.okflag) { if (this.$refs.ref_process_form_replay.okflag) {

3
src/views/modules/shequzhili/event/eventList.vue

@ -246,7 +246,7 @@
width="100"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.status==='processing' " <el-button v-if="scope.row.status==='processing'&&!scope.row.operationId "
@click="handleDispose(scope.row)" @click="handleDispose(scope.row)"
type="text" type="text"
size="small" size="small"
@ -588,6 +588,7 @@ export default {
}); });
} else { } else {
this.$message.error(msg);
} }
}, },

4
src/views/modules/shequzhili/xiangmu/index.vue

@ -476,8 +476,8 @@ export default {
url: window.SITE_CONFIG["apiURL"] + url, url: window.SITE_CONFIG["apiURL"] + url,
method: "post", method: "post",
data: { data: {
pageSize, // pageSize,
pageNo, // pageNo,
...fmData, ...fmData,
}, },
responseType: "blob", responseType: "blob",

1
src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue

@ -448,6 +448,7 @@ export default {
queryEndTime: this.queryEndTime, queryEndTime: this.queryEndTime,
pageNo: this.demand.pageNo, pageNo: this.demand.pageNo,
pageSize: this.demand.pageSize, pageSize: this.demand.pageSize,
biz: 'eventProcessAnalysis'
}; };
const { data, code, msg } = await requestPost(url, params); const { data, code, msg } = await requestPost(url, params);

28
src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue

@ -124,7 +124,7 @@ import dateFormat from "dai-js/tools/dateFormat"
import nextTick from 'dai-js/tools/nextTick' import nextTick from 'dai-js/tools/nextTick'
const colorArray = [ '#1B51FF', '#00E5ED', '#7800FF', '#16D783', '#FF7800', '#FFBA00', '#FFD685', '#2A00FF', '#C600FF', '#FF2A00'] const colorArray = ['#1B51FF', '#00E5ED', '#7800FF', '#16D783', '#FF7800', '#FFBA00', '#FFD685', '#2A00FF', '#C600FF', '#FF2A00']
export default { export default {
name: "shijianchulifenxi", name: "shijianchulifenxi",
data () { data () {
@ -276,7 +276,7 @@ export default {
let end = new Date() let end = new Date()
let start = new Date() let start = new Date()
if (index === '1') { // if (index === '1') { //
start.setFullYear(start.getFullYear() -1) start.setFullYear(start.getFullYear() - 1)
} else if (index === '2') { // } else if (index === '2') { //
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30) start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
@ -287,10 +287,10 @@ export default {
start.setTime(start.getTime() - 3600 * 1000 * 24 * 183) start.setTime(start.getTime() - 3600 * 1000 * 24 * 183)
} }
if (index != '0') { if (index != '0') {
this.queryStartTime = dateFormat(start,'yyyy-MM-dd')+" 00:00:00" this.queryStartTime = dateFormat(start, 'yyyy-MM-dd') + " 00:00:00"
this.queryEndTime = dateFormat(end,'yyyy-MM-dd')+" 23:59:59" this.queryEndTime = dateFormat(end, 'yyyy-MM-dd') + " 23:59:59"
} }
if (index !== '0'){ if (index !== '0') {
await this.getApiData() await this.getApiData()
// this.assignData() // this.assignData()
} }
@ -303,8 +303,8 @@ export default {
handleSelectChange (value) { handleSelectChange (value) {
console.log(value) console.log(value)
this.queryStartTime = value[0]+" 00:00:00" this.queryStartTime = value[0] + " 00:00:00"
this.queryEndTime = value[1]+" 23:59:59" this.queryEndTime = value[1] + " 23:59:59"
this.getApiData() this.getApiData()
}, },
@ -423,6 +423,7 @@ export default {
categoryCode: this.categoryCode, categoryCode: this.categoryCode,
pageNo: this.demand.pageNo, pageNo: this.demand.pageNo,
pageSize: this.demand.pageSize, pageSize: this.demand.pageSize,
biz: 'eventCategoryAnalysis'
} }
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
@ -433,7 +434,7 @@ export default {
this.tableList = data.list this.tableList = data.list
this.demand.list = data.list.map((item, index) => { this.demand.list = data.list.map((item, index) => {
return [ return [
index+1, index + 1,
item.gridName ? item.gridName : '', item.gridName ? item.gridName : '',
item.eventContent ? item.eventContent : '', item.eventContent ? item.eventContent : '',
item.sourceTypeName ? item.sourceTypeName : '', item.sourceTypeName ? item.sourceTypeName : '',
@ -623,12 +624,11 @@ export default {
}, },
handleChangeAgency (value) { handleChangeAgency (value) {
let orgArray = [] let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
let key = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '' if (obj) {
if (key) { this.orgType = obj.level === 'grid' ? 'grid' : 'agency'
orgArray = key.split('-') this.orgId = obj.agencyId
this.orgId = orgArray[0]
this.orgType = orgArray[1] === 'grid' ? 'grid' : 'agency'
} else { } else {
this.orgId = '' this.orgId = ''
this.orgType = '' this.orgType = ''

Loading…
Cancel
Save