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

预算汇总审批部分

parent aa49c528
......@@ -43,6 +43,21 @@ export function mxsxmx(query) {
data: query||{}
})
}
/* 调整预算保存 */
export function tzyssq(query) {
return request({
url: '/budgetms/yssqsp/tzyssq',
method: 'post',
data: query||{}
})
}
/* 审定信息 */
export function sdyssq(query) {
return request({
url: '/budgetms/yssqsp/sdyssq',
method: 'post',
data: query||{}
})
}
......@@ -187,7 +187,7 @@
mainMethod:doQuery1,
/* */
spanArr:[],
baseUrl:'budgetms/yssq/edit',
baseUrl:'budgetms/yssq/mxsx',
/* 弹框管理 */
/* 额外初始化,根据需求*/
......
<template>
<div class="min_full">
<!-- 页面-->
<Tzys :app='this' v-if="showDialog&&DialogName=='tzys'" ></Tzys>
<Sdxx :app='this' v-if="showDialog&&DialogName=='sdxx'" ></Sdxx>
<Zbjewh :app='this' v-if="showDialog&&DialogName=='zbjewh'" ></Zbjewh>
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
......@@ -96,6 +100,9 @@
<EditButton ref="edit" :app='app'></EditButton>
<WorkFlowButton :app='app' />
<AttachFileShow :app='app' />
<el-button size='mini' @click="tzys()" type="primary">调整预算</el-button>
<el-button size='mini' @click="sdxx()" type="primary">审定信息</el-button>
<el-button size='mini' @click="zbjewh()" type="primary">中标金额维护</el-button>
<!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<!-- 额外按钮-->
<!-- 表头设置 -->
......@@ -121,6 +128,9 @@
} from '@/api/sbysjsp/mxsx.js';
/* edit页面*/
import Edit from './edit'
import Tzys from './tzys'
import Sdxx from './sdxx'
import Zbjewh from './zbjewh'
import {
tableMixin
} from 'common'
......@@ -202,6 +212,36 @@
}
},
methods: {
/* 调整预算*/
tzys(){
if (this.app.selectOne || this.app.clickOne) {
this.showDialog=true
this.DialogName='tzys'
this.DialogTitle='调整预算'
} else {
this.$warning('请选中一行操作');
}
},
sdxx(){
if (this.app.selectOne || this.app.clickOne) {
this.showDialog=true
this.DialogName='sdxx'
this.DialogTitle='审定信息'
} else {
this.$warning('请选中一行操作');
}
},
zbjewh(){
if (this.app.selectOne || this.app.clickOne) {
this.showDialog=true
this.DialogName='zbjewh'
this.DialogTitle='中标金额维护'
} else {
this.$warning('请选中一行操作');
}
},
/* 基础查询*/
query: doQuery,
/* 基础增*/
......@@ -216,6 +256,9 @@
},
components: {
Edit,
Tzys,
Sdxx,
Zbjewh
}
}
</script>
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: auto;">
<!-- -->
<el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-row :gutter="20" class="search-row-1">
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="审定成本预算科目" ref="sdfyxmid" prop="sdfyxmid">
<RelSelect style="width: 100%;" src='budgetms/fyxm/query' filterable clearable
:match="{value:'id',label:'showname'}" v-model='form.sdfyxmid'></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="审定需求事项" ref="sdfysx" prop="sdfysx">
<RelSelect linkage :linkParams="{flbm:form.sdfyxmid}" style="width: 100%;" src='budgetms/fysx/query' filterable clearable
:match="{value:'id',label:'csyj'}" v-model='form.sdfysx'></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="审定含税金额" ref="sdxqje" prop="sdxqje">
<el-input type="number" v-model="form.sdxqje"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="税率(%)" ref="sl" prop="sl">
<el-input type="number" v-model="form.sl"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="审定不含税金额" ref="wssdxqje" prop="wssdxqje">
<el-input type="number" v-model="form.wssdxqje"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="项目编码" ref="sdxmid" prop="sdxmid">
<RelSelect :params='{
showThisYear:"Y",tybz:"N"
}' style="width: 100%;" src='budgetms/sggcxm/query' filterable clearable
:match="{value:'id',label:'showname'}" v-model='form.sdxmid'></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="中标不含税金额" ref="sdextra1" prop="sdextra1">
<el-input type="number" v-model="form.sdextra1"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="审定描述" ref="sdextra2" prop="sdextra2">
<el-input v-model="form.sdextra2"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="confirm()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
import {editMixin} from 'common'
import {
sdyssq
} from '@/api/sbysjsp/mxsx.js';
export default {
mixins: [editMixin],
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
async mounted() {
this.form=this.app.singleItem
},
data() {
return {
form: {
sdfyxmid: '',
fysx: '',
sdxqje:'',
sl:'',
wssdxqje:'',
sdextra2:'',
sdxmid:'',
sdextra1:'',
}
}
},
methods: {
confirm(){
this.$refs['form'].validate((valid) => {
if (valid) {
let params=this.form
params.flag='U'
sdyssq(params).then(res=>{
if(res.success){
this.$success('调整成功')
this.app.showDialog=false
this.app.$refs['TablePager'].pageQuery()
}
})
} else {
console.log('error submit!!');
return false;
}
});
}
}
}
</script>
<style scoped>
</style>
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: auto;">
<!-- -->
<el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-row :gutter="20" class="search-row-1">
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="成本预算科目" ref="fyxmid" prop="fyxmid">
<RelSelect style="width: 100%;" src='budgetms/fyxm/query' filterable clearable
:match="{value:'id',label:'showname'}" v-model='form.fyxmid'></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="需求事项" ref="fysx" prop="fysx">
<RelSelect linkage :linkParams="{flbm:form.fyxmid}" style="width: 100%;" src='budgetms/fysx/query' filterable clearable
:match="{value:'id',label:'xqsx'}" v-model='form.fysx'></RelSelect>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="测算依据" ref="csyj" prop="csyj">
<el-input v-model="form.csyj"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="含税金额" ref="xqje" prop="xqje">
<el-input v-model="form.xqje"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="税率(%)" ref="sl" prop="sl">
<el-input v-model="form.sl"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="不含税金额" ref="wsxqje" prop="wsxqje">
<el-input v-model="form.wsxqje"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="实施责任人" ref="zrr" prop="zrr">
<el-input v-model="form.zrr"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input v-model="form.bz"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="confirm()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
import {editMixin} from 'common'
import {
tzyssq
} from '@/api/sbysjsp/mxsx.js';
export default {
mixins: [editMixin],
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
async mounted() {
this.form=this.app.singleItem
},
data() {
return {
form: {
fyxmid: '',
fysx: '',
csyj: '',
xqje:'',
sl:'',
wsxqje:'',
zrr:'',
bz:''
}
}
},
methods: {
confirm(){
this.$refs['form'].validate((valid) => {
if (valid) {
let params=this.form
params.flag='U'
tzyssq(params).then(res=>{
if(res.success){
this.$success('调整成功')
this.app.showDialog=false
this.app.$refs['TablePager'].pageQuery()
}
})
} else {
console.log('error submit!!');
return false;
}
});
}
}
}
</script>
<style scoped>
</style>
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: auto;">
<!-- -->
<el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-row :gutter="20" class="search-row-1">
<el-col :span="24">
<el-form-item label="中标金额维护" ref="sdextra1" prop="sdextra1">
<el-input type="number" v-model="form.sdextra1"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="confirm()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
import {editMixin} from 'common'
import {
sdyssq
} from '@/api/sbysjsp/mxsx.js';
export default {
mixins: [editMixin],
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
async mounted() {
this.form=this.app.singleItem
},
data() {
return {
form: {
sdextra1:''
}
}
},
methods: {
confirm(){
this.$refs['form'].validate((valid) => {
if (valid) {
let params={}
params.id=this.form.id
params.sdextra1=this.form.sdextra1
params.flag='U'
sdyssq(params).then(res=>{
if(res.success){
this.$success('调整成功')
this.app.showDialog=false
this.app.$refs['TablePager'].pageQuery()
}
})
} else {
console.log('error submit!!');
return false;
}
});
}
}
}
</script>
<style scoped>
</style>
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