Commit 9a34c184 by huangxin

botset,botame优化

parent 27db8cb5
...@@ -78,5 +78,6 @@ export default { ...@@ -78,5 +78,6 @@ export default {
"mtabut.clsflg" :Utils.defaultFunction, "mtabut.clsflg" :Utils.defaultFunction,
"mtabut.coninf.conexedat" :Utils.defaultFunction, "mtabut.coninf.conexedat" :Utils.defaultFunction,
"cnybop.outflg" :Utils.defaultFunction, "cnybop.outflg" :Utils.defaultFunction,
"bodgrp.rec.docsta" :Utils.defaultFunction,
} }
//你可以添加自动default处理 //你可以添加自动default处理
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="bodgrp.blk.colinsflg"> <el-form-item label="" prop="bodgrp.blk.colinsflg">
<c-checkbox v-model="colinsflg">Collection instructions modified</c-checkbox> <c-checkbox v-model="colinsflg">Delivery of Documents instructions modified</c-checkbox>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -78,8 +78,7 @@ ...@@ -78,8 +78,7 @@
</c-input> </c-input>
<template slot="footer"> <template slot="footer">
<c-button size="small" type="primary" icon="el-icon-search" <c-button size="small" type="primary" icon="el-icon-search"
@click="showGridPromptDialog('botp.dftins.buttxmsel', null, null,{TXT: 'bodgrp.blk.dftins'}, {TXT: false},'doxpDialog')" @click="showGridPromptDialog('botp.dftins.buttxmsel', null, null,{TXT: 'bodgrp.blk.dftins'}, {TXT: false},'doxpDialog')">
>
... ...
</c-button> </c-button>
</template> </template>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="6"> <c-col :span="6">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSetinsButtxmsel"> <c-button size="small" type="primary" icon="el-icon-search" @click="showGridPromptDialog('botp.setins.buttxmsel', null, null,{TXT: 'bodgrp.blk.setinsbo'}, {TXT: false},'doxpDialog')">
... ...
</c-button> </c-button>
</c-col> </c-col>
......
...@@ -39,19 +39,56 @@ ...@@ -39,19 +39,56 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-edit-table :model="model" v-bind="ptsaddg"> <c-table max-height="300px" style="text-align: center;" stripe :list="this.model.botp.ptsaddp.ptsaddg || []"
<el-table-column label="操作" align="center"> :paginationShow="false" :border="true">
<template slot-scope="scope"> <el-table-column label="Additional Parties">
<el-button <el-table-column label="角色" width="auto" prop="rol">
size="mini" <template slot-scope="scope">
@click="handleEdit(scope.$index, scope.row)" <c-select v-model="scope.row.rol" :code="ptyp2">
type="primary" </c-select>
>详情</el-button </template>
>
</template> </el-table-column>
</el-table-column> <el-table-column label="机构实体" width="auto" prop="ptyextkey">
</c-edit-table> <template slot-scope="scope">
</c-col> <c-input v-model="scope.row.ptyextkey" maxlength="12">
</c-input>
</template>
</el-table-column>
<el-table-column label="名称" width="auto" prop="scope.row.nam">
<template slot-scope="scope">
<c-input v-model="scope.row.nam" maxlength="12">
</c-input>
</template>
</el-table-column>
<el-table-column label="参考地址" width="auto" prop="scope.row.ref">
<template slot-scope="scope">
<c-input v-model="scope.row.ref" maxlength="12">
</c-input>
</template>
</el-table-column>
<el-table-column label="Document" prop="docnam" width="auto">
<template slot="header">
<c-row>
<c-col :span="12">
<span style="line-height: 36px;">操作</span>
</c-col>
<c-col :span="12">
<div style="float: right;">
<span class="add_del_button add_button" @click="addTableValue">+</span>
<span class="add_del_button" @click="deleteTable">-</span>
</div>
</c-col>
</c-row>
</template>
<template slot-scope="scope">
<el-button size="mini" @click="handleEdit(scope.$index, scope.row)" type="primary">详情
</el-button>
</template>
</el-table-column>
</el-table-column>
</c-table>
</c-col>
</c-row> </c-row>
</template> </template>
...@@ -70,36 +107,37 @@ export default { ...@@ -70,36 +107,37 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data(){ data(){
return { return {
ptsaddg: { newValue: {
columns: [ rol: "",
{ ptyextkey: "",
title: "角色", nam: "",
width: "120px", ref: "",
dataIndex: "rol",
show: "select",
},
{
title: "机构实体",
width: "180px",
dataIndex: "ptyextkey",
show: "input",
},
{
title: "名称",
width: "300px",
dataIndex: "nam",
},
{
title: "参考地址",
width: "300px",
dataIndex: "ref",
}, },
ptyp2: [
{ label: "TP0 Third Party", value: "TP0" },
{ label: "TP1 1st Third Party", value: "TP1" },
{ label: "TP2 2nd Third Party", value: "TP2" },
{ label: "TP3 3rd Third Party", value: "TP3" },
{ label: "TP4 4th Third Party", value: "TP4" },
{ label: "TP5 5th Third Party", value: "TP5" },
{ label: "TP6 6th Third Party", value: "TP6" },
{ label: "TP7 7th Third Party", value: "TP7" },
{ label: "TP8 8th Third Party", value: "TP8" },
], ],
urls: "botp.ptsaddp.ptsaddg",
},
} }
}, },
methods:{...Event}, methods:{...Event,
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial = Utils.generateUUID();
newTableValue.serialNum = serial;
this.model.botp.ptsaddp.ptsaddg.splice(index - 1, 0, newTableValue);
},
deleteTable(index) {
this.model.botp.ptsaddp.ptsaddg.splice(index, 1);
},
},
created:function(){ created:function(){
console.log(this.root); console.log(this.root);
} }
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="bodgrp.blk.colinsflg"> <el-form-item label="" prop="bodgrp.blk.colinsflg">
<c-checkbox disabled v-model="colinsflg">Collection instructions modified</c-checkbox> <c-checkbox disabled v-model="colinsflg">Delivery of Documents instructions modified</c-checkbox>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -288,13 +288,14 @@ ...@@ -288,13 +288,14 @@
:columns="stmData.columns" :columns="stmData.columns"
:showSelection="true" :showSelection="true"
v-on:multipleSelect="multipleSelect" v-on:multipleSelect="multipleSelect"
prop="liaall.tenstm"
> >
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<c-col :span="24"> <c-col :span="24">
<c-checkbox v-model="model.bodgrp.rec.focflg" @change="change1" <c-checkbox v-model="model.bodgrp.rec.focflg" @change="change"
>Free of Payment</c-checkbox >Free of Payment</c-checkbox
> >
</c-col> </c-col>
...@@ -334,7 +335,9 @@ ...@@ -334,7 +335,9 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-checkbox :disabled="model.setmod.docamt<=model.bodgrp.cbs.opn1.amt" v-model="model.mtabut.clsflg" @change="change1" <c-checkbox
:disabled="model.setmod.docamt <= model.bodgrp.cbs.opn1.amt"
v-model="model.mtabut.clsflg"
>Close Contract</c-checkbox >Close Contract</c-checkbox
> >
</c-col> </c-col>
...@@ -435,10 +438,10 @@ export default { ...@@ -435,10 +438,10 @@ export default {
computed: { computed: {
clsflg: { clsflg: {
get() { get() {
return this.model.mtabut.clsflg === "X"; return this.model.mtabut.clsflg === "O";
}, },
set(val) { set(val) {
this.model.mtabut.clsflg = val ? "X" : ""; this.model.mtabut.clsflg = val ? "C" : "O";
}, },
}, },
focflg: { focflg: {
...@@ -459,10 +462,40 @@ export default { ...@@ -459,10 +462,40 @@ export default {
methods: { methods: {
...Event, ...Event,
async change() {
if (this.model.bodgrp.rec.focflg === "X") {
this.model.setmod.redamt = this.model.setmod.docamt;
let rtnmsg = await this.executeDefault("setmod.redamt");
this.model.bodgrp.rec.docsta ="D"
} else {
this.model.setmod.redamt = "0.00";
let rtnmsg = await this.executeDefault("setmod.redamt");
this.model.bodgrp.rec.docsta = rtnmsg.data.bodgrp_rec_docsta;
}
},
async multipleSelect(selection) { async multipleSelect(selection) {
console.log(selection); if (selection.length > 1) {
if (selection) { this.$notify({
let selIds = selection.map((x) => x + 1); title: "error",
message: "You cannot select more than one tenor",
type: "error",
});
} else {
let selIds;
if (selection.length === 0) {
this.$notify({
title: "error",
message: "Please select at least one tenor",
type: "error",
});
selIds = [];
this.model.setmod.docamt = "0.000";
this.isDisabled = false;
} else {
selIds = [selection[0] + 1];
this.model.setmod.docamt = this.model.bodgrp.cbs.max.amt;
this.isDisabled = true;
}
let params = { selDst: "liaall.tenstm", selIds }; let params = { selDst: "liaall.tenstm", selIds };
const rtnmsg = await this.executeRule("liaall.tenstm", params); const rtnmsg = await this.executeRule("liaall.tenstm", params);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
...@@ -472,30 +505,6 @@ export default { ...@@ -472,30 +505,6 @@ export default {
} }
} }
}, },
change1() {
// if (this.model.bodgrp.rec.focflg) {
// this.model.bodgrp.rec.docsta = "D";
// } else {
// this.model.bodgrp.rec.docsta = "B";
// }
if (this.model.mtabut.clsflg=='X' ){
this.model.bodgrp.rec.docsta="E";
}
else if(this.model.bodgrp.rec.focflg=='X' && this.model.mtabut.clsflg!='X'){
this.model.bodgrp.rec.docsta="D";
}
else if(this.model.bodgrp.rec.focflg!='X' && this.model.mtabut.clsflg!='X'){
this.model.bodgrp.rec.docsta="B";
}
if (this.model.bodgrp.rec.focflg) {
this.model.setmod.redamt = this.model.setmod.docamt;
} else {
this.model.setmod.redamt = "0.00";
}
},
}, },
created: function () {}, created: function () {},
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<c-fullbox> <c-fullbox>
<el-form-item label="申报类型" prop="bopmod.szflg"> <el-form-item label="申报类型" prop="bopmod.szflg">
<c-select <c-select
@change="change"
v-model="model.bopmod.szflg" v-model="model.bopmod.szflg"
style="width: 100%" style="width: 100%"
placeholder="请选择申报类型" placeholder="请选择申报类型"
...@@ -172,7 +173,14 @@ export default { ...@@ -172,7 +173,14 @@ export default {
}; };
}, },
methods: { ...Event }, methods: { ...Event,
async change() {
if(this.model.bopmod.szflg=="3" || this.model.bopmod.szflg==""){
this.model.lendoc.actflg=""
this.model.bopmod.ownextkey=""
}
},
},
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<!--Funds Settlement --> <!--Funds Settlement -->
<el-tab-pane label="Funds Settlement" name="setp"> <el-tab-pane label="Funds Settlement" name="setp">
<c-content> <c-content>
<m-setp :model="model" :codes="codes"/> <m-setp ref="setp" :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
...@@ -209,6 +209,10 @@ export default { ...@@ -209,6 +209,10 @@ export default {
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.updateModel(rtnmsg.data) this.updateModel(rtnmsg.data)
this.$nextTick(() => {
this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
this.model.setmod.docamt = this.model.bodgrp.cbs.max.amt;
})
} }
else else
{ {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane v-if="model.advdisflg=='X'" label="Advice of Discrepancy" name="mt750p"> <el-tab-pane v-if="model.brdgrp.rec.advtyp=='750'" label="Advice of Discrepancy" name="mt750p">
<c-content> <c-content>
<m-mt750p :model="model" :codes="codes"/> <m-mt750p :model="model" :codes="codes"/>
</c-content> </c-content>
......
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