Commit b7dcb517 by lianyang

Brtset申报信息页基础数据勾选触发点击页面中的切换tab页事件

parent 53b55700
......@@ -26,7 +26,9 @@ const tabNameToRulePathMapping = {
"dbb": "bopmod.dbbp.basp",
"dbe": "bopmod.dbep.basp",
"dclpp":"cfabpt.recp.dclp.dclpp",
"conp":"cfabpt.recp.conp"
"conp":"cfabpt.recp.conp",
"cfactlp":"cfactlp",//资本项目标签页切换触发点击切换标签页事件
"cnyp1":"cnybop.cnyp1"//跨境人民申报标签页切换触发点击切换标签页事件
}
export default {
......
......@@ -297,13 +297,13 @@ export default {
}
},
methods:{...Event},
created:function(){
this.executeRule("bopmod.dbcp.basp").then((res) => {
if (res.respCode == SUCCESS) {
this.copyValueFromVO(res.data);
}
});
}
// created:function(){
// this.executeRule("bopmod.dbcp.basp").then((res) => {
// if (res.respCode == SUCCESS) {
// this.copyValueFromVO(res.data);
// }
// });
// }
}
</script>
<style>
......
......@@ -297,13 +297,13 @@ export default {
}
},
methods:{...Event},
created:function(){
this.executeRule("bopmod.dbfp.basp").then((res) => {
if (res.respCode == SUCCESS) {
this.copyValueFromVO(res.data);
}
});
}
// created:function(){
// this.executeRule("bopmod.dbfp.basp").then((res) => {
// if (res.respCode == SUCCESS) {
// this.copyValueFromVO(res.data);
// }
// });
// }
}
</script>
<style>
......
......@@ -20,7 +20,8 @@
</el-form-item>
</c-col>
<c-col :span="7" :offset="1">
<c-checkbox v-model="model.bopmod.basflg" :disabled="model.bopmod.szflg==='3'||model.bopmod.szflg===''">基础数据</c-checkbox>
<c-checkbox v-model="model.bopmod.basflg" :disabled="model.bopmod.szflg==='3'||model.bopmod.szflg===''"
@change="changeBasflg">基础数据</c-checkbox>
</c-col>
</c-col>
......@@ -32,6 +33,7 @@
style="width: 100%"
placeholder="请选择"
:disabled="model.bopmod.szflg==='3' || model.bopmod.szflg==='2' ||model.bopmod.szflg===''"
@change="acttypChange"
>
<el-option
v-for="item in codes.acttyp"
......@@ -50,6 +52,7 @@
style="width: 100%"
placeholder="请选择"
:disabled="model.bopmod.szflg==='3' ||model.bopmod.szflg===''"
@change="ownextkeyChange"
>
<el-option
v-for="item in codesOwnextkey"
......@@ -121,6 +124,41 @@ export default {
this.model.bopmod.acttyp = '';
this.model.bopmod.basflg='';
}
},
async changeBasflg(){//基础数据单选框点击触发执行默认方法
// 执行默认方法新写法:executeNotify()不用传参
this.executeNotify().then(res => {
if (res.respCode == SUCCESS){
this.copyValueFromVO(res.data);
}
});
this.$nextTick(()=>{
this.tabClick()
});
},
async ownextkeyChange(){//地区机构号改变触发
this.tabClick()
},
async acttypChange(){
this.tabClick()
},
//Ui页面整合后,申报信息页中的三个小页面漏掉的切换标签页面事件
tabClick(){
if(this.model.bopmod.basflg=="X"){//勾选基础信息,显示出对外/对内付款标签页
switch (this.model.bopmod.szflg) {
case "1"://申报类型选跨境收支
this.eventFunction("bopmod.dbcp.basp")//触发td上的点击切换到对外付款标签页事件
break;
case "2"://申报类型选境内收支
this.eventFunction("bopmod.dbfp.basp")//触发td上的点击切换到境内付款标签页事件
break;
}
// this.executeRule("boppay.dbfp.basp").then((res) => {
// if (res.respCode == SUCCESS) {
// this.copyValueFromVO(res.data);
// }
// });
}
}
},
created: function () {
......
......@@ -126,7 +126,7 @@
</el-tab-pane>
<!--PD000009 -->
<el-tab-pane label="申报信息" name="cnyp">
<el-tab-pane label="申报信息" name="cfactlp,cnyp1">
<c-content>
<m-cnyp :model="model" :codes="codes" />
</c-content>
......
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