Commit e5afe068 by liuxin

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents 8bf0f4d6 bbac7d80
...@@ -127,11 +127,11 @@ export default class Bttrcl{ ...@@ -127,11 +127,11 @@ export default class Bttrcl{
utlamt2:"", // Add. Amount utilized/settled .aamset.utlamt2 utlamt2:"", // Add. Amount utilized/settled .aamset.utlamt2
utlamt:"", // Doc. Amount utilized/settled .aamset.utlamt utlamt:"", // Doc. Amount utilized/settled .aamset.utlamt
}, },
trnmod:{ // trnmod:{
trndoc:{ // trndoc:{
nar754:"", // Narrative :77A: .trnmod.trndoc.nar754 // nar754:"", // Narrative :77A: .trnmod.trndoc.nar754
}, // },
}, // },
setmod:new Pub().data.Setmod, setmod:new Pub().data.Setmod,
mtabut:new Pub().data.Mtabut, mtabut:new Pub().data.Mtabut,
trnmod:new Pub().data.Trnmod, trnmod:new Pub().data.Trnmod,
......
...@@ -31,6 +31,7 @@ export default class Gitcom{ ...@@ -31,6 +31,7 @@ export default class Gitcom{
liadat:"", // Liability until .gidgrp.rec.liadat liadat:"", // Liability until .gidgrp.rec.liadat
purpos:"", // Purpose of Message .gidgrp.rec.purpos purpos:"", // Purpose of Message .gidgrp.rec.purpos
exptyp:"", exptyp:"",
liatypc:"",
}, },
cbs:{ cbs:{
max:{ max:{
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <c-function-btn
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> :handleSubmit="handleSubmit"
<!--bttset PD000034 Funds Settlement --> :handleCheck="handleCheck"
<el-tab-pane :label="$t('bttset.PD000034')" name="setp"> :handleStash="handleStash"
<m-setp :model="model" :codes="codes"/> >
</el-tab-pane> <el-button size="small">流程附言</el-button>
<!--lendoc PD000001 收账通知 --> <el-button size="small">交易历史</el-button>
<el-tab-pane :label="$t('lendoc.PD000001')" name="docpan"> <el-button size="small">备忘录</el-button>
<m-docpan :model="model" :codes="codes"/> <el-button size="small">影像信息</el-button>
</el-tab-pane> <!-- <el-button size="small">保存模板</el-button> -->
<!--bopgat PD000006 外管信息 --> <!-- <el-button size="small">使用模板</el-button> -->
<el-tab-pane :label="$t('bopgat.PD000006')" name="wg"> <el-button size="small">制裁信息</el-button>
<m-wg :model="model" :codes="codes"/> <!-- <el-button size="small">拆分报文</el-button> -->
</el-tab-pane> <el-button size="small">智能提示</el-button>
<!--dbdp PD000000 境内收入申报单-基础信息 --> </c-function-btn>
<el-tab-pane :label="$t('dbdp.PD000000')" name="basp"> <el-form
<m-basp :model="model" :codes="codes"/> :model="model"
</el-tab-pane> :rules="rules"
<!--dbap PD000000 涉外收入申报单-基础信息 --> ref="modelForm"
<el-tab-pane :label="$t('dbap.PD000000')" name="basp"> label-width="150px"
<m-basp :model="model" :codes="codes"/> label-position="right"
</el-tab-pane> size="small"
<!--cnybop PD000002 跨境人民币申报 --> :validate-on-rule-change="false"
<el-tab-pane :label="$t('cnybop.PD000002')" name="cnyp"> >
<m-cnyp :model="model" :codes="codes"/> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
</el-tab-pane> <!--bttset PD000034 Funds Settlement -->
<!--cnybop PD000001 2101跨境收入信息 --> <el-tab-pane label="Funds Settlement" name="setp">
<el-tab-pane :label="$t('cnybop.PD000001')" name="incp"> <c-content>
<m-incp :model="model" :codes="codes"/> <m-setp :model="model" :codes="codes" />
</el-tab-pane> </c-content>
<!--limmod PD001139 试算结果 --> </el-tab-pane>
<el-tab-pane :label="$t('limmod.PD001139')" name="shisuan"> <!--lendoc PD000001 收账通知 -->
<m-shisuan :model="model" :codes="codes"/> <el-tab-pane label="$t('lendoc.PD000001')" name="docpan">
</el-tab-pane> <m-docpan :model="model" :codes="codes" />
</c-tabs> </el-tab-pane>
<!--bopgat PD000006 外管信息 -->
<el-tab-pane label="$t('bopgat.PD000006')" name="wg">
<m-wg :model="model" :codes="codes" />
</el-tab-pane>
<!--dbdp PD000000 境内收入申报单-基础信息 -->
<el-tab-pane label="$t('dbdp.PD000000')" name="basp">
<m-basp :model="model" :codes="codes" />
</el-tab-pane>
<!--dbap PD000000 涉外收入申报单-基础信息 -->
<!-- <el-tab-pane label="$t('dbap.PD000000')" name="basp">
<m-basp :model="model" :codes="codes" />
</el-tab-pane> -->
<!--cnybop PD000002 跨境人民币申报 -->
<el-tab-pane label="$t('cnybop.PD000002')" name="cnyp">
<m-cnyp :model="model" :codes="codes" />
</el-tab-pane>
<!--cnybop PD000001 2101跨境收入信息 -->
<el-tab-pane label="$t('cnybop.PD000001')" name="incp">
<m-incp :model="model" :codes="codes" />
</el-tab-pane>
<!--limmod PD001139 试算结果 -->
<el-tab-pane label="$t('limmod.PD001139')" name="shisuan">
<m-shisuan :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Bttset from "~/model/Bttset" import Bttset from "~/model/Bttset";
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Bttset/Check" import commonFuncs from "~/mixin/commonFuncs";
import Default from "~/model/Bttset/Default" import Check from "~/model/Bttset/Check";
import Pattern from "~/model/Bttset/Pattern" import Default from "~/model/Bttset/Default";
import Setp from "./Setp" import Pattern from "~/model/Bttset/Pattern";
import Docpan from "./Docpan" import Setp from "./Setp";
import Wg from "./Wg" import Docpan from "./Docpan";
import Basp from "./Basp" import Wg from "./Wg";
import Cnyp from "./Cnyp" import Basp from "./Basp";
import Incp from "./Incp" import Cnyp from "./Cnyp";
import Shisuan from "./Shisuan" import Incp from "./Incp";
import Shisuan from "./Shisuan";
export default { export default {
name: "Bttset", name: "Bttset",
components:{ components: {
"m-setp" : Setp, "m-setp": Setp,
"m-docpan" : Docpan, "m-docpan": Docpan,
"m-wg" : Wg, "m-wg": Wg,
"m-basp" : Basp, "m-basp": Basp,
"m-cnyp" : Cnyp, "m-cnyp": Cnyp,
"m-incp" : Incp, "m-incp": Incp,
"m-shisuan" : Shisuan, "m-shisuan": Shisuan,
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "", tabVal: "setp",
trnName: "bttset", trnName: "bttset",
trnType: "", trnType: "",
model: new Bttset().data, model: new Bttset().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
}, ...CodeTable,
} },
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
}, },
methods:{ },
myTabClick(tab){ created: async function () {
this.tabClick(tab) console.log("进入bttset交易");
/** let rtnmsg = await this.init({});
* do it yourself if (rtnmsg.respCode == SUCCESS) {
**/ this.updateModel(rtnmsg.data);
} //TODO 处理数据逻辑
}, } else {
created:async function(){ this.$notify.error({ title: "错误", message: "服务请求失败!" });
console.log("进入bttset交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} }
} },
};
</script> </script>
<style> <style>
</style> </style>
...@@ -117,6 +117,9 @@ export default { ...@@ -117,6 +117,9 @@ export default {
{ {
this.updateModel(rtnmsg.data) this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} }
else else
......
...@@ -131,7 +131,9 @@ export default { ...@@ -131,7 +131,9 @@ export default {
{ {
this.updateModel(rtnmsg.data) this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} }
else else
{ {
......
...@@ -165,6 +165,9 @@ export default { ...@@ -165,6 +165,9 @@ export default {
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data); this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑 //TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} else { } else {
this.$notify.error({ title: "错误", message: "服务请求失败!" }); this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
......
...@@ -71,50 +71,48 @@ ...@@ -71,50 +71,48 @@
</c-col> </c-col>
</c-col> --> </c-col> -->
<c-col :span="24"> <c-col :span="12">
<c-col :span="12"> <el-form-item label="Guarantee Amount" prop="gidgrp.cbs.max.cur">
<el-form-item label="Guarantee Amount" prop="gidgrp.cbs.max.cur"> <c-select
<c-select v-model="model.gidgrp.cbs.max.cur"
v-model="model.gidgrp.cbs.max.cur" style="width: 100%"
style="width: 100%" placeholder="请选择Currency"
placeholder="请选择Currency" disabled
disabled >
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
> >
<el-option </el-option>
v-for="item in codes.cur" </c-select>
:key="item.value" </el-form-item>
:label="item.label" </c-col>
:value="item.value" <!-- <c-col :span="8">
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- <c-col :span="8">
<c-input <c-input
disabled disabled
v-model="model.gidgrp.cbs.max.amt" v-model="model.gidgrp.cbs.max.amt"
style="margin: 0 0 0 5px; width: 90%" style="margin: 0 0 0 5px; width: 90%"
></c-input> ></c-input>
</c-col> --> </c-col> -->
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
style="text-align: left" style="text-align: left"
label-width="5px" label-width="5px"
prop="gidgrp.cbs.max.amt" prop="gidgrp.cbs.max.amt"
> >
<c-input-currency <c-input-currency
disabled disabled
v-model="model.gidgrp.cbs.max.amt" v-model="model.gidgrp.cbs.max.amt"
style="margin: 0 0 0 5px; width: 90%" style="margin: 0 0 0 5px; width: 90%"
></c-input-currency> ></c-input-currency>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="4" class="centerLable"> <c-col :span="4" class="centerLable">
<c-checkbox disabled v-model="model.gitp0.aamgid.addamtflg" <c-checkbox disabled v-model="model.gitp0.aamgid.addamtflg"
>Add. Amount</c-checkbox >Add. Amount</c-checkbox
> >
</c-col>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
...@@ -225,6 +223,36 @@ ...@@ -225,6 +223,36 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="13" >
<el-form-item v-show="model.gidgrp.rec.liatypc != ''" label="Liability" prop="gidgrp.rec.liadat">
<c-date-picker
disabled
type="date"
v-show="model.gidgrp.rec.liadat != ''"
v-model="model.gidgrp.rec.liadat"
style="width: 100%"
placeholder="请选择Liability"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11" v-show="model.gidgrp.rec.liadat != ''">
<el-form-item
style="text-align: left"
label-width="5px"
prop="gidgrp.rec.liatypc"
>
<c-select
v-model="model.gidgrp.rec.liatypc"
style="width: 100%"
placeholder="请选择Liability Type"
:code="codes.liatypc"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Reference Date " prop="setmod.refdat"> <el-form-item label="Reference Date " prop="setmod.refdat">
<c-date-picker <c-date-picker
......
...@@ -139,6 +139,9 @@ export default { ...@@ -139,6 +139,9 @@ export default {
{ {
this.updateModel(rtnmsg.data) this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} }
else else
......
...@@ -215,7 +215,27 @@ ...@@ -215,7 +215,27 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Handling Type" prop="gidgrp.rec.hndtyp"> <el-form-item
v-if="model.gitp.swiftflg == ''"
label="Handling Type"
prop="gidgrp.rec.hndtyp"
>
<c-select
v-model="model.gidgrp.rec.hndtyp"
style="width: 100%"
placeholder="请选择Handling Type"
:code="codes.hndtyp2"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
v-if="model.gitp.swiftflg == 'N'"
label="Handling Type"
prop="gidgrp.rec.hndtyp"
>
<c-select <c-select
v-model="model.gidgrp.rec.hndtyp" v-model="model.gidgrp.rec.hndtyp"
style="width: 100%" style="width: 100%"
...@@ -233,6 +253,78 @@ ...@@ -233,6 +253,78 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item
v-if="model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purpos == ''"
label="Handling Type"
prop="gidgrp.rec.hndtyp"
>
<c-select
v-model="model.gidgrp.rec.hndtyp"
style="width: 100%"
placeholder="请选择Handling Type"
>
<el-option
v-for="item in codes.hndtyp2"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
v-if="
model.gitp.swiftflg == 'Y' && model.gidgrp.rec.purpos == 'ISSU'
"
label="Handling Type"
prop="gidgrp.rec.hndtyp"
>
<c-select
v-model="model.gidgrp.rec.hndtyp"
style="width: 100%"
placeholder="请选择Handling Type"
>
<el-option
v-for="item in codes.hndtyp3"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
v-if="
model.gitp.swiftflg == 'Y' &&
(model.gidgrp.rec.purpos == 'ISCO' ||
model.gidgrp.rec.purpos == 'ICCO')
"
label="Handling Type"
prop="gidgrp.rec.hndtyp"
>
<c-select
v-model="model.gidgrp.rec.hndtyp"
style="width: 100%"
placeholder="请选择Handling Type"
>
<el-option
v-for="item in codes.hndtyp4"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Type of Undertaking" prop="gidgrp.rec.gartyp"> <el-form-item label="Type of Undertaking" prop="gidgrp.rec.gartyp">
<c-select <c-select
v-model="model.gidgrp.rec.gartyp" v-model="model.gidgrp.rec.gartyp"
...@@ -1233,7 +1325,9 @@ ...@@ -1233,7 +1325,9 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="20"> <c-col :span="20">
<el-form-item <el-form-item
v-show="model.gitp.swiftflg == 'Y'&&model.gitp.exptxtmodflg == ''" v-show="
model.gitp.swiftflg == 'Y' && model.gitp.exptxtmodflg == ''
"
label="Expiry Condition/ Evt." label="Expiry Condition/ Evt."
prop="gidgrp.blk.exptxt" prop="gidgrp.blk.exptxt"
> >
...@@ -1248,7 +1342,9 @@ ...@@ -1248,7 +1342,9 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-show="model.gitp.swiftflg == 'Y'&&model.gitp.exptxtmodflg == 'X'" v-show="
model.gitp.swiftflg == 'Y' && model.gitp.exptxtmodflg == 'X'
"
label="Expiry Condition/ Evt." label="Expiry Condition/ Evt."
prop="gidgrp.blk.atxexptxt" prop="gidgrp.blk.atxexptxt"
> >
...@@ -1357,13 +1453,13 @@ ...@@ -1357,13 +1453,13 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="20"> <c-col :span="20">
<el-form-item <el-form-item
v-show="model.gitp.swiftflg == 'Y'" v-show="model.gitp.swiftflg == 'Y'&&model.gitp.liatxtcmodflg == ''"
label="Liability Condition" label="Liability Condition"
prop="gidgrp.blk.liatxtc" prop="gidgrp.blk.liatxtc"
> >
<c-input <c-input
type="textarea" type="textarea"
:disabled="model.gitp.liatxtcmodflg == ''" disabled
rows="4" rows="4"
v-model="model.gidgrp.blk.liatxtc" v-model="model.gidgrp.blk.liatxtc"
maxlength="780" maxlength="780"
...@@ -1371,6 +1467,20 @@ ...@@ -1371,6 +1467,20 @@
placeholder="请输入Liability Condition" placeholder="请输入Liability Condition"
></c-input> ></c-input>
</el-form-item> </el-form-item>
<el-form-item
v-show="model.gitp.swiftflg == 'Y'&&model.gitp.liatxtcmodflg == 'X'"
label="Liability Condition"
prop="gidgrp.blk.atxliatxtc"
>
<c-input
type="textarea"
rows="4"
v-model="model.gidgrp.blk.atxliatxtc"
maxlength="780"
show-word-limit
placeholder="请输入Liability Condition"
></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="4"> <c-col :span="4">
<c-checkbox <c-checkbox
......
...@@ -46,17 +46,60 @@ ...@@ -46,17 +46,60 @@
</c-col> </c-col>
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<c-col :span="24"> <c-col :span="24">
<c-ptap <el-form-item label="Issuing Bnak's Ref." prop="gidgrp.iss.pts.ref">
:model="model" <c-input
:argadr="{ v-model="model.gidgrp.iss.pts.ref"
title: 'Issuing Bank', maxlength="16"
grp: 'gidgrp', placeholder="请输入Issuing Bnak's Ref."
rol: 'iss', ></c-input>
}" </el-form-item>
:disabled="true" </c-col>
@onAplpDet="onCtcpDet" <c-col :span="24">
> <el-form-item label="Issuing Bank" prop="gidgrp.iss.pts.extkey">
</c-ptap> <c-fullbox>
<c-input
v-model="model.gidgrp.iss.pts.extkey"
maxlength="16"
placeholder="请输入External Key of Address"
@keyup.enter.native="
showGridPromptDialog(`gidgrp.iss.pts.extkey`)
"
@blur="issBlur"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
>
<span style="font-family: '宋体'; font-weight: bold"
>i</span
>
</c-button>
<c-button
:disabled="model.gidgrp.iss.pts.adrblk == ''"
size="small"
type="primary"
@click="onIsspDet"
>
Details
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址名称" prop="gidgrp.iss.pts.adrblk">
<c-input
:disabled="model.gidgrp.iss.pts.adrblk != ''"
rows="4"
type="textarea"
v-model="model.gidgrp.iss.pts.adrblk"
maxlength="140"
show-word-limit
placeholder="请输入地址名称"
></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
...@@ -137,6 +180,7 @@ import commonFuncs from "~/mixin/commonFuncs"; ...@@ -137,6 +180,7 @@ import commonFuncs from "~/mixin/commonFuncs";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitpop/Event"; import Event from "~/model/Gitpop/Event";
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils";
export default { export default {
components: { "c-ptap": Ptap }, components: { "c-ptap": Ptap },
...@@ -148,6 +192,12 @@ export default { ...@@ -148,6 +192,12 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
async issBlur() {
let rtnmsg = await this.executeDefault("gidgrp.rec.sndto");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -319,9 +319,18 @@ export default { ...@@ -319,9 +319,18 @@ export default {
methods: { methods: {
myTabClick(tab) { myTabClick(tab) {
this.tabClick(tab); this.tabClick(tab);
/** let name = tab.name;
* do it yourself let rulePath;
**/ if (name === "ptypc"){
rulePath = "gitp.ptypc"
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
}, },
}, },
......
...@@ -312,6 +312,9 @@ export default { ...@@ -312,6 +312,9 @@ export default {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.updateModel(rtnmsg.data); this.updateModel(rtnmsg.data);
this.model.mtabut.clsflg="X"; this.model.mtabut.clsflg="X";
if (this.isInDisplay) {
this.restoreDisplay();
}
} else { } else {
this.$notify.error({ title: "错误", message: "服务请求失败!" }); this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
@change="executeDefault('trnmod.trndoc.doccur.docsnf')" @change="executeDefault('trnmod.trndoc.doccur.docsnf')"
:disabled="suppress"
> >
<el-option <el-option
v-for="item in codes.docsnf" v-for="item in codes.docsnf"
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
" "
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
:disabled="suppress"
> >
<el-option <el-option
v-for="item in codes.uiltxt" v-for="item in codes.uiltxt"
...@@ -100,6 +102,7 @@ ...@@ -100,6 +102,7 @@
:readonly="true" :readonly="true"
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
:disabled="suppress"
> >
</c-input> </c-input>
</template> </template>
...@@ -112,7 +115,7 @@ ...@@ -112,7 +115,7 @@
" "
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
:disabled="suppress"
> >
</c-input> </c-input>
</template> </template>
...@@ -129,6 +132,7 @@ ...@@ -129,6 +132,7 @@
" "
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
:disabled="suppress"
> >
<el-option <el-option
v-for="item in codes.swttlx" v-for="item in codes.swttlx"
...@@ -147,9 +151,9 @@ ...@@ -147,9 +151,9 @@
type="primary" type="primary"
size="small" size="small"
:disabled=" :disabled="
scope.row (scope.row
.pandsc == 'MT799' && model.didgrp && model.didgrp.rec && .pandsc == 'MT799' && model.didgrp && model.didgrp.rec &&
model.didgrp.rec.elcflg == 'Y' model.didgrp.rec.elcflg == 'Y')||suppress
" "
@click="handleDisplay(scope.row.index, scope.row, model.trnmod.trndoc.doceot[scope.row.idx])" @click="handleDisplay(scope.row.index, scope.row, model.trnmod.trndoc.doceot[scope.row.idx])"
icon="el-icon-search" icon="el-icon-search"
...@@ -546,20 +550,24 @@ export default { ...@@ -546,20 +550,24 @@ export default {
}) })
}, },
activateDialog() { activateDialog() {
this.executeRule("trnmod.trndoc.doccur.butdel").then(res => { this.executeRule(`trnmod.trndoc.doceot(${this.index + 1}).butdel`).then(res => {
if(res.respCode==SUCCESS){ if(res.respCode==SUCCESS){
//TODO //TODO
this.updateModel(res.data)
this.dialog = this.model.trnmod.trndoc.doceot[this.index]
this.suppress=false;
}else{ }else{
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}) })
}, },
suppressDialog() { suppressDialog() {
this.executeRule("trnmod.trndoc.doccur.butdel").then(res => { this.executeRule(`trnmod.trndoc.doceot(${this.index + 1}).butdel`).then(res => {
if(res.respCode==SUCCESS){ if(res.respCode==SUCCESS){
//TODO //TODO
this.suppress=true; this.updateModel(res.data)
this.dialog = this.model.trnmod.trndoc.doceot[this.index]
this.suppress=true;
}else{ }else{
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
......
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