22170dbc by 蔡俊立

证书入库联调

1 parent 57e07d33
import request from '@/utils/request'
/*
证书管理-证书入库列表
*/
export function getZsglrkList (data) {
return request({
url: '/sys/zsgl//getZsglrkList',
method: 'post',
data
})
}
\ No newline at end of file
......@@ -19,7 +19,7 @@
<el-col :span="11" class="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
<el-button @click="moreQueryClick()">高级查询</el-button>
<el-button type="primary">新增</el-button>
</el-form-item>
</el-col>
</el-row>
......@@ -37,6 +37,7 @@
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./zsrkdata";
import { getZsglrkList } from "@/api/zsgl.js"
export default {
name: "zsrk",
components: {},
......@@ -53,20 +54,24 @@ export default {
tableData: {
total: 0,
columns: datas.columns(),
data: [
{
slsj: "2022-5-12",
},
{
slsj: "2022-5-13",
},
],
data: [],
},
};
},
methods: {
// 初始化数据
fetchData () { },
init (e) {
this.fetchData()
},
// 列表渲染接口
fetchData () {
getZsglrkList({ ...this.ruleForm, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
this.tableData.data = records ? records : []
}
})
},
openDialog () {
console.log(999999999999999);
},
......
......@@ -16,58 +16,55 @@ class data extends filter {
width: '50'
},
{
prop: "ywly",
label: "业务来源",
prop: "batchno",
label: "入库编号",
},
{
prop: "lczt",
label: "流程状态",
prop: "operationtime",
label: "入库时间",
},
{
prop: "zbhj",
label: "在办环节",
prop: "operator",
label: "入库人员",
},
{
prop: "ywh",
label: "业务号",
prop: "zsnum",
label: "不动产登记证明(本)",
},
{
prop: "sqywmc",
label: "申请业务名称",
prop: "zsnum",
label: "不动产权证书(本)",
},
{
prop: "qlr",
label: "权利人",
prop: "bz",
label: "备注",
},
{
prop: "ywr",
label: "义务人",
},
{
prop: "zl",
label: "坐落",
},
{
prop: "slsj",
label: "受理时间",
sortable: 'custom'
},
{
prop: "slry",
label: "受理人员",
},
{
prop: "zrsj",
label: "转入时间",
sortable: 'custom'
label: "状态",
render: (h, scope) => {
switch (scope.row.state) {
case '0':
return <span>正在审核</span>
case '1':
return <span>已入库</span>
}
}
},
{
label: '操作',
width: '80',
width: '200',
align: 'center',
fixed: 'right',
render: (h, scope) => {
return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.openDialog(scope) }}>编辑</el-button>
switch (scope.row.state) {
case '0':
return <div>
<el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>确认审核</el-button>
<el-button type="text" icon="el-icon-delete" onClick={() => { vm.openDialog(scope.row) }}>删除</el-button>
</div>
case '1':
return <el-button type="text" onClick={() => { vm.openDialog(scope) }}>查看</el-button>
}
}
}
]
......