Commit 50aeb23a by liaoxing

botame修改

parent 6398b4ce
......@@ -24,11 +24,11 @@ export default {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod:{
trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
}
// trnmod:{
// 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,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
......@@ -160,7 +160,7 @@ export default {
},
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) {
this.$set(this.codes, 'voHndtyp', res.data);
}
......
......@@ -4,36 +4,36 @@ import Utils from "~/utils"
* Botame Check规则
*/
let checkObj = {
"liaall.misamt" :null,
"bodgrp.blk.setinsbo" :null,
"bodgrp.rec.matperbeg" :null,
"bodgrp.rec.matpertyp" :null,
"bodgrp.blk.proins" :null,
"trnmod.swiadd.newamt" :null,
"bodgrp.drr.pts.adrblk" :null,
"bodgrp.dre.adrelc" :null,
"bodgrp.rec.matdat" :null,
"setmod.dspflg" :null,
"bodgrp.col.adrelc" :null,
"bodgrp.col.pts.adrblk" :null,
"bodgrp.col.pts.extkey" :null,
"bodgrp.blk.dftins" :null,
"botp.usr.extkey" :null,
"bodgrp.blk.delins" :null,
"mtabut.coninf.conexedat" :null,
"bodgrp.col.namelc" :null,
"bodgrp.rec.stacty" :null,
"bodgrp.drr.adrelc" :null,
"bodgrp.dre.namelc" :null,
"bodgrp.blk.colins" :null,
"setmod.docamt" :null,
"bodgrp.drr.namelc" :null,
"bodgrp.dre.pts.adrblk" :null,
"bodgrp.blk.othins" :null,
"bodgrp.dre.pts.extkey" :null,
"trnmod.swiadd.newmatdat" :null,
"bodgrp.rec.invtyp" :null,
"bodgrp.drr.pts.extkey" :null,
// "liaall.misamt" :null,
// "bodgrp.blk.setinsbo" :null,
// "bodgrp.rec.matperbeg" :null,
// "bodgrp.rec.matpertyp" :null,
// "bodgrp.blk.proins" :null,
// "trnmod.swiadd.newamt" :null,
// "bodgrp.drr.pts.adrblk" :null,
// "bodgrp.dre.adrelc" :null,
// "bodgrp.rec.matdat" :null,
// "setmod.dspflg" :null,
// "bodgrp.col.adrelc" :null,
// "bodgrp.col.pts.adrblk" :null,
// "bodgrp.col.pts.extkey" :null,
// "bodgrp.blk.dftins" :null,
// "botp.usr.extkey" :null,
// "bodgrp.blk.delins" :null,
// "mtabut.coninf.conexedat" :null,
// "bodgrp.col.namelc" :null,
// "bodgrp.rec.stacty" :null,
// "bodgrp.drr.adrelc" :null,
// "bodgrp.dre.namelc" :null,
// "bodgrp.blk.colins" :null,
// "setmod.docamt" :null,
// "bodgrp.drr.namelc" :null,
// "bodgrp.dre.pts.adrblk" :null,
// "bodgrp.blk.othins" :null,
// "bodgrp.dre.pts.extkey" :null,
// "trnmod.swiadd.newmatdat" :null,
// "bodgrp.rec.invtyp" :null,
// "bodgrp.drr.pts.extkey" :null,
"botamep.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
......
......@@ -40,6 +40,7 @@ export default class Botame{
lescom:"", // Warehouse/Insurance .bodgrp.rec.lescom
shpfro:"", // Shipment from .bodgrp.rec.shpfro
shpto:"", // For Transportation to .bodgrp.rec.shpto
inr: "",
},
cbs:{
max:{
......@@ -148,7 +149,6 @@ export default class Botame{
ptsaddg:[], // .botp.ptsaddp.ptsaddg
},
},
pageId: "", // ctx的key
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
......
<template>
<c-page title="出口托收修改">
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left" 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">
<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">
<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="tabClick">
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-addbcb :model="model" :codes="codes" />
<m-ovwp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<el-tab-pane label="表外记账" name="engp">
<c-content>
<m-docpan :model="model" :codes="codes" />
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</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">
<c-content>
<m-doctre :model="model" :codes="codes" />
<m-doctre :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectMsg"
<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"
>
<!-- <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>
<el-button size="small">拆分报文</el-button>
<el-button size="small">智能提示</el-button> -->
</c-function-btn>
</div>
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</div>
</c-page>
</template>
<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 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 formRules from '../model/check'
import Addbcb from "./Addbcb";
import Amep from "./Amep"
......@@ -101,12 +90,21 @@ import Inst from "./Inst"
import Ptyp from "./Ptyp"
import Instrecp from "./Instrecp"
import Setpan from "~/components/business/setmod/views"
import Glepan from "~/views/Public/Glepan"
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
import Doctre from "~/views/Public/Doctre"
import Engp from "~/views/Public/Engp"
// import Setpan from "~/components/business/setmod/views"
// import Glepan from "~/views/Public/Glepan"
// import Coninfp from "~/views/Public/Coninfp"
// import Docpan from "~/views/Public/Docpan"
// import Doctre from "~/views/Public/Doctre"
// 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 {
......@@ -118,8 +116,9 @@ export default {
"m-inst" : Inst,
"m-ptyp" : Ptyp,
"m-instrecp" : Instrecp,
"m-setpan" : Setpan,
"m-glepan" : Glepan,
"m-setmod" : Setmod,
"m-glentry" : Glentry,
"m-coninfp" : Coninfp,
"m-docpan" : Docpan,
"m-doctre" : Doctre,
......@@ -130,20 +129,61 @@ export default {
root: this
}
},
mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "ovwp",
trnName: "botame",
model: new Botame().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
rules: formRules,
// pattern: Pattern,
// rules: null,
codes: {
...CodeTable,
},
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:{
......@@ -163,7 +203,10 @@ export default {
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
},
mounted () {
this.init()
},
}
</script>
<style>
......
......@@ -140,8 +140,8 @@ export default {
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
botp: {
swiftflg: this.model.botp.swiftflg,
},
gidgrp: {
rec: {
......@@ -150,7 +150,7 @@ export default {
},
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) {
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