Commit 3884430d by lianyang

gitopn加手动触发default,更新动态码表

parent d8435f65
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
v-model="model.gidgrp.rec.delto" v-model="model.gidgrp.rec.delto"
style="width: 100%" style="width: 100%"
placeholder="请选择交付收款人" placeholder="请选择交付收款人"
:code="codes.delto" :code="getValues('gidgrp.rec.delto','delto1')"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -222,6 +222,8 @@ ...@@ -222,6 +222,8 @@
</div> </div>
</template> </template>
<script> <script>
import _ from "lodash";
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
...@@ -250,6 +252,7 @@ export default { ...@@ -250,6 +252,7 @@ export default {
Utils.copyValueFromVO(this.model, rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
} }
}, },
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -2,14 +2,11 @@ ...@@ -2,14 +2,11 @@
<div class="eibs"> <div class="eibs">
<c-row> <c-row>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12" style="padding-right: 20px;"> <c-col :span="12" style="padding-right: 20px">
<!-- 不为swift格式左边 --> <!--========================== 不为swift格式左边 =========================================-->
<c-col :span="24" v-if="model.gitp.swiftflg != 'Y'">
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="申请人参考号" prop="gidgrp.apl.pts.ref">
v-if="model.gitp.swiftflg != 'Y'"
label="申请人参考号"
prop="gidgrp.apl.pts.ref"
>
<c-input <c-input
v-model="model.gidgrp.apl.pts.ref" v-model="model.gidgrp.apl.pts.ref"
maxlength="16" maxlength="16"
...@@ -18,11 +15,7 @@ ...@@ -18,11 +15,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="申请人" prop="gidgrp.apl.pts.extkey">
v-if="model.gitp.swiftflg != 'Y'"
label="申请人"
prop="gidgrp.apl.pts.extkey"
>
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.gidgrp.apl.pts.extkey" v-model="model.gidgrp.apl.pts.extkey"
...@@ -41,7 +34,7 @@ ...@@ -41,7 +34,7 @@
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</c-button> </c-button>
<c-button <c-button
:disabled="model.gidgrp.apl.pts.adrblk==''" :disabled="model.gidgrp.apl.pts.adrblk == ''"
size="small" size="small"
type="primary" type="primary"
@click="onAplpDet" @click="onAplpDet"
...@@ -53,11 +46,7 @@ ...@@ -53,11 +46,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="地址名称" prop="gidgrp.apl.pts.adrblk">
v-if="model.gitp.swiftflg != 'Y'"
label="地址名称"
prop="gidgrp.apl.pts.adrblk"
>
<c-input <c-input
disabled disabled
rows="4" rows="4"
...@@ -71,11 +60,7 @@ ...@@ -71,11 +60,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="保兑行参考号" prop="gidgrp.con.pts.ref">
v-if="model.gitp.swiftflg != 'Y'"
label="保兑行参考号"
prop="gidgrp.con.pts.ref"
>
<c-input <c-input
disabled disabled
v-model="model.gidgrp.con.pts.ref" v-model="model.gidgrp.con.pts.ref"
...@@ -85,11 +70,7 @@ ...@@ -85,11 +70,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="保兑行" prop="gidgrp.con.pts.extkey">
v-if="model.gitp.swiftflg != 'Y'"
label="保兑行"
prop="gidgrp.con.pts.extkey"
>
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.gidgrp.con.pts.extkey" v-model="model.gidgrp.con.pts.extkey"
...@@ -99,6 +80,7 @@ ...@@ -99,6 +80,7 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog(`gidgrp.con.pts.extkey`) showGridPromptDialog(`gidgrp.con.pts.extkey`)
" "
@change="preperpTab"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button <c-button
...@@ -121,11 +103,7 @@ ...@@ -121,11 +103,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="地址名称" prop="gidgrp.con.pts.adrblk">
v-if="model.gitp.swiftflg != 'Y'"
label="地址名称"
prop="gidgrp.con.pts.adrblk"
>
<c-input <c-input
disabled disabled
type="textarea" type="textarea"
...@@ -136,18 +114,18 @@ ...@@ -136,18 +114,18 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<!-- 为swift格式左边 --> <!-- ==========================为swift格式左边============================================ -->
<c-col :span="24"> <c-col :span="24" v-if="model.gitp.swiftflg == 'Y'">
<el-form-item <c-col
:span="24"
v-if=" v-if="
model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purposin == 'ISCO' ||
(model.gidgrp.rec.purposin == 'ISCO' || model.gidgrp.rec.purposin == 'ICCO'
model.gidgrp.rec.purposin == 'ICCO')
" "
label="开证行参考号"
prop="gidgrp.apl.pts.ref"
> >
<c-col :span="24">
<el-form-item label="开证行参考号" prop="gidgrp.apl.pts.ref">
<c-input <c-input
v-model="model.gidgrp.apl.pts.ref" v-model="model.gidgrp.apl.pts.ref"
maxlength="16" maxlength="16"
...@@ -156,15 +134,7 @@ ...@@ -156,15 +134,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="开证行" prop="gidgrp.apl.pts.extkey">
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purposin == 'ISCO' ||
model.gidgrp.rec.purposin == 'ICCO')
"
label="开证行"
prop="gidgrp.apl.pts.extkey"
>
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.gidgrp.apl.pts.extkey" v-model="model.gidgrp.apl.pts.extkey"
...@@ -173,8 +143,8 @@ ...@@ -173,8 +143,8 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog(`gidgrp.apl.pts.extkey`) showGridPromptDialog(`gidgrp.apl.pts.extkey`)
" "
@blur="benBlur"
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -196,15 +166,7 @@ ...@@ -196,15 +166,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="地址名称" prop="gidgrp.apl.pts.adrblk">
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purposin == 'ISCO' ||
model.gidgrp.rec.purposin == 'ICCO')
"
label="地址名称"
prop="gidgrp.apl.pts.adrblk"
>
<c-input <c-input
disabled disabled
rows="4" rows="4"
...@@ -218,15 +180,7 @@ ...@@ -218,15 +180,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="申请人参考号" prop="gidgrp.ctr.pts.ref">
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purposin == 'ISCO' ||
model.gidgrp.rec.purposin == 'ICCO')
"
label="申请人参考号"
prop="gidgrp.ctr.pts.ref"
>
<c-input <c-input
v-model="model.gidgrp.ctr.pts.ref" v-model="model.gidgrp.ctr.pts.ref"
maxlength="16" maxlength="16"
...@@ -235,15 +189,7 @@ ...@@ -235,15 +189,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="申请人" prop="gidgrp.ctr.pts.extkey">
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purposin == 'ISCO' ||
model.gidgrp.rec.purposin == 'ICCO')
"
label="申请人"
prop="gidgrp.ctr.pts.extkey"
>
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.gidgrp.ctr.pts.extkey" v-model="model.gidgrp.ctr.pts.extkey"
...@@ -252,8 +198,8 @@ ...@@ -252,8 +198,8 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog(`gidgrp.ctr.pts.extkey`) showGridPromptDialog(`gidgrp.ctr.pts.extkey`)
" "
@blur="benBlur"
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -270,15 +216,7 @@ ...@@ -270,15 +216,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="地址名称" prop="gidgrp.ctr.pts.adrblk">
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purposin == 'ISCO' ||
model.gidgrp.rec.purposin == 'ICCO')
"
label="地址名称"
prop="gidgrp.ctr.pts.adrblk"
>
<c-input <c-input
:disabeld="model.gidgrp.ctr.pts.adrblk != ''" :disabeld="model.gidgrp.ctr.pts.adrblk != ''"
rows="4" rows="4"
...@@ -289,17 +227,17 @@ ...@@ -289,17 +227,17 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="24"> <c-col
<el-form-item :span="24"
v-if=" v-if="
model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purposin == 'ISSU' ||
(model.gidgrp.rec.purposin == 'ISSU' || model.gidgrp.rec.purposin == ''
model.gidgrp.rec.purposin == '')
" "
label="申请人参考号"
prop="gidgrp.apl.pts.ref"
> >
<c-col :span="24">
<el-form-item label="申请人参考号" prop="gidgrp.apl.pts.ref">
<c-input <c-input
v-model="model.gidgrp.apl.pts.ref" v-model="model.gidgrp.apl.pts.ref"
maxlength="16" maxlength="16"
...@@ -308,15 +246,7 @@ ...@@ -308,15 +246,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="申请人" prop="gidgrp.apl.pts.extkey">
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purposin == 'ISSU' ||
model.gidgrp.rec.purposin == '')
"
label="申请人"
prop="gidgrp.apl.pts.extkey"
>
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.gidgrp.apl.pts.extkey" v-model="model.gidgrp.apl.pts.extkey"
...@@ -325,8 +255,8 @@ ...@@ -325,8 +255,8 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog(`gidgrp.apl.pts.extkey`) showGridPromptDialog(`gidgrp.apl.pts.extkey`)
" "
@blur="benBlur"
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -348,15 +278,7 @@ ...@@ -348,15 +278,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="地址名称" prop="gidgrp.apl.pts.adrblk">
v-if="
(model.gitp.swiftflg == 'Y') &
(model.gidgrp.rec.purposin == 'ISSU' ||
model.gidgrp.rec.purposin == '')
"
label="地址名称"
prop="gidgrp.apl.pts.adrblk"
>
<c-input <c-input
disabled disabled
rows="4" rows="4"
...@@ -365,20 +287,13 @@ ...@@ -365,20 +287,13 @@
maxlength="140" maxlength="140"
show-word-limit show-word-limit
placeholder="请输入地址名称" placeholder="请输入地址名称"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="账户/对象参考号" prop="gidgrp.ctr.pts.ref">
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purposin == 'ISSU' ||
model.gidgrp.rec.purposin == '')
"
label="账户/对象参考号"
prop="gidgrp.ctr.pts.ref"
>
<c-input <c-input
v-model="model.gidgrp.ctr.pts.ref" v-model="model.gidgrp.ctr.pts.ref"
maxlength="16" maxlength="16"
...@@ -387,15 +302,7 @@ ...@@ -387,15 +302,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="账户/对象" prop="gidgrp.ctr.pts.extkey">
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purposin == 'ISSU' ||
model.gidgrp.rec.purposin == '')
"
label="账户/对象"
prop="gidgrp.ctr.pts.extkey"
>
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.gidgrp.ctr.pts.extkey" v-model="model.gidgrp.ctr.pts.extkey"
...@@ -404,8 +311,8 @@ ...@@ -404,8 +311,8 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog(`gidgrp.ctr.pts.extkey`) showGridPromptDialog(`gidgrp.ctr.pts.extkey`)
" "
@blur="benBlur"
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -422,15 +329,7 @@ ...@@ -422,15 +329,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="地址名称" prop="gidgrp.ctr.pts.adrblk">
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purposin == 'ISSU' ||
model.gidgrp.rec.purposin == '')
"
label="地址名称"
prop="gidgrp.ctr.pts.adrblk"
>
<c-input <c-input
:disabled="model.gidgrp.ctr.pts.adrblk != ''" :disabled="model.gidgrp.ctr.pts.adrblk != ''"
rows="4" rows="4"
...@@ -439,19 +338,19 @@ ...@@ -439,19 +338,19 @@
maxlength="140" maxlength="140"
show-word-limit show-word-limit
placeholder="请输入地址名称" placeholder="请输入地址名称"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;"> <c-col :span="12" style="padding-left: 20px">
<!-- 不为swift格式右边 --> <!-- ==========================不为swift格式右边=================================== -->
<c-col :span="24" v-if="model.gitp.swiftflg != 'Y'">
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="受益人参考号" prop="gidgrp.ben.pts.ref">
v-if="model.gitp.swiftflg != 'Y'"
label="受益人参考号"
prop="gidgrp.ben.pts.ref"
>
<c-input <c-input
v-model="model.gidgrp.ben.pts.ref" v-model="model.gidgrp.ben.pts.ref"
maxlength="16" maxlength="16"
...@@ -461,7 +360,6 @@ ...@@ -461,7 +360,6 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
v-if="model.gitp.swiftflg != 'Y'"
label="受益人" label="受益人"
prop="gidgrp.ben.pts.extkey" prop="gidgrp.ben.pts.extkey"
> >
...@@ -495,11 +393,7 @@ ...@@ -495,11 +393,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="地址名称" prop="gidgrp.ben.pts.adrblk">
v-if="model.gitp.swiftflg != 'Y'"
label="地址名称"
prop="gidgrp.ben.pts.adrblk"
>
<c-input <c-input
:disabled=" :disabled="
model.gidgrp.rec.hndtyp == 'OT' || model.gidgrp.rec.hndtyp == 'OT' ||
...@@ -518,9 +412,8 @@ ...@@ -518,9 +412,8 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
v-if=" v-if="
(model.gidgrp.rec.hndtyp == 'OC' || model.gidgrp.rec.hndtyp == 'OC' ||
model.gidgrp.rec.hndtyp == 'OT') && model.gidgrp.rec.hndtyp == 'OT'
model.gitp.swiftflg != 'Y'
" "
label="开证行参考号" label="开证行参考号"
prop="gidgrp.iss.pts.ref" prop="gidgrp.iss.pts.ref"
...@@ -535,9 +428,8 @@ ...@@ -535,9 +428,8 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
v-if=" v-if="
(model.gidgrp.rec.hndtyp == 'OC' || model.gidgrp.rec.hndtyp == 'OC' ||
model.gidgrp.rec.hndtyp == 'OT') && model.gidgrp.rec.hndtyp == 'OT'
model.gitp.swiftflg != 'Y'
" "
label="开证行" label="开证行"
prop="gidgrp.iss.pts.extkey" prop="gidgrp.iss.pts.extkey"
...@@ -574,9 +466,8 @@ ...@@ -574,9 +466,8 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
v-if=" v-if="
(model.gidgrp.rec.hndtyp == 'OC' || model.gidgrp.rec.hndtyp == 'OC' ||
model.gidgrp.rec.hndtyp == 'OT') && model.gidgrp.rec.hndtyp == 'OT'
model.gitp.swiftflg != 'Y'
" "
label="地址名称" label="地址名称"
prop="gidgrp.iss.pts.adrblk" prop="gidgrp.iss.pts.adrblk"
...@@ -592,15 +483,11 @@ ...@@ -592,15 +483,11 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<!-- 为swift格式右边 --> <!-- ============================为swift格式右边================================= -->
<c-col :span="24" v-if="model.gitp.swiftflg == 'Y'">
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="受益人参考号" prop="gidgrp.ben.pts.ref">
v-if="model.gitp.swiftflg == 'Y'"
label="受益人参考号"
prop="gidgrp.ben.pts.ref"
>
<c-input <c-input
v-model="model.gidgrp.ben.pts.ref" v-model="model.gidgrp.ben.pts.ref"
maxlength="16" maxlength="16"
...@@ -609,11 +496,7 @@ ...@@ -609,11 +496,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="受益人" prop="gidgrp.ben.pts.extkey">
v-if="model.gitp.swiftflg == 'Y'"
label="受益人"
prop="gidgrp.ben.pts.extkey"
>
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.gidgrp.ben.pts.extkey" v-model="model.gidgrp.ben.pts.extkey"
...@@ -622,8 +505,8 @@ ...@@ -622,8 +505,8 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog(`gidgrp.ben.pts.extkey`) showGridPromptDialog(`gidgrp.ben.pts.extkey`)
" "
@blur="benBlur"
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -640,11 +523,7 @@ ...@@ -640,11 +523,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="地址名称" prop="gidgrp.ben.pts.adrblk">
v-if="model.gitp.swiftflg == 'Y'"
label="地址名称"
prop="gidgrp.ben.pts.adrblk"
>
<c-input <c-input
:disabled="model.gidgrp.ben.pts.adrblk != ''" :disabled="model.gidgrp.ben.pts.adrblk != ''"
rows="4" rows="4"
...@@ -653,16 +532,13 @@ ...@@ -653,16 +532,13 @@
maxlength="140" maxlength="140"
show-word-limit show-word-limit
placeholder="请输入地址名称" placeholder="请输入地址名称"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="通知行参考号" prop="gidgrp.atb.pts.ref">
v-if="model.gitp.swiftflg == 'Y'"
label="通知行参考号"
prop="gidgrp.atb.pts.ref"
>
<c-input <c-input
v-model="model.gidgrp.atb.pts.ref" v-model="model.gidgrp.atb.pts.ref"
maxlength="16" maxlength="16"
...@@ -671,11 +547,7 @@ ...@@ -671,11 +547,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="通知行" prop="gidgrp.atb.pts.extkey">
v-if="model.gitp.swiftflg == 'Y'"
label="通知行"
prop="gidgrp.atb.pts.extkey"
>
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.gidgrp.atb.pts.extkey" v-model="model.gidgrp.atb.pts.extkey"
...@@ -684,8 +556,8 @@ ...@@ -684,8 +556,8 @@
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog(`gidgrp.atb.pts.extkey`) showGridPromptDialog(`gidgrp.atb.pts.extkey`)
" "
@blur="benBlur"
></c-input> ></c-input>
<!-- @blur="benBlur" -->
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
...@@ -702,11 +574,7 @@ ...@@ -702,11 +574,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="地址名称" prop="gidgrp.atb.pts.adrblk">
v-if="model.gitp.swiftflg == 'Y'"
label="地址名称"
prop="gidgrp.atb.pts.adrblk"
>
<c-input <c-input
:disabled="model.gidgrp.atb.pts.adrblk != ''" :disabled="model.gidgrp.atb.pts.adrblk != ''"
rows="4" rows="4"
...@@ -715,11 +583,13 @@ ...@@ -715,11 +583,13 @@
maxlength="140" maxlength="140"
show-word-limit show-word-limit
placeholder="请输入地址名称" placeholder="请输入地址名称"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
</c-col> </c-col>
</c-col>
</c-row> </c-row>
<c-col :span="24"> <c-col :span="24">
...@@ -745,62 +615,88 @@ ...@@ -745,62 +615,88 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from '~/service/Api'
import commonProcess from "~/mixin/commonProcess"; import commonProcess from '~/mixin/commonProcess'
import CodeTable from "~/config/CodeTable"; import CodeTable from '~/config/CodeTable'
import Event from "~/model/Gitopn/Event"; import Event from '~/model/Gitopn/Event'
import Ptap from "~/views/Public/Ptap"; import Ptap from '~/views/Public/Ptap'
import Utils from "~/utils"; import Utils from '~/utils'
export default { export default {
components: { "c-ptap": Ptap }, components: { 'c-ptap': Ptap },
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
ptsaddg: { ptsaddg: {
columns: [ columns: [
{ {
title: "角色", title: '角色',
width: "120px", width: '120px',
dataIndex: "rol", dataIndex: 'rol',
show: "select", show: 'select',
}, },
{ {
title: "当事人", title: '当事人',
width: "180px", width: '180px',
dataIndex: "ptyextkey", dataIndex: 'ptyextkey',
show: "input", show: 'input',
}, },
{ {
title: "当事人名称", title: '当事人名称',
width: "250px", width: '250px',
dataIndex: "nam", dataIndex: 'nam',
}, },
{ {
title: "地址编号", title: '地址编号',
width: "250px", width: '250px',
dataIndex: "ref", dataIndex: 'ref',
}, },
], ],
urls: "gitp.ptsaddp.ptsaddg", urls: 'gitp.ptsaddp.ptsaddg',
}, },
}; }
}, },
methods: { methods: {
...Event, ...Event,
async benBlur() { // async benBlur() {
let rtnmsg = await this.executeDefault("gidgrp.rec.sndto"); // let rtnmsg = await this.executeDefault('gidgrp.rec.sndto')
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data)
// }
// },
// 角色改变手动触发default 500 GIDGRP\REC\DELTO
async roleChange(){
let rtnmsg = await this.executeDefault("gidgrp.rec.delto");
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
} }
}, },
// 切换到演示/交付tab页触发event
async preperpTab() {
let rtnmsg = await this.executeRule('gitp.preperp')
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data)
}
}, },
watch:{
}, },
watch: {
"model.gidgrp.apl.pts.adrblk": function() {
this.roleChange()
},
"model.gidgrp.ctr.pts.adrblk": function() {
this.roleChange()
},
"model.gidgrp.ben.pts.adrblk": function() {
this.roleChange()
},
"model.gidgrp.atb.pts.adrblk": function() {
this.roleChange()
},
},
created: function () {}, created: function () {},
}; }
</script> </script>
<style> <style></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