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

=》万元

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