Commit 3bdb8700 authored by 李苏's avatar 李苏 💬

部分字段展示

parent 4ff0159a
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.start' ></el-date-picker>
</div>
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.start'></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">截止日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.end' ></el-date-picker>
</div>
<div class="search-item">
<span class="search-span">截止日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.end'></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">预算任务:</span>
<RelSelect style="width: 100%;" src='hafms/ysfl/query' filterable clearable
:match="{value:'id',label:'name'}" v-model='queryParams.flid'></RelSelect>
</div>
<div class="search-item">
<span class="search-span">预算任务:</span>
<RelSelect style="width: 100%;" src='hafms/ysfl/query' filterable clearable
:match="{value:'id',label:'name'}" v-model='queryParams.flid'></RelSelect>
</div>
</el-col>
<!-- <el-col :span="6" class="search-col">-->
<!-- <div class="search-item">-->
<!-- <span class="search-span">状态:</span>-->
<!-- <RelSelect style="width: 100%;" src='hafms/yssq/init/zt' filterable clearable-->
<!-- :match="{value:'id',label:'name'}" v-model='queryParams.zt'></RelSelect>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="6" class="search-col">-->
<!-- <div class="search-item">-->
<!-- <span class="search-span">状态:</span>-->
<!-- <RelSelect style="width: 100%;" src='hafms/yssq/init/zt' filterable clearable-->
<!-- :match="{value:'id',label:'name'}" v-model='queryParams.zt'></RelSelect>-->
<!-- </div>-->
<!-- </el-col>-->
</el-row>
</el-row>
<el-row :gutter="20" class="search-row-1">
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请订单:</span>
<el-input v-model="queryParams.djid"></el-input>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请公司:</span>
<RelSelect collapse-tags multiple style="width: 100%;" src='hafms/common/sjbm/query' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.sjbmids'></RelSelect>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请部门:</span>
<RelSelect linkage :linkParams="{sjbmids:queryParams.sjbmids}" :params="{
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请订单:</span>
<el-input v-model="queryParams.djid"></el-input>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请公司:</span>
<RelSelect collapse-tags multiple style="width: 100%;" src='hafms/common/sjbm/query' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.sjbmids'></RelSelect>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请部门:</span>
<RelSelect linkage :linkParams="{sjbmids:queryParams.sjbmids}" :params="{
pids:queryParams.sjbmids.join()
}" collapse-tags multiple style="width: 100%;" src='hafms/common/bm/query' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.chooseBmids'></RelSelect>
</div>
</el-col>
}" collapse-tags multiple style="width: 100%;" src='hafms/common/bm/query' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.chooseBmids'></RelSelect>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<ToolButton :app='app'></ToolButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<!-- <el-button size='mini' @click="yssqsp()" type="primary">预算申请审批</el-button>-->
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<ToolButton :app='app'></ToolButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<!-- <el-button size='mini' @click="yssqsp()" type="primary">预算申请审批</el-button>-->
<!--<PageDetail @created='created' :page='page' style="margin-left: 10px;" />-->
<!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<!-- 多选数组转 -->
<TablePager :multipleTrans="[
<TablePager :multipleTrans="[
'sjbmids','chooseBmids'
]"@getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
]" @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' @getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
import {
doQuery,
doAdd,
doUpdate,
doDelete,
import {
doQuery,
doAdd,
doUpdate,
doDelete,
yssqmx,
submit
} from '@/api/sbysjsp/yssq.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
} from '@/api/sbysjsp/yssq.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
import yssqtz from '../yssqtz/index.vue'
export default {
mixins: [tableMixin],
name: 'yssq',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
export default {
mixins: [tableMixin],
name: 'yssq',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
page:yssqtz,
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: 'hafms/yssq',
/* 查询参数*/
queryParams: {
start:new Date().getTime()-1000*60*60*24*30,
end: new Date().getTime(),
flid:'',
zt:'',
djid:'',
sjbmids:[],
chooseBmids:[]
},
/* 表格标题对应参数*/
tableTitle: [
},
data() {
return {
page: yssqtz,
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: 'hafms/yssq',
/* 查询参数*/
queryParams: {
start: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
end: new Date().getTime(),
flid: '',
zt: '',
djid: '',
sjbmids: [],
chooseBmids: []
},
/* 表格标题对应参数*/
tableTitle: [
// {title: "预算任务", field: "ysflName", fieldType: "ftString",width:200},
// {title: "状态", field: "zt", fieldType: "ftString", align:'center', width: 70, transform: {
// url: 'hafms/yssq/init/zt',
// label: 'name',
// value: 'id'
// }},
{title: "申请单号", field: "djid", fieldType: "ftString", width: 100},
// {title: "公司编码", field: "sjbmcode", fieldType: "ftString",width:140},
{title: "公司名称", field: "sjbmName", fieldType: "ftString",width:140},
// {title: "部门编码", field: "bmcode", fieldType: "ftString",width:140},
{title: "部门名称", field: "bmName", fieldType: "ftString",width:140},
{title: "填报日期", field: "tbrq", fieldType: "ftDate"},
// {title: "填报人编码", field: "tbrid", fieldType: "ftString",width:192},
{title: "填报人", field: "tbr", fieldType: "ftString",width:180},
// {title: "申请金额", field: "sqje", fieldType: "float"},
// {title: "联系电话", field: "lxfs1", fieldType: "ftString",width:200},
// {title: "内部短号", field: "lxfs2", fieldType: "ftString",width:120}
{
title: "申请单号",
field: "djid",
fieldType: "ftString",
width: 100
},
// {title: "公司编码", field: "sjbmcode", fieldType: "ftString",width:140},
{
title: "公司名称",
field: "sjbmName",
fieldType: "ftString",
width: 140
},
// {title: "部门编码", field: "bmcode", fieldType: "ftString",width:140},
{
title: "部门名称",
field: "bmName",
fieldType: "ftString",
width: 140
},
{
title: "填报日期",
field: "tbrq",
fieldType: "ftDate"
},
// {title: "填报人编码", field: "tbrid", fieldType: "ftString",width:192},
{
title: "填报人",
field: "tbr",
fieldType: "ftString",
width: 180
},
{
title: "申请金额(万元)",
field: "sqje",
fieldType: "float",
width: 150
},
{
title: "联系电话",
field: "lxfs1",
fieldType: "ftString",
width: 200
}
// {title: "内部短号", field: "lxfs2", fieldType: "ftString",width:120}
]
}
},
methods: {
created(vdom){
vdom.queryParams.djid=123
}
},
methods: {
created(vdom) {
vdom.queryParams.djid = 123
},
yssqsp(){
yssqsp() {
if (this.app.selectOne || this.app.clickOne) {
submit(this.singleItem).then(res=>{
if(res.success){
submit(this.singleItem).then(res => {
if (res.success) {
this.$success('操作成功');
this.$refs['TablePager'].pageQuery()
}
......@@ -164,26 +197,25 @@
this.$warning('请选中一行操作');
}
},
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
queryDetail:yssqmx
},
components: {
Edit,
}
}
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
queryDetail: yssqmx
},
components: {
Edit,
}
}
</script>
<style scoped>
.search-col{
.search-col {
max-width: 350px;
}
</style>
</style>
\ No newline at end of file
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.start' ></el-date-picker>
</div>
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.start'></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">截止日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.end' ></el-date-picker>
</div>
<div class="search-item">
<span class="search-span">截止日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.end'></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">预算任务:</span>
<RelSelect style="width: 100%;" src='hafms/ysfl/query' filterable clearable
:match="{value:'id',label:'name'}" v-model='queryParams.flid'></RelSelect>
</div>
<div class="search-item">
<span class="search-span">预算任务:</span>
<RelSelect style="width: 100%;" src='hafms/ysfl/query' filterable clearable
:match="{value:'id',label:'name'}" v-model='queryParams.flid'></RelSelect>
</div>
</el-col>
<!-- <el-col :span="6" class="search-col">-->
<!-- <div class="search-item">-->
<!-- <span class="search-span">状态:</span>-->
<!-- <RelSelect style="width: 100%;" src='hafms/yssq/init/zt' filterable clearable-->
<!-- :match="{value:'id',label:'name'}" v-model='queryParams.zt'></RelSelect>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="6" class="search-col">-->
<!-- <div class="search-item">-->
<!-- <span class="search-span">状态:</span>-->
<!-- <RelSelect style="width: 100%;" src='hafms/yssq/init/zt' filterable clearable-->
<!-- :match="{value:'id',label:'name'}" v-model='queryParams.zt'></RelSelect>-->
<!-- </div>-->
<!-- </el-col>-->
</el-row>
</el-row>
<el-row :gutter="20" class="search-row-1">
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请订单:</span>
<el-input v-model="queryParams.djid"></el-input>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请公司:</span>
<RelSelect collapse-tags multiple style="width: 100%;" src='hafms/common/sjbm/query' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.sjbmids'></RelSelect>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请部门:</span>
<RelSelect linkage :linkParams="{sjbmids:queryParams.sjbmids}" :params="{
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请订单:</span>
<el-input v-model="queryParams.djid"></el-input>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请公司:</span>
<RelSelect collapse-tags multiple style="width: 100%;" src='hafms/common/sjbm/query' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.sjbmids'></RelSelect>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">申请部门:</span>
<RelSelect linkage :linkParams="{sjbmids:queryParams.sjbmids}" :params="{
pids:queryParams.sjbmids.join()
}" collapse-tags multiple style="width: 100%;" src='hafms/common/bm/query' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.chooseBmids'></RelSelect>
</div>
</el-col>
}" collapse-tags multiple style="width: 100%;" src='hafms/common/bm/query' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.chooseBmids'></RelSelect>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<ToolButton :app='app'></ToolButton>
<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='this' />
<el-button size='mini' @click="dcmb()" type="primary">导出模板</el-button>
<!-- <el-button size='mini' @click="yssqsp()" type="primary">预算申请审批</el-button> -->
<!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<ToolButton :app='app'></ToolButton>
<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='this' />
<el-button size='mini' @click="dcmb()" type="primary">导出模板</el-button>
<!-- <el-button size='mini' @click="yssqsp()" type="primary">预算申请审批</el-button> -->
<!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<!-- 多选数组转 -->
<TablePager :multipleTrans="[
<TablePager :multipleTrans="[
'sjbmids','chooseBmids'
]"@getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
]" @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' @getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
import {
download
} from 'common/src/utils/request.js'
import {
doQuery,
doAdd,
doUpdate,
doDelete,
import {
download
} from 'common/src/utils/request.js'
import {
doQuery,
doAdd,
doUpdate,
doDelete,
ystzmx,
submit
} from '@/api/sbysjsp/yssqtz.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
} from '@/api/sbysjsp/yssqtz.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
import cycle from 'common/src/mixin/cycle.js'
export default {
mixins: [tableMixin,cycle],
/* 初始额外赋值*/
async mounted() {
export default {
mixins: [tableMixin, cycle],
/* 初始额外赋值*/
async mounted() {
console.log('pageQuery')
this.$refs['TablePager'].pageQuery()
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: 'hafms/ystz',
/* 查询参数*/
queryParams: {
start:new Date().getTime()-1000*60*60*24*30,
end: new Date().getTime(),
flid:'',
zt:'',
djid:'',
sjbmids:[],
chooseBmids:[]
},
/* 表格标题对应参数*/
tableTitle: [
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: 'hafms/ystz',
/* 查询参数*/
queryParams: {
start: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
end: new Date().getTime(),
flid: '',
zt: '',
djid: '',
sjbmids: [],
chooseBmids: []
},
/* 表格标题对应参数*/
tableTitle: [
// {title: "预算任务", field: "ysflName", fieldType: "ftString",width:200},
// {title: "状态", field: "zt", fieldType: "ftString", align:'center', width: 70, transform: {
// url: 'hafms/yssq/init/zt',
// label: 'name',
// value: 'id'
// }},
{title: "申请单号", field: "djid", fieldType: "ftString", width: 100},
// {title: "公司编码", field: "sjbmcode", fieldType: "ftString",width:140},
{title: "公司名称", field: "sjbmName", fieldType: "ftString",width:140},
// {title: "部门编码", field: "bmcode", fieldType: "ftString",width:140},
{title: "部门名称", field: "bmName", fieldType: "ftString",width:140},
{title: "填报日期", field: "tbrq", fieldType: "ftDate"},
// {title: "填报人编码", field: "tbrid", fieldType: "ftString",width:192},
{title: "填报人", field: "tbr", fieldType: "ftString",width:180},
// {title: "申请金额", field: "sqje", fieldType: "float"},
// {title: "联系电话", field: "lxfs1", fieldType: "ftString",width:200},
// {title: "内部短号", field: "lxfs2", fieldType: "ftString",width:120}
{
title: "申请单号",
field: "djid",
fieldType: "ftString",
width: 100
},
// {title: "公司编码", field: "sjbmcode", fieldType: "ftString",width:140},
{
title: "公司名称",
field: "sjbmName",
fieldType: "ftString",
width: 140
},
// {title: "部门编码", field: "bmcode", fieldType: "ftString",width:140},
{
title: "部门名称",
field: "bmName",
fieldType: "ftString",
width: 140
},
{
title: "填报日期",
field: "tbrq",
fieldType: "ftDate"
},
// {title: "填报人编码", field: "tbrid", fieldType: "ftString",width:192},
{
title: "填报人",
field: "tbr",
fieldType: "ftString",
width: 180
},
{
title: "申请金额(万元)",
field: "sqje",
fieldType: "float",
width: 150
},
{
title: "联系电话",
field: "lxfs1",
fieldType: "ftString",
width: 200
},
// {title: "内部短号", field: "lxfs2", fieldType: "ftString",width:120}
]
}
},
methods: {
dcmb() {
download('hafms/yssq/ystz/model/export', {}, '预算申请导出.xlsx')
},
yssqsp(){
}
},
methods: {
dcmb() {
download('hafms/yssq/ystz/model/export', {}, '预算申请导出.xlsx')
},
yssqsp() {
if (this.app.selectOne || this.app.clickOne) {
submit(this.singleItem).then(res=>{
if(res.success){
submit(this.singleItem).then(res => {
if (res.success) {
this.$success('操作成功');
this.$refs['TablePager'].pageQuery()
}
......@@ -167,26 +200,25 @@
this.$warning('请选中一行操作');
}
},
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
queryDetail:ystzmx
},
components: {
Edit,
}
}
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
queryDetail: ystzmx
},
components: {
Edit,
}
}
</script>
<style scoped>
.search-col{
.search-col {
max-width: 350px;
}
</style>
</style>
\ No newline at end of file
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