批量用印,案件编号搜索
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="140px">
|
||||
<el-form-item label="机构名称首字母拼写" prop="deptNameFirchar">
|
||||
<el-input v-model="queryParams.deptNameFirchar" placeholder="请输入机构首字母拼写" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addList">新增</el-button>
|
||||
@@ -22,7 +31,7 @@
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="deleteTemplate(scope.row)">删除</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="eidtTemplate(scope.row)">修改模板</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="eidtTemplate(scope.row)">编号修改</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -71,6 +80,16 @@ export default {
|
||||
eidtTemplate(row){
|
||||
this.modifyVisable =true;
|
||||
this.editData =row;
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList(this.queryParams);
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
getList(parm){
|
||||
this.loading = true;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
class="demo-ruleForm">
|
||||
<el-form-item label="规则类型:" prop="ruleType">
|
||||
<el-select placeholder="请选择规则类型" v-model="ruleForm.ruleType">
|
||||
<el-option label="字符串" value="1"></el-option>
|
||||
<el-option label="整数" value="2"></el-option>
|
||||
<el-option label="字符串" :value=1></el-option>
|
||||
<el-option label="整数" :value=2></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="前缀:" prop="prefixstr">
|
||||
@@ -14,7 +14,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="时间格式:" prop="dateFormat">
|
||||
<el-select placeholder="请选择时间格式" v-model="ruleForm.dateFormat">
|
||||
<el-option label="yyyy-MM-dd" value="1"></el-option>
|
||||
<el-option label="yyyy-MM-dd" :value=1></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="机构名称:" prop="deptName">
|
||||
|
||||
@@ -63,6 +63,14 @@ export default {
|
||||
editData(val) {
|
||||
if (val) {
|
||||
this.ruleForm = val;
|
||||
if(this.ruleForm.dateFormat=="yyyy-MM-dd"){
|
||||
this.ruleForm.dateFormat=1
|
||||
}
|
||||
if(this.ruleForm.ruleType=="整数"){
|
||||
this.ruleForm.ruleType=2
|
||||
}else if(this.ruleForm.ruleType=="字符串"){
|
||||
this.ruleForm.ruleType=1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -88,7 +96,7 @@ export default {
|
||||
this.updateCaseNumRuleFn({
|
||||
id:this.ruleForm.id,
|
||||
prefixstr:this.ruleForm.prefixstr,
|
||||
dateFormat:this.ruleForm.deptName,
|
||||
dateFormat:this.ruleForm.dateFormat,
|
||||
deptNameFirchar:this.ruleForm.deptNameFirchar,
|
||||
deptName:this.ruleForm.deptName,
|
||||
ruleType:this.ruleForm.ruleType,
|
||||
|
||||
Reference in New Issue
Block a user