4ec9e5b2 by 田浩浩
2 parents a889f2a9 0a1507f8
......@@ -162,3 +162,11 @@ export function getCertificateList (data) {
data
})
}
// 发证
export function issueCertificate (data) {
return request({
url: '/business/workFlow/issueCertificate',
method: 'post',
data
})
}
......
import request from '@/utils/request'
/*
证书管理-获取序列号
*/
export function getSysSerialSingle (params) {
return request({
url: '/system/sysSerial/getSysSerialSingle',
method: 'get',
params: params
})
}
/*
证书管理-证书入库列表
*/
export function getZsglrkList (data) {
return request({
url: '/sys/zsgl//getZsglrkList',
url: '/sys/zsgl/getZsglrkList',
method: 'post',
data
})
}
/*
证书管理-新增证书入库
*/
export function zsrk (data) {
return request({
url: '/sys/zsgl/zsrk',
method: 'post',
data
})
}
/*
证书管理-删除证书入库
*/
export function removeZsgl (params) {
return request({
url: '/sys/zsgl/removeZsgl',
method: 'get',
params: params
})
}
\ No newline at end of file
......
......@@ -21,16 +21,14 @@
</el-col>
<el-col :span="6" class="btnCol">
<el-form-item>
<el-button type="primary" icon="el-icon-search">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="fetchData()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div class="from-clues-content">
<lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage" :total="tableData.total"
@size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
:data="tableData.data">
<lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false">
</lb-table>
</div>
</div>
......@@ -69,10 +67,7 @@ export default {
this.ruleForm.bsmSldy = this.$parent._data.unitData[0].bsmSldy
getCertificateList(this.ruleForm).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
this.tableData.data = records ? records : []
this.tableData.data = res.result
}
})
},
......
<template>
<dialogBox title="证书领取" @submitForm="submitForm" saveButton="保存" width="60%"
height='30%' @closeDialog="closeDialog" v-model="value">
<div class="from-clues-content">
<lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false" :heightNum="600">
</lb-table>
</div>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" style="display:flex;">
<el-form-item label="领证人" prop="lzrxm">
<el-input v-model="ruleForm.lzrxm"></el-input>
</el-form-item>
<el-form-item label="证件类型" prop="lzrzjlb">
<el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择">
<el-option v-for="item in dictData['A30']" :key="item.dcode" :label="item.dname" :value="item.dcode">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="证件号" prop="lzrzjh">
<el-input v-model="ruleForm.lzrzjh"></el-input>
</el-form-item>
<el-form-item label="领证人电话" prop="lzrdh">
<el-input v-model="ruleForm.lzrdh"></el-input>
</el-form-item>
</el-form>
</dialogBox>
</template>
<script>
import table from "@/utils/mixin/table";
import { getCertificateList,issueCertificate } from "@/api/fqsq.js";
import { datas } from "./fzxxdata";
import { mapGetters } from 'vuex'
export default {
mixins: [table],
components: {
...mapGetters(['dictData']),
},
props: {
value: { type: Boolean, default: false },
},
data () {
return {
ruleForm: {
bsmBdcqz: [],
lzrxm: '',
lzrzjlb: '',
lzrzjh: '',
lzrdh: ''
},
rules: {
lzrxm: [
{ required: true, message: '请输入领证人', trigger: 'blur' }
],
lzrzjlb: [
{ required: true, message: '请选择证件类型', trigger: 'change' }
],
lzrzjh: [
{ required: true, message: '请输入证件号', trigger: 'blur' }
],
lzrdh: [
{ required: true, message: '请输入电话号码', trigger: 'blur' }
],
},
tableData: {
total: 0,
columns: datas.columns(),
data: [],
},
}
},
methods: {
//列表初始化
tablelistFn(){
var bsmSldy = this.$parent._data.unitData[0].bsmSldy
getCertificateList({"bsmSldy":bsmSldy}).then(res => {
if (res.code === 200) {
this.tableData.data = res.result
if(res.result){
res.result.forEach((item,index)=>{
this.ruleForm.bsmBdcqz.push(item.bsmBdcqz)
})
}
}
})
},
submitForm(){
this.$refs.ruleForm.validate(valid => {
if (valid) {
issueCertificate(this.ruleForm).then(res => {
if(res.code == 200){
this.$message.success('保存成功')
this.$emit("input", false);
this.$refs.ruleForm.resetFields();
}else{
this.$message.error(res.message)
}
})
} else {
return false;
}
});
},
closeDialog () {
this.$emit("input", false);
this.$refs.ruleForm.resetFields();
},
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
</style>
......@@ -89,6 +89,7 @@
:bsmBusiness="bsmBusiness"
:queryForm="queryForm"
/>
<zslqDialog ref="zslqDialog" v-model="zslqDialog" />
<zsylDialog v-model="zsylFlag" />
</div>
</template>
......@@ -98,14 +99,16 @@ import comMsg from "@/views/components/comMsg.vue";
import zc from "./components/zc.vue";
import thDialog from "./components/th.vue";
import zsylDialog from "./components/zsyl";
import zslqDialog from "./components/zslq";
export default {
/**注册组件*/
components: { zc, thDialog, zsylDialog, comMsg },
components: { zc, thDialog, zsylDialog, comMsg,zslqDialog},
data() {
return {
zsylFlag: false,
zcDialog: false,
thflag: false,
zslqDialog: false,
queryForm: {
bsmSlsq: "",
bestepid: "",
......@@ -231,6 +234,10 @@ export default {
case "tc":
window.close();
break;
case "zslq":
this.zslqDialog = true;
this.$refs.zslqDialog.tablelistFn();
break;
case "db":
var formdata = new FormData();
formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
......
<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="djjg">
<el-select v-model="ruleForm.djjg" placeholder="请选择">
<el-option v-for="item in dictData['ywly']" :key="item.dname" :label="item.dname" :value="item.dname"></el-option>
</el-select>
</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="rksj">
<el-date-picker v-model="ruleForm.rksj" type="datetime" placeholder="选择日期时间"></el-date-picker>
</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">
<template slot-scope="scope">
<el-input v-model="scope.row.ksysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11"></el-input>
</template>
</el-table-column>
<el-table-column prop="jsysxlh" label="结束印刷序列号" width="200">
<template slot-scope="scope">
<el-input v-model="scope.row.jsysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11"></el-input>
</template>
</el-table-column>
<el-table-column prop="bs" label="本数">
<template slot-scope="scope">
<span v-if="scope.row.bs == 0" style="color:red">系统计算</span>
<span v-else-if="scope.row.bs < 0" style="color:red">印刷序列号有误</span>
<span v-else>{{scope.row.bs}}</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 { mapGetters } from 'vuex'
import { getSysSerialSingle,zsrk} from "@/api/zsgl.js"
export default {
components: {
},
computed: {
...mapGetters(['dictData']),
},
props: {
value: { type: Boolean, default: false },
},
data () {
return {
tableData: {},
ruleForm: {
batchno: '',
djjg: '',
rkry: '超级管理员',
rksj: '',
bz: '',
zsstarno: '',
zsendno: '',
zsnum: '',
zmstarno: '',
zmendno: '',
zmnum: ''
},
tableForm: [
{
name: '不动产权证书',
ksysxlh: '',
jsysxlh: '',
bs: 0,
zslx:1
},
{
name: '不动产权登记证明',
ksysxlh: '',
jsysxlh: '',
bs: 0,
zslx:2
}
],
ywhQueryForm: {
serialtype: 'zsrkbh',
serialname: '证书入库编号',
serialcode: 'zsrk',
digit: '5'
},
rules: {
batchNo: [
{ required: true, message: '入库编号不能为空', trigger: 'blur' }
],
djjg: [
{ required: true, message: '请选择登记机构', trigger: 'change' }
],
rkry: [
{ required: true, message: '入库人员不能为空', trigger: 'blur' }
],
rksj: [
{ required: true, message: '请选择入库时间', trigger: 'change' }
],
},
}
},
methods: {
//表单提交
submitForm () {
this.tableForm.forEach((item,index)=>{
if(item.bs < 0){
return;
}
})
zsrk(this.ruleForm).then(res => {
if(res.code == 200){
this.$message.success('保存成功')
this.$emit("input", false);
this.$refs.ruleForm.resetFields();
this.resetTableFields();
console.log(this.ruleForm);
console.log(this.tableForm)
}else{
this.$message.error(res.message);
}
})
},
//序列号获取
ywhSerial(){
getSysSerialSingle(this.ywhQueryForm).then(res => {
if(res.code == 200){
this.ruleForm.batchno = res.message;
}
})
},
//印刷序列号处理
ysxlhDeal(item){
if(item.ksysxlh && item.jsysxlh){
if(item.ksysxlh.length == item.jsysxlh.length){
if(item.ksysxlh.length != 11){
item.bs = -1;
return;
}
if(item.ksysxlh > item.jsysxlh){
item.bs = -1;
return;
}
item.bs = item.jsysxlh - item.ksysxlh + 1;
if(item.zslx == 1){
this.ruleForm.zsstarno = item.ksysxlh;
this.ruleForm.zsendno = item.jsysxlh;
this.ruleForm.zsnum = item.bs
}else if(item.zslx == 2){
this.ruleForm.zmstarno = item.ksysxlh;
this.ruleForm.zmendno = item.jsysxlh;
this.ruleForm.zmnum = item.bs
}
}else{
item.bs = -1;
}
}else{
item.bs = 0;
if(item.zslx == 1){
this.ruleForm.zsstarno = '';
this.ruleForm.zsendno = '';
this.ruleForm.zsnum = item.bs
}else if(item.zslx == 2){
this.ruleForm.zmstarno = '';
this.ruleForm.zmendno = '';
this.ruleForm.zmnum = item.bs
}
}
},
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>
......@@ -19,7 +19,7 @@
<el-col :span="11" class="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
<el-button type="primary">新增</el-button>
<el-button type="primary" @click="openDialog()">新增</el-button>
</el-form-item>
</el-col>
</el-row>
......@@ -32,21 +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 "./zsrkdata";
import { getZsglrkList } from "@/api/zsgl.js"
import addDialog from "./components/addDialog.vue"
import { getZsglrkList ,removeZsgl} from "@/api/zsgl.js"
export default {
name: "zsrk",
components: {},
components: {addDialog},
mixins: [table],
mounted () {
sendThis(this);
},
data () {
return {
isDialog: false,
ruleForm: {
rkbh: "",
rksj: ""
......@@ -73,8 +76,32 @@ export default {
})
},
openDialog () {
console.log(999999999999999);
this.isDialog = true;
this.$nextTick(()=> {
this.$refs.addDialog.ywhSerial();
})
},
delZsrk(item){
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
removeZsgl({"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: '已取消删除'
});
});
}
},
};
</script>
......
......@@ -60,7 +60,7 @@ class data extends filter {
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>
<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>
......