Commit 8488fd80 by jianglong

修改DBAADD

parent d9c1eb64
<template>
<div class="eibs-tab">
<!-- S0000015 : 收付汇日期 -->
<c-col :span="12">
<el-form-item :label="$t('bopbut.S0000015')" prop="ctlmod.dbl.reldat">
<c-date-picker type="date" v-model="model.ctlmod.dbl.reldat" style="width:100%" :placeholder="$t('other.please_enter')+$t('bopbut.S0000015')"></c-date-picker>
<c-col :span="12">
<c-col :span="24">
<el-form-item label="收付汇日期" prop="ctlmod.dbl.reldat">
<c-date-picker disabled type="date" v-model="model.ctlmod.dbl.reldat" style="width:100%" placeholder="收付汇日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.bopbut.acttyplab" data-path=".bopbut.acttyplab" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="款项标志" prop="bopbut.acttyp">
<c-select v-model="model.bopbut.acttyp" style="width:100%" :placeholder="$t('other.please_enter')+'款项标志'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="贸易类型" prop="ctlmod.wrkdbl.trdtyp">
<c-select v-model="model.ctlmod.wrkdbl.trdtyp" style="width:100%" :placeholder="$t('other.please_enter')+'贸易类型'">
<c-col :span="24">
<el-form-item label="款项来源" prop="bopbut.acttyp">
<c-select disabled v-model="model.bopbut.acttyp" style="width:100%" placeholder="款项来源">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBopbutSav">
{{$t('butp.C0000006')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBopbutMod">
{{$t('butp.C0000009')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBopbutChk">
{{$t('butp.C0000007')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onBopbutDel">
{{$t('butp.C0000010')}}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.bopbut.boplabel" data-path=".bopbut.boplabel" > </span>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.bopbut.vrfflg">{{$t('bopbut.C0000011')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.bopbut.basflg">{{$t('bopbut.C0000009')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.bopbut.dclflg">{{$t('bopbut.C0000010')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.bopbut.ackflg">{{$t('bopbut.C0000014')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-form-item label="修改/删除原因" prop="bopbut.actiondesc">
<c-input type="textarea" v-model="model.bopbut.actiondesc" maxlength="32" show-word-limit :placeholder="$t('other.please_enter')+'修改/删除原因'" ></c-input>
</c-form-item>
<c-col :span="24">
<el-form-item label="请选择接口数据" prop="">
<c-fullbox>
<c-col :span="8">
<template>
<c-checkbox
disabled
@change="open"
v-model="model.bopbut.basflg"
style="float: left; text-align: center"
>基础信息</c-checkbox
>
</template>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBopbutAdd">
{{$t('bopbut.C0000019')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onButpErr">
{{$t('butp.C0000013')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBopbutExt">
{{$t('butp.CG000004')}}
</c-button>
<c-col :span="8">
<template>
<c-checkbox
disabled
@change="open"
v-model="model.bopbut.dclflg"
style="float: left; text-align: center"
>申报信息</c-checkbox
>
</template>
</c-col>
<c-col :span="8">
<template>
<c-checkbox
disabled
@change="open"
v-model="model.bopbut.vrfflg"
style="float: left; text-align: center"
>管理信息</c-checkbox
>
</template>
</c-col>
</c-fullbox>
</el-form-item>
</c-col>
</c-col >
<c-col :span="12">
</c-col >
</div>
</template>
<script>
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--bopbut PD000000 接口数据 -->
<el-tab-pane :label="$t('bopbut.PD000000')" name="selection">
<m-selection :model="model" :codes="codes"/>
</el-tab-pane>
<!--dbap PD000000 涉外收入申报单-基础信息 -->
<el-tab-pane :label="$t('dbap.PD000000')" name="basp">
<m-basp :model="model" :codes="codes"/>
</el-tab-pane>
<!--dbap PD000001 涉外收入申报单-申报信息 -->
<el-tab-pane :label="$t('dbap.PD000001')" name="dclp">
<m-dclp :model="model" :codes="codes"/>
</el-tab-pane>
<!--dbap PD000002 核销专用联(境外收入)-核销信息 -->
<el-tab-pane :label="$t('dbap.PD000002')" name="vrfp">
<m-vrfp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
<div class="eContainer">
<c-page title="进口信用证开立">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--bopbut PD000000 接口数据 -->
<el-tab-pane label="接口数据" name="selection">
<c-content>
<m-selection :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--dbap PD000000 涉外收入申报单-基础信息 -->
<el-tab-pane label="基础信息" name="basp">
<c-content>
<m-basp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--dbap PD000001 涉外收入申报单-申报信息 -->
<el-tab-pane label="申报信息" name="dclp">
<c-content>
<m-dclp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--dbap PD000002 核销专用联(境外收入)-核销信息 -->
<el-tab-pane label="核销信息" name="vrfp">
<c-content>
<m-vrfp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
......@@ -35,24 +51,23 @@ import Basp from "./Basp"
import Dclp from "./Dclp"
import Vrfp from "./Vrfp"
export default {
name: "Dbaadd",
components:{
"m-selection" : Selection,
"m-basp" : Basp,
"m-dclp" : Dclp,
"m-vrfp" : Vrfp,
components: {
"m-selection": Selection,
"m-basp": Basp,
"m-dclp": Dclp,
"m-vrfp": Vrfp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "",
tabVal: "selection",
trnName: "dbaadd",
trnType: "",
model: new Dbaadd().data,
......@@ -60,34 +75,34 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
codes: { ...CodeTable },
}
},
methods:{
myTabClick(tab){
methods: {
myTabClick(tab) {
this.tabClick(tab)
/**
* do it yourself
**/
* do it yourself
**/
}
},
created:async function(){
created: async function () {
console.log("进入dbaadd交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} else {
this.$notify.error({
title: '错误',
message: '服务请求失败!'
});
}
}
}
</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