|
|
@ -44,7 +44,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button :disabled="scope.row.nodeState =='发起申请' ? false : scope.row.nodeState == '待提交' ? false : true" type="primary" size="small" @click="toEdit(scope.row)">办理 |
|
|
|
</el-button> |
|
|
|
<el-button type="danger" :disabled="scope.row.nodeState =='已办结' ? true : scope.row.nodeState == '已终止' ? true : false" size="small" @click="toTermination(scope.row)">终止</el-button> |
|
|
|
<el-button type="danger" :disabled="scope.row.nodeState =='已办结' ? true : scope.row.nodeState == '终止' ? true : false" size="small" @click="toTermination(scope.row)">终止</el-button> |
|
|
|
<el-button type="primary" size="small" @click="toInfo(scope.row)">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -85,6 +85,20 @@ |
|
|
|
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center> |
|
|
|
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe> |
|
|
|
</el-dialog> |
|
|
|
<!-- 作废说明 --> |
|
|
|
<el-dialog title="终止说明" :append-to-body="true" :visible.sync="dialogVisible"> |
|
|
|
<el-form ref="" :model="formobj" class="formadd"> |
|
|
|
<el-row style="border-top: 1px solid #E0E3EB"> |
|
|
|
<el-col :span="24" class="tleftb"> |
|
|
|
<el-form-item><el-input v-model="formobj.cancalRemarks" clearable placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" size="small" @click="handleConfirm">确 定</el-button> |
|
|
|
<el-button size="small" @click="dialogVisible = false">取 消</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -118,6 +132,7 @@ export default { |
|
|
|
viewState: 1, // 1、列表 2、添加 3、修改 4、查看 |
|
|
|
isSearchShow: false, // 显示隐藏 |
|
|
|
tableLoading: false, |
|
|
|
dialogVisible: false, |
|
|
|
// 列表数据 |
|
|
|
dataList: [], |
|
|
|
btnList: [ |
|
|
@ -132,7 +147,6 @@ export default { |
|
|
|
multipleSelection: [], |
|
|
|
// sid数组 |
|
|
|
sids: [], // 用于导出的时候保存已选择SID |
|
|
|
sides: '', // 一条数据的sid |
|
|
|
queryParams: { |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
@ -147,7 +161,10 @@ export default { |
|
|
|
pcApplicationCode: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
row: {} |
|
|
|
formobj: { |
|
|
|
sid: '', |
|
|
|
cancalRemarks: '' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
@ -213,8 +230,6 @@ export default { |
|
|
|
aa.push(element.sid) |
|
|
|
}) |
|
|
|
this.sids = aa |
|
|
|
this.row = row |
|
|
|
this.sides = this.sids.join() // 将sid数组的元素转化成字符串 |
|
|
|
console.log('获取sids数组', this.sids) |
|
|
|
}, |
|
|
|
toEdit(row) { |
|
|
@ -229,19 +244,22 @@ export default { |
|
|
|
this.$refs['divinfo'].showInfo(sid, row) |
|
|
|
}, |
|
|
|
toTermination(row) { |
|
|
|
const tip = '请确认是否终止该记录?' |
|
|
|
this.$confirm(tip, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
req.cancal({ sid: row.sid }).then((res) => { |
|
|
|
this.dialogVisible = true |
|
|
|
this.formobj.sid = row.sid |
|
|
|
this.formobj.cancalRemarks = '' |
|
|
|
}, |
|
|
|
handleConfirm() { |
|
|
|
if (this.formobj.cancalRemarks === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请填写终止说明' }) |
|
|
|
return |
|
|
|
} |
|
|
|
req.cancal(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' }) |
|
|
|
this.dialogVisible = false |
|
|
|
this.loadList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
hangleLook(row) { |
|
|
|
this.viewState = 5 |
|
|
@ -272,16 +290,19 @@ export default { |
|
|
|
}, |
|
|
|
// 加载分页列表 |
|
|
|
loadList() { |
|
|
|
const _this = this |
|
|
|
this.tableLoading = true |
|
|
|
req.listPage(this.queryParams).then(resp => { |
|
|
|
console.log('查询列表', resp) |
|
|
|
_this.tableLoading = false |
|
|
|
this.tableLoading = false |
|
|
|
if (resp.success) { |
|
|
|
const data = resp.data |
|
|
|
_this.queryParams.total = data.total |
|
|
|
_this.dataList = data.records |
|
|
|
this.queryParams.total = data.total |
|
|
|
this.dataList = data.records |
|
|
|
} else { |
|
|
|
this.queryParams.total = 0 |
|
|
|
this.dataList = [] |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
_this.tableLoading = false |
|
|
|
this.tableLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 序号 |
|
|
|