Commit 8488fd80 by jianglong

修改DBAADD

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