Commit 9a34c184 by huangxin

botset,botame优化

parent 27db8cb5
......@@ -78,5 +78,6 @@ export default {
"mtabut.clsflg" :Utils.defaultFunction,
"mtabut.coninf.conexedat" :Utils.defaultFunction,
"cnybop.outflg" :Utils.defaultFunction,
"bodgrp.rec.docsta" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -47,7 +47,7 @@
<c-col :span="24">
<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>
</c-col>
......@@ -78,8 +78,7 @@
</c-input>
<template slot="footer">
<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>
</template>
......
......@@ -27,7 +27,7 @@
</el-form-item>
</c-col>
<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-col>
......
......@@ -39,19 +39,56 @@
</c-col>
<c-col :span="24">
<c-edit-table :model="model" v-bind="ptsaddg">
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button
size="mini"
@click="handleEdit(scope.$index, scope.row)"
type="primary"
>详情</el-button
>
</template>
</el-table-column>
</c-edit-table>
</c-col>
<c-table max-height="300px" style="text-align: center;" stripe :list="this.model.botp.ptsaddp.ptsaddg || []"
:paginationShow="false" :border="true">
<el-table-column label="Additional Parties">
<el-table-column label="角色" width="auto" prop="rol">
<template slot-scope="scope">
<c-select v-model="scope.row.rol" :code="ptyp2">
</c-select>
</template>
</el-table-column>
<el-table-column label="机构实体" width="auto" prop="ptyextkey">
<template slot-scope="scope">
<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>
</template>
......@@ -70,36 +107,37 @@ export default {
mixins: [commonProcess],
data(){
return {
ptsaddg: {
columns: [
{
title: "角色",
width: "120px",
dataIndex: "rol",
show: "select",
},
{
title: "机构实体",
width: "180px",
dataIndex: "ptyextkey",
show: "input",
},
{
title: "名称",
width: "300px",
dataIndex: "nam",
},
{
title: "参考地址",
width: "300px",
dataIndex: "ref",
newValue: {
rol: "",
ptyextkey: "",
nam: "",
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(){
console.log(this.root);
}
......
......@@ -45,7 +45,7 @@
<c-col :span="24">
<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>
</c-col>
......
......@@ -288,13 +288,14 @@
:columns="stmData.columns"
:showSelection="true"
v-on:multipleSelect="multipleSelect"
prop="liaall.tenstm"
>
</c-istream-table>
</c-col>
<c-col :span="12">
<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
>
</c-col>
......@@ -334,7 +335,9 @@
</el-form-item>
</c-col>
<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
>
</c-col>
......@@ -435,10 +438,10 @@ export default {
computed: {
clsflg: {
get() {
return this.model.mtabut.clsflg === "X";
return this.model.mtabut.clsflg === "O";
},
set(val) {
this.model.mtabut.clsflg = val ? "X" : "";
this.model.mtabut.clsflg = val ? "C" : "O";
},
},
focflg: {
......@@ -459,10 +462,40 @@ export default {
methods: {
...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) {
console.log(selection);
if (selection) {
let selIds = selection.map((x) => x + 1);
if (selection.length > 1) {
this.$notify({
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 };
const rtnmsg = await this.executeRule("liaall.tenstm", params);
if (rtnmsg.respCode == SUCCESS) {
......@@ -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 () {},
......
......@@ -6,6 +6,7 @@
<c-fullbox>
<el-form-item label="申报类型" prop="bopmod.szflg">
<c-select
@change="change"
v-model="model.bopmod.szflg"
style="width: 100%"
placeholder="请选择申报类型"
......@@ -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 () {},
};
</script>
......
......@@ -20,7 +20,7 @@
<!--Funds Settlement -->
<el-tab-pane label="Funds Settlement" name="setp">
<c-content>
<m-setp :model="model" :codes="codes"/>
<m-setp ref="setp" :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
......@@ -209,6 +209,10 @@ export default {
{
//TODO 处理数据逻辑
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
{
......
......@@ -30,7 +30,7 @@
</c-content>
</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>
<m-mt750p :model="model" :codes="codes"/>
</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