Browse Source

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

feature
mk 2 years ago
parent
commit
b1088516c8
  1. 24
      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

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

@ -18,7 +18,7 @@
<el-option v-for="subItem in followUpWayList" :key="subItem.value" :label="subItem.label"
:value="subItem.value"></el-option>
</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>
</el-table-column>
<el-table-column prop="riskFlag" label="是否风险" align="center">
@ -80,10 +80,7 @@
},
data() {
return {
followUpWayList:[{
label: '无需回访',
value: '0'
}, {
followUpWayList:[ {
label: '上门回访',
value: '1'
},{
@ -193,9 +190,9 @@
console.log(row, this.id);
const params = {
...row,
equipmentId: this.id
inspResultId: this.id
};
const url = ``;
const url = `/governance/satisfaction/communitySelfInsp/followUp/save`;
const {
data,
code,
@ -212,11 +209,10 @@
}
},
async edit(row) {
console.log(row, this.id);
const params = {
...row
};
const url = ``;
const url = `/governance/satisfaction/communitySelfInsp/followUp/save`;
const {
data,
code,
@ -233,7 +229,7 @@
},
async del(row) {
let arr = [row.id];
const url = ``;
const url = `/governance/satisfaction/communitySelfInsp/followUp/delete/${row.id}`;
const {
data,
code,
@ -248,16 +244,16 @@
},
async getList() {
const params = {
equipmentId: this.id,
inspResultId: this.id,
pageNo: 1,
pageSize: 10000
pageSize: 20
};
const url = ``;
const url = `/governance/satisfaction/communitySelfInsp/followUp/list`;
const {
data,
code,
msg
} = await requestPost(url, params);
} = await requestGet(url, params);
if (code === 0) {
this.tableData = data.list.map(item => {
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="bad">不满意</el-radio>
</section>
<p>{{ index + 1 }}.1您具体对那些方面不满意</p>
<section class="f-hflex" v-for="(itemK, indexK) in item.children">
<p v-if="form[item.pkey] == 'bad'">{{ index + 1 }}.1您具体对那些方面不满意</p>
<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
>{{ 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>

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

@ -20,8 +20,7 @@
<el-button size="small" type="primary "
@click="handleSearch">查询</el-button>
</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-column label="序号" header-align="center" align="center" type="index" width="50"></el-table-column>
@ -126,8 +125,8 @@ export default {
handleDetail(row) {
this.$emit('handelDetail', row.id)
},
handelFollowUpList() {
this.$emit('handelFollowUpList', true)
handelFollowUpList(row) {
this.$emit('handelFollowUpList', row.id)
},
satisfactionCategory(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>
<el-dialog width="920px" class="dialog-h" title="社区自查报告详情" :close-on-click-modal="false"
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 width="820px" class="dialog-h" title="回访记录" :close-on-click-modal="false" v-if="showFollowUpList"
:visible.sync="showFollowUpList" append-to-body>
<follow-list></follow-list>
<follow-list :id="inspResultId"></follow-list>
</el-dialog>
</el-dialog>
<el-dialog title="调查问卷" :visible.sync="showTduckImage" width="550px">
@ -269,8 +269,9 @@ export default {
this.showFollowUpDetail = true;
this.inspResultId = id
},
handelFollowUpList() {
handelFollowUpList(id) {
this.showFollowUpList = true;
this.inspResultId = id
},
async handleCreateMonthlySurvey() {
try {

Loading…
Cancel
Save