Browse Source

社区自查回访记录列表功能联调

feature
mk 2 years ago
parent
commit
b1088516c8
  1. 22
      src/views/modules/satisfaction/communitySelfInsp/followList.vue
  2. 4
      src/views/modules/satisfaction/communitySelfInsp/followUpDetail.vue
  3. 7
      src/views/modules/satisfaction/communitySelfInsp/formList.vue
  4. 7
      src/views/modules/satisfaction/communitySelfInsp/index.vue

22
src/views/modules/satisfaction/communitySelfInsp/followList.vue

@ -18,7 +18,7 @@
<el-option v-for="subItem in followUpWayList" :key="subItem.value" :label="subItem.label" <el-option v-for="subItem in followUpWayList" :key="subItem.value" :label="subItem.label"
:value="subItem.value"></el-option> :value="subItem.value"></el-option>
</el-select> </el-select>
<div v-else class="div-content">{{ scope.row.followUpWay == 1 ? '正常' : '异常' }}</div> <div v-else class="div-content">{{ scope.row.followUpWay == 1 ? '电话回访' : '上门回访' }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="riskFlag" label="是否风险" align="center"> <el-table-column prop="riskFlag" label="是否风险" align="center">
@ -81,9 +81,6 @@
data() { data() {
return { return {
followUpWayList:[ { followUpWayList:[ {
label: '无需回访',
value: '0'
}, {
label: '上门回访', label: '上门回访',
value: '1' value: '1'
},{ },{
@ -193,9 +190,9 @@
console.log(row, this.id); console.log(row, this.id);
const params = { const params = {
...row, ...row,
equipmentId: this.id inspResultId: this.id
}; };
const url = ``; const url = `/governance/satisfaction/communitySelfInsp/followUp/save`;
const { const {
data, data,
code, code,
@ -212,11 +209,10 @@
} }
}, },
async edit(row) { async edit(row) {
console.log(row, this.id);
const params = { const params = {
...row ...row
}; };
const url = ``; const url = `/governance/satisfaction/communitySelfInsp/followUp/save`;
const { const {
data, data,
code, code,
@ -233,7 +229,7 @@
}, },
async del(row) { async del(row) {
let arr = [row.id]; let arr = [row.id];
const url = ``; const url = `/governance/satisfaction/communitySelfInsp/followUp/delete/${row.id}`;
const { const {
data, data,
code, code,
@ -248,16 +244,16 @@
}, },
async getList() { async getList() {
const params = { const params = {
equipmentId: this.id, inspResultId: this.id,
pageNo: 1, pageNo: 1,
pageSize: 10000 pageSize: 20
}; };
const url = ``; const url = `/governance/satisfaction/communitySelfInsp/followUp/list`;
const { const {
data, data,
code, code,
msg msg
} = await requestPost(url, params); } = await requestGet(url, params);
if (code === 0) { if (code === 0) {
this.tableData = data.list.map(item => { this.tableData = data.list.map(item => {
return { return {

4
src/views/modules/satisfaction/communitySelfInsp/followUpDetail.vue

@ -11,8 +11,8 @@
<el-radio class="f-bot16" v-model.trim="form[item.pkey]" disabled label="good">基本满意</el-radio> <el-radio class="f-bot16" v-model.trim="form[item.pkey]" disabled label="good">基本满意</el-radio>
<el-radio class="f-bot16" v-model.trim="form[item.pkey]" disabled label="bad">不满意</el-radio> <el-radio class="f-bot16" v-model.trim="form[item.pkey]" disabled label="bad">不满意</el-radio>
</section> </section>
<p>{{ index + 1 }}.1您具体对那些方面不满意</p> <p v-if="form[item.pkey] == 'bad'">{{ index + 1 }}.1您具体对那些方面不满意</p>
<section class="f-hflex" v-for="(itemK, indexK) in item.children"> <section class="f-hflex" v-for="(itemK, indexK) in item.children" v-if="form[item.pkey] == 'bad'">
<el-radio class="f-bot16" v-model.trim="form[item.value]" :label="itemK.value" disabled <el-radio class="f-bot16" v-model.trim="form[item.value]" :label="itemK.value" disabled
>{{ itemK.label }}</el-radio> >{{ itemK.label }}</el-radio>
<el-input v-if="indexK == item.children.length -1 && form[item.pkey] == 'bad'" disabled placeholder="请填写不满意原因" v-model.trim="form[item.reason]"></el-input> <el-input v-if="indexK == item.children.length -1 && form[item.pkey] == 'bad'" disabled placeholder="请填写不满意原因" v-model.trim="form[item.reason]"></el-input>

7
src/views/modules/satisfaction/communitySelfInsp/formList.vue

@ -20,8 +20,7 @@
<el-button size="small" type="primary " <el-button size="small" type="primary "
@click="handleSearch">查询</el-button> @click="handleSearch">查询</el-button>
</el-form> </el-form>
<!-- <el-button type="primary" @click="xinzneg" >查看</el-button>
<el-button type="primary" @click="bianji" >回访记录</el-button> -->
<el-table class="m-table-item" :data="tableData" style="width: 100%"> <el-table class="m-table-item" :data="tableData" style="width: 100%">
<el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column> <el-table-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column>
@ -126,8 +125,8 @@ export default {
handleDetail(row) { handleDetail(row) {
this.$emit('handelDetail', row.id) this.$emit('handelDetail', row.id)
}, },
handelFollowUpList() { handelFollowUpList(row) {
this.$emit('handelFollowUpList', true) this.$emit('handelFollowUpList', row.id)
}, },
satisfactionCategory(row, name) { satisfactionCategory(row, name) {
if (row[name]) { if (row[name]) {

7
src/views/modules/satisfaction/communitySelfInsp/index.vue

@ -60,11 +60,11 @@
@handelDetail="handelDetail" @handelFollowUpList="handelFollowUpList" :period="formData.period" :seriesName="seriesName" :inspRecordId="formData.inspRecordId"></form-list> @handelDetail="handelDetail" @handelFollowUpList="handelFollowUpList" :period="formData.period" :seriesName="seriesName" :inspRecordId="formData.inspRecordId"></form-list>
<el-dialog width="920px" class="dialog-h" title="社区自查报告详情" :close-on-click-modal="false" <el-dialog width="920px" class="dialog-h" title="社区自查报告详情" :close-on-click-modal="false"
v-if="showFollowUpDetail" :visible.sync="showFollowUpDetail" append-to-body> v-if="showFollowUpDetail" :visible.sync="showFollowUpDetail" append-to-body>
<follow-Detail :period="formData.period" :inspResultId="inspResultId" @handleClose="handleClose"></follow-Detail> <follow-Detail :period="formData.period" :inspResultId="inspResultId" @handleClose="showFollowUpDetail = false"></follow-Detail>
</el-dialog> </el-dialog>
<el-dialog width="820px" class="dialog-h" title="回访记录" :close-on-click-modal="false" v-if="showFollowUpList" <el-dialog width="820px" class="dialog-h" title="回访记录" :close-on-click-modal="false" v-if="showFollowUpList"
:visible.sync="showFollowUpList" append-to-body> :visible.sync="showFollowUpList" append-to-body>
<follow-list></follow-list> <follow-list :id="inspResultId"></follow-list>
</el-dialog> </el-dialog>
</el-dialog> </el-dialog>
<el-dialog title="调查问卷" :visible.sync="showTduckImage" width="550px"> <el-dialog title="调查问卷" :visible.sync="showTduckImage" width="550px">
@ -269,8 +269,9 @@ export default {
this.showFollowUpDetail = true; this.showFollowUpDetail = true;
this.inspResultId = id this.inspResultId = id
}, },
handelFollowUpList() { handelFollowUpList(id) {
this.showFollowUpList = true; this.showFollowUpList = true;
this.inspResultId = id
}, },
async handleCreateMonthlySurvey() { async handleCreateMonthlySurvey() {
try { try {

Loading…
Cancel
Save