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

搜索范围调整

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