Commit 5ccc4c4a by wangna

cptati、cptato修改

parent 3ae20621
...@@ -174,6 +174,7 @@ ...@@ -174,6 +174,7 @@
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils/index";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptati/Event" import Event from "~/model/Cptati/Event"
...@@ -191,7 +192,7 @@ export default { ...@@ -191,7 +192,7 @@ export default {
created: function () { created: function () {
this.executeRule("bopmod.dbdp.basp").then((res) => { this.executeRule("bopmod.dbdp.basp").then((res) => {
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.copyValueFromVO(res.data); Utils.copyValueFromVO(res.data);
} }
}); });
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<m-ovwp :model="model" :codes="codes" /> <m-ovwp :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan"> <el-tab-pane label="费用/账务" name="setpan,glepan">
<c-content> <c-content>
<div class="eibs-tab"> <div class="eibs-tab">
<el-collapse v-model="activeNames"> <el-collapse v-model="activeNames">
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
<!-- 结算 --> <!-- 结算 -->
<m-setpan :model="model" :codes="codes" /> <m-setpan :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="会计分录" name="glepan">
<!-- 会计分录 -->
<m-glepan :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse> </el-collapse>
</div> </div>
</c-content> </c-content>
...@@ -97,6 +101,7 @@ import Addbcb from "./Addbcb.vue"; ...@@ -97,6 +101,7 @@ import Addbcb from "./Addbcb.vue";
import Doctre from "~/views/Public/Doctre"; import Doctre from "~/views/Public/Doctre";
import Docpan from "~/views/Public/Docpan"; import Docpan from "~/views/Public/Docpan";
import Setpan from "~/views/Public/Setpan"; import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
export default { export default {
name: "Cptati", name: "Cptati",
...@@ -104,6 +109,7 @@ export default { ...@@ -104,6 +109,7 @@ export default {
"m-ovwp": Ovwp, "m-ovwp": Ovwp,
"m-pardet": Pardet, "m-pardet": Pardet,
"m-setpan": Setpan, "m-setpan": Setpan,
"m-glepan": Glepan,
"m-addbcb": Addbcb, "m-addbcb": Addbcb,
"m-doctre": Doctre, "m-doctre": Doctre,
"m-docpan": Docpan, "m-docpan": Docpan,
......
<template> <template>
<div class="eibs"> <div class="eibs">
<c-col :span="12" style="padding-right: 20px;"> <c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="申报类型" prop="bopmod.szflg"> <el-form-item label="申报类型" prop="bopmod.szflg">
<c-select v-model="model.bopmod.szflg" style="width:100%" placeholder="请选择申报类型"> <c-select
<el-option v-for="item in codes.szflg" :key="item.value" :label="item.label" :value="item.value"> v-model="model.bopmod.szflg"
style="width: 100%"
placeholder="请选择申报类型"
@change="selectOrCheckboxRule('bopmod.szflg')"
>
<el-option
v-for="item in codes.szflg"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="款项去向" prop="bopmod.acttyp"> <el-form-item label="款项去向" prop="bopmod.acttyp">
<c-select v-model="model.bopmod.acttyp" style="width:100%" placeholder="请选择地区机构号" <c-select
:disabled="model.bopmod.szflg==='3' || model.bopmod.szflg==='2' ||model.bopmod.szflg===''"> v-model="model.bopmod.acttyp"
<el-option v-for="item in codes.acttyp" :key="item.value" :label="item.label" :value="item.value"> style="width: 100%"
placeholder="请选择地区机构号"
:disabled="
model.bopmod.szflg === '3' ||
model.bopmod.szflg === '2' ||
model.bopmod.szflg === ''
"
>
<el-option
v-for="item in codes.acttyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -23,17 +45,30 @@ ...@@ -23,17 +45,30 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="地区机构号" prop="bopmod.ownextkey"> <el-form-item label="地区机构号" prop="bopmod.ownextkey">
<c-select v-model="model.bopmod.ownextkey" style="width:100%" placeholder="请选择地区机构号" <c-select
:disabled="model.bopmod.szflg==='3' ||model.bopmod.szflg===''"> v-model="model.bopmod.ownextkey"
<el-option v-for="item in ownextkey" :key="item.value" :label="item.label" :value="item.value"></el-option> style="width: 100%"
placeholder="请选择地区机构号"
:disabled="model.bopmod.szflg === '3' || model.bopmod.szflg === ''"
>
<el-option
v-for="item in ownextkey"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="12" style="padding-left: 20px;"> <c-col :span="12" style="padding-left: 20px">
<c-col :span="14"> <c-col :span="14">
<c-checkbox style="float: left;" v-model="model.bopmod.basflg" :disabled="model.bopmod.szflg==='3'||model.bopmod.szflg===''">基础数据 <c-checkbox
style="float: left"
v-model="model.bopmod.basflg"
:disabled="model.bopmod.szflg === '3' || model.bopmod.szflg === ''"
>基础数据
</c-checkbox> </c-checkbox>
</c-col> </c-col>
...@@ -48,26 +83,25 @@ ...@@ -48,26 +83,25 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptato/Event" import Event from "~/model/Cptato/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
ownextkey: [] ownextkey: [],
} };
}, },
methods: { ...Event }, methods: {
created: function () { ...Event,
}, },
} created: function () {},
};
</script> </script>
<style> <style>
</style> </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