Commit 55127020 by nanrui

infdet,infbfd测试bug修改

parent f6a9abe8
......@@ -2,7 +2,7 @@ import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onInfbutSearow () {
async onInfbutSearow() {
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -12,7 +12,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async handleSearch () {
async handleSearch() {
this.stmData.data = [];
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == '') {
......@@ -34,11 +34,26 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async handleReset () {
async handleReset() {
this.model.infcon.seaownref = ""
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.mylx = "";
this.model.infcon.nam = "";
this.model.infcon.searef = "";
this.model.infcon.pty.extkey = "";
this.model.infcon.pty.nam = "";
this.model.infcon.seapty = "";
this.model.infcon.searol = "";
this.model.infcon.usr.extkey = "";
this.model.infcon.seasta = "";
this.model.infcon.seacur = "";
this.model.infcon.seaamtfr = "0.00";
this.model.infcon.seaamtto = "0.00";
this.model.sealcrtyp = "";
this.model.elcflg = "";
},
async onInfbutDsp () {
async onInfbutDsp() {
let rtnmsg = await this.executeRule("infbut.dsp")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -48,7 +63,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutUserow () {
async onInfbutUserow() {
let rtnmsg = await this.executeRule("infbut.userow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -58,7 +73,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutClr () {
async onInfbutClr() {
let rtnmsg = await this.executeRule("infbut.clr")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -68,7 +83,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutButprt () {
async onInfbutButprt() {
let rtnmsg = await this.executeRule("infbut.butprt")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -78,7 +93,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutExi () {
async onInfbutExi() {
let rtnmsg = await this.executeRule("infbut.exi")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -88,7 +103,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRecpanButgetref () {
async onRecpanButgetref() {
let rtnmsg = await this.executeRule("recpan.butgetref")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -98,7 +113,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onBenpDet () {
async onBenpDet() {
let rtnmsg = await this.executeRule("benp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -108,7 +123,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onAplpDet () {
async onAplpDet() {
let rtnmsg = await this.executeRule("aplp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -118,7 +133,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLcrdftatButtxmsel () {
async onLcrdftatButtxmsel() {
let rtnmsg = await this.executeRule("lcrdftat.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -128,7 +143,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onPreperButtxmsel () {
async onPreperButtxmsel() {
let rtnmsg = await this.executeRule("preper.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -138,7 +153,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLcrgodButtxmsel () {
async onLcrgodButtxmsel() {
let rtnmsg = await this.executeRule("lcrgod.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -148,7 +163,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLcrdocButtxmsel () {
async onLcrdocButtxmsel() {
let rtnmsg = await this.executeRule("lcrdoc.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -158,7 +173,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onAdlcndButtxmsel () {
async onAdlcndButtxmsel() {
let rtnmsg = await this.executeRule("adlcnd.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -168,7 +183,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInsbnkButtxmsel () {
async onInsbnkButtxmsel() {
let rtnmsg = await this.executeRule("insbnk.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -178,7 +193,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfconButshw () {
async onInfconButshw() {
let rtnmsg = await this.executeRule("infcon.butshw")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -188,7 +203,7 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfconButshword () {
async onInfconButshword() {
let rtnmsg = await this.executeRule("infcon.butshword")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......
......@@ -3,64 +3,35 @@
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-form
class="m-table-search-form"
ref="paramsForm"
label-position="right"
label-width="110px"
size="small"
>
<el-form class="m-table-search-form" ref="paramsForm" label-position="right" label-width="110px"
size="small">
<c-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="Own Reference"
prop="infcon.seaownref"
>
<c-input
v-model="model.infcon.seaownref"
maxlength="16"
placeholder="请输入Own Reference"
></c-input>
<el-form-item label="Own Reference" prop="infcon.seaownref">
<c-input v-model="model.infcon.seaownref" maxlength="16"
placeholder="请输入Own Reference"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="Name" prop="infcon.nam">
<c-input
v-model="model.infcon.nam"
maxlength="40"
placeholder="请输入Name"
></c-input>
<c-input v-model="model.infcon.nam" maxlength="40" placeholder="请输入Name"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="Opening between"
prop="infcon.opndatfrom"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.infcon.opndatfrom"
style="width: 100%"
placeholder="请选择Opening between"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.infcon.opndatto"
style="width: 100%"
placeholder="请选择Open Date to"
value-format="yyyy-MM-dd"
></c-date-picker>
</c-col>
<el-form-item label="Opening between" prop="infcon.opndatfrom" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.infcon.opndatfrom" style="width: 100%"
placeholder="请选择Opening between" value-format="yyyy-MM-dd"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.infcon.opndatto" style="width: 100%"
placeholder="请选择Open Date to" value-format="yyyy-MM-dd"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</c-col>
......@@ -71,61 +42,36 @@
<c-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="Select Single Party"
prop="infcon.pty.extkey"
>
<c-input
v-model="model.infcon.pty.extkey"
maxlength="24"
placeholder="请输入Select Single Party"
></c-input>
<el-form-item label="Select Single Party" prop="infcon.pty.extkey">
<c-input v-model="model.infcon.pty.extkey" maxlength="24"
placeholder="请输入Select Single Party"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="Party Name"
prop="infcon.pty.nam"
>
<c-input
v-model="model.infcon.pty.nam"
maxlength="40"
placeholder="请输入Party Name"
></c-input>
<el-form-item label="Party Name" prop="infcon.pty.nam">
<c-input v-model="model.infcon.pty.nam" maxlength="40"
placeholder="请输入Party Name"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="Party Name/BIC"
prop="infcon.seapty"
>
<c-input
v-model="model.infcon.seapty"
maxlength="24"
placeholder="请输入Party Name/BIC"
></c-input>
<el-form-item label="Party Name/BIC" prop="infcon.seapty">
<c-input v-model="model.infcon.seapty" maxlength="24"
placeholder="请输入Party Name/BIC"></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="Role"
prop="infcon.searol"
>
<c-select
v-model="model.infcon.searol"
style="width: 100%"
placeholder="请选择Role"
:code="codes.payrol"
>
<el-form-item label="Role" prop="infcon.searol">
<c-select v-model="model.infcon.searol" style="width: 100%"
placeholder="请选择Role" :code="codes.payrol">
</c-select>
</el-form-item>
</c-col>
<!--
<!--
<c-col :span="8">
<el-form-item
label="Opening between"
......@@ -141,27 +87,15 @@
</c-col> -->
<c-col :span="8">
<el-form-item
label="Party Reference"
prop="infcon.searef"
>
<c-input
v-model="model.infcon.searef"
maxlength="16"
placeholder="请输入Party Reference"
></c-input>
<el-form-item label="Party Reference" prop="infcon.searef">
<c-input v-model="model.infcon.searef" maxlength="16"
placeholder="请输入Party Reference"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="Amount to"
prop="infcon.seaamtto"
>
<c-input
v-model="model.infcon.seaamtto"
placeholder="请输入Amount to"
></c-input>
<el-form-item label="Amount to" prop="infcon.seaamtto">
<c-input v-model="model.infcon.seaamtto" placeholder="请输入Amount to"></c-input>
</el-form-item>
</c-col>
......@@ -182,44 +116,24 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="User ID"
prop="infcon.usr.extkey"
>
<c-input
v-model="model.infcon.usr.extkey"
maxlength="8"
placeholder="请输入User ID"
></c-input>
<el-form-item label="User ID" prop="infcon.usr.extkey">
<c-input v-model="model.infcon.usr.extkey" maxlength="8"
placeholder="请输入User ID"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="Status"
prop="infcon.seasta"
>
<c-select
v-model="model.infcon.seasta"
style="width: 100%"
placeholder="请选择Status"
:code="codes.seasta"
>
<el-form-item label="Status" prop="infcon.seasta">
<c-select v-model="model.infcon.seasta" style="width: 100%"
placeholder="请选择Status" :code="codes.seasta">
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="Currency"
prop="infcon.seacur"
>
<c-select
v-model="model.infcon.seacur"
style="width: 100%"
placeholder="请选择Currency"
:code="codes.curtxt1"
>
<el-form-item label="Currency" prop="infcon.seacur">
<c-select v-model="model.infcon.seacur" style="width: 100%"
placeholder="请选择Currency" :code="codes.curtxt1">
</c-select>
</el-form-item>
</c-col>
......@@ -227,56 +141,32 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="Amount between"
prop="infcon.seaamtfr"
>
<c-input
v-model="model.infcon.seaamtfr"
placeholder="请输入Amount between"
></c-input>
<el-form-item label="Amount between" prop="infcon.seaamtfr">
<c-input v-model="model.infcon.seaamtfr" placeholder="请输入Amount between">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="是否通过电证系统"
prop="elcflg"
>
<c-select
v-model="model.elcflg"
style="width: 100%"
placeholder="请选择是否通过电证系统"
:code="codes.elcflg"
>
<el-form-item label="是否通过电证系统" prop="elcflg">
<c-select v-model="model.elcflg" style="width: 100%" placeholder="请选择是否通过电证系统"
:code="codes.elcflg">
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label=""
>
<c-checkbox
v-model="model.infcon.forflg"
>转卖单据</c-checkbox
>
<el-form-item label="">
<c-checkbox v-model="model.infcon.forflg">转卖单据</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="Document Type"
prop="seadoctypcod"
>
<c-select
v-model="model.seadoctypcod"
style="width: 100%"
placeholder="请选择Document Type"
:code="codes.brdtyp"
>
<el-form-item label="Document Type" prop="seadoctypcod">
<c-select v-model="model.seadoctypcod" style="width: 100%"
placeholder="请选择Document Type" :code="codes.brdtyp">
</c-select>
</el-form-item>
</c-col>
......@@ -300,79 +190,44 @@
-->
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column
fixed="right"
prop="op"
label="操作"
width="150px"
>
<el-table-column fixed="right" prop="op" label="操作" width="150px">
<template slot="header">
<c-col :span="11" style="text-align: left"
><span>操作</span></c-col
>
<c-col :span="12" style="text-align: right"
><c-button icon="el-icon-s-tools"></c-button
></c-col>
<c-col :span="11" style="text-align: left"><span>操作</span></c-col>
<c-col :span="12" style="text-align: right">
<c-button icon="el-icon-s-tools"></c-button>
</c-col>
</template>
<template slot-scope="scope">
<el-popover
placement="top-start"
title="历史信息"
width="800"
trigger="click"
:ref="'popover_' + scope.row.IDX"
>
<div
style="
<el-popover placement="top-start" title="历史信息" width="800" trigger="click"
:ref="'popover_' + scope.row.IDX">
<div style="
text-align: right;
margin-top: -30px;
margin-right: 5px;
font-size: 16px;
"
>
<span
class="el-icon-close"
@click="
closeTrn('popover_' + scope.row.IDX)
"
/>
">
<span class="el-icon-close" @click="
closeTrn('popover_' + scope.row.IDX)
" />
</div>
<c-istream-table
:list="trnData.data"
:columns="trnData.columns"
>
<el-table-column
prop="op"
label="操作"
width="0"
>
<c-istream-table :list="trnData.data" :columns="trnData.columns">
<el-table-column prop="op" label="操作" width="0">
<template slot-scope="scope">
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.row['INR'])"
>
<c-button style="margin-left: 0" size="small"
@click="display(scope.row['INR'])">
详情
</c-button>
</template>
</el-table-column>
</c-istream-table>
<c-button
style="margin-left: 0"
size="small"
@click="getTrnInfo(scope.$index, scope.row)"
slot="reference"
>
<c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)"
slot="reference">
详情
</c-button>
</el-popover>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'])"
>
<c-button style="margin-left: 0" size="small" type="primary"
@click="getButtons(scope.row['Reference'])">
处理
</c-button>
<!--
......@@ -447,8 +302,8 @@
</c-col>
</c-row>
-->
<m-busbtn ref="childs" :ownref="ownref" trnCode="detsel" ownrefPath="bfdgrp" tabIndex=3 :model="detselModel" @onChoose="onChoose"></m-busbtn
>
<m-busbtn ref="childs" :ownref="ownref" trnCode="detsel" ownrefPath="bfdgrp" tabIndex=3 :model="detselModel"
@onChoose="onChoose"></m-busbtn>
</div>
</template>
......@@ -469,7 +324,7 @@ export default {
components: { "m-busbtn": BusNavbar },
data() {
return {
detselModel:new DetselModel().data,
detselModel: new DetselModel().data,
ownref: "",
initdialog: false,
dialogTableVisible: false,
......@@ -501,8 +356,8 @@ export default {
'4 12 "Opened" 150 ',
'5 13 "Closed" 150 ',
'14 14 "Cur" 50 ',
'16 15 "Cur" 50 ',
'15 16 "Doc.Amount" 150 ',
'15 15 "Doc.Amount" 150 ',
'16 16 "Cur" 50 ',
'17 17 "Open Amount" 150 ',
],
data: [],
......@@ -510,7 +365,7 @@ export default {
};
},
/*
computed: {
computed: {
tableData() {
// "10000449\t2000007350\t2000007350-001\tBEIJING TESTTEST,BEIJING, CHINA\t\t100080\tBEIJING, CHINA\tTEST TEST1 CO.,LTD."
console.log(this.model.infbut.dspstm.rows)
......@@ -520,20 +375,20 @@ export default {
*/
methods: {
...Event,
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
async getButtons(ownref) {
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" + ownref);
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getDitSelInfo(code) {
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
......@@ -552,6 +407,6 @@ export default {
this.$refs[refId].doClose();
},
},
created: function () {},
created: function () { },
};
</script>
......@@ -696,8 +696,8 @@ export default {
'5 11 "Expired" 150 ',
'6 12 "Closed" 150 ',
'13 13 "Cur" 150 ',
'15 14 "Cur" 150 ',
'14 15 "L/C Amount" 150 ',
'15 15 "Cur" 150 ',
'14 14 "L/C Amount" 150 ',
'16 16 "Open Amount" 150 ',
],
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