Commit cc9a8637 authored by 李苏's avatar 李苏 💬

搜索范围调整

parent 7f25fbde
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="3" class="search-col">
<div class="search-item">
<span class="search-span">公司:</span>
<RelSelect clearable style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model="queryParams.gsid"></RelSelect>
<RelSelect clearable style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}"
v-model="queryParams.gsid"></RelSelect>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<span class="search-span">任务类型:</span>
<RelSelect style="width: 100%;" src='aqgl/rcgl/lzbg/init/pc' clearable :match="{value:'id',label:'name'}" v-model='queryParams.pc' ></RelSelect>
<RelSelect style="width: 100%;" src='aqgl/rcgl/lzbg/init/pc' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.pc'></RelSelect>
</div>
</el-col>
<el-col :span="4" class="search-col">
......@@ -25,124 +27,167 @@
<el-col :span="4" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.ksrq' ></el-date-picker>
<el-date-picker value-format="timestamp" v-model='queryParams.ksrq'></el-date-picker>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<span class="search-span">结束日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.jsrq' ></el-date-picker>
<el-date-picker value-format="timestamp" v-model='queryParams.jsrq'></el-date-picker>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<span class="search-span">状态:</span>
<RelSelect src='aqgl/rcgl/lzbg/init/zt' clearable :match="{value:'id',label:'name'}" v-model='queryParams.zt'></RelSelect>
<RelSelect src='aqgl/rcgl/lzbg/init/zt' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.zt'></RelSelect>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app'></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/daily/duty.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqgl/rcglLzrw',
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/daily/duty.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqgl/rcglLzrw',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/rcgl/lzrw',
/* 查询参数*/
queryParams: {
lzfl: '',
pc:'',
zt:'',
flName:'',
gsid: '',
ksrq:new Date().getTime() - 1000*60*60*24,
jsrq:new Date().getTime()
},
/* 表格标题对应参数*/
tableTitle: [
{label: "履职分类", prop: "flName", fieldType: "ftString",width:192},
{label: "履职内容", prop: "content", fieldType: "ftString",width:300},
{label: "履职人员", prop: "ryName", fieldType: "ftString",width:192},
{label: "频次", prop: "pc", fieldType: "ftString",width:192},
{label: "公司", prop: "gsName", fieldType: "ftString",width:192},
{label: "单据来源", prop: "lyName", fieldType: "ftString",width:148},
{label: "状态", prop: "ztName", fieldType: "ftString",width:88},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}
]
}
},
methods: {
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/rcgl/lzrw',
/* 查询参数*/
queryParams: {
lzfl: '',
pc: '',
zt: '',
flName: '',
gsid: '',
ksrq: '',
jsrq: ''
},
/* 表格标题对应参数*/
tableTitle: [{
label: "履职分类",
prop: "flName",
fieldType: "ftString",
width: 192
},
{
label: "履职内容",
prop: "content",
fieldType: "ftString",
width: 300
},
{
label: "履职人员",
prop: "ryName",
fieldType: "ftString",
width: 192
},
{
label: "频次",
prop: "pc",
fieldType: "ftString",
width: 192
},
{
label: "公司",
prop: "gsName",
fieldType: "ftString",
width: 192
},
{
label: "单据来源",
prop: "lyName",
fieldType: "ftString",
width: 148
},
{
label: "状态",
prop: "ztName",
fieldType: "ftString",
width: 88
},
{
label: "维护人",
prop: "whr",
fieldType: "ftString"
},
{
label: "维护时间",
prop: "whsj",
fieldType: "ftDateTime"
}
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
},
components: {
Edit,
}
}
}
</script>
<style scoped>
......
......@@ -112,8 +112,8 @@
/* 查询参数*/
queryParams: {
queryType:'YHFC',
ksrq: new Date().getTime()-1000*60*60*24*30,
jsrq: new Date().getTime(),
ksrq: '',
jsrq: '',
bmid:'',
sbr:'',
gsid:''
......
......@@ -157,8 +157,8 @@
bmid:'',
jcr:'',
zt:'',
ksrq: new Date().getTime()-1000*60*60*24*30,
jsrq: new Date().getTime()
ksrq: '',
jsrq:''
},
/* 表格标题对应参数*/
tableTitle: [
......
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