Commit e1101691 by WF1020

litopn暂存修改

parent 1b4bf460
import Api from '~/service/Api';
import { getTrnNameByInr } from "~/service/business/common";
import moment from 'moment';
export default {
methods: {
async handleSearch() {
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == '') {
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if (!opndatto || opndatto == '') {
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let params = {
...this.model.infcon,
fenlishi: this.model.fenlishi,
seapurpos: this.model.seapurpos,
seagtyp: this.model.seagtyp,
fromflg: this.model.fromflg,
cmtflg: this.model.cmtflg,
fingua: this.model.fingua,
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
opndatfrom:moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:moment(opndatto).format('YYYY-MM-DD'),
};
let rtnmsg = await Api.post('/service/inflid/getList', params);
if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = [];
this.stmData.data = rtnmsg.data.list;
this.pagination.total = rtnmsg.data.total;
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async handleReset() {
this.model.infcon.seaownref = '';
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.isGuarantee = '';
this.model.infcon.nam = '';
this.model.infcon.pty.extkey = '';
this.model.infcon.seapty = '';
this.model.infcon.searef = '';
this.model.infcon.pty.nam = '';
this.model.infcon.searol = '';
this.model.infcon.usr.extkey = '';
this.model.infcon.seasta = '';
this.model.infcon.seacur = '';
this.model.infcon.seaamtfr = '';
this.model.infcon.seaamtto = '';
this.model.seagtyp = '';
this.model.infcon.relflg = '';
this.model.infcon.hndtyp = '';
this.model.infcon.cxmflg = '';
this.model.seapurpos = '';
this.model.seahndtyp = '';
this.model.infcon.segtyp = '';
this.model.fromflg = '';
this.model.fenlishi = '';
this.model.cmtflg = '';
this.model.fingua = '';
},
// pageSize改变
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pagination.pageIndex = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pagination.pageIndex = val;
this.handleSearch();
},
toLitpop() {
this.$router.history.push('/business/litpop');
},
toLitopn() {
// 点击开立,清空从待经办进来的时候带的行参数
localStorage.setItem('row_gitopn', null)
this.$router.history.push('/business-new/litopn');
},
toLetopn() {
this.$router.history.push('/business-new/letopn');
},
// 详情
async details(row) {
const params = {
//根据xx字段 查询详情表的数据
ownref: row.ownref,
};
const res = await Api.post('/service/inflid/getDetailByOwnref', params);
if (res.respCode === SUCCESS) {
this.trnData.data = res.data;
}
},
// 关闭详情弹框
closeDetailsDialog(refId) {
this.$refs[refId].doClose();
console.log('close');
},
// 处理
async handler(row) {
this.initdialog = true;
this.currentHandleRow = row
const params = {
//根据xx字段 查询处理的数据
ownref: row.ownref,
};
const res = await Api.post('/service/inflid/dealWithByOwnref', params);
if (res.respCode === SUCCESS) {
if (res.data) {
this.handlerDataList = []
Object.keys(res.data).map((item) => {
this.handlerDataList.push({
label: item,
value: res.data[item]
})
})
}
}
},
handleClick (btn) {
if (btn.value === 'N') {
return
}
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
this.$router.history.push({
path: filterRoute[0].route,
query: {
inr: this.currentHandleRow.inr
}
});
},
// 关闭处理弹框
closeHandlerDialog() {
this.initdialog = false;
},
/**
* 打开详情页面
* @param {string} inr
*/
display(inr) {
getTrnNameByInr({ inr }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
}
},
};
export default class Inflid{
constructor () {
this.data = {
seagodcod: '',
seacnfdet: '',
sealcrtyp: '',
infcon: {
opndatfrom: '',
opndatto: '',
seaownref: '',
seaamtfr: '',
seasta: '',
seacur: '',
pty: {
extkey: '',
nam: ''
},
usr: {
extkey: ''
},
seaamtto: '',
searol: '',
nam: '',
seapty: '',
searef: ''
}
}
}}
\ No newline at end of file
<template>
<div class="eContainer-search">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false">
<c-content>
<m-infsea :model="model" :codes="codes" ref="infsea" />
</c-content>
</el-form>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Inflid from "../model";
import Infsea from "./Infsea";
export default {
name: 'Inflid',
components:{
"m-infsea" : Infsea,
},
provide() {
return {
root: this
}
}, // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "inflid",
model: new Inflid().data,
rules: null,
codes:{...CodeTable},
}
},
methods:{
getInidatfro() {
let datetime = new Date();
datetime = datetime.setDate(datetime.getDate() - 10);
this.model.infcon.opndatfrom = new Date(datetime);
}
},
mounted () {
this.getInidatfro()
},
}
</script>
<style scoped>
</style>
...@@ -131,8 +131,31 @@ export default { ...@@ -131,8 +131,31 @@ export default {
this.model.lidgrp.rec.ownref = res.data; this.model.lidgrp.rec.ownref = res.data;
} }
}, },
onSeainf() {}, // 初始化开立类型码表下拉列表
async onExtkey(e) {}, async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
},
gidgrp: {
rec: {
purpos: this.model.gidgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/litopn/initHndtyp', params);
if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data);
}
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// 支出目的修改--联动保函开立类型
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
}, },
}; };
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
@click="onAvbpDet"
icon="el-icon-info" icon="el-icon-info"
> >
</c-button> </c-button>
...@@ -135,7 +134,6 @@ ...@@ -135,7 +134,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf('lidgrp.drw.pts.extkey')"
icon="el-icon-search" icon="el-icon-search"
> >
...@@ -145,7 +143,6 @@ ...@@ -145,7 +143,6 @@
size="small" size="small"
type="primary" type="primary"
:disabled="this.flag2" :disabled="this.flag2"
@click="onDrwpDet"
icon="el-icon-info" icon="el-icon-info"
> >
</c-button> </c-button>
...@@ -252,7 +249,6 @@ ...@@ -252,7 +249,6 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="onPreperButtxmsel"
></c-button> ></c-button>
</template> </template>
</c-fullbox> </c-fullbox>
...@@ -275,7 +271,6 @@ ...@@ -275,7 +271,6 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="onChariaButtxmsel"
></c-button> ></c-button>
</template> </template>
</c-fullbox> </c-fullbox>
...@@ -344,9 +339,7 @@ export default { ...@@ -344,9 +339,7 @@ export default {
}; };
}, },
methods: { methods: {
onAvbpDet() {
console.log(this.model.lidgrp.rec.avbby);
},
}, },
created: function () {}, created: function () {},
watch: { watch: {
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px" style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf"
icon="el-icon-search" icon="el-icon-search"
> >
</c-button> </c-button>
...@@ -69,7 +68,6 @@ ...@@ -69,7 +68,6 @@
style="margin-left: 10px; padding: 0 12px" style="margin-left: 10px; padding: 0 12px"
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="onExtkey"
> >
</c-button> </c-button>
</template> </template>
...@@ -384,7 +382,6 @@ ...@@ -384,7 +382,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf('lidgrp.apl.pts.extkey')"
icon="el-icon-search" icon="el-icon-search"
> >
</c-button> </c-button>
...@@ -392,7 +389,6 @@ ...@@ -392,7 +389,6 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
@click="onAplpDet"
icon="el-icon-info" icon="el-icon-info"
> >
</c-button> </c-button>
...@@ -447,7 +443,6 @@ ...@@ -447,7 +443,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf('lidgrp.adv.pts.extkey')"
icon="el-icon-search" icon="el-icon-search"
> >
</c-button> </c-button>
...@@ -455,7 +450,6 @@ ...@@ -455,7 +450,6 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
@click="onAdvpDet"
icon="el-icon-info" icon="el-icon-info"
> >
</c-button> </c-button>
...@@ -506,7 +500,6 @@ ...@@ -506,7 +500,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf('lidgrp.ben.pts.extkey')"
icon="el-icon-search" icon="el-icon-search"
> >
</c-button> </c-button>
...@@ -514,7 +507,6 @@ ...@@ -514,7 +507,6 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
@click="onBenpDet"
icon="el-icon-info" icon="el-icon-info"
> >
</c-button> </c-button>
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf('lidgrp.ini.pts.extkey')"
icon="el-icon-search" icon="el-icon-search"
> >
...@@ -38,7 +37,7 @@ ...@@ -38,7 +37,7 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-info" icon="el-icon-info"
@click="onInipDet"
> >
</c-button> </c-button>
...@@ -86,7 +85,6 @@ ...@@ -86,7 +85,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf('lidgrp.rmb.pts.extkey')"
icon="el-icon-search" icon="el-icon-search"
> >
...@@ -96,7 +94,6 @@ ...@@ -96,7 +94,6 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-info" icon="el-icon-info"
@click="onRmbpDet"
> >
</c-button> </c-button>
</template> </template>
...@@ -144,7 +141,6 @@ ...@@ -144,7 +141,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf('lidgrp.con.pts.extkey')"
icon="el-icon-search" icon="el-icon-search"
> >
...@@ -153,7 +149,6 @@ ...@@ -153,7 +149,6 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
@click="onConpDet"
icon="el-icon-info" icon="el-icon-info"
> >
...@@ -206,7 +201,6 @@ ...@@ -206,7 +201,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf('lidgrp.a2b.pts.extkey')"
icon="el-icon-search" icon="el-icon-search"
> >
...@@ -215,7 +209,6 @@ ...@@ -215,7 +209,6 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
@click="onA2bpDet"
icon="el-icon-info" icon="el-icon-info"
> >
...@@ -267,7 +260,6 @@ ...@@ -267,7 +260,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf('lidgrp.avb.pts.extkey')"
icon="el-icon-search" icon="el-icon-search"
> >
...@@ -276,7 +268,6 @@ ...@@ -276,7 +268,6 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
@click="onAvbpDet"
icon="el-icon-info" icon="el-icon-info"
> >
</c-button> </c-button>
......
...@@ -93,20 +93,13 @@ ...@@ -93,20 +93,13 @@
</c-tabs> </c-tabs>
</el-form> </el-form>
<!-- 选择数据的表格弹框 -->
<c-grid-ety-prompt-dialog <c-grid-ety-prompt-dialog
ref="etyDialog" ref="etyDialog"
:promptData="promptData" :promptData="promptData"
@select-ety="selectGridEtyPromptData" @select-ety="selectGridEtyPromptData"
> >
</c-grid-ety-prompt-dialog> </c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData1"
@select-ety="selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
<c-function-btn <c-function-btn
:handleSubmit="handleSubmit" :handleSubmit="handleSubmit"
:handleCheck="handleCheck" :handleCheck="handleCheck"
...@@ -121,10 +114,9 @@ import Api from "~/service/Api"; ...@@ -121,10 +114,9 @@ import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import operationFunc from '~/mixin/operationFunc'; import operationFunc from '~/mixin/operationFunc';
import Litopn from "../model"; import Litopn from "../model";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs"; import formRules from '../model/check'
import Check from "../model/check"; import event from "../event";
import Event from "../event";
import Ovwp from "./Ovwp"; import Ovwp from "./Ovwp";
import Aamp from "./Aamp"; import Aamp from "./Aamp";
import Detp from "./Detp"; import Detp from "./Detp";
...@@ -180,7 +172,7 @@ export default { ...@@ -180,7 +172,7 @@ export default {
root: this, root: this,
}; };
}, },
mixins: [operationFunc, Event], mixins: [operationFunc, event],
computed: { computed: {
...mapState({ ...mapState({
toHandleRowData: (state) => state.litopn.toHandleRowData toHandleRowData: (state) => state.litopn.toHandleRowData
...@@ -191,7 +183,7 @@ export default { ...@@ -191,7 +183,7 @@ export default {
tabVal: "ovwp", tabVal: "ovwp",
trnName: "litopn", trnName: "litopn",
model: new Litopn().data, model: new Litopn().data,
rules: Check, rules: formRules,
codes: { ...CodeTable }, codes: { ...CodeTable },
activeNames: ["engp"], activeNames: ["engp"],
promptData: { promptData: {
...@@ -236,18 +228,14 @@ export default { ...@@ -236,18 +228,14 @@ export default {
], ],
data: [] data: []
}, },
promptData1: {
title: '',
columns: [],
data:[]
}
}; };
}, },
methods: { methods: {
}, },
created: async function () { mounted () {
console.log("进入litopn交易"); this.init()
this.init(); this.queryHndtypCodeTableList(this.trnName)
}, },
}; };
</script> </script>
......
...@@ -439,8 +439,8 @@ export default { ...@@ -439,8 +439,8 @@ export default {
let routeQuery = this.$route.query let routeQuery = this.$route.query
const params = { const params = {
//根据inr 查询详情表的数据 //根据inr 查询详情表的数据
// selsptinr: routeQuery.inr selsptinr: routeQuery.inr
selsptinr: '00006885' // selsptinr: '00006885'
} }
const res = await Api.post('/service/sptsel/detail', params); const res = await Api.post('/service/sptsel/detail', params);
if (res.respCode === SUCCESS) { if (res.respCode === SUCCESS) {
......
...@@ -35,6 +35,6 @@ const Business = [ ...@@ -35,6 +35,6 @@ const Business = [
{ path: 'brtacp', component: () => import('~/business/brtacp/views'), name: 'brtacp', meta: { title: '进口信用证单据接受不符点' } }, { path: 'brtacp', component: () => import('~/business/brtacp/views'), name: 'brtacp', meta: { title: '进口信用证单据接受不符点' } },
{ path: 'litsel', component: () => import('~/business/litsel/views'), name: 'litsel', meta: { title: '进口信用证入口交易' } }, { path: 'litsel', component: () => import('~/business/litsel/views'), name: 'litsel', meta: { title: '进口信用证入口交易' } },
{ path: 'brtset', component: () => import('~/business/brtset/views'), name: 'brtset', meta: { title: '进口信用证单据进口付汇' } }, { path: 'brtset', component: () => import('~/business/brtset/views'), name: 'brtset', meta: { title: '进口信用证单据进口付汇' } },
{ path: 'inflid', component: () => import('~/business/inflid/views'), name: 'inflid', meta: { title: '信用证入口交易' } },
] ]
export default Business export default Business
\ No newline at end of file
...@@ -276,7 +276,7 @@ export default { ...@@ -276,7 +276,7 @@ export default {
if (menuItem.pntmiu === undefined || menuItem.pntmiu === "") { if (menuItem.pntmiu === undefined || menuItem.pntmiu === "") {
const children = []; const children = [];
// 此处为了兼容新的保函模块 // 此处为了兼容新的保函模块
if (menuItem.inifrm === '13') { if (['4', '13'].includes(menuItem.inifrm)) {
menuItem.path = "/business-new"; menuItem.path = "/business-new";
} else { } else {
menuItem.path = "/business"; menuItem.path = "/business";
......
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