Commit eb7da4db by zhujiazhan

修改code方法

parent 3f3bbf40
......@@ -101,7 +101,6 @@
<script>
import CodeTable from "~/config/CodeTable";
export default {
props: {
......@@ -180,10 +179,6 @@ export default {
selectAll: true,
columnGroup: [],
setColumnFlg: false,
codes:{
...CodeTable
}
};
},
mounted() {
......@@ -333,11 +328,7 @@ export default {
if(!value || !code){
return ""
}
let args=this.codes[code];
if (!args) {
return ""
}
let em = args.find(item=>item.value.trim() == value.trim())
let em = code.find(item=>item.value.trim() == value.trim())
if(!em){
return value
}
......
......@@ -233,7 +233,9 @@ export default class Utils {
}
static generateUUID() {
console.log(111);
var d = new Date().getTime();
console.log(2222);
if (window.performance && typeof window.performance.now === "function") {
d += performance.now(); //use high-precision timer if available
}
......
......@@ -80,6 +80,7 @@
v-model="model.cpdgrp.orc.pts.ref"
maxlength="16"
placeholder=""
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -90,6 +91,7 @@
v-model="model.cpdgrp.rec.orcact"
maxlength="35"
placeholder="汇款人账号"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -210,10 +212,10 @@
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
v-for="item in codes.currencycode"
:key="item.value"
:label="item.value+item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
......@@ -256,10 +258,10 @@
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
v-for="item in codes.currencycode"
:key="item.value"
:label="item.value+item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
......
......@@ -86,10 +86,10 @@
@change="commonExecuteRule('cpdgrp.cbs.nom1.cur')"
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
v-for="item in codes.currencycode"
:key="item.value"
:label="item.value+item.label"
:value="item.value"
></el-option>
</c-select>
</c-form-item>
......@@ -142,13 +142,12 @@
@keyup.enter.native="showGridPromptDialog('cptp.draweecountcode')"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
@click="onCptpSelbut"
icon="el-icon-search"
style="margin-left:10px;padding: 0 10px;">
</c-button>
<c-button
                size="small"
                type="primary"
                icon="el-icon-search"
                @click="showGridPromptDialog('cptp.selbut', null, null,{TXT: 'cptp.draweecountcode'}, {TXT: false},'doxpDialog')"
              > </c-button>
</template>
</c-fullbox>
</el-form-item>
......@@ -338,10 +337,10 @@
placeholder="请选择国外费用币种"
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
v-for="item in codes.currencycode"
:key="item.value"
:label="item.value+item.label"
:value="item.value"
>
</el-option>
</c-select>
......
......@@ -68,6 +68,14 @@
</c-tabs>
</el-form>
</div>
<c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty"></c-grid-ety-prompt-dialog>
</c-page>
</template>
......
......@@ -28,34 +28,34 @@
"
></c-input>
</el-form-item>
<!-- </c-col>
<c-col :span="6" style="text-align: right">
<el-form-item label="" label-width="15px"> -->
<!-- <c-col :span="12"> -->
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
icon="el-icon-search"
>
</c-button>
<!-- </c-col> -->
<!-- <c-col :span="12"> -->
<c-button
style="margin:0 0"
size="small"
type="primary"
@click="onSndpDet"
disabled
>
详情
</c-button>
</template>
<!-- </c-col> -->
<!-- </el-form-item> -->
</c-fullbox>
<!-- </c-col> -->
<template slot="footer">
<!-- <c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
icon="el-icon-search"
>
</c-button> -->
<c-button
                size="small"
                type="primary"
                icon="el-icon-search"
                @click="showGridPromptDialog('ptsget.sdamod.seainf', null, null,{TXT: 'cpdgrp.ori.pts.extkey'}, {TXT: false},'doxpDialog')"
              >
            </c-button>
<c-button
style="margin:0 0"
size="small"
type="primary"
@click="onSndpDet"
disabled
>
详情
</c-button>
</template>
</c-fullbox>
</c-col>
<c-col :span="24">
......@@ -151,7 +151,7 @@
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="24" v-show="false">
<el-form-item label="收款人名称" prop="pyenam">
<c-input
v-model="model.pyenam"
......@@ -161,7 +161,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="24" v-show="false">
<el-form-item label="清算费用锁定服务" prop="cptp.qsfysd">
<c-select
v-model="model.cptp.qsfysd"
......@@ -256,12 +256,11 @@
v-model="model.cpdgrp.rec.curf33b"
style="width: 100%"
placeholder=""
:disabled="model.cpdgrp.orc.pts.extkey && model.cpdgrp.pye.pts.extkey"
>
<el-option
v-for="item in codes.cur"
v-for="item in codes.currencycode"
:key="item.value"
:label="item.label"
:label="item.value+item.label"
:value="item.value"
></el-option>
</c-select>
......@@ -273,10 +272,11 @@
label-width="8px"
prop="cpdgrp.rec.amtf33b"
>
<!-- :disabled="model.cpdgrp.orc.pts.extkey != '' && model.cpdgrp.pye.pts.extkey != ''" -->
<c-input
v-model="model.cpdgrp.rec.amtf33b"
placeholder="请输入原始金额"
:disabled="model.cpdgrp.orc.pts.extkey != '' && model.cpdgrp.pye.pts.extkey != ''"
></c-input>
</el-form-item>
</c-col>
......@@ -287,7 +287,6 @@
<c-input
v-model="model.cpdgrp.rec.f36"
placeholder=""
:disabled="model.cpdgrp.orc.pts.extkey != '' && model.cpdgrp.pye.pts.extkey != ''"
></c-input>
</el-form-item>
</c-col>
......@@ -302,13 +301,13 @@
v-model="model.cpdgrp.rec.cur71f"
placeholder=""
style="width: 100%"
:disabled="model.cpdgrp.orc.pts.extkey != '' && model.cpdgrp.pye.pts.extkey != ''"
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
v-for="item in codes.currencycode"
:key="item.value"
:label="item.value+item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
......@@ -322,7 +321,6 @@
<c-input
v-model="model.cpdgrp.rec.amt71f"
placeholder="请输入发报行扣费金额"
:disabled="model.cpdgrp.orc.pts.extkey != '' && model.cpdgrp.pye.pts.extkey != ''"
></c-input>
</el-form-item>
</c-col>
......
......@@ -118,9 +118,9 @@
@change="onNom1CurChange"
>
<el-option
v-for="item in codes.cur"
v-for="item in codes.currencycode"
:key="item.value"
:label="item.label"
:label="item.value+item.label"
:value="item.value"
></el-option>
</c-select>
......@@ -206,7 +206,7 @@
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder=""
:disabled="!model.cpdgrp.rec.ischktyp || model.cpdgrp.rec.ischktyp == 'N'"
:disabled=this.flag1
></c-date-picker>
</el-form-item>
</c-col>
......@@ -348,33 +348,35 @@
<c-col :span="24">
<c-fullbox>
<el-form-item
label="收款人常驻国家/地区代码"
prop="cptp.payeecountcode"
>
<c-input
v-model="model.cptp.payeecountcode"
maxlength="3"
placeholder="请输入收款人常驻国家/地区代码"
@keyup.enter.native="
showGridPromptDialog('cptp.payeecountcode')
"
style="width: 100%"
></c-input>
</el-form-item>
<c-col :span="20">
<c-col :span="21">
<el-form-item
label="收款人常驻国家/地区代码"
prop="cptp.payeecountcode">
<c-input
v-model="model.cptp.payeecountcode"
maxlength="3"
placeholder="请输入收款人常驻国家/地区代码"
@keyup.enter.native="
showGridPromptDialog('cptp.payeecountcode')
"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="3">
<c-button
                size="small"
                type="primary"
                icon="el-icon-search"
                @click="showGridPromptDialog('cptp.selbut1', null, null,{TXT: 'cptp.payeecountcode'}, {TXT: false},'doxpDialog')"
              > </c-button>
</c-col>
</c-col>
<template slot="footer">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="onCptpGetinf"
>
</c-button>
<c-checkbox v-model="model.cpdgrp.rec.tsnflg"
>同名划转</c-checkbox
>
</template>
<c-col :span="4" style="float: right">
<c-checkbox v-model="model.cpdgrp.rec.tsnflg" label-width="150px" >同名划转</c-checkbox>
</c-col>
</c-fullbox>
</c-col>
......@@ -466,7 +468,7 @@ export default {
{ value: "O", label: "Other" },
{ value: "S", label: "CIPS系统" },
],
flag1:false,
};
},
methods: {
......@@ -474,6 +476,20 @@ export default {
onCptpGetref() {},
onCptpGetmod() {},
},
watch:{
"model.cpdgrp.rec.ischktyp":{
immediate:true,
handler(val ,oldVal){
if(this.model.cpdgrp.rec.ischktyp == 'N'){
this.flag1=true;
this.model.cpdgrp.rec.paydat="";
}
else{
this.flag1=false;
}
}
},
},
created: function () {},
computed: {
flag() {
......
......@@ -96,7 +96,14 @@
</c-tabs>
</el-form>
</div>
<c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty"></c-grid-ety-prompt-dialog>
</c-page>
</template>
......
......@@ -137,6 +137,7 @@
placeholder="请选择Currency"
:code="codes.currencycode"
>
</c-select>
</el-form-item>
</c-col>
......@@ -221,7 +222,7 @@
<c-col :span="24">
<c-istream-table :list="stmData.data"
:columns="columns" :showButtonFlg="true">
:columns="columns">
<el-table-column fixed="right" prop="op" label="操作" width="150px">
<template slot-scope="scope">
<el-popover
......@@ -325,7 +326,7 @@ export default {
width: 100,
pattern: "code",
label: "状态",
code: "relstaEN",
code: this.codes.relstaEN,
},
'5 5 "币种" 80',
'6 6 "金额" 110',
......@@ -336,7 +337,7 @@ export default {
'1 1 "Reference" 140',
'2 2 "Resp. User" 100',
//'3 3 "Goods Code" 100 1 0 1 GODCOD',
{ index: 3, position: 3, width: 100, pattern: "code", label: "Goods Code" ,"code":"godcod"},
{ index: 3, position: 3, width: 100, pattern: "code", label: "Goods Code" ,"code":this.codes.godcod},
'7 4 "Party Number1" 133',
'8 5 "Applicant" 160',
'9 6 "Applicant CN" 133',
......@@ -386,6 +387,9 @@ export default {
this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
}
},
async closeTrn(refId) {
this.$refs[refId].doClose();
},
},
created: function () {},
};
......
......@@ -401,7 +401,8 @@
</el-table-column>
</c-istream-table>
</c-col>
<!-- <m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"></m-busbtn> -->
<m-busbtn ref="childs" :ownref="ownref" trnCode="cptsel" :model="cptselModel" ownrefPath="cpdgrp" @onChoose="onChoose" >11</m-busbtn>
</div>
</template>
......@@ -411,6 +412,7 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infcpd/Event";
import BusNavbar from "~/views/Public/BusNavbar";
import CptselModel from "~/model/Cptsel"
export default {
......@@ -427,6 +429,7 @@ export default {
{ label: "Payee", value: "PYE" },
{ label: "Reimb. Bank Transfer", value: "RMT" },
],
cptselModel: new CptselModel().data,
searchToggle: true,
ownref: "",
dialogTableVisible: false,
......@@ -443,7 +446,7 @@ export default {
width: 100,
pattern: "code",
label: "状态",
code: this.codes.relstaEN,
code: "relstaEN",
},
'5 5 "币种" 80',
'6 6 "金额" 100',
......@@ -541,7 +544,6 @@ export default {
closeTrn(refId){
this.$refs[refId].doClose();
},
handleReset() {},
toCptopn(){
this.$router.history.push("/business/cptopn")
},
......
......@@ -182,6 +182,8 @@ export default {
},
methods:{
getType(idx) {
console.log(this.codes);
for (let i = 0; i < this.codes.doceotCortyp.length; i++) {
const c = this.codes.doceotCortyp[i];
if (this.model.trnmod.trndoc.doceot[idx].cortyp === c.value) {
......
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