Commit 50aeb23a by liaoxing

botame修改

parent 6398b4ce
...@@ -24,11 +24,11 @@ export default { ...@@ -24,11 +24,11 @@ export default {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod:{ // trnmod:{
trn:JSON.parse(localStorage.getItem('review_'+this.trnName)) // trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
} // }
} }
const res = await Api.post('/service/botacc/init', { const res = await Api.post('/service/botame/init', {
...params, ...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
}, },
transName: trnName.toUpperCase(), transName: trnName.toUpperCase(),
}; };
let res = await Api.post('/service/gitopn/initHndtyp', params); let res = await Api.post('/service/botame/initHndtyp', params);
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data); this.$set(this.codes, 'voHndtyp', res.data);
} }
......
...@@ -4,36 +4,36 @@ import Utils from "~/utils" ...@@ -4,36 +4,36 @@ import Utils from "~/utils"
* Botame Check规则 * Botame Check规则
*/ */
let checkObj = { let checkObj = {
"liaall.misamt" :null, // "liaall.misamt" :null,
"bodgrp.blk.setinsbo" :null, // "bodgrp.blk.setinsbo" :null,
"bodgrp.rec.matperbeg" :null, // "bodgrp.rec.matperbeg" :null,
"bodgrp.rec.matpertyp" :null, // "bodgrp.rec.matpertyp" :null,
"bodgrp.blk.proins" :null, // "bodgrp.blk.proins" :null,
"trnmod.swiadd.newamt" :null, // "trnmod.swiadd.newamt" :null,
"bodgrp.drr.pts.adrblk" :null, // "bodgrp.drr.pts.adrblk" :null,
"bodgrp.dre.adrelc" :null, // "bodgrp.dre.adrelc" :null,
"bodgrp.rec.matdat" :null, // "bodgrp.rec.matdat" :null,
"setmod.dspflg" :null, // "setmod.dspflg" :null,
"bodgrp.col.adrelc" :null, // "bodgrp.col.adrelc" :null,
"bodgrp.col.pts.adrblk" :null, // "bodgrp.col.pts.adrblk" :null,
"bodgrp.col.pts.extkey" :null, // "bodgrp.col.pts.extkey" :null,
"bodgrp.blk.dftins" :null, // "bodgrp.blk.dftins" :null,
"botp.usr.extkey" :null, // "botp.usr.extkey" :null,
"bodgrp.blk.delins" :null, // "bodgrp.blk.delins" :null,
"mtabut.coninf.conexedat" :null, // "mtabut.coninf.conexedat" :null,
"bodgrp.col.namelc" :null, // "bodgrp.col.namelc" :null,
"bodgrp.rec.stacty" :null, // "bodgrp.rec.stacty" :null,
"bodgrp.drr.adrelc" :null, // "bodgrp.drr.adrelc" :null,
"bodgrp.dre.namelc" :null, // "bodgrp.dre.namelc" :null,
"bodgrp.blk.colins" :null, // "bodgrp.blk.colins" :null,
"setmod.docamt" :null, // "setmod.docamt" :null,
"bodgrp.drr.namelc" :null, // "bodgrp.drr.namelc" :null,
"bodgrp.dre.pts.adrblk" :null, // "bodgrp.dre.pts.adrblk" :null,
"bodgrp.blk.othins" :null, // "bodgrp.blk.othins" :null,
"bodgrp.dre.pts.extkey" :null, // "bodgrp.dre.pts.extkey" :null,
"trnmod.swiadd.newmatdat" :null, // "trnmod.swiadd.newmatdat" :null,
"bodgrp.rec.invtyp" :null, // "bodgrp.rec.invtyp" :null,
"bodgrp.drr.pts.extkey" :null, // "bodgrp.drr.pts.extkey" :null,
"botamep.recget.sdamod.dadsnd":[ "botamep.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
......
...@@ -40,6 +40,7 @@ export default class Botame{ ...@@ -40,6 +40,7 @@ export default class Botame{
lescom:"", // Warehouse/Insurance .bodgrp.rec.lescom lescom:"", // Warehouse/Insurance .bodgrp.rec.lescom
shpfro:"", // Shipment from .bodgrp.rec.shpfro shpfro:"", // Shipment from .bodgrp.rec.shpfro
shpto:"", // For Transportation to .bodgrp.rec.shpto shpto:"", // For Transportation to .bodgrp.rec.shpto
inr: "",
}, },
cbs:{ cbs:{
max:{ max:{
...@@ -148,7 +149,6 @@ export default class Botame{ ...@@ -148,7 +149,6 @@ export default class Botame{
ptsaddg:[], // .botp.ptsaddp.ptsaddg ptsaddg:[], // .botp.ptsaddp.ptsaddg
}, },
}, },
pageId: "", // ctx的key
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
......
<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" size="small" :validate-on-rule-change="false"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right"
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> size="small" :validate-on-rule-change="false">
<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>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--费用账务 -->
<el-tab-pane label="费用/账务" name="engp,setpan,glepan">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="表外记账" name="engp">
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="结算" name="setpan">
<!-- 结算 -->
<m-setpan :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="会计分录" name="glepan">
<!-- 分录 -->
<m-glepan :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</c-content>
</el-tab-pane>
<!--备查/附言 -->
<el-tab-pane label="备查/附言" name="addbcb">
<c-content> <c-content>
<m-addbcb :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="docpan"> <el-tab-pane label="表外记账" name="engp">
<c-content> <c-content>
<m-docpan :model="model" :codes="codes" /> <!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<m-glentry :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="附件信息" name="doctre"> <el-tab-pane label="附件信息" name="doctre">
<c-content> <c-content>
<m-doctre :model="model" :codes="codes" /> <m-doctre :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog <c-grid-ety-prompt-dialog
ref="doxpDialog" ref="etyDialog"
:isPty="false" :promptData="promptData"
:promptData="promptData" @select-ety="selectGridEtyPromptData"
@select-ety="selectMsg"
> >
</c-grid-ety-prompt-dialog> </c-grid-ety-prompt-dialog>
<c-function-btn <c-function-btn
:handleSubmit="handleSubmit" :handleSubmit="handleSubmit"
:handleCheck="handleCheck" :handleCheck="handleCheck"
:handleStash="handleStash" :handleStash="handleStash"
> >
<!-- <el-button size="small">备忘录</el-button> </c-function-btn>
<el-button size="small">影像信息</el-button> </div>
<el-button size="small">保存模板</el-button>
<el-button size="small">使用模板</el-button>
<el-button size="small">制裁信息</el-button>
<el-button size="small">拆分报文</el-button>
<el-button size="small">智能提示</el-button> -->
</c-function-btn>
</div>
</c-page> </c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api" // import Api from "~/service/Api"
// import CodeTable from "~/config/CodeTable"
// import Botame from "~/model/Botame"
// import commonProcess from "~/mixin/commonProcess"
// import commonFuncs from "~/mixin/commonFuncs";
// import Check from "~/model/Botame/Check"
// import Default from "~/model/Botame/Default"
// import Pattern from "~/model/Botame/Pattern"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Botame from "~/model/Botame" import Botame from "~/model/Botame"
import commonProcess from "~/mixin/commonProcess" import formRules from '../model/check'
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Botame/Check"
import Default from "~/model/Botame/Default"
import Pattern from "~/model/Botame/Pattern"
import Addbcb from "./Addbcb"; import Addbcb from "./Addbcb";
import Amep from "./Amep" import Amep from "./Amep"
...@@ -101,12 +90,21 @@ import Inst from "./Inst" ...@@ -101,12 +90,21 @@ import Inst from "./Inst"
import Ptyp from "./Ptyp" import Ptyp from "./Ptyp"
import Instrecp from "./Instrecp" import Instrecp from "./Instrecp"
import Setpan from "~/components/business/setmod/views" // import Setpan from "~/components/business/setmod/views"
import Glepan from "~/views/Public/Glepan" // import Glepan from "~/views/Public/Glepan"
import Coninfp from "~/views/Public/Coninfp" // import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan" // import Docpan from "~/views/Public/Docpan"
import Doctre from "~/views/Public/Doctre" // import Doctre from "~/views/Public/Doctre"
import Engp from "~/views/Public/Engp" // import Engp from "~/views/Public/Engp"
import Setmod from "~/components/business/setmod/views"
import Docpan from "~/components/business/docpan/views";
import Engp from "~/components/business/engp/views";
import Doctre from "~/components/business/doctre/views";
import Coninfp from "~/components/business/coninfp/views";
import Glentry from "~/components/business/glentry/views";
import operationFunc from "@/mixin/operationFunc";
import event from "../event"
export default { export default {
...@@ -118,8 +116,9 @@ export default { ...@@ -118,8 +116,9 @@ export default {
"m-inst" : Inst, "m-inst" : Inst,
"m-ptyp" : Ptyp, "m-ptyp" : Ptyp,
"m-instrecp" : Instrecp, "m-instrecp" : Instrecp,
"m-setpan" : Setpan,
"m-glepan" : Glepan, "m-setmod" : Setmod,
"m-glentry" : Glentry,
"m-coninfp" : Coninfp, "m-coninfp" : Coninfp,
"m-docpan" : Docpan, "m-docpan" : Docpan,
"m-doctre" : Doctre, "m-doctre" : Doctre,
...@@ -130,20 +129,61 @@ export default { ...@@ -130,20 +129,61 @@ export default {
root: this root: this
} }
}, },
mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理 mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "ovwp", tabVal: "ovwp",
trnName: "botame", trnName: "botame",
model: new Botame().data, model: new Botame().data,
checkRules: Check, rules: formRules,
defaultRules: Default, // pattern: Pattern,
pattern: Pattern, // rules: null,
rules: null,
codes: { codes: {
...CodeTable, ...CodeTable,
}, },
activeNames:["engp"], activeNames:["engp"],
promptData: {
title: 'Select a Party',
columns: [
{
prop: 'ptyInr',
label: 'Party Number'
},
{
prop: 'inr',
label: 'Address Number'
},
{
prop: 'branch',
label: 'Branch Code'
},
{
prop: 'bchName',
label: 'Branch Name'
},
{
prop: 'adrName',
label: 'Address Name'
},
{
prop: 'adr1',
label: 'Address1'
},
{
prop: 'locCty',
label: 'City'
},
{
prop: 'locZip',
label: 'Zip'
},
{
prop: 'bicCode',
label: 'BIC'
}
],
data: []
},
} }
}, },
methods:{ methods:{
...@@ -163,7 +203,10 @@ export default { ...@@ -163,7 +203,10 @@ export default {
{ {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} },
mounted () {
this.init()
},
} }
</script> </script>
<style> <style>
......
...@@ -140,8 +140,8 @@ export default { ...@@ -140,8 +140,8 @@ export default {
// 初始化保函开立类型码表下拉列表 // 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) { async queryHndtypCodeTableList(trnName) {
let params = { let params = {
gitp: { botp: {
swiftflg: this.model.gitp.swiftflg, swiftflg: this.model.botp.swiftflg,
}, },
gidgrp: { gidgrp: {
rec: { rec: {
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
}, },
transName: trnName.toUpperCase(), transName: trnName.toUpperCase(),
}; };
let res = await Api.post('/service/gitopn/initHndtyp', params); let res = await Api.post('/service/botame/initHndtyp', params);
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data); this.$set(this.codes, 'voHndtyp', res.data);
} }
......
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