Commit 165d8b82 by “yanyuxin”

查询页面code改为中文

parent b632760c
...@@ -83,12 +83,14 @@ ...@@ -83,12 +83,14 @@
<c-select <c-select
v-model="model.infcon.relflg" v-model="model.infcon.relflg"
style="width: 100%" style="width: 100%"
placeholder="请选择Release Status"> placeholder="请选择Release Status"
>
<el-option <el-option
v-for="item in codes.relflg" v-for="item in codes.relflg"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
>
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -147,12 +149,14 @@ ...@@ -147,12 +149,14 @@
<c-select <c-select
v-model="model.infcon.searol" v-model="model.infcon.searol"
style="width: 100%" style="width: 100%"
placeholder="请选择Role"> placeholder="请选择Role"
>
<el-option <el-option
v-for="item in codes.searol" v-for="item in codes.searol"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
>
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -203,7 +207,8 @@ ...@@ -203,7 +207,8 @@
v-for="item in codes.seasta" v-for="item in codes.seasta"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
>
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -255,12 +260,21 @@ ...@@ -255,12 +260,21 @@
</c-col> --> </c-col> -->
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Good's Code " prop="trdgrp.rec.stagod"> <el-form-item label="Good's Code " prop="trdgrp.rec.stagod">
<c-select v-model="model.trdgrp.rec.stagod" style="width:100%" placeholder="请选择Good's Code "> <c-select
<el-option v-for="item in codes.godcod" :key="item.value" :label="item.label" :value="item.value"> v-model="model.trdgrp.rec.stagod"
</el-option> style="width: 100%"
</c-select> placeholder="请选择Good's Code "
>
<el-option
v-for="item in codes.godcod"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
...@@ -293,12 +307,14 @@ ...@@ -293,12 +307,14 @@
<c-select <c-select
v-model="model.infcon.cxmflg" v-model="model.infcon.cxmflg"
style="width: 100%" style="width: 100%"
placeholder="请选择是否显示查询码"> placeholder="请选择是否显示查询码"
>
<el-option <el-option
v-for="item in codes.cxmflg" v-for="item in codes.cxmflg"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
>
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -352,13 +368,19 @@ ...@@ -352,13 +368,19 @@
</c-col> </c-col>
</c-col> </c-col>
</el-row> </el-row>
</el-form> </el-form>
</template> </template>
</c-list-search> </c-list-search>
<c-col style="margin-top: 10px"> <c-col style="margin-top: 10px">
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0" <c-button
@click="toTrtopn">进口融资开立</c-button> class="medium_bcs"
</c-col> size="medium"
type="primary"
style="margin-left: 0"
@click="toTrtopn"
>进口融资开立</c-button
>
</c-col>
<!-- <c-col :span="24" style="margin-top: 10px"> <!-- <c-col :span="24" style="margin-top: 10px">
<c-button <c-button
class="medium_bcs" class="medium_bcs"
...@@ -372,76 +394,86 @@ ...@@ -372,76 +394,86 @@
<!-- <el-row> --> <!-- <el-row> -->
<c-col :span="24"> <c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true"> <c-istream-table
<el-table-column fixed="right" prop="op" label="操作" width="140px"> :list="stmData.data"
<template slot="header"> :columns="stmData.columns"
<c-col :span="11" style="text-align: left" :showButtonFlg="true"
><span>操作</span></c-col >
> <el-table-column fixed="right" prop="op" label="操作" width="140px">
<!-- <c-col :span="12" style="text-align: right" <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-button icon="el-icon-s-tools"></c-button
></c-col> --> ></c-col> -->
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
placement="top-start" placement="top-start"
title="历史信息" title="历史信息"
width="800" width="800"
trigger="click" trigger="click"
:ref="'popover_' + scope.row.IDX" :ref="'popover_' + scope.row.IDX"
>
<div
style="
text-align: right;
margin-top: -30px;
margin-right: 5px;
font-size: 16px;
"
> >
<div style="text-align: right; margin-top: -30px; margin-right: 5px; font-size: 16px;"> <span
<span class="el-icon-close" @click="closeTrn('popover_' + scope.row.IDX)"/> class="el-icon-close"
@click="closeTrn('popover_' + scope.row.IDX)"
/>
</div> </div>
<c-istream-table <c-istream-table :list="trnData.data" :columns="trnData.columns">
:list="trnData.data" <el-table-column prop="op" label="操作" width="0">
:columns="trnData.columns" <template slot-scope="scope">
> <c-button
<el-table-column prop="op" label="操作" width="0"> style="margin-left: 0"
<template slot-scope="scope"> size="small"
<c-button @click="display(scope.row['INR'])"
style="margin-left: 0" >
size="small" 详情
@click="display(scope.row['INR'])" </c-button>
> </template>
详情 </el-table-column>
</c-button> </c-istream-table>
</template> <c-button
</el-table-column> style="margin-left: 0"
</c-istream-table> size="small"
<c-button @click="getTrnInfo(scope.$index, scope.row)"
style="margin-left: 0" slot="reference"
size="small" >
@click="getTrnInfo(scope.$index, scope.row)" 详情
slot="reference" </c-button>
> <!-- <c-button
详情
</c-button>
<!-- <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
> >
关闭 关闭
</c-button> --> </c-button> -->
</el-popover> </el-popover>
<!-- <c-button <!-- <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="getTrnInfo(scope.$index,scope.row)" @click="getTrnInfo(scope.$index,scope.row)"
> >
详情 详情
</c-button> --> </c-button> -->
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
type="primary" type="primary"
@click="getButtons(scope.row['Reference'])"> @click="getButtons(scope.row['Reference'])"
处理 >
</c-button> 处理
</c-button>
<!-- <c-button <!-- <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
type="primary" type="primary"
...@@ -449,12 +481,20 @@ ...@@ -449,12 +481,20 @@
> >
info info
</c-button> --> </c-button> -->
</template> </template>
</el-table-column> </el-table-column>
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<m-busbtn ref="childs" :ownref="ownref" :model="TrtselModel" ownrefPath="trdgrp" trnCode="trtsel" @onChoose="onChoose">11</m-busbtn> <m-busbtn
ref="childs"
:ownref="ownref"
:model="TrtselModel"
ownrefPath="trdgrp"
trnCode="trtsel"
@onChoose="onChoose"
>11</m-busbtn
>
</div> </div>
</template> </template>
<script> <script>
...@@ -465,7 +505,7 @@ import CodeTable from "~/config/CodeTable"; ...@@ -465,7 +505,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbpd/Event"; import Event from "~/model/Infbpd/Event";
import BusNavbar from "~/views/Public/BusNavbar"; import BusNavbar from "~/views/Public/BusNavbar";
import TrtselModel from "~/model/Trtsel" import TrtselModel from "~/model/Trtsel";
export default { export default {
inject: ["root"], inject: ["root"],
...@@ -481,32 +521,72 @@ export default { ...@@ -481,32 +521,72 @@ export default {
initdialog: false, initdialog: false,
stmData: { stmData: {
columns: [ columns: [
'1 1 \"Reference\" 200', '1 1 "进口融资编号" 200',
'2 2 \"Resp. User\" 110', '2 2 "客户经理" 110',
"13 3 \"Finance Type\" 130 1 0 1 TRD:FINTYP", // '13 3 "Finance Type" 130 1 0 1 TRD:FINTYP',
"14 4 \"Goods Code\" 120 1 0 1 GODCOD", {
"3 5 \"Parent Contract\" 150", index: 13,
"4 6 \"执行利率\" 110 2", position: 3,
"15 7 \"Pta .No\" 110", width: 120,
"16 8 \"Party Number\" 205", pattern: "code",
"17 9 \"Financed party\" 300", label: "融资品种",
"18 10 \"Financed CN\" 205", code: "fintyp1",
"5 11 \"融资状态\" 100 1 0 1 TRD:OVDFLG", },
"6 12 \"融资账号\" 100", // '14 4 "Goods Code" 120 1 0 1 GODCOD',
"24 13 \"组织机构代码\" 130", {
"7 14 \"Opened\" 200 4 7", index: 14,
"8 15 \"Expired\" 200 4 7", position: 4,
"19 16 \"Pty .No\" 110", width: 120,
"9 17 \"Closed\" 100 4 7", pattern: "code",
"20 18 \"Cur\" 100", label: "货物类型",
"22 19 \"Cur\" 100", code: "godcod",
"21 20 \"Amount\" 110 2 8 1 20", },
"23 21 \"Open Amount\" 200 2 8 1 22", '3 5 "Parent Contract" 150',
"25 22 \"海外代付行\" 150", '4 6 "执行利率" 110 2',
"26 23 \"海外代付行\" 150", '15 7 "Pta .No" 110',
"10 24 \"融资天数\" 100 2", '16 8 "Party Number" 205',
"11 25 \"海外代付天数\" 205 0", '17 9 "Financed party" 300',
"12 26 \"支行名称\" 205", '18 10 "Financed CN" 205',
// '5 11 "融资状态" 100 1 0 1 TRD:OVDFLG',
{
index: 5,
position: 11,
width: 100,
pattern: "code",
label: "融资状态",
code: "ovdflg",
},
'6 12 "融资账号" 100',
'24 13 "组织机构代码" 130',
'7 14 "开户日期" 200 4 7',
'8 15 "Expired" 200 4 7',
'19 16 "Pty .No" 110',
'9 17 "Closed" 100 4 7',
// '20 18 "Cur" 100',
{
index: 20,
position: 18,
width: 100,
pattern: "code",
label: "币种",
code: "curtxt1",
},
// '22 19 "Cur" 100',
{
index: 22,
position: 19,
width: 100,
pattern: "code",
label: "币种",
code: "curtxt1",
},
'21 20 "Amount" 110 2 8 1 20',
'23 21 "Open Amount" 200 2 8 1 22',
'25 22 "海外代付行" 150',
'26 23 "海外代付行" 150',
'10 24 "融资天数" 100 2',
'11 25 "海外代付天数" 205 0',
'12 26 "支行名称" 205',
], ],
data: [], data: [],
}, },
...@@ -532,24 +612,24 @@ export default { ...@@ -532,24 +612,24 @@ export default {
}, },
}; };
}, },
methods: { methods: {
...Event, ...Event,
async getButtons(ownref){ async getButtons(ownref) {
this.ownref = ownref this.ownref = ownref;
this.$refs.childs.initdialog = true this.$refs.childs.initdialog = true;
console.log("ownref:" +ownref); console.log("ownref:" + ownref);
}, },
async onChoose(code){ async onChoose(code) {
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code);
this.$refs.childs.initdialog = false this.$refs.childs.initdialog = false;
} , },
async getDitSelInfo(code){ async getDitSelInfo(code) {
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code);
this.$refs.childs.initdialog = false this.$refs.childs.initdialog = false;
}, },
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"]; this.model.infcon.objinr = row["INR"];
this.model.trdgrp.rec.inr = row["INR"]; this.model.trdgrp.rec.inr = row["INR"];
...@@ -575,10 +655,8 @@ export default { ...@@ -575,10 +655,8 @@ export default {
created: function () {}, created: function () {},
}; };
</script> </script>
<style> <style>
.el-dialog__body { .el-dialog__body {
padding: 10px 5px 50px; padding: 10px 5px 50px;
} }
</style> </style>
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