01ac4244 by 田浩浩
2 parents e6ec279a f591d658
......@@ -39,3 +39,42 @@ export function removeZsgl (params) {
params: params
})
}
/*
证书管理-审核证书入库
*/
export function verifyZsrk (params) {
return request({
url: '/sys/zsgl/verifyZsrk',
method: 'get',
params: params
})
}
/*
证书管理-证书分发列表
*/
export function getZsglffList (data) {
return request({
url: '/sys/zsgl/getZsglffList',
method: 'post',
data
})
}
/*
证书管理-证书分发列表
*/
export function getZsStartNo () {
return request({
url: '/sys/zsgl/getZsStartNo',
method: 'get'
})
}
/*
证书管理-获取结束序列号
*/
export function getZsEndNo (params) {
return request({
url: '/sys/zsgl/getZsEndNo',
method: 'get',
params
})
}
\ No newline at end of file
......
<template>
<dialogBox title="证书分发" @submitForm="submitForm" saveButton="保存" width="45%" @closeDialog="closeDialog" v-model="value">
<div>
<el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules">
<el-row>
<el-col :span="12">
<el-form-item label="发放编号:" prop="batchno">
<el-input v-model="ruleForm.batchno" :disabled="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领取时间:" prop="rksj">
<el-date-picker v-model="ruleForm.rksj" type="datetime" placeholder="选择日期时间"></el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="发放人员:" prop="rkry">
<el-input v-model="ruleForm.rkry" :disabled="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领取人:" prop="lqr">
<el-select v-model="ruleForm.lqr" placeholder="请选择">
<el-option v-for="item in usernames" :key="item" :label="item" :value="item"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<div>
<el-table :data="tableForm" border style="width: 100%" :header-cell-style="{'text-align':'center',background: 'rgb(236, 245, 255)'}" :cell-style="{'text-align':'center'}">
<el-table-column prop="name" label="纸质证书类型" width="200"></el-table-column>
<el-table-column prop="ksysxlh" label="开始印刷序列号" width="200"></el-table-column>
<el-table-column prop="bs" label="本数">
<template slot-scope="scope">
<el-input v-model="scope.row.bs" @blur="ysxlhDeal(scope.row)"></el-input>
</template>
</el-table-column>
<el-table-column prop="jsysxlh" label="结束印刷序列号" width="200">
<template slot-scope="scope">
<span v-if="scope.row.jsysxlh == ''" style="color:red">系统计算</span>
<span v-else>{{scope.row.jsysxlh}}</span>
</template>
</el-table-column>
</el-table>
</div>
<el-form-item label="备注" style="margin-top:20px">
<el-input type="textarea" v-model="ruleForm.bz" :rows="4"></el-input>
</el-form-item>
</el-form>
</div>
</dialogBox>
</template>
<script>
import { getZsStartNo,getSysSerialSingle, getZsEndNo} from "@/api/zsgl.js"
export default {
components: {
},
computed: {
},
props: {
value: { type: Boolean, default: false },
},
data () {
return {
tableData: {},
ruleForm: {
batchno: '',
lqr: '',
rkry: '超级管理员',
rksj: '',
bz: '',
zsstarno: '',
zsendno: '',
zsnum: '',
zmstarno: '',
zmendno: '',
zmnum: ''
},
tableForm: [
{
name: '不动产权证书',
ksysxlh: '',
jsysxlh: '',
bs: '',
zslx: 'zs'
},
{
name: '不动产权登记证明',
ksysxlh: '',
jsysxlh: '',
bs: '',
zslx: 'zm'
}
],
ywhQueryForm: {
serialtype: 'zsffbh',
serialname: '证书分发编号',
serialcode: 'zsff',
digit: '5'
},
usernames: ['张三','李四'],
rules: {
batchNo: [
{ required: true, message: '入库编号不能为空', trigger: 'blur' }
],
lqr: [
{ required: true, message: '请选择领取人', trigger: 'change' }
],
rkry: [
{ required: true, message: '入库人员不能为空', trigger: 'blur' }
],
rksj: [
{ required: true, message: '请选择入库时间', trigger: 'change' }
],
},
}
},
methods: {
//表单提交
submitForm () {
},
//序列号获取
ywhSerial(){
// getSysSerialSingle(this.ywhQueryForm).then(res => {
// if(res.code == 200){
// this.ruleForm.batchno = res.message;
// }
// })
},
initStartNo(){
getZsStartNo().then(res => {
if(res.code == 200){
this.tableForm[0].ksysxlh = res.result.zsstarno
this.tableForm[1].ksysxlh = res.result.zmstarno
}
})
},
//印刷序列号处理
ysxlhDeal(item){
getZsEndNo({"bookNumber": item.bs,"zslx": item.zslx}).then(res => {
if(res.code == 200){
item.jsysxlh = res.result.endno
item.bs = res.result.bookNumber
}else{
this.$message.error(res.message)
}
})
},
resetTableFields() {
this.tableForm = [
{
name: '不动产权证书',
ksysxlh: '',
jsysxlh: '',
bs: 0,
zslx:1
},
{
name: '不动产权登记证明',
ksysxlh: '',
jsysxlh: '',
bs: 0,
zslx:2
}
]
},
closeDialog () {
this.$emit("input", false);
},
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
</style>
......@@ -18,8 +18,8 @@
</el-col>
<el-col :span="11" class="btnCol">
<el-form-item>
<el-button type="primary" @click="fetchData">查询</el-button>
<el-button @click="moreQueryClick()">高级查询</el-button>
<el-button type="primary" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="openDialog()">新增</el-button>
</el-form-item>
</el-col>
</el-row>
......@@ -32,20 +32,24 @@
:data="tableData.data">
</lb-table>
</div>
<addDialog ref="addDialog" v-model="isDialog"/>
</div>
</template>
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./zsffdata";
import { getZsglffList} from "@/api/zsgl.js"
import addDialog from "./components/addDialog.vue"
export default {
name: "zsff",
components: {},
components: {addDialog},
mixins: [table],
mounted () {
sendThis(this);
},
data () {
return {
isDialog: false,
value: '',
ruleForm: {
rkbh: "",
......@@ -54,19 +58,30 @@ export default {
tableData: {
total: 0,
columns: datas.columns(),
data: [
{
slsj: "2022-5-12",
}
]
}
data: [],
},
}
},
methods: {
// 初始化数据
fetchData () { },
init (e) {
this.fetchData()
},
// 列表渲染接口
fetchData () {
getZsglffList({ ...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);
this.isDialog = true;
this.$nextTick(()=> {
this.$refs.addDialog.ywhSerial();
this.$refs.addDialog.initStartNo();
})
},
},
};
......
......@@ -16,58 +16,55 @@ class data extends filter {
width: '50'
},
{
prop: "ywly",
label: "业务来源",
prop: "batchno",
label: "分发编号",
},
{
prop: "lczt",
label: "流程状态",
prop: "operator",
label: "分发人员",
},
{
prop: "zbhj",
label: "在办环节",
prop: "zmnum",
label: "不动产登记证明(本)",
},
{
prop: "ywh",
label: "业务号",
prop: "zsnum",
label: "不动产权证书(本)",
},
{
prop: "sqywmc",
label: "申请业务名称",
prop: "operationtime",
label: "领取时间",
},
{
prop: "qlr",
label: "权利人",
prop: "receiver",
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.confrimVerify(scope.row) }}>确认分发</el-button>
<el-button type="text" icon="el-icon-delete" onClick={() => { vm.delZsrk(scope.row) }}>删除</el-button>
</div>
case '1':
return <el-button type="text" onClick={() => { }}>查看</el-button>
}
}
}
]
......
......@@ -136,10 +136,9 @@ export default {
if(res.code == 200){
this.$message.success('保存成功')
this.$emit("input", false);
this.$refs.ruleForm.resetFields();
this.ruleForm = {};
this.resetTableFields();
console.log(this.ruleForm);
console.log(this.tableForm)
this.$parent.fetchData();
}else{
this.$message.error(res.message);
}
......
......@@ -39,7 +39,7 @@
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./zsrkdata";
import addDialog from "./components/addDialog.vue"
import { getZsglrkList ,removeZsgl} from "@/api/zsgl.js"
import { getZsglrkList ,removeZsgl,verifyZsrk} from "@/api/zsgl.js"
export default {
name: "zsrk",
components: {addDialog},
......@@ -81,6 +81,10 @@ export default {
this.$refs.addDialog.ywhSerial();
})
},
queryClick () {
this.fetchData()
},
//删除证书入库数据
delZsrk(item){
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -101,6 +105,28 @@ export default {
message: '已取消删除'
});
});
},
//审核证书入库数据
confrimVerify(item){
this.$confirm('审核是否通过', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
verifyZsrk({"bsmBatch":item.bsmBatch}).then(res => {
if(res.code == 200){
this.$message.success("审核成功")
this.fetchData();
}else{
this.$message.error(res.message)
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消审核'
});
});
}
},
};
......
......@@ -59,11 +59,11 @@ class data extends filter {
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-edit-outline" onClick={() => { vm.confrimVerify(scope.row) }}>确认审核</el-button>
<el-button type="text" icon="el-icon-delete" onClick={() => { vm.delZsrk(scope.row) }}>删除</el-button>
</div>
case '1':
return <el-button type="text" onClick={() => { vm.openDialog(scope) }}>查看</el-button>
return <el-button type="text" onClick={() => { }}>查看</el-button>
}
}
}
......