Commit 840697d3 by WF1020

litdck修改

parent 44906d0b
......@@ -172,6 +172,5 @@ export default {
return
}
},
onSeainf() {},
},
};
......@@ -3,13 +3,16 @@ import Pub from '~/components/business/commonModel/index.js';
export default class Litdck {
constructor() {
this.data = {
outlen:{
szflg: ''
},
brdgrp: {
blk: {
matper: '',
docdisflg: '',
setinsbr: '',
docdis: '',
comcon: ''
comcon: '',
},
prb: {
pts: new Pts().data,
......@@ -34,19 +37,19 @@ export default class Litdck {
stadat: '',
dscinsflg: '',
nam: '',
docprbrol: ''
docprbrol: '',
},
cbs: {
opn2: {
cur: ''
cur: '',
},
max: {
cur: '',
amt: ''
cur: '',
amt: '',
},
max2: {
amt: ''
}
amt: '',
},
},
ben: {
pts: new Pts().data,
......@@ -58,69 +61,72 @@ export default class Litdck {
djuusr: '',
djuref: '',
djudat: '',
djutyp: ''
}
},
zcsdrq: '',
brtp: {
cre732flg: '',
prbp: {
ptsget: {
sdamod: {
seainf: ''
}
}
},
aammod: {
addamtflg: ''
}
},
acttyp: '',
szflg: '',
invtyp: '',
lidgrp: {
rec: {
branchinr:'00000047',
revflg: '',
expdat: '',
expplc: '',
lcrtyp: '',
ownref: '',
shpdat: '',
avbby: '',
nam: '',
utlnbr: '',
opndat: '',
redclsflg: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
djutyp: '',
},
nom1: {
cur: '',
amt: ''
}
},
avbnam: '',
apl:{
pts: new Pts().data,
},
adv:{
pts: new Pts().data,
zcsdrq: '',
brtp: {
docgrdm:{
docgrd: ''
},
cre732flg: '',
prbp: {
ptsget: {
sdamod: {
seainf: '',
},
},
},
aammod: {
addamtflg: '',
},
},
ben: {
pts: new Pts().data,
acttyp: '',
szflg: '',
invtyp: '',
lidgrp: {
rec: {
branchinr: '00000047',
revflg: '',
expdat: '',
expplc: '',
lcrtyp: '',
ownref: '',
shpdat: '',
avbby: '',
nam: '',
utlnbr: '',
opndat: '',
redclsflg: '',
},
cbs: {
opn1: {
cur: '',
amt: '',
},
nom1: {
cur: '',
amt: '',
},
},
avbnam: '',
apl: {
pts: new Pts().data,
},
adv: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
},
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
};
}
}
\ No newline at end of file
}
<template>
<div class="eibs-tab" >
<el-collapse v-model="activeNames">
<el-collapse-item title="备查表" name="addbcb1">
<m-addbcb1 :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from '../event'
import Addbcb1 from "./Addbcb1";
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-addbcb1": Addbcb1,
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["addbcb1"],
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
......@@ -18,6 +18,7 @@
size="small"
type="primary"
icon="el-icon-more"
@click="showGridPromptDialog('brtp.docdis.buttxmsel', null, null,{TXT: 'brdgrp.blk.docdis'}, {TXT: false},'doxpDialog')"
:disabled="this.typ1"
>
......@@ -56,6 +57,7 @@
size="small"
type="primary"
icon="el-icon-more"
@click="showGridPromptDialog('brtp.setinstxm.buttxmsel', null, null,{TXT: 'brdgrp.blk.setinsbr'}, {TXT: false},'doxpDialog')"
>
</c-button>
......@@ -156,35 +158,37 @@
</div>
</template>
<script>
import event from '../event';
import Docpre from '~/views/Public/Docpre';
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Docpre from "~/views/Public/Docpre";
import event from '../event'
export default {
components: {
'c-docpre': Docpre,
"c-docpre": Docpre,
},
inject: ['root'],
props: ['model', 'codes'],
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
typ1: true,
};
},
watch: {
'model.brdgrp.blk.docdisflg': {
immediate: true,
handler(val, oldval) {
if (this.model.brdgrp.blk.docdisflg != 'X') {
this.typ1 = true;
this.model.brdgrp.blk.docdis = '';
this.changeFormItemRequired('brdgrp.blk.docdis', false);
} else {
this.typ1 = false;
this.changeFormItemRequired('brdgrp.blk.docdis', true);
}
},
},
},
// watch: {
// "model.brdgrp.blk.docdisflg": {
// immediate: true,
// handler(val, oldval) {
// if (this.model.brdgrp.blk.docdisflg != "X") {
// this.typ1 = true;
// this.model.brdgrp.blk.docdis = "";
// this.changeFormItemRequired("brdgrp.blk.docdis", false);
// } else {
// this.typ1 = false;
// this.changeFormItemRequired("brdgrp.blk.docdis", true);
// }
// },
// },
// },
methods: {
},
created: function () {},
......
......@@ -16,7 +16,6 @@
size="small"
style="margin-left: 10px; padding: 0 10px"
type="primary"
@click="onSeainf"
>
<i class="el-icon-info"></i>
</c-button>
......@@ -139,7 +138,6 @@
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="到期地址" prop="lidgrp.rec.expplc">
<c-input
......@@ -176,7 +174,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
icon="el-icon-search"
>
</c-button>
......@@ -184,7 +181,6 @@
style="margin: 0 0"
size="small"
type="primary"
@click="getBrdgrpOwnRef"
:disabled="model.brdgrp.rec.ownref !== ''"
>
获取
......@@ -215,9 +211,9 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="申报类型" prop="szflg">
<el-form-item label="申报类型" prop="outlen.szflg">
<c-select
v-model="model.szflg"
v-model="model.outlen.szflg"
style="width: 100%"
:code="codes.szflg"
>
......@@ -327,7 +323,7 @@
<el-form-item label="款项去向" prop="outlen.acttyp">
<c-select
:disabled="this.flag1"
v-model="model.acttyp"
v-model="model.outlen.acttyp"
:code="codes.acttyp"
></c-select>
</el-form-item>
......@@ -494,9 +490,6 @@
v-model="model.brdgrp.prb.pts.extkey"
maxlength="16"
placeholder="请输入地址编码"
@keyup.enter.native="
showGridPromptDialog('brdgrp.prb.pts.extkey')
"
:disabled="model.brdgrp.rec.docprbrol != 'PRB'"
></c-input>
<template slot="footer">
......@@ -504,6 +497,7 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="model.brtp.prbp.ptsget.sdamod.seainf"
icon="el-icon-search"
>
</c-button>
......@@ -562,11 +556,13 @@
</div>
</template>
<script>
import event from '../event';
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import event from '../event'
export default {
inject: ['root'],
props: ['model', 'codes'],
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
......@@ -576,30 +572,30 @@ export default {
};
},
watch: {
'model.szflg': {
"model.outlen.szflg": {
immediate: true,
handler(val, oldval) {
if (this.model.szflg == '1') {
if (this.model.outlen.szflg == "1") {
this.flag1 = false;
} else {
this.flag1 = true;
}
},
},
'model.brdgrp.rec.matdat': {
"model.brdgrp.rec.matdat": {
immediate: true,
handler(val, oldval) {
if (this.model.brdgrp.rec.matdat != '') {
if (this.model.brdgrp.rec.matdat != "") {
this.flag2 = true;
} else {
this.flag2 = false;
}
},
},
'model.brdgrp.rec.docflg': {
"model.brdgrp.rec.docflg": {
immediate: true,
handler(val, oldval) {
if (this.model.brdgrp.rec.docflg == 'P') {
if (this.model.brdgrp.rec.docflg == "P") {
this.flag3 = true;
this.flag2 = true;
} else {
......@@ -608,10 +604,10 @@ export default {
}
},
},
'model.brdgrp.blk.matper': {
"model.brdgrp.blk.matper": {
immediate: true,
handler(val, oldval) {
if (this.model.brdgrp.blk.matper != '') {
if (this.model.brdgrp.blk.matper != "") {
this.flag3 = true;
} else {
this.flag3 = false;
......@@ -619,15 +615,15 @@ export default {
},
},
},
methods: {},
methods: { },
created: function () {},
dscinsflgChang() {
if (this.model.brdgrp.rec.dscinsflg === 'X') {
this.model.brdgrp.rec.docsta = 'H';
} else {
this.model.brdgrp.rec.docsta = 'G';
}
},
// dscinsflgChang() {
// if (this.model.brdgrp.rec.dscinsflg === "X") {
// this.model.brdgrp.rec.docsta = "H";
// } else {
// this.model.brdgrp.rec.docsta = "G";
// }
// },
};
</script>
<style>
......
......@@ -14,26 +14,27 @@
</div>
</template>
<script>
import event from '../event';
import Litdckp from './Litdckp';
import Docpre from './Docpre';
import Srmp from './Srmp';
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Litdckp from "./Litdckp";
import Docpre from "./Docpre";
import Srmp from "./Srmp";
import event from '../event'
export default {
components:{
'm-litdckp': Litdckp,
'm-docpre': Docpre,
'm-srmp': Srmp,
"m-litdckp": Litdckp,
"m-docpre": Docpre,
"m-srmp": Srmp,
},
inject: ['root'],
props: ['model', 'codes'],
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ['litdckp'],
activeNames: ["litdckp"],
};
},
methods: {},
methods: { },
created: function () {},
};
</script>
......
......@@ -28,61 +28,54 @@
<c-input :disabled="this.typ1" v-model="model.brdgrp.srm.djuref" maxlength="40" placeholder="请输入货权单据编号"></c-input>
</el-form-item>
</c-col>
</el-col>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import event from '../event'
import commonProcess from '~/mixin/commonProcess';
export default {
inject: ['root'],
props:['model','codes'],
mixins: [commonProcess,event],
props:["model","codes"],
mixins: [event],
data(){
return {
typ1:true
}
},
watch:{
'model.brdgrp.srm.djutyp':{
immediate:true,
handler(val,oldval){
if(this.model.brdgrp.srm.djutyp == 'D'){
this.typ1 = true
// ommonProcess里的 changeFormItemRequired (property,Boolean)
this.changeFormItemRequired('brdgrp.srm.djuusr', false)
this.changeFormItemRequired('brdgrp.srm.djudat', false)
this.changeFormItemRequired('brdgrp.srm.djuref', false)
this.model.brdgrp.srm.djuusr =''
this.model.brdgrp.srm.djudat =''
this.model.brdgrp.srm.djuref =''
// watch:{
// "model.brdgrp.srm.djutyp":{
// immediate:true,
// handler(val,oldval){
// if(this.model.brdgrp.srm.djutyp == 'D'){
// this.typ1 = true
// // ommonProcess里的 changeFormItemRequired (property,Boolean)
// this.changeFormItemRequired('brdgrp.srm.djuusr', false)
// this.changeFormItemRequired('brdgrp.srm.djudat', false)
// this.changeFormItemRequired('brdgrp.srm.djuref', false)
// this.model.brdgrp.srm.djuusr =''
// this.model.brdgrp.srm.djudat =''
// this.model.brdgrp.srm.djuref =''
}else if(this.model.brdgrp.srm.djutyp == ''){
this.typ1 = true
this.changeFormItemRequired('brdgrp.srm.djuusr', false)
this.changeFormItemRequired('brdgrp.srm.djudat', false)
this.changeFormItemRequired('brdgrp.srm.djuref', false)
}
else{
this.typ1 = false
this.changeFormItemRequired('brdgrp.srm.djuusr', true)
this.changeFormItemRequired('brdgrp.srm.djudat', true)
this.changeFormItemRequired('brdgrp.srm.djuref', true)
}
}
}
// }else if(this.model.brdgrp.srm.djutyp == ''){
// this.typ1 = true
// this.changeFormItemRequired('brdgrp.srm.djuusr', false)
// this.changeFormItemRequired('brdgrp.srm.djudat', false)
// this.changeFormItemRequired('brdgrp.srm.djuref', false)
// }
// else{
// this.typ1 = false
// this.changeFormItemRequired('brdgrp.srm.djuusr', true)
// this.changeFormItemRequired('brdgrp.srm.djudat', true)
// this.changeFormItemRequired('brdgrp.srm.djuref', true)
// }
// }
// }
},
methods:{},
created:function(){
}
// },
methods:{ },
}
</script>
<style>
......
......@@ -10,6 +10,8 @@
<el-button size="small">智能提示</el-button>
/div>
-->
<el-form
:model="model"
:rules="rules"
......@@ -39,21 +41,12 @@
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="表外记账" name="engp">
<c-content>
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod">
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
......@@ -61,9 +54,16 @@
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<m-glentry :model="model" :codes="codes" />
<m-glentry :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000510 -->
<!-- <el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes" />
</c-content>
</el-tab-pane> -->
<!--PD000000 -->
<el-tab-pane label="附言" name="coninfp">
......@@ -87,77 +87,72 @@
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
</c-function-btn>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectGridEtyPromptData"
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-grid-ety-prompt-dialog>
</c-function-btn>
<!-- 选择数据的表格弹框 -->
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
</c-page>
</div>
</template>
<script>
import CodeTable from '~/config/CodeTable';
import formRules from '../model/check';
import operationFunc from '~/mixin/operationFunc';
import Ovwp from './Ovwp';
import Litdck from '../model';
import event from '../event';
import Litdckp from './Litdckp';
import Docpre from './Docpre';
// import Engp from './Engp'
// import Setpan from './Setpan'
// import Coninfp from './Coninfp'
// import Docpan from './Docpan'
// import Doctre from './Doctre'
// import Limitbody from './Limitbody';
import Srmp from './Srmp';
import Engp from '~/components/business/engp/views';
import Ccvpan from '~/components/business/ccvpan/views';
import Coninfp from '~/components/business/coninfp/views';
import Docpan from '~/components/business/docpan/views';
import Doctre from '~/components/business/doctre/views';
import Setmod from '~/components/business/setmod/views';
import Glentry from '~/components/business/glentry/views';
// import Limitbody from './Limitbody';
import Limitbody from '~/components/business/limitbody/views';
import event from '../event'
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Ovwp from "./Ovwp";
import Litdckp from "./Litdckp";
import Docpre from "./Docpre";
import Srmp from "./Srmp";
import Engp from "~/components/business/engp/views";
import Coninfp from "~/components/business/coninfp/views";
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody"
import Setmod from "~/components/business/setmod/views";
import Glentry from "~/components/business/glentry/views";
import Docpan from "~/components/business/docpan/views";
import operationFunc from "~/mixin/operationFunc";
import formRules from '../model/check'
import Litdck from "../model";
export default {
name: 'Litdck',
name: "Litdck",
components: {
'm-ovwp': Ovwp,
'm-litdckp': Litdckp,
'm-docpre': Docpre,
'm-engp': Engp,
'm-ccvpan': Ccvpan,
'm-coninfp': Coninfp,
'm-docpan': Docpan,
'm-doctre': Doctre,
'm-limitbody': Limitbody,
'm-setmod': Setmod,
'm-glentry': Glentry,
'm-srmp': Srmp,
"m-ovwp": Ovwp,
"m-litdckp": Litdckp,
"m-docpre": Docpre,
"m-engp": Engp,
"m-coninfp": Coninfp,
"m-doctre": Doctre,
"m-limitbody": Limitbody,
"m-srmp": Srmp,
"m-setmod": Setmod,
"m-glentry": Glentry,
"m-docpan": Docpan
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
mixins: [event,operationFunc], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: 'ovwp',
trnName: 'litdck',
tabVal: "ovwp",
trnName: "litdck",
model: new Litdck().data,
rules: formRules,
codes: { ...CodeTable },
activeNames: ['engp'],
activeNames: ["engp"],
promptData: {
title: 'Select a Party',
columns: [
......@@ -199,12 +194,15 @@ export default {
}
],
data: []
},
}
};
},
methods: {
},
mounted () {
this.init()
},
};
</script>
<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