Commit 1a29164f by liaoxing

bctrad修改

parent 8bc6c31d
...@@ -4,36 +4,6 @@ import Utils from "~/utils" ...@@ -4,36 +4,6 @@ import Utils from "~/utils"
* Bctrad Check规则 * Bctrad Check规则
*/ */
let checkObj = { let checkObj = {
"liaall.misamt" :null,
"bcdgrp.dre.namelc" :null,
"bcdgrp.rmi.adrelc" :null,
"bcdgrp.blk.dftins" :null,
"bcdgrp.rmi.pts.nam" :null,
"bcdgrp.dre.adrelc" :null,
"bcdgrp.blk.othins" :null,
"bcdgrp.co2.namelc" :null,
"bcdgrp.rmi.namelc" :null,
"bcdgrp.co2.pts.extkey" :null,
"bcdgrp.dre.pts.nam" :null,
"setmod.dspflg" :null,
"bcdgrp.drr.namelc" :null,
"bcdgrp.co2.pts.adrblk" :null,
"bcdgrp.drr.pts.nam" :null,
"bcdgrp.rmi.pts.extkey" :null,
"bcdgrp.drr.adrelc" :null,
"bcdgrp.blk.colins" :null,
"bcdgrp.drr.pts.adrblk" :null,
"mtabut.coninf.conexedat" :null,
"bcdgrp.blk.colinssnm" :null,
"bcdgrp.blk.chgtxt" :null,
"bcdgrp.drr.pts.extkey" :null,
"bcdgrp.co2.adrelc" :null,
"bcdgrp.dre.pts.adrblk" :null,
"setmod.docamt" :null,
"bcdgrp.rmi.pts.ref" :null,
"bcdgrp.dre.pts.extkey" :null,
"bcdgrp.rmi.pts.adrblk" :null,
"bctp.recget.sdamod.dadsnd":[ "bctp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</template> </template>
<script> <script>
import event from "../event" import event from "../event";
//import Addbcb1 from "~/views/Public/Addbcb1"; //import Addbcb1 from "~/views/Public/Addbcb1";
import Coninfp from "~/views/Public/Coninfp"; import Coninfp from "~/views/Public/Coninfp";
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
}, },
methods: { methods: {
...event, ...Event,
handleChange(val) { handleChange(val) {
console.log(val); console.log(val);
}, },
......
...@@ -193,8 +193,7 @@ ...@@ -193,8 +193,7 @@
</div> </div>
</template> </template>
<script> <script>
import commonProcess from "~/mixin/commonProcess"; import event from "../event";
import event from "../event"
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
import Docpre from "~/views/Public/Docpre"; import Docpre from "~/views/Public/Docpre";
...@@ -234,7 +233,7 @@ export default { ...@@ -234,7 +233,7 @@ export default {
} }
}, },
methods: { methods: {
...event ...Event
}, },
created: function () { created: function () {
......
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
<!-- </c-row>--> <!-- </c-row>-->
</template> </template>
<script> <script>
import event from "../event" import event from "../event";
export default { export default {
inject: ['root'], inject: ['root'],
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
} }
}, },
methods: { methods: {
...event ...Event
}, },
created: function () { created: function () {
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
import Bctret from "./Bctret"; import Bctret from "./Bctret";
import Detp from "./Detp"; import Detp from "./Detp";
import Ptyp from "./Ptyp"; import Ptyp from "./Ptyp";
import event from "../event" import event from "../event";
export default { export default {
components: { components: {
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
} }
}, },
methods: { methods: {
...event, ...Event,
handleChange(val) { handleChange(val) {
console.log(val); console.log(val);
} }
......
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event" import event from "../event";
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
export default { export default {
components: { components: {
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
return {}; return {};
}, },
methods: { methods: {
...event, ...Event,
}, },
created: function () {}, created: function () {},
}; };
......
<template> <template>
<c-page title="进口代收二次收单"> <c-page title="出口代收二次收单">
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left" <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right"
size="small" :validate-on-rule-change="false"> size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="业务信息" name="ovwp"> <el-tab-pane label="业务信息" name="ovwp">
<c-content> <c-content>
<m-ovwp :model="model" :codes="codes"/> <m-ovwp :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!-- <el-tab-pane label="统一授信" name="limitbody"> <!--PD000027 -->
<c-content> <el-tab-pane label="表外记账" name="engp">
<m-limitbody :model="model" :codes="codes"/> <c-content>
</c-content> <!-- 表外记账 -->
</el-tab-pane> --> <m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="表外记账" name="engp"> <!--PD000027 -->
<c-content> <el-tab-pane label="费用/账务" name="setmod">
<!-- 表外记账 --> <c-content>
<m-engp :model="model" :codes="codes" /> <m-setmod :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <el-tab-pane label="备查/附言" name="addbcb">
<el-tab-pane label="费用/账务" name="setmod"> <c-content>
<c-content> <m-addbcb :model="model" :codes="codes" />
<m-setmod </c-content>
:model="model" </el-tab-pane>
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<!--PD000027 --> <el-tab-pane label="报文/面函" name="docpan">
<el-tab-pane label="会计分录" name="glepan"> <c-content>
<c-content> <m-docpan :model="model" :codes="codes" />
<m-glentry :model="model" :codes="codes" /> </c-content>
</c-content> </el-tab-pane>
</el-tab-pane>
<el-tab-pane label="备查/附言" name="addbcb"> <el-tab-pane label="附件信息" name="doctre">
<c-content> <c-content>
<m-addbcb :model="model" :codes="codes"/> <m-doctre :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan"> </c-tabs>
<c-content> </el-form>
<m-docpan :model="model" :codes="codes"/> <c-function-btn
</c-content> :handleSubmit="handleSubmit"
</el-tab-pane> :handleCheck="handleCheck"
:handleStash="handleStash"
<el-tab-pane label="附件信息" name="doctre"> >
<c-content> </c-function-btn>
<m-doctre :model="model" :codes="codes"/> </div>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</div>
</c-page> </c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Bctdav from "../model" import Bctrad from "../model"
import formRules from '../model/check' import formRules from '../model/check'
import event from "../event"; import event from "../event";
import operationFunc from "@/mixin/operationFunc";
// import Bctret from "./Bctret"; // import Bctret from "./Bctret";
// import Detp from "./Detp"; // import Detp from "./Detp";
...@@ -91,13 +69,13 @@ ...@@ -91,13 +69,13 @@
import Ovwp from "./Ovwp"; import Ovwp from "./Ovwp";
import Addbcb from "./Addbcb"; import Addbcb from "./Addbcb";
import Engp from "~/components/business/engp/views"; import Engp from "~/components/business/engp/views"
import Setmod from "~/components/business/setmod/views" import Setmod from "~/components/business/setmod/views"
import Coninfp from "~/components/business/coninfp/views"
import Docpan from "~/components/business/docpan/views"
import Doctre from "~/components/business/doctre/views"
import Glentry from "~/components/business/glentry/views"; import Glentry from "~/components/business/glentry/views";
import Coninfp from "~/components/business/coninfp/views"; import operationFunc from "@/mixin/operationFunc";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/views/Public/Doctre"
// import Limitbody from "~/components/business/limitbody/views";
export default { export default {
name: "Bctrad", name: "Bctrad",
...@@ -120,7 +98,7 @@ ...@@ -120,7 +98,7 @@
root: this root: this
} }
}, },
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理 mixins: [operationFunc,event], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
activeNames: ["engp"], activeNames: ["engp"],
...@@ -128,89 +106,92 @@ ...@@ -128,89 +106,92 @@
trnName: "bctrad", trnName: "bctrad",
model: new Bctrad().data, model: new Bctrad().data,
rules: formRules, rules: formRules,
codes: { ...CodeTable }, codes: {
...CodeTable
},
promptData: { promptData: {
title: 'Select a Party', title: 'Select a Party',
columns: [ columns: [
{ {
prop: 'ptyInr', prop: 'ptyInr',
label: 'Party Number' label: 'Party Number'
}, },
{ {
prop: 'inr', prop: 'inr',
label: 'Address Number' label: 'Address Number'
}, },
{ {
prop: 'branch', prop: 'branch',
label: 'Branch Code' label: 'Branch Code'
}, },
{ {
prop: 'bchName', prop: 'bchName',
label: 'Branch Name' label: 'Branch Name'
}, },
{ {
prop: 'adrName', prop: 'adrName',
label: 'Address Name' label: 'Address Name'
}, },
{ {
prop: 'adr1', prop: 'adr1',
label: 'Address1' label: 'Address1'
}, },
{ {
prop: 'locCty', prop: 'locCty',
label: 'City' label: 'City'
}, },
{ {
prop: 'locZip', prop: 'locZip',
label: 'Zip' label: 'Zip'
}, },
{ {
prop: 'bicCode', prop: 'bicCode',
label: 'BIC' label: 'BIC'
} }
], ],
data: [] data: []
}, },
} }
}, },
methods: { methods: {
// myTabClick(tab) { // myTabClick(tab) {
// this.tabClick(tab); // this.tabClick(tab);
// let name = tab.name; // let name = tab.name;
// let rulePath; // let rulePath;
// if (name === "setpan") { // if (name === "setpan") {
// rulePath = "setmod.setpan"; // rulePath = "setmod.setpan";
// } // }
// if (name === "glepan") { // if (name === "glepan") {
// rulePath = "setmod.glemod.glepan"; // rulePath = "setmod.glemod.glepan";
// } // }
// if (name === "docpan") { // if (name === "docpan") {
// rulePath = "trnmod.trndoc.docpan" // rulePath = "trnmod.trndoc.docpan"
// } // }
// if (!!rulePath) { // if (!!rulePath) {
// this.executeRule(rulePath).then((res) => { // this.executeRule(rulePath).then((res) => {
// if (res.respCode == SUCCESS) { // if (res.respCode == SUCCESS) {
// this.updateModel(res.data); // this.updateModel(res.data);
// } // }
// }); // });
// } // }
// } // }
}, },
created: async function () { created: async function () {
console.log("进入bctrad交易"); // console.log("进入bctrad交易");
let rtnmsg = await this.init(this.$route.query) // let rtnmsg = await this.init(this.$route.query)
if (rtnmsg.respCode == SUCCESS) { // if (rtnmsg.respCode == SUCCESS) {
//更新数据 // //更新数据
Utils.copyValueFromVO(this.model, rtnmsg.data); // Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) { // if (this.isInDisplay) {
this.restoreDisplay(); // this.restoreDisplay();
} // }
} else { // } else {
this.$notify.error({ // this.$notify.error({
title: '错误', // title: '错误',
message: '服务请求失败!' // message: '服务请求失败!'
}); // });
} // }
}, },
mounted () { mounted () {
this.init() this.init()
......
<template> <template>
<ReviewWrapper> <ReviewWrapper>
<Bctame></Bctame> <Bctdav></Bctdav>
</ReviewWrapper> </ReviewWrapper>
</template> </template>
<script> <script>
import Bctame from "~/business/bctame/views"; import bctdav from "~/business/bctrad/views";
import { ReviewWrapper } from "~/components/gj-common.min.js"; import { ReviewWrapper } from "~/components/gj-common.min.js";
export default { export default {
name: "ReviewBctame", name: "ReviewBctrad",
components: { ReviewWrapper, Bctame }, components: { ReviewWrapper, Bctdav },
created() {}, created() {},
mounted() {}, mounted() {},
}; };
......
<template>
<ReviewWrapper>
<Bctrad></Bctrad>
</ReviewWrapper>
</template>
<script>
import Bctrad from "~/business/bctrad/views";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "ReviewBctrad",
components: { ReviewWrapper, Bctrad },
created() {},
mounted() {},
};
</script>
<style></style>
...@@ -36,6 +36,7 @@ const Business = [ ...@@ -36,6 +36,7 @@ const Business = [
{ path: 'reviewbotcan', component: () => import('~/review/ReviewBotcan.vue'), name: 'reviewbotcan', meta: { title: '复核-botcan' } }, { path: 'reviewbotcan', component: () => import('~/review/ReviewBotcan.vue'), name: 'reviewbotcan', meta: { title: '复核-botcan' } },
{ path: 'reviewbotame', component: () => import('~/review/ReviewBotame.vue'), name: 'reviewbotame', meta: { title: '复核-botame' } }, { path: 'reviewbotame', component: () => import('~/review/ReviewBotame.vue'), name: 'reviewbotame', meta: { title: '复核-botame' } },
{ path: 'reviewbctacc', component: () => import('~/review/ReviewBctacc.vue'), name: 'reviewbctacc', meta: { title: '复核-bctacc' } }, { path: 'reviewbctacc', component: () => import('~/review/ReviewBctacc.vue'), name: 'reviewbctacc', meta: { title: '复核-bctacc' } },
{ path: 'reviewbctrad', component: () => import('~/review/ReviewBctrad.vue'), name: 'reviewbctrad', meta: { title: '复核-bctrad' } },
......
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