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 {
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 @@
style="margin: 0 0"
size="small"
type="primary"
@click="onAvbpDet"
icon="el-icon-info"
>
</c-button>
......@@ -135,7 +134,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf('lidgrp.drw.pts.extkey')"
icon="el-icon-search"
>
......@@ -145,7 +143,6 @@
size="small"
type="primary"
:disabled="this.flag2"
@click="onDrwpDet"
icon="el-icon-info"
>
</c-button>
......@@ -252,7 +249,6 @@
size="small"
type="primary"
icon="el-icon-search"
@click="onPreperButtxmsel"
></c-button>
</template>
</c-fullbox>
......@@ -275,7 +271,6 @@
size="small"
type="primary"
icon="el-icon-search"
@click="onChariaButtxmsel"
></c-button>
</template>
</c-fullbox>
......@@ -344,9 +339,7 @@ export default {
};
},
methods: {
onAvbpDet() {
console.log(this.model.lidgrp.rec.avbby);
},
},
created: function () {},
watch: {
......
......@@ -21,7 +21,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px"
size="small"
type="primary"
@click="onSeainf"
icon="el-icon-search"
>
</c-button>
......@@ -69,7 +68,6 @@
style="margin-left: 10px; padding: 0 12px"
type="primary"
icon="el-icon-search"
@click="onExtkey"
>
</c-button>
</template>
......@@ -384,7 +382,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf('lidgrp.apl.pts.extkey')"
icon="el-icon-search"
>
</c-button>
......@@ -392,7 +389,6 @@
style="margin: 0 0"
size="small"
type="primary"
@click="onAplpDet"
icon="el-icon-info"
>
</c-button>
......@@ -447,7 +443,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf('lidgrp.adv.pts.extkey')"
icon="el-icon-search"
>
</c-button>
......@@ -455,7 +450,6 @@
style="margin: 0 0"
size="small"
type="primary"
@click="onAdvpDet"
icon="el-icon-info"
>
</c-button>
......@@ -506,7 +500,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf('lidgrp.ben.pts.extkey')"
icon="el-icon-search"
>
</c-button>
......@@ -514,7 +507,6 @@
style="margin: 0 0"
size="small"
type="primary"
@click="onBenpDet"
icon="el-icon-info"
>
</c-button>
......
......@@ -28,7 +28,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf('lidgrp.ini.pts.extkey')"
icon="el-icon-search"
>
......@@ -38,7 +37,7 @@
size="small"
type="primary"
icon="el-icon-info"
@click="onInipDet"
>
</c-button>
......@@ -86,7 +85,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf('lidgrp.rmb.pts.extkey')"
icon="el-icon-search"
>
......@@ -96,7 +94,6 @@
size="small"
type="primary"
icon="el-icon-info"
@click="onRmbpDet"
>
</c-button>
</template>
......@@ -144,7 +141,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf('lidgrp.con.pts.extkey')"
icon="el-icon-search"
>
......@@ -153,7 +149,6 @@
style="margin: 0 0"
size="small"
type="primary"
@click="onConpDet"
icon="el-icon-info"
>
......@@ -206,7 +201,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf('lidgrp.a2b.pts.extkey')"
icon="el-icon-search"
>
......@@ -215,7 +209,6 @@
style="margin: 0 0"
size="small"
type="primary"
@click="onA2bpDet"
icon="el-icon-info"
>
......@@ -267,7 +260,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf('lidgrp.avb.pts.extkey')"
icon="el-icon-search"
>
......@@ -276,7 +268,6 @@
style="margin: 0 0"
size="small"
type="primary"
@click="onAvbpDet"
icon="el-icon-info"
>
</c-button>
......
......@@ -93,20 +93,13 @@
</c-tabs>
</el-form>
<!-- 选择数据的表格弹框 -->
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectGridEtyPromptData"
>
</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
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
......@@ -121,10 +114,9 @@ import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import operationFunc from '~/mixin/operationFunc';
import Litopn from "../model";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "../model/check";
import Event from "../event";
import formRules from '../model/check'
import event from "../event";
import Ovwp from "./Ovwp";
import Aamp from "./Aamp";
import Detp from "./Detp";
......@@ -180,7 +172,7 @@ export default {
root: this,
};
},
mixins: [operationFunc, Event],
mixins: [operationFunc, event],
computed: {
...mapState({
toHandleRowData: (state) => state.litopn.toHandleRowData
......@@ -191,7 +183,7 @@ export default {
tabVal: "ovwp",
trnName: "litopn",
model: new Litopn().data,
rules: Check,
rules: formRules,
codes: { ...CodeTable },
activeNames: ["engp"],
promptData: {
......@@ -236,18 +228,14 @@ export default {
],
data: []
},
promptData1: {
title: '',
columns: [],
data:[]
}
};
},
methods: {
},
created: async function () {
console.log("进入litopn交易");
this.init();
mounted () {
this.init()
this.queryHndtypCodeTableList(this.trnName)
},
};
</script>
......
......@@ -439,8 +439,8 @@ export default {
let routeQuery = this.$route.query
const params = {
//根据inr 查询详情表的数据
// selsptinr: routeQuery.inr
selsptinr: '00006885'
selsptinr: routeQuery.inr
// selsptinr: '00006885'
}
const res = await Api.post('/service/sptsel/detail', params);
if (res.respCode === SUCCESS) {
......
......@@ -35,6 +35,6 @@ const Business = [
{ path: 'brtacp', component: () => import('~/business/brtacp/views'), name: 'brtacp', 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: 'inflid', component: () => import('~/business/inflid/views'), name: 'inflid', meta: { title: '信用证入口交易' } },
]
export default Business
\ No newline at end of file
......@@ -276,7 +276,7 @@ export default {
if (menuItem.pntmiu === undefined || menuItem.pntmiu === "") {
const children = [];
// 此处为了兼容新的保函模块
if (menuItem.inifrm === '13') {
if (['4', '13'].includes(menuItem.inifrm)) {
menuItem.path = "/business-new";
} else {
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