Commit 5ccc4c4a by wangna

cptati、cptato修改

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