Commit 7fa82e46 authored by 李苏's avatar 李苏 💬

职工持证界面

parent 5baaeb3f
This diff is collapsed.
...@@ -8,19 +8,19 @@ ...@@ -8,19 +8,19 @@
<el-col :span="8" class="search-col"> <el-col :span="8" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">证书编号:</span> <span class="search-span">证书编号:</span>
<el-input></el-input> <el-input v-model="queryParams.zsbh"></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="8" class="search-col"> <el-col :span="8" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">职工工号:</span> <span class="search-span">职工工号:</span>
<el-input></el-input> <el-input v-model="queryParams.zggh"></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="8" class="search-col"> <el-col :span="8" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">姓名:</span> <span class="search-span">姓名:</span>
<el-input></el-input> <el-input v-model="queryParams.xm" ></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -28,13 +28,13 @@ ...@@ -28,13 +28,13 @@
<el-col :span="8" class="search-col"> <el-col :span="8" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">证书状态:</span> <span class="search-span">证书状态:</span>
<el-select></el-select> <RelSelect src='aqgl/rcgl/ygczxx/init/zszt' clearable :match="{value:'id',label:'name'}" v-model='queryParams.zszt' ></RelSelect>
</div> </div>
</el-col> </el-col>
<el-col :span="8" class="search-col"> <el-col :span="8" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">适用范围:</span> <span class="search-span">适用范围:</span>
<el-select></el-select> <RelSelect src='aqgl/rcgl/ygczxx/init/syfw' clearable :match="{value:'id',label:'name'}" v-model='queryParams.syfw' ></RelSelect>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -58,15 +58,7 @@ ...@@ -58,15 +58,7 @@
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" >
<template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
active-color="#13ce66" inactive-color="#eee">
</el-switch>
</template>
</el-table-column>
</template>
</TablePager> </TablePager>
</div> </div>
...@@ -75,14 +67,13 @@ ...@@ -75,14 +67,13 @@
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
QueryKzzxRole, doQuery,
QueryApptype, doAdd,
AddKzzxRole, doUpdate,
DeleteKzzxRole, doDelete,
UpdateKzzxRole, doInitSyfw
QtKzzxRole } from '@/api/daily/holdCertificate.js';
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
import { import {
...@@ -105,132 +96,56 @@ ...@@ -105,132 +96,56 @@
type: '', type: '',
DialogTitle: '', DialogTitle: '',
/* 基础url*/ /* 基础url*/
baseUrl: 'kzzx/role', baseUrl: '/aqgl/rcgl/ygczxx',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
ksrq: '', zsbh:'',
jsrq: '' zggh:'',
xm:'',
syfw:'',
zszt:''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{ // {label: "用户编码", prop: "userid", fieldType: "ftString",width:192},
prop: 'whsj', {label: "证书编号", prop: "code", fieldType: "ftString",width:240},
label: '职工工号', {label: "证书名称", prop: "name", fieldType: "ftString",width:300},
...this.$common('ftDateTime') {label: "发证日期", prop: "fzsq", fieldType: "ftDateTime"},
}, {label: "有效期", prop: "yxq", fieldType: "float"},
{ {label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
prop: 'whsj', {label: "状态", prop: "zt", fieldType: "ftString",width:60},
label: '职工姓名', {label: "复审日期1", prop: "fsrq1", fieldType: "ftDateTime"},
...this.$common('ftDateTime') {label: "复审日期2", prop: "fsrq2", fieldType: "ftDateTime"},
}, {label: "实际复审日期1", prop: "sjfsrq1", fieldType: "ftDateTime"},
{ {label: "实际复审日期2", prop: "sjfsrq2", fieldType: "ftDateTime"},
prop: 'whsj', {label: "备注", prop: "bz", fieldType: "ftString",width:300},
label: '证书编号', {label: "维护人", prop: "whr", fieldType: "ftString"},
...this.$common('ftDateTime') {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
}, {label: "创建人", prop: "cjr", fieldType: "ftString"},
{ {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
prop: 'whsj', {label: "发证单位", prop: "fzdw", fieldType: "ftString",width:300},
label: '名称', // {label: "适用范围", prop: "syfw", fieldType: "ftString",width:60},
...this.$common('ftDateTime') {label: "适用范围", prop: "syfwName", fieldType: "ftString",width:160,
},
{
prop: 'whsj',
label: '作业类别',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '发证日期',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '复审日期1',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '复审日期2',
...this.$common('ftDateTime')
}, },
{
prop: 'whsj',
label: '实际复审1',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '实际复审2',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '有效期',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '截至日期',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '发证单位',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '适用范围',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '是否超期',
...this.$common('ftDateTime')
}
] ]
} }
}, },
methods: { methods: {
tybz(a) {
let nTy = false query: doQuery,
nTy = (a.row.tybz == 'N' ? true : false) /* 基础增*/
return nTy apiAdd: doAdd,
}, /* 基础更新*/
/* 基础查询*/ apiUpdate: doUpdate,
query: QueryKzzxRole, /* 删除操作*/
/* 基础增*/ apiDelete: doDelete,
apiAdd: AddKzzxRole,
/* 基础更新*/
apiUpdate: UpdateKzzxRole,
/* 删除操作*/
apiDelete: DeleteKzzxRole,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { init() {
}, },
/* 启用停用*/ /* 启用停用*/
setEnable(id) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtKzzxRole(params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].reLoad()
} else {
this.$error(res.message || '操作失败')
}
})
})
}
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment